configure 447 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686
  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. REPORT_BUGS_TEXI
  554. REPORT_BUGS_TO
  555. PKGVERSION
  556. sim_profile
  557. sim_trace
  558. sim_stdio
  559. sim_debug
  560. sim_cflags
  561. sim_bswap
  562. MAINT
  563. MAINTAINER_MODE_FALSE
  564. MAINTAINER_MODE_TRUE
  565. lt_cv_dlopen_libs
  566. OTOOL64
  567. OTOOL
  568. LIPO
  569. NMEDIT
  570. DSYMUTIL
  571. AWK
  572. STRIP
  573. OBJDUMP
  574. LN_S
  575. NM
  576. ac_ct_DUMPBIN
  577. DUMPBIN
  578. LD
  579. FGREP
  580. SED
  581. LIBTOOL
  582. PLUGINS_FALSE
  583. PLUGINS_TRUE
  584. zlibinc
  585. zlibdir
  586. CATOBJEXT
  587. GENCAT
  588. INSTOBJEXT
  589. DATADIRNAME
  590. CATALOGS
  591. POSUB
  592. GMSGFMT
  593. XGETTEXT
  594. INCINTL
  595. LIBINTL_DEP
  596. LIBINTL
  597. USE_NLS
  598. GMAKE_FALSE
  599. GMAKE_TRUE
  600. MAKE
  601. CCDEPMODE
  602. DEPDIR
  603. am__leading_dot
  604. PACKAGE
  605. RANLIB
  606. AR
  607. HDEFINES
  608. CC_FOR_BUILD
  609. INSTALL_DATA
  610. INSTALL_SCRIPT
  611. INSTALL_PROGRAM
  612. EGREP
  613. GREP
  614. CPP
  615. target_os
  616. target_vendor
  617. target_cpu
  618. target
  619. host_os
  620. host_vendor
  621. host_cpu
  622. host
  623. build_os
  624. build_vendor
  625. build_cpu
  626. build
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. WERROR_CFLAGS
  635. WARN_CFLAGS
  636. sim_xor_endian
  637. sim_stdcall
  638. sim_smp
  639. sim_reserved_bits
  640. sim_regparm
  641. sim_packages
  642. sim_inline
  643. sim_hw
  644. sim_hw_objs
  645. sim_hw_cflags
  646. sim_default_model
  647. sim_scache
  648. sim_float
  649. sim_hostendian
  650. sim_endian
  651. sim_bitsize
  652. sim_assert
  653. sim_alignment
  654. sim_environment
  655. target_alias
  656. host_alias
  657. build_alias
  658. LIBS
  659. ECHO_T
  660. ECHO_N
  661. ECHO_C
  662. DEFS
  663. mandir
  664. localedir
  665. libdir
  666. psdir
  667. pdfdir
  668. dvidir
  669. htmldir
  670. infodir
  671. docdir
  672. oldincludedir
  673. includedir
  674. localstatedir
  675. sharedstatedir
  676. sysconfdir
  677. datadir
  678. datarootdir
  679. libexecdir
  680. sbindir
  681. bindir
  682. program_transform_name
  683. prefix
  684. exec_prefix
  685. PACKAGE_URL
  686. PACKAGE_BUGREPORT
  687. PACKAGE_STRING
  688. PACKAGE_VERSION
  689. PACKAGE_TARNAME
  690. PACKAGE_NAME
  691. PATH_SEPARATOR
  692. SHELL'
  693. ac_subst_files=''
  694. ac_user_opts='
  695. enable_option_checking
  696. with_system_zlib
  697. enable_plugins
  698. enable_shared
  699. enable_static
  700. with_pic
  701. enable_fast_install
  702. with_gnu_ld
  703. enable_libtool_lock
  704. enable_maintainer_mode
  705. enable_sim_bswap
  706. enable_sim_cflags
  707. enable_sim_debug
  708. enable_sim_stdio
  709. enable_sim_trace
  710. enable_sim_profile
  711. with_pkgversion
  712. with_bugurl
  713. enable_sim_endian
  714. enable_sim_alignment
  715. enable_sim_hostendian
  716. enable_sim_environment
  717. enable_sim_inline
  718. enable_werror
  719. enable_build_warnings
  720. enable_sim_build_warnings
  721. '
  722. ac_precious_vars='build_alias
  723. host_alias
  724. target_alias
  725. CC
  726. CFLAGS
  727. LDFLAGS
  728. LIBS
  729. CPPFLAGS
  730. CPP'
  731. # Initialize some variables set by options.
  732. ac_init_help=
  733. ac_init_version=false
  734. ac_unrecognized_opts=
  735. ac_unrecognized_sep=
  736. # The variables have the same names as the options, with
  737. # dashes changed to underlines.
  738. cache_file=/dev/null
  739. exec_prefix=NONE
  740. no_create=
  741. no_recursion=
  742. prefix=NONE
  743. program_prefix=NONE
  744. program_suffix=NONE
  745. program_transform_name=s,x,x,
  746. silent=
  747. site=
  748. srcdir=
  749. verbose=
  750. x_includes=NONE
  751. x_libraries=NONE
  752. # Installation directory options.
  753. # These are left unexpanded so users can "make install exec_prefix=/foo"
  754. # and all the variables that are supposed to be based on exec_prefix
  755. # by default will actually change.
  756. # Use braces instead of parens because sh, perl, etc. also accept them.
  757. # (The list follows the same order as the GNU Coding Standards.)
  758. bindir='${exec_prefix}/bin'
  759. sbindir='${exec_prefix}/sbin'
  760. libexecdir='${exec_prefix}/libexec'
  761. datarootdir='${prefix}/share'
  762. datadir='${datarootdir}'
  763. sysconfdir='${prefix}/etc'
  764. sharedstatedir='${prefix}/com'
  765. localstatedir='${prefix}/var'
  766. includedir='${prefix}/include'
  767. oldincludedir='/usr/include'
  768. docdir='${datarootdir}/doc/${PACKAGE}'
  769. infodir='${datarootdir}/info'
  770. htmldir='${docdir}'
  771. dvidir='${docdir}'
  772. pdfdir='${docdir}'
  773. psdir='${docdir}'
  774. libdir='${exec_prefix}/lib'
  775. localedir='${datarootdir}/locale'
  776. mandir='${datarootdir}/man'
  777. ac_prev=
  778. ac_dashdash=
  779. for ac_option
  780. do
  781. # If the previous option needs an argument, assign it.
  782. if test -n "$ac_prev"; then
  783. eval $ac_prev=\$ac_option
  784. ac_prev=
  785. continue
  786. fi
  787. case $ac_option in
  788. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  789. *) ac_optarg=yes ;;
  790. esac
  791. # Accept the important Cygnus configure options, so we can diagnose typos.
  792. case $ac_dashdash$ac_option in
  793. --)
  794. ac_dashdash=yes ;;
  795. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  796. ac_prev=bindir ;;
  797. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  798. bindir=$ac_optarg ;;
  799. -build | --build | --buil | --bui | --bu)
  800. ac_prev=build_alias ;;
  801. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  802. build_alias=$ac_optarg ;;
  803. -cache-file | --cache-file | --cache-fil | --cache-fi \
  804. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  805. ac_prev=cache_file ;;
  806. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  807. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  808. cache_file=$ac_optarg ;;
  809. --config-cache | -C)
  810. cache_file=config.cache ;;
  811. -datadir | --datadir | --datadi | --datad)
  812. ac_prev=datadir ;;
  813. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  814. datadir=$ac_optarg ;;
  815. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  816. | --dataroo | --dataro | --datar)
  817. ac_prev=datarootdir ;;
  818. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  819. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  820. datarootdir=$ac_optarg ;;
  821. -disable-* | --disable-*)
  822. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  823. # Reject names that are not valid shell variable names.
  824. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  825. as_fn_error "invalid feature name: $ac_useropt"
  826. ac_useropt_orig=$ac_useropt
  827. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  828. case $ac_user_opts in
  829. *"
  830. "enable_$ac_useropt"
  831. "*) ;;
  832. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  833. ac_unrecognized_sep=', ';;
  834. esac
  835. eval enable_$ac_useropt=no ;;
  836. -docdir | --docdir | --docdi | --doc | --do)
  837. ac_prev=docdir ;;
  838. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  839. docdir=$ac_optarg ;;
  840. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  841. ac_prev=dvidir ;;
  842. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  843. dvidir=$ac_optarg ;;
  844. -enable-* | --enable-*)
  845. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  846. # Reject names that are not valid shell variable names.
  847. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  848. as_fn_error "invalid feature name: $ac_useropt"
  849. ac_useropt_orig=$ac_useropt
  850. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  851. case $ac_user_opts in
  852. *"
  853. "enable_$ac_useropt"
  854. "*) ;;
  855. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  856. ac_unrecognized_sep=', ';;
  857. esac
  858. eval enable_$ac_useropt=\$ac_optarg ;;
  859. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  860. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  861. | --exec | --exe | --ex)
  862. ac_prev=exec_prefix ;;
  863. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  864. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  865. | --exec=* | --exe=* | --ex=*)
  866. exec_prefix=$ac_optarg ;;
  867. -gas | --gas | --ga | --g)
  868. # Obsolete; use --with-gas.
  869. with_gas=yes ;;
  870. -help | --help | --hel | --he | -h)
  871. ac_init_help=long ;;
  872. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  873. ac_init_help=recursive ;;
  874. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  875. ac_init_help=short ;;
  876. -host | --host | --hos | --ho)
  877. ac_prev=host_alias ;;
  878. -host=* | --host=* | --hos=* | --ho=*)
  879. host_alias=$ac_optarg ;;
  880. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  881. ac_prev=htmldir ;;
  882. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  883. | --ht=*)
  884. htmldir=$ac_optarg ;;
  885. -includedir | --includedir | --includedi | --included | --include \
  886. | --includ | --inclu | --incl | --inc)
  887. ac_prev=includedir ;;
  888. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  889. | --includ=* | --inclu=* | --incl=* | --inc=*)
  890. includedir=$ac_optarg ;;
  891. -infodir | --infodir | --infodi | --infod | --info | --inf)
  892. ac_prev=infodir ;;
  893. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  894. infodir=$ac_optarg ;;
  895. -libdir | --libdir | --libdi | --libd)
  896. ac_prev=libdir ;;
  897. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  898. libdir=$ac_optarg ;;
  899. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  900. | --libexe | --libex | --libe)
  901. ac_prev=libexecdir ;;
  902. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  903. | --libexe=* | --libex=* | --libe=*)
  904. libexecdir=$ac_optarg ;;
  905. -localedir | --localedir | --localedi | --localed | --locale)
  906. ac_prev=localedir ;;
  907. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  908. localedir=$ac_optarg ;;
  909. -localstatedir | --localstatedir | --localstatedi | --localstated \
  910. | --localstate | --localstat | --localsta | --localst | --locals)
  911. ac_prev=localstatedir ;;
  912. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  913. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  914. localstatedir=$ac_optarg ;;
  915. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  916. ac_prev=mandir ;;
  917. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  918. mandir=$ac_optarg ;;
  919. -nfp | --nfp | --nf)
  920. # Obsolete; use --without-fp.
  921. with_fp=no ;;
  922. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  923. | --no-cr | --no-c | -n)
  924. no_create=yes ;;
  925. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  926. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  927. no_recursion=yes ;;
  928. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  929. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  930. | --oldin | --oldi | --old | --ol | --o)
  931. ac_prev=oldincludedir ;;
  932. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  933. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  934. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  935. oldincludedir=$ac_optarg ;;
  936. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  937. ac_prev=prefix ;;
  938. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  939. prefix=$ac_optarg ;;
  940. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  941. | --program-pre | --program-pr | --program-p)
  942. ac_prev=program_prefix ;;
  943. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  944. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  945. program_prefix=$ac_optarg ;;
  946. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  947. | --program-suf | --program-su | --program-s)
  948. ac_prev=program_suffix ;;
  949. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  950. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  951. program_suffix=$ac_optarg ;;
  952. -program-transform-name | --program-transform-name \
  953. | --program-transform-nam | --program-transform-na \
  954. | --program-transform-n | --program-transform- \
  955. | --program-transform | --program-transfor \
  956. | --program-transfo | --program-transf \
  957. | --program-trans | --program-tran \
  958. | --progr-tra | --program-tr | --program-t)
  959. ac_prev=program_transform_name ;;
  960. -program-transform-name=* | --program-transform-name=* \
  961. | --program-transform-nam=* | --program-transform-na=* \
  962. | --program-transform-n=* | --program-transform-=* \
  963. | --program-transform=* | --program-transfor=* \
  964. | --program-transfo=* | --program-transf=* \
  965. | --program-trans=* | --program-tran=* \
  966. | --progr-tra=* | --program-tr=* | --program-t=*)
  967. program_transform_name=$ac_optarg ;;
  968. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  969. ac_prev=pdfdir ;;
  970. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  971. pdfdir=$ac_optarg ;;
  972. -psdir | --psdir | --psdi | --psd | --ps)
  973. ac_prev=psdir ;;
  974. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  975. psdir=$ac_optarg ;;
  976. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  977. | -silent | --silent | --silen | --sile | --sil)
  978. silent=yes ;;
  979. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  980. ac_prev=sbindir ;;
  981. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  982. | --sbi=* | --sb=*)
  983. sbindir=$ac_optarg ;;
  984. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  985. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  986. | --sharedst | --shareds | --shared | --share | --shar \
  987. | --sha | --sh)
  988. ac_prev=sharedstatedir ;;
  989. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  990. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  991. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  992. | --sha=* | --sh=*)
  993. sharedstatedir=$ac_optarg ;;
  994. -site | --site | --sit)
  995. ac_prev=site ;;
  996. -site=* | --site=* | --sit=*)
  997. site=$ac_optarg ;;
  998. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  999. ac_prev=srcdir ;;
  1000. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1001. srcdir=$ac_optarg ;;
  1002. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1003. | --syscon | --sysco | --sysc | --sys | --sy)
  1004. ac_prev=sysconfdir ;;
  1005. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1006. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1007. sysconfdir=$ac_optarg ;;
  1008. -target | --target | --targe | --targ | --tar | --ta | --t)
  1009. ac_prev=target_alias ;;
  1010. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1011. target_alias=$ac_optarg ;;
  1012. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1013. verbose=yes ;;
  1014. -version | --version | --versio | --versi | --vers | -V)
  1015. ac_init_version=: ;;
  1016. -with-* | --with-*)
  1017. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1018. # Reject names that are not valid shell variable names.
  1019. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1020. as_fn_error "invalid package name: $ac_useropt"
  1021. ac_useropt_orig=$ac_useropt
  1022. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1023. case $ac_user_opts in
  1024. *"
  1025. "with_$ac_useropt"
  1026. "*) ;;
  1027. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1028. ac_unrecognized_sep=', ';;
  1029. esac
  1030. eval with_$ac_useropt=\$ac_optarg ;;
  1031. -without-* | --without-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=no ;;
  1046. --x)
  1047. # Obsolete; use --with-x.
  1048. with_x=yes ;;
  1049. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1050. | --x-incl | --x-inc | --x-in | --x-i)
  1051. ac_prev=x_includes ;;
  1052. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1053. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1054. x_includes=$ac_optarg ;;
  1055. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1056. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1057. ac_prev=x_libraries ;;
  1058. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1059. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1060. x_libraries=$ac_optarg ;;
  1061. -*) as_fn_error "unrecognized option: \`$ac_option'
  1062. Try \`$0 --help' for more information."
  1063. ;;
  1064. *=*)
  1065. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1066. # Reject names that are not valid shell variable names.
  1067. case $ac_envvar in #(
  1068. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1069. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1070. esac
  1071. eval $ac_envvar=\$ac_optarg
  1072. export $ac_envvar ;;
  1073. *)
  1074. # FIXME: should be removed in autoconf 3.0.
  1075. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1076. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1077. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1078. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1079. ;;
  1080. esac
  1081. done
  1082. if test -n "$ac_prev"; then
  1083. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1084. as_fn_error "missing argument to $ac_option"
  1085. fi
  1086. if test -n "$ac_unrecognized_opts"; then
  1087. case $enable_option_checking in
  1088. no) ;;
  1089. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1090. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1091. esac
  1092. fi
  1093. # Check all directory arguments for consistency.
  1094. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1095. datadir sysconfdir sharedstatedir localstatedir includedir \
  1096. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1097. libdir localedir mandir
  1098. do
  1099. eval ac_val=\$$ac_var
  1100. # Remove trailing slashes.
  1101. case $ac_val in
  1102. */ )
  1103. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1104. eval $ac_var=\$ac_val;;
  1105. esac
  1106. # Be sure to have absolute directory names.
  1107. case $ac_val in
  1108. [\\/$]* | ?:[\\/]* ) continue;;
  1109. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1110. esac
  1111. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1112. done
  1113. # There might be people who depend on the old broken behavior: `$host'
  1114. # used to hold the argument of --host etc.
  1115. # FIXME: To remove some day.
  1116. build=$build_alias
  1117. host=$host_alias
  1118. target=$target_alias
  1119. # FIXME: To remove some day.
  1120. if test "x$host_alias" != x; then
  1121. if test "x$build_alias" = x; then
  1122. cross_compiling=maybe
  1123. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1124. If a cross compiler is detected then cross compile mode will be used." >&2
  1125. elif test "x$build_alias" != "x$host_alias"; then
  1126. cross_compiling=yes
  1127. fi
  1128. fi
  1129. ac_tool_prefix=
  1130. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1131. test "$silent" = yes && exec 6>/dev/null
  1132. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1133. ac_ls_di=`ls -di .` &&
  1134. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1135. as_fn_error "working directory cannot be determined"
  1136. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1137. as_fn_error "pwd does not report name of working directory"
  1138. # Find the source files, if location was not specified.
  1139. if test -z "$srcdir"; then
  1140. ac_srcdir_defaulted=yes
  1141. # Try the directory containing this script, then the parent directory.
  1142. ac_confdir=`$as_dirname -- "$as_myself" ||
  1143. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1144. X"$as_myself" : 'X\(//\)[^/]' \| \
  1145. X"$as_myself" : 'X\(//\)$' \| \
  1146. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1147. $as_echo X"$as_myself" |
  1148. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\/\)[^/].*/{
  1153. s//\1/
  1154. q
  1155. }
  1156. /^X\(\/\/\)$/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\).*/{
  1161. s//\1/
  1162. q
  1163. }
  1164. s/.*/./; q'`
  1165. srcdir=$ac_confdir
  1166. if test ! -r "$srcdir/$ac_unique_file"; then
  1167. srcdir=..
  1168. fi
  1169. else
  1170. ac_srcdir_defaulted=no
  1171. fi
  1172. if test ! -r "$srcdir/$ac_unique_file"; then
  1173. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1174. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1175. fi
  1176. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1177. ac_abs_confdir=`(
  1178. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1179. pwd)`
  1180. # When building in place, set srcdir=.
  1181. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1182. srcdir=.
  1183. fi
  1184. # Remove unnecessary trailing slashes from srcdir.
  1185. # Double slashes in file names in object file debugging info
  1186. # mess up M-x gdb in Emacs.
  1187. case $srcdir in
  1188. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1189. esac
  1190. for ac_var in $ac_precious_vars; do
  1191. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1192. eval ac_env_${ac_var}_value=\$${ac_var}
  1193. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1194. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1195. done
  1196. #
  1197. # Report the --help message.
  1198. #
  1199. if test "$ac_init_help" = "long"; then
  1200. # Omit some internal or obsolete options to make the list less imposing.
  1201. # This message is too long to be a string in the A/UX 3.1 sh.
  1202. cat <<_ACEOF
  1203. \`configure' configures this package to adapt to many kinds of systems.
  1204. Usage: $0 [OPTION]... [VAR=VALUE]...
  1205. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1206. VAR=VALUE. See below for descriptions of some of the useful variables.
  1207. Defaults for the options are specified in brackets.
  1208. Configuration:
  1209. -h, --help display this help and exit
  1210. --help=short display options specific to this package
  1211. --help=recursive display the short help of all the included packages
  1212. -V, --version display version information and exit
  1213. -q, --quiet, --silent do not print \`checking...' messages
  1214. --cache-file=FILE cache test results in FILE [disabled]
  1215. -C, --config-cache alias for \`--cache-file=config.cache'
  1216. -n, --no-create do not create output files
  1217. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1218. Installation directories:
  1219. --prefix=PREFIX install architecture-independent files in PREFIX
  1220. [$ac_default_prefix]
  1221. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1222. [PREFIX]
  1223. By default, \`make install' will install all the files in
  1224. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1225. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1226. for instance \`--prefix=\$HOME'.
  1227. For better control, use the options below.
  1228. Fine tuning of the installation directories:
  1229. --bindir=DIR user executables [EPREFIX/bin]
  1230. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1231. --libexecdir=DIR program executables [EPREFIX/libexec]
  1232. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1233. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1234. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1235. --libdir=DIR object code libraries [EPREFIX/lib]
  1236. --includedir=DIR C header files [PREFIX/include]
  1237. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1238. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1239. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1240. --infodir=DIR info documentation [DATAROOTDIR/info]
  1241. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1242. --mandir=DIR man documentation [DATAROOTDIR/man]
  1243. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1244. --htmldir=DIR html documentation [DOCDIR]
  1245. --dvidir=DIR dvi documentation [DOCDIR]
  1246. --pdfdir=DIR pdf documentation [DOCDIR]
  1247. --psdir=DIR ps documentation [DOCDIR]
  1248. _ACEOF
  1249. cat <<\_ACEOF
  1250. Program names:
  1251. --program-prefix=PREFIX prepend PREFIX to installed program names
  1252. --program-suffix=SUFFIX append SUFFIX to installed program names
  1253. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1254. System types:
  1255. --build=BUILD configure for building on BUILD [guessed]
  1256. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1257. --target=TARGET configure for building compilers for TARGET [HOST]
  1258. _ACEOF
  1259. fi
  1260. if test -n "$ac_init_help"; then
  1261. cat <<\_ACEOF
  1262. Optional Features:
  1263. --disable-option-checking ignore unrecognized --enable/--with options
  1264. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1265. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1266. --enable-plugins Enable support for plugins
  1267. --enable-shared[=PKGS] build shared libraries [default=yes]
  1268. --enable-static[=PKGS] build static libraries [default=yes]
  1269. --enable-fast-install[=PKGS]
  1270. optimize for fast installation [default=yes]
  1271. --disable-libtool-lock avoid locking (might break parallel builds)
  1272. --enable-maintainer-mode enable make rules and dependencies not useful
  1273. (and sometimes confusing) to the casual installer
  1274. --enable-sim-bswap Use Host specific BSWAP instruction
  1275. --enable-sim-cflags=opts
  1276. Extra CFLAGS for use in building simulator
  1277. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1278. itself)
  1279. --enable-sim-stdio Specify whether to use stdio for console
  1280. input/output
  1281. --enable-sim-trace=opts Enable tracing of simulated programs
  1282. --enable-sim-profile=opts
  1283. Enable profiling flags
  1284. --enable-sim-endian=endian
  1285. Specify target byte endian orientation
  1286. --enable-sim-alignment=align
  1287. Specify strict, nonstrict or forced alignment of
  1288. memory accesses
  1289. --enable-sim-hostendian=end
  1290. Specify host byte endian orientation
  1291. --enable-sim-environment=environment
  1292. Specify mixed, user, virtual or operating
  1293. environment
  1294. --enable-sim-inline=inlines
  1295. Specify which functions should be inlined
  1296. --enable-werror treat compile warnings as errors
  1297. --enable-build-warnings enable build-time compiler warnings if gcc is used
  1298. --enable-sim-build-warnings
  1299. enable SIM specific build-time compiler warnings if
  1300. gcc is used
  1301. Optional Packages:
  1302. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1303. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1304. --with-system-zlib use installed libz
  1305. --with-pic try to use only PIC/non-PIC objects [default=use
  1306. both]
  1307. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1308. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1309. --with-bugurl=URL Direct users to URL to report a bug
  1310. Some influential environment variables:
  1311. CC C compiler command
  1312. CFLAGS C compiler flags
  1313. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1314. nonstandard directory <lib dir>
  1315. LIBS libraries to pass to the linker, e.g. -l<library>
  1316. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1317. you have headers in a nonstandard directory <include dir>
  1318. CPP C preprocessor
  1319. Use these variables to override the choices made by `configure' or to help
  1320. it to find libraries and programs with nonstandard names/locations.
  1321. Report bugs to the package provider.
  1322. _ACEOF
  1323. ac_status=$?
  1324. fi
  1325. if test "$ac_init_help" = "recursive"; then
  1326. # If there are subdirs, report their specific --help.
  1327. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1328. test -d "$ac_dir" ||
  1329. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1330. continue
  1331. ac_builddir=.
  1332. case "$ac_dir" in
  1333. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1334. *)
  1335. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1336. # A ".." for each directory in $ac_dir_suffix.
  1337. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1338. case $ac_top_builddir_sub in
  1339. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1340. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1341. esac ;;
  1342. esac
  1343. ac_abs_top_builddir=$ac_pwd
  1344. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1345. # for backward compatibility:
  1346. ac_top_builddir=$ac_top_build_prefix
  1347. case $srcdir in
  1348. .) # We are building in place.
  1349. ac_srcdir=.
  1350. ac_top_srcdir=$ac_top_builddir_sub
  1351. ac_abs_top_srcdir=$ac_pwd ;;
  1352. [\\/]* | ?:[\\/]* ) # Absolute name.
  1353. ac_srcdir=$srcdir$ac_dir_suffix;
  1354. ac_top_srcdir=$srcdir
  1355. ac_abs_top_srcdir=$srcdir ;;
  1356. *) # Relative name.
  1357. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1358. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1359. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1360. esac
  1361. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1362. cd "$ac_dir" || { ac_status=$?; continue; }
  1363. # Check for guested configure.
  1364. if test -f "$ac_srcdir/configure.gnu"; then
  1365. echo &&
  1366. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1367. elif test -f "$ac_srcdir/configure"; then
  1368. echo &&
  1369. $SHELL "$ac_srcdir/configure" --help=recursive
  1370. else
  1371. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1372. fi || ac_status=$?
  1373. cd "$ac_pwd" || { ac_status=$?; break; }
  1374. done
  1375. fi
  1376. test -n "$ac_init_help" && exit $ac_status
  1377. if $ac_init_version; then
  1378. cat <<\_ACEOF
  1379. configure
  1380. generated by GNU Autoconf 2.64
  1381. Copyright (C) 2009 Free Software Foundation, Inc.
  1382. This configure script is free software; the Free Software Foundation
  1383. gives unlimited permission to copy, distribute and modify it.
  1384. _ACEOF
  1385. exit
  1386. fi
  1387. ## ------------------------ ##
  1388. ## Autoconf initialization. ##
  1389. ## ------------------------ ##
  1390. # ac_fn_c_try_compile LINENO
  1391. # --------------------------
  1392. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1393. ac_fn_c_try_compile ()
  1394. {
  1395. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1396. rm -f conftest.$ac_objext
  1397. if { { ac_try="$ac_compile"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_compile") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && {
  1413. test -z "$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. } && test -s conftest.$ac_objext; then :
  1416. ac_retval=0
  1417. else
  1418. $as_echo "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=1
  1421. fi
  1422. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1423. return $ac_retval
  1424. } # ac_fn_c_try_compile
  1425. # ac_fn_c_try_cpp LINENO
  1426. # ----------------------
  1427. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_cpp ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1432. case "(($ac_try" in
  1433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1434. *) ac_try_echo=$ac_try;;
  1435. esac
  1436. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1437. $as_echo "$ac_try_echo"; } >&5
  1438. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1439. ac_status=$?
  1440. if test -s conftest.err; then
  1441. grep -v '^ *+' conftest.err >conftest.er1
  1442. cat conftest.er1 >&5
  1443. mv -f conftest.er1 conftest.err
  1444. fi
  1445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1446. test $ac_status = 0; } >/dev/null && {
  1447. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1448. test ! -s conftest.err
  1449. }; then :
  1450. ac_retval=0
  1451. else
  1452. $as_echo "$as_me: failed program was:" >&5
  1453. sed 's/^/| /' conftest.$ac_ext >&5
  1454. ac_retval=1
  1455. fi
  1456. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1457. return $ac_retval
  1458. } # ac_fn_c_try_cpp
  1459. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1460. # -------------------------------------------------------
  1461. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1462. # the include files in INCLUDES and setting the cache variable VAR
  1463. # accordingly.
  1464. ac_fn_c_check_header_mongrel ()
  1465. {
  1466. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1467. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1469. $as_echo_n "checking for $2... " >&6; }
  1470. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1471. $as_echo_n "(cached) " >&6
  1472. fi
  1473. eval ac_res=\$$3
  1474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1475. $as_echo "$ac_res" >&6; }
  1476. else
  1477. # Is the header compilable?
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1479. $as_echo_n "checking $2 usability... " >&6; }
  1480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1481. /* end confdefs.h. */
  1482. $4
  1483. #include <$2>
  1484. _ACEOF
  1485. if ac_fn_c_try_compile "$LINENO"; then :
  1486. ac_header_compiler=yes
  1487. else
  1488. ac_header_compiler=no
  1489. fi
  1490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1492. $as_echo "$ac_header_compiler" >&6; }
  1493. # Is the header present?
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1495. $as_echo_n "checking $2 presence... " >&6; }
  1496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1497. /* end confdefs.h. */
  1498. #include <$2>
  1499. _ACEOF
  1500. if ac_fn_c_try_cpp "$LINENO"; then :
  1501. ac_header_preproc=yes
  1502. else
  1503. ac_header_preproc=no
  1504. fi
  1505. rm -f conftest.err conftest.$ac_ext
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1507. $as_echo "$ac_header_preproc" >&6; }
  1508. # So? What about this header?
  1509. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1510. yes:no: )
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1512. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1514. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1515. ;;
  1516. no:yes:* )
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1518. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1520. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1522. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1524. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1526. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1527. ;;
  1528. esac
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1530. $as_echo_n "checking for $2... " >&6; }
  1531. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1532. $as_echo_n "(cached) " >&6
  1533. else
  1534. eval "$3=\$ac_header_compiler"
  1535. fi
  1536. eval ac_res=\$$3
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1538. $as_echo "$ac_res" >&6; }
  1539. fi
  1540. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1541. } # ac_fn_c_check_header_mongrel
  1542. # ac_fn_c_try_run LINENO
  1543. # ----------------------
  1544. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1545. # that executables *can* be run.
  1546. ac_fn_c_try_run ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. if { { ac_try="$ac_link"
  1550. case "(($ac_try" in
  1551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1552. *) ac_try_echo=$ac_try;;
  1553. esac
  1554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1555. $as_echo "$ac_try_echo"; } >&5
  1556. (eval "$ac_link") 2>&5
  1557. ac_status=$?
  1558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1559. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1560. { { case "(($ac_try" in
  1561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1562. *) ac_try_echo=$ac_try;;
  1563. esac
  1564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1565. $as_echo "$ac_try_echo"; } >&5
  1566. (eval "$ac_try") 2>&5
  1567. ac_status=$?
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; }; }; then :
  1570. ac_retval=0
  1571. else
  1572. $as_echo "$as_me: program exited with status $ac_status" >&5
  1573. $as_echo "$as_me: failed program was:" >&5
  1574. sed 's/^/| /' conftest.$ac_ext >&5
  1575. ac_retval=$ac_status
  1576. fi
  1577. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1578. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1579. return $ac_retval
  1580. } # ac_fn_c_try_run
  1581. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1582. # -------------------------------------------------------
  1583. # Tests whether HEADER exists and can be compiled using the include files in
  1584. # INCLUDES, setting the cache variable VAR accordingly.
  1585. ac_fn_c_check_header_compile ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1589. $as_echo_n "checking for $2... " >&6; }
  1590. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1591. $as_echo_n "(cached) " >&6
  1592. else
  1593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1594. /* end confdefs.h. */
  1595. $4
  1596. #include <$2>
  1597. _ACEOF
  1598. if ac_fn_c_try_compile "$LINENO"; then :
  1599. eval "$3=yes"
  1600. else
  1601. eval "$3=no"
  1602. fi
  1603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1604. fi
  1605. eval ac_res=\$$3
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1607. $as_echo "$ac_res" >&6; }
  1608. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1609. } # ac_fn_c_check_header_compile
  1610. # ac_fn_c_try_link LINENO
  1611. # -----------------------
  1612. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1613. ac_fn_c_try_link ()
  1614. {
  1615. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1616. rm -f conftest.$ac_objext conftest$ac_exeext
  1617. if { { ac_try="$ac_link"
  1618. case "(($ac_try" in
  1619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1620. *) ac_try_echo=$ac_try;;
  1621. esac
  1622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1623. $as_echo "$ac_try_echo"; } >&5
  1624. (eval "$ac_link") 2>conftest.err
  1625. ac_status=$?
  1626. if test -s conftest.err; then
  1627. grep -v '^ *+' conftest.err >conftest.er1
  1628. cat conftest.er1 >&5
  1629. mv -f conftest.er1 conftest.err
  1630. fi
  1631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1632. test $ac_status = 0; } && {
  1633. test -z "$ac_c_werror_flag" ||
  1634. test ! -s conftest.err
  1635. } && test -s conftest$ac_exeext && {
  1636. test "$cross_compiling" = yes ||
  1637. $as_test_x conftest$ac_exeext
  1638. }; then :
  1639. ac_retval=0
  1640. else
  1641. $as_echo "$as_me: failed program was:" >&5
  1642. sed 's/^/| /' conftest.$ac_ext >&5
  1643. ac_retval=1
  1644. fi
  1645. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1646. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1647. # interfere with the next link command; also delete a directory that is
  1648. # left behind by Apple's compiler. We do this before executing the actions.
  1649. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1650. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1651. return $ac_retval
  1652. } # ac_fn_c_try_link
  1653. # ac_fn_c_check_func LINENO FUNC VAR
  1654. # ----------------------------------
  1655. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1656. ac_fn_c_check_func ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1660. $as_echo_n "checking for $2... " >&6; }
  1661. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1662. $as_echo_n "(cached) " >&6
  1663. else
  1664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1665. /* end confdefs.h. */
  1666. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1667. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1668. #define $2 innocuous_$2
  1669. /* System header to define __stub macros and hopefully few prototypes,
  1670. which can conflict with char $2 (); below.
  1671. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1672. <limits.h> exists even on freestanding compilers. */
  1673. #ifdef __STDC__
  1674. # include <limits.h>
  1675. #else
  1676. # include <assert.h>
  1677. #endif
  1678. #undef $2
  1679. /* Override any GCC internal prototype to avoid an error.
  1680. Use char because int might match the return type of a GCC
  1681. builtin and then its argument prototype would still apply. */
  1682. #ifdef __cplusplus
  1683. extern "C"
  1684. #endif
  1685. char $2 ();
  1686. /* The GNU C library defines this for functions which it implements
  1687. to always fail with ENOSYS. Some functions are actually named
  1688. something starting with __ and the normal name is an alias. */
  1689. #if defined __stub_$2 || defined __stub___$2
  1690. choke me
  1691. #endif
  1692. int
  1693. main ()
  1694. {
  1695. return $2 ();
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. if ac_fn_c_try_link "$LINENO"; then :
  1701. eval "$3=yes"
  1702. else
  1703. eval "$3=no"
  1704. fi
  1705. rm -f core conftest.err conftest.$ac_objext \
  1706. conftest$ac_exeext conftest.$ac_ext
  1707. fi
  1708. eval ac_res=\$$3
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1710. $as_echo "$ac_res" >&6; }
  1711. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1712. } # ac_fn_c_check_func
  1713. cat >config.log <<_ACEOF
  1714. This file contains any messages produced by compilers while
  1715. running configure, to aid debugging if configure makes a mistake.
  1716. It was created by $as_me, which was
  1717. generated by GNU Autoconf 2.64. Invocation command line was
  1718. $ $0 $@
  1719. _ACEOF
  1720. exec 5>>config.log
  1721. {
  1722. cat <<_ASUNAME
  1723. ## --------- ##
  1724. ## Platform. ##
  1725. ## --------- ##
  1726. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1727. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1728. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1729. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1730. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1731. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1732. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1733. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1734. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1735. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1736. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1737. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1738. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1739. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1740. _ASUNAME
  1741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1742. for as_dir in $PATH
  1743. do
  1744. IFS=$as_save_IFS
  1745. test -z "$as_dir" && as_dir=.
  1746. $as_echo "PATH: $as_dir"
  1747. done
  1748. IFS=$as_save_IFS
  1749. } >&5
  1750. cat >&5 <<_ACEOF
  1751. ## ----------- ##
  1752. ## Core tests. ##
  1753. ## ----------- ##
  1754. _ACEOF
  1755. # Keep a trace of the command line.
  1756. # Strip out --no-create and --no-recursion so they do not pile up.
  1757. # Strip out --silent because we don't want to record it for future runs.
  1758. # Also quote any args containing shell meta-characters.
  1759. # Make two passes to allow for proper duplicate-argument suppression.
  1760. ac_configure_args=
  1761. ac_configure_args0=
  1762. ac_configure_args1=
  1763. ac_must_keep_next=false
  1764. for ac_pass in 1 2
  1765. do
  1766. for ac_arg
  1767. do
  1768. case $ac_arg in
  1769. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1770. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1771. | -silent | --silent | --silen | --sile | --sil)
  1772. continue ;;
  1773. *\'*)
  1774. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1775. esac
  1776. case $ac_pass in
  1777. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1778. 2)
  1779. as_fn_append ac_configure_args1 " '$ac_arg'"
  1780. if test $ac_must_keep_next = true; then
  1781. ac_must_keep_next=false # Got value, back to normal.
  1782. else
  1783. case $ac_arg in
  1784. *=* | --config-cache | -C | -disable-* | --disable-* \
  1785. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1786. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1787. | -with-* | --with-* | -without-* | --without-* | --x)
  1788. case "$ac_configure_args0 " in
  1789. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1790. esac
  1791. ;;
  1792. -* ) ac_must_keep_next=true ;;
  1793. esac
  1794. fi
  1795. as_fn_append ac_configure_args " '$ac_arg'"
  1796. ;;
  1797. esac
  1798. done
  1799. done
  1800. { ac_configure_args0=; unset ac_configure_args0;}
  1801. { ac_configure_args1=; unset ac_configure_args1;}
  1802. # When interrupted or exit'd, cleanup temporary files, and complete
  1803. # config.log. We remove comments because anyway the quotes in there
  1804. # would cause problems or look ugly.
  1805. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1806. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1807. trap 'exit_status=$?
  1808. # Save into config.log some information that might help in debugging.
  1809. {
  1810. echo
  1811. cat <<\_ASBOX
  1812. ## ---------------- ##
  1813. ## Cache variables. ##
  1814. ## ---------------- ##
  1815. _ASBOX
  1816. echo
  1817. # The following way of writing the cache mishandles newlines in values,
  1818. (
  1819. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1820. eval ac_val=\$$ac_var
  1821. case $ac_val in #(
  1822. *${as_nl}*)
  1823. case $ac_var in #(
  1824. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1825. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1826. esac
  1827. case $ac_var in #(
  1828. _ | IFS | as_nl) ;; #(
  1829. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1830. *) { eval $ac_var=; unset $ac_var;} ;;
  1831. esac ;;
  1832. esac
  1833. done
  1834. (set) 2>&1 |
  1835. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1836. *${as_nl}ac_space=\ *)
  1837. sed -n \
  1838. "s/'\''/'\''\\\\'\'''\''/g;
  1839. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1840. ;; #(
  1841. *)
  1842. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1843. ;;
  1844. esac |
  1845. sort
  1846. )
  1847. echo
  1848. cat <<\_ASBOX
  1849. ## ----------------- ##
  1850. ## Output variables. ##
  1851. ## ----------------- ##
  1852. _ASBOX
  1853. echo
  1854. for ac_var in $ac_subst_vars
  1855. do
  1856. eval ac_val=\$$ac_var
  1857. case $ac_val in
  1858. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1859. esac
  1860. $as_echo "$ac_var='\''$ac_val'\''"
  1861. done | sort
  1862. echo
  1863. if test -n "$ac_subst_files"; then
  1864. cat <<\_ASBOX
  1865. ## ------------------- ##
  1866. ## File substitutions. ##
  1867. ## ------------------- ##
  1868. _ASBOX
  1869. echo
  1870. for ac_var in $ac_subst_files
  1871. do
  1872. eval ac_val=\$$ac_var
  1873. case $ac_val in
  1874. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1875. esac
  1876. $as_echo "$ac_var='\''$ac_val'\''"
  1877. done | sort
  1878. echo
  1879. fi
  1880. if test -s confdefs.h; then
  1881. cat <<\_ASBOX
  1882. ## ----------- ##
  1883. ## confdefs.h. ##
  1884. ## ----------- ##
  1885. _ASBOX
  1886. echo
  1887. cat confdefs.h
  1888. echo
  1889. fi
  1890. test "$ac_signal" != 0 &&
  1891. $as_echo "$as_me: caught signal $ac_signal"
  1892. $as_echo "$as_me: exit $exit_status"
  1893. } >&5
  1894. rm -f core *.core core.conftest.* &&
  1895. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1896. exit $exit_status
  1897. ' 0
  1898. for ac_signal in 1 2 13 15; do
  1899. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1900. done
  1901. ac_signal=0
  1902. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1903. rm -f -r conftest* confdefs.h
  1904. $as_echo "/* confdefs.h */" > confdefs.h
  1905. # Predefined preprocessor variables.
  1906. cat >>confdefs.h <<_ACEOF
  1907. #define PACKAGE_NAME "$PACKAGE_NAME"
  1908. _ACEOF
  1909. cat >>confdefs.h <<_ACEOF
  1910. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1911. _ACEOF
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1914. _ACEOF
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define PACKAGE_STRING "$PACKAGE_STRING"
  1917. _ACEOF
  1918. cat >>confdefs.h <<_ACEOF
  1919. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1920. _ACEOF
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_URL "$PACKAGE_URL"
  1923. _ACEOF
  1924. # Let the site file select an alternate cache file if it wants to.
  1925. # Prefer an explicitly selected file to automatically selected ones.
  1926. ac_site_file1=NONE
  1927. ac_site_file2=NONE
  1928. if test -n "$CONFIG_SITE"; then
  1929. ac_site_file1=$CONFIG_SITE
  1930. elif test "x$prefix" != xNONE; then
  1931. ac_site_file1=$prefix/share/config.site
  1932. ac_site_file2=$prefix/etc/config.site
  1933. else
  1934. ac_site_file1=$ac_default_prefix/share/config.site
  1935. ac_site_file2=$ac_default_prefix/etc/config.site
  1936. fi
  1937. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1938. do
  1939. test "x$ac_site_file" = xNONE && continue
  1940. if test -r "$ac_site_file"; then
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1942. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1943. sed 's/^/| /' "$ac_site_file" >&5
  1944. . "$ac_site_file"
  1945. fi
  1946. done
  1947. if test -r "$cache_file"; then
  1948. # Some versions of bash will fail to source /dev/null (special
  1949. # files actually), so we avoid doing that.
  1950. if test -f "$cache_file"; then
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1952. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1953. case $cache_file in
  1954. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1955. *) . "./$cache_file";;
  1956. esac
  1957. fi
  1958. else
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1960. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1961. >$cache_file
  1962. fi
  1963. # Check that the precious variables saved in the cache have kept the same
  1964. # value.
  1965. ac_cache_corrupted=false
  1966. for ac_var in $ac_precious_vars; do
  1967. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1968. eval ac_new_set=\$ac_env_${ac_var}_set
  1969. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1970. eval ac_new_val=\$ac_env_${ac_var}_value
  1971. case $ac_old_set,$ac_new_set in
  1972. set,)
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1974. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1975. ac_cache_corrupted=: ;;
  1976. ,set)
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1978. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1979. ac_cache_corrupted=: ;;
  1980. ,);;
  1981. *)
  1982. if test "x$ac_old_val" != "x$ac_new_val"; then
  1983. # differences in whitespace do not lead to failure.
  1984. ac_old_val_w=`echo x $ac_old_val`
  1985. ac_new_val_w=`echo x $ac_new_val`
  1986. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1988. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1989. ac_cache_corrupted=:
  1990. else
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1992. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1993. eval $ac_var=\$ac_old_val
  1994. fi
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1996. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1998. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1999. fi;;
  2000. esac
  2001. # Pass precious variables to config.status.
  2002. if test "$ac_new_set" = set; then
  2003. case $ac_new_val in
  2004. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2005. *) ac_arg=$ac_var=$ac_new_val ;;
  2006. esac
  2007. case " $ac_configure_args " in
  2008. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2009. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2010. esac
  2011. fi
  2012. done
  2013. if $ac_cache_corrupted; then
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2015. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2017. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2018. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2019. fi
  2020. ## -------------------- ##
  2021. ## Main body of script. ##
  2022. ## -------------------- ##
  2023. ac_ext=c
  2024. ac_cpp='$CPP $CPPFLAGS'
  2025. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2026. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2027. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2028. # This file contains common code used by all simulators.
  2029. #
  2030. # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
  2031. # directory. It is intended to be invoked before any target specific stuff.
  2032. # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
  2033. # It is intended to be invoked last.
  2034. #
  2035. # The simulator's configure.ac should look like:
  2036. #
  2037. # dnl Process this file with autoconf to produce a configure script.
  2038. # AC_PREREQ(2.64)dnl
  2039. # AC_INIT(Makefile.in)
  2040. # sinclude(../common/aclocal.m4)
  2041. #
  2042. # SIM_AC_COMMON
  2043. #
  2044. # ... target specific stuff ...
  2045. #
  2046. # SIM_AC_OUTPUT
  2047. # Include global overrides and fixes for Autoconf.
  2048. # _AC_CHECK_DECL_BODY
  2049. # -------------------
  2050. # Shell function body for AC_CHECK_DECL.
  2051. # _AC_CHECK_DECL_BODY
  2052. # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
  2053. # INCLUDES)
  2054. # -------------------------------------------------------------
  2055. # Helper to AC_CHECK_DECLS, which generates the check for a single
  2056. # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
  2057. # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
  2058. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2059. #
  2060. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2061. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  2062. # Written by Gordon Matzigkeit, 1996
  2063. #
  2064. # This file is free software; the Free Software Foundation gives
  2065. # unlimited permission to copy and/or distribute it, with or without
  2066. # modifications, as long as this notice is preserved.
  2067. # serial 56 LT_INIT
  2068. # LT_PREREQ(VERSION)
  2069. # ------------------
  2070. # Complain and exit if this libtool version is less that VERSION.
  2071. # _LT_CHECK_BUILDDIR
  2072. # ------------------
  2073. # Complain if the absolute build directory name contains unusual characters
  2074. # LT_INIT([OPTIONS])
  2075. # ------------------
  2076. # LT_INIT
  2077. # Old names:
  2078. # This is what autoupdate's m4 run will expand. It fires
  2079. # the warning (with _au_warn_XXX), outputs it into the
  2080. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2081. # the replacement expansion.
  2082. # This is an auxiliary macro that is also run when
  2083. # autoupdate runs m4. It simply calls m4_warning, but
  2084. # we need a wrapper so that each warning is emitted only
  2085. # once. We break the quoting in m4_warning's argument in
  2086. # order to expand this macro's arguments, not AU_DEFUN's.
  2087. # Finally, this is the expansion that is picked up by
  2088. # autoconf. It tells the user to run autoupdate, and
  2089. # then outputs the replacement expansion. We do not care
  2090. # about autoupdate's warning because that contains
  2091. # information on what to do *after* running autoupdate.
  2092. # This is what autoupdate's m4 run will expand. It fires
  2093. # the warning (with _au_warn_XXX), outputs it into the
  2094. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2095. # the replacement expansion.
  2096. # This is an auxiliary macro that is also run when
  2097. # autoupdate runs m4. It simply calls m4_warning, but
  2098. # we need a wrapper so that each warning is emitted only
  2099. # once. We break the quoting in m4_warning's argument in
  2100. # order to expand this macro's arguments, not AU_DEFUN's.
  2101. # Finally, this is the expansion that is picked up by
  2102. # autoconf. It tells the user to run autoupdate, and
  2103. # then outputs the replacement expansion. We do not care
  2104. # about autoupdate's warning because that contains
  2105. # information on what to do *after* running autoupdate.
  2106. # _LT_CC_BASENAME(CC)
  2107. # -------------------
  2108. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2109. # _LT_FILEUTILS_DEFAULTS
  2110. # ----------------------
  2111. # It is okay to use these file commands and assume they have been set
  2112. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2113. # _LT_FILEUTILS_DEFAULTS
  2114. # _LT_SETUP
  2115. # ---------
  2116. # _LT_SETUP
  2117. # _LT_PREPARE_SED_QUOTE_VARS
  2118. # --------------------------
  2119. # Define a few sed substitution that help us do robust quoting.
  2120. # _LT_PROG_LTMAIN
  2121. # ---------------
  2122. # Note that this code is called both from `configure', and `config.status'
  2123. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2124. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2125. # so we pass a copy along to make sure it has a sensible value anyway.
  2126. # _LT_PROG_LTMAIN
  2127. ## ------------------------------------- ##
  2128. ## Accumulate code for creating libtool. ##
  2129. ## ------------------------------------- ##
  2130. # So that we can recreate a full libtool script including additional
  2131. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2132. # in macros and then make a single call at the end using the `libtool'
  2133. # label.
  2134. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2135. # ----------------------------------------
  2136. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2137. # Initialize.
  2138. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2139. # ------------------------------
  2140. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2141. # Initialize.
  2142. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2143. # -----------------------------------------------------
  2144. # _LT_FORMAT_COMMENT([COMMENT])
  2145. # -----------------------------
  2146. # Add leading comment marks to the start of each line, and a trailing
  2147. # full-stop to the whole comment if one is not present already.
  2148. ## ------------------------ ##
  2149. ## FIXME: Eliminate VARNAME ##
  2150. ## ------------------------ ##
  2151. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2152. # -------------------------------------------------------------------
  2153. # CONFIGNAME is the name given to the value in the libtool script.
  2154. # VARNAME is the (base) name used in the configure script.
  2155. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2156. # VARNAME. Any other value will be used directly.
  2157. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2158. # --------------------------------------------------------
  2159. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2160. # ------------------------------------------------
  2161. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2162. # ---------------------------------------------------------
  2163. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2164. # --------------------------------------------------
  2165. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2166. # ---------------------------------------------------
  2167. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2168. # ---------------------------------------------------
  2169. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2170. # ------------------------------------------------
  2171. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2172. # ------------------------------------
  2173. # Quote a variable value, and forward it to `config.status' so that its
  2174. # declaration there will have the same value as in `configure'. VARNAME
  2175. # must have a single quote delimited value for this to work.
  2176. # _LT_CONFIG_STATUS_DECLARATIONS
  2177. # ------------------------------
  2178. # We delimit libtool config variables with single quotes, so when
  2179. # we write them to config.status, we have to be sure to quote all
  2180. # embedded single quotes properly. In configure, this macro expands
  2181. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2182. #
  2183. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2184. # _LT_LIBTOOL_TAGS
  2185. # ----------------
  2186. # Output comment and list of tags supported by the script
  2187. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2188. # -----------------------------------
  2189. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2190. # expand to a commented shell variable setting:
  2191. #
  2192. # # Some comment about what VAR is for.
  2193. # visible_name=$lt_internal_name
  2194. # _LT_LIBTOOL_CONFIG_VARS
  2195. # -----------------------
  2196. # Produce commented declarations of non-tagged libtool config variables
  2197. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2198. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2199. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2200. # _LT_LIBTOOL_TAG_VARS(TAG)
  2201. # -------------------------
  2202. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2203. # ------------------------------
  2204. # _LT_CONFIG_COMMANDS
  2205. # -------------------
  2206. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2207. # variables for single and double quote escaping we saved from calls
  2208. # to _LT_DECL, we can put quote escaped variables declarations
  2209. # into `config.status', and then the shell code to quote escape them in
  2210. # for loops in `config.status'. Finally, any additional code accumulated
  2211. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2212. #_LT_CONFIG_COMMANDS
  2213. # Initialize.
  2214. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2215. # ------------------------------------
  2216. # Generate a child script FILE with all initialization necessary to
  2217. # reuse the environment learned by the parent script, and make the
  2218. # file executable. If COMMENT is supplied, it is inserted after the
  2219. # `#!' sequence but before initialization text begins. After this
  2220. # macro, additional text can be appended to FILE to form the body of
  2221. # the child script. The macro ends with non-zero status if the
  2222. # file could not be fully written (such as if the disk is full).
  2223. # _LT_GENERATED_FILE_INIT
  2224. # LT_OUTPUT
  2225. # ---------
  2226. # This macro allows early generation of the libtool script (before
  2227. # AC_OUTPUT is called), incase it is used in configure for compilation
  2228. # tests.
  2229. # LT_OUTPUT
  2230. # _LT_CONFIG(TAG)
  2231. # ---------------
  2232. # If TAG is the built-in tag, create an initial libtool script with a
  2233. # default configuration from the untagged config vars. Otherwise add code
  2234. # to config.status for appending the configuration named by TAG from the
  2235. # matching tagged config vars.
  2236. # _LT_CONFIG
  2237. # LT_SUPPORTED_TAG(TAG)
  2238. # ---------------------
  2239. # Trace this macro to discover what tags are supported by the libtool
  2240. # --tag option, using:
  2241. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2242. # C support is built-in for now
  2243. # LT_LANG(LANG)
  2244. # -------------
  2245. # Enable libtool support for the given language if not already enabled.
  2246. # LT_LANG
  2247. # _LT_LANG(LANGNAME)
  2248. # ------------------
  2249. # _LT_LANG
  2250. # _LT_LANG_DEFAULT_CONFIG
  2251. # -----------------------
  2252. # _LT_LANG_DEFAULT_CONFIG
  2253. # Obsolete macros:
  2254. # This is what autoupdate's m4 run will expand. It fires
  2255. # the warning (with _au_warn_XXX), outputs it into the
  2256. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2257. # the replacement expansion.
  2258. # This is an auxiliary macro that is also run when
  2259. # autoupdate runs m4. It simply calls m4_warning, but
  2260. # we need a wrapper so that each warning is emitted only
  2261. # once. We break the quoting in m4_warning's argument in
  2262. # order to expand this macro's arguments, not AU_DEFUN's.
  2263. # Finally, this is the expansion that is picked up by
  2264. # autoconf. It tells the user to run autoupdate, and
  2265. # then outputs the replacement expansion. We do not care
  2266. # about autoupdate's warning because that contains
  2267. # information on what to do *after* running autoupdate.
  2268. # This is what autoupdate's m4 run will expand. It fires
  2269. # the warning (with _au_warn_XXX), outputs it into the
  2270. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2271. # the replacement expansion.
  2272. # This is an auxiliary macro that is also run when
  2273. # autoupdate runs m4. It simply calls m4_warning, but
  2274. # we need a wrapper so that each warning is emitted only
  2275. # once. We break the quoting in m4_warning's argument in
  2276. # order to expand this macro's arguments, not AU_DEFUN's.
  2277. # Finally, this is the expansion that is picked up by
  2278. # autoconf. It tells the user to run autoupdate, and
  2279. # then outputs the replacement expansion. We do not care
  2280. # about autoupdate's warning because that contains
  2281. # information on what to do *after* running autoupdate.
  2282. # This is what autoupdate's m4 run will expand. It fires
  2283. # the warning (with _au_warn_XXX), outputs it into the
  2284. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2285. # the replacement expansion.
  2286. # This is an auxiliary macro that is also run when
  2287. # autoupdate runs m4. It simply calls m4_warning, but
  2288. # we need a wrapper so that each warning is emitted only
  2289. # once. We break the quoting in m4_warning's argument in
  2290. # order to expand this macro's arguments, not AU_DEFUN's.
  2291. # Finally, this is the expansion that is picked up by
  2292. # autoconf. It tells the user to run autoupdate, and
  2293. # then outputs the replacement expansion. We do not care
  2294. # about autoupdate's warning because that contains
  2295. # information on what to do *after* running autoupdate.
  2296. # This is what autoupdate's m4 run will expand. It fires
  2297. # the warning (with _au_warn_XXX), outputs it into the
  2298. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2299. # the replacement expansion.
  2300. # This is an auxiliary macro that is also run when
  2301. # autoupdate runs m4. It simply calls m4_warning, but
  2302. # we need a wrapper so that each warning is emitted only
  2303. # once. We break the quoting in m4_warning's argument in
  2304. # order to expand this macro's arguments, not AU_DEFUN's.
  2305. # Finally, this is the expansion that is picked up by
  2306. # autoconf. It tells the user to run autoupdate, and
  2307. # then outputs the replacement expansion. We do not care
  2308. # about autoupdate's warning because that contains
  2309. # information on what to do *after* running autoupdate.
  2310. # This is what autoupdate's m4 run will expand. It fires
  2311. # the warning (with _au_warn_XXX), outputs it into the
  2312. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2313. # the replacement expansion.
  2314. # This is an auxiliary macro that is also run when
  2315. # autoupdate runs m4. It simply calls m4_warning, but
  2316. # we need a wrapper so that each warning is emitted only
  2317. # once. We break the quoting in m4_warning's argument in
  2318. # order to expand this macro's arguments, not AU_DEFUN's.
  2319. # Finally, this is the expansion that is picked up by
  2320. # autoconf. It tells the user to run autoupdate, and
  2321. # then outputs the replacement expansion. We do not care
  2322. # about autoupdate's warning because that contains
  2323. # information on what to do *after* running autoupdate.
  2324. # _LT_TAG_COMPILER
  2325. # ----------------
  2326. # _LT_TAG_COMPILER
  2327. # _LT_COMPILER_BOILERPLATE
  2328. # ------------------------
  2329. # Check for compiler boilerplate output or warnings with
  2330. # the simple compiler test code.
  2331. # _LT_COMPILER_BOILERPLATE
  2332. # _LT_LINKER_BOILERPLATE
  2333. # ----------------------
  2334. # Check for linker boilerplate output or warnings with
  2335. # the simple link test code.
  2336. # _LT_LINKER_BOILERPLATE
  2337. # _LT_REQUIRED_DARWIN_CHECKS
  2338. # -------------------------
  2339. # _LT_DARWIN_LINKER_FEATURES
  2340. # --------------------------
  2341. # Checks for linker and compiler features on darwin
  2342. # _LT_SYS_MODULE_PATH_AIX
  2343. # -----------------------
  2344. # Links a minimal program and checks the executable
  2345. # for the system default hardcoded library path. In most cases,
  2346. # this is /usr/lib:/lib, but when the MPI compilers are used
  2347. # the location of the communication and MPI libs are included too.
  2348. # If we don't find anything, use the default library path according
  2349. # to the aix ld manual.
  2350. # _LT_SYS_MODULE_PATH_AIX
  2351. # _LT_SHELL_INIT(ARG)
  2352. # -------------------
  2353. # _LT_SHELL_INIT
  2354. # _LT_PROG_ECHO_BACKSLASH
  2355. # -----------------------
  2356. # Find how we can fake an echo command that does not interpret backslash.
  2357. # In particular, with Autoconf 2.60 or later we add some code to the start
  2358. # of the generated configure script which will find a shell with a builtin
  2359. # printf (which we can use as an echo command).
  2360. # _LT_PROG_ECHO_BACKSLASH
  2361. # _LT_ENABLE_LOCK
  2362. # ---------------
  2363. # _LT_ENABLE_LOCK
  2364. # _LT_CMD_OLD_ARCHIVE
  2365. # -------------------
  2366. # _LT_CMD_OLD_ARCHIVE
  2367. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2368. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2369. # ----------------------------------------------------------------
  2370. # Check whether the given compiler option works
  2371. # _LT_COMPILER_OPTION
  2372. # Old name:
  2373. # This is what autoupdate's m4 run will expand. It fires
  2374. # the warning (with _au_warn_XXX), outputs it into the
  2375. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2376. # the replacement expansion.
  2377. # This is an auxiliary macro that is also run when
  2378. # autoupdate runs m4. It simply calls m4_warning, but
  2379. # we need a wrapper so that each warning is emitted only
  2380. # once. We break the quoting in m4_warning's argument in
  2381. # order to expand this macro's arguments, not AU_DEFUN's.
  2382. # Finally, this is the expansion that is picked up by
  2383. # autoconf. It tells the user to run autoupdate, and
  2384. # then outputs the replacement expansion. We do not care
  2385. # about autoupdate's warning because that contains
  2386. # information on what to do *after* running autoupdate.
  2387. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2388. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2389. # ----------------------------------------------------
  2390. # Check whether the given linker option works
  2391. # _LT_LINKER_OPTION
  2392. # Old name:
  2393. # This is what autoupdate's m4 run will expand. It fires
  2394. # the warning (with _au_warn_XXX), outputs it into the
  2395. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2396. # the replacement expansion.
  2397. # This is an auxiliary macro that is also run when
  2398. # autoupdate runs m4. It simply calls m4_warning, but
  2399. # we need a wrapper so that each warning is emitted only
  2400. # once. We break the quoting in m4_warning's argument in
  2401. # order to expand this macro's arguments, not AU_DEFUN's.
  2402. # Finally, this is the expansion that is picked up by
  2403. # autoconf. It tells the user to run autoupdate, and
  2404. # then outputs the replacement expansion. We do not care
  2405. # about autoupdate's warning because that contains
  2406. # information on what to do *after* running autoupdate.
  2407. # LT_CMD_MAX_LEN
  2408. #---------------
  2409. # LT_CMD_MAX_LEN
  2410. # Old name:
  2411. # This is what autoupdate's m4 run will expand. It fires
  2412. # the warning (with _au_warn_XXX), outputs it into the
  2413. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2414. # the replacement expansion.
  2415. # This is an auxiliary macro that is also run when
  2416. # autoupdate runs m4. It simply calls m4_warning, but
  2417. # we need a wrapper so that each warning is emitted only
  2418. # once. We break the quoting in m4_warning's argument in
  2419. # order to expand this macro's arguments, not AU_DEFUN's.
  2420. # Finally, this is the expansion that is picked up by
  2421. # autoconf. It tells the user to run autoupdate, and
  2422. # then outputs the replacement expansion. We do not care
  2423. # about autoupdate's warning because that contains
  2424. # information on what to do *after* running autoupdate.
  2425. # _LT_HEADER_DLFCN
  2426. # ----------------
  2427. # _LT_HEADER_DLFCN
  2428. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2429. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2430. # ----------------------------------------------------------------
  2431. # _LT_TRY_DLOPEN_SELF
  2432. # LT_SYS_DLOPEN_SELF
  2433. # ------------------
  2434. # LT_SYS_DLOPEN_SELF
  2435. # Old name:
  2436. # This is what autoupdate's m4 run will expand. It fires
  2437. # the warning (with _au_warn_XXX), outputs it into the
  2438. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2439. # the replacement expansion.
  2440. # This is an auxiliary macro that is also run when
  2441. # autoupdate runs m4. It simply calls m4_warning, but
  2442. # we need a wrapper so that each warning is emitted only
  2443. # once. We break the quoting in m4_warning's argument in
  2444. # order to expand this macro's arguments, not AU_DEFUN's.
  2445. # Finally, this is the expansion that is picked up by
  2446. # autoconf. It tells the user to run autoupdate, and
  2447. # then outputs the replacement expansion. We do not care
  2448. # about autoupdate's warning because that contains
  2449. # information on what to do *after* running autoupdate.
  2450. # _LT_COMPILER_C_O([TAGNAME])
  2451. # ---------------------------
  2452. # Check to see if options -c and -o are simultaneously supported by compiler.
  2453. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2454. # _LT_COMPILER_C_O
  2455. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2456. # ----------------------------------
  2457. # Check to see if we can do hard links to lock some files if needed
  2458. # _LT_COMPILER_FILE_LOCKS
  2459. # _LT_CHECK_OBJDIR
  2460. # ----------------
  2461. # _LT_CHECK_OBJDIR
  2462. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2463. # --------------------------------------
  2464. # Check hardcoding attributes.
  2465. # _LT_LINKER_HARDCODE_LIBPATH
  2466. # _LT_CMD_STRIPLIB
  2467. # ----------------
  2468. # _LT_CMD_STRIPLIB
  2469. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2470. # -----------------------------
  2471. # PORTME Fill in your ld.so characteristics
  2472. # _LT_SYS_DYNAMIC_LINKER
  2473. # _LT_PATH_TOOL_PREFIX(TOOL)
  2474. # --------------------------
  2475. # find a file program which can recognize shared library
  2476. # _LT_PATH_TOOL_PREFIX
  2477. # Old name:
  2478. # This is what autoupdate's m4 run will expand. It fires
  2479. # the warning (with _au_warn_XXX), outputs it into the
  2480. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2481. # the replacement expansion.
  2482. # This is an auxiliary macro that is also run when
  2483. # autoupdate runs m4. It simply calls m4_warning, but
  2484. # we need a wrapper so that each warning is emitted only
  2485. # once. We break the quoting in m4_warning's argument in
  2486. # order to expand this macro's arguments, not AU_DEFUN's.
  2487. # Finally, this is the expansion that is picked up by
  2488. # autoconf. It tells the user to run autoupdate, and
  2489. # then outputs the replacement expansion. We do not care
  2490. # about autoupdate's warning because that contains
  2491. # information on what to do *after* running autoupdate.
  2492. # _LT_PATH_MAGIC
  2493. # --------------
  2494. # find a file program which can recognize a shared library
  2495. # _LT_PATH_MAGIC
  2496. # LT_PATH_LD
  2497. # ----------
  2498. # find the pathname to the GNU or non-GNU linker
  2499. # LT_PATH_LD
  2500. # Old names:
  2501. # This is what autoupdate's m4 run will expand. It fires
  2502. # the warning (with _au_warn_XXX), outputs it into the
  2503. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2504. # the replacement expansion.
  2505. # This is an auxiliary macro that is also run when
  2506. # autoupdate runs m4. It simply calls m4_warning, but
  2507. # we need a wrapper so that each warning is emitted only
  2508. # once. We break the quoting in m4_warning's argument in
  2509. # order to expand this macro's arguments, not AU_DEFUN's.
  2510. # Finally, this is the expansion that is picked up by
  2511. # autoconf. It tells the user to run autoupdate, and
  2512. # then outputs the replacement expansion. We do not care
  2513. # about autoupdate's warning because that contains
  2514. # information on what to do *after* running autoupdate.
  2515. # This is what autoupdate's m4 run will expand. It fires
  2516. # the warning (with _au_warn_XXX), outputs it into the
  2517. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2518. # the replacement expansion.
  2519. # This is an auxiliary macro that is also run when
  2520. # autoupdate runs m4. It simply calls m4_warning, but
  2521. # we need a wrapper so that each warning is emitted only
  2522. # once. We break the quoting in m4_warning's argument in
  2523. # order to expand this macro's arguments, not AU_DEFUN's.
  2524. # Finally, this is the expansion that is picked up by
  2525. # autoconf. It tells the user to run autoupdate, and
  2526. # then outputs the replacement expansion. We do not care
  2527. # about autoupdate's warning because that contains
  2528. # information on what to do *after* running autoupdate.
  2529. # _LT_PATH_LD_GNU
  2530. #- --------------
  2531. # _LT_PATH_LD_GNU
  2532. # _LT_CMD_RELOAD
  2533. # --------------
  2534. # find reload flag for linker
  2535. # -- PORTME Some linkers may need a different reload flag.
  2536. # _LT_CMD_RELOAD
  2537. # _LT_CHECK_MAGIC_METHOD
  2538. # ----------------------
  2539. # how to check for library dependencies
  2540. # -- PORTME fill in with the dynamic library characteristics
  2541. # _LT_CHECK_MAGIC_METHOD
  2542. # LT_PATH_NM
  2543. # ----------
  2544. # find the pathname to a BSD- or MS-compatible name lister
  2545. # LT_PATH_NM
  2546. # Old names:
  2547. # This is what autoupdate's m4 run will expand. It fires
  2548. # the warning (with _au_warn_XXX), outputs it into the
  2549. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2550. # the replacement expansion.
  2551. # This is an auxiliary macro that is also run when
  2552. # autoupdate runs m4. It simply calls m4_warning, but
  2553. # we need a wrapper so that each warning is emitted only
  2554. # once. We break the quoting in m4_warning's argument in
  2555. # order to expand this macro's arguments, not AU_DEFUN's.
  2556. # Finally, this is the expansion that is picked up by
  2557. # autoconf. It tells the user to run autoupdate, and
  2558. # then outputs the replacement expansion. We do not care
  2559. # about autoupdate's warning because that contains
  2560. # information on what to do *after* running autoupdate.
  2561. # This is what autoupdate's m4 run will expand. It fires
  2562. # the warning (with _au_warn_XXX), outputs it into the
  2563. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2564. # the replacement expansion.
  2565. # This is an auxiliary macro that is also run when
  2566. # autoupdate runs m4. It simply calls m4_warning, but
  2567. # we need a wrapper so that each warning is emitted only
  2568. # once. We break the quoting in m4_warning's argument in
  2569. # order to expand this macro's arguments, not AU_DEFUN's.
  2570. # Finally, this is the expansion that is picked up by
  2571. # autoconf. It tells the user to run autoupdate, and
  2572. # then outputs the replacement expansion. We do not care
  2573. # about autoupdate's warning because that contains
  2574. # information on what to do *after* running autoupdate.
  2575. # LT_LIB_M
  2576. # --------
  2577. # check for math library
  2578. # LT_LIB_M
  2579. # Old name:
  2580. # This is what autoupdate's m4 run will expand. It fires
  2581. # the warning (with _au_warn_XXX), outputs it into the
  2582. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2583. # the replacement expansion.
  2584. # This is an auxiliary macro that is also run when
  2585. # autoupdate runs m4. It simply calls m4_warning, but
  2586. # we need a wrapper so that each warning is emitted only
  2587. # once. We break the quoting in m4_warning's argument in
  2588. # order to expand this macro's arguments, not AU_DEFUN's.
  2589. # Finally, this is the expansion that is picked up by
  2590. # autoconf. It tells the user to run autoupdate, and
  2591. # then outputs the replacement expansion. We do not care
  2592. # about autoupdate's warning because that contains
  2593. # information on what to do *after* running autoupdate.
  2594. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2595. # -------------------------------
  2596. # _LT_COMPILER_NO_RTTI
  2597. # _LT_CMD_GLOBAL_SYMBOLS
  2598. # ----------------------
  2599. # _LT_CMD_GLOBAL_SYMBOLS
  2600. # _LT_COMPILER_PIC([TAGNAME])
  2601. # ---------------------------
  2602. # _LT_COMPILER_PIC
  2603. # _LT_LINKER_SHLIBS([TAGNAME])
  2604. # ----------------------------
  2605. # See if the linker supports building shared libraries.
  2606. # _LT_LINKER_SHLIBS
  2607. # _LT_LANG_C_CONFIG([TAG])
  2608. # ------------------------
  2609. # Ensure that the configuration variables for a C compiler are suitably
  2610. # defined. These variables are subsequently used by _LT_CONFIG to write
  2611. # the compiler configuration to `libtool'.
  2612. # _LT_LANG_C_CONFIG
  2613. # _LT_LANG_CXX_CONFIG([TAG])
  2614. # --------------------------
  2615. # Ensure that the configuration variables for a C++ compiler are suitably
  2616. # defined. These variables are subsequently used by _LT_CONFIG to write
  2617. # the compiler configuration to `libtool'.
  2618. # _LT_LANG_CXX_CONFIG
  2619. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2620. # ---------------------------------
  2621. # Figure out "hidden" library dependencies from verbose
  2622. # compiler output when linking a shared library.
  2623. # Parse the compiler output and extract the necessary
  2624. # objects, libraries and library flags.
  2625. # _LT_SYS_HIDDEN_LIBDEPS
  2626. # _LT_LANG_F77_CONFIG([TAG])
  2627. # --------------------------
  2628. # Ensure that the configuration variables for a Fortran 77 compiler are
  2629. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2630. # to write the compiler configuration to `libtool'.
  2631. # _LT_LANG_F77_CONFIG
  2632. # _LT_LANG_FC_CONFIG([TAG])
  2633. # -------------------------
  2634. # Ensure that the configuration variables for a Fortran compiler are
  2635. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2636. # to write the compiler configuration to `libtool'.
  2637. # _LT_LANG_FC_CONFIG
  2638. # _LT_LANG_GCJ_CONFIG([TAG])
  2639. # --------------------------
  2640. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2641. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2642. # to write the compiler configuration to `libtool'.
  2643. # _LT_LANG_GCJ_CONFIG
  2644. # _LT_LANG_RC_CONFIG([TAG])
  2645. # -------------------------
  2646. # Ensure that the configuration variables for the Windows resource compiler
  2647. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2648. # to write the compiler configuration to `libtool'.
  2649. # _LT_LANG_RC_CONFIG
  2650. # LT_PROG_GCJ
  2651. # -----------
  2652. # Old name:
  2653. # This is what autoupdate's m4 run will expand. It fires
  2654. # the warning (with _au_warn_XXX), outputs it into the
  2655. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2656. # the replacement expansion.
  2657. # This is an auxiliary macro that is also run when
  2658. # autoupdate runs m4. It simply calls m4_warning, but
  2659. # we need a wrapper so that each warning is emitted only
  2660. # once. We break the quoting in m4_warning's argument in
  2661. # order to expand this macro's arguments, not AU_DEFUN's.
  2662. # Finally, this is the expansion that is picked up by
  2663. # autoconf. It tells the user to run autoupdate, and
  2664. # then outputs the replacement expansion. We do not care
  2665. # about autoupdate's warning because that contains
  2666. # information on what to do *after* running autoupdate.
  2667. # LT_PROG_RC
  2668. # ----------
  2669. # Old name:
  2670. # This is what autoupdate's m4 run will expand. It fires
  2671. # the warning (with _au_warn_XXX), outputs it into the
  2672. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2673. # the replacement expansion.
  2674. # This is an auxiliary macro that is also run when
  2675. # autoupdate runs m4. It simply calls m4_warning, but
  2676. # we need a wrapper so that each warning is emitted only
  2677. # once. We break the quoting in m4_warning's argument in
  2678. # order to expand this macro's arguments, not AU_DEFUN's.
  2679. # Finally, this is the expansion that is picked up by
  2680. # autoconf. It tells the user to run autoupdate, and
  2681. # then outputs the replacement expansion. We do not care
  2682. # about autoupdate's warning because that contains
  2683. # information on what to do *after* running autoupdate.
  2684. # _LT_DECL_EGREP
  2685. # --------------
  2686. # If we don't have a new enough Autoconf to choose the best grep
  2687. # available, choose the one first in the user's PATH.
  2688. # _LT_DECL_OBJDUMP
  2689. # --------------
  2690. # If we don't have a new enough Autoconf to choose the best objdump
  2691. # available, choose the one first in the user's PATH.
  2692. # _LT_DECL_SED
  2693. # ------------
  2694. # Check for a fully-functional sed program, that truncates
  2695. # as few characters as possible. Prefer GNU sed if found.
  2696. # _LT_DECL_SED
  2697. #m4_ifndef
  2698. # Old name:
  2699. # This is what autoupdate's m4 run will expand. It fires
  2700. # the warning (with _au_warn_XXX), outputs it into the
  2701. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2702. # the replacement expansion.
  2703. # This is an auxiliary macro that is also run when
  2704. # autoupdate runs m4. It simply calls m4_warning, but
  2705. # we need a wrapper so that each warning is emitted only
  2706. # once. We break the quoting in m4_warning's argument in
  2707. # order to expand this macro's arguments, not AU_DEFUN's.
  2708. # Finally, this is the expansion that is picked up by
  2709. # autoconf. It tells the user to run autoupdate, and
  2710. # then outputs the replacement expansion. We do not care
  2711. # about autoupdate's warning because that contains
  2712. # information on what to do *after* running autoupdate.
  2713. # _LT_CHECK_SHELL_FEATURES
  2714. # ------------------------
  2715. # Find out whether the shell is Bourne or XSI compatible,
  2716. # or has some other useful features.
  2717. # _LT_CHECK_SHELL_FEATURES
  2718. # _LT_PROG_XSI_SHELLFNS
  2719. # ---------------------
  2720. # Bourne and XSI compatible variants of some useful shell functions.
  2721. # Helper functions for option handling. -*- Autoconf -*-
  2722. #
  2723. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  2724. # Inc.
  2725. # Written by Gary V. Vaughan, 2004
  2726. #
  2727. # This file is free software; the Free Software Foundation gives
  2728. # unlimited permission to copy and/or distribute it, with or without
  2729. # modifications, as long as this notice is preserved.
  2730. # serial 6 ltoptions.m4
  2731. # This is to help aclocal find these macros, as it can't see m4_define.
  2732. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  2733. # ------------------------------------------
  2734. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  2735. # ---------------------------------------
  2736. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  2737. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  2738. # saved as a flag.
  2739. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  2740. # ------------------------------------------------------------
  2741. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  2742. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  2743. # -------------------------------------------------------
  2744. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  2745. # are set.
  2746. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  2747. # ----------------------------------------
  2748. # OPTION-LIST is a space-separated list of Libtool options associated
  2749. # with MACRO-NAME. If any OPTION has a matching handler declared with
  2750. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  2751. # the unknown option and exit.
  2752. # _LT_SET_OPTIONS
  2753. ## --------------------------------- ##
  2754. ## Macros to handle LT_INIT options. ##
  2755. ## --------------------------------- ##
  2756. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  2757. # -----------------------------------------
  2758. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  2759. # -----------------------------------------------
  2760. # LT_OPTION_DEFINE
  2761. # dlopen
  2762. # ------
  2763. # This is what autoupdate's m4 run will expand. It fires
  2764. # the warning (with _au_warn_XXX), outputs it into the
  2765. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2766. # the replacement expansion.
  2767. # This is an auxiliary macro that is also run when
  2768. # autoupdate runs m4. It simply calls m4_warning, but
  2769. # we need a wrapper so that each warning is emitted only
  2770. # once. We break the quoting in m4_warning's argument in
  2771. # order to expand this macro's arguments, not AU_DEFUN's.
  2772. # Finally, this is the expansion that is picked up by
  2773. # autoconf. It tells the user to run autoupdate, and
  2774. # then outputs the replacement expansion. We do not care
  2775. # about autoupdate's warning because that contains
  2776. # information on what to do *after* running autoupdate.
  2777. # win32-dll
  2778. # ---------
  2779. # Declare package support for building win32 dll's.
  2780. # win32-dll
  2781. # This is what autoupdate's m4 run will expand. It fires
  2782. # the warning (with _au_warn_XXX), outputs it into the
  2783. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2784. # the replacement expansion.
  2785. # This is an auxiliary macro that is also run when
  2786. # autoupdate runs m4. It simply calls m4_warning, but
  2787. # we need a wrapper so that each warning is emitted only
  2788. # once. We break the quoting in m4_warning's argument in
  2789. # order to expand this macro's arguments, not AU_DEFUN's.
  2790. # Finally, this is the expansion that is picked up by
  2791. # autoconf. It tells the user to run autoupdate, and
  2792. # then outputs the replacement expansion. We do not care
  2793. # about autoupdate's warning because that contains
  2794. # information on what to do *after* running autoupdate.
  2795. # _LT_ENABLE_SHARED([DEFAULT])
  2796. # ----------------------------
  2797. # implement the --enable-shared flag, and supports the `shared' and
  2798. # `disable-shared' LT_INIT options.
  2799. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2800. # _LT_ENABLE_SHARED
  2801. # Old names:
  2802. # This is what autoupdate's m4 run will expand. It fires
  2803. # the warning (with _au_warn_XXX), outputs it into the
  2804. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2805. # the replacement expansion.
  2806. # This is an auxiliary macro that is also run when
  2807. # autoupdate runs m4. It simply calls m4_warning, but
  2808. # we need a wrapper so that each warning is emitted only
  2809. # once. We break the quoting in m4_warning's argument in
  2810. # order to expand this macro's arguments, not AU_DEFUN's.
  2811. # Finally, this is the expansion that is picked up by
  2812. # autoconf. It tells the user to run autoupdate, and
  2813. # then outputs the replacement expansion. We do not care
  2814. # about autoupdate's warning because that contains
  2815. # information on what to do *after* running autoupdate.
  2816. # This is what autoupdate's m4 run will expand. It fires
  2817. # the warning (with _au_warn_XXX), outputs it into the
  2818. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2819. # the replacement expansion.
  2820. # This is an auxiliary macro that is also run when
  2821. # autoupdate runs m4. It simply calls m4_warning, but
  2822. # we need a wrapper so that each warning is emitted only
  2823. # once. We break the quoting in m4_warning's argument in
  2824. # order to expand this macro's arguments, not AU_DEFUN's.
  2825. # Finally, this is the expansion that is picked up by
  2826. # autoconf. It tells the user to run autoupdate, and
  2827. # then outputs the replacement expansion. We do not care
  2828. # about autoupdate's warning because that contains
  2829. # information on what to do *after* running autoupdate.
  2830. # _LT_ENABLE_STATIC([DEFAULT])
  2831. # ----------------------------
  2832. # implement the --enable-static flag, and support the `static' and
  2833. # `disable-static' LT_INIT options.
  2834. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2835. # _LT_ENABLE_STATIC
  2836. # Old names:
  2837. # This is what autoupdate's m4 run will expand. It fires
  2838. # the warning (with _au_warn_XXX), outputs it into the
  2839. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2840. # the replacement expansion.
  2841. # This is an auxiliary macro that is also run when
  2842. # autoupdate runs m4. It simply calls m4_warning, but
  2843. # we need a wrapper so that each warning is emitted only
  2844. # once. We break the quoting in m4_warning's argument in
  2845. # order to expand this macro's arguments, not AU_DEFUN's.
  2846. # Finally, this is the expansion that is picked up by
  2847. # autoconf. It tells the user to run autoupdate, and
  2848. # then outputs the replacement expansion. We do not care
  2849. # about autoupdate's warning because that contains
  2850. # information on what to do *after* running autoupdate.
  2851. # This is what autoupdate's m4 run will expand. It fires
  2852. # the warning (with _au_warn_XXX), outputs it into the
  2853. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2854. # the replacement expansion.
  2855. # This is an auxiliary macro that is also run when
  2856. # autoupdate runs m4. It simply calls m4_warning, but
  2857. # we need a wrapper so that each warning is emitted only
  2858. # once. We break the quoting in m4_warning's argument in
  2859. # order to expand this macro's arguments, not AU_DEFUN's.
  2860. # Finally, this is the expansion that is picked up by
  2861. # autoconf. It tells the user to run autoupdate, and
  2862. # then outputs the replacement expansion. We do not care
  2863. # about autoupdate's warning because that contains
  2864. # information on what to do *after* running autoupdate.
  2865. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  2866. # ----------------------------------
  2867. # implement the --enable-fast-install flag, and support the `fast-install'
  2868. # and `disable-fast-install' LT_INIT options.
  2869. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2870. # _LT_ENABLE_FAST_INSTALL
  2871. # Old names:
  2872. # This is what autoupdate's m4 run will expand. It fires
  2873. # the warning (with _au_warn_XXX), outputs it into the
  2874. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2875. # the replacement expansion.
  2876. # This is an auxiliary macro that is also run when
  2877. # autoupdate runs m4. It simply calls m4_warning, but
  2878. # we need a wrapper so that each warning is emitted only
  2879. # once. We break the quoting in m4_warning's argument in
  2880. # order to expand this macro's arguments, not AU_DEFUN's.
  2881. # Finally, this is the expansion that is picked up by
  2882. # autoconf. It tells the user to run autoupdate, and
  2883. # then outputs the replacement expansion. We do not care
  2884. # about autoupdate's warning because that contains
  2885. # information on what to do *after* running autoupdate.
  2886. # This is what autoupdate's m4 run will expand. It fires
  2887. # the warning (with _au_warn_XXX), outputs it into the
  2888. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2889. # the replacement expansion.
  2890. # This is an auxiliary macro that is also run when
  2891. # autoupdate runs m4. It simply calls m4_warning, but
  2892. # we need a wrapper so that each warning is emitted only
  2893. # once. We break the quoting in m4_warning's argument in
  2894. # order to expand this macro's arguments, not AU_DEFUN's.
  2895. # Finally, this is the expansion that is picked up by
  2896. # autoconf. It tells the user to run autoupdate, and
  2897. # then outputs the replacement expansion. We do not care
  2898. # about autoupdate's warning because that contains
  2899. # information on what to do *after* running autoupdate.
  2900. # _LT_WITH_PIC([MODE])
  2901. # --------------------
  2902. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  2903. # LT_INIT options.
  2904. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2905. # _LT_WITH_PIC
  2906. # Old name:
  2907. # This is what autoupdate's m4 run will expand. It fires
  2908. # the warning (with _au_warn_XXX), outputs it into the
  2909. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2910. # the replacement expansion.
  2911. # This is an auxiliary macro that is also run when
  2912. # autoupdate runs m4. It simply calls m4_warning, but
  2913. # we need a wrapper so that each warning is emitted only
  2914. # once. We break the quoting in m4_warning's argument in
  2915. # order to expand this macro's arguments, not AU_DEFUN's.
  2916. # Finally, this is the expansion that is picked up by
  2917. # autoconf. It tells the user to run autoupdate, and
  2918. # then outputs the replacement expansion. We do not care
  2919. # about autoupdate's warning because that contains
  2920. # information on what to do *after* running autoupdate.
  2921. ## ----------------- ##
  2922. ## LTDL_INIT Options ##
  2923. ## ----------------- ##
  2924. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  2925. #
  2926. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  2927. # Written by Gary V. Vaughan, 2004
  2928. #
  2929. # This file is free software; the Free Software Foundation gives
  2930. # unlimited permission to copy and/or distribute it, with or without
  2931. # modifications, as long as this notice is preserved.
  2932. # serial 6 ltsugar.m4
  2933. # This is to help aclocal find these macros, as it can't see m4_define.
  2934. # lt_join(SEP, ARG1, [ARG2...])
  2935. # -----------------------------
  2936. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  2937. # associated separator.
  2938. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  2939. # versions in m4sugar had bugs.
  2940. # lt_car(LIST)
  2941. # lt_cdr(LIST)
  2942. # ------------
  2943. # Manipulate m4 lists.
  2944. # These macros are necessary as long as will still need to support
  2945. # Autoconf-2.59 which quotes differently.
  2946. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  2947. # ------------------------------------------
  2948. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  2949. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  2950. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  2951. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  2952. # than defined and empty).
  2953. #
  2954. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  2955. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  2956. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  2957. # ----------------------------------------------------------
  2958. # Produce a SEP delimited list of all paired combinations of elements of
  2959. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  2960. # has the form PREFIXmINFIXSUFFIXn.
  2961. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  2962. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  2963. # -----------------------------------------------------------------------
  2964. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  2965. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  2966. # lt_dict_add(DICT, KEY, VALUE)
  2967. # -----------------------------
  2968. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  2969. # --------------------------------------------
  2970. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  2971. # ----------------------------------
  2972. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  2973. # -----------------------------------------------------------------
  2974. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  2975. # --------------------------------------------------------------
  2976. # ltversion.m4 -- version numbers -*- Autoconf -*-
  2977. #
  2978. # Copyright (C) 2004 Free Software Foundation, Inc.
  2979. # Written by Scott James Remnant, 2004
  2980. #
  2981. # This file is free software; the Free Software Foundation gives
  2982. # unlimited permission to copy and/or distribute it, with or without
  2983. # modifications, as long as this notice is preserved.
  2984. # Generated from ltversion.in.
  2985. # serial 3134 ltversion.m4
  2986. # This file is part of GNU Libtool
  2987. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  2988. #
  2989. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  2990. # Written by Scott James Remnant, 2004.
  2991. #
  2992. # This file is free software; the Free Software Foundation gives
  2993. # unlimited permission to copy and/or distribute it, with or without
  2994. # modifications, as long as this notice is preserved.
  2995. # serial 4 lt~obsolete.m4
  2996. # These exist entirely to fool aclocal when bootstrapping libtool.
  2997. #
  2998. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  2999. # which have later been changed to m4_define as they aren't part of the
  3000. # exported API, or moved to Autoconf or Automake where they belong.
  3001. #
  3002. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  3003. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  3004. # using a macro with the same name in our local m4/libtool.m4 it'll
  3005. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  3006. # and doesn't know about Autoconf macros at all.)
  3007. #
  3008. # So we provide this file, which has a silly filename so it's always
  3009. # included after everything else. This provides aclocal with the
  3010. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  3011. # because those macros already exist, or will be overwritten later.
  3012. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  3013. #
  3014. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  3015. # Yes, that means every name once taken will need to remain here until
  3016. # we give up compatibility with versions before 1.7, at which point
  3017. # we need to keep only those names which we still refer to.
  3018. # This is to help aclocal find these macros, as it can't see m4_define.
  3019. ## -*- Autoconf -*-
  3020. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
  3021. # Free Software Foundation, Inc.
  3022. #
  3023. # This file is free software; the Free Software Foundation
  3024. # gives unlimited permission to copy and/or distribute it,
  3025. # with or without modifications, as long as this notice is preserved.
  3026. # serial 8
  3027. # Based on depend.m4 from automake 1.9, modified for standalone use in
  3028. # an environment where GNU make is required.
  3029. # ZW_PROG_COMPILER_DEPENDENCIES
  3030. # -----------------------------
  3031. # Variant of _AM_DEPENDENCIES which just does the dependency probe and
  3032. # sets fooDEPMODE accordingly. Cache-variable compatible with
  3033. # original; not side-effect compatible. As the users of this macro
  3034. # may require accurate dependencies for correct builds, it does *not*
  3035. # honor --disable-dependency-checking, and failure to detect a usable
  3036. # method is an error. depcomp is assumed to be located in
  3037. # $ac_aux_dir.
  3038. #
  3039. # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
  3040. # AM_SET_DEPDIR
  3041. # -------------
  3042. # Choose a directory name for dependency files.
  3043. # ZW_CREATE_DEPDIR
  3044. # ----------------
  3045. # As AM_SET_DEPDIR, but also create the directory at config.status time.
  3046. sim_inline="-DDEFAULT_INLINE=0"
  3047. # intl sister-directory configuration rules.
  3048. #
  3049. # The idea behind this macro is that there's no need to repeat all the
  3050. # autoconf probes done by the intl directory - it's already done them
  3051. # for us. In fact, there's no need even to look at the cache for the
  3052. # answers. All we need to do is nab a few pieces of information.
  3053. # The intl directory is set up to make this easy, by generating a
  3054. # small file which can be sourced as a shell script; then we produce
  3055. # the necessary substitutions and definitions for this directory.
  3056. # Autoconf M4 include file defining utility macros for complex Canadian
  3057. # cross builds.
  3058. ####
  3059. # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
  3060. # or AC_INIT.
  3061. # These demand that AC_CANONICAL_SYSTEM be called beforehand.
  3062. ####
  3063. # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3064. # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
  3065. ####
  3066. # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3067. # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
  3068. # Backported from Autoconf 2.5x; can go away when and if
  3069. # we switch. Put the OS path separator in $PATH_SEPARATOR.
  3070. # ACX_HAVE_GCC_FOR_TARGET
  3071. # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
  3072. # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
  3073. # Searching for installed target binutils. We need to take extra care,
  3074. # else we may find the wrong assembler, linker, etc., and lose.
  3075. #
  3076. # First try --with-build-time-tools, if specified.
  3077. #
  3078. # For build != host, we ask the installed GCC for the name of the tool it
  3079. # uses, and accept it if it is an absolute path. This is because the
  3080. # only good choice for a compiler is the same GCC version that is being
  3081. # installed (or we couldn't make target libraries), and we assume that
  3082. # on the host system we'll have not only the same GCC version, but also
  3083. # the same binutils version.
  3084. #
  3085. # For build == host, search the same directories that the installed
  3086. # compiler will search. We used to do this for the assembler, linker,
  3087. # and nm only; for simplicity of configuration, however, we extend this
  3088. # criterion to tools (such as ar and ranlib) that are never invoked by
  3089. # the compiler, to avoid mismatches.
  3090. #
  3091. # Also note we have to check MD_EXEC_PREFIX before checking the user's path
  3092. # if build == target. This makes the most sense only when bootstrapping,
  3093. # but we also do so when build != host. In this case, we hope that the
  3094. # build and host systems will have similar contents of MD_EXEC_PREFIX.
  3095. #
  3096. # If we do not find a suitable binary, then try the user's path.
  3097. ###
  3098. # AC_PROG_CPP_WERROR
  3099. # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
  3100. # triggers warnings from the preprocessor. Will be in autoconf 2.58.
  3101. # For now, using this also overrides header checks to use only the
  3102. # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
  3103. # bit harder from here).
  3104. # Eventually autoconf will default to checking headers with the compiler
  3105. # instead, and we'll have to do this differently.
  3106. # AC_PROG_CPP_WERROR
  3107. # Test for GNAT.
  3108. # We require the gnatbind & gnatmake programs, as well as a compiler driver
  3109. # that understands Ada. We use the user's CC setting, already found, and
  3110. # possibly add $1 to the command-line parameters.
  3111. #
  3112. # Sets the shell variable have_gnat to yes or no as appropriate, and
  3113. # substitutes GNATBIND and GNATMAKE.
  3114. ac_ext=c
  3115. ac_cpp='$CPP $CPPFLAGS'
  3116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3119. if test -n "$ac_tool_prefix"; then
  3120. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3121. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3123. $as_echo_n "checking for $ac_word... " >&6; }
  3124. if test "${ac_cv_prog_CC+set}" = set; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. if test -n "$CC"; then
  3128. ac_cv_prog_CC="$CC" # Let the user override the test.
  3129. else
  3130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3131. for as_dir in $PATH
  3132. do
  3133. IFS=$as_save_IFS
  3134. test -z "$as_dir" && as_dir=.
  3135. for ac_exec_ext in '' $ac_executable_extensions; do
  3136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3137. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3139. break 2
  3140. fi
  3141. done
  3142. done
  3143. IFS=$as_save_IFS
  3144. fi
  3145. fi
  3146. CC=$ac_cv_prog_CC
  3147. if test -n "$CC"; then
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3149. $as_echo "$CC" >&6; }
  3150. else
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3152. $as_echo "no" >&6; }
  3153. fi
  3154. fi
  3155. if test -z "$ac_cv_prog_CC"; then
  3156. ac_ct_CC=$CC
  3157. # Extract the first word of "gcc", so it can be a program name with args.
  3158. set dummy gcc; ac_word=$2
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3160. $as_echo_n "checking for $ac_word... " >&6; }
  3161. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3162. $as_echo_n "(cached) " >&6
  3163. else
  3164. if test -n "$ac_ct_CC"; then
  3165. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3166. else
  3167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3168. for as_dir in $PATH
  3169. do
  3170. IFS=$as_save_IFS
  3171. test -z "$as_dir" && as_dir=.
  3172. for ac_exec_ext in '' $ac_executable_extensions; do
  3173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3174. ac_cv_prog_ac_ct_CC="gcc"
  3175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3176. break 2
  3177. fi
  3178. done
  3179. done
  3180. IFS=$as_save_IFS
  3181. fi
  3182. fi
  3183. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3184. if test -n "$ac_ct_CC"; then
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3186. $as_echo "$ac_ct_CC" >&6; }
  3187. else
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3189. $as_echo "no" >&6; }
  3190. fi
  3191. if test "x$ac_ct_CC" = x; then
  3192. CC=""
  3193. else
  3194. case $cross_compiling:$ac_tool_warned in
  3195. yes:)
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3197. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3198. ac_tool_warned=yes ;;
  3199. esac
  3200. CC=$ac_ct_CC
  3201. fi
  3202. else
  3203. CC="$ac_cv_prog_CC"
  3204. fi
  3205. if test -z "$CC"; then
  3206. if test -n "$ac_tool_prefix"; then
  3207. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3208. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3210. $as_echo_n "checking for $ac_word... " >&6; }
  3211. if test "${ac_cv_prog_CC+set}" = set; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. if test -n "$CC"; then
  3215. ac_cv_prog_CC="$CC" # Let the user override the test.
  3216. else
  3217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3218. for as_dir in $PATH
  3219. do
  3220. IFS=$as_save_IFS
  3221. test -z "$as_dir" && as_dir=.
  3222. for ac_exec_ext in '' $ac_executable_extensions; do
  3223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3224. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3226. break 2
  3227. fi
  3228. done
  3229. done
  3230. IFS=$as_save_IFS
  3231. fi
  3232. fi
  3233. CC=$ac_cv_prog_CC
  3234. if test -n "$CC"; then
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3236. $as_echo "$CC" >&6; }
  3237. else
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3239. $as_echo "no" >&6; }
  3240. fi
  3241. fi
  3242. fi
  3243. if test -z "$CC"; then
  3244. # Extract the first word of "cc", so it can be a program name with args.
  3245. set dummy cc; ac_word=$2
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3247. $as_echo_n "checking for $ac_word... " >&6; }
  3248. if test "${ac_cv_prog_CC+set}" = set; then :
  3249. $as_echo_n "(cached) " >&6
  3250. else
  3251. if test -n "$CC"; then
  3252. ac_cv_prog_CC="$CC" # Let the user override the test.
  3253. else
  3254. ac_prog_rejected=no
  3255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3256. for as_dir in $PATH
  3257. do
  3258. IFS=$as_save_IFS
  3259. test -z "$as_dir" && as_dir=.
  3260. for ac_exec_ext in '' $ac_executable_extensions; do
  3261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3262. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3263. ac_prog_rejected=yes
  3264. continue
  3265. fi
  3266. ac_cv_prog_CC="cc"
  3267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3268. break 2
  3269. fi
  3270. done
  3271. done
  3272. IFS=$as_save_IFS
  3273. if test $ac_prog_rejected = yes; then
  3274. # We found a bogon in the path, so make sure we never use it.
  3275. set dummy $ac_cv_prog_CC
  3276. shift
  3277. if test $# != 0; then
  3278. # We chose a different compiler from the bogus one.
  3279. # However, it has the same basename, so the bogon will be chosen
  3280. # first if we set CC to just the basename; use the full file name.
  3281. shift
  3282. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3283. fi
  3284. fi
  3285. fi
  3286. fi
  3287. CC=$ac_cv_prog_CC
  3288. if test -n "$CC"; then
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3290. $as_echo "$CC" >&6; }
  3291. else
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3293. $as_echo "no" >&6; }
  3294. fi
  3295. fi
  3296. if test -z "$CC"; then
  3297. if test -n "$ac_tool_prefix"; then
  3298. for ac_prog in cl.exe
  3299. do
  3300. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3301. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3303. $as_echo_n "checking for $ac_word... " >&6; }
  3304. if test "${ac_cv_prog_CC+set}" = set; then :
  3305. $as_echo_n "(cached) " >&6
  3306. else
  3307. if test -n "$CC"; then
  3308. ac_cv_prog_CC="$CC" # Let the user override the test.
  3309. else
  3310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3311. for as_dir in $PATH
  3312. do
  3313. IFS=$as_save_IFS
  3314. test -z "$as_dir" && as_dir=.
  3315. for ac_exec_ext in '' $ac_executable_extensions; do
  3316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3317. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3319. break 2
  3320. fi
  3321. done
  3322. done
  3323. IFS=$as_save_IFS
  3324. fi
  3325. fi
  3326. CC=$ac_cv_prog_CC
  3327. if test -n "$CC"; then
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3329. $as_echo "$CC" >&6; }
  3330. else
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3332. $as_echo "no" >&6; }
  3333. fi
  3334. test -n "$CC" && break
  3335. done
  3336. fi
  3337. if test -z "$CC"; then
  3338. ac_ct_CC=$CC
  3339. for ac_prog in cl.exe
  3340. do
  3341. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3342. set dummy $ac_prog; ac_word=$2
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3344. $as_echo_n "checking for $ac_word... " >&6; }
  3345. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3346. $as_echo_n "(cached) " >&6
  3347. else
  3348. if test -n "$ac_ct_CC"; then
  3349. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3350. else
  3351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3352. for as_dir in $PATH
  3353. do
  3354. IFS=$as_save_IFS
  3355. test -z "$as_dir" && as_dir=.
  3356. for ac_exec_ext in '' $ac_executable_extensions; do
  3357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3358. ac_cv_prog_ac_ct_CC="$ac_prog"
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3360. break 2
  3361. fi
  3362. done
  3363. done
  3364. IFS=$as_save_IFS
  3365. fi
  3366. fi
  3367. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3368. if test -n "$ac_ct_CC"; then
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3370. $as_echo "$ac_ct_CC" >&6; }
  3371. else
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3373. $as_echo "no" >&6; }
  3374. fi
  3375. test -n "$ac_ct_CC" && break
  3376. done
  3377. if test "x$ac_ct_CC" = x; then
  3378. CC=""
  3379. else
  3380. case $cross_compiling:$ac_tool_warned in
  3381. yes:)
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3383. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3384. ac_tool_warned=yes ;;
  3385. esac
  3386. CC=$ac_ct_CC
  3387. fi
  3388. fi
  3389. fi
  3390. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3392. as_fn_error "no acceptable C compiler found in \$PATH
  3393. See \`config.log' for more details." "$LINENO" 5; }
  3394. # Provide some information about the compiler.
  3395. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3396. set X $ac_compile
  3397. ac_compiler=$2
  3398. for ac_option in --version -v -V -qversion; do
  3399. { { ac_try="$ac_compiler $ac_option >&5"
  3400. case "(($ac_try" in
  3401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3402. *) ac_try_echo=$ac_try;;
  3403. esac
  3404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3405. $as_echo "$ac_try_echo"; } >&5
  3406. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3407. ac_status=$?
  3408. if test -s conftest.err; then
  3409. sed '10a\
  3410. ... rest of stderr output deleted ...
  3411. 10q' conftest.err >conftest.er1
  3412. cat conftest.er1 >&5
  3413. rm -f conftest.er1 conftest.err
  3414. fi
  3415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3416. test $ac_status = 0; }
  3417. done
  3418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3419. /* end confdefs.h. */
  3420. int
  3421. main ()
  3422. {
  3423. ;
  3424. return 0;
  3425. }
  3426. _ACEOF
  3427. ac_clean_files_save=$ac_clean_files
  3428. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3429. # Try to create an executable without -o first, disregard a.out.
  3430. # It will help us diagnose broken compilers, and finding out an intuition
  3431. # of exeext.
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3433. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3434. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3435. # The possible output files:
  3436. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3437. ac_rmfiles=
  3438. for ac_file in $ac_files
  3439. do
  3440. case $ac_file in
  3441. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3442. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3443. esac
  3444. done
  3445. rm -f $ac_rmfiles
  3446. if { { ac_try="$ac_link_default"
  3447. case "(($ac_try" in
  3448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3449. *) ac_try_echo=$ac_try;;
  3450. esac
  3451. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3452. $as_echo "$ac_try_echo"; } >&5
  3453. (eval "$ac_link_default") 2>&5
  3454. ac_status=$?
  3455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3456. test $ac_status = 0; }; then :
  3457. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3458. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3459. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3460. # so that the user can short-circuit this test for compilers unknown to
  3461. # Autoconf.
  3462. for ac_file in $ac_files ''
  3463. do
  3464. test -f "$ac_file" || continue
  3465. case $ac_file in
  3466. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3467. ;;
  3468. [ab].out )
  3469. # We found the default executable, but exeext='' is most
  3470. # certainly right.
  3471. break;;
  3472. *.* )
  3473. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3474. then :; else
  3475. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3476. fi
  3477. # We set ac_cv_exeext here because the later test for it is not
  3478. # safe: cross compilers may not add the suffix if given an `-o'
  3479. # argument, so we may need to know it at that point already.
  3480. # Even if this section looks crufty: it has the advantage of
  3481. # actually working.
  3482. break;;
  3483. * )
  3484. break;;
  3485. esac
  3486. done
  3487. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3488. else
  3489. ac_file=''
  3490. fi
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3492. $as_echo "$ac_file" >&6; }
  3493. if test -z "$ac_file"; then :
  3494. $as_echo "$as_me: failed program was:" >&5
  3495. sed 's/^/| /' conftest.$ac_ext >&5
  3496. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3497. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3498. { as_fn_set_status 77
  3499. as_fn_error "C compiler cannot create executables
  3500. See \`config.log' for more details." "$LINENO" 5; }; }
  3501. fi
  3502. ac_exeext=$ac_cv_exeext
  3503. # Check that the compiler produces executables we can run. If not, either
  3504. # the compiler is broken, or we cross compile.
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3506. $as_echo_n "checking whether the C compiler works... " >&6; }
  3507. # If not cross compiling, check that we can run a simple program.
  3508. if test "$cross_compiling" != yes; then
  3509. if { ac_try='./$ac_file'
  3510. { { case "(($ac_try" in
  3511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3512. *) ac_try_echo=$ac_try;;
  3513. esac
  3514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3515. $as_echo "$ac_try_echo"; } >&5
  3516. (eval "$ac_try") 2>&5
  3517. ac_status=$?
  3518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3519. test $ac_status = 0; }; }; then
  3520. cross_compiling=no
  3521. else
  3522. if test "$cross_compiling" = maybe; then
  3523. cross_compiling=yes
  3524. else
  3525. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3527. as_fn_error "cannot run C compiled programs.
  3528. If you meant to cross compile, use \`--host'.
  3529. See \`config.log' for more details." "$LINENO" 5; }
  3530. fi
  3531. fi
  3532. fi
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3534. $as_echo "yes" >&6; }
  3535. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3536. ac_clean_files=$ac_clean_files_save
  3537. # Check that the compiler produces executables we can run. If not, either
  3538. # the compiler is broken, or we cross compile.
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3540. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3542. $as_echo "$cross_compiling" >&6; }
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3544. $as_echo_n "checking for suffix of executables... " >&6; }
  3545. if { { ac_try="$ac_link"
  3546. case "(($ac_try" in
  3547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3548. *) ac_try_echo=$ac_try;;
  3549. esac
  3550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3551. $as_echo "$ac_try_echo"; } >&5
  3552. (eval "$ac_link") 2>&5
  3553. ac_status=$?
  3554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3555. test $ac_status = 0; }; then :
  3556. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3557. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3558. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3559. # `rm'.
  3560. for ac_file in conftest.exe conftest conftest.*; do
  3561. test -f "$ac_file" || continue
  3562. case $ac_file in
  3563. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3564. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3565. break;;
  3566. * ) break;;
  3567. esac
  3568. done
  3569. else
  3570. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3571. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3572. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3573. See \`config.log' for more details." "$LINENO" 5; }
  3574. fi
  3575. rm -f conftest$ac_cv_exeext
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3577. $as_echo "$ac_cv_exeext" >&6; }
  3578. rm -f conftest.$ac_ext
  3579. EXEEXT=$ac_cv_exeext
  3580. ac_exeext=$EXEEXT
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3582. $as_echo_n "checking for suffix of object files... " >&6; }
  3583. if test "${ac_cv_objext+set}" = set; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3587. /* end confdefs.h. */
  3588. int
  3589. main ()
  3590. {
  3591. ;
  3592. return 0;
  3593. }
  3594. _ACEOF
  3595. rm -f conftest.o conftest.obj
  3596. if { { ac_try="$ac_compile"
  3597. case "(($ac_try" in
  3598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3599. *) ac_try_echo=$ac_try;;
  3600. esac
  3601. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3602. $as_echo "$ac_try_echo"; } >&5
  3603. (eval "$ac_compile") 2>&5
  3604. ac_status=$?
  3605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3606. test $ac_status = 0; }; then :
  3607. for ac_file in conftest.o conftest.obj conftest.*; do
  3608. test -f "$ac_file" || continue;
  3609. case $ac_file in
  3610. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3611. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3612. break;;
  3613. esac
  3614. done
  3615. else
  3616. $as_echo "$as_me: failed program was:" >&5
  3617. sed 's/^/| /' conftest.$ac_ext >&5
  3618. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3619. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3620. as_fn_error "cannot compute suffix of object files: cannot compile
  3621. See \`config.log' for more details." "$LINENO" 5; }
  3622. fi
  3623. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3624. fi
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3626. $as_echo "$ac_cv_objext" >&6; }
  3627. OBJEXT=$ac_cv_objext
  3628. ac_objext=$OBJEXT
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3630. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3631. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3632. $as_echo_n "(cached) " >&6
  3633. else
  3634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3635. /* end confdefs.h. */
  3636. int
  3637. main ()
  3638. {
  3639. #ifndef __GNUC__
  3640. choke me
  3641. #endif
  3642. ;
  3643. return 0;
  3644. }
  3645. _ACEOF
  3646. if ac_fn_c_try_compile "$LINENO"; then :
  3647. ac_compiler_gnu=yes
  3648. else
  3649. ac_compiler_gnu=no
  3650. fi
  3651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3652. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3653. fi
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3655. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3656. if test $ac_compiler_gnu = yes; then
  3657. GCC=yes
  3658. else
  3659. GCC=
  3660. fi
  3661. ac_test_CFLAGS=${CFLAGS+set}
  3662. ac_save_CFLAGS=$CFLAGS
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3664. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3665. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3666. $as_echo_n "(cached) " >&6
  3667. else
  3668. ac_save_c_werror_flag=$ac_c_werror_flag
  3669. ac_c_werror_flag=yes
  3670. ac_cv_prog_cc_g=no
  3671. CFLAGS="-g"
  3672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h. */
  3674. int
  3675. main ()
  3676. {
  3677. ;
  3678. return 0;
  3679. }
  3680. _ACEOF
  3681. if ac_fn_c_try_compile "$LINENO"; then :
  3682. ac_cv_prog_cc_g=yes
  3683. else
  3684. CFLAGS=""
  3685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3686. /* end confdefs.h. */
  3687. int
  3688. main ()
  3689. {
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. if ac_fn_c_try_compile "$LINENO"; then :
  3695. else
  3696. ac_c_werror_flag=$ac_save_c_werror_flag
  3697. CFLAGS="-g"
  3698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3699. /* end confdefs.h. */
  3700. int
  3701. main ()
  3702. {
  3703. ;
  3704. return 0;
  3705. }
  3706. _ACEOF
  3707. if ac_fn_c_try_compile "$LINENO"; then :
  3708. ac_cv_prog_cc_g=yes
  3709. fi
  3710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3711. fi
  3712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3713. fi
  3714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3715. ac_c_werror_flag=$ac_save_c_werror_flag
  3716. fi
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3718. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3719. if test "$ac_test_CFLAGS" = set; then
  3720. CFLAGS=$ac_save_CFLAGS
  3721. elif test $ac_cv_prog_cc_g = yes; then
  3722. if test "$GCC" = yes; then
  3723. CFLAGS="-g -O2"
  3724. else
  3725. CFLAGS="-g"
  3726. fi
  3727. else
  3728. if test "$GCC" = yes; then
  3729. CFLAGS="-O2"
  3730. else
  3731. CFLAGS=
  3732. fi
  3733. fi
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3735. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3736. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3737. $as_echo_n "(cached) " >&6
  3738. else
  3739. ac_cv_prog_cc_c89=no
  3740. ac_save_CC=$CC
  3741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3742. /* end confdefs.h. */
  3743. #include <stdarg.h>
  3744. #include <stdio.h>
  3745. #include <sys/types.h>
  3746. #include <sys/stat.h>
  3747. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3748. struct buf { int x; };
  3749. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3750. static char *e (p, i)
  3751. char **p;
  3752. int i;
  3753. {
  3754. return p[i];
  3755. }
  3756. static char *f (char * (*g) (char **, int), char **p, ...)
  3757. {
  3758. char *s;
  3759. va_list v;
  3760. va_start (v,p);
  3761. s = g (p, va_arg (v,int));
  3762. va_end (v);
  3763. return s;
  3764. }
  3765. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3766. function prototypes and stuff, but not '\xHH' hex character constants.
  3767. These don't provoke an error unfortunately, instead are silently treated
  3768. as 'x'. The following induces an error, until -std is added to get
  3769. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3770. array size at least. It's necessary to write '\x00'==0 to get something
  3771. that's true only with -std. */
  3772. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3773. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3774. inside strings and character constants. */
  3775. #define FOO(x) 'x'
  3776. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3777. int test (int i, double x);
  3778. struct s1 {int (*f) (int a);};
  3779. struct s2 {int (*f) (double a);};
  3780. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3781. int argc;
  3782. char **argv;
  3783. int
  3784. main ()
  3785. {
  3786. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3787. ;
  3788. return 0;
  3789. }
  3790. _ACEOF
  3791. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3792. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3793. do
  3794. CC="$ac_save_CC $ac_arg"
  3795. if ac_fn_c_try_compile "$LINENO"; then :
  3796. ac_cv_prog_cc_c89=$ac_arg
  3797. fi
  3798. rm -f core conftest.err conftest.$ac_objext
  3799. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3800. done
  3801. rm -f conftest.$ac_ext
  3802. CC=$ac_save_CC
  3803. fi
  3804. # AC_CACHE_VAL
  3805. case "x$ac_cv_prog_cc_c89" in
  3806. x)
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3808. $as_echo "none needed" >&6; } ;;
  3809. xno)
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3811. $as_echo "unsupported" >&6; } ;;
  3812. *)
  3813. CC="$CC $ac_cv_prog_cc_c89"
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3815. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3816. esac
  3817. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3818. fi
  3819. ac_ext=c
  3820. ac_cpp='$CPP $CPPFLAGS'
  3821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3824. ac_aux_dir=
  3825. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3826. for ac_t in install-sh install.sh shtool; do
  3827. if test -f "$ac_dir/$ac_t"; then
  3828. ac_aux_dir=$ac_dir
  3829. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3830. break 2
  3831. fi
  3832. done
  3833. done
  3834. if test -z "$ac_aux_dir"; then
  3835. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3836. fi
  3837. # These three variables are undocumented and unsupported,
  3838. # and are intended to be withdrawn in a future Autoconf release.
  3839. # They can cause serious problems if a builder's source tree is in a directory
  3840. # whose full name contains unusual characters.
  3841. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3842. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3843. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3844. # Make sure we can run config.sub.
  3845. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3846. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3848. $as_echo_n "checking build system type... " >&6; }
  3849. if test "${ac_cv_build+set}" = set; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. ac_build_alias=$build_alias
  3853. test "x$ac_build_alias" = x &&
  3854. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3855. test "x$ac_build_alias" = x &&
  3856. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3857. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3858. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3859. fi
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3861. $as_echo "$ac_cv_build" >&6; }
  3862. case $ac_cv_build in
  3863. *-*-*) ;;
  3864. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3865. esac
  3866. build=$ac_cv_build
  3867. ac_save_IFS=$IFS; IFS='-'
  3868. set x $ac_cv_build
  3869. shift
  3870. build_cpu=$1
  3871. build_vendor=$2
  3872. shift; shift
  3873. # Remember, the first character of IFS is used to create $*,
  3874. # except with old shells:
  3875. build_os=$*
  3876. IFS=$ac_save_IFS
  3877. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3879. $as_echo_n "checking host system type... " >&6; }
  3880. if test "${ac_cv_host+set}" = set; then :
  3881. $as_echo_n "(cached) " >&6
  3882. else
  3883. if test "x$host_alias" = x; then
  3884. ac_cv_host=$ac_cv_build
  3885. else
  3886. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3887. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3888. fi
  3889. fi
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3891. $as_echo "$ac_cv_host" >&6; }
  3892. case $ac_cv_host in
  3893. *-*-*) ;;
  3894. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3895. esac
  3896. host=$ac_cv_host
  3897. ac_save_IFS=$IFS; IFS='-'
  3898. set x $ac_cv_host
  3899. shift
  3900. host_cpu=$1
  3901. host_vendor=$2
  3902. shift; shift
  3903. # Remember, the first character of IFS is used to create $*,
  3904. # except with old shells:
  3905. host_os=$*
  3906. IFS=$ac_save_IFS
  3907. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3909. $as_echo_n "checking target system type... " >&6; }
  3910. if test "${ac_cv_target+set}" = set; then :
  3911. $as_echo_n "(cached) " >&6
  3912. else
  3913. if test "x$target_alias" = x; then
  3914. ac_cv_target=$ac_cv_host
  3915. else
  3916. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3917. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3918. fi
  3919. fi
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3921. $as_echo "$ac_cv_target" >&6; }
  3922. case $ac_cv_target in
  3923. *-*-*) ;;
  3924. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3925. esac
  3926. target=$ac_cv_target
  3927. ac_save_IFS=$IFS; IFS='-'
  3928. set x $ac_cv_target
  3929. shift
  3930. target_cpu=$1
  3931. target_vendor=$2
  3932. shift; shift
  3933. # Remember, the first character of IFS is used to create $*,
  3934. # except with old shells:
  3935. target_os=$*
  3936. IFS=$ac_save_IFS
  3937. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3938. # The aliases save the names the user supplied, while $host etc.
  3939. # will get canonicalized.
  3940. test -n "$target_alias" &&
  3941. test "$program_prefix$program_suffix$program_transform_name" = \
  3942. NONENONEs,x,x, &&
  3943. program_prefix=${target_alias}-
  3944. ac_ext=c
  3945. ac_cpp='$CPP $CPPFLAGS'
  3946. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3947. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3948. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3950. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3951. # On Suns, sometimes $CPP names a directory.
  3952. if test -n "$CPP" && test -d "$CPP"; then
  3953. CPP=
  3954. fi
  3955. if test -z "$CPP"; then
  3956. if test "${ac_cv_prog_CPP+set}" = set; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. # Double quotes because CPP needs to be expanded
  3960. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3961. do
  3962. ac_preproc_ok=false
  3963. for ac_c_preproc_warn_flag in '' yes
  3964. do
  3965. # Use a header file that comes with gcc, so configuring glibc
  3966. # with a fresh cross-compiler works.
  3967. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3968. # <limits.h> exists even on freestanding compilers.
  3969. # On the NeXT, cc -E runs the code through the compiler's parser,
  3970. # not just through cpp. "Syntax error" is here to catch this case.
  3971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3972. /* end confdefs.h. */
  3973. #ifdef __STDC__
  3974. # include <limits.h>
  3975. #else
  3976. # include <assert.h>
  3977. #endif
  3978. Syntax error
  3979. _ACEOF
  3980. if ac_fn_c_try_cpp "$LINENO"; then :
  3981. else
  3982. # Broken: fails on valid input.
  3983. continue
  3984. fi
  3985. rm -f conftest.err conftest.$ac_ext
  3986. # OK, works on sane cases. Now check whether nonexistent headers
  3987. # can be detected and how.
  3988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3989. /* end confdefs.h. */
  3990. #include <ac_nonexistent.h>
  3991. _ACEOF
  3992. if ac_fn_c_try_cpp "$LINENO"; then :
  3993. # Broken: success on invalid input.
  3994. continue
  3995. else
  3996. # Passes both tests.
  3997. ac_preproc_ok=:
  3998. break
  3999. fi
  4000. rm -f conftest.err conftest.$ac_ext
  4001. done
  4002. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4003. rm -f conftest.err conftest.$ac_ext
  4004. if $ac_preproc_ok; then :
  4005. break
  4006. fi
  4007. done
  4008. ac_cv_prog_CPP=$CPP
  4009. fi
  4010. CPP=$ac_cv_prog_CPP
  4011. else
  4012. ac_cv_prog_CPP=$CPP
  4013. fi
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4015. $as_echo "$CPP" >&6; }
  4016. ac_preproc_ok=false
  4017. for ac_c_preproc_warn_flag in '' yes
  4018. do
  4019. # Use a header file that comes with gcc, so configuring glibc
  4020. # with a fresh cross-compiler works.
  4021. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4022. # <limits.h> exists even on freestanding compilers.
  4023. # On the NeXT, cc -E runs the code through the compiler's parser,
  4024. # not just through cpp. "Syntax error" is here to catch this case.
  4025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4026. /* end confdefs.h. */
  4027. #ifdef __STDC__
  4028. # include <limits.h>
  4029. #else
  4030. # include <assert.h>
  4031. #endif
  4032. Syntax error
  4033. _ACEOF
  4034. if ac_fn_c_try_cpp "$LINENO"; then :
  4035. else
  4036. # Broken: fails on valid input.
  4037. continue
  4038. fi
  4039. rm -f conftest.err conftest.$ac_ext
  4040. # OK, works on sane cases. Now check whether nonexistent headers
  4041. # can be detected and how.
  4042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4043. /* end confdefs.h. */
  4044. #include <ac_nonexistent.h>
  4045. _ACEOF
  4046. if ac_fn_c_try_cpp "$LINENO"; then :
  4047. # Broken: success on invalid input.
  4048. continue
  4049. else
  4050. # Passes both tests.
  4051. ac_preproc_ok=:
  4052. break
  4053. fi
  4054. rm -f conftest.err conftest.$ac_ext
  4055. done
  4056. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4057. rm -f conftest.err conftest.$ac_ext
  4058. if $ac_preproc_ok; then :
  4059. else
  4060. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4062. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4063. See \`config.log' for more details." "$LINENO" 5; }
  4064. fi
  4065. ac_ext=c
  4066. ac_cpp='$CPP $CPPFLAGS'
  4067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4071. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4072. if test "${ac_cv_path_GREP+set}" = set; then :
  4073. $as_echo_n "(cached) " >&6
  4074. else
  4075. if test -z "$GREP"; then
  4076. ac_path_GREP_found=false
  4077. # Loop through the user's path and test for each of PROGNAME-LIST
  4078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4079. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4080. do
  4081. IFS=$as_save_IFS
  4082. test -z "$as_dir" && as_dir=.
  4083. for ac_prog in grep ggrep; do
  4084. for ac_exec_ext in '' $ac_executable_extensions; do
  4085. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4086. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4087. # Check for GNU ac_path_GREP and select it if it is found.
  4088. # Check for GNU $ac_path_GREP
  4089. case `"$ac_path_GREP" --version 2>&1` in
  4090. *GNU*)
  4091. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4092. *)
  4093. ac_count=0
  4094. $as_echo_n 0123456789 >"conftest.in"
  4095. while :
  4096. do
  4097. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4098. mv "conftest.tmp" "conftest.in"
  4099. cp "conftest.in" "conftest.nl"
  4100. $as_echo 'GREP' >> "conftest.nl"
  4101. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4102. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4103. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4104. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4105. # Best one so far, save it but keep looking for a better one
  4106. ac_cv_path_GREP="$ac_path_GREP"
  4107. ac_path_GREP_max=$ac_count
  4108. fi
  4109. # 10*(2^10) chars as input seems more than enough
  4110. test $ac_count -gt 10 && break
  4111. done
  4112. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4113. esac
  4114. $ac_path_GREP_found && break 3
  4115. done
  4116. done
  4117. done
  4118. IFS=$as_save_IFS
  4119. if test -z "$ac_cv_path_GREP"; then
  4120. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4121. fi
  4122. else
  4123. ac_cv_path_GREP=$GREP
  4124. fi
  4125. fi
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4127. $as_echo "$ac_cv_path_GREP" >&6; }
  4128. GREP="$ac_cv_path_GREP"
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4130. $as_echo_n "checking for egrep... " >&6; }
  4131. if test "${ac_cv_path_EGREP+set}" = set; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4135. then ac_cv_path_EGREP="$GREP -E"
  4136. else
  4137. if test -z "$EGREP"; then
  4138. ac_path_EGREP_found=false
  4139. # Loop through the user's path and test for each of PROGNAME-LIST
  4140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4141. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4142. do
  4143. IFS=$as_save_IFS
  4144. test -z "$as_dir" && as_dir=.
  4145. for ac_prog in egrep; do
  4146. for ac_exec_ext in '' $ac_executable_extensions; do
  4147. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4148. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4149. # Check for GNU ac_path_EGREP and select it if it is found.
  4150. # Check for GNU $ac_path_EGREP
  4151. case `"$ac_path_EGREP" --version 2>&1` in
  4152. *GNU*)
  4153. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4154. *)
  4155. ac_count=0
  4156. $as_echo_n 0123456789 >"conftest.in"
  4157. while :
  4158. do
  4159. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4160. mv "conftest.tmp" "conftest.in"
  4161. cp "conftest.in" "conftest.nl"
  4162. $as_echo 'EGREP' >> "conftest.nl"
  4163. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4164. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4165. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4166. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4167. # Best one so far, save it but keep looking for a better one
  4168. ac_cv_path_EGREP="$ac_path_EGREP"
  4169. ac_path_EGREP_max=$ac_count
  4170. fi
  4171. # 10*(2^10) chars as input seems more than enough
  4172. test $ac_count -gt 10 && break
  4173. done
  4174. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4175. esac
  4176. $ac_path_EGREP_found && break 3
  4177. done
  4178. done
  4179. done
  4180. IFS=$as_save_IFS
  4181. if test -z "$ac_cv_path_EGREP"; then
  4182. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4183. fi
  4184. else
  4185. ac_cv_path_EGREP=$EGREP
  4186. fi
  4187. fi
  4188. fi
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4190. $as_echo "$ac_cv_path_EGREP" >&6; }
  4191. EGREP="$ac_cv_path_EGREP"
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4193. $as_echo_n "checking for ANSI C header files... " >&6; }
  4194. if test "${ac_cv_header_stdc+set}" = set; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4198. /* end confdefs.h. */
  4199. #include <stdlib.h>
  4200. #include <stdarg.h>
  4201. #include <string.h>
  4202. #include <float.h>
  4203. int
  4204. main ()
  4205. {
  4206. ;
  4207. return 0;
  4208. }
  4209. _ACEOF
  4210. if ac_fn_c_try_compile "$LINENO"; then :
  4211. ac_cv_header_stdc=yes
  4212. else
  4213. ac_cv_header_stdc=no
  4214. fi
  4215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4216. if test $ac_cv_header_stdc = yes; then
  4217. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4219. /* end confdefs.h. */
  4220. #include <string.h>
  4221. _ACEOF
  4222. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4223. $EGREP "memchr" >/dev/null 2>&1; then :
  4224. else
  4225. ac_cv_header_stdc=no
  4226. fi
  4227. rm -f conftest*
  4228. fi
  4229. if test $ac_cv_header_stdc = yes; then
  4230. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4232. /* end confdefs.h. */
  4233. #include <stdlib.h>
  4234. _ACEOF
  4235. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4236. $EGREP "free" >/dev/null 2>&1; then :
  4237. else
  4238. ac_cv_header_stdc=no
  4239. fi
  4240. rm -f conftest*
  4241. fi
  4242. if test $ac_cv_header_stdc = yes; then
  4243. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4244. if test "$cross_compiling" = yes; then :
  4245. :
  4246. else
  4247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4248. /* end confdefs.h. */
  4249. #include <ctype.h>
  4250. #include <stdlib.h>
  4251. #if ((' ' & 0x0FF) == 0x020)
  4252. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4253. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4254. #else
  4255. # define ISLOWER(c) \
  4256. (('a' <= (c) && (c) <= 'i') \
  4257. || ('j' <= (c) && (c) <= 'r') \
  4258. || ('s' <= (c) && (c) <= 'z'))
  4259. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4260. #endif
  4261. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4262. int
  4263. main ()
  4264. {
  4265. int i;
  4266. for (i = 0; i < 256; i++)
  4267. if (XOR (islower (i), ISLOWER (i))
  4268. || toupper (i) != TOUPPER (i))
  4269. return 2;
  4270. return 0;
  4271. }
  4272. _ACEOF
  4273. if ac_fn_c_try_run "$LINENO"; then :
  4274. else
  4275. ac_cv_header_stdc=no
  4276. fi
  4277. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4278. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4279. fi
  4280. fi
  4281. fi
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4283. $as_echo "$ac_cv_header_stdc" >&6; }
  4284. if test $ac_cv_header_stdc = yes; then
  4285. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4286. fi
  4287. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4288. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4289. inttypes.h stdint.h unistd.h
  4290. do :
  4291. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4292. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4293. "
  4294. eval as_val=\$$as_ac_Header
  4295. if test "x$as_val" = x""yes; then :
  4296. cat >>confdefs.h <<_ACEOF
  4297. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4298. _ACEOF
  4299. fi
  4300. done
  4301. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4302. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4303. MINIX=yes
  4304. else
  4305. MINIX=
  4306. fi
  4307. if test "$MINIX" = yes; then
  4308. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4309. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4310. $as_echo "#define _MINIX 1" >>confdefs.h
  4311. fi
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4313. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4314. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4318. /* end confdefs.h. */
  4319. # define __EXTENSIONS__ 1
  4320. $ac_includes_default
  4321. int
  4322. main ()
  4323. {
  4324. ;
  4325. return 0;
  4326. }
  4327. _ACEOF
  4328. if ac_fn_c_try_compile "$LINENO"; then :
  4329. ac_cv_safe_to_define___extensions__=yes
  4330. else
  4331. ac_cv_safe_to_define___extensions__=no
  4332. fi
  4333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4334. fi
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4336. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4337. test $ac_cv_safe_to_define___extensions__ = yes &&
  4338. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4339. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4340. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4341. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4342. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4343. test "$program_prefix" != NONE &&
  4344. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4345. # Use a double $ so make ignores it.
  4346. test "$program_suffix" != NONE &&
  4347. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4348. # Double any \ or $.
  4349. # By default was `s,x,x', remove it if useless.
  4350. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4351. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4352. # Find a good install program. We prefer a C program (faster),
  4353. # so one script is as good as another. But avoid the broken or
  4354. # incompatible versions:
  4355. # SysV /etc/install, /usr/sbin/install
  4356. # SunOS /usr/etc/install
  4357. # IRIX /sbin/install
  4358. # AIX /bin/install
  4359. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4360. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4361. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4362. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4363. # OS/2's system install, which has a completely different semantic
  4364. # ./install, which can be erroneously created by make from ./install.sh.
  4365. # Reject install programs that cannot install multiple files.
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4367. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4368. if test -z "$INSTALL"; then
  4369. if test "${ac_cv_path_install+set}" = set; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4373. for as_dir in $PATH
  4374. do
  4375. IFS=$as_save_IFS
  4376. test -z "$as_dir" && as_dir=.
  4377. # Account for people who put trailing slashes in PATH elements.
  4378. case $as_dir/ in #((
  4379. ./ | .// | /[cC]/* | \
  4380. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4381. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4382. /usr/ucb/* ) ;;
  4383. *)
  4384. # OSF1 and SCO ODT 3.0 have their own names for install.
  4385. # Don't use installbsd from OSF since it installs stuff as root
  4386. # by default.
  4387. for ac_prog in ginstall scoinst install; do
  4388. for ac_exec_ext in '' $ac_executable_extensions; do
  4389. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4390. if test $ac_prog = install &&
  4391. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4392. # AIX install. It has an incompatible calling convention.
  4393. :
  4394. elif test $ac_prog = install &&
  4395. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4396. # program-specific install script used by HP pwplus--don't use.
  4397. :
  4398. else
  4399. rm -rf conftest.one conftest.two conftest.dir
  4400. echo one > conftest.one
  4401. echo two > conftest.two
  4402. mkdir conftest.dir
  4403. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4404. test -s conftest.one && test -s conftest.two &&
  4405. test -s conftest.dir/conftest.one &&
  4406. test -s conftest.dir/conftest.two
  4407. then
  4408. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4409. break 3
  4410. fi
  4411. fi
  4412. fi
  4413. done
  4414. done
  4415. ;;
  4416. esac
  4417. done
  4418. IFS=$as_save_IFS
  4419. rm -rf conftest.one conftest.two conftest.dir
  4420. fi
  4421. if test "${ac_cv_path_install+set}" = set; then
  4422. INSTALL=$ac_cv_path_install
  4423. else
  4424. # As a last resort, use the slow shell script. Don't cache a
  4425. # value for INSTALL within a source directory, because that will
  4426. # break other packages using the cache if that directory is
  4427. # removed, or if the value is a relative name.
  4428. INSTALL=$ac_install_sh
  4429. fi
  4430. fi
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4432. $as_echo "$INSTALL" >&6; }
  4433. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4434. # It thinks the first close brace ends the variable substitution.
  4435. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4436. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4437. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4438. rm -rf .tst 2>/dev/null
  4439. mkdir .tst 2>/dev/null
  4440. if test -d .tst; then
  4441. am__leading_dot=.
  4442. else
  4443. am__leading_dot=_
  4444. fi
  4445. rmdir .tst 2>/dev/null
  4446. DEPDIR="${am__leading_dot}deps"
  4447. case `pwd` in
  4448. *\ * | *\ *)
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4450. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4451. esac
  4452. macro_version='2.2.7a'
  4453. macro_revision='1.3134'
  4454. ltmain="$ac_aux_dir/ltmain.sh"
  4455. # Backslashify metacharacters that are still active within
  4456. # double-quoted strings.
  4457. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4458. # Same as above, but do not quote variable references.
  4459. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4460. # Sed substitution to delay expansion of an escaped shell variable in a
  4461. # double_quote_subst'ed string.
  4462. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4463. # Sed substitution to delay expansion of an escaped single quote.
  4464. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4465. # Sed substitution to avoid accidental globbing in evaled expressions
  4466. no_glob_subst='s/\*/\\\*/g'
  4467. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4468. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4469. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4471. $as_echo_n "checking how to print strings... " >&6; }
  4472. # Test print first, because it will be a builtin if present.
  4473. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4474. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4475. ECHO='print -r --'
  4476. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4477. ECHO='printf %s\n'
  4478. else
  4479. # Use this function as a fallback that always works.
  4480. func_fallback_echo ()
  4481. {
  4482. eval 'cat <<_LTECHO_EOF
  4483. $1
  4484. _LTECHO_EOF'
  4485. }
  4486. ECHO='func_fallback_echo'
  4487. fi
  4488. # func_echo_all arg...
  4489. # Invoke $ECHO with all args, space-separated.
  4490. func_echo_all ()
  4491. {
  4492. $ECHO ""
  4493. }
  4494. case "$ECHO" in
  4495. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4496. $as_echo "printf" >&6; } ;;
  4497. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4498. $as_echo "print -r" >&6; } ;;
  4499. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4500. $as_echo "cat" >&6; } ;;
  4501. esac
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4503. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4504. if test "${ac_cv_path_SED+set}" = set; then :
  4505. $as_echo_n "(cached) " >&6
  4506. else
  4507. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4508. for ac_i in 1 2 3 4 5 6 7; do
  4509. ac_script="$ac_script$as_nl$ac_script"
  4510. done
  4511. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4512. { ac_script=; unset ac_script;}
  4513. if test -z "$SED"; then
  4514. ac_path_SED_found=false
  4515. # Loop through the user's path and test for each of PROGNAME-LIST
  4516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4517. for as_dir in $PATH
  4518. do
  4519. IFS=$as_save_IFS
  4520. test -z "$as_dir" && as_dir=.
  4521. for ac_prog in sed gsed; do
  4522. for ac_exec_ext in '' $ac_executable_extensions; do
  4523. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4524. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4525. # Check for GNU ac_path_SED and select it if it is found.
  4526. # Check for GNU $ac_path_SED
  4527. case `"$ac_path_SED" --version 2>&1` in
  4528. *GNU*)
  4529. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4530. *)
  4531. ac_count=0
  4532. $as_echo_n 0123456789 >"conftest.in"
  4533. while :
  4534. do
  4535. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4536. mv "conftest.tmp" "conftest.in"
  4537. cp "conftest.in" "conftest.nl"
  4538. $as_echo '' >> "conftest.nl"
  4539. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4540. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4541. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4542. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4543. # Best one so far, save it but keep looking for a better one
  4544. ac_cv_path_SED="$ac_path_SED"
  4545. ac_path_SED_max=$ac_count
  4546. fi
  4547. # 10*(2^10) chars as input seems more than enough
  4548. test $ac_count -gt 10 && break
  4549. done
  4550. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4551. esac
  4552. $ac_path_SED_found && break 3
  4553. done
  4554. done
  4555. done
  4556. IFS=$as_save_IFS
  4557. if test -z "$ac_cv_path_SED"; then
  4558. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4559. fi
  4560. else
  4561. ac_cv_path_SED=$SED
  4562. fi
  4563. fi
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4565. $as_echo "$ac_cv_path_SED" >&6; }
  4566. SED="$ac_cv_path_SED"
  4567. rm -f conftest.sed
  4568. test -z "$SED" && SED=sed
  4569. Xsed="$SED -e 1s/^X//"
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4571. $as_echo_n "checking for fgrep... " >&6; }
  4572. if test "${ac_cv_path_FGREP+set}" = set; then :
  4573. $as_echo_n "(cached) " >&6
  4574. else
  4575. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4576. then ac_cv_path_FGREP="$GREP -F"
  4577. else
  4578. if test -z "$FGREP"; then
  4579. ac_path_FGREP_found=false
  4580. # Loop through the user's path and test for each of PROGNAME-LIST
  4581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4582. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4583. do
  4584. IFS=$as_save_IFS
  4585. test -z "$as_dir" && as_dir=.
  4586. for ac_prog in fgrep; do
  4587. for ac_exec_ext in '' $ac_executable_extensions; do
  4588. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4589. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4590. # Check for GNU ac_path_FGREP and select it if it is found.
  4591. # Check for GNU $ac_path_FGREP
  4592. case `"$ac_path_FGREP" --version 2>&1` in
  4593. *GNU*)
  4594. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4595. *)
  4596. ac_count=0
  4597. $as_echo_n 0123456789 >"conftest.in"
  4598. while :
  4599. do
  4600. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4601. mv "conftest.tmp" "conftest.in"
  4602. cp "conftest.in" "conftest.nl"
  4603. $as_echo 'FGREP' >> "conftest.nl"
  4604. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4605. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4606. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4607. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4608. # Best one so far, save it but keep looking for a better one
  4609. ac_cv_path_FGREP="$ac_path_FGREP"
  4610. ac_path_FGREP_max=$ac_count
  4611. fi
  4612. # 10*(2^10) chars as input seems more than enough
  4613. test $ac_count -gt 10 && break
  4614. done
  4615. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4616. esac
  4617. $ac_path_FGREP_found && break 3
  4618. done
  4619. done
  4620. done
  4621. IFS=$as_save_IFS
  4622. if test -z "$ac_cv_path_FGREP"; then
  4623. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4624. fi
  4625. else
  4626. ac_cv_path_FGREP=$FGREP
  4627. fi
  4628. fi
  4629. fi
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4631. $as_echo "$ac_cv_path_FGREP" >&6; }
  4632. FGREP="$ac_cv_path_FGREP"
  4633. test -z "$GREP" && GREP=grep
  4634. # Check whether --with-gnu-ld was given.
  4635. if test "${with_gnu_ld+set}" = set; then :
  4636. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4637. else
  4638. with_gnu_ld=no
  4639. fi
  4640. ac_prog=ld
  4641. if test "$GCC" = yes; then
  4642. # Check if gcc -print-prog-name=ld gives a path.
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4644. $as_echo_n "checking for ld used by $CC... " >&6; }
  4645. case $host in
  4646. *-*-mingw*)
  4647. # gcc leaves a trailing carriage return which upsets mingw
  4648. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4649. *)
  4650. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4651. esac
  4652. case $ac_prog in
  4653. # Accept absolute paths.
  4654. [\\/]* | ?:[\\/]*)
  4655. re_direlt='/[^/][^/]*/\.\./'
  4656. # Canonicalize the pathname of ld
  4657. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4658. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4659. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4660. done
  4661. test -z "$LD" && LD="$ac_prog"
  4662. ;;
  4663. "")
  4664. # If it fails, then pretend we aren't using GCC.
  4665. ac_prog=ld
  4666. ;;
  4667. *)
  4668. # If it is relative, then search for the first ld in PATH.
  4669. with_gnu_ld=unknown
  4670. ;;
  4671. esac
  4672. elif test "$with_gnu_ld" = yes; then
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4674. $as_echo_n "checking for GNU ld... " >&6; }
  4675. else
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4677. $as_echo_n "checking for non-GNU ld... " >&6; }
  4678. fi
  4679. if test "${lt_cv_path_LD+set}" = set; then :
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. if test -z "$LD"; then
  4683. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4684. for ac_dir in $PATH; do
  4685. IFS="$lt_save_ifs"
  4686. test -z "$ac_dir" && ac_dir=.
  4687. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4688. lt_cv_path_LD="$ac_dir/$ac_prog"
  4689. # Check to see if the program is GNU ld. I'd rather use --version,
  4690. # but apparently some variants of GNU ld only accept -v.
  4691. # Break only if it was the GNU/non-GNU ld that we prefer.
  4692. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4693. *GNU* | *'with BFD'*)
  4694. test "$with_gnu_ld" != no && break
  4695. ;;
  4696. *)
  4697. test "$with_gnu_ld" != yes && break
  4698. ;;
  4699. esac
  4700. fi
  4701. done
  4702. IFS="$lt_save_ifs"
  4703. else
  4704. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4705. fi
  4706. fi
  4707. LD="$lt_cv_path_LD"
  4708. if test -n "$LD"; then
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4710. $as_echo "$LD" >&6; }
  4711. else
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4713. $as_echo "no" >&6; }
  4714. fi
  4715. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4717. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4718. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4719. $as_echo_n "(cached) " >&6
  4720. else
  4721. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4722. case `$LD -v 2>&1 </dev/null` in
  4723. *GNU* | *'with BFD'*)
  4724. lt_cv_prog_gnu_ld=yes
  4725. ;;
  4726. *)
  4727. lt_cv_prog_gnu_ld=no
  4728. ;;
  4729. esac
  4730. fi
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4732. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4733. with_gnu_ld=$lt_cv_prog_gnu_ld
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4735. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4736. if test "${lt_cv_path_NM+set}" = set; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. if test -n "$NM"; then
  4740. # Let the user override the test.
  4741. lt_cv_path_NM="$NM"
  4742. else
  4743. lt_nm_to_check="${ac_tool_prefix}nm"
  4744. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4745. lt_nm_to_check="$lt_nm_to_check nm"
  4746. fi
  4747. for lt_tmp_nm in $lt_nm_to_check; do
  4748. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4749. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4750. IFS="$lt_save_ifs"
  4751. test -z "$ac_dir" && ac_dir=.
  4752. tmp_nm="$ac_dir/$lt_tmp_nm"
  4753. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4754. # Check to see if the nm accepts a BSD-compat flag.
  4755. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4756. # nm: unknown option "B" ignored
  4757. # Tru64's nm complains that /dev/null is an invalid object file
  4758. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4759. */dev/null* | *'Invalid file or object type'*)
  4760. lt_cv_path_NM="$tmp_nm -B"
  4761. break
  4762. ;;
  4763. *)
  4764. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4765. */dev/null*)
  4766. lt_cv_path_NM="$tmp_nm -p"
  4767. break
  4768. ;;
  4769. *)
  4770. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4771. continue # so that we can try to find one that supports BSD flags
  4772. ;;
  4773. esac
  4774. ;;
  4775. esac
  4776. fi
  4777. done
  4778. IFS="$lt_save_ifs"
  4779. done
  4780. : ${lt_cv_path_NM=no}
  4781. fi
  4782. fi
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4784. $as_echo "$lt_cv_path_NM" >&6; }
  4785. if test "$lt_cv_path_NM" != "no"; then
  4786. NM="$lt_cv_path_NM"
  4787. else
  4788. # Didn't find any BSD compatible name lister, look for dumpbin.
  4789. if test -n "$DUMPBIN"; then :
  4790. # Let the user override the test.
  4791. else
  4792. if test -n "$ac_tool_prefix"; then
  4793. for ac_prog in dumpbin "link -dump"
  4794. do
  4795. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4796. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4798. $as_echo_n "checking for $ac_word... " >&6; }
  4799. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. if test -n "$DUMPBIN"; then
  4803. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4804. else
  4805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4806. for as_dir in $PATH
  4807. do
  4808. IFS=$as_save_IFS
  4809. test -z "$as_dir" && as_dir=.
  4810. for ac_exec_ext in '' $ac_executable_extensions; do
  4811. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4812. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4814. break 2
  4815. fi
  4816. done
  4817. done
  4818. IFS=$as_save_IFS
  4819. fi
  4820. fi
  4821. DUMPBIN=$ac_cv_prog_DUMPBIN
  4822. if test -n "$DUMPBIN"; then
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4824. $as_echo "$DUMPBIN" >&6; }
  4825. else
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4827. $as_echo "no" >&6; }
  4828. fi
  4829. test -n "$DUMPBIN" && break
  4830. done
  4831. fi
  4832. if test -z "$DUMPBIN"; then
  4833. ac_ct_DUMPBIN=$DUMPBIN
  4834. for ac_prog in dumpbin "link -dump"
  4835. do
  4836. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4837. set dummy $ac_prog; ac_word=$2
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4839. $as_echo_n "checking for $ac_word... " >&6; }
  4840. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4841. $as_echo_n "(cached) " >&6
  4842. else
  4843. if test -n "$ac_ct_DUMPBIN"; then
  4844. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4845. else
  4846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4847. for as_dir in $PATH
  4848. do
  4849. IFS=$as_save_IFS
  4850. test -z "$as_dir" && as_dir=.
  4851. for ac_exec_ext in '' $ac_executable_extensions; do
  4852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4853. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4855. break 2
  4856. fi
  4857. done
  4858. done
  4859. IFS=$as_save_IFS
  4860. fi
  4861. fi
  4862. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4863. if test -n "$ac_ct_DUMPBIN"; then
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4865. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4866. else
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4868. $as_echo "no" >&6; }
  4869. fi
  4870. test -n "$ac_ct_DUMPBIN" && break
  4871. done
  4872. if test "x$ac_ct_DUMPBIN" = x; then
  4873. DUMPBIN=":"
  4874. else
  4875. case $cross_compiling:$ac_tool_warned in
  4876. yes:)
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4879. ac_tool_warned=yes ;;
  4880. esac
  4881. DUMPBIN=$ac_ct_DUMPBIN
  4882. fi
  4883. fi
  4884. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4885. *COFF*)
  4886. DUMPBIN="$DUMPBIN -symbols"
  4887. ;;
  4888. *)
  4889. DUMPBIN=:
  4890. ;;
  4891. esac
  4892. fi
  4893. if test "$DUMPBIN" != ":"; then
  4894. NM="$DUMPBIN"
  4895. fi
  4896. fi
  4897. test -z "$NM" && NM=nm
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4899. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4900. if test "${lt_cv_nm_interface+set}" = set; then :
  4901. $as_echo_n "(cached) " >&6
  4902. else
  4903. lt_cv_nm_interface="BSD nm"
  4904. echo "int some_variable = 0;" > conftest.$ac_ext
  4905. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4906. (eval "$ac_compile" 2>conftest.err)
  4907. cat conftest.err >&5
  4908. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4909. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4910. cat conftest.err >&5
  4911. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4912. cat conftest.out >&5
  4913. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4914. lt_cv_nm_interface="MS dumpbin"
  4915. fi
  4916. rm -f conftest*
  4917. fi
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4919. $as_echo "$lt_cv_nm_interface" >&6; }
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4921. $as_echo_n "checking whether ln -s works... " >&6; }
  4922. LN_S=$as_ln_s
  4923. if test "$LN_S" = "ln -s"; then
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4925. $as_echo "yes" >&6; }
  4926. else
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4928. $as_echo "no, using $LN_S" >&6; }
  4929. fi
  4930. # find the maximum length of command line arguments
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4932. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4933. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. i=0
  4937. teststring="ABCD"
  4938. case $build_os in
  4939. msdosdjgpp*)
  4940. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4941. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4942. # during glob expansion). Even if it were fixed, the result of this
  4943. # check would be larger than it should be.
  4944. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4945. ;;
  4946. gnu*)
  4947. # Under GNU Hurd, this test is not required because there is
  4948. # no limit to the length of command line arguments.
  4949. # Libtool will interpret -1 as no limit whatsoever
  4950. lt_cv_sys_max_cmd_len=-1;
  4951. ;;
  4952. cygwin* | mingw* | cegcc*)
  4953. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4954. # about 5 minutes as the teststring grows exponentially.
  4955. # Worse, since 9x/ME are not pre-emptively multitasking,
  4956. # you end up with a "frozen" computer, even though with patience
  4957. # the test eventually succeeds (with a max line length of 256k).
  4958. # Instead, let's just punt: use the minimum linelength reported by
  4959. # all of the supported platforms: 8192 (on NT/2K/XP).
  4960. lt_cv_sys_max_cmd_len=8192;
  4961. ;;
  4962. mint*)
  4963. # On MiNT this can take a long time and run out of memory.
  4964. lt_cv_sys_max_cmd_len=8192;
  4965. ;;
  4966. amigaos*)
  4967. # On AmigaOS with pdksh, this test takes hours, literally.
  4968. # So we just punt and use a minimum line length of 8192.
  4969. lt_cv_sys_max_cmd_len=8192;
  4970. ;;
  4971. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4972. # This has been around since 386BSD, at least. Likely further.
  4973. if test -x /sbin/sysctl; then
  4974. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4975. elif test -x /usr/sbin/sysctl; then
  4976. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4977. else
  4978. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4979. fi
  4980. # And add a safety zone
  4981. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4982. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4983. ;;
  4984. interix*)
  4985. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4986. lt_cv_sys_max_cmd_len=196608
  4987. ;;
  4988. osf*)
  4989. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4990. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4991. # nice to cause kernel panics so lets avoid the loop below.
  4992. # First set a reasonable default.
  4993. lt_cv_sys_max_cmd_len=16384
  4994. #
  4995. if test -x /sbin/sysconfig; then
  4996. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4997. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4998. esac
  4999. fi
  5000. ;;
  5001. sco3.2v5*)
  5002. lt_cv_sys_max_cmd_len=102400
  5003. ;;
  5004. sysv5* | sco5v6* | sysv4.2uw2*)
  5005. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5006. if test -n "$kargmax"; then
  5007. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5008. else
  5009. lt_cv_sys_max_cmd_len=32768
  5010. fi
  5011. ;;
  5012. *)
  5013. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5014. if test -n "$lt_cv_sys_max_cmd_len"; then
  5015. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5016. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5017. else
  5018. # Make teststring a little bigger before we do anything with it.
  5019. # a 1K string should be a reasonable start.
  5020. for i in 1 2 3 4 5 6 7 8 ; do
  5021. teststring=$teststring$teststring
  5022. done
  5023. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5024. # If test is not a shell built-in, we'll probably end up computing a
  5025. # maximum length that is only half of the actual maximum length, but
  5026. # we can't tell.
  5027. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5028. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5029. test $i != 17 # 1/2 MB should be enough
  5030. do
  5031. i=`expr $i + 1`
  5032. teststring=$teststring$teststring
  5033. done
  5034. # Only check the string length outside the loop.
  5035. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5036. teststring=
  5037. # Add a significant safety factor because C++ compilers can tack on
  5038. # massive amounts of additional arguments before passing them to the
  5039. # linker. It appears as though 1/2 is a usable value.
  5040. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5041. fi
  5042. ;;
  5043. esac
  5044. fi
  5045. if test -n $lt_cv_sys_max_cmd_len ; then
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5047. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5048. else
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5050. $as_echo "none" >&6; }
  5051. fi
  5052. max_cmd_len=$lt_cv_sys_max_cmd_len
  5053. : ${CP="cp -f"}
  5054. : ${MV="mv -f"}
  5055. : ${RM="rm -f"}
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5057. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5058. # Try some XSI features
  5059. xsi_shell=no
  5060. ( _lt_dummy="a/b/c"
  5061. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5062. = c,a/b,, \
  5063. && eval 'test $(( 1 + 1 )) -eq 2 \
  5064. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5065. && xsi_shell=yes
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5067. $as_echo "$xsi_shell" >&6; }
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5069. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5070. lt_shell_append=no
  5071. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5072. >/dev/null 2>&1 \
  5073. && lt_shell_append=yes
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5075. $as_echo "$lt_shell_append" >&6; }
  5076. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5077. lt_unset=unset
  5078. else
  5079. lt_unset=false
  5080. fi
  5081. # test EBCDIC or ASCII
  5082. case `echo X|tr X '\101'` in
  5083. A) # ASCII based system
  5084. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5085. lt_SP2NL='tr \040 \012'
  5086. lt_NL2SP='tr \015\012 \040\040'
  5087. ;;
  5088. *) # EBCDIC based system
  5089. lt_SP2NL='tr \100 \n'
  5090. lt_NL2SP='tr \r\n \100\100'
  5091. ;;
  5092. esac
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5094. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5095. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5096. $as_echo_n "(cached) " >&6
  5097. else
  5098. lt_cv_ld_reload_flag='-r'
  5099. fi
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5101. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5102. reload_flag=$lt_cv_ld_reload_flag
  5103. case $reload_flag in
  5104. "" | " "*) ;;
  5105. *) reload_flag=" $reload_flag" ;;
  5106. esac
  5107. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5108. case $host_os in
  5109. darwin*)
  5110. if test "$GCC" = yes; then
  5111. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5112. else
  5113. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5114. fi
  5115. ;;
  5116. esac
  5117. if test -n "$ac_tool_prefix"; then
  5118. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5119. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5121. $as_echo_n "checking for $ac_word... " >&6; }
  5122. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. if test -n "$OBJDUMP"; then
  5126. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5127. else
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131. IFS=$as_save_IFS
  5132. test -z "$as_dir" && as_dir=.
  5133. for ac_exec_ext in '' $ac_executable_extensions; do
  5134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5135. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. fi
  5143. fi
  5144. OBJDUMP=$ac_cv_prog_OBJDUMP
  5145. if test -n "$OBJDUMP"; then
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5147. $as_echo "$OBJDUMP" >&6; }
  5148. else
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5150. $as_echo "no" >&6; }
  5151. fi
  5152. fi
  5153. if test -z "$ac_cv_prog_OBJDUMP"; then
  5154. ac_ct_OBJDUMP=$OBJDUMP
  5155. # Extract the first word of "objdump", so it can be a program name with args.
  5156. set dummy objdump; ac_word=$2
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5158. $as_echo_n "checking for $ac_word... " >&6; }
  5159. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5160. $as_echo_n "(cached) " >&6
  5161. else
  5162. if test -n "$ac_ct_OBJDUMP"; then
  5163. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5164. else
  5165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5166. for as_dir in $PATH
  5167. do
  5168. IFS=$as_save_IFS
  5169. test -z "$as_dir" && as_dir=.
  5170. for ac_exec_ext in '' $ac_executable_extensions; do
  5171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5172. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5174. break 2
  5175. fi
  5176. done
  5177. done
  5178. IFS=$as_save_IFS
  5179. fi
  5180. fi
  5181. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5182. if test -n "$ac_ct_OBJDUMP"; then
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5184. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5185. else
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5187. $as_echo "no" >&6; }
  5188. fi
  5189. if test "x$ac_ct_OBJDUMP" = x; then
  5190. OBJDUMP="false"
  5191. else
  5192. case $cross_compiling:$ac_tool_warned in
  5193. yes:)
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5196. ac_tool_warned=yes ;;
  5197. esac
  5198. OBJDUMP=$ac_ct_OBJDUMP
  5199. fi
  5200. else
  5201. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5202. fi
  5203. test -z "$OBJDUMP" && OBJDUMP=objdump
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5205. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5206. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5207. $as_echo_n "(cached) " >&6
  5208. else
  5209. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5210. lt_cv_file_magic_test_file=
  5211. lt_cv_deplibs_check_method='unknown'
  5212. # Need to set the preceding variable on all platforms that support
  5213. # interlibrary dependencies.
  5214. # 'none' -- dependencies not supported.
  5215. # `unknown' -- same as none, but documents that we really don't know.
  5216. # 'pass_all' -- all dependencies passed with no checks.
  5217. # 'test_compile' -- check by making test program.
  5218. # 'file_magic [[regex]]' -- check by looking for files in library path
  5219. # which responds to the $file_magic_cmd with a given extended regex.
  5220. # If you have `file' or equivalent on your system and you're not sure
  5221. # whether `pass_all' will *always* work, you probably want this one.
  5222. case $host_os in
  5223. aix[4-9]*)
  5224. lt_cv_deplibs_check_method=pass_all
  5225. ;;
  5226. beos*)
  5227. lt_cv_deplibs_check_method=pass_all
  5228. ;;
  5229. bsdi[45]*)
  5230. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5231. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5232. lt_cv_file_magic_test_file=/shlib/libc.so
  5233. ;;
  5234. cygwin*)
  5235. # func_win32_libid is a shell function defined in ltmain.sh
  5236. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5237. lt_cv_file_magic_cmd='func_win32_libid'
  5238. ;;
  5239. mingw* | pw32*)
  5240. # Base MSYS/MinGW do not provide the 'file' command needed by
  5241. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5242. # unless we find 'file', for example because we are cross-compiling.
  5243. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5244. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5245. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5246. lt_cv_file_magic_cmd='func_win32_libid'
  5247. else
  5248. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5249. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5250. fi
  5251. ;;
  5252. cegcc*)
  5253. # use the weaker test based on 'objdump'. See mingw*.
  5254. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5255. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5256. ;;
  5257. darwin* | rhapsody*)
  5258. lt_cv_deplibs_check_method=pass_all
  5259. ;;
  5260. freebsd* | dragonfly*)
  5261. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5262. case $host_cpu in
  5263. i*86 )
  5264. # Not sure whether the presence of OpenBSD here was a mistake.
  5265. # Let's accept both of them until this is cleared up.
  5266. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5267. lt_cv_file_magic_cmd=/usr/bin/file
  5268. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5269. ;;
  5270. esac
  5271. else
  5272. lt_cv_deplibs_check_method=pass_all
  5273. fi
  5274. ;;
  5275. gnu*)
  5276. lt_cv_deplibs_check_method=pass_all
  5277. ;;
  5278. haiku*)
  5279. lt_cv_deplibs_check_method=pass_all
  5280. ;;
  5281. hpux10.20* | hpux11*)
  5282. lt_cv_file_magic_cmd=/usr/bin/file
  5283. case $host_cpu in
  5284. ia64*)
  5285. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5286. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5287. ;;
  5288. hppa*64*)
  5289. 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]'
  5290. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5291. ;;
  5292. *)
  5293. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5294. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5295. ;;
  5296. esac
  5297. ;;
  5298. interix[3-9]*)
  5299. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5300. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5301. ;;
  5302. irix5* | irix6* | nonstopux*)
  5303. case $LD in
  5304. *-32|*"-32 ") libmagic=32-bit;;
  5305. *-n32|*"-n32 ") libmagic=N32;;
  5306. *-64|*"-64 ") libmagic=64-bit;;
  5307. *) libmagic=never-match;;
  5308. esac
  5309. lt_cv_deplibs_check_method=pass_all
  5310. ;;
  5311. # This must be Linux ELF.
  5312. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5313. lt_cv_deplibs_check_method=pass_all
  5314. ;;
  5315. netbsd*)
  5316. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5317. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5318. else
  5319. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5320. fi
  5321. ;;
  5322. newos6*)
  5323. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5324. lt_cv_file_magic_cmd=/usr/bin/file
  5325. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5326. ;;
  5327. *nto* | *qnx*)
  5328. lt_cv_deplibs_check_method=pass_all
  5329. ;;
  5330. openbsd*)
  5331. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5332. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5333. else
  5334. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5335. fi
  5336. ;;
  5337. osf3* | osf4* | osf5*)
  5338. lt_cv_deplibs_check_method=pass_all
  5339. ;;
  5340. rdos*)
  5341. lt_cv_deplibs_check_method=pass_all
  5342. ;;
  5343. solaris*)
  5344. lt_cv_deplibs_check_method=pass_all
  5345. ;;
  5346. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5347. lt_cv_deplibs_check_method=pass_all
  5348. ;;
  5349. sysv4 | sysv4.3*)
  5350. case $host_vendor in
  5351. motorola)
  5352. 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]'
  5353. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5354. ;;
  5355. ncr)
  5356. lt_cv_deplibs_check_method=pass_all
  5357. ;;
  5358. sequent)
  5359. lt_cv_file_magic_cmd='/bin/file'
  5360. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5361. ;;
  5362. sni)
  5363. lt_cv_file_magic_cmd='/bin/file'
  5364. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5365. lt_cv_file_magic_test_file=/lib/libc.so
  5366. ;;
  5367. siemens)
  5368. lt_cv_deplibs_check_method=pass_all
  5369. ;;
  5370. pc)
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. esac
  5374. ;;
  5375. tpf*)
  5376. lt_cv_deplibs_check_method=pass_all
  5377. ;;
  5378. esac
  5379. fi
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5381. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5382. file_magic_cmd=$lt_cv_file_magic_cmd
  5383. deplibs_check_method=$lt_cv_deplibs_check_method
  5384. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5385. if test -n "$ac_tool_prefix"; then
  5386. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5387. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5389. $as_echo_n "checking for $ac_word... " >&6; }
  5390. if test "${ac_cv_prog_AR+set}" = set; then :
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. if test -n "$AR"; then
  5394. ac_cv_prog_AR="$AR" # Let the user override the test.
  5395. else
  5396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5397. for as_dir in $PATH
  5398. do
  5399. IFS=$as_save_IFS
  5400. test -z "$as_dir" && as_dir=.
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5403. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. AR=$ac_cv_prog_AR
  5413. if test -n "$AR"; then
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5415. $as_echo "$AR" >&6; }
  5416. else
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5418. $as_echo "no" >&6; }
  5419. fi
  5420. fi
  5421. if test -z "$ac_cv_prog_AR"; then
  5422. ac_ct_AR=$AR
  5423. # Extract the first word of "ar", so it can be a program name with args.
  5424. set dummy ar; ac_word=$2
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5426. $as_echo_n "checking for $ac_word... " >&6; }
  5427. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5428. $as_echo_n "(cached) " >&6
  5429. else
  5430. if test -n "$ac_ct_AR"; then
  5431. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5432. else
  5433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5434. for as_dir in $PATH
  5435. do
  5436. IFS=$as_save_IFS
  5437. test -z "$as_dir" && as_dir=.
  5438. for ac_exec_ext in '' $ac_executable_extensions; do
  5439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5440. ac_cv_prog_ac_ct_AR="ar"
  5441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5442. break 2
  5443. fi
  5444. done
  5445. done
  5446. IFS=$as_save_IFS
  5447. fi
  5448. fi
  5449. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5450. if test -n "$ac_ct_AR"; then
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5452. $as_echo "$ac_ct_AR" >&6; }
  5453. else
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5455. $as_echo "no" >&6; }
  5456. fi
  5457. if test "x$ac_ct_AR" = x; then
  5458. AR="false"
  5459. else
  5460. case $cross_compiling:$ac_tool_warned in
  5461. yes:)
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5464. ac_tool_warned=yes ;;
  5465. esac
  5466. AR=$ac_ct_AR
  5467. fi
  5468. else
  5469. AR="$ac_cv_prog_AR"
  5470. fi
  5471. test -z "$AR" && AR=ar
  5472. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5473. if test -n "$ac_tool_prefix"; then
  5474. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5475. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5477. $as_echo_n "checking for $ac_word... " >&6; }
  5478. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5479. $as_echo_n "(cached) " >&6
  5480. else
  5481. if test -n "$STRIP"; then
  5482. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5483. else
  5484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5485. for as_dir in $PATH
  5486. do
  5487. IFS=$as_save_IFS
  5488. test -z "$as_dir" && as_dir=.
  5489. for ac_exec_ext in '' $ac_executable_extensions; do
  5490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5491. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5493. break 2
  5494. fi
  5495. done
  5496. done
  5497. IFS=$as_save_IFS
  5498. fi
  5499. fi
  5500. STRIP=$ac_cv_prog_STRIP
  5501. if test -n "$STRIP"; then
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5503. $as_echo "$STRIP" >&6; }
  5504. else
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5506. $as_echo "no" >&6; }
  5507. fi
  5508. fi
  5509. if test -z "$ac_cv_prog_STRIP"; then
  5510. ac_ct_STRIP=$STRIP
  5511. # Extract the first word of "strip", so it can be a program name with args.
  5512. set dummy strip; ac_word=$2
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5514. $as_echo_n "checking for $ac_word... " >&6; }
  5515. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5516. $as_echo_n "(cached) " >&6
  5517. else
  5518. if test -n "$ac_ct_STRIP"; then
  5519. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5520. else
  5521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5522. for as_dir in $PATH
  5523. do
  5524. IFS=$as_save_IFS
  5525. test -z "$as_dir" && as_dir=.
  5526. for ac_exec_ext in '' $ac_executable_extensions; do
  5527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5528. ac_cv_prog_ac_ct_STRIP="strip"
  5529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5530. break 2
  5531. fi
  5532. done
  5533. done
  5534. IFS=$as_save_IFS
  5535. fi
  5536. fi
  5537. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5538. if test -n "$ac_ct_STRIP"; then
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5540. $as_echo "$ac_ct_STRIP" >&6; }
  5541. else
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5543. $as_echo "no" >&6; }
  5544. fi
  5545. if test "x$ac_ct_STRIP" = x; then
  5546. STRIP=":"
  5547. else
  5548. case $cross_compiling:$ac_tool_warned in
  5549. yes:)
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5551. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5552. ac_tool_warned=yes ;;
  5553. esac
  5554. STRIP=$ac_ct_STRIP
  5555. fi
  5556. else
  5557. STRIP="$ac_cv_prog_STRIP"
  5558. fi
  5559. test -z "$STRIP" && STRIP=:
  5560. if test -n "$ac_tool_prefix"; then
  5561. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5562. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5564. $as_echo_n "checking for $ac_word... " >&6; }
  5565. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5566. $as_echo_n "(cached) " >&6
  5567. else
  5568. if test -n "$RANLIB"; then
  5569. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5570. else
  5571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5572. for as_dir in $PATH
  5573. do
  5574. IFS=$as_save_IFS
  5575. test -z "$as_dir" && as_dir=.
  5576. for ac_exec_ext in '' $ac_executable_extensions; do
  5577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5578. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5580. break 2
  5581. fi
  5582. done
  5583. done
  5584. IFS=$as_save_IFS
  5585. fi
  5586. fi
  5587. RANLIB=$ac_cv_prog_RANLIB
  5588. if test -n "$RANLIB"; then
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5590. $as_echo "$RANLIB" >&6; }
  5591. else
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5593. $as_echo "no" >&6; }
  5594. fi
  5595. fi
  5596. if test -z "$ac_cv_prog_RANLIB"; then
  5597. ac_ct_RANLIB=$RANLIB
  5598. # Extract the first word of "ranlib", so it can be a program name with args.
  5599. set dummy ranlib; ac_word=$2
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. $as_echo_n "checking for $ac_word... " >&6; }
  5602. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. if test -n "$ac_ct_RANLIB"; then
  5606. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5607. else
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. test -z "$as_dir" && as_dir=.
  5613. for ac_exec_ext in '' $ac_executable_extensions; do
  5614. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5615. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5617. break 2
  5618. fi
  5619. done
  5620. done
  5621. IFS=$as_save_IFS
  5622. fi
  5623. fi
  5624. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5625. if test -n "$ac_ct_RANLIB"; then
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5627. $as_echo "$ac_ct_RANLIB" >&6; }
  5628. else
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5630. $as_echo "no" >&6; }
  5631. fi
  5632. if test "x$ac_ct_RANLIB" = x; then
  5633. RANLIB=":"
  5634. else
  5635. case $cross_compiling:$ac_tool_warned in
  5636. yes:)
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5639. ac_tool_warned=yes ;;
  5640. esac
  5641. RANLIB=$ac_ct_RANLIB
  5642. fi
  5643. else
  5644. RANLIB="$ac_cv_prog_RANLIB"
  5645. fi
  5646. test -z "$RANLIB" && RANLIB=:
  5647. # Determine commands to create old-style static archives.
  5648. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5649. old_postinstall_cmds='chmod 644 $oldlib'
  5650. old_postuninstall_cmds=
  5651. if test -n "$RANLIB"; then
  5652. case $host_os in
  5653. openbsd*)
  5654. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5655. ;;
  5656. *)
  5657. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5658. ;;
  5659. esac
  5660. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5661. fi
  5662. case $host_os in
  5663. darwin*)
  5664. lock_old_archive_extraction=yes ;;
  5665. *)
  5666. lock_old_archive_extraction=no ;;
  5667. esac
  5668. for ac_prog in gawk mawk nawk awk
  5669. do
  5670. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5671. set dummy $ac_prog; ac_word=$2
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5673. $as_echo_n "checking for $ac_word... " >&6; }
  5674. if test "${ac_cv_prog_AWK+set}" = set; then :
  5675. $as_echo_n "(cached) " >&6
  5676. else
  5677. if test -n "$AWK"; then
  5678. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5679. else
  5680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5681. for as_dir in $PATH
  5682. do
  5683. IFS=$as_save_IFS
  5684. test -z "$as_dir" && as_dir=.
  5685. for ac_exec_ext in '' $ac_executable_extensions; do
  5686. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5687. ac_cv_prog_AWK="$ac_prog"
  5688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5689. break 2
  5690. fi
  5691. done
  5692. done
  5693. IFS=$as_save_IFS
  5694. fi
  5695. fi
  5696. AWK=$ac_cv_prog_AWK
  5697. if test -n "$AWK"; then
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5699. $as_echo "$AWK" >&6; }
  5700. else
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5702. $as_echo "no" >&6; }
  5703. fi
  5704. test -n "$AWK" && break
  5705. done
  5706. # If no C compiler was specified, use CC.
  5707. LTCC=${LTCC-"$CC"}
  5708. # If no C compiler flags were specified, use CFLAGS.
  5709. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5710. # Allow CC to be a program name with arguments.
  5711. compiler=$CC
  5712. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5714. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5715. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5716. $as_echo_n "(cached) " >&6
  5717. else
  5718. # These are sane defaults that work on at least a few old systems.
  5719. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5720. # Character class describing NM global symbol codes.
  5721. symcode='[BCDEGRST]'
  5722. # Regexp to match symbols that can be accessed directly from C.
  5723. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5724. # Define system-specific variables.
  5725. case $host_os in
  5726. aix*)
  5727. symcode='[BCDT]'
  5728. ;;
  5729. cygwin* | mingw* | pw32* | cegcc*)
  5730. symcode='[ABCDGISTW]'
  5731. ;;
  5732. hpux*)
  5733. if test "$host_cpu" = ia64; then
  5734. symcode='[ABCDEGRST]'
  5735. fi
  5736. ;;
  5737. irix* | nonstopux*)
  5738. symcode='[BCDEGRST]'
  5739. ;;
  5740. osf*)
  5741. symcode='[BCDEGQRST]'
  5742. ;;
  5743. solaris*)
  5744. symcode='[BDRT]'
  5745. ;;
  5746. sco3.2v5*)
  5747. symcode='[DT]'
  5748. ;;
  5749. sysv4.2uw2*)
  5750. symcode='[DT]'
  5751. ;;
  5752. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5753. symcode='[ABDT]'
  5754. ;;
  5755. sysv4)
  5756. symcode='[DFNSTU]'
  5757. ;;
  5758. esac
  5759. # If we're using GNU nm, then use its standard symbol codes.
  5760. case `$NM -V 2>&1` in
  5761. *GNU* | *'with BFD'*)
  5762. symcode='[ABCDGIRSTW]' ;;
  5763. esac
  5764. # Transform an extracted symbol line into a proper C declaration.
  5765. # Some systems (esp. on ia64) link data and code symbols differently,
  5766. # so use this general approach.
  5767. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5768. # Transform an extracted symbol line into symbol name and symbol address
  5769. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5770. 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'"
  5771. # Handle CRLF in mingw tool chain
  5772. opt_cr=
  5773. case $build_os in
  5774. mingw*)
  5775. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5776. ;;
  5777. esac
  5778. # Try without a prefix underscore, then with it.
  5779. for ac_symprfx in "" "_"; do
  5780. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5781. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5782. # Write the raw and C identifiers.
  5783. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5784. # Fake it for dumpbin and say T for any non-static function
  5785. # and D for any global variable.
  5786. # Also find C++ and __fastcall symbols from MSVC++,
  5787. # which start with @ or ?.
  5788. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5789. " {last_section=section; section=\$ 3};"\
  5790. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5791. " \$ 0!~/External *\|/{next};"\
  5792. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5793. " {if(hide[section]) next};"\
  5794. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5795. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5796. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5797. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5798. " ' prfx=^$ac_symprfx"
  5799. else
  5800. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5801. fi
  5802. # Check to see that the pipe works correctly.
  5803. pipe_works=no
  5804. rm -f conftest*
  5805. cat > conftest.$ac_ext <<_LT_EOF
  5806. #ifdef __cplusplus
  5807. extern "C" {
  5808. #endif
  5809. char nm_test_var;
  5810. void nm_test_func(void);
  5811. void nm_test_func(void){}
  5812. #ifdef __cplusplus
  5813. }
  5814. #endif
  5815. int main(){nm_test_var='a';nm_test_func();return(0);}
  5816. _LT_EOF
  5817. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5818. (eval $ac_compile) 2>&5
  5819. ac_status=$?
  5820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5821. test $ac_status = 0; }; then
  5822. # Now try to grab the symbols.
  5823. nlist=conftest.nm
  5824. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5825. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5826. ac_status=$?
  5827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5828. test $ac_status = 0; } && test -s "$nlist"; then
  5829. # Try sorting and uniquifying the output.
  5830. if sort "$nlist" | uniq > "$nlist"T; then
  5831. mv -f "$nlist"T "$nlist"
  5832. else
  5833. rm -f "$nlist"T
  5834. fi
  5835. # Make sure that we snagged all the symbols we need.
  5836. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5837. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5838. cat <<_LT_EOF > conftest.$ac_ext
  5839. #ifdef __cplusplus
  5840. extern "C" {
  5841. #endif
  5842. _LT_EOF
  5843. # Now generate the symbol file.
  5844. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5845. cat <<_LT_EOF >> conftest.$ac_ext
  5846. /* The mapping between symbol names and symbols. */
  5847. const struct {
  5848. const char *name;
  5849. void *address;
  5850. }
  5851. lt__PROGRAM__LTX_preloaded_symbols[] =
  5852. {
  5853. { "@PROGRAM@", (void *) 0 },
  5854. _LT_EOF
  5855. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5856. cat <<\_LT_EOF >> conftest.$ac_ext
  5857. {0, (void *) 0}
  5858. };
  5859. /* This works around a problem in FreeBSD linker */
  5860. #ifdef FREEBSD_WORKAROUND
  5861. static const void *lt_preloaded_setup() {
  5862. return lt__PROGRAM__LTX_preloaded_symbols;
  5863. }
  5864. #endif
  5865. #ifdef __cplusplus
  5866. }
  5867. #endif
  5868. _LT_EOF
  5869. # Now try linking the two files.
  5870. mv conftest.$ac_objext conftstm.$ac_objext
  5871. lt_save_LIBS="$LIBS"
  5872. lt_save_CFLAGS="$CFLAGS"
  5873. LIBS="conftstm.$ac_objext"
  5874. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5875. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5876. (eval $ac_link) 2>&5
  5877. ac_status=$?
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5879. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5880. pipe_works=yes
  5881. fi
  5882. LIBS="$lt_save_LIBS"
  5883. CFLAGS="$lt_save_CFLAGS"
  5884. else
  5885. echo "cannot find nm_test_func in $nlist" >&5
  5886. fi
  5887. else
  5888. echo "cannot find nm_test_var in $nlist" >&5
  5889. fi
  5890. else
  5891. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5892. fi
  5893. else
  5894. echo "$progname: failed program was:" >&5
  5895. cat conftest.$ac_ext >&5
  5896. fi
  5897. rm -rf conftest* conftst*
  5898. # Do not use the global_symbol_pipe unless it works.
  5899. if test "$pipe_works" = yes; then
  5900. break
  5901. else
  5902. lt_cv_sys_global_symbol_pipe=
  5903. fi
  5904. done
  5905. fi
  5906. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5907. lt_cv_sys_global_symbol_to_cdecl=
  5908. fi
  5909. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5911. $as_echo "failed" >&6; }
  5912. else
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5914. $as_echo "ok" >&6; }
  5915. fi
  5916. # Check whether --enable-libtool-lock was given.
  5917. if test "${enable_libtool_lock+set}" = set; then :
  5918. enableval=$enable_libtool_lock;
  5919. fi
  5920. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5921. # Some flags need to be propagated to the compiler or linker for good
  5922. # libtool support.
  5923. case $host in
  5924. ia64-*-hpux*)
  5925. # Find out which ABI we are using.
  5926. echo 'int i;' > conftest.$ac_ext
  5927. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5928. (eval $ac_compile) 2>&5
  5929. ac_status=$?
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5931. test $ac_status = 0; }; then
  5932. case `/usr/bin/file conftest.$ac_objext` in
  5933. *ELF-32*)
  5934. HPUX_IA64_MODE="32"
  5935. ;;
  5936. *ELF-64*)
  5937. HPUX_IA64_MODE="64"
  5938. ;;
  5939. esac
  5940. fi
  5941. rm -rf conftest*
  5942. ;;
  5943. *-*-irix6*)
  5944. # Find out which ABI we are using.
  5945. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5946. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5947. (eval $ac_compile) 2>&5
  5948. ac_status=$?
  5949. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5950. test $ac_status = 0; }; then
  5951. if test "$lt_cv_prog_gnu_ld" = yes; then
  5952. case `/usr/bin/file conftest.$ac_objext` in
  5953. *32-bit*)
  5954. LD="${LD-ld} -melf32bsmip"
  5955. ;;
  5956. *N32*)
  5957. LD="${LD-ld} -melf32bmipn32"
  5958. ;;
  5959. *64-bit*)
  5960. LD="${LD-ld} -melf64bmip"
  5961. ;;
  5962. esac
  5963. else
  5964. case `/usr/bin/file conftest.$ac_objext` in
  5965. *32-bit*)
  5966. LD="${LD-ld} -32"
  5967. ;;
  5968. *N32*)
  5969. LD="${LD-ld} -n32"
  5970. ;;
  5971. *64-bit*)
  5972. LD="${LD-ld} -64"
  5973. ;;
  5974. esac
  5975. fi
  5976. fi
  5977. rm -rf conftest*
  5978. ;;
  5979. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5980. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5981. # Find out which ABI we are using.
  5982. echo 'int i;' > conftest.$ac_ext
  5983. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5984. (eval $ac_compile) 2>&5
  5985. ac_status=$?
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5987. test $ac_status = 0; }; then
  5988. case `/usr/bin/file conftest.o` in
  5989. *32-bit*)
  5990. case $host in
  5991. x86_64-*kfreebsd*-gnu)
  5992. LD="${LD-ld} -m elf_i386_fbsd"
  5993. ;;
  5994. x86_64-*linux*)
  5995. case `/usr/bin/file conftest.o` in
  5996. *x86-64*)
  5997. LD="${LD-ld} -m elf32_x86_64"
  5998. ;;
  5999. *)
  6000. LD="${LD-ld} -m elf_i386"
  6001. ;;
  6002. esac
  6003. ;;
  6004. powerpc64le-*linux*)
  6005. LD="${LD-ld} -m elf32lppclinux"
  6006. ;;
  6007. powerpc64-*linux*)
  6008. LD="${LD-ld} -m elf32ppclinux"
  6009. ;;
  6010. s390x-*linux*)
  6011. LD="${LD-ld} -m elf_s390"
  6012. ;;
  6013. sparc64-*linux*)
  6014. LD="${LD-ld} -m elf32_sparc"
  6015. ;;
  6016. esac
  6017. ;;
  6018. *64-bit*)
  6019. case $host in
  6020. x86_64-*kfreebsd*-gnu)
  6021. LD="${LD-ld} -m elf_x86_64_fbsd"
  6022. ;;
  6023. x86_64-*linux*)
  6024. LD="${LD-ld} -m elf_x86_64"
  6025. ;;
  6026. powerpcle-*linux*)
  6027. LD="${LD-ld} -m elf64lppc"
  6028. ;;
  6029. powerpc-*linux*)
  6030. LD="${LD-ld} -m elf64ppc"
  6031. ;;
  6032. s390*-*linux*|s390*-*tpf*)
  6033. LD="${LD-ld} -m elf64_s390"
  6034. ;;
  6035. sparc*-*linux*)
  6036. LD="${LD-ld} -m elf64_sparc"
  6037. ;;
  6038. esac
  6039. ;;
  6040. esac
  6041. fi
  6042. rm -rf conftest*
  6043. ;;
  6044. *-*-sco3.2v5*)
  6045. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6046. SAVE_CFLAGS="$CFLAGS"
  6047. CFLAGS="$CFLAGS -belf"
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6049. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6050. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. ac_ext=c
  6054. ac_cpp='$CPP $CPPFLAGS'
  6055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6059. /* end confdefs.h. */
  6060. int
  6061. main ()
  6062. {
  6063. ;
  6064. return 0;
  6065. }
  6066. _ACEOF
  6067. if ac_fn_c_try_link "$LINENO"; then :
  6068. lt_cv_cc_needs_belf=yes
  6069. else
  6070. lt_cv_cc_needs_belf=no
  6071. fi
  6072. rm -f core conftest.err conftest.$ac_objext \
  6073. conftest$ac_exeext conftest.$ac_ext
  6074. ac_ext=c
  6075. ac_cpp='$CPP $CPPFLAGS'
  6076. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6077. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6078. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6079. fi
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6081. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6082. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6083. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6084. CFLAGS="$SAVE_CFLAGS"
  6085. fi
  6086. ;;
  6087. sparc*-*solaris*)
  6088. # Find out which ABI we are using.
  6089. echo 'int i;' > conftest.$ac_ext
  6090. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6091. (eval $ac_compile) 2>&5
  6092. ac_status=$?
  6093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6094. test $ac_status = 0; }; then
  6095. case `/usr/bin/file conftest.o` in
  6096. *64-bit*)
  6097. case $lt_cv_prog_gnu_ld in
  6098. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6099. *)
  6100. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6101. LD="${LD-ld} -64"
  6102. fi
  6103. ;;
  6104. esac
  6105. ;;
  6106. esac
  6107. fi
  6108. rm -rf conftest*
  6109. ;;
  6110. esac
  6111. need_locks="$enable_libtool_lock"
  6112. case $host_os in
  6113. rhapsody* | darwin*)
  6114. if test -n "$ac_tool_prefix"; then
  6115. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6116. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6118. $as_echo_n "checking for $ac_word... " >&6; }
  6119. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. if test -n "$DSYMUTIL"; then
  6123. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6124. else
  6125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6126. for as_dir in $PATH
  6127. do
  6128. IFS=$as_save_IFS
  6129. test -z "$as_dir" && as_dir=.
  6130. for ac_exec_ext in '' $ac_executable_extensions; do
  6131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6132. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6134. break 2
  6135. fi
  6136. done
  6137. done
  6138. IFS=$as_save_IFS
  6139. fi
  6140. fi
  6141. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6142. if test -n "$DSYMUTIL"; then
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6144. $as_echo "$DSYMUTIL" >&6; }
  6145. else
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6147. $as_echo "no" >&6; }
  6148. fi
  6149. fi
  6150. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6151. ac_ct_DSYMUTIL=$DSYMUTIL
  6152. # Extract the first word of "dsymutil", so it can be a program name with args.
  6153. set dummy dsymutil; ac_word=$2
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6155. $as_echo_n "checking for $ac_word... " >&6; }
  6156. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6157. $as_echo_n "(cached) " >&6
  6158. else
  6159. if test -n "$ac_ct_DSYMUTIL"; then
  6160. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6161. else
  6162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6163. for as_dir in $PATH
  6164. do
  6165. IFS=$as_save_IFS
  6166. test -z "$as_dir" && as_dir=.
  6167. for ac_exec_ext in '' $ac_executable_extensions; do
  6168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6169. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6171. break 2
  6172. fi
  6173. done
  6174. done
  6175. IFS=$as_save_IFS
  6176. fi
  6177. fi
  6178. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6179. if test -n "$ac_ct_DSYMUTIL"; then
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6181. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6182. else
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6184. $as_echo "no" >&6; }
  6185. fi
  6186. if test "x$ac_ct_DSYMUTIL" = x; then
  6187. DSYMUTIL=":"
  6188. else
  6189. case $cross_compiling:$ac_tool_warned in
  6190. yes:)
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6193. ac_tool_warned=yes ;;
  6194. esac
  6195. DSYMUTIL=$ac_ct_DSYMUTIL
  6196. fi
  6197. else
  6198. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6199. fi
  6200. if test -n "$ac_tool_prefix"; then
  6201. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6202. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6204. $as_echo_n "checking for $ac_word... " >&6; }
  6205. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6206. $as_echo_n "(cached) " >&6
  6207. else
  6208. if test -n "$NMEDIT"; then
  6209. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6210. else
  6211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6212. for as_dir in $PATH
  6213. do
  6214. IFS=$as_save_IFS
  6215. test -z "$as_dir" && as_dir=.
  6216. for ac_exec_ext in '' $ac_executable_extensions; do
  6217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6218. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6220. break 2
  6221. fi
  6222. done
  6223. done
  6224. IFS=$as_save_IFS
  6225. fi
  6226. fi
  6227. NMEDIT=$ac_cv_prog_NMEDIT
  6228. if test -n "$NMEDIT"; then
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6230. $as_echo "$NMEDIT" >&6; }
  6231. else
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6233. $as_echo "no" >&6; }
  6234. fi
  6235. fi
  6236. if test -z "$ac_cv_prog_NMEDIT"; then
  6237. ac_ct_NMEDIT=$NMEDIT
  6238. # Extract the first word of "nmedit", so it can be a program name with args.
  6239. set dummy nmedit; ac_word=$2
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6241. $as_echo_n "checking for $ac_word... " >&6; }
  6242. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6243. $as_echo_n "(cached) " >&6
  6244. else
  6245. if test -n "$ac_ct_NMEDIT"; then
  6246. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6247. else
  6248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6249. for as_dir in $PATH
  6250. do
  6251. IFS=$as_save_IFS
  6252. test -z "$as_dir" && as_dir=.
  6253. for ac_exec_ext in '' $ac_executable_extensions; do
  6254. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6255. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6257. break 2
  6258. fi
  6259. done
  6260. done
  6261. IFS=$as_save_IFS
  6262. fi
  6263. fi
  6264. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6265. if test -n "$ac_ct_NMEDIT"; then
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6267. $as_echo "$ac_ct_NMEDIT" >&6; }
  6268. else
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6270. $as_echo "no" >&6; }
  6271. fi
  6272. if test "x$ac_ct_NMEDIT" = x; then
  6273. NMEDIT=":"
  6274. else
  6275. case $cross_compiling:$ac_tool_warned in
  6276. yes:)
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6278. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6279. ac_tool_warned=yes ;;
  6280. esac
  6281. NMEDIT=$ac_ct_NMEDIT
  6282. fi
  6283. else
  6284. NMEDIT="$ac_cv_prog_NMEDIT"
  6285. fi
  6286. if test -n "$ac_tool_prefix"; then
  6287. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6288. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6290. $as_echo_n "checking for $ac_word... " >&6; }
  6291. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. if test -n "$LIPO"; then
  6295. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6296. else
  6297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6298. for as_dir in $PATH
  6299. do
  6300. IFS=$as_save_IFS
  6301. test -z "$as_dir" && as_dir=.
  6302. for ac_exec_ext in '' $ac_executable_extensions; do
  6303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6304. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6306. break 2
  6307. fi
  6308. done
  6309. done
  6310. IFS=$as_save_IFS
  6311. fi
  6312. fi
  6313. LIPO=$ac_cv_prog_LIPO
  6314. if test -n "$LIPO"; then
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6316. $as_echo "$LIPO" >&6; }
  6317. else
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6319. $as_echo "no" >&6; }
  6320. fi
  6321. fi
  6322. if test -z "$ac_cv_prog_LIPO"; then
  6323. ac_ct_LIPO=$LIPO
  6324. # Extract the first word of "lipo", so it can be a program name with args.
  6325. set dummy lipo; ac_word=$2
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6327. $as_echo_n "checking for $ac_word... " >&6; }
  6328. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6329. $as_echo_n "(cached) " >&6
  6330. else
  6331. if test -n "$ac_ct_LIPO"; then
  6332. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6333. else
  6334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6335. for as_dir in $PATH
  6336. do
  6337. IFS=$as_save_IFS
  6338. test -z "$as_dir" && as_dir=.
  6339. for ac_exec_ext in '' $ac_executable_extensions; do
  6340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6341. ac_cv_prog_ac_ct_LIPO="lipo"
  6342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6343. break 2
  6344. fi
  6345. done
  6346. done
  6347. IFS=$as_save_IFS
  6348. fi
  6349. fi
  6350. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6351. if test -n "$ac_ct_LIPO"; then
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6353. $as_echo "$ac_ct_LIPO" >&6; }
  6354. else
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6356. $as_echo "no" >&6; }
  6357. fi
  6358. if test "x$ac_ct_LIPO" = x; then
  6359. LIPO=":"
  6360. else
  6361. case $cross_compiling:$ac_tool_warned in
  6362. yes:)
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6365. ac_tool_warned=yes ;;
  6366. esac
  6367. LIPO=$ac_ct_LIPO
  6368. fi
  6369. else
  6370. LIPO="$ac_cv_prog_LIPO"
  6371. fi
  6372. if test -n "$ac_tool_prefix"; then
  6373. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6374. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6376. $as_echo_n "checking for $ac_word... " >&6; }
  6377. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6378. $as_echo_n "(cached) " >&6
  6379. else
  6380. if test -n "$OTOOL"; then
  6381. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6382. else
  6383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6384. for as_dir in $PATH
  6385. do
  6386. IFS=$as_save_IFS
  6387. test -z "$as_dir" && as_dir=.
  6388. for ac_exec_ext in '' $ac_executable_extensions; do
  6389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6390. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6392. break 2
  6393. fi
  6394. done
  6395. done
  6396. IFS=$as_save_IFS
  6397. fi
  6398. fi
  6399. OTOOL=$ac_cv_prog_OTOOL
  6400. if test -n "$OTOOL"; then
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6402. $as_echo "$OTOOL" >&6; }
  6403. else
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6405. $as_echo "no" >&6; }
  6406. fi
  6407. fi
  6408. if test -z "$ac_cv_prog_OTOOL"; then
  6409. ac_ct_OTOOL=$OTOOL
  6410. # Extract the first word of "otool", so it can be a program name with args.
  6411. set dummy otool; ac_word=$2
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6413. $as_echo_n "checking for $ac_word... " >&6; }
  6414. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6415. $as_echo_n "(cached) " >&6
  6416. else
  6417. if test -n "$ac_ct_OTOOL"; then
  6418. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6419. else
  6420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6421. for as_dir in $PATH
  6422. do
  6423. IFS=$as_save_IFS
  6424. test -z "$as_dir" && as_dir=.
  6425. for ac_exec_ext in '' $ac_executable_extensions; do
  6426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6427. ac_cv_prog_ac_ct_OTOOL="otool"
  6428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6429. break 2
  6430. fi
  6431. done
  6432. done
  6433. IFS=$as_save_IFS
  6434. fi
  6435. fi
  6436. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6437. if test -n "$ac_ct_OTOOL"; then
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6439. $as_echo "$ac_ct_OTOOL" >&6; }
  6440. else
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6442. $as_echo "no" >&6; }
  6443. fi
  6444. if test "x$ac_ct_OTOOL" = x; then
  6445. OTOOL=":"
  6446. else
  6447. case $cross_compiling:$ac_tool_warned in
  6448. yes:)
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6450. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6451. ac_tool_warned=yes ;;
  6452. esac
  6453. OTOOL=$ac_ct_OTOOL
  6454. fi
  6455. else
  6456. OTOOL="$ac_cv_prog_OTOOL"
  6457. fi
  6458. if test -n "$ac_tool_prefix"; then
  6459. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6460. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6462. $as_echo_n "checking for $ac_word... " >&6; }
  6463. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6464. $as_echo_n "(cached) " >&6
  6465. else
  6466. if test -n "$OTOOL64"; then
  6467. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6468. else
  6469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6470. for as_dir in $PATH
  6471. do
  6472. IFS=$as_save_IFS
  6473. test -z "$as_dir" && as_dir=.
  6474. for ac_exec_ext in '' $ac_executable_extensions; do
  6475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6476. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6478. break 2
  6479. fi
  6480. done
  6481. done
  6482. IFS=$as_save_IFS
  6483. fi
  6484. fi
  6485. OTOOL64=$ac_cv_prog_OTOOL64
  6486. if test -n "$OTOOL64"; then
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6488. $as_echo "$OTOOL64" >&6; }
  6489. else
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6491. $as_echo "no" >&6; }
  6492. fi
  6493. fi
  6494. if test -z "$ac_cv_prog_OTOOL64"; then
  6495. ac_ct_OTOOL64=$OTOOL64
  6496. # Extract the first word of "otool64", so it can be a program name with args.
  6497. set dummy otool64; ac_word=$2
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6499. $as_echo_n "checking for $ac_word... " >&6; }
  6500. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6501. $as_echo_n "(cached) " >&6
  6502. else
  6503. if test -n "$ac_ct_OTOOL64"; then
  6504. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6505. else
  6506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6507. for as_dir in $PATH
  6508. do
  6509. IFS=$as_save_IFS
  6510. test -z "$as_dir" && as_dir=.
  6511. for ac_exec_ext in '' $ac_executable_extensions; do
  6512. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6513. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6515. break 2
  6516. fi
  6517. done
  6518. done
  6519. IFS=$as_save_IFS
  6520. fi
  6521. fi
  6522. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6523. if test -n "$ac_ct_OTOOL64"; then
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6525. $as_echo "$ac_ct_OTOOL64" >&6; }
  6526. else
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6528. $as_echo "no" >&6; }
  6529. fi
  6530. if test "x$ac_ct_OTOOL64" = x; then
  6531. OTOOL64=":"
  6532. else
  6533. case $cross_compiling:$ac_tool_warned in
  6534. yes:)
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6536. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6537. ac_tool_warned=yes ;;
  6538. esac
  6539. OTOOL64=$ac_ct_OTOOL64
  6540. fi
  6541. else
  6542. OTOOL64="$ac_cv_prog_OTOOL64"
  6543. fi
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6545. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6546. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. lt_cv_apple_cc_single_mod=no
  6550. if test -z "${LT_MULTI_MODULE}"; then
  6551. # By default we will add the -single_module flag. You can override
  6552. # by either setting the environment variable LT_MULTI_MODULE
  6553. # non-empty at configure time, or by adding -multi_module to the
  6554. # link flags.
  6555. rm -rf libconftest.dylib*
  6556. echo "int foo(void){return 1;}" > conftest.c
  6557. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6558. -dynamiclib -Wl,-single_module conftest.c" >&5
  6559. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6560. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6561. _lt_result=$?
  6562. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6563. lt_cv_apple_cc_single_mod=yes
  6564. else
  6565. cat conftest.err >&5
  6566. fi
  6567. rm -rf libconftest.dylib*
  6568. rm -f conftest.*
  6569. fi
  6570. fi
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6572. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6574. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6575. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6576. $as_echo_n "(cached) " >&6
  6577. else
  6578. lt_cv_ld_exported_symbols_list=no
  6579. save_LDFLAGS=$LDFLAGS
  6580. echo "_main" > conftest.sym
  6581. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6583. /* end confdefs.h. */
  6584. int
  6585. main ()
  6586. {
  6587. ;
  6588. return 0;
  6589. }
  6590. _ACEOF
  6591. if ac_fn_c_try_link "$LINENO"; then :
  6592. lt_cv_ld_exported_symbols_list=yes
  6593. else
  6594. lt_cv_ld_exported_symbols_list=no
  6595. fi
  6596. rm -f core conftest.err conftest.$ac_objext \
  6597. conftest$ac_exeext conftest.$ac_ext
  6598. LDFLAGS="$save_LDFLAGS"
  6599. fi
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6601. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6603. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6604. if test "${lt_cv_ld_force_load+set}" = set; then :
  6605. $as_echo_n "(cached) " >&6
  6606. else
  6607. lt_cv_ld_force_load=no
  6608. cat > conftest.c << _LT_EOF
  6609. int forced_loaded() { return 2;}
  6610. _LT_EOF
  6611. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6612. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6613. echo "$AR cru libconftest.a conftest.o" >&5
  6614. $AR cru libconftest.a conftest.o 2>&5
  6615. cat > conftest.c << _LT_EOF
  6616. int main() { return 0;}
  6617. _LT_EOF
  6618. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6619. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6620. _lt_result=$?
  6621. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6622. lt_cv_ld_force_load=yes
  6623. else
  6624. cat conftest.err >&5
  6625. fi
  6626. rm -f conftest.err libconftest.a conftest conftest.c
  6627. rm -rf conftest.dSYM
  6628. fi
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6630. $as_echo "$lt_cv_ld_force_load" >&6; }
  6631. case $host_os in
  6632. rhapsody* | darwin1.[012])
  6633. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6634. darwin1.*)
  6635. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6636. darwin*) # darwin 5.x on
  6637. # if running on 10.5 or later, the deployment target defaults
  6638. # to the OS version, if on x86, and 10.4, the deployment
  6639. # target defaults to 10.4. Don't you love it?
  6640. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6641. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6642. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6643. 10.[012][,.]*)
  6644. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6645. 10.*)
  6646. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6647. esac
  6648. ;;
  6649. esac
  6650. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6651. _lt_dar_single_mod='$single_module'
  6652. fi
  6653. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6654. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6655. else
  6656. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6657. fi
  6658. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6659. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6660. else
  6661. _lt_dsymutil=
  6662. fi
  6663. ;;
  6664. esac
  6665. for ac_header in dlfcn.h
  6666. do :
  6667. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6668. "
  6669. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6670. cat >>confdefs.h <<_ACEOF
  6671. #define HAVE_DLFCN_H 1
  6672. _ACEOF
  6673. fi
  6674. done
  6675. # autoconf.info says this should be called right after AC_INIT.
  6676. ac_config_headers="$ac_config_headers config.h:config.in"
  6677. # Put a plausible default for CC_FOR_BUILD in Makefile.
  6678. if test "x$cross_compiling" = "xno"; then
  6679. CC_FOR_BUILD='$(CC)'
  6680. else
  6681. CC_FOR_BUILD=gcc
  6682. fi
  6683. AR=${AR-ar}
  6684. if test -n "$ac_tool_prefix"; then
  6685. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6686. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6688. $as_echo_n "checking for $ac_word... " >&6; }
  6689. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6690. $as_echo_n "(cached) " >&6
  6691. else
  6692. if test -n "$RANLIB"; then
  6693. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6694. else
  6695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6696. for as_dir in $PATH
  6697. do
  6698. IFS=$as_save_IFS
  6699. test -z "$as_dir" && as_dir=.
  6700. for ac_exec_ext in '' $ac_executable_extensions; do
  6701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6702. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6704. break 2
  6705. fi
  6706. done
  6707. done
  6708. IFS=$as_save_IFS
  6709. fi
  6710. fi
  6711. RANLIB=$ac_cv_prog_RANLIB
  6712. if test -n "$RANLIB"; then
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6714. $as_echo "$RANLIB" >&6; }
  6715. else
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6717. $as_echo "no" >&6; }
  6718. fi
  6719. fi
  6720. if test -z "$ac_cv_prog_RANLIB"; then
  6721. ac_ct_RANLIB=$RANLIB
  6722. # Extract the first word of "ranlib", so it can be a program name with args.
  6723. set dummy ranlib; ac_word=$2
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6725. $as_echo_n "checking for $ac_word... " >&6; }
  6726. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6727. $as_echo_n "(cached) " >&6
  6728. else
  6729. if test -n "$ac_ct_RANLIB"; then
  6730. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6731. else
  6732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6733. for as_dir in $PATH
  6734. do
  6735. IFS=$as_save_IFS
  6736. test -z "$as_dir" && as_dir=.
  6737. for ac_exec_ext in '' $ac_executable_extensions; do
  6738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6739. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6741. break 2
  6742. fi
  6743. done
  6744. done
  6745. IFS=$as_save_IFS
  6746. fi
  6747. fi
  6748. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6749. if test -n "$ac_ct_RANLIB"; then
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6751. $as_echo "$ac_ct_RANLIB" >&6; }
  6752. else
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6754. $as_echo "no" >&6; }
  6755. fi
  6756. if test "x$ac_ct_RANLIB" = x; then
  6757. RANLIB=":"
  6758. else
  6759. case $cross_compiling:$ac_tool_warned in
  6760. yes:)
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6762. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6763. ac_tool_warned=yes ;;
  6764. esac
  6765. RANLIB=$ac_ct_RANLIB
  6766. fi
  6767. else
  6768. RANLIB="$ac_cv_prog_RANLIB"
  6769. fi
  6770. # Some of the common include files depend on bfd.h, and bfd.h checks
  6771. # that config.h is included first by testing that the PACKAGE macro
  6772. # is defined.
  6773. PACKAGE=sim
  6774. cat >>confdefs.h <<_ACEOF
  6775. #define PACKAGE "$PACKAGE"
  6776. _ACEOF
  6777. # Dependency checking.
  6778. ac_config_commands="$ac_config_commands depdir"
  6779. depcc="$CC" am_compiler_list=
  6780. am_depcomp=$ac_aux_dir/depcomp
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6782. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6783. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. if test -f "$am_depcomp"; then
  6787. # We make a subdir and do the tests there. Otherwise we can end up
  6788. # making bogus files that we don't know about and never remove. For
  6789. # instance it was reported that on HP-UX the gcc test will end up
  6790. # making a dummy file named `D' -- because `-MD' means `put the output
  6791. # in D'.
  6792. mkdir conftest.dir
  6793. # Copy depcomp to subdir because otherwise we won't find it if we're
  6794. # using a relative directory.
  6795. cp "$am_depcomp" conftest.dir
  6796. cd conftest.dir
  6797. # We will build objects and dependencies in a subdirectory because
  6798. # it helps to detect inapplicable dependency modes. For instance
  6799. # both Tru64's cc and ICC support -MD to output dependencies as a
  6800. # side effect of compilation, but ICC will put the dependencies in
  6801. # the current directory while Tru64 will put them in the object
  6802. # directory.
  6803. mkdir sub
  6804. am_cv_CC_dependencies_compiler_type=none
  6805. if test "$am_compiler_list" = ""; then
  6806. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6807. fi
  6808. for depmode in $am_compiler_list; do
  6809. if test $depmode = none; then break; fi
  6810. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  6811. # Setup a source with many dependencies, because some compilers
  6812. # like to wrap large dependency lists on column 80 (with \), and
  6813. # we should not choose a depcomp mode which is confused by this.
  6814. #
  6815. # We need to recreate these files for each test, as the compiler may
  6816. # overwrite some of them when testing with obscure command lines.
  6817. # This happens at least with the AIX C compiler.
  6818. : > sub/conftest.c
  6819. for i in 1 2 3 4 5 6; do
  6820. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6821. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6822. # Solaris 8's {/usr,}/bin/sh.
  6823. touch sub/conftst$i.h
  6824. done
  6825. echo "include sub/conftest.Po" > confmf
  6826. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6827. # mode. It turns out that the SunPro C++ compiler does not properly
  6828. # handle `-M -o', and we need to detect this.
  6829. depcmd="depmode=$depmode \
  6830. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6831. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6832. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  6833. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  6834. if env $depcmd > conftest.err 2>&1 &&
  6835. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  6836. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  6837. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  6838. # icc doesn't choke on unknown options, it will just issue warnings
  6839. # or remarks (even with -Werror). So we grep stderr for any message
  6840. # that says an option was ignored or not supported.
  6841. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6842. # icc: Command line warning: ignoring option '-M'; no argument required
  6843. # The diagnosis changed in icc 8.0:
  6844. # icc: Command line remark: option '-MP' not supported
  6845. if (grep 'ignoring option' conftest.err ||
  6846. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6847. am_cv_CC_dependencies_compiler_type=$depmode
  6848. $as_echo "$as_me:$LINENO: success" >&5
  6849. break
  6850. fi
  6851. fi
  6852. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  6853. sed -e 's/^/| /' < conftest.err >&5
  6854. done
  6855. cd ..
  6856. rm -rf conftest.dir
  6857. else
  6858. am_cv_CC_dependencies_compiler_type=none
  6859. fi
  6860. fi
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6862. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6863. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  6864. then as_fn_error "no usable dependency style found" "$LINENO" 5
  6865. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6866. fi
  6867. # Check for the 'make' the user wants to use.
  6868. for ac_prog in make
  6869. do
  6870. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6871. set dummy $ac_prog; ac_word=$2
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6873. $as_echo_n "checking for $ac_word... " >&6; }
  6874. if test "${ac_cv_prog_MAKE+set}" = set; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. if test -n "$MAKE"; then
  6878. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  6879. else
  6880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6881. for as_dir in $PATH
  6882. do
  6883. IFS=$as_save_IFS
  6884. test -z "$as_dir" && as_dir=.
  6885. for ac_exec_ext in '' $ac_executable_extensions; do
  6886. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6887. ac_cv_prog_MAKE="$ac_prog"
  6888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6889. break 2
  6890. fi
  6891. done
  6892. done
  6893. IFS=$as_save_IFS
  6894. fi
  6895. fi
  6896. MAKE=$ac_cv_prog_MAKE
  6897. if test -n "$MAKE"; then
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  6899. $as_echo "$MAKE" >&6; }
  6900. else
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6902. $as_echo "no" >&6; }
  6903. fi
  6904. test -n "$MAKE" && break
  6905. done
  6906. MAKE_IS_GNU=
  6907. case "`$MAKE --version 2>&1 | sed 1q`" in
  6908. *GNU*)
  6909. MAKE_IS_GNU=yes
  6910. ;;
  6911. esac
  6912. if test "$MAKE_IS_GNU" = yes; then
  6913. GMAKE_TRUE=
  6914. GMAKE_FALSE='#'
  6915. else
  6916. GMAKE_TRUE='#'
  6917. GMAKE_FALSE=
  6918. fi
  6919. ALL_LINGUAS=
  6920. # If we haven't got the data from the intl directory,
  6921. # assume NLS is disabled.
  6922. USE_NLS=no
  6923. LIBINTL=
  6924. LIBINTL_DEP=
  6925. INCINTL=
  6926. XGETTEXT=
  6927. GMSGFMT=
  6928. POSUB=
  6929. if test -f ../../intl/config.intl; then
  6930. . ../../intl/config.intl
  6931. fi
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6933. $as_echo_n "checking whether NLS is requested... " >&6; }
  6934. if test x"$USE_NLS" != xyes; then
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6936. $as_echo "no" >&6; }
  6937. else
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6939. $as_echo "yes" >&6; }
  6940. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6942. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6943. # Look for .po and .gmo files in the source directory.
  6944. CATALOGS=
  6945. XLINGUAS=
  6946. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6947. # If there aren't any .gmo files the shell will give us the
  6948. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6949. # weeded out.
  6950. case "$cat" in *\**)
  6951. continue;;
  6952. esac
  6953. # The quadruple backslash is collapsed to a double backslash
  6954. # by the backticks, then collapsed again by the double quotes,
  6955. # leaving us with one backslash in the sed expression (right
  6956. # before the dot that mustn't act as a wildcard).
  6957. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6958. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6959. # The user is allowed to set LINGUAS to a list of languages to
  6960. # install catalogs for. If it's empty that means "all of them."
  6961. if test "x$LINGUAS" = x; then
  6962. CATALOGS="$CATALOGS $cat"
  6963. XLINGUAS="$XLINGUAS $lang"
  6964. else
  6965. case "$LINGUAS" in *$lang*)
  6966. CATALOGS="$CATALOGS $cat"
  6967. XLINGUAS="$XLINGUAS $lang"
  6968. ;;
  6969. esac
  6970. fi
  6971. done
  6972. LINGUAS="$XLINGUAS"
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6974. $as_echo "$LINGUAS" >&6; }
  6975. DATADIRNAME=share
  6976. INSTOBJEXT=.mo
  6977. GENCAT=gencat
  6978. CATOBJEXT=.gmo
  6979. fi
  6980. # Check for common headers.
  6981. # FIXME: Seems to me this can cause problems for i386-windows hosts.
  6982. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
  6983. for ac_header in stdlib.h string.h strings.h unistd.h time.h
  6984. do :
  6985. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6986. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6987. eval as_val=\$$as_ac_Header
  6988. if test "x$as_val" = x""yes; then :
  6989. cat >>confdefs.h <<_ACEOF
  6990. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6991. _ACEOF
  6992. fi
  6993. done
  6994. for ac_header in sys/time.h sys/resource.h
  6995. do :
  6996. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6997. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6998. eval as_val=\$$as_ac_Header
  6999. if test "x$as_val" = x""yes; then :
  7000. cat >>confdefs.h <<_ACEOF
  7001. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7002. _ACEOF
  7003. fi
  7004. done
  7005. for ac_header in fcntl.h fpu_control.h
  7006. do :
  7007. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7008. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7009. eval as_val=\$$as_ac_Header
  7010. if test "x$as_val" = x""yes; then :
  7011. cat >>confdefs.h <<_ACEOF
  7012. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7013. _ACEOF
  7014. fi
  7015. done
  7016. for ac_header in dlfcn.h errno.h sys/stat.h
  7017. do :
  7018. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7019. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7020. eval as_val=\$$as_ac_Header
  7021. if test "x$as_val" = x""yes; then :
  7022. cat >>confdefs.h <<_ACEOF
  7023. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7024. _ACEOF
  7025. fi
  7026. done
  7027. for ac_func in getrusage time sigaction __setfpucw
  7028. do :
  7029. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7030. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7031. eval as_val=\$$as_ac_var
  7032. if test "x$as_val" = x""yes; then :
  7033. cat >>confdefs.h <<_ACEOF
  7034. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7035. _ACEOF
  7036. fi
  7037. done
  7038. # Check for socket libraries
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  7040. $as_echo_n "checking for bind in -lsocket... " >&6; }
  7041. if test "${ac_cv_lib_socket_bind+set}" = set; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. ac_check_lib_save_LIBS=$LIBS
  7045. LIBS="-lsocket $LIBS"
  7046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7047. /* end confdefs.h. */
  7048. /* Override any GCC internal prototype to avoid an error.
  7049. Use char because int might match the return type of a GCC
  7050. builtin and then its argument prototype would still apply. */
  7051. #ifdef __cplusplus
  7052. extern "C"
  7053. #endif
  7054. char bind ();
  7055. int
  7056. main ()
  7057. {
  7058. return bind ();
  7059. ;
  7060. return 0;
  7061. }
  7062. _ACEOF
  7063. if ac_fn_c_try_link "$LINENO"; then :
  7064. ac_cv_lib_socket_bind=yes
  7065. else
  7066. ac_cv_lib_socket_bind=no
  7067. fi
  7068. rm -f core conftest.err conftest.$ac_objext \
  7069. conftest$ac_exeext conftest.$ac_ext
  7070. LIBS=$ac_check_lib_save_LIBS
  7071. fi
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  7073. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  7074. if test "x$ac_cv_lib_socket_bind" = x""yes; then :
  7075. cat >>confdefs.h <<_ACEOF
  7076. #define HAVE_LIBSOCKET 1
  7077. _ACEOF
  7078. LIBS="-lsocket $LIBS"
  7079. fi
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  7081. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  7082. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  7083. $as_echo_n "(cached) " >&6
  7084. else
  7085. ac_check_lib_save_LIBS=$LIBS
  7086. LIBS="-lnsl $LIBS"
  7087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7088. /* end confdefs.h. */
  7089. /* Override any GCC internal prototype to avoid an error.
  7090. Use char because int might match the return type of a GCC
  7091. builtin and then its argument prototype would still apply. */
  7092. #ifdef __cplusplus
  7093. extern "C"
  7094. #endif
  7095. char gethostbyname ();
  7096. int
  7097. main ()
  7098. {
  7099. return gethostbyname ();
  7100. ;
  7101. return 0;
  7102. }
  7103. _ACEOF
  7104. if ac_fn_c_try_link "$LINENO"; then :
  7105. ac_cv_lib_nsl_gethostbyname=yes
  7106. else
  7107. ac_cv_lib_nsl_gethostbyname=no
  7108. fi
  7109. rm -f core conftest.err conftest.$ac_objext \
  7110. conftest$ac_exeext conftest.$ac_ext
  7111. LIBS=$ac_check_lib_save_LIBS
  7112. fi
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7114. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  7115. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  7116. cat >>confdefs.h <<_ACEOF
  7117. #define HAVE_LIBNSL 1
  7118. _ACEOF
  7119. LIBS="-lnsl $LIBS"
  7120. fi
  7121. # BFD conditionally uses zlib, so we must link it in if libbfd does, by
  7122. # using the same condition.
  7123. # Use the system's zlib library.
  7124. zlibdir="-L\$(top_builddir)/../zlib"
  7125. zlibinc="-I\$(top_srcdir)/../zlib"
  7126. # Check whether --with-system-zlib was given.
  7127. if test "${with_system_zlib+set}" = set; then :
  7128. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7129. zlibdir=
  7130. zlibinc=
  7131. fi
  7132. fi
  7133. # BFD uses libdl when when plugins enabled.
  7134. maybe_plugins=no
  7135. for ac_header in dlfcn.h
  7136. do :
  7137. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7138. "
  7139. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7140. cat >>confdefs.h <<_ACEOF
  7141. #define HAVE_DLFCN_H 1
  7142. _ACEOF
  7143. maybe_plugins=yes
  7144. fi
  7145. done
  7146. for ac_header in windows.h
  7147. do :
  7148. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7149. "
  7150. if test "x$ac_cv_header_windows_h" = x""yes; then :
  7151. cat >>confdefs.h <<_ACEOF
  7152. #define HAVE_WINDOWS_H 1
  7153. _ACEOF
  7154. maybe_plugins=yes
  7155. fi
  7156. done
  7157. # Check whether --enable-plugins was given.
  7158. if test "${enable_plugins+set}" = set; then :
  7159. enableval=$enable_plugins; case "${enableval}" in
  7160. no) plugins=no ;;
  7161. *) plugins=yes
  7162. if test "$maybe_plugins" != "yes" ; then
  7163. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7164. fi ;;
  7165. esac
  7166. else
  7167. plugins=$maybe_plugins
  7168. fi
  7169. if test "$plugins" = "yes"; then
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  7171. $as_echo_n "checking for library containing dlopen... " >&6; }
  7172. if test "${ac_cv_search_dlopen+set}" = set; then :
  7173. $as_echo_n "(cached) " >&6
  7174. else
  7175. ac_func_search_save_LIBS=$LIBS
  7176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7177. /* end confdefs.h. */
  7178. /* Override any GCC internal prototype to avoid an error.
  7179. Use char because int might match the return type of a GCC
  7180. builtin and then its argument prototype would still apply. */
  7181. #ifdef __cplusplus
  7182. extern "C"
  7183. #endif
  7184. char dlopen ();
  7185. int
  7186. main ()
  7187. {
  7188. return dlopen ();
  7189. ;
  7190. return 0;
  7191. }
  7192. _ACEOF
  7193. for ac_lib in '' dl; do
  7194. if test -z "$ac_lib"; then
  7195. ac_res="none required"
  7196. else
  7197. ac_res=-l$ac_lib
  7198. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7199. fi
  7200. if ac_fn_c_try_link "$LINENO"; then :
  7201. ac_cv_search_dlopen=$ac_res
  7202. fi
  7203. rm -f core conftest.err conftest.$ac_objext \
  7204. conftest$ac_exeext
  7205. if test "${ac_cv_search_dlopen+set}" = set; then :
  7206. break
  7207. fi
  7208. done
  7209. if test "${ac_cv_search_dlopen+set}" = set; then :
  7210. else
  7211. ac_cv_search_dlopen=no
  7212. fi
  7213. rm conftest.$ac_ext
  7214. LIBS=$ac_func_search_save_LIBS
  7215. fi
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  7217. $as_echo "$ac_cv_search_dlopen" >&6; }
  7218. ac_res=$ac_cv_search_dlopen
  7219. if test "$ac_res" != no; then :
  7220. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7221. fi
  7222. fi
  7223. if test "$plugins" = yes; then
  7224. PLUGINS_TRUE=
  7225. PLUGINS_FALSE='#'
  7226. else
  7227. PLUGINS_TRUE='#'
  7228. PLUGINS_FALSE=
  7229. fi
  7230. # Set options
  7231. enable_dlopen=yes
  7232. enable_win32_dll=no
  7233. # Check whether --enable-shared was given.
  7234. if test "${enable_shared+set}" = set; then :
  7235. enableval=$enable_shared; p=${PACKAGE-default}
  7236. case $enableval in
  7237. yes) enable_shared=yes ;;
  7238. no) enable_shared=no ;;
  7239. *)
  7240. enable_shared=no
  7241. # Look at the argument we got. We use all the common list separators.
  7242. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7243. for pkg in $enableval; do
  7244. IFS="$lt_save_ifs"
  7245. if test "X$pkg" = "X$p"; then
  7246. enable_shared=yes
  7247. fi
  7248. done
  7249. IFS="$lt_save_ifs"
  7250. ;;
  7251. esac
  7252. else
  7253. enable_shared=yes
  7254. fi
  7255. # Check whether --enable-static was given.
  7256. if test "${enable_static+set}" = set; then :
  7257. enableval=$enable_static; p=${PACKAGE-default}
  7258. case $enableval in
  7259. yes) enable_static=yes ;;
  7260. no) enable_static=no ;;
  7261. *)
  7262. enable_static=no
  7263. # Look at the argument we got. We use all the common list separators.
  7264. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7265. for pkg in $enableval; do
  7266. IFS="$lt_save_ifs"
  7267. if test "X$pkg" = "X$p"; then
  7268. enable_static=yes
  7269. fi
  7270. done
  7271. IFS="$lt_save_ifs"
  7272. ;;
  7273. esac
  7274. else
  7275. enable_static=yes
  7276. fi
  7277. # Check whether --with-pic was given.
  7278. if test "${with_pic+set}" = set; then :
  7279. withval=$with_pic; pic_mode="$withval"
  7280. else
  7281. pic_mode=default
  7282. fi
  7283. test -z "$pic_mode" && pic_mode=default
  7284. # Check whether --enable-fast-install was given.
  7285. if test "${enable_fast_install+set}" = set; then :
  7286. enableval=$enable_fast_install; p=${PACKAGE-default}
  7287. case $enableval in
  7288. yes) enable_fast_install=yes ;;
  7289. no) enable_fast_install=no ;;
  7290. *)
  7291. enable_fast_install=no
  7292. # Look at the argument we got. We use all the common list separators.
  7293. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7294. for pkg in $enableval; do
  7295. IFS="$lt_save_ifs"
  7296. if test "X$pkg" = "X$p"; then
  7297. enable_fast_install=yes
  7298. fi
  7299. done
  7300. IFS="$lt_save_ifs"
  7301. ;;
  7302. esac
  7303. else
  7304. enable_fast_install=yes
  7305. fi
  7306. # This can be used to rebuild libtool when needed
  7307. LIBTOOL_DEPS="$ltmain"
  7308. # Always use our own libtool.
  7309. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7310. test -z "$LN_S" && LN_S="ln -s"
  7311. if test -n "${ZSH_VERSION+set}" ; then
  7312. setopt NO_GLOB_SUBST
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7315. $as_echo_n "checking for objdir... " >&6; }
  7316. if test "${lt_cv_objdir+set}" = set; then :
  7317. $as_echo_n "(cached) " >&6
  7318. else
  7319. rm -f .libs 2>/dev/null
  7320. mkdir .libs 2>/dev/null
  7321. if test -d .libs; then
  7322. lt_cv_objdir=.libs
  7323. else
  7324. # MS-DOS does not allow filenames that begin with a dot.
  7325. lt_cv_objdir=_libs
  7326. fi
  7327. rmdir .libs 2>/dev/null
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7330. $as_echo "$lt_cv_objdir" >&6; }
  7331. objdir=$lt_cv_objdir
  7332. cat >>confdefs.h <<_ACEOF
  7333. #define LT_OBJDIR "$lt_cv_objdir/"
  7334. _ACEOF
  7335. case $host_os in
  7336. aix3*)
  7337. # AIX sometimes has problems with the GCC collect2 program. For some
  7338. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7339. # vanish in a puff of smoke.
  7340. if test "X${COLLECT_NAMES+set}" != Xset; then
  7341. COLLECT_NAMES=
  7342. export COLLECT_NAMES
  7343. fi
  7344. ;;
  7345. esac
  7346. # Global variables:
  7347. ofile=libtool
  7348. can_build_shared=yes
  7349. # All known linkers require a `.a' archive for static linking (except MSVC,
  7350. # which needs '.lib').
  7351. libext=a
  7352. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7353. old_CC="$CC"
  7354. old_CFLAGS="$CFLAGS"
  7355. # Set sane defaults for various variables
  7356. test -z "$CC" && CC=cc
  7357. test -z "$LTCC" && LTCC=$CC
  7358. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7359. test -z "$LD" && LD=ld
  7360. test -z "$ac_objext" && ac_objext=o
  7361. for cc_temp in $compiler""; do
  7362. case $cc_temp in
  7363. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7364. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7365. \-*) ;;
  7366. *) break;;
  7367. esac
  7368. done
  7369. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7370. # Only perform the check for file, if the check method requires it
  7371. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7372. case $deplibs_check_method in
  7373. file_magic*)
  7374. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7376. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7377. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7378. $as_echo_n "(cached) " >&6
  7379. else
  7380. case $MAGIC_CMD in
  7381. [\\/*] | ?:[\\/]*)
  7382. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7383. ;;
  7384. *)
  7385. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7386. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7387. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7388. for ac_dir in $ac_dummy; do
  7389. IFS="$lt_save_ifs"
  7390. test -z "$ac_dir" && ac_dir=.
  7391. if test -f $ac_dir/${ac_tool_prefix}file; then
  7392. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7393. if test -n "$file_magic_test_file"; then
  7394. case $deplibs_check_method in
  7395. "file_magic "*)
  7396. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7397. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7398. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7399. $EGREP "$file_magic_regex" > /dev/null; then
  7400. :
  7401. else
  7402. cat <<_LT_EOF 1>&2
  7403. *** Warning: the command libtool uses to detect shared libraries,
  7404. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7405. *** The result is that libtool may fail to recognize shared libraries
  7406. *** as such. This will affect the creation of libtool libraries that
  7407. *** depend on shared libraries, but programs linked with such libtool
  7408. *** libraries will work regardless of this problem. Nevertheless, you
  7409. *** may want to report the problem to your system manager and/or to
  7410. *** bug-libtool@gnu.org
  7411. _LT_EOF
  7412. fi ;;
  7413. esac
  7414. fi
  7415. break
  7416. fi
  7417. done
  7418. IFS="$lt_save_ifs"
  7419. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7420. ;;
  7421. esac
  7422. fi
  7423. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7424. if test -n "$MAGIC_CMD"; then
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7426. $as_echo "$MAGIC_CMD" >&6; }
  7427. else
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7429. $as_echo "no" >&6; }
  7430. fi
  7431. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7432. if test -n "$ac_tool_prefix"; then
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7434. $as_echo_n "checking for file... " >&6; }
  7435. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7436. $as_echo_n "(cached) " >&6
  7437. else
  7438. case $MAGIC_CMD in
  7439. [\\/*] | ?:[\\/]*)
  7440. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7441. ;;
  7442. *)
  7443. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7444. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7445. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7446. for ac_dir in $ac_dummy; do
  7447. IFS="$lt_save_ifs"
  7448. test -z "$ac_dir" && ac_dir=.
  7449. if test -f $ac_dir/file; then
  7450. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7451. if test -n "$file_magic_test_file"; then
  7452. case $deplibs_check_method in
  7453. "file_magic "*)
  7454. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7455. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7456. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7457. $EGREP "$file_magic_regex" > /dev/null; then
  7458. :
  7459. else
  7460. cat <<_LT_EOF 1>&2
  7461. *** Warning: the command libtool uses to detect shared libraries,
  7462. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7463. *** The result is that libtool may fail to recognize shared libraries
  7464. *** as such. This will affect the creation of libtool libraries that
  7465. *** depend on shared libraries, but programs linked with such libtool
  7466. *** libraries will work regardless of this problem. Nevertheless, you
  7467. *** may want to report the problem to your system manager and/or to
  7468. *** bug-libtool@gnu.org
  7469. _LT_EOF
  7470. fi ;;
  7471. esac
  7472. fi
  7473. break
  7474. fi
  7475. done
  7476. IFS="$lt_save_ifs"
  7477. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7478. ;;
  7479. esac
  7480. fi
  7481. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7482. if test -n "$MAGIC_CMD"; then
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7484. $as_echo "$MAGIC_CMD" >&6; }
  7485. else
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7487. $as_echo "no" >&6; }
  7488. fi
  7489. else
  7490. MAGIC_CMD=:
  7491. fi
  7492. fi
  7493. fi
  7494. ;;
  7495. esac
  7496. # Use C for the default configuration in the libtool script
  7497. lt_save_CC="$CC"
  7498. ac_ext=c
  7499. ac_cpp='$CPP $CPPFLAGS'
  7500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7503. # Source file extension for C test sources.
  7504. ac_ext=c
  7505. # Object file extension for compiled C test sources.
  7506. objext=o
  7507. objext=$objext
  7508. # Code to be used in simple compile tests
  7509. lt_simple_compile_test_code="int some_variable = 0;"
  7510. # Code to be used in simple link tests
  7511. lt_simple_link_test_code='int main(){return(0);}'
  7512. # If no C compiler was specified, use CC.
  7513. LTCC=${LTCC-"$CC"}
  7514. # If no C compiler flags were specified, use CFLAGS.
  7515. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7516. # Allow CC to be a program name with arguments.
  7517. compiler=$CC
  7518. # Save the default compiler, since it gets overwritten when the other
  7519. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7520. compiler_DEFAULT=$CC
  7521. # save warnings/boilerplate of simple test code
  7522. ac_outfile=conftest.$ac_objext
  7523. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7524. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7525. _lt_compiler_boilerplate=`cat conftest.err`
  7526. $RM conftest*
  7527. ac_outfile=conftest.$ac_objext
  7528. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7529. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7530. _lt_linker_boilerplate=`cat conftest.err`
  7531. $RM -r conftest*
  7532. ## CAVEAT EMPTOR:
  7533. ## There is no encapsulation within the following macros, do not change
  7534. ## the running order or otherwise move them around unless you know exactly
  7535. ## what you are doing...
  7536. if test -n "$compiler"; then
  7537. lt_prog_compiler_no_builtin_flag=
  7538. if test "$GCC" = yes; then
  7539. case $cc_basename in
  7540. nvcc*)
  7541. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7542. *)
  7543. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7544. esac
  7545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7546. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7547. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7548. $as_echo_n "(cached) " >&6
  7549. else
  7550. lt_cv_prog_compiler_rtti_exceptions=no
  7551. ac_outfile=conftest.$ac_objext
  7552. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7553. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7554. # Insert the option either (1) after the last *FLAGS variable, or
  7555. # (2) before a word containing "conftest.", or (3) at the end.
  7556. # Note that $ac_compile itself does not contain backslashes and begins
  7557. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7558. # The option is referenced via a variable to avoid confusing sed.
  7559. lt_compile=`echo "$ac_compile" | $SED \
  7560. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7561. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7562. -e 's:$: $lt_compiler_flag:'`
  7563. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7564. (eval "$lt_compile" 2>conftest.err)
  7565. ac_status=$?
  7566. cat conftest.err >&5
  7567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7568. if (exit $ac_status) && test -s "$ac_outfile"; then
  7569. # The compiler can only warn and ignore the option if not recognized
  7570. # So say no if there are warnings other than the usual output.
  7571. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7572. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7573. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7574. lt_cv_prog_compiler_rtti_exceptions=yes
  7575. fi
  7576. fi
  7577. $RM conftest*
  7578. fi
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7580. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7581. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7582. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7583. else
  7584. :
  7585. fi
  7586. fi
  7587. lt_prog_compiler_wl=
  7588. lt_prog_compiler_pic=
  7589. lt_prog_compiler_static=
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7591. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7592. if test "$GCC" = yes; then
  7593. lt_prog_compiler_wl='-Wl,'
  7594. lt_prog_compiler_static='-static'
  7595. case $host_os in
  7596. aix*)
  7597. # All AIX code is PIC.
  7598. if test "$host_cpu" = ia64; then
  7599. # AIX 5 now supports IA64 processor
  7600. lt_prog_compiler_static='-Bstatic'
  7601. fi
  7602. lt_prog_compiler_pic='-fPIC'
  7603. ;;
  7604. amigaos*)
  7605. case $host_cpu in
  7606. powerpc)
  7607. # see comment about AmigaOS4 .so support
  7608. lt_prog_compiler_pic='-fPIC'
  7609. ;;
  7610. m68k)
  7611. # FIXME: we need at least 68020 code to build shared libraries, but
  7612. # adding the `-m68020' flag to GCC prevents building anything better,
  7613. # like `-m68040'.
  7614. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7615. ;;
  7616. esac
  7617. ;;
  7618. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7619. # PIC is the default for these OSes.
  7620. ;;
  7621. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7622. # This hack is so that the source file can tell whether it is being
  7623. # built for inclusion in a dll (and should export symbols for example).
  7624. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7625. # (--disable-auto-import) libraries
  7626. lt_prog_compiler_pic='-DDLL_EXPORT'
  7627. ;;
  7628. darwin* | rhapsody*)
  7629. # PIC is the default on this platform
  7630. # Common symbols not allowed in MH_DYLIB files
  7631. lt_prog_compiler_pic='-fno-common'
  7632. ;;
  7633. haiku*)
  7634. # PIC is the default for Haiku.
  7635. # The "-static" flag exists, but is broken.
  7636. lt_prog_compiler_static=
  7637. ;;
  7638. hpux*)
  7639. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7640. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7641. # sets the default TLS model and affects inlining.
  7642. case $host_cpu in
  7643. hppa*64*)
  7644. # +Z the default
  7645. ;;
  7646. *)
  7647. lt_prog_compiler_pic='-fPIC'
  7648. ;;
  7649. esac
  7650. ;;
  7651. interix[3-9]*)
  7652. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7653. # Instead, we relocate shared libraries at runtime.
  7654. ;;
  7655. msdosdjgpp*)
  7656. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7657. # on systems that don't support them.
  7658. lt_prog_compiler_can_build_shared=no
  7659. enable_shared=no
  7660. ;;
  7661. *nto* | *qnx*)
  7662. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7663. # it will coredump.
  7664. lt_prog_compiler_pic='-fPIC -shared'
  7665. ;;
  7666. sysv4*MP*)
  7667. if test -d /usr/nec; then
  7668. lt_prog_compiler_pic=-Kconform_pic
  7669. fi
  7670. ;;
  7671. *)
  7672. lt_prog_compiler_pic='-fPIC'
  7673. ;;
  7674. esac
  7675. case $cc_basename in
  7676. nvcc*) # Cuda Compiler Driver 2.2
  7677. lt_prog_compiler_wl='-Xlinker '
  7678. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7679. ;;
  7680. esac
  7681. else
  7682. # PORTME Check for flag to pass linker flags through the system compiler.
  7683. case $host_os in
  7684. aix*)
  7685. lt_prog_compiler_wl='-Wl,'
  7686. if test "$host_cpu" = ia64; then
  7687. # AIX 5 now supports IA64 processor
  7688. lt_prog_compiler_static='-Bstatic'
  7689. else
  7690. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7691. fi
  7692. ;;
  7693. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7694. # This hack is so that the source file can tell whether it is being
  7695. # built for inclusion in a dll (and should export symbols for example).
  7696. lt_prog_compiler_pic='-DDLL_EXPORT'
  7697. ;;
  7698. hpux9* | hpux10* | hpux11*)
  7699. lt_prog_compiler_wl='-Wl,'
  7700. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7701. # not for PA HP-UX.
  7702. case $host_cpu in
  7703. hppa*64*|ia64*)
  7704. # +Z the default
  7705. ;;
  7706. *)
  7707. lt_prog_compiler_pic='+Z'
  7708. ;;
  7709. esac
  7710. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7711. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7712. ;;
  7713. irix5* | irix6* | nonstopux*)
  7714. lt_prog_compiler_wl='-Wl,'
  7715. # PIC (with -KPIC) is the default.
  7716. lt_prog_compiler_static='-non_shared'
  7717. ;;
  7718. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7719. case $cc_basename in
  7720. # old Intel for x86_64 which still supported -KPIC.
  7721. ecc*)
  7722. lt_prog_compiler_wl='-Wl,'
  7723. lt_prog_compiler_pic='-KPIC'
  7724. lt_prog_compiler_static='-static'
  7725. ;;
  7726. # icc used to be incompatible with GCC.
  7727. # ICC 10 doesn't accept -KPIC any more.
  7728. icc* | ifort*)
  7729. lt_prog_compiler_wl='-Wl,'
  7730. lt_prog_compiler_pic='-fPIC'
  7731. lt_prog_compiler_static='-static'
  7732. ;;
  7733. # Lahey Fortran 8.1.
  7734. lf95*)
  7735. lt_prog_compiler_wl='-Wl,'
  7736. lt_prog_compiler_pic='--shared'
  7737. lt_prog_compiler_static='--static'
  7738. ;;
  7739. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7740. # Portland Group compilers (*not* the Pentium gcc compiler,
  7741. # which looks to be a dead project)
  7742. lt_prog_compiler_wl='-Wl,'
  7743. lt_prog_compiler_pic='-fpic'
  7744. lt_prog_compiler_static='-Bstatic'
  7745. ;;
  7746. ccc*)
  7747. lt_prog_compiler_wl='-Wl,'
  7748. # All Alpha code is PIC.
  7749. lt_prog_compiler_static='-non_shared'
  7750. ;;
  7751. xl* | bgxl* | bgf* | mpixl*)
  7752. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7753. lt_prog_compiler_wl='-Wl,'
  7754. lt_prog_compiler_pic='-qpic'
  7755. lt_prog_compiler_static='-qstaticlink'
  7756. ;;
  7757. *)
  7758. case `$CC -V 2>&1 | sed 5q` in
  7759. *Sun\ F* | *Sun*Fortran*)
  7760. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7761. lt_prog_compiler_pic='-KPIC'
  7762. lt_prog_compiler_static='-Bstatic'
  7763. lt_prog_compiler_wl=''
  7764. ;;
  7765. *Sun\ C*)
  7766. # Sun C 5.9
  7767. lt_prog_compiler_pic='-KPIC'
  7768. lt_prog_compiler_static='-Bstatic'
  7769. lt_prog_compiler_wl='-Wl,'
  7770. ;;
  7771. esac
  7772. ;;
  7773. esac
  7774. ;;
  7775. newsos6)
  7776. lt_prog_compiler_pic='-KPIC'
  7777. lt_prog_compiler_static='-Bstatic'
  7778. ;;
  7779. *nto* | *qnx*)
  7780. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7781. # it will coredump.
  7782. lt_prog_compiler_pic='-fPIC -shared'
  7783. ;;
  7784. osf3* | osf4* | osf5*)
  7785. lt_prog_compiler_wl='-Wl,'
  7786. # All OSF/1 code is PIC.
  7787. lt_prog_compiler_static='-non_shared'
  7788. ;;
  7789. rdos*)
  7790. lt_prog_compiler_static='-non_shared'
  7791. ;;
  7792. solaris*)
  7793. lt_prog_compiler_pic='-KPIC'
  7794. lt_prog_compiler_static='-Bstatic'
  7795. case $cc_basename in
  7796. f77* | f90* | f95*)
  7797. lt_prog_compiler_wl='-Qoption ld ';;
  7798. *)
  7799. lt_prog_compiler_wl='-Wl,';;
  7800. esac
  7801. ;;
  7802. sunos4*)
  7803. lt_prog_compiler_wl='-Qoption ld '
  7804. lt_prog_compiler_pic='-PIC'
  7805. lt_prog_compiler_static='-Bstatic'
  7806. ;;
  7807. sysv4 | sysv4.2uw2* | sysv4.3*)
  7808. lt_prog_compiler_wl='-Wl,'
  7809. lt_prog_compiler_pic='-KPIC'
  7810. lt_prog_compiler_static='-Bstatic'
  7811. ;;
  7812. sysv4*MP*)
  7813. if test -d /usr/nec ;then
  7814. lt_prog_compiler_pic='-Kconform_pic'
  7815. lt_prog_compiler_static='-Bstatic'
  7816. fi
  7817. ;;
  7818. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7819. lt_prog_compiler_wl='-Wl,'
  7820. lt_prog_compiler_pic='-KPIC'
  7821. lt_prog_compiler_static='-Bstatic'
  7822. ;;
  7823. unicos*)
  7824. lt_prog_compiler_wl='-Wl,'
  7825. lt_prog_compiler_can_build_shared=no
  7826. ;;
  7827. uts4*)
  7828. lt_prog_compiler_pic='-pic'
  7829. lt_prog_compiler_static='-Bstatic'
  7830. ;;
  7831. *)
  7832. lt_prog_compiler_can_build_shared=no
  7833. ;;
  7834. esac
  7835. fi
  7836. case $host_os in
  7837. # For platforms which do not support PIC, -DPIC is meaningless:
  7838. *djgpp*)
  7839. lt_prog_compiler_pic=
  7840. ;;
  7841. *)
  7842. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7843. ;;
  7844. esac
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7846. $as_echo "$lt_prog_compiler_pic" >&6; }
  7847. #
  7848. # Check to make sure the PIC flag actually works.
  7849. #
  7850. if test -n "$lt_prog_compiler_pic"; then
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7852. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7853. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7854. $as_echo_n "(cached) " >&6
  7855. else
  7856. lt_cv_prog_compiler_pic_works=no
  7857. ac_outfile=conftest.$ac_objext
  7858. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7859. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7860. # Insert the option either (1) after the last *FLAGS variable, or
  7861. # (2) before a word containing "conftest.", or (3) at the end.
  7862. # Note that $ac_compile itself does not contain backslashes and begins
  7863. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7864. # The option is referenced via a variable to avoid confusing sed.
  7865. lt_compile=`echo "$ac_compile" | $SED \
  7866. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7867. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7868. -e 's:$: $lt_compiler_flag:'`
  7869. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7870. (eval "$lt_compile" 2>conftest.err)
  7871. ac_status=$?
  7872. cat conftest.err >&5
  7873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7874. if (exit $ac_status) && test -s "$ac_outfile"; then
  7875. # The compiler can only warn and ignore the option if not recognized
  7876. # So say no if there are warnings other than the usual output.
  7877. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7878. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7879. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7880. lt_cv_prog_compiler_pic_works=yes
  7881. fi
  7882. fi
  7883. $RM conftest*
  7884. fi
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7886. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7887. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7888. case $lt_prog_compiler_pic in
  7889. "" | " "*) ;;
  7890. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7891. esac
  7892. else
  7893. lt_prog_compiler_pic=
  7894. lt_prog_compiler_can_build_shared=no
  7895. fi
  7896. fi
  7897. #
  7898. # Check to make sure the static flag actually works.
  7899. #
  7900. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7902. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7903. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7904. $as_echo_n "(cached) " >&6
  7905. else
  7906. lt_cv_prog_compiler_static_works=no
  7907. save_LDFLAGS="$LDFLAGS"
  7908. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7909. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7910. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7911. # The linker can only warn and ignore the option if not recognized
  7912. # So say no if there are warnings
  7913. if test -s conftest.err; then
  7914. # Append any errors to the config.log.
  7915. cat conftest.err 1>&5
  7916. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7917. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7918. if diff conftest.exp conftest.er2 >/dev/null; then
  7919. lt_cv_prog_compiler_static_works=yes
  7920. fi
  7921. else
  7922. lt_cv_prog_compiler_static_works=yes
  7923. fi
  7924. fi
  7925. $RM -r conftest*
  7926. LDFLAGS="$save_LDFLAGS"
  7927. fi
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7929. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7930. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7931. :
  7932. else
  7933. lt_prog_compiler_static=
  7934. fi
  7935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7936. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7937. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7938. $as_echo_n "(cached) " >&6
  7939. else
  7940. lt_cv_prog_compiler_c_o=no
  7941. $RM -r conftest 2>/dev/null
  7942. mkdir conftest
  7943. cd conftest
  7944. mkdir out
  7945. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7946. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7947. # Insert the option either (1) after the last *FLAGS variable, or
  7948. # (2) before a word containing "conftest.", or (3) at the end.
  7949. # Note that $ac_compile itself does not contain backslashes and begins
  7950. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7951. lt_compile=`echo "$ac_compile" | $SED \
  7952. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7953. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7954. -e 's:$: $lt_compiler_flag:'`
  7955. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7956. (eval "$lt_compile" 2>out/conftest.err)
  7957. ac_status=$?
  7958. cat out/conftest.err >&5
  7959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7960. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7961. then
  7962. # The compiler can only warn and ignore the option if not recognized
  7963. # So say no if there are warnings
  7964. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7965. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7966. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7967. lt_cv_prog_compiler_c_o=yes
  7968. fi
  7969. fi
  7970. chmod u+w . 2>&5
  7971. $RM conftest*
  7972. # SGI C++ compiler will create directory out/ii_files/ for
  7973. # template instantiation
  7974. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7975. $RM out/* && rmdir out
  7976. cd ..
  7977. $RM -r conftest
  7978. $RM conftest*
  7979. fi
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7981. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7983. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7984. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7985. $as_echo_n "(cached) " >&6
  7986. else
  7987. lt_cv_prog_compiler_c_o=no
  7988. $RM -r conftest 2>/dev/null
  7989. mkdir conftest
  7990. cd conftest
  7991. mkdir out
  7992. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7993. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7994. # Insert the option either (1) after the last *FLAGS variable, or
  7995. # (2) before a word containing "conftest.", or (3) at the end.
  7996. # Note that $ac_compile itself does not contain backslashes and begins
  7997. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7998. lt_compile=`echo "$ac_compile" | $SED \
  7999. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8000. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8001. -e 's:$: $lt_compiler_flag:'`
  8002. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8003. (eval "$lt_compile" 2>out/conftest.err)
  8004. ac_status=$?
  8005. cat out/conftest.err >&5
  8006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8007. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8008. then
  8009. # The compiler can only warn and ignore the option if not recognized
  8010. # So say no if there are warnings
  8011. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8012. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8013. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8014. lt_cv_prog_compiler_c_o=yes
  8015. fi
  8016. fi
  8017. chmod u+w . 2>&5
  8018. $RM conftest*
  8019. # SGI C++ compiler will create directory out/ii_files/ for
  8020. # template instantiation
  8021. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8022. $RM out/* && rmdir out
  8023. cd ..
  8024. $RM -r conftest
  8025. $RM conftest*
  8026. fi
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8028. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8029. hard_links="nottested"
  8030. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8031. # do not overwrite the value of need_locks provided by the user
  8032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8033. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8034. hard_links=yes
  8035. $RM conftest*
  8036. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8037. touch conftest.a
  8038. ln conftest.a conftest.b 2>&5 || hard_links=no
  8039. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8041. $as_echo "$hard_links" >&6; }
  8042. if test "$hard_links" = no; then
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8044. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8045. need_locks=warn
  8046. fi
  8047. else
  8048. need_locks=no
  8049. fi
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8051. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8052. runpath_var=
  8053. allow_undefined_flag=
  8054. always_export_symbols=no
  8055. archive_cmds=
  8056. archive_expsym_cmds=
  8057. compiler_needs_object=no
  8058. enable_shared_with_static_runtimes=no
  8059. export_dynamic_flag_spec=
  8060. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8061. hardcode_automatic=no
  8062. hardcode_direct=no
  8063. hardcode_direct_absolute=no
  8064. hardcode_libdir_flag_spec=
  8065. hardcode_libdir_flag_spec_ld=
  8066. hardcode_libdir_separator=
  8067. hardcode_minus_L=no
  8068. hardcode_shlibpath_var=unsupported
  8069. inherit_rpath=no
  8070. link_all_deplibs=unknown
  8071. module_cmds=
  8072. module_expsym_cmds=
  8073. old_archive_from_new_cmds=
  8074. old_archive_from_expsyms_cmds=
  8075. thread_safe_flag_spec=
  8076. whole_archive_flag_spec=
  8077. # include_expsyms should be a list of space-separated symbols to be *always*
  8078. # included in the symbol list
  8079. include_expsyms=
  8080. # exclude_expsyms can be an extended regexp of symbols to exclude
  8081. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8082. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8083. # as well as any symbol that contains `d'.
  8084. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8085. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8086. # platforms (ab)use it in PIC code, but their linkers get confused if
  8087. # the symbol is explicitly referenced. Since portable code cannot
  8088. # rely on this symbol name, it's probably fine to never include it in
  8089. # preloaded symbol tables.
  8090. # Exclude shared library initialization/finalization symbols.
  8091. extract_expsyms_cmds=
  8092. case $host_os in
  8093. cygwin* | mingw* | pw32* | cegcc*)
  8094. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8095. # When not using gcc, we currently assume that we are using
  8096. # Microsoft Visual C++.
  8097. if test "$GCC" != yes; then
  8098. with_gnu_ld=no
  8099. fi
  8100. ;;
  8101. interix*)
  8102. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8103. with_gnu_ld=yes
  8104. ;;
  8105. openbsd*)
  8106. with_gnu_ld=no
  8107. ;;
  8108. esac
  8109. ld_shlibs=yes
  8110. # On some targets, GNU ld is compatible enough with the native linker
  8111. # that we're better off using the native interface for both.
  8112. lt_use_gnu_ld_interface=no
  8113. if test "$with_gnu_ld" = yes; then
  8114. case $host_os in
  8115. aix*)
  8116. # The AIX port of GNU ld has always aspired to compatibility
  8117. # with the native linker. However, as the warning in the GNU ld
  8118. # block says, versions before 2.19.5* couldn't really create working
  8119. # shared libraries, regardless of the interface used.
  8120. case `$LD -v 2>&1` in
  8121. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8122. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8123. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8124. *)
  8125. lt_use_gnu_ld_interface=yes
  8126. ;;
  8127. esac
  8128. ;;
  8129. *)
  8130. lt_use_gnu_ld_interface=yes
  8131. ;;
  8132. esac
  8133. fi
  8134. if test "$lt_use_gnu_ld_interface" = yes; then
  8135. # If archive_cmds runs LD, not CC, wlarc should be empty
  8136. wlarc='${wl}'
  8137. # Set some defaults for GNU ld with shared library support. These
  8138. # are reset later if shared libraries are not supported. Putting them
  8139. # here allows them to be overridden if necessary.
  8140. runpath_var=LD_RUN_PATH
  8141. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8142. export_dynamic_flag_spec='${wl}--export-dynamic'
  8143. # ancient GNU ld didn't support --whole-archive et. al.
  8144. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8145. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8146. else
  8147. whole_archive_flag_spec=
  8148. fi
  8149. supports_anon_versioning=no
  8150. case `$LD -v 2>&1` in
  8151. *GNU\ gold*) supports_anon_versioning=yes ;;
  8152. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8153. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8154. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8155. *\ 2.11.*) ;; # other 2.11 versions
  8156. *) supports_anon_versioning=yes ;;
  8157. esac
  8158. # See if GNU ld supports shared libraries.
  8159. case $host_os in
  8160. aix[3-9]*)
  8161. # On AIX/PPC, the GNU linker is very broken
  8162. if test "$host_cpu" != ia64; then
  8163. ld_shlibs=no
  8164. cat <<_LT_EOF 1>&2
  8165. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8166. *** to be unable to reliably create shared libraries on AIX.
  8167. *** Therefore, libtool is disabling shared libraries support. If you
  8168. *** really care for shared libraries, you may want to install binutils
  8169. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8170. *** You will then need to restart the configuration process.
  8171. _LT_EOF
  8172. fi
  8173. ;;
  8174. amigaos*)
  8175. case $host_cpu in
  8176. powerpc)
  8177. # see comment about AmigaOS4 .so support
  8178. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8179. archive_expsym_cmds=''
  8180. ;;
  8181. m68k)
  8182. 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)'
  8183. hardcode_libdir_flag_spec='-L$libdir'
  8184. hardcode_minus_L=yes
  8185. ;;
  8186. esac
  8187. ;;
  8188. beos*)
  8189. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8190. allow_undefined_flag=unsupported
  8191. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8192. # support --undefined. This deserves some investigation. FIXME
  8193. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8194. else
  8195. ld_shlibs=no
  8196. fi
  8197. ;;
  8198. cygwin* | mingw* | pw32* | cegcc*)
  8199. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8200. # as there is no search path for DLLs.
  8201. hardcode_libdir_flag_spec='-L$libdir'
  8202. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8203. allow_undefined_flag=unsupported
  8204. always_export_symbols=no
  8205. enable_shared_with_static_runtimes=yes
  8206. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8207. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8208. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8209. # If the export-symbols file already is a .def file (1st line
  8210. # is EXPORTS), use it as is; otherwise, prepend...
  8211. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8212. cp $export_symbols $output_objdir/$soname.def;
  8213. else
  8214. echo EXPORTS > $output_objdir/$soname.def;
  8215. cat $export_symbols >> $output_objdir/$soname.def;
  8216. fi~
  8217. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8218. else
  8219. ld_shlibs=no
  8220. fi
  8221. ;;
  8222. haiku*)
  8223. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8224. link_all_deplibs=yes
  8225. ;;
  8226. interix[3-9]*)
  8227. hardcode_direct=no
  8228. hardcode_shlibpath_var=no
  8229. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8230. export_dynamic_flag_spec='${wl}-E'
  8231. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8232. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8233. # default) and relocated if they conflict, which is a slow very memory
  8234. # consuming and fragmenting process. To avoid this, we pick a random,
  8235. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8236. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8237. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8238. 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'
  8239. ;;
  8240. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8241. tmp_diet=no
  8242. if test "$host_os" = linux-dietlibc; then
  8243. case $cc_basename in
  8244. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8245. esac
  8246. fi
  8247. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8248. && test "$tmp_diet" = no
  8249. then
  8250. tmp_addflag=' $pic_flag'
  8251. tmp_sharedflag='-shared'
  8252. case $cc_basename,$host_cpu in
  8253. pgcc*) # Portland Group C compiler
  8254. 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'
  8255. tmp_addflag=' $pic_flag'
  8256. ;;
  8257. pgf77* | pgf90* | pgf95* | pgfortran*)
  8258. # Portland Group f77 and f90 compilers
  8259. 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'
  8260. tmp_addflag=' $pic_flag -Mnomain' ;;
  8261. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8262. tmp_addflag=' -i_dynamic' ;;
  8263. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8264. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8265. ifc* | ifort*) # Intel Fortran compiler
  8266. tmp_addflag=' -nofor_main' ;;
  8267. lf95*) # Lahey Fortran 8.1
  8268. whole_archive_flag_spec=
  8269. tmp_sharedflag='--shared' ;;
  8270. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8271. tmp_sharedflag='-qmkshrobj'
  8272. tmp_addflag= ;;
  8273. nvcc*) # Cuda Compiler Driver 2.2
  8274. 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'
  8275. compiler_needs_object=yes
  8276. ;;
  8277. esac
  8278. case `$CC -V 2>&1 | sed 5q` in
  8279. *Sun\ C*) # Sun C 5.9
  8280. 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'
  8281. compiler_needs_object=yes
  8282. tmp_sharedflag='-G' ;;
  8283. *Sun\ F*) # Sun Fortran 8.3
  8284. tmp_sharedflag='-G' ;;
  8285. esac
  8286. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8287. if test "x$supports_anon_versioning" = xyes; then
  8288. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8289. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8290. echo "local: *; };" >> $output_objdir/$libname.ver~
  8291. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8292. fi
  8293. case $cc_basename in
  8294. xlf* | bgf* | bgxlf* | mpixlf*)
  8295. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8296. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8297. hardcode_libdir_flag_spec=
  8298. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8299. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8300. if test "x$supports_anon_versioning" = xyes; then
  8301. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8302. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8303. echo "local: *; };" >> $output_objdir/$libname.ver~
  8304. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8305. fi
  8306. ;;
  8307. esac
  8308. else
  8309. ld_shlibs=no
  8310. fi
  8311. ;;
  8312. netbsd*)
  8313. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8314. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8315. wlarc=
  8316. else
  8317. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8318. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8319. fi
  8320. ;;
  8321. solaris*)
  8322. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8323. ld_shlibs=no
  8324. cat <<_LT_EOF 1>&2
  8325. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8326. *** create shared libraries on Solaris systems. Therefore, libtool
  8327. *** is disabling shared libraries support. We urge you to upgrade GNU
  8328. *** binutils to release 2.9.1 or newer. Another option is to modify
  8329. *** your PATH or compiler configuration so that the native linker is
  8330. *** used, and then restart.
  8331. _LT_EOF
  8332. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8333. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8334. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8335. else
  8336. ld_shlibs=no
  8337. fi
  8338. ;;
  8339. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8340. case `$LD -v 2>&1` in
  8341. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8342. ld_shlibs=no
  8343. cat <<_LT_EOF 1>&2
  8344. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8345. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8346. *** is disabling shared libraries support. We urge you to upgrade GNU
  8347. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8348. *** your PATH or compiler configuration so that the native linker is
  8349. *** used, and then restart.
  8350. _LT_EOF
  8351. ;;
  8352. *)
  8353. # For security reasons, it is highly recommended that you always
  8354. # use absolute paths for naming shared libraries, and exclude the
  8355. # DT_RUNPATH tag from executables and libraries. But doing so
  8356. # requires that you compile everything twice, which is a pain.
  8357. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8358. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8359. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8360. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8361. else
  8362. ld_shlibs=no
  8363. fi
  8364. ;;
  8365. esac
  8366. ;;
  8367. sunos4*)
  8368. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8369. wlarc=
  8370. hardcode_direct=yes
  8371. hardcode_shlibpath_var=no
  8372. ;;
  8373. *)
  8374. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8375. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8376. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8377. else
  8378. ld_shlibs=no
  8379. fi
  8380. ;;
  8381. esac
  8382. if test "$ld_shlibs" = no; then
  8383. runpath_var=
  8384. hardcode_libdir_flag_spec=
  8385. export_dynamic_flag_spec=
  8386. whole_archive_flag_spec=
  8387. fi
  8388. else
  8389. # PORTME fill in a description of your system's linker (not GNU ld)
  8390. case $host_os in
  8391. aix3*)
  8392. allow_undefined_flag=unsupported
  8393. always_export_symbols=yes
  8394. 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'
  8395. # Note: this linker hardcodes the directories in LIBPATH if there
  8396. # are no directories specified by -L.
  8397. hardcode_minus_L=yes
  8398. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8399. # Neither direct hardcoding nor static linking is supported with a
  8400. # broken collect2.
  8401. hardcode_direct=unsupported
  8402. fi
  8403. ;;
  8404. aix[4-9]*)
  8405. if test "$host_cpu" = ia64; then
  8406. # On IA64, the linker does run time linking by default, so we don't
  8407. # have to do anything special.
  8408. aix_use_runtimelinking=no
  8409. exp_sym_flag='-Bexport'
  8410. no_entry_flag=""
  8411. else
  8412. # If we're using GNU nm, then we don't want the "-C" option.
  8413. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8414. # Also, AIX nm treats weak defined symbols like other global
  8415. # defined symbols, whereas GNU nm marks them as "W".
  8416. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8417. 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'
  8418. else
  8419. 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'
  8420. fi
  8421. aix_use_runtimelinking=no
  8422. # Test if we are trying to use run time linking or normal
  8423. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8424. # need to do runtime linking.
  8425. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8426. for ld_flag in $LDFLAGS; do
  8427. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8428. aix_use_runtimelinking=yes
  8429. break
  8430. fi
  8431. done
  8432. ;;
  8433. esac
  8434. exp_sym_flag='-bexport'
  8435. no_entry_flag='-bnoentry'
  8436. fi
  8437. # When large executables or shared objects are built, AIX ld can
  8438. # have problems creating the table of contents. If linking a library
  8439. # or program results in "error TOC overflow" add -mminimal-toc to
  8440. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8441. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8442. archive_cmds=''
  8443. hardcode_direct=yes
  8444. hardcode_direct_absolute=yes
  8445. hardcode_libdir_separator=':'
  8446. link_all_deplibs=yes
  8447. file_list_spec='${wl}-f,'
  8448. if test "$GCC" = yes; then
  8449. case $host_os in aix4.[012]|aix4.[012].*)
  8450. # We only want to do this on AIX 4.2 and lower, the check
  8451. # below for broken collect2 doesn't work under 4.3+
  8452. collect2name=`${CC} -print-prog-name=collect2`
  8453. if test -f "$collect2name" &&
  8454. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8455. then
  8456. # We have reworked collect2
  8457. :
  8458. else
  8459. # We have old collect2
  8460. hardcode_direct=unsupported
  8461. # It fails to find uninstalled libraries when the uninstalled
  8462. # path is not listed in the libpath. Setting hardcode_minus_L
  8463. # to unsupported forces relinking
  8464. hardcode_minus_L=yes
  8465. hardcode_libdir_flag_spec='-L$libdir'
  8466. hardcode_libdir_separator=
  8467. fi
  8468. ;;
  8469. esac
  8470. shared_flag='-shared'
  8471. if test "$aix_use_runtimelinking" = yes; then
  8472. shared_flag="$shared_flag "'${wl}-G'
  8473. fi
  8474. else
  8475. # not using gcc
  8476. if test "$host_cpu" = ia64; then
  8477. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8478. # chokes on -Wl,-G. The following line is correct:
  8479. shared_flag='-G'
  8480. else
  8481. if test "$aix_use_runtimelinking" = yes; then
  8482. shared_flag='${wl}-G'
  8483. else
  8484. shared_flag='${wl}-bM:SRE'
  8485. fi
  8486. fi
  8487. fi
  8488. export_dynamic_flag_spec='${wl}-bexpall'
  8489. # It seems that -bexpall does not export symbols beginning with
  8490. # underscore (_), so it is better to generate a list of symbols to export.
  8491. always_export_symbols=yes
  8492. if test "$aix_use_runtimelinking" = yes; then
  8493. # Warning - without using the other runtime loading flags (-brtl),
  8494. # -berok will link without error, but may produce a broken library.
  8495. allow_undefined_flag='-berok'
  8496. # Determine the default libpath from the value encoded in an
  8497. # empty executable.
  8498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8499. /* end confdefs.h. */
  8500. int
  8501. main ()
  8502. {
  8503. ;
  8504. return 0;
  8505. }
  8506. _ACEOF
  8507. if ac_fn_c_try_link "$LINENO"; then :
  8508. lt_aix_libpath_sed='
  8509. /Import File Strings/,/^$/ {
  8510. /^0/ {
  8511. s/^0 *\(.*\)$/\1/
  8512. p
  8513. }
  8514. }'
  8515. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8516. # Check for a 64-bit object if we didn't find anything.
  8517. if test -z "$aix_libpath"; then
  8518. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8519. fi
  8520. fi
  8521. rm -f core conftest.err conftest.$ac_objext \
  8522. conftest$ac_exeext conftest.$ac_ext
  8523. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8524. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8525. 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"
  8526. else
  8527. if test "$host_cpu" = ia64; then
  8528. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8529. allow_undefined_flag="-z nodefs"
  8530. 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"
  8531. else
  8532. # Determine the default libpath from the value encoded in an
  8533. # empty executable.
  8534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8535. /* end confdefs.h. */
  8536. int
  8537. main ()
  8538. {
  8539. ;
  8540. return 0;
  8541. }
  8542. _ACEOF
  8543. if ac_fn_c_try_link "$LINENO"; then :
  8544. lt_aix_libpath_sed='
  8545. /Import File Strings/,/^$/ {
  8546. /^0/ {
  8547. s/^0 *\(.*\)$/\1/
  8548. p
  8549. }
  8550. }'
  8551. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8552. # Check for a 64-bit object if we didn't find anything.
  8553. if test -z "$aix_libpath"; then
  8554. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8555. fi
  8556. fi
  8557. rm -f core conftest.err conftest.$ac_objext \
  8558. conftest$ac_exeext conftest.$ac_ext
  8559. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8560. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8561. # Warning - without using the other run time loading flags,
  8562. # -berok will link without error, but may produce a broken library.
  8563. no_undefined_flag=' ${wl}-bernotok'
  8564. allow_undefined_flag=' ${wl}-berok'
  8565. if test "$with_gnu_ld" = yes; then
  8566. # We only use this code for GNU lds that support --whole-archive.
  8567. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8568. else
  8569. # Exported symbols can be pulled into shared objects from archives
  8570. whole_archive_flag_spec='$convenience'
  8571. fi
  8572. archive_cmds_need_lc=yes
  8573. # This is similar to how AIX traditionally builds its shared libraries.
  8574. 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'
  8575. fi
  8576. fi
  8577. ;;
  8578. amigaos*)
  8579. case $host_cpu in
  8580. powerpc)
  8581. # see comment about AmigaOS4 .so support
  8582. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8583. archive_expsym_cmds=''
  8584. ;;
  8585. m68k)
  8586. 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)'
  8587. hardcode_libdir_flag_spec='-L$libdir'
  8588. hardcode_minus_L=yes
  8589. ;;
  8590. esac
  8591. ;;
  8592. bsdi[45]*)
  8593. export_dynamic_flag_spec=-rdynamic
  8594. ;;
  8595. cygwin* | mingw* | pw32* | cegcc*)
  8596. # When not using gcc, we currently assume that we are using
  8597. # Microsoft Visual C++.
  8598. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8599. # no search path for DLLs.
  8600. hardcode_libdir_flag_spec=' '
  8601. allow_undefined_flag=unsupported
  8602. # Tell ltmain to make .lib files, not .a files.
  8603. libext=lib
  8604. # Tell ltmain to make .dll files, not .so files.
  8605. shrext_cmds=".dll"
  8606. # FIXME: Setting linknames here is a bad hack.
  8607. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8608. # The linker will automatically build a .lib file if we build a DLL.
  8609. old_archive_from_new_cmds='true'
  8610. # FIXME: Should let the user specify the lib program.
  8611. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8612. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8613. enable_shared_with_static_runtimes=yes
  8614. ;;
  8615. darwin* | rhapsody*)
  8616. archive_cmds_need_lc=no
  8617. hardcode_direct=no
  8618. hardcode_automatic=yes
  8619. hardcode_shlibpath_var=unsupported
  8620. if test "$lt_cv_ld_force_load" = "yes"; then
  8621. 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\"`'
  8622. else
  8623. whole_archive_flag_spec=''
  8624. fi
  8625. link_all_deplibs=yes
  8626. allow_undefined_flag="$_lt_dar_allow_undefined"
  8627. case $cc_basename in
  8628. ifort*) _lt_dar_can_shared=yes ;;
  8629. *) _lt_dar_can_shared=$GCC ;;
  8630. esac
  8631. if test "$_lt_dar_can_shared" = "yes"; then
  8632. output_verbose_link_cmd=func_echo_all
  8633. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8634. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8635. 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}"
  8636. 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}"
  8637. else
  8638. ld_shlibs=no
  8639. fi
  8640. ;;
  8641. dgux*)
  8642. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8643. hardcode_libdir_flag_spec='-L$libdir'
  8644. hardcode_shlibpath_var=no
  8645. ;;
  8646. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8647. # support. Future versions do this automatically, but an explicit c++rt0.o
  8648. # does not break anything, and helps significantly (at the cost of a little
  8649. # extra space).
  8650. freebsd2.2*)
  8651. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8652. hardcode_libdir_flag_spec='-R$libdir'
  8653. hardcode_direct=yes
  8654. hardcode_shlibpath_var=no
  8655. ;;
  8656. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8657. freebsd2.*)
  8658. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8659. hardcode_direct=yes
  8660. hardcode_minus_L=yes
  8661. hardcode_shlibpath_var=no
  8662. ;;
  8663. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8664. freebsd* | dragonfly*)
  8665. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8666. hardcode_libdir_flag_spec='-R$libdir'
  8667. hardcode_direct=yes
  8668. hardcode_shlibpath_var=no
  8669. ;;
  8670. hpux9*)
  8671. if test "$GCC" = yes; then
  8672. 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'
  8673. else
  8674. 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'
  8675. fi
  8676. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8677. hardcode_libdir_separator=:
  8678. hardcode_direct=yes
  8679. # hardcode_minus_L: Not really in the search PATH,
  8680. # but as the default location of the library.
  8681. hardcode_minus_L=yes
  8682. export_dynamic_flag_spec='${wl}-E'
  8683. ;;
  8684. hpux10*)
  8685. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8686. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8687. else
  8688. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8689. fi
  8690. if test "$with_gnu_ld" = no; then
  8691. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8692. hardcode_libdir_flag_spec_ld='+b $libdir'
  8693. hardcode_libdir_separator=:
  8694. hardcode_direct=yes
  8695. hardcode_direct_absolute=yes
  8696. export_dynamic_flag_spec='${wl}-E'
  8697. # hardcode_minus_L: Not really in the search PATH,
  8698. # but as the default location of the library.
  8699. hardcode_minus_L=yes
  8700. fi
  8701. ;;
  8702. hpux11*)
  8703. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8704. case $host_cpu in
  8705. hppa*64*)
  8706. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8707. ;;
  8708. ia64*)
  8709. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8710. ;;
  8711. *)
  8712. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8713. ;;
  8714. esac
  8715. else
  8716. case $host_cpu in
  8717. hppa*64*)
  8718. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8719. ;;
  8720. ia64*)
  8721. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8722. ;;
  8723. *)
  8724. # Older versions of the 11.00 compiler do not understand -b yet
  8725. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8727. $as_echo_n "checking if $CC understands -b... " >&6; }
  8728. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8729. $as_echo_n "(cached) " >&6
  8730. else
  8731. lt_cv_prog_compiler__b=no
  8732. save_LDFLAGS="$LDFLAGS"
  8733. LDFLAGS="$LDFLAGS -b"
  8734. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8735. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8736. # The linker can only warn and ignore the option if not recognized
  8737. # So say no if there are warnings
  8738. if test -s conftest.err; then
  8739. # Append any errors to the config.log.
  8740. cat conftest.err 1>&5
  8741. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8742. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8743. if diff conftest.exp conftest.er2 >/dev/null; then
  8744. lt_cv_prog_compiler__b=yes
  8745. fi
  8746. else
  8747. lt_cv_prog_compiler__b=yes
  8748. fi
  8749. fi
  8750. $RM -r conftest*
  8751. LDFLAGS="$save_LDFLAGS"
  8752. fi
  8753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8754. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8755. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8756. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8757. else
  8758. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8759. fi
  8760. ;;
  8761. esac
  8762. fi
  8763. if test "$with_gnu_ld" = no; then
  8764. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8765. hardcode_libdir_separator=:
  8766. case $host_cpu in
  8767. hppa*64*|ia64*)
  8768. hardcode_direct=no
  8769. hardcode_shlibpath_var=no
  8770. ;;
  8771. *)
  8772. hardcode_direct=yes
  8773. hardcode_direct_absolute=yes
  8774. export_dynamic_flag_spec='${wl}-E'
  8775. # hardcode_minus_L: Not really in the search PATH,
  8776. # but as the default location of the library.
  8777. hardcode_minus_L=yes
  8778. ;;
  8779. esac
  8780. fi
  8781. ;;
  8782. irix5* | irix6* | nonstopux*)
  8783. if test "$GCC" = yes; then
  8784. 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'
  8785. # Try to use the -exported_symbol ld option, if it does not
  8786. # work, assume that -exports_file does not work either and
  8787. # implicitly export all symbols.
  8788. save_LDFLAGS="$LDFLAGS"
  8789. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8791. /* end confdefs.h. */
  8792. int foo(void) {}
  8793. _ACEOF
  8794. if ac_fn_c_try_link "$LINENO"; then :
  8795. 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'
  8796. fi
  8797. rm -f core conftest.err conftest.$ac_objext \
  8798. conftest$ac_exeext conftest.$ac_ext
  8799. LDFLAGS="$save_LDFLAGS"
  8800. else
  8801. 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'
  8802. 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'
  8803. fi
  8804. archive_cmds_need_lc='no'
  8805. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8806. hardcode_libdir_separator=:
  8807. inherit_rpath=yes
  8808. link_all_deplibs=yes
  8809. ;;
  8810. netbsd*)
  8811. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8812. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8813. else
  8814. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8815. fi
  8816. hardcode_libdir_flag_spec='-R$libdir'
  8817. hardcode_direct=yes
  8818. hardcode_shlibpath_var=no
  8819. ;;
  8820. newsos6)
  8821. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8822. hardcode_direct=yes
  8823. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8824. hardcode_libdir_separator=:
  8825. hardcode_shlibpath_var=no
  8826. ;;
  8827. *nto* | *qnx*)
  8828. ;;
  8829. openbsd*)
  8830. if test -f /usr/libexec/ld.so; then
  8831. hardcode_direct=yes
  8832. hardcode_shlibpath_var=no
  8833. hardcode_direct_absolute=yes
  8834. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8835. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8836. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8837. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8838. export_dynamic_flag_spec='${wl}-E'
  8839. else
  8840. case $host_os in
  8841. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8842. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8843. hardcode_libdir_flag_spec='-R$libdir'
  8844. ;;
  8845. *)
  8846. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8847. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8848. ;;
  8849. esac
  8850. fi
  8851. else
  8852. ld_shlibs=no
  8853. fi
  8854. ;;
  8855. os2*)
  8856. hardcode_libdir_flag_spec='-L$libdir'
  8857. hardcode_minus_L=yes
  8858. allow_undefined_flag=unsupported
  8859. 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'
  8860. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8861. ;;
  8862. osf3*)
  8863. if test "$GCC" = yes; then
  8864. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8865. 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'
  8866. else
  8867. allow_undefined_flag=' -expect_unresolved \*'
  8868. 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'
  8869. fi
  8870. archive_cmds_need_lc='no'
  8871. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8872. hardcode_libdir_separator=:
  8873. ;;
  8874. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8875. if test "$GCC" = yes; then
  8876. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8877. 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'
  8878. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8879. else
  8880. allow_undefined_flag=' -expect_unresolved \*'
  8881. 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'
  8882. 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~
  8883. $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'
  8884. # Both c and cxx compiler support -rpath directly
  8885. hardcode_libdir_flag_spec='-rpath $libdir'
  8886. fi
  8887. archive_cmds_need_lc='no'
  8888. hardcode_libdir_separator=:
  8889. ;;
  8890. solaris*)
  8891. no_undefined_flag=' -z defs'
  8892. if test "$GCC" = yes; then
  8893. wlarc='${wl}'
  8894. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8895. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8896. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8897. else
  8898. case `$CC -V 2>&1` in
  8899. *"Compilers 5.0"*)
  8900. wlarc=''
  8901. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8902. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8903. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8904. ;;
  8905. *)
  8906. wlarc='${wl}'
  8907. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8908. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8909. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8910. ;;
  8911. esac
  8912. fi
  8913. hardcode_libdir_flag_spec='-R$libdir'
  8914. hardcode_shlibpath_var=no
  8915. case $host_os in
  8916. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8917. *)
  8918. # The compiler driver will combine and reorder linker options,
  8919. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8920. # but is careful enough not to reorder.
  8921. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8922. if test "$GCC" = yes; then
  8923. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8924. else
  8925. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8926. fi
  8927. ;;
  8928. esac
  8929. link_all_deplibs=yes
  8930. ;;
  8931. sunos4*)
  8932. if test "x$host_vendor" = xsequent; then
  8933. # Use $CC to link under sequent, because it throws in some extra .o
  8934. # files that make .init and .fini sections work.
  8935. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8936. else
  8937. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8938. fi
  8939. hardcode_libdir_flag_spec='-L$libdir'
  8940. hardcode_direct=yes
  8941. hardcode_minus_L=yes
  8942. hardcode_shlibpath_var=no
  8943. ;;
  8944. sysv4)
  8945. case $host_vendor in
  8946. sni)
  8947. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8948. hardcode_direct=yes # is this really true???
  8949. ;;
  8950. siemens)
  8951. ## LD is ld it makes a PLAMLIB
  8952. ## CC just makes a GrossModule.
  8953. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8954. reload_cmds='$CC -r -o $output$reload_objs'
  8955. hardcode_direct=no
  8956. ;;
  8957. motorola)
  8958. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8959. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8960. ;;
  8961. esac
  8962. runpath_var='LD_RUN_PATH'
  8963. hardcode_shlibpath_var=no
  8964. ;;
  8965. sysv4.3*)
  8966. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8967. hardcode_shlibpath_var=no
  8968. export_dynamic_flag_spec='-Bexport'
  8969. ;;
  8970. sysv4*MP*)
  8971. if test -d /usr/nec; then
  8972. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8973. hardcode_shlibpath_var=no
  8974. runpath_var=LD_RUN_PATH
  8975. hardcode_runpath_var=yes
  8976. ld_shlibs=yes
  8977. fi
  8978. ;;
  8979. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8980. no_undefined_flag='${wl}-z,text'
  8981. archive_cmds_need_lc=no
  8982. hardcode_shlibpath_var=no
  8983. runpath_var='LD_RUN_PATH'
  8984. if test "$GCC" = yes; then
  8985. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8986. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8987. else
  8988. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8989. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8990. fi
  8991. ;;
  8992. sysv5* | sco3.2v5* | sco5v6*)
  8993. # Note: We can NOT use -z defs as we might desire, because we do not
  8994. # link with -lc, and that would cause any symbols used from libc to
  8995. # always be unresolved, which means just about no library would
  8996. # ever link correctly. If we're not using GNU ld we use -z text
  8997. # though, which does catch some bad symbols but isn't as heavy-handed
  8998. # as -z defs.
  8999. no_undefined_flag='${wl}-z,text'
  9000. allow_undefined_flag='${wl}-z,nodefs'
  9001. archive_cmds_need_lc=no
  9002. hardcode_shlibpath_var=no
  9003. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9004. hardcode_libdir_separator=':'
  9005. link_all_deplibs=yes
  9006. export_dynamic_flag_spec='${wl}-Bexport'
  9007. runpath_var='LD_RUN_PATH'
  9008. if test "$GCC" = yes; then
  9009. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9010. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9011. else
  9012. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9013. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9014. fi
  9015. ;;
  9016. uts4*)
  9017. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9018. hardcode_libdir_flag_spec='-L$libdir'
  9019. hardcode_shlibpath_var=no
  9020. ;;
  9021. *)
  9022. ld_shlibs=no
  9023. ;;
  9024. esac
  9025. if test x$host_vendor = xsni; then
  9026. case $host in
  9027. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9028. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9029. ;;
  9030. esac
  9031. fi
  9032. fi
  9033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9034. $as_echo "$ld_shlibs" >&6; }
  9035. test "$ld_shlibs" = no && can_build_shared=no
  9036. with_gnu_ld=$with_gnu_ld
  9037. #
  9038. # Do we need to explicitly link libc?
  9039. #
  9040. case "x$archive_cmds_need_lc" in
  9041. x|xyes)
  9042. # Assume -lc should be added
  9043. archive_cmds_need_lc=yes
  9044. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9045. case $archive_cmds in
  9046. *'~'*)
  9047. # FIXME: we may have to deal with multi-command sequences.
  9048. ;;
  9049. '$CC '*)
  9050. # Test whether the compiler implicitly links with -lc since on some
  9051. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9052. # to ld, don't add -lc before -lgcc.
  9053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9054. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9055. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9056. $as_echo_n "(cached) " >&6
  9057. else
  9058. $RM conftest*
  9059. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9060. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9061. (eval $ac_compile) 2>&5
  9062. ac_status=$?
  9063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9064. test $ac_status = 0; } 2>conftest.err; then
  9065. soname=conftest
  9066. lib=conftest
  9067. libobjs=conftest.$ac_objext
  9068. deplibs=
  9069. wl=$lt_prog_compiler_wl
  9070. pic_flag=$lt_prog_compiler_pic
  9071. compiler_flags=-v
  9072. linker_flags=-v
  9073. verstring=
  9074. output_objdir=.
  9075. libname=conftest
  9076. lt_save_allow_undefined_flag=$allow_undefined_flag
  9077. allow_undefined_flag=
  9078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9079. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9080. ac_status=$?
  9081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9082. test $ac_status = 0; }
  9083. then
  9084. lt_cv_archive_cmds_need_lc=no
  9085. else
  9086. lt_cv_archive_cmds_need_lc=yes
  9087. fi
  9088. allow_undefined_flag=$lt_save_allow_undefined_flag
  9089. else
  9090. cat conftest.err 1>&5
  9091. fi
  9092. $RM conftest*
  9093. fi
  9094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9095. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9096. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9097. ;;
  9098. esac
  9099. fi
  9100. ;;
  9101. esac
  9102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9103. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9104. if test "$GCC" = yes; then
  9105. case $host_os in
  9106. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9107. *) lt_awk_arg="/^libraries:/" ;;
  9108. esac
  9109. case $host_os in
  9110. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9111. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9112. esac
  9113. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9114. case $lt_search_path_spec in
  9115. *\;*)
  9116. # if the path contains ";" then we assume it to be the separator
  9117. # otherwise default to the standard path separator (i.e. ":") - it is
  9118. # assumed that no part of a normal pathname contains ";" but that should
  9119. # okay in the real world where ";" in dirpaths is itself problematic.
  9120. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9121. ;;
  9122. *)
  9123. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9124. ;;
  9125. esac
  9126. # Ok, now we have the path, separated by spaces, we can step through it
  9127. # and add multilib dir if necessary.
  9128. lt_tmp_lt_search_path_spec=
  9129. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9130. for lt_sys_path in $lt_search_path_spec; do
  9131. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9132. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9133. else
  9134. test -d "$lt_sys_path" && \
  9135. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9136. fi
  9137. done
  9138. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9139. BEGIN {RS=" "; FS="/|\n";} {
  9140. lt_foo="";
  9141. lt_count=0;
  9142. for (lt_i = NF; lt_i > 0; lt_i--) {
  9143. if ($lt_i != "" && $lt_i != ".") {
  9144. if ($lt_i == "..") {
  9145. lt_count++;
  9146. } else {
  9147. if (lt_count == 0) {
  9148. lt_foo="/" $lt_i lt_foo;
  9149. } else {
  9150. lt_count--;
  9151. }
  9152. }
  9153. }
  9154. }
  9155. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9156. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9157. }'`
  9158. # AWK program above erroneously prepends '/' to C:/dos/paths
  9159. # for these hosts.
  9160. case $host_os in
  9161. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9162. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9163. esac
  9164. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9165. else
  9166. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9167. fi
  9168. library_names_spec=
  9169. libname_spec='lib$name'
  9170. soname_spec=
  9171. shrext_cmds=".so"
  9172. postinstall_cmds=
  9173. postuninstall_cmds=
  9174. finish_cmds=
  9175. finish_eval=
  9176. shlibpath_var=
  9177. shlibpath_overrides_runpath=unknown
  9178. version_type=none
  9179. dynamic_linker="$host_os ld.so"
  9180. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9181. need_lib_prefix=unknown
  9182. hardcode_into_libs=no
  9183. # when you set need_version to no, make sure it does not cause -set_version
  9184. # flags to be left without arguments
  9185. need_version=unknown
  9186. case $host_os in
  9187. aix3*)
  9188. version_type=linux
  9189. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9190. shlibpath_var=LIBPATH
  9191. # AIX 3 has no versioning support, so we append a major version to the name.
  9192. soname_spec='${libname}${release}${shared_ext}$major'
  9193. ;;
  9194. aix[4-9]*)
  9195. version_type=linux
  9196. need_lib_prefix=no
  9197. need_version=no
  9198. hardcode_into_libs=yes
  9199. if test "$host_cpu" = ia64; then
  9200. # AIX 5 supports IA64
  9201. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. else
  9204. # With GCC up to 2.95.x, collect2 would create an import file
  9205. # for dependence libraries. The import file would start with
  9206. # the line `#! .'. This would cause the generated library to
  9207. # depend on `.', always an invalid library. This was fixed in
  9208. # development snapshots of GCC prior to 3.0.
  9209. case $host_os in
  9210. aix4 | aix4.[01] | aix4.[01].*)
  9211. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9212. echo ' yes '
  9213. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9214. :
  9215. else
  9216. can_build_shared=no
  9217. fi
  9218. ;;
  9219. esac
  9220. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9221. # soname into executable. Probably we can add versioning support to
  9222. # collect2, so additional links can be useful in future.
  9223. if test "$aix_use_runtimelinking" = yes; then
  9224. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9225. # instead of lib<name>.a to let people know that these are not
  9226. # typical AIX shared libraries.
  9227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9228. else
  9229. # We preserve .a as extension for shared libraries through AIX4.2
  9230. # and later when we are not doing run time linking.
  9231. library_names_spec='${libname}${release}.a $libname.a'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. fi
  9234. shlibpath_var=LIBPATH
  9235. fi
  9236. ;;
  9237. amigaos*)
  9238. case $host_cpu in
  9239. powerpc)
  9240. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9241. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9243. ;;
  9244. m68k)
  9245. library_names_spec='$libname.ixlibrary $libname.a'
  9246. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9247. 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'
  9248. ;;
  9249. esac
  9250. ;;
  9251. beos*)
  9252. library_names_spec='${libname}${shared_ext}'
  9253. dynamic_linker="$host_os ld.so"
  9254. shlibpath_var=LIBRARY_PATH
  9255. ;;
  9256. bsdi[45]*)
  9257. version_type=linux
  9258. need_version=no
  9259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9260. soname_spec='${libname}${release}${shared_ext}$major'
  9261. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9262. shlibpath_var=LD_LIBRARY_PATH
  9263. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9264. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9265. # the default ld.so.conf also contains /usr/contrib/lib and
  9266. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9267. # libtool to hard-code these into programs
  9268. ;;
  9269. cygwin* | mingw* | pw32* | cegcc*)
  9270. version_type=windows
  9271. shrext_cmds=".dll"
  9272. need_version=no
  9273. need_lib_prefix=no
  9274. case $GCC,$host_os in
  9275. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9276. library_names_spec='$libname.dll.a'
  9277. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9278. postinstall_cmds='base_file=`basename \${file}`~
  9279. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9280. dldir=$destdir/`dirname \$dlpath`~
  9281. test -d \$dldir || mkdir -p \$dldir~
  9282. $install_prog $dir/$dlname \$dldir/$dlname~
  9283. chmod a+x \$dldir/$dlname~
  9284. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9285. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9286. fi'
  9287. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9288. dlpath=$dir/\$dldll~
  9289. $RM \$dlpath'
  9290. shlibpath_overrides_runpath=yes
  9291. case $host_os in
  9292. cygwin*)
  9293. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9294. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9295. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9296. ;;
  9297. mingw* | cegcc*)
  9298. # MinGW DLLs use traditional 'lib' prefix
  9299. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9300. ;;
  9301. pw32*)
  9302. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9303. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9304. ;;
  9305. esac
  9306. ;;
  9307. *)
  9308. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9309. ;;
  9310. esac
  9311. dynamic_linker='Win32 ld.exe'
  9312. # FIXME: first we should search . and the directory the executable is in
  9313. shlibpath_var=PATH
  9314. ;;
  9315. darwin* | rhapsody*)
  9316. dynamic_linker="$host_os dyld"
  9317. version_type=darwin
  9318. need_lib_prefix=no
  9319. need_version=no
  9320. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9321. soname_spec='${libname}${release}${major}$shared_ext'
  9322. shlibpath_overrides_runpath=yes
  9323. shlibpath_var=DYLD_LIBRARY_PATH
  9324. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9325. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9326. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9327. ;;
  9328. dgux*)
  9329. version_type=linux
  9330. need_lib_prefix=no
  9331. need_version=no
  9332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9333. soname_spec='${libname}${release}${shared_ext}$major'
  9334. shlibpath_var=LD_LIBRARY_PATH
  9335. ;;
  9336. freebsd* | dragonfly*)
  9337. # DragonFly does not have aout. When/if they implement a new
  9338. # versioning mechanism, adjust this.
  9339. if test -x /usr/bin/objformat; then
  9340. objformat=`/usr/bin/objformat`
  9341. else
  9342. case $host_os in
  9343. freebsd[23].*) objformat=aout ;;
  9344. *) objformat=elf ;;
  9345. esac
  9346. fi
  9347. version_type=freebsd-$objformat
  9348. case $version_type in
  9349. freebsd-elf*)
  9350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9351. need_version=no
  9352. need_lib_prefix=no
  9353. ;;
  9354. freebsd-*)
  9355. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9356. need_version=yes
  9357. ;;
  9358. esac
  9359. shlibpath_var=LD_LIBRARY_PATH
  9360. case $host_os in
  9361. freebsd2.*)
  9362. shlibpath_overrides_runpath=yes
  9363. ;;
  9364. freebsd3.[01]* | freebsdelf3.[01]*)
  9365. shlibpath_overrides_runpath=yes
  9366. hardcode_into_libs=yes
  9367. ;;
  9368. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9369. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9370. shlibpath_overrides_runpath=no
  9371. hardcode_into_libs=yes
  9372. ;;
  9373. *) # from 4.6 on, and DragonFly
  9374. shlibpath_overrides_runpath=yes
  9375. hardcode_into_libs=yes
  9376. ;;
  9377. esac
  9378. ;;
  9379. gnu*)
  9380. version_type=linux
  9381. need_lib_prefix=no
  9382. need_version=no
  9383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9384. soname_spec='${libname}${release}${shared_ext}$major'
  9385. shlibpath_var=LD_LIBRARY_PATH
  9386. hardcode_into_libs=yes
  9387. ;;
  9388. haiku*)
  9389. version_type=linux
  9390. need_lib_prefix=no
  9391. need_version=no
  9392. dynamic_linker="$host_os runtime_loader"
  9393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9394. soname_spec='${libname}${release}${shared_ext}$major'
  9395. shlibpath_var=LIBRARY_PATH
  9396. shlibpath_overrides_runpath=yes
  9397. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9398. hardcode_into_libs=yes
  9399. ;;
  9400. hpux9* | hpux10* | hpux11*)
  9401. # Give a soname corresponding to the major version so that dld.sl refuses to
  9402. # link against other versions.
  9403. version_type=sunos
  9404. need_lib_prefix=no
  9405. need_version=no
  9406. case $host_cpu in
  9407. ia64*)
  9408. shrext_cmds='.so'
  9409. hardcode_into_libs=yes
  9410. dynamic_linker="$host_os dld.so"
  9411. shlibpath_var=LD_LIBRARY_PATH
  9412. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9414. soname_spec='${libname}${release}${shared_ext}$major'
  9415. if test "X$HPUX_IA64_MODE" = X32; then
  9416. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9417. else
  9418. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9419. fi
  9420. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9421. ;;
  9422. hppa*64*)
  9423. shrext_cmds='.sl'
  9424. hardcode_into_libs=yes
  9425. dynamic_linker="$host_os dld.sl"
  9426. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9427. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9429. soname_spec='${libname}${release}${shared_ext}$major'
  9430. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9431. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9432. ;;
  9433. *)
  9434. shrext_cmds='.sl'
  9435. dynamic_linker="$host_os dld.sl"
  9436. shlibpath_var=SHLIB_PATH
  9437. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9439. soname_spec='${libname}${release}${shared_ext}$major'
  9440. ;;
  9441. esac
  9442. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9443. postinstall_cmds='chmod 555 $lib'
  9444. # or fails outright, so override atomically:
  9445. install_override_mode=555
  9446. ;;
  9447. interix[3-9]*)
  9448. version_type=linux
  9449. need_lib_prefix=no
  9450. need_version=no
  9451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9452. soname_spec='${libname}${release}${shared_ext}$major'
  9453. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9454. shlibpath_var=LD_LIBRARY_PATH
  9455. shlibpath_overrides_runpath=no
  9456. hardcode_into_libs=yes
  9457. ;;
  9458. irix5* | irix6* | nonstopux*)
  9459. case $host_os in
  9460. nonstopux*) version_type=nonstopux ;;
  9461. *)
  9462. if test "$lt_cv_prog_gnu_ld" = yes; then
  9463. version_type=linux
  9464. else
  9465. version_type=irix
  9466. fi ;;
  9467. esac
  9468. need_lib_prefix=no
  9469. need_version=no
  9470. soname_spec='${libname}${release}${shared_ext}$major'
  9471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9472. case $host_os in
  9473. irix5* | nonstopux*)
  9474. libsuff= shlibsuff=
  9475. ;;
  9476. *)
  9477. case $LD in # libtool.m4 will add one of these switches to LD
  9478. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9479. libsuff= shlibsuff= libmagic=32-bit;;
  9480. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9481. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9482. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9483. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9484. *) libsuff= shlibsuff= libmagic=never-match;;
  9485. esac
  9486. ;;
  9487. esac
  9488. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9489. shlibpath_overrides_runpath=no
  9490. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9491. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9492. hardcode_into_libs=yes
  9493. ;;
  9494. # No shared lib support for Linux oldld, aout, or coff.
  9495. linux*oldld* | linux*aout* | linux*coff*)
  9496. dynamic_linker=no
  9497. ;;
  9498. # This must be Linux ELF.
  9499. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9500. version_type=linux
  9501. need_lib_prefix=no
  9502. need_version=no
  9503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9504. soname_spec='${libname}${release}${shared_ext}$major'
  9505. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9506. shlibpath_var=LD_LIBRARY_PATH
  9507. shlibpath_overrides_runpath=no
  9508. # Some binutils ld are patched to set DT_RUNPATH
  9509. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9510. $as_echo_n "(cached) " >&6
  9511. else
  9512. lt_cv_shlibpath_overrides_runpath=no
  9513. save_LDFLAGS=$LDFLAGS
  9514. save_libdir=$libdir
  9515. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9516. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9518. /* end confdefs.h. */
  9519. int
  9520. main ()
  9521. {
  9522. ;
  9523. return 0;
  9524. }
  9525. _ACEOF
  9526. if ac_fn_c_try_link "$LINENO"; then :
  9527. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9528. lt_cv_shlibpath_overrides_runpath=yes
  9529. fi
  9530. fi
  9531. rm -f core conftest.err conftest.$ac_objext \
  9532. conftest$ac_exeext conftest.$ac_ext
  9533. LDFLAGS=$save_LDFLAGS
  9534. libdir=$save_libdir
  9535. fi
  9536. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9537. # This implies no fast_install, which is unacceptable.
  9538. # Some rework will be needed to allow for fast_install
  9539. # before this can be enabled.
  9540. hardcode_into_libs=yes
  9541. # Append ld.so.conf contents to the search path
  9542. if test -f /etc/ld.so.conf; then
  9543. 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' ' '`
  9544. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9545. fi
  9546. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9547. # powerpc, because MkLinux only supported shared libraries with the
  9548. # GNU dynamic linker. Since this was broken with cross compilers,
  9549. # most powerpc-linux boxes support dynamic linking these days and
  9550. # people can always --disable-shared, the test was removed, and we
  9551. # assume the GNU/Linux dynamic linker is in use.
  9552. dynamic_linker='GNU/Linux ld.so'
  9553. ;;
  9554. netbsd*)
  9555. version_type=sunos
  9556. need_lib_prefix=no
  9557. need_version=no
  9558. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9560. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9561. dynamic_linker='NetBSD (a.out) ld.so'
  9562. else
  9563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9564. soname_spec='${libname}${release}${shared_ext}$major'
  9565. dynamic_linker='NetBSD ld.elf_so'
  9566. fi
  9567. shlibpath_var=LD_LIBRARY_PATH
  9568. shlibpath_overrides_runpath=yes
  9569. hardcode_into_libs=yes
  9570. ;;
  9571. newsos6)
  9572. version_type=linux
  9573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9574. shlibpath_var=LD_LIBRARY_PATH
  9575. shlibpath_overrides_runpath=yes
  9576. ;;
  9577. *nto* | *qnx*)
  9578. version_type=qnx
  9579. need_lib_prefix=no
  9580. need_version=no
  9581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9582. soname_spec='${libname}${release}${shared_ext}$major'
  9583. shlibpath_var=LD_LIBRARY_PATH
  9584. shlibpath_overrides_runpath=no
  9585. hardcode_into_libs=yes
  9586. dynamic_linker='ldqnx.so'
  9587. ;;
  9588. openbsd*)
  9589. version_type=sunos
  9590. sys_lib_dlsearch_path_spec="/usr/lib"
  9591. need_lib_prefix=no
  9592. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9593. case $host_os in
  9594. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9595. *) need_version=no ;;
  9596. esac
  9597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9598. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9599. shlibpath_var=LD_LIBRARY_PATH
  9600. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9601. case $host_os in
  9602. openbsd2.[89] | openbsd2.[89].*)
  9603. shlibpath_overrides_runpath=no
  9604. ;;
  9605. *)
  9606. shlibpath_overrides_runpath=yes
  9607. ;;
  9608. esac
  9609. else
  9610. shlibpath_overrides_runpath=yes
  9611. fi
  9612. ;;
  9613. os2*)
  9614. libname_spec='$name'
  9615. shrext_cmds=".dll"
  9616. need_lib_prefix=no
  9617. library_names_spec='$libname${shared_ext} $libname.a'
  9618. dynamic_linker='OS/2 ld.exe'
  9619. shlibpath_var=LIBPATH
  9620. ;;
  9621. osf3* | osf4* | osf5*)
  9622. version_type=osf
  9623. need_lib_prefix=no
  9624. need_version=no
  9625. soname_spec='${libname}${release}${shared_ext}$major'
  9626. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9627. shlibpath_var=LD_LIBRARY_PATH
  9628. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9629. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9630. ;;
  9631. rdos*)
  9632. dynamic_linker=no
  9633. ;;
  9634. solaris*)
  9635. version_type=linux
  9636. need_lib_prefix=no
  9637. need_version=no
  9638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9639. soname_spec='${libname}${release}${shared_ext}$major'
  9640. shlibpath_var=LD_LIBRARY_PATH
  9641. shlibpath_overrides_runpath=yes
  9642. hardcode_into_libs=yes
  9643. # ldd complains unless libraries are executable
  9644. postinstall_cmds='chmod +x $lib'
  9645. ;;
  9646. sunos4*)
  9647. version_type=sunos
  9648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9649. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9650. shlibpath_var=LD_LIBRARY_PATH
  9651. shlibpath_overrides_runpath=yes
  9652. if test "$with_gnu_ld" = yes; then
  9653. need_lib_prefix=no
  9654. fi
  9655. need_version=yes
  9656. ;;
  9657. sysv4 | sysv4.3*)
  9658. version_type=linux
  9659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9660. soname_spec='${libname}${release}${shared_ext}$major'
  9661. shlibpath_var=LD_LIBRARY_PATH
  9662. case $host_vendor in
  9663. sni)
  9664. shlibpath_overrides_runpath=no
  9665. need_lib_prefix=no
  9666. runpath_var=LD_RUN_PATH
  9667. ;;
  9668. siemens)
  9669. need_lib_prefix=no
  9670. ;;
  9671. motorola)
  9672. need_lib_prefix=no
  9673. need_version=no
  9674. shlibpath_overrides_runpath=no
  9675. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9676. ;;
  9677. esac
  9678. ;;
  9679. sysv4*MP*)
  9680. if test -d /usr/nec ;then
  9681. version_type=linux
  9682. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9683. soname_spec='$libname${shared_ext}.$major'
  9684. shlibpath_var=LD_LIBRARY_PATH
  9685. fi
  9686. ;;
  9687. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9688. version_type=freebsd-elf
  9689. need_lib_prefix=no
  9690. need_version=no
  9691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9692. soname_spec='${libname}${release}${shared_ext}$major'
  9693. shlibpath_var=LD_LIBRARY_PATH
  9694. shlibpath_overrides_runpath=yes
  9695. hardcode_into_libs=yes
  9696. if test "$with_gnu_ld" = yes; then
  9697. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9698. else
  9699. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9700. case $host_os in
  9701. sco3.2v5*)
  9702. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9703. ;;
  9704. esac
  9705. fi
  9706. sys_lib_dlsearch_path_spec='/usr/lib'
  9707. ;;
  9708. tpf*)
  9709. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9710. version_type=linux
  9711. need_lib_prefix=no
  9712. need_version=no
  9713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9714. shlibpath_var=LD_LIBRARY_PATH
  9715. shlibpath_overrides_runpath=no
  9716. hardcode_into_libs=yes
  9717. ;;
  9718. uts4*)
  9719. version_type=linux
  9720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9721. soname_spec='${libname}${release}${shared_ext}$major'
  9722. shlibpath_var=LD_LIBRARY_PATH
  9723. ;;
  9724. *)
  9725. dynamic_linker=no
  9726. ;;
  9727. esac
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9729. $as_echo "$dynamic_linker" >&6; }
  9730. test "$dynamic_linker" = no && can_build_shared=no
  9731. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9732. if test "$GCC" = yes; then
  9733. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9734. fi
  9735. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9736. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9737. fi
  9738. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9739. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9740. fi
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9742. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9743. hardcode_action=
  9744. if test -n "$hardcode_libdir_flag_spec" ||
  9745. test -n "$runpath_var" ||
  9746. test "X$hardcode_automatic" = "Xyes" ; then
  9747. # We can hardcode non-existent directories.
  9748. if test "$hardcode_direct" != no &&
  9749. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9750. # have to relink, otherwise we might link with an installed library
  9751. # when we should be linking with a yet-to-be-installed one
  9752. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9753. test "$hardcode_minus_L" != no; then
  9754. # Linking always hardcodes the temporary library directory.
  9755. hardcode_action=relink
  9756. else
  9757. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9758. hardcode_action=immediate
  9759. fi
  9760. else
  9761. # We cannot hardcode anything, or else we can only hardcode existing
  9762. # directories.
  9763. hardcode_action=unsupported
  9764. fi
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9766. $as_echo "$hardcode_action" >&6; }
  9767. if test "$hardcode_action" = relink ||
  9768. test "$inherit_rpath" = yes; then
  9769. # Fast installation is not supported
  9770. enable_fast_install=no
  9771. elif test "$shlibpath_overrides_runpath" = yes ||
  9772. test "$enable_shared" = no; then
  9773. # Fast installation is not necessary
  9774. enable_fast_install=needless
  9775. fi
  9776. if test "x$enable_dlopen" != xyes; then
  9777. enable_dlopen=unknown
  9778. enable_dlopen_self=unknown
  9779. enable_dlopen_self_static=unknown
  9780. else
  9781. lt_cv_dlopen=no
  9782. lt_cv_dlopen_libs=
  9783. case $host_os in
  9784. beos*)
  9785. lt_cv_dlopen="load_add_on"
  9786. lt_cv_dlopen_libs=
  9787. lt_cv_dlopen_self=yes
  9788. ;;
  9789. mingw* | pw32* | cegcc*)
  9790. lt_cv_dlopen="LoadLibrary"
  9791. lt_cv_dlopen_libs=
  9792. ;;
  9793. cygwin*)
  9794. lt_cv_dlopen="dlopen"
  9795. lt_cv_dlopen_libs=
  9796. ;;
  9797. darwin*)
  9798. # if libdl is installed we need to link against it
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9800. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9801. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9802. $as_echo_n "(cached) " >&6
  9803. else
  9804. ac_check_lib_save_LIBS=$LIBS
  9805. LIBS="-ldl $LIBS"
  9806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9807. /* end confdefs.h. */
  9808. /* Override any GCC internal prototype to avoid an error.
  9809. Use char because int might match the return type of a GCC
  9810. builtin and then its argument prototype would still apply. */
  9811. #ifdef __cplusplus
  9812. extern "C"
  9813. #endif
  9814. char dlopen ();
  9815. int
  9816. main ()
  9817. {
  9818. return dlopen ();
  9819. ;
  9820. return 0;
  9821. }
  9822. _ACEOF
  9823. if ac_fn_c_try_link "$LINENO"; then :
  9824. ac_cv_lib_dl_dlopen=yes
  9825. else
  9826. ac_cv_lib_dl_dlopen=no
  9827. fi
  9828. rm -f core conftest.err conftest.$ac_objext \
  9829. conftest$ac_exeext conftest.$ac_ext
  9830. LIBS=$ac_check_lib_save_LIBS
  9831. fi
  9832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9833. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9834. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9835. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9836. else
  9837. lt_cv_dlopen="dyld"
  9838. lt_cv_dlopen_libs=
  9839. lt_cv_dlopen_self=yes
  9840. fi
  9841. ;;
  9842. *)
  9843. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9844. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9845. lt_cv_dlopen="shl_load"
  9846. else
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9848. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9849. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9850. $as_echo_n "(cached) " >&6
  9851. else
  9852. ac_check_lib_save_LIBS=$LIBS
  9853. LIBS="-ldld $LIBS"
  9854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9855. /* end confdefs.h. */
  9856. /* Override any GCC internal prototype to avoid an error.
  9857. Use char because int might match the return type of a GCC
  9858. builtin and then its argument prototype would still apply. */
  9859. #ifdef __cplusplus
  9860. extern "C"
  9861. #endif
  9862. char shl_load ();
  9863. int
  9864. main ()
  9865. {
  9866. return shl_load ();
  9867. ;
  9868. return 0;
  9869. }
  9870. _ACEOF
  9871. if ac_fn_c_try_link "$LINENO"; then :
  9872. ac_cv_lib_dld_shl_load=yes
  9873. else
  9874. ac_cv_lib_dld_shl_load=no
  9875. fi
  9876. rm -f core conftest.err conftest.$ac_objext \
  9877. conftest$ac_exeext conftest.$ac_ext
  9878. LIBS=$ac_check_lib_save_LIBS
  9879. fi
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9881. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9882. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9883. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9884. else
  9885. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9886. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9887. lt_cv_dlopen="dlopen"
  9888. else
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9890. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9891. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9892. $as_echo_n "(cached) " >&6
  9893. else
  9894. ac_check_lib_save_LIBS=$LIBS
  9895. LIBS="-ldl $LIBS"
  9896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9897. /* end confdefs.h. */
  9898. /* Override any GCC internal prototype to avoid an error.
  9899. Use char because int might match the return type of a GCC
  9900. builtin and then its argument prototype would still apply. */
  9901. #ifdef __cplusplus
  9902. extern "C"
  9903. #endif
  9904. char dlopen ();
  9905. int
  9906. main ()
  9907. {
  9908. return dlopen ();
  9909. ;
  9910. return 0;
  9911. }
  9912. _ACEOF
  9913. if ac_fn_c_try_link "$LINENO"; then :
  9914. ac_cv_lib_dl_dlopen=yes
  9915. else
  9916. ac_cv_lib_dl_dlopen=no
  9917. fi
  9918. rm -f core conftest.err conftest.$ac_objext \
  9919. conftest$ac_exeext conftest.$ac_ext
  9920. LIBS=$ac_check_lib_save_LIBS
  9921. fi
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9923. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9924. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9925. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9926. else
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9928. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9929. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9930. $as_echo_n "(cached) " >&6
  9931. else
  9932. ac_check_lib_save_LIBS=$LIBS
  9933. LIBS="-lsvld $LIBS"
  9934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9935. /* end confdefs.h. */
  9936. /* Override any GCC internal prototype to avoid an error.
  9937. Use char because int might match the return type of a GCC
  9938. builtin and then its argument prototype would still apply. */
  9939. #ifdef __cplusplus
  9940. extern "C"
  9941. #endif
  9942. char dlopen ();
  9943. int
  9944. main ()
  9945. {
  9946. return dlopen ();
  9947. ;
  9948. return 0;
  9949. }
  9950. _ACEOF
  9951. if ac_fn_c_try_link "$LINENO"; then :
  9952. ac_cv_lib_svld_dlopen=yes
  9953. else
  9954. ac_cv_lib_svld_dlopen=no
  9955. fi
  9956. rm -f core conftest.err conftest.$ac_objext \
  9957. conftest$ac_exeext conftest.$ac_ext
  9958. LIBS=$ac_check_lib_save_LIBS
  9959. fi
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9961. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9962. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9963. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9964. else
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9966. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9967. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. ac_check_lib_save_LIBS=$LIBS
  9971. LIBS="-ldld $LIBS"
  9972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9973. /* end confdefs.h. */
  9974. /* Override any GCC internal prototype to avoid an error.
  9975. Use char because int might match the return type of a GCC
  9976. builtin and then its argument prototype would still apply. */
  9977. #ifdef __cplusplus
  9978. extern "C"
  9979. #endif
  9980. char dld_link ();
  9981. int
  9982. main ()
  9983. {
  9984. return dld_link ();
  9985. ;
  9986. return 0;
  9987. }
  9988. _ACEOF
  9989. if ac_fn_c_try_link "$LINENO"; then :
  9990. ac_cv_lib_dld_dld_link=yes
  9991. else
  9992. ac_cv_lib_dld_dld_link=no
  9993. fi
  9994. rm -f core conftest.err conftest.$ac_objext \
  9995. conftest$ac_exeext conftest.$ac_ext
  9996. LIBS=$ac_check_lib_save_LIBS
  9997. fi
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9999. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10000. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10001. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10002. fi
  10003. fi
  10004. fi
  10005. fi
  10006. fi
  10007. fi
  10008. ;;
  10009. esac
  10010. if test "x$lt_cv_dlopen" != xno; then
  10011. enable_dlopen=yes
  10012. else
  10013. enable_dlopen=no
  10014. fi
  10015. case $lt_cv_dlopen in
  10016. dlopen)
  10017. save_CPPFLAGS="$CPPFLAGS"
  10018. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10019. save_LDFLAGS="$LDFLAGS"
  10020. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10021. save_LIBS="$LIBS"
  10022. LIBS="$lt_cv_dlopen_libs $LIBS"
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10024. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10025. if test "${lt_cv_dlopen_self+set}" = set; then :
  10026. $as_echo_n "(cached) " >&6
  10027. else
  10028. if test "$cross_compiling" = yes; then :
  10029. lt_cv_dlopen_self=cross
  10030. else
  10031. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10032. lt_status=$lt_dlunknown
  10033. cat > conftest.$ac_ext <<_LT_EOF
  10034. #line 12320 "configure"
  10035. #include "confdefs.h"
  10036. #if HAVE_DLFCN_H
  10037. #include <dlfcn.h>
  10038. #endif
  10039. #include <stdio.h>
  10040. #ifdef RTLD_GLOBAL
  10041. # define LT_DLGLOBAL RTLD_GLOBAL
  10042. #else
  10043. # ifdef DL_GLOBAL
  10044. # define LT_DLGLOBAL DL_GLOBAL
  10045. # else
  10046. # define LT_DLGLOBAL 0
  10047. # endif
  10048. #endif
  10049. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10050. find out it does not work in some platform. */
  10051. #ifndef LT_DLLAZY_OR_NOW
  10052. # ifdef RTLD_LAZY
  10053. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10054. # else
  10055. # ifdef DL_LAZY
  10056. # define LT_DLLAZY_OR_NOW DL_LAZY
  10057. # else
  10058. # ifdef RTLD_NOW
  10059. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10060. # else
  10061. # ifdef DL_NOW
  10062. # define LT_DLLAZY_OR_NOW DL_NOW
  10063. # else
  10064. # define LT_DLLAZY_OR_NOW 0
  10065. # endif
  10066. # endif
  10067. # endif
  10068. # endif
  10069. #endif
  10070. /* When -fvisbility=hidden is used, assume the code has been annotated
  10071. correspondingly for the symbols needed. */
  10072. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10073. void fnord () __attribute__((visibility("default")));
  10074. #endif
  10075. void fnord () { int i=42; }
  10076. int main ()
  10077. {
  10078. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10079. int status = $lt_dlunknown;
  10080. if (self)
  10081. {
  10082. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10083. else
  10084. {
  10085. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10086. else puts (dlerror ());
  10087. }
  10088. /* dlclose (self); */
  10089. }
  10090. else
  10091. puts (dlerror ());
  10092. return status;
  10093. }
  10094. _LT_EOF
  10095. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10096. (eval $ac_link) 2>&5
  10097. ac_status=$?
  10098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10099. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10100. (./conftest; exit; ) >&5 2>/dev/null
  10101. lt_status=$?
  10102. case x$lt_status in
  10103. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10104. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10105. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10106. esac
  10107. else :
  10108. # compilation failed
  10109. lt_cv_dlopen_self=no
  10110. fi
  10111. fi
  10112. rm -fr conftest*
  10113. fi
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10115. $as_echo "$lt_cv_dlopen_self" >&6; }
  10116. if test "x$lt_cv_dlopen_self" = xyes; then
  10117. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10119. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10120. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10121. $as_echo_n "(cached) " >&6
  10122. else
  10123. if test "$cross_compiling" = yes; then :
  10124. lt_cv_dlopen_self_static=cross
  10125. else
  10126. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10127. lt_status=$lt_dlunknown
  10128. cat > conftest.$ac_ext <<_LT_EOF
  10129. #line 12426 "configure"
  10130. #include "confdefs.h"
  10131. #if HAVE_DLFCN_H
  10132. #include <dlfcn.h>
  10133. #endif
  10134. #include <stdio.h>
  10135. #ifdef RTLD_GLOBAL
  10136. # define LT_DLGLOBAL RTLD_GLOBAL
  10137. #else
  10138. # ifdef DL_GLOBAL
  10139. # define LT_DLGLOBAL DL_GLOBAL
  10140. # else
  10141. # define LT_DLGLOBAL 0
  10142. # endif
  10143. #endif
  10144. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10145. find out it does not work in some platform. */
  10146. #ifndef LT_DLLAZY_OR_NOW
  10147. # ifdef RTLD_LAZY
  10148. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10149. # else
  10150. # ifdef DL_LAZY
  10151. # define LT_DLLAZY_OR_NOW DL_LAZY
  10152. # else
  10153. # ifdef RTLD_NOW
  10154. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10155. # else
  10156. # ifdef DL_NOW
  10157. # define LT_DLLAZY_OR_NOW DL_NOW
  10158. # else
  10159. # define LT_DLLAZY_OR_NOW 0
  10160. # endif
  10161. # endif
  10162. # endif
  10163. # endif
  10164. #endif
  10165. /* When -fvisbility=hidden is used, assume the code has been annotated
  10166. correspondingly for the symbols needed. */
  10167. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10168. void fnord () __attribute__((visibility("default")));
  10169. #endif
  10170. void fnord () { int i=42; }
  10171. int main ()
  10172. {
  10173. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10174. int status = $lt_dlunknown;
  10175. if (self)
  10176. {
  10177. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10178. else
  10179. {
  10180. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10181. else puts (dlerror ());
  10182. }
  10183. /* dlclose (self); */
  10184. }
  10185. else
  10186. puts (dlerror ());
  10187. return status;
  10188. }
  10189. _LT_EOF
  10190. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10191. (eval $ac_link) 2>&5
  10192. ac_status=$?
  10193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10194. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10195. (./conftest; exit; ) >&5 2>/dev/null
  10196. lt_status=$?
  10197. case x$lt_status in
  10198. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10199. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10200. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10201. esac
  10202. else :
  10203. # compilation failed
  10204. lt_cv_dlopen_self_static=no
  10205. fi
  10206. fi
  10207. rm -fr conftest*
  10208. fi
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10210. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10211. fi
  10212. CPPFLAGS="$save_CPPFLAGS"
  10213. LDFLAGS="$save_LDFLAGS"
  10214. LIBS="$save_LIBS"
  10215. ;;
  10216. esac
  10217. case $lt_cv_dlopen_self in
  10218. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10219. *) enable_dlopen_self=unknown ;;
  10220. esac
  10221. case $lt_cv_dlopen_self_static in
  10222. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10223. *) enable_dlopen_self_static=unknown ;;
  10224. esac
  10225. fi
  10226. striplib=
  10227. old_striplib=
  10228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10229. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10230. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10231. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10232. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10234. $as_echo "yes" >&6; }
  10235. else
  10236. # FIXME - insert some real tests, host_os isn't really good enough
  10237. case $host_os in
  10238. darwin*)
  10239. if test -n "$STRIP" ; then
  10240. striplib="$STRIP -x"
  10241. old_striplib="$STRIP -S"
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10243. $as_echo "yes" >&6; }
  10244. else
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10246. $as_echo "no" >&6; }
  10247. fi
  10248. ;;
  10249. *)
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10251. $as_echo "no" >&6; }
  10252. ;;
  10253. esac
  10254. fi
  10255. # Report which library types will actually be built
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10257. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10259. $as_echo "$can_build_shared" >&6; }
  10260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10261. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10262. test "$can_build_shared" = "no" && enable_shared=no
  10263. # On AIX, shared libraries and static libraries use the same namespace, and
  10264. # are all built from PIC.
  10265. case $host_os in
  10266. aix3*)
  10267. test "$enable_shared" = yes && enable_static=no
  10268. if test -n "$RANLIB"; then
  10269. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10270. postinstall_cmds='$RANLIB $lib'
  10271. fi
  10272. ;;
  10273. aix[4-9]*)
  10274. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10275. test "$enable_shared" = yes && enable_static=no
  10276. fi
  10277. ;;
  10278. esac
  10279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10280. $as_echo "$enable_shared" >&6; }
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10282. $as_echo_n "checking whether to build static libraries... " >&6; }
  10283. # Make sure either enable_shared or enable_static is yes.
  10284. test "$enable_shared" = yes || enable_static=yes
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10286. $as_echo "$enable_static" >&6; }
  10287. fi
  10288. ac_ext=c
  10289. ac_cpp='$CPP $CPPFLAGS'
  10290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10293. CC="$lt_save_CC"
  10294. ac_config_commands="$ac_config_commands libtool"
  10295. # Only expand once:
  10296. . ${srcdir}/../../bfd/configure.host
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10298. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10299. # Check whether --enable-maintainer-mode was given.
  10300. if test "${enable_maintainer_mode+set}" = set; then :
  10301. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10302. else
  10303. USE_MAINTAINER_MODE=no
  10304. fi
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10306. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10307. if test $USE_MAINTAINER_MODE = yes; then
  10308. MAINTAINER_MODE_TRUE=
  10309. MAINTAINER_MODE_FALSE='#'
  10310. else
  10311. MAINTAINER_MODE_TRUE='#'
  10312. MAINTAINER_MODE_FALSE=
  10313. fi
  10314. MAINT=$MAINTAINER_MODE_TRUE
  10315. # Check whether --enable-sim-bswap was given.
  10316. if test "${enable_sim_bswap+set}" = set; then :
  10317. enableval=$enable_sim_bswap; case "${enableval}" in
  10318. yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
  10319. no) sim_bswap="-DWITH_BSWAP=0";;
  10320. *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
  10321. esac
  10322. if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
  10323. echo "Setting bswap flags = $sim_bswap" 6>&1
  10324. fi
  10325. else
  10326. sim_bswap=""
  10327. fi
  10328. # Check whether --enable-sim-cflags was given.
  10329. if test "${enable_sim_cflags+set}" = set; then :
  10330. enableval=$enable_sim_cflags; case "${enableval}" in
  10331. yes) sim_cflags="-O2 -fomit-frame-pointer";;
  10332. trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
  10333. no) sim_cflags="";;
  10334. *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10335. esac
  10336. if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
  10337. echo "Setting sim cflags = $sim_cflags" 6>&1
  10338. fi
  10339. else
  10340. sim_cflags=""
  10341. fi
  10342. # Check whether --enable-sim-debug was given.
  10343. if test "${enable_sim_debug+set}" = set; then :
  10344. enableval=$enable_sim_debug; case "${enableval}" in
  10345. yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
  10346. no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
  10347. *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
  10348. esac
  10349. if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
  10350. echo "Setting sim debug = $sim_debug" 6>&1
  10351. fi
  10352. else
  10353. sim_debug=""
  10354. fi
  10355. # Check whether --enable-sim-stdio was given.
  10356. if test "${enable_sim_stdio+set}" = set; then :
  10357. enableval=$enable_sim_stdio; case "${enableval}" in
  10358. yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
  10359. no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
  10360. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
  10361. esac
  10362. if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
  10363. echo "Setting stdio flags = $sim_stdio" 6>&1
  10364. fi
  10365. else
  10366. sim_stdio=""
  10367. fi
  10368. # Check whether --enable-sim-trace was given.
  10369. if test "${enable_sim_trace+set}" = set; then :
  10370. enableval=$enable_sim_trace; case "${enableval}" in
  10371. yes) sim_trace="-DWITH_TRACE=-1";;
  10372. no) sim_trace="-DWITH_TRACE=0";;
  10373. [-0-9]*)
  10374. sim_trace="-DWITH_TRACE='(${enableval})'";;
  10375. [[:lower:]]*)
  10376. sim_trace=""
  10377. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10378. if test x"$sim_trace" = x; then
  10379. sim_trace="-DWITH_TRACE='(TRACE_$x"
  10380. else
  10381. sim_trace="${sim_trace}|TRACE_$x"
  10382. fi
  10383. done
  10384. sim_trace="$sim_trace)'" ;;
  10385. esac
  10386. if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
  10387. echo "Setting sim trace = $sim_trace" 6>&1
  10388. fi
  10389. else
  10390. sim_trace=""
  10391. fi
  10392. # Check whether --enable-sim-profile was given.
  10393. if test "${enable_sim_profile+set}" = set; then :
  10394. enableval=$enable_sim_profile; case "${enableval}" in
  10395. yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
  10396. no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
  10397. [-0-9]*)
  10398. sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
  10399. [a-z]*)
  10400. sim_profile=""
  10401. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10402. if test x"$sim_profile" = x; then
  10403. sim_profile="-DWITH_PROFILE='(PROFILE_$x"
  10404. else
  10405. sim_profile="${sim_profile}|PROFILE_$x"
  10406. fi
  10407. done
  10408. sim_profile="$sim_profile)'" ;;
  10409. esac
  10410. if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
  10411. echo "Setting sim profile = $sim_profile" 6>&1
  10412. fi
  10413. else
  10414. sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
  10415. fi
  10416. # Check whether --with-pkgversion was given.
  10417. if test "${with_pkgversion+set}" = set; then :
  10418. withval=$with_pkgversion; case "$withval" in
  10419. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10420. no) PKGVERSION= ;;
  10421. *) PKGVERSION="($withval) " ;;
  10422. esac
  10423. else
  10424. PKGVERSION="(SIM) "
  10425. fi
  10426. # Check whether --with-bugurl was given.
  10427. if test "${with_bugurl+set}" = set; then :
  10428. withval=$with_bugurl; case "$withval" in
  10429. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10430. no) BUGURL=
  10431. ;;
  10432. *) BUGURL="$withval"
  10433. ;;
  10434. esac
  10435. else
  10436. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  10437. fi
  10438. case ${BUGURL} in
  10439. "")
  10440. REPORT_BUGS_TO=
  10441. REPORT_BUGS_TEXI=
  10442. ;;
  10443. *)
  10444. REPORT_BUGS_TO="<$BUGURL>"
  10445. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10446. ;;
  10447. esac;
  10448. cat >>confdefs.h <<_ACEOF
  10449. #define PKGVERSION "$PKGVERSION"
  10450. _ACEOF
  10451. cat >>confdefs.h <<_ACEOF
  10452. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  10453. _ACEOF
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10455. $as_echo_n "checking return type of signal handlers... " >&6; }
  10456. if test "${ac_cv_type_signal+set}" = set; then :
  10457. $as_echo_n "(cached) " >&6
  10458. else
  10459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10460. /* end confdefs.h. */
  10461. #include <sys/types.h>
  10462. #include <signal.h>
  10463. int
  10464. main ()
  10465. {
  10466. return *(signal (0, 0)) (0) == 1;
  10467. ;
  10468. return 0;
  10469. }
  10470. _ACEOF
  10471. if ac_fn_c_try_compile "$LINENO"; then :
  10472. ac_cv_type_signal=int
  10473. else
  10474. ac_cv_type_signal=void
  10475. fi
  10476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10477. fi
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10479. $as_echo "$ac_cv_type_signal" >&6; }
  10480. cat >>confdefs.h <<_ACEOF
  10481. #define RETSIGTYPE $ac_cv_type_signal
  10482. _ACEOF
  10483. sim_link_files=
  10484. sim_link_links=
  10485. # targ-vals.def points to the libc macro description file.
  10486. case "${target}" in
  10487. *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
  10488. esac
  10489. sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
  10490. sim_link_links="${sim_link_links} targ-vals.def"
  10491. wire_endian="LITTLE_ENDIAN"
  10492. default_endian=""
  10493. # Check whether --enable-sim-endian was given.
  10494. if test "${enable_sim_endian+set}" = set; then :
  10495. enableval=$enable_sim_endian; case "${enableval}" in
  10496. b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
  10497. l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
  10498. yes) if test x"$wire_endian" != x; then
  10499. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10500. else
  10501. if test x"$default_endian" != x; then
  10502. sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
  10503. else
  10504. echo "No hard-wired endian for target $target" 1>&6
  10505. sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
  10506. fi
  10507. fi;;
  10508. no) if test x"$default_endian" != x; then
  10509. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10510. else
  10511. if test x"$wire_endian" != x; then
  10512. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
  10513. else
  10514. echo "No default endian for target $target" 1>&6
  10515. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
  10516. fi
  10517. fi;;
  10518. *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
  10519. esac
  10520. if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
  10521. echo "Setting endian flags = $sim_endian" 6>&1
  10522. fi
  10523. else
  10524. if test x"$default_endian" != x; then
  10525. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10526. else
  10527. if test x"$wire_endian" != x; then
  10528. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10529. else
  10530. sim_endian=
  10531. fi
  10532. fi
  10533. fi
  10534. wire_alignment="STRICT_ALIGNMENT"
  10535. default_alignment=""
  10536. # Check whether --enable-sim-alignment was given.
  10537. if test "${enable_sim_alignment+set}" = set; then :
  10538. enableval=$enable_sim_alignment; case "${enableval}" in
  10539. strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
  10540. nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
  10541. forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
  10542. yes) if test x"$wire_alignment" != x; then
  10543. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10544. else
  10545. if test x"$default_alignment" != x; then
  10546. sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
  10547. else
  10548. echo "No hard-wired alignment for target $target" 1>&6
  10549. sim_alignment="-DWITH_ALIGNMENT=0"
  10550. fi
  10551. fi;;
  10552. no) if test x"$default_alignment" != x; then
  10553. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10554. else
  10555. if test x"$wire_alignment" != x; then
  10556. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
  10557. else
  10558. echo "No default alignment for target $target" 1>&6
  10559. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
  10560. fi
  10561. fi;;
  10562. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
  10563. esac
  10564. if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
  10565. echo "Setting alignment flags = $sim_alignment" 6>&1
  10566. fi
  10567. else
  10568. if test x"$default_alignment" != x; then
  10569. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10570. else
  10571. if test x"$wire_alignment" != x; then
  10572. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10573. else
  10574. sim_alignment=
  10575. fi
  10576. fi
  10577. fi
  10578. # Check whether --enable-sim-hostendian was given.
  10579. if test "${enable_sim_hostendian+set}" = set; then :
  10580. enableval=$enable_sim_hostendian; case "${enableval}" in
  10581. no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
  10582. b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
  10583. l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
  10584. *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
  10585. esac
  10586. if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
  10587. echo "Setting hostendian flags = $sim_hostendian" 6>&1
  10588. fi
  10589. else
  10590. if test "x$cross_compiling" = "xno"; then
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10592. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10593. if test "${ac_cv_c_bigendian+set}" = set; then :
  10594. $as_echo_n "(cached) " >&6
  10595. else
  10596. ac_cv_c_bigendian=unknown
  10597. # See if we're dealing with a universal compiler.
  10598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10599. /* end confdefs.h. */
  10600. #ifndef __APPLE_CC__
  10601. not a universal capable compiler
  10602. #endif
  10603. typedef int dummy;
  10604. _ACEOF
  10605. if ac_fn_c_try_compile "$LINENO"; then :
  10606. # Check for potential -arch flags. It is not universal unless
  10607. # there are at least two -arch flags with different values.
  10608. ac_arch=
  10609. ac_prev=
  10610. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10611. if test -n "$ac_prev"; then
  10612. case $ac_word in
  10613. i?86 | x86_64 | ppc | ppc64)
  10614. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10615. ac_arch=$ac_word
  10616. else
  10617. ac_cv_c_bigendian=universal
  10618. break
  10619. fi
  10620. ;;
  10621. esac
  10622. ac_prev=
  10623. elif test "x$ac_word" = "x-arch"; then
  10624. ac_prev=arch
  10625. fi
  10626. done
  10627. fi
  10628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10629. if test $ac_cv_c_bigendian = unknown; then
  10630. # See if sys/param.h defines the BYTE_ORDER macro.
  10631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10632. /* end confdefs.h. */
  10633. #include <sys/types.h>
  10634. #include <sys/param.h>
  10635. int
  10636. main ()
  10637. {
  10638. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10639. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10640. && LITTLE_ENDIAN)
  10641. bogus endian macros
  10642. #endif
  10643. ;
  10644. return 0;
  10645. }
  10646. _ACEOF
  10647. if ac_fn_c_try_compile "$LINENO"; then :
  10648. # It does; now see whether it defined to BIG_ENDIAN or not.
  10649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10650. /* end confdefs.h. */
  10651. #include <sys/types.h>
  10652. #include <sys/param.h>
  10653. int
  10654. main ()
  10655. {
  10656. #if BYTE_ORDER != BIG_ENDIAN
  10657. not big endian
  10658. #endif
  10659. ;
  10660. return 0;
  10661. }
  10662. _ACEOF
  10663. if ac_fn_c_try_compile "$LINENO"; then :
  10664. ac_cv_c_bigendian=yes
  10665. else
  10666. ac_cv_c_bigendian=no
  10667. fi
  10668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10669. fi
  10670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10671. fi
  10672. if test $ac_cv_c_bigendian = unknown; then
  10673. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10675. /* end confdefs.h. */
  10676. #include <limits.h>
  10677. int
  10678. main ()
  10679. {
  10680. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10681. bogus endian macros
  10682. #endif
  10683. ;
  10684. return 0;
  10685. }
  10686. _ACEOF
  10687. if ac_fn_c_try_compile "$LINENO"; then :
  10688. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10690. /* end confdefs.h. */
  10691. #include <limits.h>
  10692. int
  10693. main ()
  10694. {
  10695. #ifndef _BIG_ENDIAN
  10696. not big endian
  10697. #endif
  10698. ;
  10699. return 0;
  10700. }
  10701. _ACEOF
  10702. if ac_fn_c_try_compile "$LINENO"; then :
  10703. ac_cv_c_bigendian=yes
  10704. else
  10705. ac_cv_c_bigendian=no
  10706. fi
  10707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10708. fi
  10709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10710. fi
  10711. if test $ac_cv_c_bigendian = unknown; then
  10712. # Compile a test program.
  10713. if test "$cross_compiling" = yes; then :
  10714. # Try to guess by grepping values from an object file.
  10715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10716. /* end confdefs.h. */
  10717. short int ascii_mm[] =
  10718. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10719. short int ascii_ii[] =
  10720. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10721. int use_ascii (int i) {
  10722. return ascii_mm[i] + ascii_ii[i];
  10723. }
  10724. short int ebcdic_ii[] =
  10725. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10726. short int ebcdic_mm[] =
  10727. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10728. int use_ebcdic (int i) {
  10729. return ebcdic_mm[i] + ebcdic_ii[i];
  10730. }
  10731. extern int foo;
  10732. int
  10733. main ()
  10734. {
  10735. return use_ascii (foo) == use_ebcdic (foo);
  10736. ;
  10737. return 0;
  10738. }
  10739. _ACEOF
  10740. if ac_fn_c_try_compile "$LINENO"; then :
  10741. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10742. ac_cv_c_bigendian=yes
  10743. fi
  10744. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10745. if test "$ac_cv_c_bigendian" = unknown; then
  10746. ac_cv_c_bigendian=no
  10747. else
  10748. # finding both strings is unlikely to happen, but who knows?
  10749. ac_cv_c_bigendian=unknown
  10750. fi
  10751. fi
  10752. fi
  10753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10754. else
  10755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10756. /* end confdefs.h. */
  10757. $ac_includes_default
  10758. int
  10759. main ()
  10760. {
  10761. /* Are we little or big endian? From Harbison&Steele. */
  10762. union
  10763. {
  10764. long int l;
  10765. char c[sizeof (long int)];
  10766. } u;
  10767. u.l = 1;
  10768. return u.c[sizeof (long int) - 1] == 1;
  10769. ;
  10770. return 0;
  10771. }
  10772. _ACEOF
  10773. if ac_fn_c_try_run "$LINENO"; then :
  10774. ac_cv_c_bigendian=no
  10775. else
  10776. ac_cv_c_bigendian=yes
  10777. fi
  10778. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10779. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10780. fi
  10781. fi
  10782. fi
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10784. $as_echo "$ac_cv_c_bigendian" >&6; }
  10785. case $ac_cv_c_bigendian in #(
  10786. yes)
  10787. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10788. ;; #(
  10789. no)
  10790. ;; #(
  10791. universal)
  10792. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10793. ;; #(
  10794. *)
  10795. as_fn_error "unknown endianness
  10796. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10797. esac
  10798. if test $ac_cv_c_bigendian = yes; then
  10799. sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
  10800. else
  10801. sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
  10802. fi
  10803. else
  10804. sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
  10805. fi
  10806. fi
  10807. # Check whether --enable-sim-environment was given.
  10808. if test "${enable_sim_environment+set}" = set; then :
  10809. enableval=$enable_sim_environment; case "${enableval}" in
  10810. all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
  10811. user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
  10812. virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
  10813. operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
  10814. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
  10815. sim_environment="";;
  10816. esac
  10817. if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
  10818. echo "Setting sim environment = $sim_environment" 6>&1
  10819. fi
  10820. else
  10821. sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
  10822. fi
  10823. default_sim_inline=""
  10824. # Check whether --enable-sim-inline was given.
  10825. if test "${enable_sim_inline+set}" = set; then :
  10826. enableval=$enable_sim_inline; sim_inline=""
  10827. case "$enableval" in
  10828. no) sim_inline="-DDEFAULT_INLINE=0";;
  10829. 0) sim_inline="-DDEFAULT_INLINE=0";;
  10830. yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
  10831. 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
  10832. *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10833. new_flag=""
  10834. case "$x" in
  10835. *_INLINE=*) new_flag="-D$x";;
  10836. *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
  10837. *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
  10838. *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
  10839. esac
  10840. if test x"$sim_inline" = x""; then
  10841. sim_inline="$new_flag"
  10842. else
  10843. sim_inline="$sim_inline $new_flag"
  10844. fi
  10845. done;;
  10846. esac
  10847. if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
  10848. echo "Setting inline flags = $sim_inline" 6>&1
  10849. fi
  10850. else
  10851. if test "x$cross_compiling" = "xno"; then
  10852. if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
  10853. sim_inline="${default_sim_inline}"
  10854. if test x"$silent" != x"yes"; then
  10855. echo "Setting inline flags = $sim_inline" 6>&1
  10856. fi
  10857. else
  10858. sim_inline=""
  10859. fi
  10860. else
  10861. sim_inline="-DDEFAULT_INLINE=0"
  10862. fi
  10863. fi
  10864. # Check whether --enable-werror was given.
  10865. if test "${enable_werror+set}" = set; then :
  10866. enableval=$enable_werror; case "${enableval}" in
  10867. yes | y) ERROR_ON_WARNING="yes" ;;
  10868. no | n) ERROR_ON_WARNING="no" ;;
  10869. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10870. esac
  10871. fi
  10872. # Enable -Werror by default when using gcc
  10873. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10874. ERROR_ON_WARNING=yes
  10875. fi
  10876. WERROR_CFLAGS=""
  10877. if test "${ERROR_ON_WARNING}" = yes ; then
  10878. # NOTE: Disabled in the sim dir due to most sims generating warnings.
  10879. # WERROR_CFLAGS="-Werror"
  10880. true
  10881. fi
  10882. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
  10883. -Wpointer-sign \
  10884. -Wno-unused -Wunused-value -Wunused-function \
  10885. -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
  10886. -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
  10887. -Wold-style-declaration -Wold-style-definition"
  10888. # Enable -Wno-format by default when using gcc on mingw since many
  10889. # GCC versions complain about %I64.
  10890. case "${host}" in
  10891. *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
  10892. *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
  10893. esac
  10894. # Check whether --enable-build-warnings was given.
  10895. if test "${enable_build_warnings+set}" = set; then :
  10896. enableval=$enable_build_warnings; case "${enableval}" in
  10897. yes) ;;
  10898. no) build_warnings="-w";;
  10899. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10900. build_warnings="${build_warnings} ${t}";;
  10901. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10902. build_warnings="${t} ${build_warnings}";;
  10903. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10904. esac
  10905. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  10906. echo "Setting compiler warning flags = $build_warnings" 6>&1
  10907. fi
  10908. fi
  10909. # Check whether --enable-sim-build-warnings was given.
  10910. if test "${enable_sim_build_warnings+set}" = set; then :
  10911. enableval=$enable_sim_build_warnings; case "${enableval}" in
  10912. yes) ;;
  10913. no) build_warnings="-w";;
  10914. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10915. build_warnings="${build_warnings} ${t}";;
  10916. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10917. build_warnings="${t} ${build_warnings}";;
  10918. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10919. esac
  10920. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  10921. echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  10922. fi
  10923. fi
  10924. WARN_CFLAGS=""
  10925. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  10926. then
  10927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  10928. $as_echo_n "checking compiler warning flags... " >&6; }
  10929. # Separate out the -Werror flag as some files just cannot be
  10930. # compiled with it enabled.
  10931. for w in ${build_warnings}; do
  10932. case $w in
  10933. -Werr*) WERROR_CFLAGS=-Werror ;;
  10934. *) # Check that GCC accepts it
  10935. saved_CFLAGS="$CFLAGS"
  10936. CFLAGS="$CFLAGS $w"
  10937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10938. /* end confdefs.h. */
  10939. int
  10940. main ()
  10941. {
  10942. ;
  10943. return 0;
  10944. }
  10945. _ACEOF
  10946. if ac_fn_c_try_compile "$LINENO"; then :
  10947. WARN_CFLAGS="${WARN_CFLAGS} $w"
  10948. fi
  10949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10950. CFLAGS="$saved_CFLAGS"
  10951. esac
  10952. done
  10953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  10954. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  10955. fi
  10956. ac_sources="$sim_link_files"
  10957. ac_dests="$sim_link_links"
  10958. while test -n "$ac_sources"; do
  10959. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  10960. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  10961. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  10962. done
  10963. ac_config_links="$ac_config_links $ac_config_links_1"
  10964. cgen_breaks=""
  10965. if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
  10966. cgen_breaks="break cgen_rtx_error";
  10967. fi
  10968. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  10969. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  10970. ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
  10971. ac_config_commands="$ac_config_commands Makefile"
  10972. ac_config_commands="$ac_config_commands stamp-h"
  10973. cat >confcache <<\_ACEOF
  10974. # This file is a shell script that caches the results of configure
  10975. # tests run on this system so they can be shared between configure
  10976. # scripts and configure runs, see configure's option --config-cache.
  10977. # It is not useful on other systems. If it contains results you don't
  10978. # want to keep, you may remove or edit it.
  10979. #
  10980. # config.status only pays attention to the cache file if you give it
  10981. # the --recheck option to rerun configure.
  10982. #
  10983. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10984. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10985. # following values.
  10986. _ACEOF
  10987. # The following way of writing the cache mishandles newlines in values,
  10988. # but we know of no workaround that is simple, portable, and efficient.
  10989. # So, we kill variables containing newlines.
  10990. # Ultrix sh set writes to stderr and can't be redirected directly,
  10991. # and sets the high bit in the cache file unless we assign to the vars.
  10992. (
  10993. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10994. eval ac_val=\$$ac_var
  10995. case $ac_val in #(
  10996. *${as_nl}*)
  10997. case $ac_var in #(
  10998. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10999. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11000. esac
  11001. case $ac_var in #(
  11002. _ | IFS | as_nl) ;; #(
  11003. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11004. *) { eval $ac_var=; unset $ac_var;} ;;
  11005. esac ;;
  11006. esac
  11007. done
  11008. (set) 2>&1 |
  11009. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11010. *${as_nl}ac_space=\ *)
  11011. # `set' does not quote correctly, so add quotes: double-quote
  11012. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11013. sed -n \
  11014. "s/'/'\\\\''/g;
  11015. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11016. ;; #(
  11017. *)
  11018. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11019. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11020. ;;
  11021. esac |
  11022. sort
  11023. ) |
  11024. sed '
  11025. /^ac_cv_env_/b end
  11026. t clear
  11027. :clear
  11028. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11029. t end
  11030. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11031. :end' >>confcache
  11032. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11033. if test -w "$cache_file"; then
  11034. test "x$cache_file" != "x/dev/null" &&
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11036. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11037. cat confcache >$cache_file
  11038. else
  11039. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11040. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11041. fi
  11042. fi
  11043. rm -f confcache
  11044. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11045. # Let make expand exec_prefix.
  11046. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11047. DEFS=-DHAVE_CONFIG_H
  11048. ac_libobjs=
  11049. ac_ltlibobjs=
  11050. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11051. # 1. Remove the extension, and $U if already installed.
  11052. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11053. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11054. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11055. # will be set to the directory where LIBOBJS objects are built.
  11056. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11057. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11058. done
  11059. LIBOBJS=$ac_libobjs
  11060. LTLIBOBJS=$ac_ltlibobjs
  11061. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  11062. as_fn_error "conditional \"GMAKE\" was never defined.
  11063. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11064. fi
  11065. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  11066. as_fn_error "conditional \"PLUGINS\" was never defined.
  11067. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11068. fi
  11069. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11070. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11071. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11072. fi
  11073. : ${CONFIG_STATUS=./config.status}
  11074. ac_write_fail=0
  11075. ac_clean_files_save=$ac_clean_files
  11076. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11078. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11079. as_write_fail=0
  11080. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11081. #! $SHELL
  11082. # Generated by $as_me.
  11083. # Run this file to recreate the current configuration.
  11084. # Compiler output produced by configure, useful for debugging
  11085. # configure, is in config.log if it exists.
  11086. debug=false
  11087. ac_cs_recheck=false
  11088. ac_cs_silent=false
  11089. SHELL=\${CONFIG_SHELL-$SHELL}
  11090. export SHELL
  11091. _ASEOF
  11092. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11093. ## -------------------- ##
  11094. ## M4sh Initialization. ##
  11095. ## -------------------- ##
  11096. # Be more Bourne compatible
  11097. DUALCASE=1; export DUALCASE # for MKS sh
  11098. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11099. emulate sh
  11100. NULLCMD=:
  11101. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11102. # is contrary to our usage. Disable this feature.
  11103. alias -g '${1+"$@"}'='"$@"'
  11104. setopt NO_GLOB_SUBST
  11105. else
  11106. case `(set -o) 2>/dev/null` in #(
  11107. *posix*) :
  11108. set -o posix ;; #(
  11109. *) :
  11110. ;;
  11111. esac
  11112. fi
  11113. as_nl='
  11114. '
  11115. export as_nl
  11116. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11117. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11118. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11119. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11120. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11121. # but without wasting forks for bash or zsh.
  11122. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11123. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11124. as_echo='print -r --'
  11125. as_echo_n='print -rn --'
  11126. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11127. as_echo='printf %s\n'
  11128. as_echo_n='printf %s'
  11129. else
  11130. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11131. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11132. as_echo_n='/usr/ucb/echo -n'
  11133. else
  11134. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11135. as_echo_n_body='eval
  11136. arg=$1;
  11137. case $arg in #(
  11138. *"$as_nl"*)
  11139. expr "X$arg" : "X\\(.*\\)$as_nl";
  11140. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11141. esac;
  11142. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11143. '
  11144. export as_echo_n_body
  11145. as_echo_n='sh -c $as_echo_n_body as_echo'
  11146. fi
  11147. export as_echo_body
  11148. as_echo='sh -c $as_echo_body as_echo'
  11149. fi
  11150. # The user is always right.
  11151. if test "${PATH_SEPARATOR+set}" != set; then
  11152. PATH_SEPARATOR=:
  11153. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11154. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11155. PATH_SEPARATOR=';'
  11156. }
  11157. fi
  11158. # IFS
  11159. # We need space, tab and new line, in precisely that order. Quoting is
  11160. # there to prevent editors from complaining about space-tab.
  11161. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11162. # splitting by setting IFS to empty value.)
  11163. IFS=" "" $as_nl"
  11164. # Find who we are. Look in the path if we contain no directory separator.
  11165. case $0 in #((
  11166. *[\\/]* ) as_myself=$0 ;;
  11167. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11168. for as_dir in $PATH
  11169. do
  11170. IFS=$as_save_IFS
  11171. test -z "$as_dir" && as_dir=.
  11172. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11173. done
  11174. IFS=$as_save_IFS
  11175. ;;
  11176. esac
  11177. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11178. # in which case we are not to be found in the path.
  11179. if test "x$as_myself" = x; then
  11180. as_myself=$0
  11181. fi
  11182. if test ! -f "$as_myself"; then
  11183. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11184. exit 1
  11185. fi
  11186. # Unset variables that we do not need and which cause bugs (e.g. in
  11187. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11188. # suppresses any "Segmentation fault" message there. '((' could
  11189. # trigger a bug in pdksh 5.2.14.
  11190. for as_var in BASH_ENV ENV MAIL MAILPATH
  11191. do eval test x\${$as_var+set} = xset \
  11192. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11193. done
  11194. PS1='$ '
  11195. PS2='> '
  11196. PS4='+ '
  11197. # NLS nuisances.
  11198. LC_ALL=C
  11199. export LC_ALL
  11200. LANGUAGE=C
  11201. export LANGUAGE
  11202. # CDPATH.
  11203. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11204. # as_fn_error ERROR [LINENO LOG_FD]
  11205. # ---------------------------------
  11206. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11207. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11208. # script with status $?, using 1 if that was 0.
  11209. as_fn_error ()
  11210. {
  11211. as_status=$?; test $as_status -eq 0 && as_status=1
  11212. if test "$3"; then
  11213. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11214. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11215. fi
  11216. $as_echo "$as_me: error: $1" >&2
  11217. as_fn_exit $as_status
  11218. } # as_fn_error
  11219. # as_fn_set_status STATUS
  11220. # -----------------------
  11221. # Set $? to STATUS, without forking.
  11222. as_fn_set_status ()
  11223. {
  11224. return $1
  11225. } # as_fn_set_status
  11226. # as_fn_exit STATUS
  11227. # -----------------
  11228. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11229. as_fn_exit ()
  11230. {
  11231. set +e
  11232. as_fn_set_status $1
  11233. exit $1
  11234. } # as_fn_exit
  11235. # as_fn_unset VAR
  11236. # ---------------
  11237. # Portably unset VAR.
  11238. as_fn_unset ()
  11239. {
  11240. { eval $1=; unset $1;}
  11241. }
  11242. as_unset=as_fn_unset
  11243. # as_fn_append VAR VALUE
  11244. # ----------------------
  11245. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11246. # advantage of any shell optimizations that allow amortized linear growth over
  11247. # repeated appends, instead of the typical quadratic growth present in naive
  11248. # implementations.
  11249. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11250. eval 'as_fn_append ()
  11251. {
  11252. eval $1+=\$2
  11253. }'
  11254. else
  11255. as_fn_append ()
  11256. {
  11257. eval $1=\$$1\$2
  11258. }
  11259. fi # as_fn_append
  11260. # as_fn_arith ARG...
  11261. # ------------------
  11262. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11263. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11264. # must be portable across $(()) and expr.
  11265. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11266. eval 'as_fn_arith ()
  11267. {
  11268. as_val=$(( $* ))
  11269. }'
  11270. else
  11271. as_fn_arith ()
  11272. {
  11273. as_val=`expr "$@" || test $? -eq 1`
  11274. }
  11275. fi # as_fn_arith
  11276. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11277. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11278. as_expr=expr
  11279. else
  11280. as_expr=false
  11281. fi
  11282. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11283. as_basename=basename
  11284. else
  11285. as_basename=false
  11286. fi
  11287. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11288. as_dirname=dirname
  11289. else
  11290. as_dirname=false
  11291. fi
  11292. as_me=`$as_basename -- "$0" ||
  11293. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11294. X"$0" : 'X\(//\)$' \| \
  11295. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11296. $as_echo X/"$0" |
  11297. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11298. s//\1/
  11299. q
  11300. }
  11301. /^X\/\(\/\/\)$/{
  11302. s//\1/
  11303. q
  11304. }
  11305. /^X\/\(\/\).*/{
  11306. s//\1/
  11307. q
  11308. }
  11309. s/.*/./; q'`
  11310. # Avoid depending upon Character Ranges.
  11311. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11312. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11313. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11314. as_cr_digits='0123456789'
  11315. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11316. ECHO_C= ECHO_N= ECHO_T=
  11317. case `echo -n x` in #(((((
  11318. -n*)
  11319. case `echo 'xy\c'` in
  11320. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11321. xy) ECHO_C='\c';;
  11322. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11323. ECHO_T=' ';;
  11324. esac;;
  11325. *)
  11326. ECHO_N='-n';;
  11327. esac
  11328. rm -f conf$$ conf$$.exe conf$$.file
  11329. if test -d conf$$.dir; then
  11330. rm -f conf$$.dir/conf$$.file
  11331. else
  11332. rm -f conf$$.dir
  11333. mkdir conf$$.dir 2>/dev/null
  11334. fi
  11335. if (echo >conf$$.file) 2>/dev/null; then
  11336. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11337. as_ln_s='ln -s'
  11338. # ... but there are two gotchas:
  11339. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11340. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11341. # In both cases, we have to default to `cp -p'.
  11342. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11343. as_ln_s='cp -p'
  11344. elif ln conf$$.file conf$$ 2>/dev/null; then
  11345. as_ln_s=ln
  11346. else
  11347. as_ln_s='cp -p'
  11348. fi
  11349. else
  11350. as_ln_s='cp -p'
  11351. fi
  11352. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11353. rmdir conf$$.dir 2>/dev/null
  11354. # as_fn_mkdir_p
  11355. # -------------
  11356. # Create "$as_dir" as a directory, including parents if necessary.
  11357. as_fn_mkdir_p ()
  11358. {
  11359. case $as_dir in #(
  11360. -*) as_dir=./$as_dir;;
  11361. esac
  11362. test -d "$as_dir" || eval $as_mkdir_p || {
  11363. as_dirs=
  11364. while :; do
  11365. case $as_dir in #(
  11366. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11367. *) as_qdir=$as_dir;;
  11368. esac
  11369. as_dirs="'$as_qdir' $as_dirs"
  11370. as_dir=`$as_dirname -- "$as_dir" ||
  11371. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11372. X"$as_dir" : 'X\(//\)[^/]' \| \
  11373. X"$as_dir" : 'X\(//\)$' \| \
  11374. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11375. $as_echo X"$as_dir" |
  11376. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11377. s//\1/
  11378. q
  11379. }
  11380. /^X\(\/\/\)[^/].*/{
  11381. s//\1/
  11382. q
  11383. }
  11384. /^X\(\/\/\)$/{
  11385. s//\1/
  11386. q
  11387. }
  11388. /^X\(\/\).*/{
  11389. s//\1/
  11390. q
  11391. }
  11392. s/.*/./; q'`
  11393. test -d "$as_dir" && break
  11394. done
  11395. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11396. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11397. } # as_fn_mkdir_p
  11398. if mkdir -p . 2>/dev/null; then
  11399. as_mkdir_p='mkdir -p "$as_dir"'
  11400. else
  11401. test -d ./-p && rmdir ./-p
  11402. as_mkdir_p=false
  11403. fi
  11404. if test -x / >/dev/null 2>&1; then
  11405. as_test_x='test -x'
  11406. else
  11407. if ls -dL / >/dev/null 2>&1; then
  11408. as_ls_L_option=L
  11409. else
  11410. as_ls_L_option=
  11411. fi
  11412. as_test_x='
  11413. eval sh -c '\''
  11414. if test -d "$1"; then
  11415. test -d "$1/.";
  11416. else
  11417. case $1 in #(
  11418. -*)set "./$1";;
  11419. esac;
  11420. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11421. ???[sx]*):;;*)false;;esac;fi
  11422. '\'' sh
  11423. '
  11424. fi
  11425. as_executable_p=$as_test_x
  11426. # Sed expression to map a string onto a valid CPP name.
  11427. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11428. # Sed expression to map a string onto a valid variable name.
  11429. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11430. exec 6>&1
  11431. ## ----------------------------------- ##
  11432. ## Main body of $CONFIG_STATUS script. ##
  11433. ## ----------------------------------- ##
  11434. _ASEOF
  11435. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11436. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11437. # Save the log message, to keep $0 and so on meaningful, and to
  11438. # report actual input values of CONFIG_FILES etc. instead of their
  11439. # values after options handling.
  11440. ac_log="
  11441. This file was extended by $as_me, which was
  11442. generated by GNU Autoconf 2.64. Invocation command line was
  11443. CONFIG_FILES = $CONFIG_FILES
  11444. CONFIG_HEADERS = $CONFIG_HEADERS
  11445. CONFIG_LINKS = $CONFIG_LINKS
  11446. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11447. $ $0 $@
  11448. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11449. "
  11450. _ACEOF
  11451. case $ac_config_files in *"
  11452. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11453. esac
  11454. case $ac_config_headers in *"
  11455. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11456. esac
  11457. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11458. # Files that config.status was made for.
  11459. config_files="$ac_config_files"
  11460. config_headers="$ac_config_headers"
  11461. config_links="$ac_config_links"
  11462. config_commands="$ac_config_commands"
  11463. _ACEOF
  11464. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11465. ac_cs_usage="\
  11466. \`$as_me' instantiates files and other configuration actions
  11467. from templates according to the current configuration. Unless the files
  11468. and actions are specified as TAGs, all are instantiated by default.
  11469. Usage: $0 [OPTION]... [TAG]...
  11470. -h, --help print this help, then exit
  11471. -V, --version print version number and configuration settings, then exit
  11472. -q, --quiet, --silent
  11473. do not print progress messages
  11474. -d, --debug don't remove temporary files
  11475. --recheck update $as_me by reconfiguring in the same conditions
  11476. --file=FILE[:TEMPLATE]
  11477. instantiate the configuration file FILE
  11478. --header=FILE[:TEMPLATE]
  11479. instantiate the configuration header FILE
  11480. Configuration files:
  11481. $config_files
  11482. Configuration headers:
  11483. $config_headers
  11484. Configuration links:
  11485. $config_links
  11486. Configuration commands:
  11487. $config_commands
  11488. Report bugs to the package provider."
  11489. _ACEOF
  11490. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11491. ac_cs_version="\\
  11492. config.status
  11493. configured by $0, generated by GNU Autoconf 2.64,
  11494. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11495. Copyright (C) 2009 Free Software Foundation, Inc.
  11496. This config.status script is free software; the Free Software Foundation
  11497. gives unlimited permission to copy, distribute and modify it."
  11498. ac_pwd='$ac_pwd'
  11499. srcdir='$srcdir'
  11500. INSTALL='$INSTALL'
  11501. AWK='$AWK'
  11502. test -n "\$AWK" || AWK=awk
  11503. _ACEOF
  11504. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11505. # The default lists apply if the user does not specify any file.
  11506. ac_need_defaults=:
  11507. while test $# != 0
  11508. do
  11509. case $1 in
  11510. --*=*)
  11511. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11512. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11513. ac_shift=:
  11514. ;;
  11515. *)
  11516. ac_option=$1
  11517. ac_optarg=$2
  11518. ac_shift=shift
  11519. ;;
  11520. esac
  11521. case $ac_option in
  11522. # Handling of the options.
  11523. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11524. ac_cs_recheck=: ;;
  11525. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11526. $as_echo "$ac_cs_version"; exit ;;
  11527. --debug | --debu | --deb | --de | --d | -d )
  11528. debug=: ;;
  11529. --file | --fil | --fi | --f )
  11530. $ac_shift
  11531. case $ac_optarg in
  11532. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11533. esac
  11534. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11535. ac_need_defaults=false;;
  11536. --header | --heade | --head | --hea )
  11537. $ac_shift
  11538. case $ac_optarg in
  11539. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11540. esac
  11541. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11542. ac_need_defaults=false;;
  11543. --he | --h)
  11544. # Conflict between --help and --header
  11545. as_fn_error "ambiguous option: \`$1'
  11546. Try \`$0 --help' for more information.";;
  11547. --help | --hel | -h )
  11548. $as_echo "$ac_cs_usage"; exit ;;
  11549. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11550. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11551. ac_cs_silent=: ;;
  11552. # This is an error.
  11553. -*) as_fn_error "unrecognized option: \`$1'
  11554. Try \`$0 --help' for more information." ;;
  11555. *) as_fn_append ac_config_targets " $1"
  11556. ac_need_defaults=false ;;
  11557. esac
  11558. shift
  11559. done
  11560. ac_configure_extra_args=
  11561. if $ac_cs_silent; then
  11562. exec 6>/dev/null
  11563. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11564. fi
  11565. _ACEOF
  11566. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11567. if \$ac_cs_recheck; then
  11568. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11569. shift
  11570. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11571. CONFIG_SHELL='$SHELL'
  11572. export CONFIG_SHELL
  11573. exec "\$@"
  11574. fi
  11575. _ACEOF
  11576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11577. exec 5>>config.log
  11578. {
  11579. echo
  11580. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11581. ## Running $as_me. ##
  11582. _ASBOX
  11583. $as_echo "$ac_log"
  11584. } >&5
  11585. _ACEOF
  11586. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11587. #
  11588. # INIT-COMMANDS
  11589. #
  11590. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  11591. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11592. # if CDPATH is set.
  11593. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11594. sed_quote_subst='$sed_quote_subst'
  11595. double_quote_subst='$double_quote_subst'
  11596. delay_variable_subst='$delay_variable_subst'
  11597. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11598. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11599. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11600. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11601. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11602. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11603. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11604. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11605. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11606. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11607. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11608. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11609. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11610. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11611. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11612. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11613. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11614. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11615. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11616. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11617. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11618. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11619. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11620. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11621. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11622. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11623. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11624. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11625. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11626. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11627. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11628. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11629. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11630. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11631. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11632. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11633. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11634. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11635. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11636. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11637. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11638. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11639. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11640. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11641. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11642. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11643. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11644. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11645. 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"`'
  11646. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11647. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11648. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11649. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11650. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11651. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11652. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11653. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11654. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11655. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11656. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11657. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11658. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11659. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11660. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11661. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11662. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11663. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11664. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11665. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11666. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11667. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11668. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11669. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11670. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11671. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11672. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11673. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11674. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11675. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11676. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11677. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11678. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11679. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11680. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11681. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11682. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11683. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11684. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11685. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11686. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11687. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11688. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11689. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11690. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11691. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11692. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11693. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11694. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11695. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11696. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11697. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11698. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11699. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11700. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11701. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11702. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11703. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11704. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11705. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11706. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11707. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11708. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11709. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11710. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11711. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11712. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11713. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11714. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11715. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11716. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11717. LTCC='$LTCC'
  11718. LTCFLAGS='$LTCFLAGS'
  11719. compiler='$compiler_DEFAULT'
  11720. # A function that is used when there is no print builtin or printf.
  11721. func_fallback_echo ()
  11722. {
  11723. eval 'cat <<_LTECHO_EOF
  11724. \$1
  11725. _LTECHO_EOF'
  11726. }
  11727. # Quote evaled strings.
  11728. for var in SHELL \
  11729. ECHO \
  11730. SED \
  11731. GREP \
  11732. EGREP \
  11733. FGREP \
  11734. LD \
  11735. NM \
  11736. LN_S \
  11737. lt_SP2NL \
  11738. lt_NL2SP \
  11739. reload_flag \
  11740. OBJDUMP \
  11741. deplibs_check_method \
  11742. file_magic_cmd \
  11743. AR \
  11744. AR_FLAGS \
  11745. STRIP \
  11746. RANLIB \
  11747. CC \
  11748. CFLAGS \
  11749. compiler \
  11750. lt_cv_sys_global_symbol_pipe \
  11751. lt_cv_sys_global_symbol_to_cdecl \
  11752. lt_cv_sys_global_symbol_to_c_name_address \
  11753. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11754. lt_prog_compiler_no_builtin_flag \
  11755. lt_prog_compiler_wl \
  11756. lt_prog_compiler_pic \
  11757. lt_prog_compiler_static \
  11758. lt_cv_prog_compiler_c_o \
  11759. need_locks \
  11760. DSYMUTIL \
  11761. NMEDIT \
  11762. LIPO \
  11763. OTOOL \
  11764. OTOOL64 \
  11765. shrext_cmds \
  11766. export_dynamic_flag_spec \
  11767. whole_archive_flag_spec \
  11768. compiler_needs_object \
  11769. with_gnu_ld \
  11770. allow_undefined_flag \
  11771. no_undefined_flag \
  11772. hardcode_libdir_flag_spec \
  11773. hardcode_libdir_flag_spec_ld \
  11774. hardcode_libdir_separator \
  11775. fix_srcfile_path \
  11776. exclude_expsyms \
  11777. include_expsyms \
  11778. file_list_spec \
  11779. variables_saved_for_relink \
  11780. libname_spec \
  11781. library_names_spec \
  11782. soname_spec \
  11783. install_override_mode \
  11784. finish_eval \
  11785. old_striplib \
  11786. striplib; do
  11787. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11788. *[\\\\\\\`\\"\\\$]*)
  11789. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11790. ;;
  11791. *)
  11792. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11793. ;;
  11794. esac
  11795. done
  11796. # Double-quote double-evaled strings.
  11797. for var in reload_cmds \
  11798. old_postinstall_cmds \
  11799. old_postuninstall_cmds \
  11800. old_archive_cmds \
  11801. extract_expsyms_cmds \
  11802. old_archive_from_new_cmds \
  11803. old_archive_from_expsyms_cmds \
  11804. archive_cmds \
  11805. archive_expsym_cmds \
  11806. module_cmds \
  11807. module_expsym_cmds \
  11808. export_symbols_cmds \
  11809. prelink_cmds \
  11810. postinstall_cmds \
  11811. postuninstall_cmds \
  11812. finish_cmds \
  11813. sys_lib_search_path_spec \
  11814. sys_lib_dlsearch_path_spec; do
  11815. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11816. *[\\\\\\\`\\"\\\$]*)
  11817. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11818. ;;
  11819. *)
  11820. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11821. ;;
  11822. esac
  11823. done
  11824. ac_aux_dir='$ac_aux_dir'
  11825. xsi_shell='$xsi_shell'
  11826. lt_shell_append='$lt_shell_append'
  11827. # See if we are running on zsh, and set the options which allow our
  11828. # commands through without removal of \ escapes INIT.
  11829. if test -n "\${ZSH_VERSION+set}" ; then
  11830. setopt NO_GLOB_SUBST
  11831. fi
  11832. PACKAGE='$PACKAGE'
  11833. VERSION='$VERSION'
  11834. TIMESTAMP='$TIMESTAMP'
  11835. RM='$RM'
  11836. ofile='$ofile'
  11837. _ACEOF
  11838. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11839. # Handling of arguments.
  11840. for ac_config_target in $ac_config_targets
  11841. do
  11842. case $ac_config_target in
  11843. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  11844. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  11845. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11846. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  11847. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  11848. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  11849. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
  11850. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  11851. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  11852. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11853. esac
  11854. done
  11855. # If the user did not use the arguments to specify the items to instantiate,
  11856. # then the envvar interface is used. Set only those that are not.
  11857. # We use the long form for the default assignment because of an extremely
  11858. # bizarre bug on SunOS 4.1.3.
  11859. if $ac_need_defaults; then
  11860. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11861. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11862. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  11863. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11864. fi
  11865. # Have a temporary directory for convenience. Make it in the build tree
  11866. # simply because there is no reason against having it here, and in addition,
  11867. # creating and moving files from /tmp can sometimes cause problems.
  11868. # Hook for its removal unless debugging.
  11869. # Note that there is a small window in which the directory will not be cleaned:
  11870. # after its creation but before its name has been assigned to `$tmp'.
  11871. $debug ||
  11872. {
  11873. tmp=
  11874. trap 'exit_status=$?
  11875. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11876. ' 0
  11877. trap 'as_fn_exit 1' 1 2 13 15
  11878. }
  11879. # Create a (secure) tmp directory for tmp files.
  11880. {
  11881. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11882. test -n "$tmp" && test -d "$tmp"
  11883. } ||
  11884. {
  11885. tmp=./conf$$-$RANDOM
  11886. (umask 077 && mkdir "$tmp")
  11887. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11888. # Set up the scripts for CONFIG_FILES section.
  11889. # No need to generate them if there are no CONFIG_FILES.
  11890. # This happens for instance with `./config.status config.h'.
  11891. if test -n "$CONFIG_FILES"; then
  11892. ac_cr=`echo X | tr X '\015'`
  11893. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11894. # But we know of no other shell where ac_cr would be empty at this
  11895. # point, so we can use a bashism as a fallback.
  11896. if test "x$ac_cr" = x; then
  11897. eval ac_cr=\$\'\\r\'
  11898. fi
  11899. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11900. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11901. ac_cs_awk_cr='\r'
  11902. else
  11903. ac_cs_awk_cr=$ac_cr
  11904. fi
  11905. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11906. _ACEOF
  11907. {
  11908. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11909. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11910. echo "_ACEOF"
  11911. } >conf$$subs.sh ||
  11912. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11913. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11914. ac_delim='%!_!# '
  11915. for ac_last_try in false false false false false :; do
  11916. . ./conf$$subs.sh ||
  11917. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11918. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11919. if test $ac_delim_n = $ac_delim_num; then
  11920. break
  11921. elif $ac_last_try; then
  11922. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11923. else
  11924. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11925. fi
  11926. done
  11927. rm -f conf$$subs.sh
  11928. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11929. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11930. _ACEOF
  11931. sed -n '
  11932. h
  11933. s/^/S["/; s/!.*/"]=/
  11934. p
  11935. g
  11936. s/^[^!]*!//
  11937. :repl
  11938. t repl
  11939. s/'"$ac_delim"'$//
  11940. t delim
  11941. :nl
  11942. h
  11943. s/\(.\{148\}\).*/\1/
  11944. t more1
  11945. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11946. p
  11947. n
  11948. b repl
  11949. :more1
  11950. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11951. p
  11952. g
  11953. s/.\{148\}//
  11954. t nl
  11955. :delim
  11956. h
  11957. s/\(.\{148\}\).*/\1/
  11958. t more2
  11959. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11960. p
  11961. b
  11962. :more2
  11963. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11964. p
  11965. g
  11966. s/.\{148\}//
  11967. t delim
  11968. ' <conf$$subs.awk | sed '
  11969. /^[^""]/{
  11970. N
  11971. s/\n//
  11972. }
  11973. ' >>$CONFIG_STATUS || ac_write_fail=1
  11974. rm -f conf$$subs.awk
  11975. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11976. _ACAWK
  11977. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11978. for (key in S) S_is_set[key] = 1
  11979. FS = ""
  11980. }
  11981. {
  11982. line = $ 0
  11983. nfields = split(line, field, "@")
  11984. substed = 0
  11985. len = length(field[1])
  11986. for (i = 2; i < nfields; i++) {
  11987. key = field[i]
  11988. keylen = length(key)
  11989. if (S_is_set[key]) {
  11990. value = S[key]
  11991. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11992. len += length(value) + length(field[++i])
  11993. substed = 1
  11994. } else
  11995. len += 1 + keylen
  11996. }
  11997. print line
  11998. }
  11999. _ACAWK
  12000. _ACEOF
  12001. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12002. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12003. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12004. else
  12005. cat
  12006. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12007. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12008. _ACEOF
  12009. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12010. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12011. # trailing colons and then remove the whole line if VPATH becomes empty
  12012. # (actually we leave an empty line to preserve line numbers).
  12013. if test "x$srcdir" = x.; then
  12014. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12015. s/:*\$(srcdir):*/:/
  12016. s/:*\${srcdir}:*/:/
  12017. s/:*@srcdir@:*/:/
  12018. s/^\([^=]*=[ ]*\):*/\1/
  12019. s/:*$//
  12020. s/^[^=]*=[ ]*$//
  12021. }'
  12022. fi
  12023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12024. fi # test -n "$CONFIG_FILES"
  12025. # Set up the scripts for CONFIG_HEADERS section.
  12026. # No need to generate them if there are no CONFIG_HEADERS.
  12027. # This happens for instance with `./config.status Makefile'.
  12028. if test -n "$CONFIG_HEADERS"; then
  12029. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12030. BEGIN {
  12031. _ACEOF
  12032. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12033. # here-document in config.status, that substitutes the proper values into
  12034. # config.h.in to produce config.h.
  12035. # Create a delimiter string that does not exist in confdefs.h, to ease
  12036. # handling of long lines.
  12037. ac_delim='%!_!# '
  12038. for ac_last_try in false false :; do
  12039. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12040. if test -z "$ac_t"; then
  12041. break
  12042. elif $ac_last_try; then
  12043. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12044. else
  12045. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12046. fi
  12047. done
  12048. # For the awk script, D is an array of macro values keyed by name,
  12049. # likewise P contains macro parameters if any. Preserve backslash
  12050. # newline sequences.
  12051. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12052. sed -n '
  12053. s/.\{148\}/&'"$ac_delim"'/g
  12054. t rset
  12055. :rset
  12056. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12057. t def
  12058. d
  12059. :def
  12060. s/\\$//
  12061. t bsnl
  12062. s/["\\]/\\&/g
  12063. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12064. D["\1"]=" \3"/p
  12065. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12066. d
  12067. :bsnl
  12068. s/["\\]/\\&/g
  12069. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12070. D["\1"]=" \3\\\\\\n"\\/p
  12071. t cont
  12072. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12073. t cont
  12074. d
  12075. :cont
  12076. n
  12077. s/.\{148\}/&'"$ac_delim"'/g
  12078. t clear
  12079. :clear
  12080. s/\\$//
  12081. t bsnlc
  12082. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12083. d
  12084. :bsnlc
  12085. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12086. b cont
  12087. ' <confdefs.h | sed '
  12088. s/'"$ac_delim"'/"\\\
  12089. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12090. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12091. for (key in D) D_is_set[key] = 1
  12092. FS = ""
  12093. }
  12094. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12095. line = \$ 0
  12096. split(line, arg, " ")
  12097. if (arg[1] == "#") {
  12098. defundef = arg[2]
  12099. mac1 = arg[3]
  12100. } else {
  12101. defundef = substr(arg[1], 2)
  12102. mac1 = arg[2]
  12103. }
  12104. split(mac1, mac2, "(") #)
  12105. macro = mac2[1]
  12106. prefix = substr(line, 1, index(line, defundef) - 1)
  12107. if (D_is_set[macro]) {
  12108. # Preserve the white space surrounding the "#".
  12109. print prefix "define", macro P[macro] D[macro]
  12110. next
  12111. } else {
  12112. # Replace #undef with comments. This is necessary, for example,
  12113. # in the case of _POSIX_SOURCE, which is predefined and required
  12114. # on some systems where configure will not decide to define it.
  12115. if (defundef == "undef") {
  12116. print "/*", prefix defundef, macro, "*/"
  12117. next
  12118. }
  12119. }
  12120. }
  12121. { print }
  12122. _ACAWK
  12123. _ACEOF
  12124. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12125. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12126. fi # test -n "$CONFIG_HEADERS"
  12127. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  12128. shift
  12129. for ac_tag
  12130. do
  12131. case $ac_tag in
  12132. :[FHLC]) ac_mode=$ac_tag; continue;;
  12133. esac
  12134. case $ac_mode$ac_tag in
  12135. :[FHL]*:*);;
  12136. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12137. :[FH]-) ac_tag=-:-;;
  12138. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12139. esac
  12140. ac_save_IFS=$IFS
  12141. IFS=:
  12142. set x $ac_tag
  12143. IFS=$ac_save_IFS
  12144. shift
  12145. ac_file=$1
  12146. shift
  12147. case $ac_mode in
  12148. :L) ac_source=$1;;
  12149. :[FH])
  12150. ac_file_inputs=
  12151. for ac_f
  12152. do
  12153. case $ac_f in
  12154. -) ac_f="$tmp/stdin";;
  12155. *) # Look for the file first in the build tree, then in the source tree
  12156. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12157. # because $ac_f cannot contain `:'.
  12158. test -f "$ac_f" ||
  12159. case $ac_f in
  12160. [\\/$]*) false;;
  12161. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12162. esac ||
  12163. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12164. esac
  12165. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12166. as_fn_append ac_file_inputs " '$ac_f'"
  12167. done
  12168. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12169. # use $as_me), people would be surprised to read:
  12170. # /* config.h. Generated by config.status. */
  12171. configure_input='Generated from '`
  12172. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12173. `' by configure.'
  12174. if test x"$ac_file" != x-; then
  12175. configure_input="$ac_file. $configure_input"
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12177. $as_echo "$as_me: creating $ac_file" >&6;}
  12178. fi
  12179. # Neutralize special characters interpreted by sed in replacement strings.
  12180. case $configure_input in #(
  12181. *\&* | *\|* | *\\* )
  12182. ac_sed_conf_input=`$as_echo "$configure_input" |
  12183. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12184. *) ac_sed_conf_input=$configure_input;;
  12185. esac
  12186. case $ac_tag in
  12187. *:-:* | *:-) cat >"$tmp/stdin" \
  12188. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12189. esac
  12190. ;;
  12191. esac
  12192. ac_dir=`$as_dirname -- "$ac_file" ||
  12193. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12194. X"$ac_file" : 'X\(//\)[^/]' \| \
  12195. X"$ac_file" : 'X\(//\)$' \| \
  12196. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12197. $as_echo X"$ac_file" |
  12198. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12199. s//\1/
  12200. q
  12201. }
  12202. /^X\(\/\/\)[^/].*/{
  12203. s//\1/
  12204. q
  12205. }
  12206. /^X\(\/\/\)$/{
  12207. s//\1/
  12208. q
  12209. }
  12210. /^X\(\/\).*/{
  12211. s//\1/
  12212. q
  12213. }
  12214. s/.*/./; q'`
  12215. as_dir="$ac_dir"; as_fn_mkdir_p
  12216. ac_builddir=.
  12217. case "$ac_dir" in
  12218. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12219. *)
  12220. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12221. # A ".." for each directory in $ac_dir_suffix.
  12222. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12223. case $ac_top_builddir_sub in
  12224. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12225. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12226. esac ;;
  12227. esac
  12228. ac_abs_top_builddir=$ac_pwd
  12229. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12230. # for backward compatibility:
  12231. ac_top_builddir=$ac_top_build_prefix
  12232. case $srcdir in
  12233. .) # We are building in place.
  12234. ac_srcdir=.
  12235. ac_top_srcdir=$ac_top_builddir_sub
  12236. ac_abs_top_srcdir=$ac_pwd ;;
  12237. [\\/]* | ?:[\\/]* ) # Absolute name.
  12238. ac_srcdir=$srcdir$ac_dir_suffix;
  12239. ac_top_srcdir=$srcdir
  12240. ac_abs_top_srcdir=$srcdir ;;
  12241. *) # Relative name.
  12242. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12243. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12244. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12245. esac
  12246. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12247. case $ac_mode in
  12248. :F)
  12249. #
  12250. # CONFIG_FILE
  12251. #
  12252. case $INSTALL in
  12253. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12254. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12255. esac
  12256. _ACEOF
  12257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12258. # If the template does not know about datarootdir, expand it.
  12259. # FIXME: This hack should be removed a few years after 2.60.
  12260. ac_datarootdir_hack=; ac_datarootdir_seen=
  12261. ac_sed_dataroot='
  12262. /datarootdir/ {
  12263. p
  12264. q
  12265. }
  12266. /@datadir@/p
  12267. /@docdir@/p
  12268. /@infodir@/p
  12269. /@localedir@/p
  12270. /@mandir@/p'
  12271. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12272. *datarootdir*) ac_datarootdir_seen=yes;;
  12273. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12275. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12276. _ACEOF
  12277. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12278. ac_datarootdir_hack='
  12279. s&@datadir@&$datadir&g
  12280. s&@docdir@&$docdir&g
  12281. s&@infodir@&$infodir&g
  12282. s&@localedir@&$localedir&g
  12283. s&@mandir@&$mandir&g
  12284. s&\\\${datarootdir}&$datarootdir&g' ;;
  12285. esac
  12286. _ACEOF
  12287. # Neutralize VPATH when `$srcdir' = `.'.
  12288. # Shell code in configure.ac might set extrasub.
  12289. # FIXME: do we really want to maintain this feature?
  12290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12291. ac_sed_extra="$ac_vpsub
  12292. $extrasub
  12293. _ACEOF
  12294. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12295. :t
  12296. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12297. s|@configure_input@|$ac_sed_conf_input|;t t
  12298. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12299. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12300. s&@srcdir@&$ac_srcdir&;t t
  12301. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12302. s&@top_srcdir@&$ac_top_srcdir&;t t
  12303. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12304. s&@builddir@&$ac_builddir&;t t
  12305. s&@abs_builddir@&$ac_abs_builddir&;t t
  12306. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12307. s&@INSTALL@&$ac_INSTALL&;t t
  12308. $ac_datarootdir_hack
  12309. "
  12310. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12311. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12312. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12313. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12314. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12316. which seems to be undefined. Please make sure it is defined." >&5
  12317. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12318. which seems to be undefined. Please make sure it is defined." >&2;}
  12319. rm -f "$tmp/stdin"
  12320. case $ac_file in
  12321. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12322. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12323. esac \
  12324. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12325. ;;
  12326. :H)
  12327. #
  12328. # CONFIG_HEADER
  12329. #
  12330. if test x"$ac_file" != x-; then
  12331. {
  12332. $as_echo "/* $configure_input */" \
  12333. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12334. } >"$tmp/config.h" \
  12335. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12336. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12338. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12339. else
  12340. rm -f "$ac_file"
  12341. mv "$tmp/config.h" "$ac_file" \
  12342. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12343. fi
  12344. else
  12345. $as_echo "/* $configure_input */" \
  12346. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12347. || as_fn_error "could not create -" "$LINENO" 5
  12348. fi
  12349. ;;
  12350. :L)
  12351. #
  12352. # CONFIG_LINK
  12353. #
  12354. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  12355. :
  12356. else
  12357. # Prefer the file from the source tree if names are identical.
  12358. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  12359. ac_source=$srcdir/$ac_source
  12360. fi
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  12362. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  12363. if test ! -r "$ac_source"; then
  12364. as_fn_error "$ac_source: file not found" "$LINENO" 5
  12365. fi
  12366. rm -f "$ac_file"
  12367. # Try a relative symlink, then a hard link, then a copy.
  12368. case $srcdir in
  12369. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  12370. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  12371. esac
  12372. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  12373. ln "$ac_source" "$ac_file" 2>/dev/null ||
  12374. cp -p "$ac_source" "$ac_file" ||
  12375. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  12376. fi
  12377. ;;
  12378. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12379. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12380. ;;
  12381. esac
  12382. case $ac_file$ac_mode in
  12383. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  12384. "libtool":C)
  12385. # See if we are running on zsh, and set the options which allow our
  12386. # commands through without removal of \ escapes.
  12387. if test -n "${ZSH_VERSION+set}" ; then
  12388. setopt NO_GLOB_SUBST
  12389. fi
  12390. cfgfile="${ofile}T"
  12391. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12392. $RM "$cfgfile"
  12393. cat <<_LT_EOF >> "$cfgfile"
  12394. #! $SHELL
  12395. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12396. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12397. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12398. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12399. #
  12400. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12401. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12402. # Written by Gordon Matzigkeit, 1996
  12403. #
  12404. # This file is part of GNU Libtool.
  12405. #
  12406. # GNU Libtool is free software; you can redistribute it and/or
  12407. # modify it under the terms of the GNU General Public License as
  12408. # published by the Free Software Foundation; either version 2 of
  12409. # the License, or (at your option) any later version.
  12410. #
  12411. # As a special exception to the GNU General Public License,
  12412. # if you distribute this file as part of a program or library that
  12413. # is built using GNU Libtool, you may include this file under the
  12414. # same distribution terms that you use for the rest of that program.
  12415. #
  12416. # GNU Libtool is distributed in the hope that it will be useful,
  12417. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12418. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12419. # GNU General Public License for more details.
  12420. #
  12421. # You should have received a copy of the GNU General Public License
  12422. # along with GNU Libtool; see the file COPYING. If not, a copy
  12423. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12424. # obtained by writing to the Free Software Foundation, Inc.,
  12425. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12426. # The names of the tagged configurations supported by this script.
  12427. available_tags=""
  12428. # ### BEGIN LIBTOOL CONFIG
  12429. # Which release of libtool.m4 was used?
  12430. macro_version=$macro_version
  12431. macro_revision=$macro_revision
  12432. # Whether or not to build shared libraries.
  12433. build_libtool_libs=$enable_shared
  12434. # Whether or not to build static libraries.
  12435. build_old_libs=$enable_static
  12436. # What type of objects to build.
  12437. pic_mode=$pic_mode
  12438. # Whether or not to optimize for fast installation.
  12439. fast_install=$enable_fast_install
  12440. # Shell to use when invoking shell scripts.
  12441. SHELL=$lt_SHELL
  12442. # An echo program that protects backslashes.
  12443. ECHO=$lt_ECHO
  12444. # The host system.
  12445. host_alias=$host_alias
  12446. host=$host
  12447. host_os=$host_os
  12448. # The build system.
  12449. build_alias=$build_alias
  12450. build=$build
  12451. build_os=$build_os
  12452. # A sed program that does not truncate output.
  12453. SED=$lt_SED
  12454. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12455. Xsed="\$SED -e 1s/^X//"
  12456. # A grep program that handles long lines.
  12457. GREP=$lt_GREP
  12458. # An ERE matcher.
  12459. EGREP=$lt_EGREP
  12460. # A literal string matcher.
  12461. FGREP=$lt_FGREP
  12462. # A BSD- or MS-compatible name lister.
  12463. NM=$lt_NM
  12464. # Whether we need soft or hard links.
  12465. LN_S=$lt_LN_S
  12466. # What is the maximum length of a command?
  12467. max_cmd_len=$max_cmd_len
  12468. # Object file suffix (normally "o").
  12469. objext=$ac_objext
  12470. # Executable file suffix (normally "").
  12471. exeext=$exeext
  12472. # whether the shell understands "unset".
  12473. lt_unset=$lt_unset
  12474. # turn spaces into newlines.
  12475. SP2NL=$lt_lt_SP2NL
  12476. # turn newlines into spaces.
  12477. NL2SP=$lt_lt_NL2SP
  12478. # An object symbol dumper.
  12479. OBJDUMP=$lt_OBJDUMP
  12480. # Method to check whether dependent libraries are shared objects.
  12481. deplibs_check_method=$lt_deplibs_check_method
  12482. # Command to use when deplibs_check_method == "file_magic".
  12483. file_magic_cmd=$lt_file_magic_cmd
  12484. # The archiver.
  12485. AR=$lt_AR
  12486. AR_FLAGS=$lt_AR_FLAGS
  12487. # A symbol stripping program.
  12488. STRIP=$lt_STRIP
  12489. # Commands used to install an old-style archive.
  12490. RANLIB=$lt_RANLIB
  12491. old_postinstall_cmds=$lt_old_postinstall_cmds
  12492. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12493. # Whether to use a lock for old archive extraction.
  12494. lock_old_archive_extraction=$lock_old_archive_extraction
  12495. # A C compiler.
  12496. LTCC=$lt_CC
  12497. # LTCC compiler flags.
  12498. LTCFLAGS=$lt_CFLAGS
  12499. # Take the output of nm and produce a listing of raw symbols and C names.
  12500. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12501. # Transform the output of nm in a proper C declaration.
  12502. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12503. # Transform the output of nm in a C name address pair.
  12504. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12505. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12506. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12507. # The name of the directory that contains temporary libtool files.
  12508. objdir=$objdir
  12509. # Used to examine libraries when file_magic_cmd begins with "file".
  12510. MAGIC_CMD=$MAGIC_CMD
  12511. # Must we lock files when doing compilation?
  12512. need_locks=$lt_need_locks
  12513. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12514. DSYMUTIL=$lt_DSYMUTIL
  12515. # Tool to change global to local symbols on Mac OS X.
  12516. NMEDIT=$lt_NMEDIT
  12517. # Tool to manipulate fat objects and archives on Mac OS X.
  12518. LIPO=$lt_LIPO
  12519. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12520. OTOOL=$lt_OTOOL
  12521. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12522. OTOOL64=$lt_OTOOL64
  12523. # Old archive suffix (normally "a").
  12524. libext=$libext
  12525. # Shared library suffix (normally ".so").
  12526. shrext_cmds=$lt_shrext_cmds
  12527. # The commands to extract the exported symbol list from a shared archive.
  12528. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12529. # Variables whose values should be saved in libtool wrapper scripts and
  12530. # restored at link time.
  12531. variables_saved_for_relink=$lt_variables_saved_for_relink
  12532. # Do we need the "lib" prefix for modules?
  12533. need_lib_prefix=$need_lib_prefix
  12534. # Do we need a version for libraries?
  12535. need_version=$need_version
  12536. # Library versioning type.
  12537. version_type=$version_type
  12538. # Shared library runtime path variable.
  12539. runpath_var=$runpath_var
  12540. # Shared library path variable.
  12541. shlibpath_var=$shlibpath_var
  12542. # Is shlibpath searched before the hard-coded library search path?
  12543. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12544. # Format of library name prefix.
  12545. libname_spec=$lt_libname_spec
  12546. # List of archive names. First name is the real one, the rest are links.
  12547. # The last name is the one that the linker finds with -lNAME
  12548. library_names_spec=$lt_library_names_spec
  12549. # The coded name of the library, if different from the real name.
  12550. soname_spec=$lt_soname_spec
  12551. # Permission mode override for installation of shared libraries.
  12552. install_override_mode=$lt_install_override_mode
  12553. # Command to use after installation of a shared archive.
  12554. postinstall_cmds=$lt_postinstall_cmds
  12555. # Command to use after uninstallation of a shared archive.
  12556. postuninstall_cmds=$lt_postuninstall_cmds
  12557. # Commands used to finish a libtool library installation in a directory.
  12558. finish_cmds=$lt_finish_cmds
  12559. # As "finish_cmds", except a single script fragment to be evaled but
  12560. # not shown.
  12561. finish_eval=$lt_finish_eval
  12562. # Whether we should hardcode library paths into libraries.
  12563. hardcode_into_libs=$hardcode_into_libs
  12564. # Compile-time system search path for libraries.
  12565. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12566. # Run-time system search path for libraries.
  12567. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12568. # Whether dlopen is supported.
  12569. dlopen_support=$enable_dlopen
  12570. # Whether dlopen of programs is supported.
  12571. dlopen_self=$enable_dlopen_self
  12572. # Whether dlopen of statically linked programs is supported.
  12573. dlopen_self_static=$enable_dlopen_self_static
  12574. # Commands to strip libraries.
  12575. old_striplib=$lt_old_striplib
  12576. striplib=$lt_striplib
  12577. # The linker used to build libraries.
  12578. LD=$lt_LD
  12579. # How to create reloadable object files.
  12580. reload_flag=$lt_reload_flag
  12581. reload_cmds=$lt_reload_cmds
  12582. # Commands used to build an old-style archive.
  12583. old_archive_cmds=$lt_old_archive_cmds
  12584. # A language specific compiler.
  12585. CC=$lt_compiler
  12586. # Is the compiler the GNU compiler?
  12587. with_gcc=$GCC
  12588. # Compiler flag to turn off builtin functions.
  12589. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12590. # How to pass a linker flag through the compiler.
  12591. wl=$lt_lt_prog_compiler_wl
  12592. # Additional compiler flags for building library objects.
  12593. pic_flag=$lt_lt_prog_compiler_pic
  12594. # Compiler flag to prevent dynamic linking.
  12595. link_static_flag=$lt_lt_prog_compiler_static
  12596. # Does compiler simultaneously support -c and -o options?
  12597. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12598. # Whether or not to add -lc for building shared libraries.
  12599. build_libtool_need_lc=$archive_cmds_need_lc
  12600. # Whether or not to disallow shared libs when runtime libs are static.
  12601. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12602. # Compiler flag to allow reflexive dlopens.
  12603. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12604. # Compiler flag to generate shared objects directly from archives.
  12605. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12606. # Whether the compiler copes with passing no objects directly.
  12607. compiler_needs_object=$lt_compiler_needs_object
  12608. # Create an old-style archive from a shared archive.
  12609. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12610. # Create a temporary old-style archive to link instead of a shared archive.
  12611. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12612. # Commands used to build a shared archive.
  12613. archive_cmds=$lt_archive_cmds
  12614. archive_expsym_cmds=$lt_archive_expsym_cmds
  12615. # Commands used to build a loadable module if different from building
  12616. # a shared archive.
  12617. module_cmds=$lt_module_cmds
  12618. module_expsym_cmds=$lt_module_expsym_cmds
  12619. # Whether we are building with GNU ld or not.
  12620. with_gnu_ld=$lt_with_gnu_ld
  12621. # Flag that allows shared libraries with undefined symbols to be built.
  12622. allow_undefined_flag=$lt_allow_undefined_flag
  12623. # Flag that enforces no undefined symbols.
  12624. no_undefined_flag=$lt_no_undefined_flag
  12625. # Flag to hardcode \$libdir into a binary during linking.
  12626. # This must work even if \$libdir does not exist
  12627. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12628. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12629. # during linking. This must work even if \$libdir does not exist.
  12630. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12631. # Whether we need a single "-rpath" flag with a separated argument.
  12632. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12633. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12634. # DIR into the resulting binary.
  12635. hardcode_direct=$hardcode_direct
  12636. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12637. # DIR into the resulting binary and the resulting library dependency is
  12638. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12639. # library is relocated.
  12640. hardcode_direct_absolute=$hardcode_direct_absolute
  12641. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12642. # into the resulting binary.
  12643. hardcode_minus_L=$hardcode_minus_L
  12644. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12645. # into the resulting binary.
  12646. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12647. # Set to "yes" if building a shared library automatically hardcodes DIR
  12648. # into the library and all subsequent libraries and executables linked
  12649. # against it.
  12650. hardcode_automatic=$hardcode_automatic
  12651. # Set to yes if linker adds runtime paths of dependent libraries
  12652. # to runtime path list.
  12653. inherit_rpath=$inherit_rpath
  12654. # Whether libtool must link a program against all its dependency libraries.
  12655. link_all_deplibs=$link_all_deplibs
  12656. # Fix the shell variable \$srcfile for the compiler.
  12657. fix_srcfile_path=$lt_fix_srcfile_path
  12658. # Set to "yes" if exported symbols are required.
  12659. always_export_symbols=$always_export_symbols
  12660. # The commands to list exported symbols.
  12661. export_symbols_cmds=$lt_export_symbols_cmds
  12662. # Symbols that should not be listed in the preloaded symbols.
  12663. exclude_expsyms=$lt_exclude_expsyms
  12664. # Symbols that must always be exported.
  12665. include_expsyms=$lt_include_expsyms
  12666. # Commands necessary for linking programs (against libraries) with templates.
  12667. prelink_cmds=$lt_prelink_cmds
  12668. # Specify filename containing input files.
  12669. file_list_spec=$lt_file_list_spec
  12670. # How to hardcode a shared library path into an executable.
  12671. hardcode_action=$hardcode_action
  12672. # ### END LIBTOOL CONFIG
  12673. _LT_EOF
  12674. case $host_os in
  12675. aix3*)
  12676. cat <<\_LT_EOF >> "$cfgfile"
  12677. # AIX sometimes has problems with the GCC collect2 program. For some
  12678. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12679. # vanish in a puff of smoke.
  12680. if test "X${COLLECT_NAMES+set}" != Xset; then
  12681. COLLECT_NAMES=
  12682. export COLLECT_NAMES
  12683. fi
  12684. _LT_EOF
  12685. ;;
  12686. esac
  12687. ltmain="$ac_aux_dir/ltmain.sh"
  12688. # We use sed instead of cat because bash on DJGPP gets confused if
  12689. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12690. # text mode, it properly converts lines to CR/LF. This bash problem
  12691. # is reportedly fixed, but why not run on old versions too?
  12692. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12693. || (rm -f "$cfgfile"; exit 1)
  12694. case $xsi_shell in
  12695. yes)
  12696. cat << \_LT_EOF >> "$cfgfile"
  12697. # func_dirname file append nondir_replacement
  12698. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12699. # otherwise set result to NONDIR_REPLACEMENT.
  12700. func_dirname ()
  12701. {
  12702. case ${1} in
  12703. */*) func_dirname_result="${1%/*}${2}" ;;
  12704. * ) func_dirname_result="${3}" ;;
  12705. esac
  12706. }
  12707. # func_basename file
  12708. func_basename ()
  12709. {
  12710. func_basename_result="${1##*/}"
  12711. }
  12712. # func_dirname_and_basename file append nondir_replacement
  12713. # perform func_basename and func_dirname in a single function
  12714. # call:
  12715. # dirname: Compute the dirname of FILE. If nonempty,
  12716. # add APPEND to the result, otherwise set result
  12717. # to NONDIR_REPLACEMENT.
  12718. # value returned in "$func_dirname_result"
  12719. # basename: Compute filename of FILE.
  12720. # value retuned in "$func_basename_result"
  12721. # Implementation must be kept synchronized with func_dirname
  12722. # and func_basename. For efficiency, we do not delegate to
  12723. # those functions but instead duplicate the functionality here.
  12724. func_dirname_and_basename ()
  12725. {
  12726. case ${1} in
  12727. */*) func_dirname_result="${1%/*}${2}" ;;
  12728. * ) func_dirname_result="${3}" ;;
  12729. esac
  12730. func_basename_result="${1##*/}"
  12731. }
  12732. # func_stripname prefix suffix name
  12733. # strip PREFIX and SUFFIX off of NAME.
  12734. # PREFIX and SUFFIX must not contain globbing or regex special
  12735. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12736. # dot (in which case that matches only a dot).
  12737. func_stripname ()
  12738. {
  12739. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12740. # positional parameters, so assign one to ordinary parameter first.
  12741. func_stripname_result=${3}
  12742. func_stripname_result=${func_stripname_result#"${1}"}
  12743. func_stripname_result=${func_stripname_result%"${2}"}
  12744. }
  12745. # func_opt_split
  12746. func_opt_split ()
  12747. {
  12748. func_opt_split_opt=${1%%=*}
  12749. func_opt_split_arg=${1#*=}
  12750. }
  12751. # func_lo2o object
  12752. func_lo2o ()
  12753. {
  12754. case ${1} in
  12755. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12756. *) func_lo2o_result=${1} ;;
  12757. esac
  12758. }
  12759. # func_xform libobj-or-source
  12760. func_xform ()
  12761. {
  12762. func_xform_result=${1%.*}.lo
  12763. }
  12764. # func_arith arithmetic-term...
  12765. func_arith ()
  12766. {
  12767. func_arith_result=$(( $* ))
  12768. }
  12769. # func_len string
  12770. # STRING may not start with a hyphen.
  12771. func_len ()
  12772. {
  12773. func_len_result=${#1}
  12774. }
  12775. _LT_EOF
  12776. ;;
  12777. *) # Bourne compatible functions.
  12778. cat << \_LT_EOF >> "$cfgfile"
  12779. # func_dirname file append nondir_replacement
  12780. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12781. # otherwise set result to NONDIR_REPLACEMENT.
  12782. func_dirname ()
  12783. {
  12784. # Extract subdirectory from the argument.
  12785. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12786. if test "X$func_dirname_result" = "X${1}"; then
  12787. func_dirname_result="${3}"
  12788. else
  12789. func_dirname_result="$func_dirname_result${2}"
  12790. fi
  12791. }
  12792. # func_basename file
  12793. func_basename ()
  12794. {
  12795. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12796. }
  12797. # func_stripname prefix suffix name
  12798. # strip PREFIX and SUFFIX off of NAME.
  12799. # PREFIX and SUFFIX must not contain globbing or regex special
  12800. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12801. # dot (in which case that matches only a dot).
  12802. # func_strip_suffix prefix name
  12803. func_stripname ()
  12804. {
  12805. case ${2} in
  12806. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12807. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12808. esac
  12809. }
  12810. # sed scripts:
  12811. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12812. my_sed_long_arg='1s/^-[^=]*=//'
  12813. # func_opt_split
  12814. func_opt_split ()
  12815. {
  12816. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12817. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12818. }
  12819. # func_lo2o object
  12820. func_lo2o ()
  12821. {
  12822. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12823. }
  12824. # func_xform libobj-or-source
  12825. func_xform ()
  12826. {
  12827. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12828. }
  12829. # func_arith arithmetic-term...
  12830. func_arith ()
  12831. {
  12832. func_arith_result=`expr "$@"`
  12833. }
  12834. # func_len string
  12835. # STRING may not start with a hyphen.
  12836. func_len ()
  12837. {
  12838. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12839. }
  12840. _LT_EOF
  12841. esac
  12842. case $lt_shell_append in
  12843. yes)
  12844. cat << \_LT_EOF >> "$cfgfile"
  12845. # func_append var value
  12846. # Append VALUE to the end of shell variable VAR.
  12847. func_append ()
  12848. {
  12849. eval "$1+=\$2"
  12850. }
  12851. _LT_EOF
  12852. ;;
  12853. *)
  12854. cat << \_LT_EOF >> "$cfgfile"
  12855. # func_append var value
  12856. # Append VALUE to the end of shell variable VAR.
  12857. func_append ()
  12858. {
  12859. eval "$1=\$$1\$2"
  12860. }
  12861. _LT_EOF
  12862. ;;
  12863. esac
  12864. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12865. || (rm -f "$cfgfile"; exit 1)
  12866. mv -f "$cfgfile" "$ofile" ||
  12867. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12868. chmod +x "$ofile"
  12869. ;;
  12870. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  12871. rm -f Makesim1.tmp Makesim2.tmp Makefile
  12872. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  12873. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  12874. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  12875. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  12876. <Makefile.sim >Makefile
  12877. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  12878. ;;
  12879. "stamp-h":C) echo > stamp-h ;;
  12880. esac
  12881. done # for ac_tag
  12882. as_fn_exit 0
  12883. _ACEOF
  12884. ac_clean_files=$ac_clean_files_save
  12885. test $ac_write_fail = 0 ||
  12886. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12887. # configure is writing to config.log, and then calls config.status.
  12888. # config.status does its own redirection, appending to config.log.
  12889. # Unfortunately, on DOS this fails, as config.log is still kept open
  12890. # by configure, so config.status won't be able to write to it; its
  12891. # output is simply discarded. So we exec the FD to /dev/null,
  12892. # effectively closing config.log, so it can be properly (re)opened and
  12893. # appended to by config.status. When coming back to configure, we
  12894. # need to make the FD available again.
  12895. if test "$no_create" != yes; then
  12896. ac_cs_success=:
  12897. ac_config_status_args=
  12898. test "$silent" = yes &&
  12899. ac_config_status_args="$ac_config_status_args --quiet"
  12900. exec 5>/dev/null
  12901. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12902. exec 5>>config.log
  12903. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12904. # would make configure fail if this is the last instruction.
  12905. $ac_cs_success || as_fn_exit $?
  12906. fi
  12907. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12909. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12910. fi