configure 432 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168
  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. '
  714. ac_precious_vars='build_alias
  715. host_alias
  716. target_alias
  717. CC
  718. CFLAGS
  719. LDFLAGS
  720. LIBS
  721. CPPFLAGS
  722. CPP'
  723. # Initialize some variables set by options.
  724. ac_init_help=
  725. ac_init_version=false
  726. ac_unrecognized_opts=
  727. ac_unrecognized_sep=
  728. # The variables have the same names as the options, with
  729. # dashes changed to underlines.
  730. cache_file=/dev/null
  731. exec_prefix=NONE
  732. no_create=
  733. no_recursion=
  734. prefix=NONE
  735. program_prefix=NONE
  736. program_suffix=NONE
  737. program_transform_name=s,x,x,
  738. silent=
  739. site=
  740. srcdir=
  741. verbose=
  742. x_includes=NONE
  743. x_libraries=NONE
  744. # Installation directory options.
  745. # These are left unexpanded so users can "make install exec_prefix=/foo"
  746. # and all the variables that are supposed to be based on exec_prefix
  747. # by default will actually change.
  748. # Use braces instead of parens because sh, perl, etc. also accept them.
  749. # (The list follows the same order as the GNU Coding Standards.)
  750. bindir='${exec_prefix}/bin'
  751. sbindir='${exec_prefix}/sbin'
  752. libexecdir='${exec_prefix}/libexec'
  753. datarootdir='${prefix}/share'
  754. datadir='${datarootdir}'
  755. sysconfdir='${prefix}/etc'
  756. sharedstatedir='${prefix}/com'
  757. localstatedir='${prefix}/var'
  758. includedir='${prefix}/include'
  759. oldincludedir='/usr/include'
  760. docdir='${datarootdir}/doc/${PACKAGE}'
  761. infodir='${datarootdir}/info'
  762. htmldir='${docdir}'
  763. dvidir='${docdir}'
  764. pdfdir='${docdir}'
  765. psdir='${docdir}'
  766. libdir='${exec_prefix}/lib'
  767. localedir='${datarootdir}/locale'
  768. mandir='${datarootdir}/man'
  769. ac_prev=
  770. ac_dashdash=
  771. for ac_option
  772. do
  773. # If the previous option needs an argument, assign it.
  774. if test -n "$ac_prev"; then
  775. eval $ac_prev=\$ac_option
  776. ac_prev=
  777. continue
  778. fi
  779. case $ac_option in
  780. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  781. *) ac_optarg=yes ;;
  782. esac
  783. # Accept the important Cygnus configure options, so we can diagnose typos.
  784. case $ac_dashdash$ac_option in
  785. --)
  786. ac_dashdash=yes ;;
  787. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  788. ac_prev=bindir ;;
  789. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  790. bindir=$ac_optarg ;;
  791. -build | --build | --buil | --bui | --bu)
  792. ac_prev=build_alias ;;
  793. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  794. build_alias=$ac_optarg ;;
  795. -cache-file | --cache-file | --cache-fil | --cache-fi \
  796. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  797. ac_prev=cache_file ;;
  798. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  799. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  800. cache_file=$ac_optarg ;;
  801. --config-cache | -C)
  802. cache_file=config.cache ;;
  803. -datadir | --datadir | --datadi | --datad)
  804. ac_prev=datadir ;;
  805. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  806. datadir=$ac_optarg ;;
  807. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  808. | --dataroo | --dataro | --datar)
  809. ac_prev=datarootdir ;;
  810. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  811. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  812. datarootdir=$ac_optarg ;;
  813. -disable-* | --disable-*)
  814. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  815. # Reject names that are not valid shell variable names.
  816. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  817. as_fn_error "invalid feature name: $ac_useropt"
  818. ac_useropt_orig=$ac_useropt
  819. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  820. case $ac_user_opts in
  821. *"
  822. "enable_$ac_useropt"
  823. "*) ;;
  824. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  825. ac_unrecognized_sep=', ';;
  826. esac
  827. eval enable_$ac_useropt=no ;;
  828. -docdir | --docdir | --docdi | --doc | --do)
  829. ac_prev=docdir ;;
  830. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  831. docdir=$ac_optarg ;;
  832. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  833. ac_prev=dvidir ;;
  834. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  835. dvidir=$ac_optarg ;;
  836. -enable-* | --enable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=\$ac_optarg ;;
  851. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  852. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  853. | --exec | --exe | --ex)
  854. ac_prev=exec_prefix ;;
  855. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  856. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  857. | --exec=* | --exe=* | --ex=*)
  858. exec_prefix=$ac_optarg ;;
  859. -gas | --gas | --ga | --g)
  860. # Obsolete; use --with-gas.
  861. with_gas=yes ;;
  862. -help | --help | --hel | --he | -h)
  863. ac_init_help=long ;;
  864. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  865. ac_init_help=recursive ;;
  866. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  867. ac_init_help=short ;;
  868. -host | --host | --hos | --ho)
  869. ac_prev=host_alias ;;
  870. -host=* | --host=* | --hos=* | --ho=*)
  871. host_alias=$ac_optarg ;;
  872. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  873. ac_prev=htmldir ;;
  874. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  875. | --ht=*)
  876. htmldir=$ac_optarg ;;
  877. -includedir | --includedir | --includedi | --included | --include \
  878. | --includ | --inclu | --incl | --inc)
  879. ac_prev=includedir ;;
  880. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  881. | --includ=* | --inclu=* | --incl=* | --inc=*)
  882. includedir=$ac_optarg ;;
  883. -infodir | --infodir | --infodi | --infod | --info | --inf)
  884. ac_prev=infodir ;;
  885. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  886. infodir=$ac_optarg ;;
  887. -libdir | --libdir | --libdi | --libd)
  888. ac_prev=libdir ;;
  889. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  890. libdir=$ac_optarg ;;
  891. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  892. | --libexe | --libex | --libe)
  893. ac_prev=libexecdir ;;
  894. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  895. | --libexe=* | --libex=* | --libe=*)
  896. libexecdir=$ac_optarg ;;
  897. -localedir | --localedir | --localedi | --localed | --locale)
  898. ac_prev=localedir ;;
  899. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  900. localedir=$ac_optarg ;;
  901. -localstatedir | --localstatedir | --localstatedi | --localstated \
  902. | --localstate | --localstat | --localsta | --localst | --locals)
  903. ac_prev=localstatedir ;;
  904. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  905. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  906. localstatedir=$ac_optarg ;;
  907. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  908. ac_prev=mandir ;;
  909. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  910. mandir=$ac_optarg ;;
  911. -nfp | --nfp | --nf)
  912. # Obsolete; use --without-fp.
  913. with_fp=no ;;
  914. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  915. | --no-cr | --no-c | -n)
  916. no_create=yes ;;
  917. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  918. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  919. no_recursion=yes ;;
  920. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  921. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  922. | --oldin | --oldi | --old | --ol | --o)
  923. ac_prev=oldincludedir ;;
  924. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  925. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  926. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  927. oldincludedir=$ac_optarg ;;
  928. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  929. ac_prev=prefix ;;
  930. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  931. prefix=$ac_optarg ;;
  932. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  933. | --program-pre | --program-pr | --program-p)
  934. ac_prev=program_prefix ;;
  935. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  936. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  937. program_prefix=$ac_optarg ;;
  938. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  939. | --program-suf | --program-su | --program-s)
  940. ac_prev=program_suffix ;;
  941. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  942. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  943. program_suffix=$ac_optarg ;;
  944. -program-transform-name | --program-transform-name \
  945. | --program-transform-nam | --program-transform-na \
  946. | --program-transform-n | --program-transform- \
  947. | --program-transform | --program-transfor \
  948. | --program-transfo | --program-transf \
  949. | --program-trans | --program-tran \
  950. | --progr-tra | --program-tr | --program-t)
  951. ac_prev=program_transform_name ;;
  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. program_transform_name=$ac_optarg ;;
  960. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  961. ac_prev=pdfdir ;;
  962. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  963. pdfdir=$ac_optarg ;;
  964. -psdir | --psdir | --psdi | --psd | --ps)
  965. ac_prev=psdir ;;
  966. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  967. psdir=$ac_optarg ;;
  968. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  969. | -silent | --silent | --silen | --sile | --sil)
  970. silent=yes ;;
  971. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  972. ac_prev=sbindir ;;
  973. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  974. | --sbi=* | --sb=*)
  975. sbindir=$ac_optarg ;;
  976. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  977. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  978. | --sharedst | --shareds | --shared | --share | --shar \
  979. | --sha | --sh)
  980. ac_prev=sharedstatedir ;;
  981. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  982. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  983. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  984. | --sha=* | --sh=*)
  985. sharedstatedir=$ac_optarg ;;
  986. -site | --site | --sit)
  987. ac_prev=site ;;
  988. -site=* | --site=* | --sit=*)
  989. site=$ac_optarg ;;
  990. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  991. ac_prev=srcdir ;;
  992. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  993. srcdir=$ac_optarg ;;
  994. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  995. | --syscon | --sysco | --sysc | --sys | --sy)
  996. ac_prev=sysconfdir ;;
  997. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  998. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  999. sysconfdir=$ac_optarg ;;
  1000. -target | --target | --targe | --targ | --tar | --ta | --t)
  1001. ac_prev=target_alias ;;
  1002. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1003. target_alias=$ac_optarg ;;
  1004. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1005. verbose=yes ;;
  1006. -version | --version | --versio | --versi | --vers | -V)
  1007. ac_init_version=: ;;
  1008. -with-* | --with-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error "invalid package name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "with_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval with_$ac_useropt=\$ac_optarg ;;
  1023. -without-* | --without-*)
  1024. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1027. as_fn_error "invalid package name: $ac_useropt"
  1028. ac_useropt_orig=$ac_useropt
  1029. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1030. case $ac_user_opts in
  1031. *"
  1032. "with_$ac_useropt"
  1033. "*) ;;
  1034. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1035. ac_unrecognized_sep=', ';;
  1036. esac
  1037. eval with_$ac_useropt=no ;;
  1038. --x)
  1039. # Obsolete; use --with-x.
  1040. with_x=yes ;;
  1041. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1042. | --x-incl | --x-inc | --x-in | --x-i)
  1043. ac_prev=x_includes ;;
  1044. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1045. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1046. x_includes=$ac_optarg ;;
  1047. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1048. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1049. ac_prev=x_libraries ;;
  1050. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1051. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1052. x_libraries=$ac_optarg ;;
  1053. -*) as_fn_error "unrecognized option: \`$ac_option'
  1054. Try \`$0 --help' for more information."
  1055. ;;
  1056. *=*)
  1057. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1058. # Reject names that are not valid shell variable names.
  1059. case $ac_envvar in #(
  1060. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1061. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1062. esac
  1063. eval $ac_envvar=\$ac_optarg
  1064. export $ac_envvar ;;
  1065. *)
  1066. # FIXME: should be removed in autoconf 3.0.
  1067. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1068. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1069. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1070. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1071. ;;
  1072. esac
  1073. done
  1074. if test -n "$ac_prev"; then
  1075. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1076. as_fn_error "missing argument to $ac_option"
  1077. fi
  1078. if test -n "$ac_unrecognized_opts"; then
  1079. case $enable_option_checking in
  1080. no) ;;
  1081. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1082. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1083. esac
  1084. fi
  1085. # Check all directory arguments for consistency.
  1086. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1087. datadir sysconfdir sharedstatedir localstatedir includedir \
  1088. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1089. libdir localedir mandir
  1090. do
  1091. eval ac_val=\$$ac_var
  1092. # Remove trailing slashes.
  1093. case $ac_val in
  1094. */ )
  1095. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1096. eval $ac_var=\$ac_val;;
  1097. esac
  1098. # Be sure to have absolute directory names.
  1099. case $ac_val in
  1100. [\\/$]* | ?:[\\/]* ) continue;;
  1101. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1102. esac
  1103. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1104. done
  1105. # There might be people who depend on the old broken behavior: `$host'
  1106. # used to hold the argument of --host etc.
  1107. # FIXME: To remove some day.
  1108. build=$build_alias
  1109. host=$host_alias
  1110. target=$target_alias
  1111. # FIXME: To remove some day.
  1112. if test "x$host_alias" != x; then
  1113. if test "x$build_alias" = x; then
  1114. cross_compiling=maybe
  1115. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1116. If a cross compiler is detected then cross compile mode will be used." >&2
  1117. elif test "x$build_alias" != "x$host_alias"; then
  1118. cross_compiling=yes
  1119. fi
  1120. fi
  1121. ac_tool_prefix=
  1122. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1123. test "$silent" = yes && exec 6>/dev/null
  1124. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1125. ac_ls_di=`ls -di .` &&
  1126. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1127. as_fn_error "working directory cannot be determined"
  1128. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1129. as_fn_error "pwd does not report name of working directory"
  1130. # Find the source files, if location was not specified.
  1131. if test -z "$srcdir"; then
  1132. ac_srcdir_defaulted=yes
  1133. # Try the directory containing this script, then the parent directory.
  1134. ac_confdir=`$as_dirname -- "$as_myself" ||
  1135. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1136. X"$as_myself" : 'X\(//\)[^/]' \| \
  1137. X"$as_myself" : 'X\(//\)$' \| \
  1138. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1139. $as_echo X"$as_myself" |
  1140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)[^/].*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\/\)$/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\).*/{
  1153. s//\1/
  1154. q
  1155. }
  1156. s/.*/./; q'`
  1157. srcdir=$ac_confdir
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. srcdir=..
  1160. fi
  1161. else
  1162. ac_srcdir_defaulted=no
  1163. fi
  1164. if test ! -r "$srcdir/$ac_unique_file"; then
  1165. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1166. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1167. fi
  1168. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1169. ac_abs_confdir=`(
  1170. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1171. pwd)`
  1172. # When building in place, set srcdir=.
  1173. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1174. srcdir=.
  1175. fi
  1176. # Remove unnecessary trailing slashes from srcdir.
  1177. # Double slashes in file names in object file debugging info
  1178. # mess up M-x gdb in Emacs.
  1179. case $srcdir in
  1180. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1181. esac
  1182. for ac_var in $ac_precious_vars; do
  1183. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_env_${ac_var}_value=\$${ac_var}
  1185. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1186. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1187. done
  1188. #
  1189. # Report the --help message.
  1190. #
  1191. if test "$ac_init_help" = "long"; then
  1192. # Omit some internal or obsolete options to make the list less imposing.
  1193. # This message is too long to be a string in the A/UX 3.1 sh.
  1194. cat <<_ACEOF
  1195. \`configure' configures this package to adapt to many kinds of systems.
  1196. Usage: $0 [OPTION]... [VAR=VALUE]...
  1197. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1198. VAR=VALUE. See below for descriptions of some of the useful variables.
  1199. Defaults for the options are specified in brackets.
  1200. Configuration:
  1201. -h, --help display this help and exit
  1202. --help=short display options specific to this package
  1203. --help=recursive display the short help of all the included packages
  1204. -V, --version display version information and exit
  1205. -q, --quiet, --silent do not print \`checking...' messages
  1206. --cache-file=FILE cache test results in FILE [disabled]
  1207. -C, --config-cache alias for \`--cache-file=config.cache'
  1208. -n, --no-create do not create output files
  1209. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1210. Installation directories:
  1211. --prefix=PREFIX install architecture-independent files in PREFIX
  1212. [$ac_default_prefix]
  1213. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1214. [PREFIX]
  1215. By default, \`make install' will install all the files in
  1216. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1217. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1218. for instance \`--prefix=\$HOME'.
  1219. For better control, use the options below.
  1220. Fine tuning of the installation directories:
  1221. --bindir=DIR user executables [EPREFIX/bin]
  1222. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1223. --libexecdir=DIR program executables [EPREFIX/libexec]
  1224. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1225. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1226. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1227. --libdir=DIR object code libraries [EPREFIX/lib]
  1228. --includedir=DIR C header files [PREFIX/include]
  1229. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1230. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1231. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1232. --infodir=DIR info documentation [DATAROOTDIR/info]
  1233. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1234. --mandir=DIR man documentation [DATAROOTDIR/man]
  1235. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1236. --htmldir=DIR html documentation [DOCDIR]
  1237. --dvidir=DIR dvi documentation [DOCDIR]
  1238. --pdfdir=DIR pdf documentation [DOCDIR]
  1239. --psdir=DIR ps documentation [DOCDIR]
  1240. _ACEOF
  1241. cat <<\_ACEOF
  1242. Program names:
  1243. --program-prefix=PREFIX prepend PREFIX to installed program names
  1244. --program-suffix=SUFFIX append SUFFIX to installed program names
  1245. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1246. System types:
  1247. --build=BUILD configure for building on BUILD [guessed]
  1248. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1249. --target=TARGET configure for building compilers for TARGET [HOST]
  1250. _ACEOF
  1251. fi
  1252. if test -n "$ac_init_help"; then
  1253. cat <<\_ACEOF
  1254. Optional Features:
  1255. --disable-option-checking ignore unrecognized --enable/--with options
  1256. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1257. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1258. --enable-plugins Enable support for plugins
  1259. --enable-shared[=PKGS] build shared libraries [default=yes]
  1260. --enable-static[=PKGS] build static libraries [default=yes]
  1261. --enable-fast-install[=PKGS]
  1262. optimize for fast installation [default=yes]
  1263. --disable-libtool-lock avoid locking (might break parallel builds)
  1264. --enable-maintainer-mode enable make rules and dependencies not useful
  1265. (and sometimes confusing) to the casual installer
  1266. --enable-sim-bswap Use Host specific BSWAP instruction
  1267. --enable-sim-cflags=opts
  1268. Extra CFLAGS for use in building simulator
  1269. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1270. itself)
  1271. --enable-sim-stdio Specify whether to use stdio for console
  1272. input/output
  1273. --enable-sim-trace=opts Enable tracing of simulated programs
  1274. --enable-sim-profile=opts
  1275. Enable profiling flags
  1276. Optional Packages:
  1277. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1278. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1279. --with-system-zlib use installed libz
  1280. --with-pic try to use only PIC/non-PIC objects [default=use
  1281. both]
  1282. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1283. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1284. --with-bugurl=URL Direct users to URL to report a bug
  1285. Some influential environment variables:
  1286. CC C compiler command
  1287. CFLAGS C compiler flags
  1288. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1289. nonstandard directory <lib dir>
  1290. LIBS libraries to pass to the linker, e.g. -l<library>
  1291. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1292. you have headers in a nonstandard directory <include dir>
  1293. CPP C preprocessor
  1294. Use these variables to override the choices made by `configure' or to help
  1295. it to find libraries and programs with nonstandard names/locations.
  1296. Report bugs to the package provider.
  1297. _ACEOF
  1298. ac_status=$?
  1299. fi
  1300. if test "$ac_init_help" = "recursive"; then
  1301. # If there are subdirs, report their specific --help.
  1302. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1303. test -d "$ac_dir" ||
  1304. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1305. continue
  1306. ac_builddir=.
  1307. case "$ac_dir" in
  1308. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1309. *)
  1310. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1311. # A ".." for each directory in $ac_dir_suffix.
  1312. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1313. case $ac_top_builddir_sub in
  1314. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1315. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1316. esac ;;
  1317. esac
  1318. ac_abs_top_builddir=$ac_pwd
  1319. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1320. # for backward compatibility:
  1321. ac_top_builddir=$ac_top_build_prefix
  1322. case $srcdir in
  1323. .) # We are building in place.
  1324. ac_srcdir=.
  1325. ac_top_srcdir=$ac_top_builddir_sub
  1326. ac_abs_top_srcdir=$ac_pwd ;;
  1327. [\\/]* | ?:[\\/]* ) # Absolute name.
  1328. ac_srcdir=$srcdir$ac_dir_suffix;
  1329. ac_top_srcdir=$srcdir
  1330. ac_abs_top_srcdir=$srcdir ;;
  1331. *) # Relative name.
  1332. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1333. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1334. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1335. esac
  1336. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1337. cd "$ac_dir" || { ac_status=$?; continue; }
  1338. # Check for guested configure.
  1339. if test -f "$ac_srcdir/configure.gnu"; then
  1340. echo &&
  1341. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1342. elif test -f "$ac_srcdir/configure"; then
  1343. echo &&
  1344. $SHELL "$ac_srcdir/configure" --help=recursive
  1345. else
  1346. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1347. fi || ac_status=$?
  1348. cd "$ac_pwd" || { ac_status=$?; break; }
  1349. done
  1350. fi
  1351. test -n "$ac_init_help" && exit $ac_status
  1352. if $ac_init_version; then
  1353. cat <<\_ACEOF
  1354. configure
  1355. generated by GNU Autoconf 2.64
  1356. Copyright (C) 2009 Free Software Foundation, Inc.
  1357. This configure script is free software; the Free Software Foundation
  1358. gives unlimited permission to copy, distribute and modify it.
  1359. _ACEOF
  1360. exit
  1361. fi
  1362. ## ------------------------ ##
  1363. ## Autoconf initialization. ##
  1364. ## ------------------------ ##
  1365. # ac_fn_c_try_compile LINENO
  1366. # --------------------------
  1367. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1368. ac_fn_c_try_compile ()
  1369. {
  1370. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1371. rm -f conftest.$ac_objext
  1372. if { { ac_try="$ac_compile"
  1373. case "(($ac_try" in
  1374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1375. *) ac_try_echo=$ac_try;;
  1376. esac
  1377. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1378. $as_echo "$ac_try_echo"; } >&5
  1379. (eval "$ac_compile") 2>conftest.err
  1380. ac_status=$?
  1381. if test -s conftest.err; then
  1382. grep -v '^ *+' conftest.err >conftest.er1
  1383. cat conftest.er1 >&5
  1384. mv -f conftest.er1 conftest.err
  1385. fi
  1386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1387. test $ac_status = 0; } && {
  1388. test -z "$ac_c_werror_flag" ||
  1389. test ! -s conftest.err
  1390. } && test -s conftest.$ac_objext; then :
  1391. ac_retval=0
  1392. else
  1393. $as_echo "$as_me: failed program was:" >&5
  1394. sed 's/^/| /' conftest.$ac_ext >&5
  1395. ac_retval=1
  1396. fi
  1397. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1398. return $ac_retval
  1399. } # ac_fn_c_try_compile
  1400. # ac_fn_c_try_cpp LINENO
  1401. # ----------------------
  1402. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1403. ac_fn_c_try_cpp ()
  1404. {
  1405. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1406. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1407. case "(($ac_try" in
  1408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1409. *) ac_try_echo=$ac_try;;
  1410. esac
  1411. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1412. $as_echo "$ac_try_echo"; } >&5
  1413. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1414. ac_status=$?
  1415. if test -s conftest.err; then
  1416. grep -v '^ *+' conftest.err >conftest.er1
  1417. cat conftest.er1 >&5
  1418. mv -f conftest.er1 conftest.err
  1419. fi
  1420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1421. test $ac_status = 0; } >/dev/null && {
  1422. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1423. test ! -s conftest.err
  1424. }; then :
  1425. ac_retval=0
  1426. else
  1427. $as_echo "$as_me: failed program was:" >&5
  1428. sed 's/^/| /' conftest.$ac_ext >&5
  1429. ac_retval=1
  1430. fi
  1431. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1432. return $ac_retval
  1433. } # ac_fn_c_try_cpp
  1434. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1435. # -------------------------------------------------------
  1436. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1437. # the include files in INCLUDES and setting the cache variable VAR
  1438. # accordingly.
  1439. ac_fn_c_check_header_mongrel ()
  1440. {
  1441. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1442. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1444. $as_echo_n "checking for $2... " >&6; }
  1445. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1446. $as_echo_n "(cached) " >&6
  1447. fi
  1448. eval ac_res=\$$3
  1449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1450. $as_echo "$ac_res" >&6; }
  1451. else
  1452. # Is the header compilable?
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1454. $as_echo_n "checking $2 usability... " >&6; }
  1455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1456. /* end confdefs.h. */
  1457. $4
  1458. #include <$2>
  1459. _ACEOF
  1460. if ac_fn_c_try_compile "$LINENO"; then :
  1461. ac_header_compiler=yes
  1462. else
  1463. ac_header_compiler=no
  1464. fi
  1465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1467. $as_echo "$ac_header_compiler" >&6; }
  1468. # Is the header present?
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1470. $as_echo_n "checking $2 presence... " >&6; }
  1471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end confdefs.h. */
  1473. #include <$2>
  1474. _ACEOF
  1475. if ac_fn_c_try_cpp "$LINENO"; then :
  1476. ac_header_preproc=yes
  1477. else
  1478. ac_header_preproc=no
  1479. fi
  1480. rm -f conftest.err conftest.$ac_ext
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1482. $as_echo "$ac_header_preproc" >&6; }
  1483. # So? What about this header?
  1484. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1485. yes:no: )
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1487. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1489. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1490. ;;
  1491. no:yes:* )
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1493. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1495. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1497. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1499. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1501. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1502. ;;
  1503. esac
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1505. $as_echo_n "checking for $2... " >&6; }
  1506. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1507. $as_echo_n "(cached) " >&6
  1508. else
  1509. eval "$3=\$ac_header_compiler"
  1510. fi
  1511. eval ac_res=\$$3
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1513. $as_echo "$ac_res" >&6; }
  1514. fi
  1515. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1516. } # ac_fn_c_check_header_mongrel
  1517. # ac_fn_c_try_run LINENO
  1518. # ----------------------
  1519. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1520. # that executables *can* be run.
  1521. ac_fn_c_try_run ()
  1522. {
  1523. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1524. if { { ac_try="$ac_link"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_link") 2>&5
  1532. ac_status=$?
  1533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1534. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1535. { { case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_try") 2>&5
  1542. ac_status=$?
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; }; }; then :
  1545. ac_retval=0
  1546. else
  1547. $as_echo "$as_me: program exited with status $ac_status" >&5
  1548. $as_echo "$as_me: failed program was:" >&5
  1549. sed 's/^/| /' conftest.$ac_ext >&5
  1550. ac_retval=$ac_status
  1551. fi
  1552. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1553. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1554. return $ac_retval
  1555. } # ac_fn_c_try_run
  1556. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1557. # -------------------------------------------------------
  1558. # Tests whether HEADER exists and can be compiled using the include files in
  1559. # INCLUDES, setting the cache variable VAR accordingly.
  1560. ac_fn_c_check_header_compile ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1564. $as_echo_n "checking for $2... " >&6; }
  1565. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1566. $as_echo_n "(cached) " >&6
  1567. else
  1568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1569. /* end confdefs.h. */
  1570. $4
  1571. #include <$2>
  1572. _ACEOF
  1573. if ac_fn_c_try_compile "$LINENO"; then :
  1574. eval "$3=yes"
  1575. else
  1576. eval "$3=no"
  1577. fi
  1578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1579. fi
  1580. eval ac_res=\$$3
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1582. $as_echo "$ac_res" >&6; }
  1583. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1584. } # ac_fn_c_check_header_compile
  1585. # ac_fn_c_try_link LINENO
  1586. # -----------------------
  1587. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1588. ac_fn_c_try_link ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. rm -f conftest.$ac_objext conftest$ac_exeext
  1592. if { { ac_try="$ac_link"
  1593. case "(($ac_try" in
  1594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1595. *) ac_try_echo=$ac_try;;
  1596. esac
  1597. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1598. $as_echo "$ac_try_echo"; } >&5
  1599. (eval "$ac_link") 2>conftest.err
  1600. ac_status=$?
  1601. if test -s conftest.err; then
  1602. grep -v '^ *+' conftest.err >conftest.er1
  1603. cat conftest.er1 >&5
  1604. mv -f conftest.er1 conftest.err
  1605. fi
  1606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1607. test $ac_status = 0; } && {
  1608. test -z "$ac_c_werror_flag" ||
  1609. test ! -s conftest.err
  1610. } && test -s conftest$ac_exeext && {
  1611. test "$cross_compiling" = yes ||
  1612. $as_test_x conftest$ac_exeext
  1613. }; then :
  1614. ac_retval=0
  1615. else
  1616. $as_echo "$as_me: failed program was:" >&5
  1617. sed 's/^/| /' conftest.$ac_ext >&5
  1618. ac_retval=1
  1619. fi
  1620. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1621. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1622. # interfere with the next link command; also delete a directory that is
  1623. # left behind by Apple's compiler. We do this before executing the actions.
  1624. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1625. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1626. return $ac_retval
  1627. } # ac_fn_c_try_link
  1628. # ac_fn_c_check_func LINENO FUNC VAR
  1629. # ----------------------------------
  1630. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1631. ac_fn_c_check_func ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1635. $as_echo_n "checking for $2... " >&6; }
  1636. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1637. $as_echo_n "(cached) " >&6
  1638. else
  1639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1640. /* end confdefs.h. */
  1641. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1642. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1643. #define $2 innocuous_$2
  1644. /* System header to define __stub macros and hopefully few prototypes,
  1645. which can conflict with char $2 (); below.
  1646. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1647. <limits.h> exists even on freestanding compilers. */
  1648. #ifdef __STDC__
  1649. # include <limits.h>
  1650. #else
  1651. # include <assert.h>
  1652. #endif
  1653. #undef $2
  1654. /* Override any GCC internal prototype to avoid an error.
  1655. Use char because int might match the return type of a GCC
  1656. builtin and then its argument prototype would still apply. */
  1657. #ifdef __cplusplus
  1658. extern "C"
  1659. #endif
  1660. char $2 ();
  1661. /* The GNU C library defines this for functions which it implements
  1662. to always fail with ENOSYS. Some functions are actually named
  1663. something starting with __ and the normal name is an alias. */
  1664. #if defined __stub_$2 || defined __stub___$2
  1665. choke me
  1666. #endif
  1667. int
  1668. main ()
  1669. {
  1670. return $2 ();
  1671. ;
  1672. return 0;
  1673. }
  1674. _ACEOF
  1675. if ac_fn_c_try_link "$LINENO"; then :
  1676. eval "$3=yes"
  1677. else
  1678. eval "$3=no"
  1679. fi
  1680. rm -f core conftest.err conftest.$ac_objext \
  1681. conftest$ac_exeext conftest.$ac_ext
  1682. fi
  1683. eval ac_res=\$$3
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1685. $as_echo "$ac_res" >&6; }
  1686. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1687. } # ac_fn_c_check_func
  1688. cat >config.log <<_ACEOF
  1689. This file contains any messages produced by compilers while
  1690. running configure, to aid debugging if configure makes a mistake.
  1691. It was created by $as_me, which was
  1692. generated by GNU Autoconf 2.64. Invocation command line was
  1693. $ $0 $@
  1694. _ACEOF
  1695. exec 5>>config.log
  1696. {
  1697. cat <<_ASUNAME
  1698. ## --------- ##
  1699. ## Platform. ##
  1700. ## --------- ##
  1701. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1702. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1703. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1704. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1705. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1706. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1707. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1708. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1709. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1710. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1711. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1712. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1713. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1714. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1715. _ASUNAME
  1716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1717. for as_dir in $PATH
  1718. do
  1719. IFS=$as_save_IFS
  1720. test -z "$as_dir" && as_dir=.
  1721. $as_echo "PATH: $as_dir"
  1722. done
  1723. IFS=$as_save_IFS
  1724. } >&5
  1725. cat >&5 <<_ACEOF
  1726. ## ----------- ##
  1727. ## Core tests. ##
  1728. ## ----------- ##
  1729. _ACEOF
  1730. # Keep a trace of the command line.
  1731. # Strip out --no-create and --no-recursion so they do not pile up.
  1732. # Strip out --silent because we don't want to record it for future runs.
  1733. # Also quote any args containing shell meta-characters.
  1734. # Make two passes to allow for proper duplicate-argument suppression.
  1735. ac_configure_args=
  1736. ac_configure_args0=
  1737. ac_configure_args1=
  1738. ac_must_keep_next=false
  1739. for ac_pass in 1 2
  1740. do
  1741. for ac_arg
  1742. do
  1743. case $ac_arg in
  1744. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1745. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1746. | -silent | --silent | --silen | --sile | --sil)
  1747. continue ;;
  1748. *\'*)
  1749. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1750. esac
  1751. case $ac_pass in
  1752. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1753. 2)
  1754. as_fn_append ac_configure_args1 " '$ac_arg'"
  1755. if test $ac_must_keep_next = true; then
  1756. ac_must_keep_next=false # Got value, back to normal.
  1757. else
  1758. case $ac_arg in
  1759. *=* | --config-cache | -C | -disable-* | --disable-* \
  1760. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1761. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1762. | -with-* | --with-* | -without-* | --without-* | --x)
  1763. case "$ac_configure_args0 " in
  1764. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1765. esac
  1766. ;;
  1767. -* ) ac_must_keep_next=true ;;
  1768. esac
  1769. fi
  1770. as_fn_append ac_configure_args " '$ac_arg'"
  1771. ;;
  1772. esac
  1773. done
  1774. done
  1775. { ac_configure_args0=; unset ac_configure_args0;}
  1776. { ac_configure_args1=; unset ac_configure_args1;}
  1777. # When interrupted or exit'd, cleanup temporary files, and complete
  1778. # config.log. We remove comments because anyway the quotes in there
  1779. # would cause problems or look ugly.
  1780. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1781. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1782. trap 'exit_status=$?
  1783. # Save into config.log some information that might help in debugging.
  1784. {
  1785. echo
  1786. cat <<\_ASBOX
  1787. ## ---------------- ##
  1788. ## Cache variables. ##
  1789. ## ---------------- ##
  1790. _ASBOX
  1791. echo
  1792. # The following way of writing the cache mishandles newlines in values,
  1793. (
  1794. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1795. eval ac_val=\$$ac_var
  1796. case $ac_val in #(
  1797. *${as_nl}*)
  1798. case $ac_var in #(
  1799. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1800. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1801. esac
  1802. case $ac_var in #(
  1803. _ | IFS | as_nl) ;; #(
  1804. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1805. *) { eval $ac_var=; unset $ac_var;} ;;
  1806. esac ;;
  1807. esac
  1808. done
  1809. (set) 2>&1 |
  1810. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1811. *${as_nl}ac_space=\ *)
  1812. sed -n \
  1813. "s/'\''/'\''\\\\'\'''\''/g;
  1814. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1815. ;; #(
  1816. *)
  1817. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1818. ;;
  1819. esac |
  1820. sort
  1821. )
  1822. echo
  1823. cat <<\_ASBOX
  1824. ## ----------------- ##
  1825. ## Output variables. ##
  1826. ## ----------------- ##
  1827. _ASBOX
  1828. echo
  1829. for ac_var in $ac_subst_vars
  1830. do
  1831. eval ac_val=\$$ac_var
  1832. case $ac_val in
  1833. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1834. esac
  1835. $as_echo "$ac_var='\''$ac_val'\''"
  1836. done | sort
  1837. echo
  1838. if test -n "$ac_subst_files"; then
  1839. cat <<\_ASBOX
  1840. ## ------------------- ##
  1841. ## File substitutions. ##
  1842. ## ------------------- ##
  1843. _ASBOX
  1844. echo
  1845. for ac_var in $ac_subst_files
  1846. do
  1847. eval ac_val=\$$ac_var
  1848. case $ac_val in
  1849. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1850. esac
  1851. $as_echo "$ac_var='\''$ac_val'\''"
  1852. done | sort
  1853. echo
  1854. fi
  1855. if test -s confdefs.h; then
  1856. cat <<\_ASBOX
  1857. ## ----------- ##
  1858. ## confdefs.h. ##
  1859. ## ----------- ##
  1860. _ASBOX
  1861. echo
  1862. cat confdefs.h
  1863. echo
  1864. fi
  1865. test "$ac_signal" != 0 &&
  1866. $as_echo "$as_me: caught signal $ac_signal"
  1867. $as_echo "$as_me: exit $exit_status"
  1868. } >&5
  1869. rm -f core *.core core.conftest.* &&
  1870. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1871. exit $exit_status
  1872. ' 0
  1873. for ac_signal in 1 2 13 15; do
  1874. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1875. done
  1876. ac_signal=0
  1877. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1878. rm -f -r conftest* confdefs.h
  1879. $as_echo "/* confdefs.h */" > confdefs.h
  1880. # Predefined preprocessor variables.
  1881. cat >>confdefs.h <<_ACEOF
  1882. #define PACKAGE_NAME "$PACKAGE_NAME"
  1883. _ACEOF
  1884. cat >>confdefs.h <<_ACEOF
  1885. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1886. _ACEOF
  1887. cat >>confdefs.h <<_ACEOF
  1888. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1889. _ACEOF
  1890. cat >>confdefs.h <<_ACEOF
  1891. #define PACKAGE_STRING "$PACKAGE_STRING"
  1892. _ACEOF
  1893. cat >>confdefs.h <<_ACEOF
  1894. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1895. _ACEOF
  1896. cat >>confdefs.h <<_ACEOF
  1897. #define PACKAGE_URL "$PACKAGE_URL"
  1898. _ACEOF
  1899. # Let the site file select an alternate cache file if it wants to.
  1900. # Prefer an explicitly selected file to automatically selected ones.
  1901. ac_site_file1=NONE
  1902. ac_site_file2=NONE
  1903. if test -n "$CONFIG_SITE"; then
  1904. ac_site_file1=$CONFIG_SITE
  1905. elif test "x$prefix" != xNONE; then
  1906. ac_site_file1=$prefix/share/config.site
  1907. ac_site_file2=$prefix/etc/config.site
  1908. else
  1909. ac_site_file1=$ac_default_prefix/share/config.site
  1910. ac_site_file2=$ac_default_prefix/etc/config.site
  1911. fi
  1912. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1913. do
  1914. test "x$ac_site_file" = xNONE && continue
  1915. if test -r "$ac_site_file"; then
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1917. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1918. sed 's/^/| /' "$ac_site_file" >&5
  1919. . "$ac_site_file"
  1920. fi
  1921. done
  1922. if test -r "$cache_file"; then
  1923. # Some versions of bash will fail to source /dev/null (special
  1924. # files actually), so we avoid doing that.
  1925. if test -f "$cache_file"; then
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1927. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1928. case $cache_file in
  1929. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1930. *) . "./$cache_file";;
  1931. esac
  1932. fi
  1933. else
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1935. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1936. >$cache_file
  1937. fi
  1938. # Check that the precious variables saved in the cache have kept the same
  1939. # value.
  1940. ac_cache_corrupted=false
  1941. for ac_var in $ac_precious_vars; do
  1942. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1943. eval ac_new_set=\$ac_env_${ac_var}_set
  1944. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1945. eval ac_new_val=\$ac_env_${ac_var}_value
  1946. case $ac_old_set,$ac_new_set in
  1947. set,)
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1949. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1950. ac_cache_corrupted=: ;;
  1951. ,set)
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1953. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1954. ac_cache_corrupted=: ;;
  1955. ,);;
  1956. *)
  1957. if test "x$ac_old_val" != "x$ac_new_val"; then
  1958. # differences in whitespace do not lead to failure.
  1959. ac_old_val_w=`echo x $ac_old_val`
  1960. ac_new_val_w=`echo x $ac_new_val`
  1961. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1963. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1964. ac_cache_corrupted=:
  1965. else
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1967. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1968. eval $ac_var=\$ac_old_val
  1969. fi
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1971. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1973. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1974. fi;;
  1975. esac
  1976. # Pass precious variables to config.status.
  1977. if test "$ac_new_set" = set; then
  1978. case $ac_new_val in
  1979. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1980. *) ac_arg=$ac_var=$ac_new_val ;;
  1981. esac
  1982. case " $ac_configure_args " in
  1983. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1984. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1985. esac
  1986. fi
  1987. done
  1988. if $ac_cache_corrupted; then
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1992. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1993. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1994. fi
  1995. ## -------------------- ##
  1996. ## Main body of script. ##
  1997. ## -------------------- ##
  1998. ac_ext=c
  1999. ac_cpp='$CPP $CPPFLAGS'
  2000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2003. # This file contains common code used by all simulators.
  2004. #
  2005. # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
  2006. # directory. It is intended to be invoked before any target specific stuff.
  2007. # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
  2008. # It is intended to be invoked last.
  2009. #
  2010. # The simulator's configure.ac should look like:
  2011. #
  2012. # dnl Process this file with autoconf to produce a configure script.
  2013. # AC_PREREQ(2.64)dnl
  2014. # AC_INIT(Makefile.in)
  2015. # sinclude(../common/aclocal.m4)
  2016. #
  2017. # SIM_AC_COMMON
  2018. #
  2019. # ... target specific stuff ...
  2020. #
  2021. # SIM_AC_OUTPUT
  2022. # Include global overrides and fixes for Autoconf.
  2023. # _AC_CHECK_DECL_BODY
  2024. # -------------------
  2025. # Shell function body for AC_CHECK_DECL.
  2026. # _AC_CHECK_DECL_BODY
  2027. # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
  2028. # INCLUDES)
  2029. # -------------------------------------------------------------
  2030. # Helper to AC_CHECK_DECLS, which generates the check for a single
  2031. # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
  2032. # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
  2033. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2034. #
  2035. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2036. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  2037. # Written by Gordon Matzigkeit, 1996
  2038. #
  2039. # This file is free software; the Free Software Foundation gives
  2040. # unlimited permission to copy and/or distribute it, with or without
  2041. # modifications, as long as this notice is preserved.
  2042. # serial 56 LT_INIT
  2043. # LT_PREREQ(VERSION)
  2044. # ------------------
  2045. # Complain and exit if this libtool version is less that VERSION.
  2046. # _LT_CHECK_BUILDDIR
  2047. # ------------------
  2048. # Complain if the absolute build directory name contains unusual characters
  2049. # LT_INIT([OPTIONS])
  2050. # ------------------
  2051. # LT_INIT
  2052. # Old names:
  2053. # This is what autoupdate's m4 run will expand. It fires
  2054. # the warning (with _au_warn_XXX), outputs it into the
  2055. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2056. # the replacement expansion.
  2057. # This is an auxiliary macro that is also run when
  2058. # autoupdate runs m4. It simply calls m4_warning, but
  2059. # we need a wrapper so that each warning is emitted only
  2060. # once. We break the quoting in m4_warning's argument in
  2061. # order to expand this macro's arguments, not AU_DEFUN's.
  2062. # Finally, this is the expansion that is picked up by
  2063. # autoconf. It tells the user to run autoupdate, and
  2064. # then outputs the replacement expansion. We do not care
  2065. # about autoupdate's warning because that contains
  2066. # information on what to do *after* running autoupdate.
  2067. # This is what autoupdate's m4 run will expand. It fires
  2068. # the warning (with _au_warn_XXX), outputs it into the
  2069. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2070. # the replacement expansion.
  2071. # This is an auxiliary macro that is also run when
  2072. # autoupdate runs m4. It simply calls m4_warning, but
  2073. # we need a wrapper so that each warning is emitted only
  2074. # once. We break the quoting in m4_warning's argument in
  2075. # order to expand this macro's arguments, not AU_DEFUN's.
  2076. # Finally, this is the expansion that is picked up by
  2077. # autoconf. It tells the user to run autoupdate, and
  2078. # then outputs the replacement expansion. We do not care
  2079. # about autoupdate's warning because that contains
  2080. # information on what to do *after* running autoupdate.
  2081. # _LT_CC_BASENAME(CC)
  2082. # -------------------
  2083. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2084. # _LT_FILEUTILS_DEFAULTS
  2085. # ----------------------
  2086. # It is okay to use these file commands and assume they have been set
  2087. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2088. # _LT_FILEUTILS_DEFAULTS
  2089. # _LT_SETUP
  2090. # ---------
  2091. # _LT_SETUP
  2092. # _LT_PREPARE_SED_QUOTE_VARS
  2093. # --------------------------
  2094. # Define a few sed substitution that help us do robust quoting.
  2095. # _LT_PROG_LTMAIN
  2096. # ---------------
  2097. # Note that this code is called both from `configure', and `config.status'
  2098. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2099. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2100. # so we pass a copy along to make sure it has a sensible value anyway.
  2101. # _LT_PROG_LTMAIN
  2102. ## ------------------------------------- ##
  2103. ## Accumulate code for creating libtool. ##
  2104. ## ------------------------------------- ##
  2105. # So that we can recreate a full libtool script including additional
  2106. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2107. # in macros and then make a single call at the end using the `libtool'
  2108. # label.
  2109. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2110. # ----------------------------------------
  2111. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2112. # Initialize.
  2113. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2114. # ------------------------------
  2115. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2116. # Initialize.
  2117. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2118. # -----------------------------------------------------
  2119. # _LT_FORMAT_COMMENT([COMMENT])
  2120. # -----------------------------
  2121. # Add leading comment marks to the start of each line, and a trailing
  2122. # full-stop to the whole comment if one is not present already.
  2123. ## ------------------------ ##
  2124. ## FIXME: Eliminate VARNAME ##
  2125. ## ------------------------ ##
  2126. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2127. # -------------------------------------------------------------------
  2128. # CONFIGNAME is the name given to the value in the libtool script.
  2129. # VARNAME is the (base) name used in the configure script.
  2130. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2131. # VARNAME. Any other value will be used directly.
  2132. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2133. # --------------------------------------------------------
  2134. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2135. # ------------------------------------------------
  2136. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2137. # ---------------------------------------------------------
  2138. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2139. # --------------------------------------------------
  2140. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2141. # ---------------------------------------------------
  2142. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2143. # ---------------------------------------------------
  2144. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2145. # ------------------------------------------------
  2146. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2147. # ------------------------------------
  2148. # Quote a variable value, and forward it to `config.status' so that its
  2149. # declaration there will have the same value as in `configure'. VARNAME
  2150. # must have a single quote delimited value for this to work.
  2151. # _LT_CONFIG_STATUS_DECLARATIONS
  2152. # ------------------------------
  2153. # We delimit libtool config variables with single quotes, so when
  2154. # we write them to config.status, we have to be sure to quote all
  2155. # embedded single quotes properly. In configure, this macro expands
  2156. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2157. #
  2158. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2159. # _LT_LIBTOOL_TAGS
  2160. # ----------------
  2161. # Output comment and list of tags supported by the script
  2162. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2163. # -----------------------------------
  2164. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2165. # expand to a commented shell variable setting:
  2166. #
  2167. # # Some comment about what VAR is for.
  2168. # visible_name=$lt_internal_name
  2169. # _LT_LIBTOOL_CONFIG_VARS
  2170. # -----------------------
  2171. # Produce commented declarations of non-tagged libtool config variables
  2172. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2173. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2174. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2175. # _LT_LIBTOOL_TAG_VARS(TAG)
  2176. # -------------------------
  2177. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2178. # ------------------------------
  2179. # _LT_CONFIG_COMMANDS
  2180. # -------------------
  2181. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2182. # variables for single and double quote escaping we saved from calls
  2183. # to _LT_DECL, we can put quote escaped variables declarations
  2184. # into `config.status', and then the shell code to quote escape them in
  2185. # for loops in `config.status'. Finally, any additional code accumulated
  2186. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2187. #_LT_CONFIG_COMMANDS
  2188. # Initialize.
  2189. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2190. # ------------------------------------
  2191. # Generate a child script FILE with all initialization necessary to
  2192. # reuse the environment learned by the parent script, and make the
  2193. # file executable. If COMMENT is supplied, it is inserted after the
  2194. # `#!' sequence but before initialization text begins. After this
  2195. # macro, additional text can be appended to FILE to form the body of
  2196. # the child script. The macro ends with non-zero status if the
  2197. # file could not be fully written (such as if the disk is full).
  2198. # _LT_GENERATED_FILE_INIT
  2199. # LT_OUTPUT
  2200. # ---------
  2201. # This macro allows early generation of the libtool script (before
  2202. # AC_OUTPUT is called), incase it is used in configure for compilation
  2203. # tests.
  2204. # LT_OUTPUT
  2205. # _LT_CONFIG(TAG)
  2206. # ---------------
  2207. # If TAG is the built-in tag, create an initial libtool script with a
  2208. # default configuration from the untagged config vars. Otherwise add code
  2209. # to config.status for appending the configuration named by TAG from the
  2210. # matching tagged config vars.
  2211. # _LT_CONFIG
  2212. # LT_SUPPORTED_TAG(TAG)
  2213. # ---------------------
  2214. # Trace this macro to discover what tags are supported by the libtool
  2215. # --tag option, using:
  2216. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2217. # C support is built-in for now
  2218. # LT_LANG(LANG)
  2219. # -------------
  2220. # Enable libtool support for the given language if not already enabled.
  2221. # LT_LANG
  2222. # _LT_LANG(LANGNAME)
  2223. # ------------------
  2224. # _LT_LANG
  2225. # _LT_LANG_DEFAULT_CONFIG
  2226. # -----------------------
  2227. # _LT_LANG_DEFAULT_CONFIG
  2228. # Obsolete macros:
  2229. # This is what autoupdate's m4 run will expand. It fires
  2230. # the warning (with _au_warn_XXX), outputs it into the
  2231. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2232. # the replacement expansion.
  2233. # This is an auxiliary macro that is also run when
  2234. # autoupdate runs m4. It simply calls m4_warning, but
  2235. # we need a wrapper so that each warning is emitted only
  2236. # once. We break the quoting in m4_warning's argument in
  2237. # order to expand this macro's arguments, not AU_DEFUN's.
  2238. # Finally, this is the expansion that is picked up by
  2239. # autoconf. It tells the user to run autoupdate, and
  2240. # then outputs the replacement expansion. We do not care
  2241. # about autoupdate's warning because that contains
  2242. # information on what to do *after* running autoupdate.
  2243. # This is what autoupdate's m4 run will expand. It fires
  2244. # the warning (with _au_warn_XXX), outputs it into the
  2245. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2246. # the replacement expansion.
  2247. # This is an auxiliary macro that is also run when
  2248. # autoupdate runs m4. It simply calls m4_warning, but
  2249. # we need a wrapper so that each warning is emitted only
  2250. # once. We break the quoting in m4_warning's argument in
  2251. # order to expand this macro's arguments, not AU_DEFUN's.
  2252. # Finally, this is the expansion that is picked up by
  2253. # autoconf. It tells the user to run autoupdate, and
  2254. # then outputs the replacement expansion. We do not care
  2255. # about autoupdate's warning because that contains
  2256. # information on what to do *after* running autoupdate.
  2257. # This is what autoupdate's m4 run will expand. It fires
  2258. # the warning (with _au_warn_XXX), outputs it into the
  2259. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2260. # the replacement expansion.
  2261. # This is an auxiliary macro that is also run when
  2262. # autoupdate runs m4. It simply calls m4_warning, but
  2263. # we need a wrapper so that each warning is emitted only
  2264. # once. We break the quoting in m4_warning's argument in
  2265. # order to expand this macro's arguments, not AU_DEFUN's.
  2266. # Finally, this is the expansion that is picked up by
  2267. # autoconf. It tells the user to run autoupdate, and
  2268. # then outputs the replacement expansion. We do not care
  2269. # about autoupdate's warning because that contains
  2270. # information on what to do *after* running autoupdate.
  2271. # This is what autoupdate's m4 run will expand. It fires
  2272. # the warning (with _au_warn_XXX), outputs it into the
  2273. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2274. # the replacement expansion.
  2275. # This is an auxiliary macro that is also run when
  2276. # autoupdate runs m4. It simply calls m4_warning, but
  2277. # we need a wrapper so that each warning is emitted only
  2278. # once. We break the quoting in m4_warning's argument in
  2279. # order to expand this macro's arguments, not AU_DEFUN's.
  2280. # Finally, this is the expansion that is picked up by
  2281. # autoconf. It tells the user to run autoupdate, and
  2282. # then outputs the replacement expansion. We do not care
  2283. # about autoupdate's warning because that contains
  2284. # information on what to do *after* running autoupdate.
  2285. # This is what autoupdate's m4 run will expand. It fires
  2286. # the warning (with _au_warn_XXX), outputs it into the
  2287. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2288. # the replacement expansion.
  2289. # This is an auxiliary macro that is also run when
  2290. # autoupdate runs m4. It simply calls m4_warning, but
  2291. # we need a wrapper so that each warning is emitted only
  2292. # once. We break the quoting in m4_warning's argument in
  2293. # order to expand this macro's arguments, not AU_DEFUN's.
  2294. # Finally, this is the expansion that is picked up by
  2295. # autoconf. It tells the user to run autoupdate, and
  2296. # then outputs the replacement expansion. We do not care
  2297. # about autoupdate's warning because that contains
  2298. # information on what to do *after* running autoupdate.
  2299. # _LT_TAG_COMPILER
  2300. # ----------------
  2301. # _LT_TAG_COMPILER
  2302. # _LT_COMPILER_BOILERPLATE
  2303. # ------------------------
  2304. # Check for compiler boilerplate output or warnings with
  2305. # the simple compiler test code.
  2306. # _LT_COMPILER_BOILERPLATE
  2307. # _LT_LINKER_BOILERPLATE
  2308. # ----------------------
  2309. # Check for linker boilerplate output or warnings with
  2310. # the simple link test code.
  2311. # _LT_LINKER_BOILERPLATE
  2312. # _LT_REQUIRED_DARWIN_CHECKS
  2313. # -------------------------
  2314. # _LT_DARWIN_LINKER_FEATURES
  2315. # --------------------------
  2316. # Checks for linker and compiler features on darwin
  2317. # _LT_SYS_MODULE_PATH_AIX
  2318. # -----------------------
  2319. # Links a minimal program and checks the executable
  2320. # for the system default hardcoded library path. In most cases,
  2321. # this is /usr/lib:/lib, but when the MPI compilers are used
  2322. # the location of the communication and MPI libs are included too.
  2323. # If we don't find anything, use the default library path according
  2324. # to the aix ld manual.
  2325. # _LT_SYS_MODULE_PATH_AIX
  2326. # _LT_SHELL_INIT(ARG)
  2327. # -------------------
  2328. # _LT_SHELL_INIT
  2329. # _LT_PROG_ECHO_BACKSLASH
  2330. # -----------------------
  2331. # Find how we can fake an echo command that does not interpret backslash.
  2332. # In particular, with Autoconf 2.60 or later we add some code to the start
  2333. # of the generated configure script which will find a shell with a builtin
  2334. # printf (which we can use as an echo command).
  2335. # _LT_PROG_ECHO_BACKSLASH
  2336. # _LT_ENABLE_LOCK
  2337. # ---------------
  2338. # _LT_ENABLE_LOCK
  2339. # _LT_CMD_OLD_ARCHIVE
  2340. # -------------------
  2341. # _LT_CMD_OLD_ARCHIVE
  2342. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2343. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2344. # ----------------------------------------------------------------
  2345. # Check whether the given compiler option works
  2346. # _LT_COMPILER_OPTION
  2347. # Old name:
  2348. # This is what autoupdate's m4 run will expand. It fires
  2349. # the warning (with _au_warn_XXX), outputs it into the
  2350. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2351. # the replacement expansion.
  2352. # This is an auxiliary macro that is also run when
  2353. # autoupdate runs m4. It simply calls m4_warning, but
  2354. # we need a wrapper so that each warning is emitted only
  2355. # once. We break the quoting in m4_warning's argument in
  2356. # order to expand this macro's arguments, not AU_DEFUN's.
  2357. # Finally, this is the expansion that is picked up by
  2358. # autoconf. It tells the user to run autoupdate, and
  2359. # then outputs the replacement expansion. We do not care
  2360. # about autoupdate's warning because that contains
  2361. # information on what to do *after* running autoupdate.
  2362. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2363. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2364. # ----------------------------------------------------
  2365. # Check whether the given linker option works
  2366. # _LT_LINKER_OPTION
  2367. # Old name:
  2368. # This is what autoupdate's m4 run will expand. It fires
  2369. # the warning (with _au_warn_XXX), outputs it into the
  2370. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2371. # the replacement expansion.
  2372. # This is an auxiliary macro that is also run when
  2373. # autoupdate runs m4. It simply calls m4_warning, but
  2374. # we need a wrapper so that each warning is emitted only
  2375. # once. We break the quoting in m4_warning's argument in
  2376. # order to expand this macro's arguments, not AU_DEFUN's.
  2377. # Finally, this is the expansion that is picked up by
  2378. # autoconf. It tells the user to run autoupdate, and
  2379. # then outputs the replacement expansion. We do not care
  2380. # about autoupdate's warning because that contains
  2381. # information on what to do *after* running autoupdate.
  2382. # LT_CMD_MAX_LEN
  2383. #---------------
  2384. # LT_CMD_MAX_LEN
  2385. # Old name:
  2386. # This is what autoupdate's m4 run will expand. It fires
  2387. # the warning (with _au_warn_XXX), outputs it into the
  2388. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2389. # the replacement expansion.
  2390. # This is an auxiliary macro that is also run when
  2391. # autoupdate runs m4. It simply calls m4_warning, but
  2392. # we need a wrapper so that each warning is emitted only
  2393. # once. We break the quoting in m4_warning's argument in
  2394. # order to expand this macro's arguments, not AU_DEFUN's.
  2395. # Finally, this is the expansion that is picked up by
  2396. # autoconf. It tells the user to run autoupdate, and
  2397. # then outputs the replacement expansion. We do not care
  2398. # about autoupdate's warning because that contains
  2399. # information on what to do *after* running autoupdate.
  2400. # _LT_HEADER_DLFCN
  2401. # ----------------
  2402. # _LT_HEADER_DLFCN
  2403. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2404. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2405. # ----------------------------------------------------------------
  2406. # _LT_TRY_DLOPEN_SELF
  2407. # LT_SYS_DLOPEN_SELF
  2408. # ------------------
  2409. # LT_SYS_DLOPEN_SELF
  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_COMPILER_C_O([TAGNAME])
  2426. # ---------------------------
  2427. # Check to see if options -c and -o are simultaneously supported by compiler.
  2428. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2429. # _LT_COMPILER_C_O
  2430. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2431. # ----------------------------------
  2432. # Check to see if we can do hard links to lock some files if needed
  2433. # _LT_COMPILER_FILE_LOCKS
  2434. # _LT_CHECK_OBJDIR
  2435. # ----------------
  2436. # _LT_CHECK_OBJDIR
  2437. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2438. # --------------------------------------
  2439. # Check hardcoding attributes.
  2440. # _LT_LINKER_HARDCODE_LIBPATH
  2441. # _LT_CMD_STRIPLIB
  2442. # ----------------
  2443. # _LT_CMD_STRIPLIB
  2444. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2445. # -----------------------------
  2446. # PORTME Fill in your ld.so characteristics
  2447. # _LT_SYS_DYNAMIC_LINKER
  2448. # _LT_PATH_TOOL_PREFIX(TOOL)
  2449. # --------------------------
  2450. # find a file program which can recognize shared library
  2451. # _LT_PATH_TOOL_PREFIX
  2452. # Old name:
  2453. # This is what autoupdate's m4 run will expand. It fires
  2454. # the warning (with _au_warn_XXX), outputs it into the
  2455. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2456. # the replacement expansion.
  2457. # This is an auxiliary macro that is also run when
  2458. # autoupdate runs m4. It simply calls m4_warning, but
  2459. # we need a wrapper so that each warning is emitted only
  2460. # once. We break the quoting in m4_warning's argument in
  2461. # order to expand this macro's arguments, not AU_DEFUN's.
  2462. # Finally, this is the expansion that is picked up by
  2463. # autoconf. It tells the user to run autoupdate, and
  2464. # then outputs the replacement expansion. We do not care
  2465. # about autoupdate's warning because that contains
  2466. # information on what to do *after* running autoupdate.
  2467. # _LT_PATH_MAGIC
  2468. # --------------
  2469. # find a file program which can recognize a shared library
  2470. # _LT_PATH_MAGIC
  2471. # LT_PATH_LD
  2472. # ----------
  2473. # find the pathname to the GNU or non-GNU linker
  2474. # LT_PATH_LD
  2475. # Old names:
  2476. # This is what autoupdate's m4 run will expand. It fires
  2477. # the warning (with _au_warn_XXX), outputs it into the
  2478. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2479. # the replacement expansion.
  2480. # This is an auxiliary macro that is also run when
  2481. # autoupdate runs m4. It simply calls m4_warning, but
  2482. # we need a wrapper so that each warning is emitted only
  2483. # once. We break the quoting in m4_warning's argument in
  2484. # order to expand this macro's arguments, not AU_DEFUN's.
  2485. # Finally, this is the expansion that is picked up by
  2486. # autoconf. It tells the user to run autoupdate, and
  2487. # then outputs the replacement expansion. We do not care
  2488. # about autoupdate's warning because that contains
  2489. # information on what to do *after* running autoupdate.
  2490. # This is what autoupdate's m4 run will expand. It fires
  2491. # the warning (with _au_warn_XXX), outputs it into the
  2492. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2493. # the replacement expansion.
  2494. # This is an auxiliary macro that is also run when
  2495. # autoupdate runs m4. It simply calls m4_warning, but
  2496. # we need a wrapper so that each warning is emitted only
  2497. # once. We break the quoting in m4_warning's argument in
  2498. # order to expand this macro's arguments, not AU_DEFUN's.
  2499. # Finally, this is the expansion that is picked up by
  2500. # autoconf. It tells the user to run autoupdate, and
  2501. # then outputs the replacement expansion. We do not care
  2502. # about autoupdate's warning because that contains
  2503. # information on what to do *after* running autoupdate.
  2504. # _LT_PATH_LD_GNU
  2505. #- --------------
  2506. # _LT_PATH_LD_GNU
  2507. # _LT_CMD_RELOAD
  2508. # --------------
  2509. # find reload flag for linker
  2510. # -- PORTME Some linkers may need a different reload flag.
  2511. # _LT_CMD_RELOAD
  2512. # _LT_CHECK_MAGIC_METHOD
  2513. # ----------------------
  2514. # how to check for library dependencies
  2515. # -- PORTME fill in with the dynamic library characteristics
  2516. # _LT_CHECK_MAGIC_METHOD
  2517. # LT_PATH_NM
  2518. # ----------
  2519. # find the pathname to a BSD- or MS-compatible name lister
  2520. # LT_PATH_NM
  2521. # Old names:
  2522. # This is what autoupdate's m4 run will expand. It fires
  2523. # the warning (with _au_warn_XXX), outputs it into the
  2524. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2525. # the replacement expansion.
  2526. # This is an auxiliary macro that is also run when
  2527. # autoupdate runs m4. It simply calls m4_warning, but
  2528. # we need a wrapper so that each warning is emitted only
  2529. # once. We break the quoting in m4_warning's argument in
  2530. # order to expand this macro's arguments, not AU_DEFUN's.
  2531. # Finally, this is the expansion that is picked up by
  2532. # autoconf. It tells the user to run autoupdate, and
  2533. # then outputs the replacement expansion. We do not care
  2534. # about autoupdate's warning because that contains
  2535. # information on what to do *after* running autoupdate.
  2536. # This is what autoupdate's m4 run will expand. It fires
  2537. # the warning (with _au_warn_XXX), outputs it into the
  2538. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2539. # the replacement expansion.
  2540. # This is an auxiliary macro that is also run when
  2541. # autoupdate runs m4. It simply calls m4_warning, but
  2542. # we need a wrapper so that each warning is emitted only
  2543. # once. We break the quoting in m4_warning's argument in
  2544. # order to expand this macro's arguments, not AU_DEFUN's.
  2545. # Finally, this is the expansion that is picked up by
  2546. # autoconf. It tells the user to run autoupdate, and
  2547. # then outputs the replacement expansion. We do not care
  2548. # about autoupdate's warning because that contains
  2549. # information on what to do *after* running autoupdate.
  2550. # LT_LIB_M
  2551. # --------
  2552. # check for math library
  2553. # LT_LIB_M
  2554. # Old name:
  2555. # This is what autoupdate's m4 run will expand. It fires
  2556. # the warning (with _au_warn_XXX), outputs it into the
  2557. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2558. # the replacement expansion.
  2559. # This is an auxiliary macro that is also run when
  2560. # autoupdate runs m4. It simply calls m4_warning, but
  2561. # we need a wrapper so that each warning is emitted only
  2562. # once. We break the quoting in m4_warning's argument in
  2563. # order to expand this macro's arguments, not AU_DEFUN's.
  2564. # Finally, this is the expansion that is picked up by
  2565. # autoconf. It tells the user to run autoupdate, and
  2566. # then outputs the replacement expansion. We do not care
  2567. # about autoupdate's warning because that contains
  2568. # information on what to do *after* running autoupdate.
  2569. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2570. # -------------------------------
  2571. # _LT_COMPILER_NO_RTTI
  2572. # _LT_CMD_GLOBAL_SYMBOLS
  2573. # ----------------------
  2574. # _LT_CMD_GLOBAL_SYMBOLS
  2575. # _LT_COMPILER_PIC([TAGNAME])
  2576. # ---------------------------
  2577. # _LT_COMPILER_PIC
  2578. # _LT_LINKER_SHLIBS([TAGNAME])
  2579. # ----------------------------
  2580. # See if the linker supports building shared libraries.
  2581. # _LT_LINKER_SHLIBS
  2582. # _LT_LANG_C_CONFIG([TAG])
  2583. # ------------------------
  2584. # Ensure that the configuration variables for a C compiler are suitably
  2585. # defined. These variables are subsequently used by _LT_CONFIG to write
  2586. # the compiler configuration to `libtool'.
  2587. # _LT_LANG_C_CONFIG
  2588. # _LT_LANG_CXX_CONFIG([TAG])
  2589. # --------------------------
  2590. # Ensure that the configuration variables for a C++ compiler are suitably
  2591. # defined. These variables are subsequently used by _LT_CONFIG to write
  2592. # the compiler configuration to `libtool'.
  2593. # _LT_LANG_CXX_CONFIG
  2594. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2595. # ---------------------------------
  2596. # Figure out "hidden" library dependencies from verbose
  2597. # compiler output when linking a shared library.
  2598. # Parse the compiler output and extract the necessary
  2599. # objects, libraries and library flags.
  2600. # _LT_SYS_HIDDEN_LIBDEPS
  2601. # _LT_LANG_F77_CONFIG([TAG])
  2602. # --------------------------
  2603. # Ensure that the configuration variables for a Fortran 77 compiler are
  2604. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2605. # to write the compiler configuration to `libtool'.
  2606. # _LT_LANG_F77_CONFIG
  2607. # _LT_LANG_FC_CONFIG([TAG])
  2608. # -------------------------
  2609. # Ensure that the configuration variables for a Fortran compiler are
  2610. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2611. # to write the compiler configuration to `libtool'.
  2612. # _LT_LANG_FC_CONFIG
  2613. # _LT_LANG_GCJ_CONFIG([TAG])
  2614. # --------------------------
  2615. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2616. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2617. # to write the compiler configuration to `libtool'.
  2618. # _LT_LANG_GCJ_CONFIG
  2619. # _LT_LANG_RC_CONFIG([TAG])
  2620. # -------------------------
  2621. # Ensure that the configuration variables for the Windows resource compiler
  2622. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2623. # to write the compiler configuration to `libtool'.
  2624. # _LT_LANG_RC_CONFIG
  2625. # LT_PROG_GCJ
  2626. # -----------
  2627. # Old name:
  2628. # This is what autoupdate's m4 run will expand. It fires
  2629. # the warning (with _au_warn_XXX), outputs it into the
  2630. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2631. # the replacement expansion.
  2632. # This is an auxiliary macro that is also run when
  2633. # autoupdate runs m4. It simply calls m4_warning, but
  2634. # we need a wrapper so that each warning is emitted only
  2635. # once. We break the quoting in m4_warning's argument in
  2636. # order to expand this macro's arguments, not AU_DEFUN's.
  2637. # Finally, this is the expansion that is picked up by
  2638. # autoconf. It tells the user to run autoupdate, and
  2639. # then outputs the replacement expansion. We do not care
  2640. # about autoupdate's warning because that contains
  2641. # information on what to do *after* running autoupdate.
  2642. # LT_PROG_RC
  2643. # ----------
  2644. # Old name:
  2645. # This is what autoupdate's m4 run will expand. It fires
  2646. # the warning (with _au_warn_XXX), outputs it into the
  2647. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2648. # the replacement expansion.
  2649. # This is an auxiliary macro that is also run when
  2650. # autoupdate runs m4. It simply calls m4_warning, but
  2651. # we need a wrapper so that each warning is emitted only
  2652. # once. We break the quoting in m4_warning's argument in
  2653. # order to expand this macro's arguments, not AU_DEFUN's.
  2654. # Finally, this is the expansion that is picked up by
  2655. # autoconf. It tells the user to run autoupdate, and
  2656. # then outputs the replacement expansion. We do not care
  2657. # about autoupdate's warning because that contains
  2658. # information on what to do *after* running autoupdate.
  2659. # _LT_DECL_EGREP
  2660. # --------------
  2661. # If we don't have a new enough Autoconf to choose the best grep
  2662. # available, choose the one first in the user's PATH.
  2663. # _LT_DECL_OBJDUMP
  2664. # --------------
  2665. # If we don't have a new enough Autoconf to choose the best objdump
  2666. # available, choose the one first in the user's PATH.
  2667. # _LT_DECL_SED
  2668. # ------------
  2669. # Check for a fully-functional sed program, that truncates
  2670. # as few characters as possible. Prefer GNU sed if found.
  2671. # _LT_DECL_SED
  2672. #m4_ifndef
  2673. # Old name:
  2674. # This is what autoupdate's m4 run will expand. It fires
  2675. # the warning (with _au_warn_XXX), outputs it into the
  2676. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2677. # the replacement expansion.
  2678. # This is an auxiliary macro that is also run when
  2679. # autoupdate runs m4. It simply calls m4_warning, but
  2680. # we need a wrapper so that each warning is emitted only
  2681. # once. We break the quoting in m4_warning's argument in
  2682. # order to expand this macro's arguments, not AU_DEFUN's.
  2683. # Finally, this is the expansion that is picked up by
  2684. # autoconf. It tells the user to run autoupdate, and
  2685. # then outputs the replacement expansion. We do not care
  2686. # about autoupdate's warning because that contains
  2687. # information on what to do *after* running autoupdate.
  2688. # _LT_CHECK_SHELL_FEATURES
  2689. # ------------------------
  2690. # Find out whether the shell is Bourne or XSI compatible,
  2691. # or has some other useful features.
  2692. # _LT_CHECK_SHELL_FEATURES
  2693. # _LT_PROG_XSI_SHELLFNS
  2694. # ---------------------
  2695. # Bourne and XSI compatible variants of some useful shell functions.
  2696. # Helper functions for option handling. -*- Autoconf -*-
  2697. #
  2698. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  2699. # Inc.
  2700. # Written by Gary V. Vaughan, 2004
  2701. #
  2702. # This file is free software; the Free Software Foundation gives
  2703. # unlimited permission to copy and/or distribute it, with or without
  2704. # modifications, as long as this notice is preserved.
  2705. # serial 6 ltoptions.m4
  2706. # This is to help aclocal find these macros, as it can't see m4_define.
  2707. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  2708. # ------------------------------------------
  2709. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  2710. # ---------------------------------------
  2711. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  2712. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  2713. # saved as a flag.
  2714. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  2715. # ------------------------------------------------------------
  2716. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  2717. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  2718. # -------------------------------------------------------
  2719. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  2720. # are set.
  2721. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  2722. # ----------------------------------------
  2723. # OPTION-LIST is a space-separated list of Libtool options associated
  2724. # with MACRO-NAME. If any OPTION has a matching handler declared with
  2725. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  2726. # the unknown option and exit.
  2727. # _LT_SET_OPTIONS
  2728. ## --------------------------------- ##
  2729. ## Macros to handle LT_INIT options. ##
  2730. ## --------------------------------- ##
  2731. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  2732. # -----------------------------------------
  2733. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  2734. # -----------------------------------------------
  2735. # LT_OPTION_DEFINE
  2736. # dlopen
  2737. # ------
  2738. # This is what autoupdate's m4 run will expand. It fires
  2739. # the warning (with _au_warn_XXX), outputs it into the
  2740. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2741. # the replacement expansion.
  2742. # This is an auxiliary macro that is also run when
  2743. # autoupdate runs m4. It simply calls m4_warning, but
  2744. # we need a wrapper so that each warning is emitted only
  2745. # once. We break the quoting in m4_warning's argument in
  2746. # order to expand this macro's arguments, not AU_DEFUN's.
  2747. # Finally, this is the expansion that is picked up by
  2748. # autoconf. It tells the user to run autoupdate, and
  2749. # then outputs the replacement expansion. We do not care
  2750. # about autoupdate's warning because that contains
  2751. # information on what to do *after* running autoupdate.
  2752. # win32-dll
  2753. # ---------
  2754. # Declare package support for building win32 dll's.
  2755. # win32-dll
  2756. # This is what autoupdate's m4 run will expand. It fires
  2757. # the warning (with _au_warn_XXX), outputs it into the
  2758. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2759. # the replacement expansion.
  2760. # This is an auxiliary macro that is also run when
  2761. # autoupdate runs m4. It simply calls m4_warning, but
  2762. # we need a wrapper so that each warning is emitted only
  2763. # once. We break the quoting in m4_warning's argument in
  2764. # order to expand this macro's arguments, not AU_DEFUN's.
  2765. # Finally, this is the expansion that is picked up by
  2766. # autoconf. It tells the user to run autoupdate, and
  2767. # then outputs the replacement expansion. We do not care
  2768. # about autoupdate's warning because that contains
  2769. # information on what to do *after* running autoupdate.
  2770. # _LT_ENABLE_SHARED([DEFAULT])
  2771. # ----------------------------
  2772. # implement the --enable-shared flag, and supports the `shared' and
  2773. # `disable-shared' LT_INIT options.
  2774. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2775. # _LT_ENABLE_SHARED
  2776. # Old names:
  2777. # This is what autoupdate's m4 run will expand. It fires
  2778. # the warning (with _au_warn_XXX), outputs it into the
  2779. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2780. # the replacement expansion.
  2781. # This is an auxiliary macro that is also run when
  2782. # autoupdate runs m4. It simply calls m4_warning, but
  2783. # we need a wrapper so that each warning is emitted only
  2784. # once. We break the quoting in m4_warning's argument in
  2785. # order to expand this macro's arguments, not AU_DEFUN's.
  2786. # Finally, this is the expansion that is picked up by
  2787. # autoconf. It tells the user to run autoupdate, and
  2788. # then outputs the replacement expansion. We do not care
  2789. # about autoupdate's warning because that contains
  2790. # information on what to do *after* running autoupdate.
  2791. # This is what autoupdate's m4 run will expand. It fires
  2792. # the warning (with _au_warn_XXX), outputs it into the
  2793. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2794. # the replacement expansion.
  2795. # This is an auxiliary macro that is also run when
  2796. # autoupdate runs m4. It simply calls m4_warning, but
  2797. # we need a wrapper so that each warning is emitted only
  2798. # once. We break the quoting in m4_warning's argument in
  2799. # order to expand this macro's arguments, not AU_DEFUN's.
  2800. # Finally, this is the expansion that is picked up by
  2801. # autoconf. It tells the user to run autoupdate, and
  2802. # then outputs the replacement expansion. We do not care
  2803. # about autoupdate's warning because that contains
  2804. # information on what to do *after* running autoupdate.
  2805. # _LT_ENABLE_STATIC([DEFAULT])
  2806. # ----------------------------
  2807. # implement the --enable-static flag, and support the `static' and
  2808. # `disable-static' LT_INIT options.
  2809. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2810. # _LT_ENABLE_STATIC
  2811. # Old names:
  2812. # This is what autoupdate's m4 run will expand. It fires
  2813. # the warning (with _au_warn_XXX), outputs it into the
  2814. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2815. # the replacement expansion.
  2816. # This is an auxiliary macro that is also run when
  2817. # autoupdate runs m4. It simply calls m4_warning, but
  2818. # we need a wrapper so that each warning is emitted only
  2819. # once. We break the quoting in m4_warning's argument in
  2820. # order to expand this macro's arguments, not AU_DEFUN's.
  2821. # Finally, this is the expansion that is picked up by
  2822. # autoconf. It tells the user to run autoupdate, and
  2823. # then outputs the replacement expansion. We do not care
  2824. # about autoupdate's warning because that contains
  2825. # information on what to do *after* running autoupdate.
  2826. # This is what autoupdate's m4 run will expand. It fires
  2827. # the warning (with _au_warn_XXX), outputs it into the
  2828. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2829. # the replacement expansion.
  2830. # This is an auxiliary macro that is also run when
  2831. # autoupdate runs m4. It simply calls m4_warning, but
  2832. # we need a wrapper so that each warning is emitted only
  2833. # once. We break the quoting in m4_warning's argument in
  2834. # order to expand this macro's arguments, not AU_DEFUN's.
  2835. # Finally, this is the expansion that is picked up by
  2836. # autoconf. It tells the user to run autoupdate, and
  2837. # then outputs the replacement expansion. We do not care
  2838. # about autoupdate's warning because that contains
  2839. # information on what to do *after* running autoupdate.
  2840. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  2841. # ----------------------------------
  2842. # implement the --enable-fast-install flag, and support the `fast-install'
  2843. # and `disable-fast-install' LT_INIT options.
  2844. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2845. # _LT_ENABLE_FAST_INSTALL
  2846. # Old names:
  2847. # This is what autoupdate's m4 run will expand. It fires
  2848. # the warning (with _au_warn_XXX), outputs it into the
  2849. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2850. # the replacement expansion.
  2851. # This is an auxiliary macro that is also run when
  2852. # autoupdate runs m4. It simply calls m4_warning, but
  2853. # we need a wrapper so that each warning is emitted only
  2854. # once. We break the quoting in m4_warning's argument in
  2855. # order to expand this macro's arguments, not AU_DEFUN's.
  2856. # Finally, this is the expansion that is picked up by
  2857. # autoconf. It tells the user to run autoupdate, and
  2858. # then outputs the replacement expansion. We do not care
  2859. # about autoupdate's warning because that contains
  2860. # information on what to do *after* running autoupdate.
  2861. # This is what autoupdate's m4 run will expand. It fires
  2862. # the warning (with _au_warn_XXX), outputs it into the
  2863. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2864. # the replacement expansion.
  2865. # This is an auxiliary macro that is also run when
  2866. # autoupdate runs m4. It simply calls m4_warning, but
  2867. # we need a wrapper so that each warning is emitted only
  2868. # once. We break the quoting in m4_warning's argument in
  2869. # order to expand this macro's arguments, not AU_DEFUN's.
  2870. # Finally, this is the expansion that is picked up by
  2871. # autoconf. It tells the user to run autoupdate, and
  2872. # then outputs the replacement expansion. We do not care
  2873. # about autoupdate's warning because that contains
  2874. # information on what to do *after* running autoupdate.
  2875. # _LT_WITH_PIC([MODE])
  2876. # --------------------
  2877. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  2878. # LT_INIT options.
  2879. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2880. # _LT_WITH_PIC
  2881. # Old name:
  2882. # This is what autoupdate's m4 run will expand. It fires
  2883. # the warning (with _au_warn_XXX), outputs it into the
  2884. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2885. # the replacement expansion.
  2886. # This is an auxiliary macro that is also run when
  2887. # autoupdate runs m4. It simply calls m4_warning, but
  2888. # we need a wrapper so that each warning is emitted only
  2889. # once. We break the quoting in m4_warning's argument in
  2890. # order to expand this macro's arguments, not AU_DEFUN's.
  2891. # Finally, this is the expansion that is picked up by
  2892. # autoconf. It tells the user to run autoupdate, and
  2893. # then outputs the replacement expansion. We do not care
  2894. # about autoupdate's warning because that contains
  2895. # information on what to do *after* running autoupdate.
  2896. ## ----------------- ##
  2897. ## LTDL_INIT Options ##
  2898. ## ----------------- ##
  2899. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  2900. #
  2901. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  2902. # Written by Gary V. Vaughan, 2004
  2903. #
  2904. # This file is free software; the Free Software Foundation gives
  2905. # unlimited permission to copy and/or distribute it, with or without
  2906. # modifications, as long as this notice is preserved.
  2907. # serial 6 ltsugar.m4
  2908. # This is to help aclocal find these macros, as it can't see m4_define.
  2909. # lt_join(SEP, ARG1, [ARG2...])
  2910. # -----------------------------
  2911. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  2912. # associated separator.
  2913. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  2914. # versions in m4sugar had bugs.
  2915. # lt_car(LIST)
  2916. # lt_cdr(LIST)
  2917. # ------------
  2918. # Manipulate m4 lists.
  2919. # These macros are necessary as long as will still need to support
  2920. # Autoconf-2.59 which quotes differently.
  2921. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  2922. # ------------------------------------------
  2923. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  2924. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  2925. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  2926. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  2927. # than defined and empty).
  2928. #
  2929. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  2930. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  2931. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  2932. # ----------------------------------------------------------
  2933. # Produce a SEP delimited list of all paired combinations of elements of
  2934. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  2935. # has the form PREFIXmINFIXSUFFIXn.
  2936. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  2937. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  2938. # -----------------------------------------------------------------------
  2939. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  2940. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  2941. # lt_dict_add(DICT, KEY, VALUE)
  2942. # -----------------------------
  2943. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  2944. # --------------------------------------------
  2945. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  2946. # ----------------------------------
  2947. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  2948. # -----------------------------------------------------------------
  2949. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  2950. # --------------------------------------------------------------
  2951. # ltversion.m4 -- version numbers -*- Autoconf -*-
  2952. #
  2953. # Copyright (C) 2004 Free Software Foundation, Inc.
  2954. # Written by Scott James Remnant, 2004
  2955. #
  2956. # This file is free software; the Free Software Foundation gives
  2957. # unlimited permission to copy and/or distribute it, with or without
  2958. # modifications, as long as this notice is preserved.
  2959. # Generated from ltversion.in.
  2960. # serial 3134 ltversion.m4
  2961. # This file is part of GNU Libtool
  2962. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  2963. #
  2964. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  2965. # Written by Scott James Remnant, 2004.
  2966. #
  2967. # This file is free software; the Free Software Foundation gives
  2968. # unlimited permission to copy and/or distribute it, with or without
  2969. # modifications, as long as this notice is preserved.
  2970. # serial 4 lt~obsolete.m4
  2971. # These exist entirely to fool aclocal when bootstrapping libtool.
  2972. #
  2973. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  2974. # which have later been changed to m4_define as they aren't part of the
  2975. # exported API, or moved to Autoconf or Automake where they belong.
  2976. #
  2977. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  2978. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  2979. # using a macro with the same name in our local m4/libtool.m4 it'll
  2980. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  2981. # and doesn't know about Autoconf macros at all.)
  2982. #
  2983. # So we provide this file, which has a silly filename so it's always
  2984. # included after everything else. This provides aclocal with the
  2985. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  2986. # because those macros already exist, or will be overwritten later.
  2987. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  2988. #
  2989. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  2990. # Yes, that means every name once taken will need to remain here until
  2991. # we give up compatibility with versions before 1.7, at which point
  2992. # we need to keep only those names which we still refer to.
  2993. # This is to help aclocal find these macros, as it can't see m4_define.
  2994. ## -*- Autoconf -*-
  2995. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
  2996. # Free Software Foundation, Inc.
  2997. #
  2998. # This file is free software; the Free Software Foundation
  2999. # gives unlimited permission to copy and/or distribute it,
  3000. # with or without modifications, as long as this notice is preserved.
  3001. # serial 8
  3002. # Based on depend.m4 from automake 1.9, modified for standalone use in
  3003. # an environment where GNU make is required.
  3004. # ZW_PROG_COMPILER_DEPENDENCIES
  3005. # -----------------------------
  3006. # Variant of _AM_DEPENDENCIES which just does the dependency probe and
  3007. # sets fooDEPMODE accordingly. Cache-variable compatible with
  3008. # original; not side-effect compatible. As the users of this macro
  3009. # may require accurate dependencies for correct builds, it does *not*
  3010. # honor --disable-dependency-checking, and failure to detect a usable
  3011. # method is an error. depcomp is assumed to be located in
  3012. # $ac_aux_dir.
  3013. #
  3014. # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
  3015. # AM_SET_DEPDIR
  3016. # -------------
  3017. # Choose a directory name for dependency files.
  3018. # ZW_CREATE_DEPDIR
  3019. # ----------------
  3020. # As AM_SET_DEPDIR, but also create the directory at config.status time.
  3021. sim_inline="-DDEFAULT_INLINE=0"
  3022. # intl sister-directory configuration rules.
  3023. #
  3024. # The idea behind this macro is that there's no need to repeat all the
  3025. # autoconf probes done by the intl directory - it's already done them
  3026. # for us. In fact, there's no need even to look at the cache for the
  3027. # answers. All we need to do is nab a few pieces of information.
  3028. # The intl directory is set up to make this easy, by generating a
  3029. # small file which can be sourced as a shell script; then we produce
  3030. # the necessary substitutions and definitions for this directory.
  3031. # Autoconf M4 include file defining utility macros for complex Canadian
  3032. # cross builds.
  3033. ####
  3034. # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
  3035. # or AC_INIT.
  3036. # These demand that AC_CANONICAL_SYSTEM be called beforehand.
  3037. ####
  3038. # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3039. # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
  3040. ####
  3041. # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3042. # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
  3043. # Backported from Autoconf 2.5x; can go away when and if
  3044. # we switch. Put the OS path separator in $PATH_SEPARATOR.
  3045. # ACX_HAVE_GCC_FOR_TARGET
  3046. # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
  3047. # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
  3048. # Searching for installed target binutils. We need to take extra care,
  3049. # else we may find the wrong assembler, linker, etc., and lose.
  3050. #
  3051. # First try --with-build-time-tools, if specified.
  3052. #
  3053. # For build != host, we ask the installed GCC for the name of the tool it
  3054. # uses, and accept it if it is an absolute path. This is because the
  3055. # only good choice for a compiler is the same GCC version that is being
  3056. # installed (or we couldn't make target libraries), and we assume that
  3057. # on the host system we'll have not only the same GCC version, but also
  3058. # the same binutils version.
  3059. #
  3060. # For build == host, search the same directories that the installed
  3061. # compiler will search. We used to do this for the assembler, linker,
  3062. # and nm only; for simplicity of configuration, however, we extend this
  3063. # criterion to tools (such as ar and ranlib) that are never invoked by
  3064. # the compiler, to avoid mismatches.
  3065. #
  3066. # Also note we have to check MD_EXEC_PREFIX before checking the user's path
  3067. # if build == target. This makes the most sense only when bootstrapping,
  3068. # but we also do so when build != host. In this case, we hope that the
  3069. # build and host systems will have similar contents of MD_EXEC_PREFIX.
  3070. #
  3071. # If we do not find a suitable binary, then try the user's path.
  3072. ###
  3073. # AC_PROG_CPP_WERROR
  3074. # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
  3075. # triggers warnings from the preprocessor. Will be in autoconf 2.58.
  3076. # For now, using this also overrides header checks to use only the
  3077. # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
  3078. # bit harder from here).
  3079. # Eventually autoconf will default to checking headers with the compiler
  3080. # instead, and we'll have to do this differently.
  3081. # AC_PROG_CPP_WERROR
  3082. # Test for GNAT.
  3083. # We require the gnatbind & gnatmake programs, as well as a compiler driver
  3084. # that understands Ada. We use the user's CC setting, already found, and
  3085. # possibly add $1 to the command-line parameters.
  3086. #
  3087. # Sets the shell variable have_gnat to yes or no as appropriate, and
  3088. # substitutes GNATBIND and GNATMAKE.
  3089. ac_ext=c
  3090. ac_cpp='$CPP $CPPFLAGS'
  3091. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3092. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3093. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3094. if test -n "$ac_tool_prefix"; then
  3095. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3096. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3098. $as_echo_n "checking for $ac_word... " >&6; }
  3099. if test "${ac_cv_prog_CC+set}" = set; then :
  3100. $as_echo_n "(cached) " >&6
  3101. else
  3102. if test -n "$CC"; then
  3103. ac_cv_prog_CC="$CC" # Let the user override the test.
  3104. else
  3105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3106. for as_dir in $PATH
  3107. do
  3108. IFS=$as_save_IFS
  3109. test -z "$as_dir" && as_dir=.
  3110. for ac_exec_ext in '' $ac_executable_extensions; do
  3111. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3112. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3114. break 2
  3115. fi
  3116. done
  3117. done
  3118. IFS=$as_save_IFS
  3119. fi
  3120. fi
  3121. CC=$ac_cv_prog_CC
  3122. if test -n "$CC"; then
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3124. $as_echo "$CC" >&6; }
  3125. else
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3127. $as_echo "no" >&6; }
  3128. fi
  3129. fi
  3130. if test -z "$ac_cv_prog_CC"; then
  3131. ac_ct_CC=$CC
  3132. # Extract the first word of "gcc", so it can be a program name with args.
  3133. set dummy gcc; ac_word=$2
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3135. $as_echo_n "checking for $ac_word... " >&6; }
  3136. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3137. $as_echo_n "(cached) " >&6
  3138. else
  3139. if test -n "$ac_ct_CC"; then
  3140. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3141. else
  3142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3143. for as_dir in $PATH
  3144. do
  3145. IFS=$as_save_IFS
  3146. test -z "$as_dir" && as_dir=.
  3147. for ac_exec_ext in '' $ac_executable_extensions; do
  3148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3149. ac_cv_prog_ac_ct_CC="gcc"
  3150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3151. break 2
  3152. fi
  3153. done
  3154. done
  3155. IFS=$as_save_IFS
  3156. fi
  3157. fi
  3158. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3159. if test -n "$ac_ct_CC"; then
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3161. $as_echo "$ac_ct_CC" >&6; }
  3162. else
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3164. $as_echo "no" >&6; }
  3165. fi
  3166. if test "x$ac_ct_CC" = x; then
  3167. CC=""
  3168. else
  3169. case $cross_compiling:$ac_tool_warned in
  3170. yes:)
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3172. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3173. ac_tool_warned=yes ;;
  3174. esac
  3175. CC=$ac_ct_CC
  3176. fi
  3177. else
  3178. CC="$ac_cv_prog_CC"
  3179. fi
  3180. if test -z "$CC"; then
  3181. if test -n "$ac_tool_prefix"; then
  3182. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3183. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3185. $as_echo_n "checking for $ac_word... " >&6; }
  3186. if test "${ac_cv_prog_CC+set}" = set; then :
  3187. $as_echo_n "(cached) " >&6
  3188. else
  3189. if test -n "$CC"; then
  3190. ac_cv_prog_CC="$CC" # Let the user override the test.
  3191. else
  3192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3193. for as_dir in $PATH
  3194. do
  3195. IFS=$as_save_IFS
  3196. test -z "$as_dir" && as_dir=.
  3197. for ac_exec_ext in '' $ac_executable_extensions; do
  3198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3199. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3201. break 2
  3202. fi
  3203. done
  3204. done
  3205. IFS=$as_save_IFS
  3206. fi
  3207. fi
  3208. CC=$ac_cv_prog_CC
  3209. if test -n "$CC"; then
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3211. $as_echo "$CC" >&6; }
  3212. else
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3214. $as_echo "no" >&6; }
  3215. fi
  3216. fi
  3217. fi
  3218. if test -z "$CC"; then
  3219. # Extract the first word of "cc", so it can be a program name with args.
  3220. set dummy cc; ac_word=$2
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3222. $as_echo_n "checking for $ac_word... " >&6; }
  3223. if test "${ac_cv_prog_CC+set}" = set; then :
  3224. $as_echo_n "(cached) " >&6
  3225. else
  3226. if test -n "$CC"; then
  3227. ac_cv_prog_CC="$CC" # Let the user override the test.
  3228. else
  3229. ac_prog_rejected=no
  3230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3231. for as_dir in $PATH
  3232. do
  3233. IFS=$as_save_IFS
  3234. test -z "$as_dir" && as_dir=.
  3235. for ac_exec_ext in '' $ac_executable_extensions; do
  3236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3237. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3238. ac_prog_rejected=yes
  3239. continue
  3240. fi
  3241. ac_cv_prog_CC="cc"
  3242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3243. break 2
  3244. fi
  3245. done
  3246. done
  3247. IFS=$as_save_IFS
  3248. if test $ac_prog_rejected = yes; then
  3249. # We found a bogon in the path, so make sure we never use it.
  3250. set dummy $ac_cv_prog_CC
  3251. shift
  3252. if test $# != 0; then
  3253. # We chose a different compiler from the bogus one.
  3254. # However, it has the same basename, so the bogon will be chosen
  3255. # first if we set CC to just the basename; use the full file name.
  3256. shift
  3257. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3258. fi
  3259. fi
  3260. fi
  3261. fi
  3262. CC=$ac_cv_prog_CC
  3263. if test -n "$CC"; then
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3265. $as_echo "$CC" >&6; }
  3266. else
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3268. $as_echo "no" >&6; }
  3269. fi
  3270. fi
  3271. if test -z "$CC"; then
  3272. if test -n "$ac_tool_prefix"; then
  3273. for ac_prog in cl.exe
  3274. do
  3275. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3276. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3278. $as_echo_n "checking for $ac_word... " >&6; }
  3279. if test "${ac_cv_prog_CC+set}" = set; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. if test -n "$CC"; then
  3283. ac_cv_prog_CC="$CC" # Let the user override the test.
  3284. else
  3285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3286. for as_dir in $PATH
  3287. do
  3288. IFS=$as_save_IFS
  3289. test -z "$as_dir" && as_dir=.
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3292. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3294. break 2
  3295. fi
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. fi
  3300. fi
  3301. CC=$ac_cv_prog_CC
  3302. if test -n "$CC"; then
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3304. $as_echo "$CC" >&6; }
  3305. else
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3307. $as_echo "no" >&6; }
  3308. fi
  3309. test -n "$CC" && break
  3310. done
  3311. fi
  3312. if test -z "$CC"; then
  3313. ac_ct_CC=$CC
  3314. for ac_prog in cl.exe
  3315. do
  3316. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3317. set dummy $ac_prog; ac_word=$2
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3319. $as_echo_n "checking for $ac_word... " >&6; }
  3320. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3321. $as_echo_n "(cached) " >&6
  3322. else
  3323. if test -n "$ac_ct_CC"; then
  3324. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3325. else
  3326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3327. for as_dir in $PATH
  3328. do
  3329. IFS=$as_save_IFS
  3330. test -z "$as_dir" && as_dir=.
  3331. for ac_exec_ext in '' $ac_executable_extensions; do
  3332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3333. ac_cv_prog_ac_ct_CC="$ac_prog"
  3334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3335. break 2
  3336. fi
  3337. done
  3338. done
  3339. IFS=$as_save_IFS
  3340. fi
  3341. fi
  3342. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3343. if test -n "$ac_ct_CC"; then
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3345. $as_echo "$ac_ct_CC" >&6; }
  3346. else
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3348. $as_echo "no" >&6; }
  3349. fi
  3350. test -n "$ac_ct_CC" && break
  3351. done
  3352. if test "x$ac_ct_CC" = x; then
  3353. CC=""
  3354. else
  3355. case $cross_compiling:$ac_tool_warned in
  3356. yes:)
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3358. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3359. ac_tool_warned=yes ;;
  3360. esac
  3361. CC=$ac_ct_CC
  3362. fi
  3363. fi
  3364. fi
  3365. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3366. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3367. as_fn_error "no acceptable C compiler found in \$PATH
  3368. See \`config.log' for more details." "$LINENO" 5; }
  3369. # Provide some information about the compiler.
  3370. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3371. set X $ac_compile
  3372. ac_compiler=$2
  3373. for ac_option in --version -v -V -qversion; do
  3374. { { ac_try="$ac_compiler $ac_option >&5"
  3375. case "(($ac_try" in
  3376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3377. *) ac_try_echo=$ac_try;;
  3378. esac
  3379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3380. $as_echo "$ac_try_echo"; } >&5
  3381. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3382. ac_status=$?
  3383. if test -s conftest.err; then
  3384. sed '10a\
  3385. ... rest of stderr output deleted ...
  3386. 10q' conftest.err >conftest.er1
  3387. cat conftest.er1 >&5
  3388. rm -f conftest.er1 conftest.err
  3389. fi
  3390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3391. test $ac_status = 0; }
  3392. done
  3393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3394. /* end confdefs.h. */
  3395. int
  3396. main ()
  3397. {
  3398. ;
  3399. return 0;
  3400. }
  3401. _ACEOF
  3402. ac_clean_files_save=$ac_clean_files
  3403. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3404. # Try to create an executable without -o first, disregard a.out.
  3405. # It will help us diagnose broken compilers, and finding out an intuition
  3406. # of exeext.
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3408. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3409. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3410. # The possible output files:
  3411. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3412. ac_rmfiles=
  3413. for ac_file in $ac_files
  3414. do
  3415. case $ac_file in
  3416. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3417. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3418. esac
  3419. done
  3420. rm -f $ac_rmfiles
  3421. if { { ac_try="$ac_link_default"
  3422. case "(($ac_try" in
  3423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3424. *) ac_try_echo=$ac_try;;
  3425. esac
  3426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3427. $as_echo "$ac_try_echo"; } >&5
  3428. (eval "$ac_link_default") 2>&5
  3429. ac_status=$?
  3430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3431. test $ac_status = 0; }; then :
  3432. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3433. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3434. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3435. # so that the user can short-circuit this test for compilers unknown to
  3436. # Autoconf.
  3437. for ac_file in $ac_files ''
  3438. do
  3439. test -f "$ac_file" || continue
  3440. case $ac_file in
  3441. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3442. ;;
  3443. [ab].out )
  3444. # We found the default executable, but exeext='' is most
  3445. # certainly right.
  3446. break;;
  3447. *.* )
  3448. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3449. then :; else
  3450. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3451. fi
  3452. # We set ac_cv_exeext here because the later test for it is not
  3453. # safe: cross compilers may not add the suffix if given an `-o'
  3454. # argument, so we may need to know it at that point already.
  3455. # Even if this section looks crufty: it has the advantage of
  3456. # actually working.
  3457. break;;
  3458. * )
  3459. break;;
  3460. esac
  3461. done
  3462. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3463. else
  3464. ac_file=''
  3465. fi
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3467. $as_echo "$ac_file" >&6; }
  3468. if test -z "$ac_file"; then :
  3469. $as_echo "$as_me: failed program was:" >&5
  3470. sed 's/^/| /' conftest.$ac_ext >&5
  3471. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3472. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3473. { as_fn_set_status 77
  3474. as_fn_error "C compiler cannot create executables
  3475. See \`config.log' for more details." "$LINENO" 5; }; }
  3476. fi
  3477. ac_exeext=$ac_cv_exeext
  3478. # Check that the compiler produces executables we can run. If not, either
  3479. # the compiler is broken, or we cross compile.
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3481. $as_echo_n "checking whether the C compiler works... " >&6; }
  3482. # If not cross compiling, check that we can run a simple program.
  3483. if test "$cross_compiling" != yes; then
  3484. if { ac_try='./$ac_file'
  3485. { { case "(($ac_try" in
  3486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3487. *) ac_try_echo=$ac_try;;
  3488. esac
  3489. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3490. $as_echo "$ac_try_echo"; } >&5
  3491. (eval "$ac_try") 2>&5
  3492. ac_status=$?
  3493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3494. test $ac_status = 0; }; }; then
  3495. cross_compiling=no
  3496. else
  3497. if test "$cross_compiling" = maybe; then
  3498. cross_compiling=yes
  3499. else
  3500. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3501. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3502. as_fn_error "cannot run C compiled programs.
  3503. If you meant to cross compile, use \`--host'.
  3504. See \`config.log' for more details." "$LINENO" 5; }
  3505. fi
  3506. fi
  3507. fi
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3509. $as_echo "yes" >&6; }
  3510. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3511. ac_clean_files=$ac_clean_files_save
  3512. # Check that the compiler produces executables we can run. If not, either
  3513. # the compiler is broken, or we cross compile.
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3515. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3517. $as_echo "$cross_compiling" >&6; }
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3519. $as_echo_n "checking for suffix of executables... " >&6; }
  3520. if { { ac_try="$ac_link"
  3521. case "(($ac_try" in
  3522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3523. *) ac_try_echo=$ac_try;;
  3524. esac
  3525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3526. $as_echo "$ac_try_echo"; } >&5
  3527. (eval "$ac_link") 2>&5
  3528. ac_status=$?
  3529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3530. test $ac_status = 0; }; then :
  3531. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3532. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3533. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3534. # `rm'.
  3535. for ac_file in conftest.exe conftest conftest.*; do
  3536. test -f "$ac_file" || continue
  3537. case $ac_file in
  3538. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3539. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3540. break;;
  3541. * ) break;;
  3542. esac
  3543. done
  3544. else
  3545. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3547. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3548. See \`config.log' for more details." "$LINENO" 5; }
  3549. fi
  3550. rm -f conftest$ac_cv_exeext
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3552. $as_echo "$ac_cv_exeext" >&6; }
  3553. rm -f conftest.$ac_ext
  3554. EXEEXT=$ac_cv_exeext
  3555. ac_exeext=$EXEEXT
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3557. $as_echo_n "checking for suffix of object files... " >&6; }
  3558. if test "${ac_cv_objext+set}" = set; then :
  3559. $as_echo_n "(cached) " >&6
  3560. else
  3561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3562. /* end confdefs.h. */
  3563. int
  3564. main ()
  3565. {
  3566. ;
  3567. return 0;
  3568. }
  3569. _ACEOF
  3570. rm -f conftest.o conftest.obj
  3571. if { { ac_try="$ac_compile"
  3572. case "(($ac_try" in
  3573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3574. *) ac_try_echo=$ac_try;;
  3575. esac
  3576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3577. $as_echo "$ac_try_echo"; } >&5
  3578. (eval "$ac_compile") 2>&5
  3579. ac_status=$?
  3580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3581. test $ac_status = 0; }; then :
  3582. for ac_file in conftest.o conftest.obj conftest.*; do
  3583. test -f "$ac_file" || continue;
  3584. case $ac_file in
  3585. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3586. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3587. break;;
  3588. esac
  3589. done
  3590. else
  3591. $as_echo "$as_me: failed program was:" >&5
  3592. sed 's/^/| /' conftest.$ac_ext >&5
  3593. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3594. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3595. as_fn_error "cannot compute suffix of object files: cannot compile
  3596. See \`config.log' for more details." "$LINENO" 5; }
  3597. fi
  3598. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3599. fi
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3601. $as_echo "$ac_cv_objext" >&6; }
  3602. OBJEXT=$ac_cv_objext
  3603. ac_objext=$OBJEXT
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3605. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3606. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3610. /* end confdefs.h. */
  3611. int
  3612. main ()
  3613. {
  3614. #ifndef __GNUC__
  3615. choke me
  3616. #endif
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. if ac_fn_c_try_compile "$LINENO"; then :
  3622. ac_compiler_gnu=yes
  3623. else
  3624. ac_compiler_gnu=no
  3625. fi
  3626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3627. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3628. fi
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3630. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3631. if test $ac_compiler_gnu = yes; then
  3632. GCC=yes
  3633. else
  3634. GCC=
  3635. fi
  3636. ac_test_CFLAGS=${CFLAGS+set}
  3637. ac_save_CFLAGS=$CFLAGS
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3639. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3640. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3641. $as_echo_n "(cached) " >&6
  3642. else
  3643. ac_save_c_werror_flag=$ac_c_werror_flag
  3644. ac_c_werror_flag=yes
  3645. ac_cv_prog_cc_g=no
  3646. CFLAGS="-g"
  3647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3648. /* end confdefs.h. */
  3649. int
  3650. main ()
  3651. {
  3652. ;
  3653. return 0;
  3654. }
  3655. _ACEOF
  3656. if ac_fn_c_try_compile "$LINENO"; then :
  3657. ac_cv_prog_cc_g=yes
  3658. else
  3659. CFLAGS=""
  3660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3661. /* end confdefs.h. */
  3662. int
  3663. main ()
  3664. {
  3665. ;
  3666. return 0;
  3667. }
  3668. _ACEOF
  3669. if ac_fn_c_try_compile "$LINENO"; then :
  3670. else
  3671. ac_c_werror_flag=$ac_save_c_werror_flag
  3672. CFLAGS="-g"
  3673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3674. /* end confdefs.h. */
  3675. int
  3676. main ()
  3677. {
  3678. ;
  3679. return 0;
  3680. }
  3681. _ACEOF
  3682. if ac_fn_c_try_compile "$LINENO"; then :
  3683. ac_cv_prog_cc_g=yes
  3684. fi
  3685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3686. fi
  3687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3688. fi
  3689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3690. ac_c_werror_flag=$ac_save_c_werror_flag
  3691. fi
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3693. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3694. if test "$ac_test_CFLAGS" = set; then
  3695. CFLAGS=$ac_save_CFLAGS
  3696. elif test $ac_cv_prog_cc_g = yes; then
  3697. if test "$GCC" = yes; then
  3698. CFLAGS="-g -O2"
  3699. else
  3700. CFLAGS="-g"
  3701. fi
  3702. else
  3703. if test "$GCC" = yes; then
  3704. CFLAGS="-O2"
  3705. else
  3706. CFLAGS=
  3707. fi
  3708. fi
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3710. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3711. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3712. $as_echo_n "(cached) " >&6
  3713. else
  3714. ac_cv_prog_cc_c89=no
  3715. ac_save_CC=$CC
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. #include <stdarg.h>
  3719. #include <stdio.h>
  3720. #include <sys/types.h>
  3721. #include <sys/stat.h>
  3722. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3723. struct buf { int x; };
  3724. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3725. static char *e (p, i)
  3726. char **p;
  3727. int i;
  3728. {
  3729. return p[i];
  3730. }
  3731. static char *f (char * (*g) (char **, int), char **p, ...)
  3732. {
  3733. char *s;
  3734. va_list v;
  3735. va_start (v,p);
  3736. s = g (p, va_arg (v,int));
  3737. va_end (v);
  3738. return s;
  3739. }
  3740. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3741. function prototypes and stuff, but not '\xHH' hex character constants.
  3742. These don't provoke an error unfortunately, instead are silently treated
  3743. as 'x'. The following induces an error, until -std is added to get
  3744. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3745. array size at least. It's necessary to write '\x00'==0 to get something
  3746. that's true only with -std. */
  3747. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3748. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3749. inside strings and character constants. */
  3750. #define FOO(x) 'x'
  3751. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3752. int test (int i, double x);
  3753. struct s1 {int (*f) (int a);};
  3754. struct s2 {int (*f) (double a);};
  3755. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3756. int argc;
  3757. char **argv;
  3758. int
  3759. main ()
  3760. {
  3761. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3762. ;
  3763. return 0;
  3764. }
  3765. _ACEOF
  3766. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3767. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3768. do
  3769. CC="$ac_save_CC $ac_arg"
  3770. if ac_fn_c_try_compile "$LINENO"; then :
  3771. ac_cv_prog_cc_c89=$ac_arg
  3772. fi
  3773. rm -f core conftest.err conftest.$ac_objext
  3774. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3775. done
  3776. rm -f conftest.$ac_ext
  3777. CC=$ac_save_CC
  3778. fi
  3779. # AC_CACHE_VAL
  3780. case "x$ac_cv_prog_cc_c89" in
  3781. x)
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3783. $as_echo "none needed" >&6; } ;;
  3784. xno)
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3786. $as_echo "unsupported" >&6; } ;;
  3787. *)
  3788. CC="$CC $ac_cv_prog_cc_c89"
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3790. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3791. esac
  3792. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3793. fi
  3794. ac_ext=c
  3795. ac_cpp='$CPP $CPPFLAGS'
  3796. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3797. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3798. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3799. ac_aux_dir=
  3800. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3801. for ac_t in install-sh install.sh shtool; do
  3802. if test -f "$ac_dir/$ac_t"; then
  3803. ac_aux_dir=$ac_dir
  3804. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3805. break 2
  3806. fi
  3807. done
  3808. done
  3809. if test -z "$ac_aux_dir"; then
  3810. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3811. fi
  3812. # These three variables are undocumented and unsupported,
  3813. # and are intended to be withdrawn in a future Autoconf release.
  3814. # They can cause serious problems if a builder's source tree is in a directory
  3815. # whose full name contains unusual characters.
  3816. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3817. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3818. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3819. # Make sure we can run config.sub.
  3820. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3821. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3823. $as_echo_n "checking build system type... " >&6; }
  3824. if test "${ac_cv_build+set}" = set; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. ac_build_alias=$build_alias
  3828. test "x$ac_build_alias" = x &&
  3829. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3830. test "x$ac_build_alias" = x &&
  3831. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3832. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3833. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3834. fi
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3836. $as_echo "$ac_cv_build" >&6; }
  3837. case $ac_cv_build in
  3838. *-*-*) ;;
  3839. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3840. esac
  3841. build=$ac_cv_build
  3842. ac_save_IFS=$IFS; IFS='-'
  3843. set x $ac_cv_build
  3844. shift
  3845. build_cpu=$1
  3846. build_vendor=$2
  3847. shift; shift
  3848. # Remember, the first character of IFS is used to create $*,
  3849. # except with old shells:
  3850. build_os=$*
  3851. IFS=$ac_save_IFS
  3852. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3854. $as_echo_n "checking host system type... " >&6; }
  3855. if test "${ac_cv_host+set}" = set; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test "x$host_alias" = x; then
  3859. ac_cv_host=$ac_cv_build
  3860. else
  3861. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3862. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3863. fi
  3864. fi
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3866. $as_echo "$ac_cv_host" >&6; }
  3867. case $ac_cv_host in
  3868. *-*-*) ;;
  3869. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3870. esac
  3871. host=$ac_cv_host
  3872. ac_save_IFS=$IFS; IFS='-'
  3873. set x $ac_cv_host
  3874. shift
  3875. host_cpu=$1
  3876. host_vendor=$2
  3877. shift; shift
  3878. # Remember, the first character of IFS is used to create $*,
  3879. # except with old shells:
  3880. host_os=$*
  3881. IFS=$ac_save_IFS
  3882. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3884. $as_echo_n "checking target system type... " >&6; }
  3885. if test "${ac_cv_target+set}" = set; then :
  3886. $as_echo_n "(cached) " >&6
  3887. else
  3888. if test "x$target_alias" = x; then
  3889. ac_cv_target=$ac_cv_host
  3890. else
  3891. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3892. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3893. fi
  3894. fi
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3896. $as_echo "$ac_cv_target" >&6; }
  3897. case $ac_cv_target in
  3898. *-*-*) ;;
  3899. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3900. esac
  3901. target=$ac_cv_target
  3902. ac_save_IFS=$IFS; IFS='-'
  3903. set x $ac_cv_target
  3904. shift
  3905. target_cpu=$1
  3906. target_vendor=$2
  3907. shift; shift
  3908. # Remember, the first character of IFS is used to create $*,
  3909. # except with old shells:
  3910. target_os=$*
  3911. IFS=$ac_save_IFS
  3912. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3913. # The aliases save the names the user supplied, while $host etc.
  3914. # will get canonicalized.
  3915. test -n "$target_alias" &&
  3916. test "$program_prefix$program_suffix$program_transform_name" = \
  3917. NONENONEs,x,x, &&
  3918. program_prefix=${target_alias}-
  3919. ac_ext=c
  3920. ac_cpp='$CPP $CPPFLAGS'
  3921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3925. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3926. # On Suns, sometimes $CPP names a directory.
  3927. if test -n "$CPP" && test -d "$CPP"; then
  3928. CPP=
  3929. fi
  3930. if test -z "$CPP"; then
  3931. if test "${ac_cv_prog_CPP+set}" = set; then :
  3932. $as_echo_n "(cached) " >&6
  3933. else
  3934. # Double quotes because CPP needs to be expanded
  3935. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3936. do
  3937. ac_preproc_ok=false
  3938. for ac_c_preproc_warn_flag in '' yes
  3939. do
  3940. # Use a header file that comes with gcc, so configuring glibc
  3941. # with a fresh cross-compiler works.
  3942. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3943. # <limits.h> exists even on freestanding compilers.
  3944. # On the NeXT, cc -E runs the code through the compiler's parser,
  3945. # not just through cpp. "Syntax error" is here to catch this case.
  3946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3947. /* end confdefs.h. */
  3948. #ifdef __STDC__
  3949. # include <limits.h>
  3950. #else
  3951. # include <assert.h>
  3952. #endif
  3953. Syntax error
  3954. _ACEOF
  3955. if ac_fn_c_try_cpp "$LINENO"; then :
  3956. else
  3957. # Broken: fails on valid input.
  3958. continue
  3959. fi
  3960. rm -f conftest.err conftest.$ac_ext
  3961. # OK, works on sane cases. Now check whether nonexistent headers
  3962. # can be detected and how.
  3963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3964. /* end confdefs.h. */
  3965. #include <ac_nonexistent.h>
  3966. _ACEOF
  3967. if ac_fn_c_try_cpp "$LINENO"; then :
  3968. # Broken: success on invalid input.
  3969. continue
  3970. else
  3971. # Passes both tests.
  3972. ac_preproc_ok=:
  3973. break
  3974. fi
  3975. rm -f conftest.err conftest.$ac_ext
  3976. done
  3977. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3978. rm -f conftest.err conftest.$ac_ext
  3979. if $ac_preproc_ok; then :
  3980. break
  3981. fi
  3982. done
  3983. ac_cv_prog_CPP=$CPP
  3984. fi
  3985. CPP=$ac_cv_prog_CPP
  3986. else
  3987. ac_cv_prog_CPP=$CPP
  3988. fi
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3990. $as_echo "$CPP" >&6; }
  3991. ac_preproc_ok=false
  3992. for ac_c_preproc_warn_flag in '' yes
  3993. do
  3994. # Use a header file that comes with gcc, so configuring glibc
  3995. # with a fresh cross-compiler works.
  3996. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3997. # <limits.h> exists even on freestanding compilers.
  3998. # On the NeXT, cc -E runs the code through the compiler's parser,
  3999. # not just through cpp. "Syntax error" is here to catch this case.
  4000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4001. /* end confdefs.h. */
  4002. #ifdef __STDC__
  4003. # include <limits.h>
  4004. #else
  4005. # include <assert.h>
  4006. #endif
  4007. Syntax error
  4008. _ACEOF
  4009. if ac_fn_c_try_cpp "$LINENO"; then :
  4010. else
  4011. # Broken: fails on valid input.
  4012. continue
  4013. fi
  4014. rm -f conftest.err conftest.$ac_ext
  4015. # OK, works on sane cases. Now check whether nonexistent headers
  4016. # can be detected and how.
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. #include <ac_nonexistent.h>
  4020. _ACEOF
  4021. if ac_fn_c_try_cpp "$LINENO"; then :
  4022. # Broken: success on invalid input.
  4023. continue
  4024. else
  4025. # Passes both tests.
  4026. ac_preproc_ok=:
  4027. break
  4028. fi
  4029. rm -f conftest.err conftest.$ac_ext
  4030. done
  4031. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4032. rm -f conftest.err conftest.$ac_ext
  4033. if $ac_preproc_ok; then :
  4034. else
  4035. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4037. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4038. See \`config.log' for more details." "$LINENO" 5; }
  4039. fi
  4040. ac_ext=c
  4041. ac_cpp='$CPP $CPPFLAGS'
  4042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4046. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4047. if test "${ac_cv_path_GREP+set}" = set; then :
  4048. $as_echo_n "(cached) " >&6
  4049. else
  4050. if test -z "$GREP"; then
  4051. ac_path_GREP_found=false
  4052. # Loop through the user's path and test for each of PROGNAME-LIST
  4053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4054. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4055. do
  4056. IFS=$as_save_IFS
  4057. test -z "$as_dir" && as_dir=.
  4058. for ac_prog in grep ggrep; do
  4059. for ac_exec_ext in '' $ac_executable_extensions; do
  4060. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4061. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4062. # Check for GNU ac_path_GREP and select it if it is found.
  4063. # Check for GNU $ac_path_GREP
  4064. case `"$ac_path_GREP" --version 2>&1` in
  4065. *GNU*)
  4066. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4067. *)
  4068. ac_count=0
  4069. $as_echo_n 0123456789 >"conftest.in"
  4070. while :
  4071. do
  4072. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4073. mv "conftest.tmp" "conftest.in"
  4074. cp "conftest.in" "conftest.nl"
  4075. $as_echo 'GREP' >> "conftest.nl"
  4076. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4077. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4078. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4079. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4080. # Best one so far, save it but keep looking for a better one
  4081. ac_cv_path_GREP="$ac_path_GREP"
  4082. ac_path_GREP_max=$ac_count
  4083. fi
  4084. # 10*(2^10) chars as input seems more than enough
  4085. test $ac_count -gt 10 && break
  4086. done
  4087. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4088. esac
  4089. $ac_path_GREP_found && break 3
  4090. done
  4091. done
  4092. done
  4093. IFS=$as_save_IFS
  4094. if test -z "$ac_cv_path_GREP"; then
  4095. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4096. fi
  4097. else
  4098. ac_cv_path_GREP=$GREP
  4099. fi
  4100. fi
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4102. $as_echo "$ac_cv_path_GREP" >&6; }
  4103. GREP="$ac_cv_path_GREP"
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4105. $as_echo_n "checking for egrep... " >&6; }
  4106. if test "${ac_cv_path_EGREP+set}" = set; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4110. then ac_cv_path_EGREP="$GREP -E"
  4111. else
  4112. if test -z "$EGREP"; then
  4113. ac_path_EGREP_found=false
  4114. # Loop through the user's path and test for each of PROGNAME-LIST
  4115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4116. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4117. do
  4118. IFS=$as_save_IFS
  4119. test -z "$as_dir" && as_dir=.
  4120. for ac_prog in egrep; do
  4121. for ac_exec_ext in '' $ac_executable_extensions; do
  4122. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4123. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4124. # Check for GNU ac_path_EGREP and select it if it is found.
  4125. # Check for GNU $ac_path_EGREP
  4126. case `"$ac_path_EGREP" --version 2>&1` in
  4127. *GNU*)
  4128. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4129. *)
  4130. ac_count=0
  4131. $as_echo_n 0123456789 >"conftest.in"
  4132. while :
  4133. do
  4134. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4135. mv "conftest.tmp" "conftest.in"
  4136. cp "conftest.in" "conftest.nl"
  4137. $as_echo 'EGREP' >> "conftest.nl"
  4138. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4139. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4140. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4141. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4142. # Best one so far, save it but keep looking for a better one
  4143. ac_cv_path_EGREP="$ac_path_EGREP"
  4144. ac_path_EGREP_max=$ac_count
  4145. fi
  4146. # 10*(2^10) chars as input seems more than enough
  4147. test $ac_count -gt 10 && break
  4148. done
  4149. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4150. esac
  4151. $ac_path_EGREP_found && break 3
  4152. done
  4153. done
  4154. done
  4155. IFS=$as_save_IFS
  4156. if test -z "$ac_cv_path_EGREP"; then
  4157. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4158. fi
  4159. else
  4160. ac_cv_path_EGREP=$EGREP
  4161. fi
  4162. fi
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4165. $as_echo "$ac_cv_path_EGREP" >&6; }
  4166. EGREP="$ac_cv_path_EGREP"
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4168. $as_echo_n "checking for ANSI C header files... " >&6; }
  4169. if test "${ac_cv_header_stdc+set}" = set; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4173. /* end confdefs.h. */
  4174. #include <stdlib.h>
  4175. #include <stdarg.h>
  4176. #include <string.h>
  4177. #include <float.h>
  4178. int
  4179. main ()
  4180. {
  4181. ;
  4182. return 0;
  4183. }
  4184. _ACEOF
  4185. if ac_fn_c_try_compile "$LINENO"; then :
  4186. ac_cv_header_stdc=yes
  4187. else
  4188. ac_cv_header_stdc=no
  4189. fi
  4190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4191. if test $ac_cv_header_stdc = yes; then
  4192. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4194. /* end confdefs.h. */
  4195. #include <string.h>
  4196. _ACEOF
  4197. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4198. $EGREP "memchr" >/dev/null 2>&1; then :
  4199. else
  4200. ac_cv_header_stdc=no
  4201. fi
  4202. rm -f conftest*
  4203. fi
  4204. if test $ac_cv_header_stdc = yes; then
  4205. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4207. /* end confdefs.h. */
  4208. #include <stdlib.h>
  4209. _ACEOF
  4210. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4211. $EGREP "free" >/dev/null 2>&1; then :
  4212. else
  4213. ac_cv_header_stdc=no
  4214. fi
  4215. rm -f conftest*
  4216. fi
  4217. if test $ac_cv_header_stdc = yes; then
  4218. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4219. if test "$cross_compiling" = yes; then :
  4220. :
  4221. else
  4222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4223. /* end confdefs.h. */
  4224. #include <ctype.h>
  4225. #include <stdlib.h>
  4226. #if ((' ' & 0x0FF) == 0x020)
  4227. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4228. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4229. #else
  4230. # define ISLOWER(c) \
  4231. (('a' <= (c) && (c) <= 'i') \
  4232. || ('j' <= (c) && (c) <= 'r') \
  4233. || ('s' <= (c) && (c) <= 'z'))
  4234. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4235. #endif
  4236. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4237. int
  4238. main ()
  4239. {
  4240. int i;
  4241. for (i = 0; i < 256; i++)
  4242. if (XOR (islower (i), ISLOWER (i))
  4243. || toupper (i) != TOUPPER (i))
  4244. return 2;
  4245. return 0;
  4246. }
  4247. _ACEOF
  4248. if ac_fn_c_try_run "$LINENO"; then :
  4249. else
  4250. ac_cv_header_stdc=no
  4251. fi
  4252. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4253. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4254. fi
  4255. fi
  4256. fi
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4258. $as_echo "$ac_cv_header_stdc" >&6; }
  4259. if test $ac_cv_header_stdc = yes; then
  4260. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4261. fi
  4262. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4263. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4264. inttypes.h stdint.h unistd.h
  4265. do :
  4266. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4267. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4268. "
  4269. eval as_val=\$$as_ac_Header
  4270. if test "x$as_val" = x""yes; then :
  4271. cat >>confdefs.h <<_ACEOF
  4272. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4273. _ACEOF
  4274. fi
  4275. done
  4276. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4277. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4278. MINIX=yes
  4279. else
  4280. MINIX=
  4281. fi
  4282. if test "$MINIX" = yes; then
  4283. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4284. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4285. $as_echo "#define _MINIX 1" >>confdefs.h
  4286. fi
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4288. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4289. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4293. /* end confdefs.h. */
  4294. # define __EXTENSIONS__ 1
  4295. $ac_includes_default
  4296. int
  4297. main ()
  4298. {
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. if ac_fn_c_try_compile "$LINENO"; then :
  4304. ac_cv_safe_to_define___extensions__=yes
  4305. else
  4306. ac_cv_safe_to_define___extensions__=no
  4307. fi
  4308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4311. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4312. test $ac_cv_safe_to_define___extensions__ = yes &&
  4313. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4314. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4315. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4316. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4317. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4318. test "$program_prefix" != NONE &&
  4319. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4320. # Use a double $ so make ignores it.
  4321. test "$program_suffix" != NONE &&
  4322. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4323. # Double any \ or $.
  4324. # By default was `s,x,x', remove it if useless.
  4325. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4326. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4327. # Find a good install program. We prefer a C program (faster),
  4328. # so one script is as good as another. But avoid the broken or
  4329. # incompatible versions:
  4330. # SysV /etc/install, /usr/sbin/install
  4331. # SunOS /usr/etc/install
  4332. # IRIX /sbin/install
  4333. # AIX /bin/install
  4334. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4335. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4336. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4337. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4338. # OS/2's system install, which has a completely different semantic
  4339. # ./install, which can be erroneously created by make from ./install.sh.
  4340. # Reject install programs that cannot install multiple files.
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4342. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4343. if test -z "$INSTALL"; then
  4344. if test "${ac_cv_path_install+set}" = set; then :
  4345. $as_echo_n "(cached) " >&6
  4346. else
  4347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4348. for as_dir in $PATH
  4349. do
  4350. IFS=$as_save_IFS
  4351. test -z "$as_dir" && as_dir=.
  4352. # Account for people who put trailing slashes in PATH elements.
  4353. case $as_dir/ in #((
  4354. ./ | .// | /[cC]/* | \
  4355. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4356. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4357. /usr/ucb/* ) ;;
  4358. *)
  4359. # OSF1 and SCO ODT 3.0 have their own names for install.
  4360. # Don't use installbsd from OSF since it installs stuff as root
  4361. # by default.
  4362. for ac_prog in ginstall scoinst install; do
  4363. for ac_exec_ext in '' $ac_executable_extensions; do
  4364. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4365. if test $ac_prog = install &&
  4366. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4367. # AIX install. It has an incompatible calling convention.
  4368. :
  4369. elif test $ac_prog = install &&
  4370. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4371. # program-specific install script used by HP pwplus--don't use.
  4372. :
  4373. else
  4374. rm -rf conftest.one conftest.two conftest.dir
  4375. echo one > conftest.one
  4376. echo two > conftest.two
  4377. mkdir conftest.dir
  4378. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4379. test -s conftest.one && test -s conftest.two &&
  4380. test -s conftest.dir/conftest.one &&
  4381. test -s conftest.dir/conftest.two
  4382. then
  4383. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4384. break 3
  4385. fi
  4386. fi
  4387. fi
  4388. done
  4389. done
  4390. ;;
  4391. esac
  4392. done
  4393. IFS=$as_save_IFS
  4394. rm -rf conftest.one conftest.two conftest.dir
  4395. fi
  4396. if test "${ac_cv_path_install+set}" = set; then
  4397. INSTALL=$ac_cv_path_install
  4398. else
  4399. # As a last resort, use the slow shell script. Don't cache a
  4400. # value for INSTALL within a source directory, because that will
  4401. # break other packages using the cache if that directory is
  4402. # removed, or if the value is a relative name.
  4403. INSTALL=$ac_install_sh
  4404. fi
  4405. fi
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4407. $as_echo "$INSTALL" >&6; }
  4408. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4409. # It thinks the first close brace ends the variable substitution.
  4410. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4411. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4412. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4413. rm -rf .tst 2>/dev/null
  4414. mkdir .tst 2>/dev/null
  4415. if test -d .tst; then
  4416. am__leading_dot=.
  4417. else
  4418. am__leading_dot=_
  4419. fi
  4420. rmdir .tst 2>/dev/null
  4421. DEPDIR="${am__leading_dot}deps"
  4422. case `pwd` in
  4423. *\ * | *\ *)
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4425. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4426. esac
  4427. macro_version='2.2.7a'
  4428. macro_revision='1.3134'
  4429. ltmain="$ac_aux_dir/ltmain.sh"
  4430. # Backslashify metacharacters that are still active within
  4431. # double-quoted strings.
  4432. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4433. # Same as above, but do not quote variable references.
  4434. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4435. # Sed substitution to delay expansion of an escaped shell variable in a
  4436. # double_quote_subst'ed string.
  4437. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4438. # Sed substitution to delay expansion of an escaped single quote.
  4439. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4440. # Sed substitution to avoid accidental globbing in evaled expressions
  4441. no_glob_subst='s/\*/\\\*/g'
  4442. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4443. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4444. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4446. $as_echo_n "checking how to print strings... " >&6; }
  4447. # Test print first, because it will be a builtin if present.
  4448. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4449. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4450. ECHO='print -r --'
  4451. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4452. ECHO='printf %s\n'
  4453. else
  4454. # Use this function as a fallback that always works.
  4455. func_fallback_echo ()
  4456. {
  4457. eval 'cat <<_LTECHO_EOF
  4458. $1
  4459. _LTECHO_EOF'
  4460. }
  4461. ECHO='func_fallback_echo'
  4462. fi
  4463. # func_echo_all arg...
  4464. # Invoke $ECHO with all args, space-separated.
  4465. func_echo_all ()
  4466. {
  4467. $ECHO ""
  4468. }
  4469. case "$ECHO" in
  4470. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4471. $as_echo "printf" >&6; } ;;
  4472. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4473. $as_echo "print -r" >&6; } ;;
  4474. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4475. $as_echo "cat" >&6; } ;;
  4476. esac
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4478. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4479. if test "${ac_cv_path_SED+set}" = set; then :
  4480. $as_echo_n "(cached) " >&6
  4481. else
  4482. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4483. for ac_i in 1 2 3 4 5 6 7; do
  4484. ac_script="$ac_script$as_nl$ac_script"
  4485. done
  4486. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4487. { ac_script=; unset ac_script;}
  4488. if test -z "$SED"; then
  4489. ac_path_SED_found=false
  4490. # Loop through the user's path and test for each of PROGNAME-LIST
  4491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4492. for as_dir in $PATH
  4493. do
  4494. IFS=$as_save_IFS
  4495. test -z "$as_dir" && as_dir=.
  4496. for ac_prog in sed gsed; do
  4497. for ac_exec_ext in '' $ac_executable_extensions; do
  4498. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4499. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4500. # Check for GNU ac_path_SED and select it if it is found.
  4501. # Check for GNU $ac_path_SED
  4502. case `"$ac_path_SED" --version 2>&1` in
  4503. *GNU*)
  4504. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4505. *)
  4506. ac_count=0
  4507. $as_echo_n 0123456789 >"conftest.in"
  4508. while :
  4509. do
  4510. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4511. mv "conftest.tmp" "conftest.in"
  4512. cp "conftest.in" "conftest.nl"
  4513. $as_echo '' >> "conftest.nl"
  4514. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4515. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4516. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4517. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4518. # Best one so far, save it but keep looking for a better one
  4519. ac_cv_path_SED="$ac_path_SED"
  4520. ac_path_SED_max=$ac_count
  4521. fi
  4522. # 10*(2^10) chars as input seems more than enough
  4523. test $ac_count -gt 10 && break
  4524. done
  4525. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4526. esac
  4527. $ac_path_SED_found && break 3
  4528. done
  4529. done
  4530. done
  4531. IFS=$as_save_IFS
  4532. if test -z "$ac_cv_path_SED"; then
  4533. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4534. fi
  4535. else
  4536. ac_cv_path_SED=$SED
  4537. fi
  4538. fi
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4540. $as_echo "$ac_cv_path_SED" >&6; }
  4541. SED="$ac_cv_path_SED"
  4542. rm -f conftest.sed
  4543. test -z "$SED" && SED=sed
  4544. Xsed="$SED -e 1s/^X//"
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4546. $as_echo_n "checking for fgrep... " >&6; }
  4547. if test "${ac_cv_path_FGREP+set}" = set; then :
  4548. $as_echo_n "(cached) " >&6
  4549. else
  4550. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4551. then ac_cv_path_FGREP="$GREP -F"
  4552. else
  4553. if test -z "$FGREP"; then
  4554. ac_path_FGREP_found=false
  4555. # Loop through the user's path and test for each of PROGNAME-LIST
  4556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4557. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4558. do
  4559. IFS=$as_save_IFS
  4560. test -z "$as_dir" && as_dir=.
  4561. for ac_prog in fgrep; do
  4562. for ac_exec_ext in '' $ac_executable_extensions; do
  4563. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4564. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4565. # Check for GNU ac_path_FGREP and select it if it is found.
  4566. # Check for GNU $ac_path_FGREP
  4567. case `"$ac_path_FGREP" --version 2>&1` in
  4568. *GNU*)
  4569. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4570. *)
  4571. ac_count=0
  4572. $as_echo_n 0123456789 >"conftest.in"
  4573. while :
  4574. do
  4575. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4576. mv "conftest.tmp" "conftest.in"
  4577. cp "conftest.in" "conftest.nl"
  4578. $as_echo 'FGREP' >> "conftest.nl"
  4579. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4580. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4581. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4582. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4583. # Best one so far, save it but keep looking for a better one
  4584. ac_cv_path_FGREP="$ac_path_FGREP"
  4585. ac_path_FGREP_max=$ac_count
  4586. fi
  4587. # 10*(2^10) chars as input seems more than enough
  4588. test $ac_count -gt 10 && break
  4589. done
  4590. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4591. esac
  4592. $ac_path_FGREP_found && break 3
  4593. done
  4594. done
  4595. done
  4596. IFS=$as_save_IFS
  4597. if test -z "$ac_cv_path_FGREP"; then
  4598. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4599. fi
  4600. else
  4601. ac_cv_path_FGREP=$FGREP
  4602. fi
  4603. fi
  4604. fi
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4606. $as_echo "$ac_cv_path_FGREP" >&6; }
  4607. FGREP="$ac_cv_path_FGREP"
  4608. test -z "$GREP" && GREP=grep
  4609. # Check whether --with-gnu-ld was given.
  4610. if test "${with_gnu_ld+set}" = set; then :
  4611. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4612. else
  4613. with_gnu_ld=no
  4614. fi
  4615. ac_prog=ld
  4616. if test "$GCC" = yes; then
  4617. # Check if gcc -print-prog-name=ld gives a path.
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4619. $as_echo_n "checking for ld used by $CC... " >&6; }
  4620. case $host in
  4621. *-*-mingw*)
  4622. # gcc leaves a trailing carriage return which upsets mingw
  4623. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4624. *)
  4625. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4626. esac
  4627. case $ac_prog in
  4628. # Accept absolute paths.
  4629. [\\/]* | ?:[\\/]*)
  4630. re_direlt='/[^/][^/]*/\.\./'
  4631. # Canonicalize the pathname of ld
  4632. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4633. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4634. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4635. done
  4636. test -z "$LD" && LD="$ac_prog"
  4637. ;;
  4638. "")
  4639. # If it fails, then pretend we aren't using GCC.
  4640. ac_prog=ld
  4641. ;;
  4642. *)
  4643. # If it is relative, then search for the first ld in PATH.
  4644. with_gnu_ld=unknown
  4645. ;;
  4646. esac
  4647. elif test "$with_gnu_ld" = yes; then
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4649. $as_echo_n "checking for GNU ld... " >&6; }
  4650. else
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4652. $as_echo_n "checking for non-GNU ld... " >&6; }
  4653. fi
  4654. if test "${lt_cv_path_LD+set}" = set; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. if test -z "$LD"; then
  4658. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4659. for ac_dir in $PATH; do
  4660. IFS="$lt_save_ifs"
  4661. test -z "$ac_dir" && ac_dir=.
  4662. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4663. lt_cv_path_LD="$ac_dir/$ac_prog"
  4664. # Check to see if the program is GNU ld. I'd rather use --version,
  4665. # but apparently some variants of GNU ld only accept -v.
  4666. # Break only if it was the GNU/non-GNU ld that we prefer.
  4667. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4668. *GNU* | *'with BFD'*)
  4669. test "$with_gnu_ld" != no && break
  4670. ;;
  4671. *)
  4672. test "$with_gnu_ld" != yes && break
  4673. ;;
  4674. esac
  4675. fi
  4676. done
  4677. IFS="$lt_save_ifs"
  4678. else
  4679. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4680. fi
  4681. fi
  4682. LD="$lt_cv_path_LD"
  4683. if test -n "$LD"; then
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4685. $as_echo "$LD" >&6; }
  4686. else
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4688. $as_echo "no" >&6; }
  4689. fi
  4690. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4692. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4693. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4697. case `$LD -v 2>&1 </dev/null` in
  4698. *GNU* | *'with BFD'*)
  4699. lt_cv_prog_gnu_ld=yes
  4700. ;;
  4701. *)
  4702. lt_cv_prog_gnu_ld=no
  4703. ;;
  4704. esac
  4705. fi
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4707. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4708. with_gnu_ld=$lt_cv_prog_gnu_ld
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4710. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4711. if test "${lt_cv_path_NM+set}" = set; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. if test -n "$NM"; then
  4715. # Let the user override the test.
  4716. lt_cv_path_NM="$NM"
  4717. else
  4718. lt_nm_to_check="${ac_tool_prefix}nm"
  4719. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4720. lt_nm_to_check="$lt_nm_to_check nm"
  4721. fi
  4722. for lt_tmp_nm in $lt_nm_to_check; do
  4723. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4724. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4725. IFS="$lt_save_ifs"
  4726. test -z "$ac_dir" && ac_dir=.
  4727. tmp_nm="$ac_dir/$lt_tmp_nm"
  4728. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4729. # Check to see if the nm accepts a BSD-compat flag.
  4730. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4731. # nm: unknown option "B" ignored
  4732. # Tru64's nm complains that /dev/null is an invalid object file
  4733. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4734. */dev/null* | *'Invalid file or object type'*)
  4735. lt_cv_path_NM="$tmp_nm -B"
  4736. break
  4737. ;;
  4738. *)
  4739. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4740. */dev/null*)
  4741. lt_cv_path_NM="$tmp_nm -p"
  4742. break
  4743. ;;
  4744. *)
  4745. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4746. continue # so that we can try to find one that supports BSD flags
  4747. ;;
  4748. esac
  4749. ;;
  4750. esac
  4751. fi
  4752. done
  4753. IFS="$lt_save_ifs"
  4754. done
  4755. : ${lt_cv_path_NM=no}
  4756. fi
  4757. fi
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4759. $as_echo "$lt_cv_path_NM" >&6; }
  4760. if test "$lt_cv_path_NM" != "no"; then
  4761. NM="$lt_cv_path_NM"
  4762. else
  4763. # Didn't find any BSD compatible name lister, look for dumpbin.
  4764. if test -n "$DUMPBIN"; then :
  4765. # Let the user override the test.
  4766. else
  4767. if test -n "$ac_tool_prefix"; then
  4768. for ac_prog in dumpbin "link -dump"
  4769. do
  4770. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4771. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4773. $as_echo_n "checking for $ac_word... " >&6; }
  4774. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. if test -n "$DUMPBIN"; then
  4778. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4779. else
  4780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4781. for as_dir in $PATH
  4782. do
  4783. IFS=$as_save_IFS
  4784. test -z "$as_dir" && as_dir=.
  4785. for ac_exec_ext in '' $ac_executable_extensions; do
  4786. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4787. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4789. break 2
  4790. fi
  4791. done
  4792. done
  4793. IFS=$as_save_IFS
  4794. fi
  4795. fi
  4796. DUMPBIN=$ac_cv_prog_DUMPBIN
  4797. if test -n "$DUMPBIN"; then
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4799. $as_echo "$DUMPBIN" >&6; }
  4800. else
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4802. $as_echo "no" >&6; }
  4803. fi
  4804. test -n "$DUMPBIN" && break
  4805. done
  4806. fi
  4807. if test -z "$DUMPBIN"; then
  4808. ac_ct_DUMPBIN=$DUMPBIN
  4809. for ac_prog in dumpbin "link -dump"
  4810. do
  4811. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4812. set dummy $ac_prog; ac_word=$2
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4814. $as_echo_n "checking for $ac_word... " >&6; }
  4815. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4816. $as_echo_n "(cached) " >&6
  4817. else
  4818. if test -n "$ac_ct_DUMPBIN"; then
  4819. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4820. else
  4821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4822. for as_dir in $PATH
  4823. do
  4824. IFS=$as_save_IFS
  4825. test -z "$as_dir" && as_dir=.
  4826. for ac_exec_ext in '' $ac_executable_extensions; do
  4827. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4828. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4830. break 2
  4831. fi
  4832. done
  4833. done
  4834. IFS=$as_save_IFS
  4835. fi
  4836. fi
  4837. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4838. if test -n "$ac_ct_DUMPBIN"; then
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4840. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4841. else
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4843. $as_echo "no" >&6; }
  4844. fi
  4845. test -n "$ac_ct_DUMPBIN" && break
  4846. done
  4847. if test "x$ac_ct_DUMPBIN" = x; then
  4848. DUMPBIN=":"
  4849. else
  4850. case $cross_compiling:$ac_tool_warned in
  4851. yes:)
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4854. ac_tool_warned=yes ;;
  4855. esac
  4856. DUMPBIN=$ac_ct_DUMPBIN
  4857. fi
  4858. fi
  4859. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4860. *COFF*)
  4861. DUMPBIN="$DUMPBIN -symbols"
  4862. ;;
  4863. *)
  4864. DUMPBIN=:
  4865. ;;
  4866. esac
  4867. fi
  4868. if test "$DUMPBIN" != ":"; then
  4869. NM="$DUMPBIN"
  4870. fi
  4871. fi
  4872. test -z "$NM" && NM=nm
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4874. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4875. if test "${lt_cv_nm_interface+set}" = set; then :
  4876. $as_echo_n "(cached) " >&6
  4877. else
  4878. lt_cv_nm_interface="BSD nm"
  4879. echo "int some_variable = 0;" > conftest.$ac_ext
  4880. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4881. (eval "$ac_compile" 2>conftest.err)
  4882. cat conftest.err >&5
  4883. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4884. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4885. cat conftest.err >&5
  4886. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4887. cat conftest.out >&5
  4888. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4889. lt_cv_nm_interface="MS dumpbin"
  4890. fi
  4891. rm -f conftest*
  4892. fi
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4894. $as_echo "$lt_cv_nm_interface" >&6; }
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4896. $as_echo_n "checking whether ln -s works... " >&6; }
  4897. LN_S=$as_ln_s
  4898. if test "$LN_S" = "ln -s"; then
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4900. $as_echo "yes" >&6; }
  4901. else
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4903. $as_echo "no, using $LN_S" >&6; }
  4904. fi
  4905. # find the maximum length of command line arguments
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4907. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4908. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4909. $as_echo_n "(cached) " >&6
  4910. else
  4911. i=0
  4912. teststring="ABCD"
  4913. case $build_os in
  4914. msdosdjgpp*)
  4915. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4916. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4917. # during glob expansion). Even if it were fixed, the result of this
  4918. # check would be larger than it should be.
  4919. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4920. ;;
  4921. gnu*)
  4922. # Under GNU Hurd, this test is not required because there is
  4923. # no limit to the length of command line arguments.
  4924. # Libtool will interpret -1 as no limit whatsoever
  4925. lt_cv_sys_max_cmd_len=-1;
  4926. ;;
  4927. cygwin* | mingw* | cegcc*)
  4928. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4929. # about 5 minutes as the teststring grows exponentially.
  4930. # Worse, since 9x/ME are not pre-emptively multitasking,
  4931. # you end up with a "frozen" computer, even though with patience
  4932. # the test eventually succeeds (with a max line length of 256k).
  4933. # Instead, let's just punt: use the minimum linelength reported by
  4934. # all of the supported platforms: 8192 (on NT/2K/XP).
  4935. lt_cv_sys_max_cmd_len=8192;
  4936. ;;
  4937. mint*)
  4938. # On MiNT this can take a long time and run out of memory.
  4939. lt_cv_sys_max_cmd_len=8192;
  4940. ;;
  4941. amigaos*)
  4942. # On AmigaOS with pdksh, this test takes hours, literally.
  4943. # So we just punt and use a minimum line length of 8192.
  4944. lt_cv_sys_max_cmd_len=8192;
  4945. ;;
  4946. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4947. # This has been around since 386BSD, at least. Likely further.
  4948. if test -x /sbin/sysctl; then
  4949. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4950. elif test -x /usr/sbin/sysctl; then
  4951. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4952. else
  4953. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4954. fi
  4955. # And add a safety zone
  4956. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4957. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4958. ;;
  4959. interix*)
  4960. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4961. lt_cv_sys_max_cmd_len=196608
  4962. ;;
  4963. osf*)
  4964. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4965. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4966. # nice to cause kernel panics so lets avoid the loop below.
  4967. # First set a reasonable default.
  4968. lt_cv_sys_max_cmd_len=16384
  4969. #
  4970. if test -x /sbin/sysconfig; then
  4971. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4972. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4973. esac
  4974. fi
  4975. ;;
  4976. sco3.2v5*)
  4977. lt_cv_sys_max_cmd_len=102400
  4978. ;;
  4979. sysv5* | sco5v6* | sysv4.2uw2*)
  4980. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4981. if test -n "$kargmax"; then
  4982. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4983. else
  4984. lt_cv_sys_max_cmd_len=32768
  4985. fi
  4986. ;;
  4987. *)
  4988. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4989. if test -n "$lt_cv_sys_max_cmd_len"; then
  4990. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4991. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4992. else
  4993. # Make teststring a little bigger before we do anything with it.
  4994. # a 1K string should be a reasonable start.
  4995. for i in 1 2 3 4 5 6 7 8 ; do
  4996. teststring=$teststring$teststring
  4997. done
  4998. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4999. # If test is not a shell built-in, we'll probably end up computing a
  5000. # maximum length that is only half of the actual maximum length, but
  5001. # we can't tell.
  5002. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5003. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5004. test $i != 17 # 1/2 MB should be enough
  5005. do
  5006. i=`expr $i + 1`
  5007. teststring=$teststring$teststring
  5008. done
  5009. # Only check the string length outside the loop.
  5010. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5011. teststring=
  5012. # Add a significant safety factor because C++ compilers can tack on
  5013. # massive amounts of additional arguments before passing them to the
  5014. # linker. It appears as though 1/2 is a usable value.
  5015. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5016. fi
  5017. ;;
  5018. esac
  5019. fi
  5020. if test -n $lt_cv_sys_max_cmd_len ; then
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5022. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5023. else
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5025. $as_echo "none" >&6; }
  5026. fi
  5027. max_cmd_len=$lt_cv_sys_max_cmd_len
  5028. : ${CP="cp -f"}
  5029. : ${MV="mv -f"}
  5030. : ${RM="rm -f"}
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5032. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5033. # Try some XSI features
  5034. xsi_shell=no
  5035. ( _lt_dummy="a/b/c"
  5036. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5037. = c,a/b,, \
  5038. && eval 'test $(( 1 + 1 )) -eq 2 \
  5039. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5040. && xsi_shell=yes
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5042. $as_echo "$xsi_shell" >&6; }
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5044. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5045. lt_shell_append=no
  5046. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5047. >/dev/null 2>&1 \
  5048. && lt_shell_append=yes
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5050. $as_echo "$lt_shell_append" >&6; }
  5051. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5052. lt_unset=unset
  5053. else
  5054. lt_unset=false
  5055. fi
  5056. # test EBCDIC or ASCII
  5057. case `echo X|tr X '\101'` in
  5058. A) # ASCII based system
  5059. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5060. lt_SP2NL='tr \040 \012'
  5061. lt_NL2SP='tr \015\012 \040\040'
  5062. ;;
  5063. *) # EBCDIC based system
  5064. lt_SP2NL='tr \100 \n'
  5065. lt_NL2SP='tr \r\n \100\100'
  5066. ;;
  5067. esac
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5069. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5070. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5071. $as_echo_n "(cached) " >&6
  5072. else
  5073. lt_cv_ld_reload_flag='-r'
  5074. fi
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5076. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5077. reload_flag=$lt_cv_ld_reload_flag
  5078. case $reload_flag in
  5079. "" | " "*) ;;
  5080. *) reload_flag=" $reload_flag" ;;
  5081. esac
  5082. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5083. case $host_os in
  5084. darwin*)
  5085. if test "$GCC" = yes; then
  5086. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5087. else
  5088. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5089. fi
  5090. ;;
  5091. esac
  5092. if test -n "$ac_tool_prefix"; then
  5093. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5094. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5096. $as_echo_n "checking for $ac_word... " >&6; }
  5097. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5098. $as_echo_n "(cached) " >&6
  5099. else
  5100. if test -n "$OBJDUMP"; then
  5101. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5102. else
  5103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5104. for as_dir in $PATH
  5105. do
  5106. IFS=$as_save_IFS
  5107. test -z "$as_dir" && as_dir=.
  5108. for ac_exec_ext in '' $ac_executable_extensions; do
  5109. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5110. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5112. break 2
  5113. fi
  5114. done
  5115. done
  5116. IFS=$as_save_IFS
  5117. fi
  5118. fi
  5119. OBJDUMP=$ac_cv_prog_OBJDUMP
  5120. if test -n "$OBJDUMP"; then
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5122. $as_echo "$OBJDUMP" >&6; }
  5123. else
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5125. $as_echo "no" >&6; }
  5126. fi
  5127. fi
  5128. if test -z "$ac_cv_prog_OBJDUMP"; then
  5129. ac_ct_OBJDUMP=$OBJDUMP
  5130. # Extract the first word of "objdump", so it can be a program name with args.
  5131. set dummy objdump; ac_word=$2
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5133. $as_echo_n "checking for $ac_word... " >&6; }
  5134. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5135. $as_echo_n "(cached) " >&6
  5136. else
  5137. if test -n "$ac_ct_OBJDUMP"; then
  5138. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5139. else
  5140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5141. for as_dir in $PATH
  5142. do
  5143. IFS=$as_save_IFS
  5144. test -z "$as_dir" && as_dir=.
  5145. for ac_exec_ext in '' $ac_executable_extensions; do
  5146. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5147. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5149. break 2
  5150. fi
  5151. done
  5152. done
  5153. IFS=$as_save_IFS
  5154. fi
  5155. fi
  5156. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5157. if test -n "$ac_ct_OBJDUMP"; then
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5159. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5160. else
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5162. $as_echo "no" >&6; }
  5163. fi
  5164. if test "x$ac_ct_OBJDUMP" = x; then
  5165. OBJDUMP="false"
  5166. else
  5167. case $cross_compiling:$ac_tool_warned in
  5168. yes:)
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5170. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5171. ac_tool_warned=yes ;;
  5172. esac
  5173. OBJDUMP=$ac_ct_OBJDUMP
  5174. fi
  5175. else
  5176. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5177. fi
  5178. test -z "$OBJDUMP" && OBJDUMP=objdump
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5180. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5181. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5182. $as_echo_n "(cached) " >&6
  5183. else
  5184. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5185. lt_cv_file_magic_test_file=
  5186. lt_cv_deplibs_check_method='unknown'
  5187. # Need to set the preceding variable on all platforms that support
  5188. # interlibrary dependencies.
  5189. # 'none' -- dependencies not supported.
  5190. # `unknown' -- same as none, but documents that we really don't know.
  5191. # 'pass_all' -- all dependencies passed with no checks.
  5192. # 'test_compile' -- check by making test program.
  5193. # 'file_magic [[regex]]' -- check by looking for files in library path
  5194. # which responds to the $file_magic_cmd with a given extended regex.
  5195. # If you have `file' or equivalent on your system and you're not sure
  5196. # whether `pass_all' will *always* work, you probably want this one.
  5197. case $host_os in
  5198. aix[4-9]*)
  5199. lt_cv_deplibs_check_method=pass_all
  5200. ;;
  5201. beos*)
  5202. lt_cv_deplibs_check_method=pass_all
  5203. ;;
  5204. bsdi[45]*)
  5205. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5206. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5207. lt_cv_file_magic_test_file=/shlib/libc.so
  5208. ;;
  5209. cygwin*)
  5210. # func_win32_libid is a shell function defined in ltmain.sh
  5211. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5212. lt_cv_file_magic_cmd='func_win32_libid'
  5213. ;;
  5214. mingw* | pw32*)
  5215. # Base MSYS/MinGW do not provide the 'file' command needed by
  5216. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5217. # unless we find 'file', for example because we are cross-compiling.
  5218. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5219. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5220. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5221. lt_cv_file_magic_cmd='func_win32_libid'
  5222. else
  5223. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5224. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5225. fi
  5226. ;;
  5227. cegcc*)
  5228. # use the weaker test based on 'objdump'. See mingw*.
  5229. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5230. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5231. ;;
  5232. darwin* | rhapsody*)
  5233. lt_cv_deplibs_check_method=pass_all
  5234. ;;
  5235. freebsd* | dragonfly*)
  5236. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5237. case $host_cpu in
  5238. i*86 )
  5239. # Not sure whether the presence of OpenBSD here was a mistake.
  5240. # Let's accept both of them until this is cleared up.
  5241. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5242. lt_cv_file_magic_cmd=/usr/bin/file
  5243. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5244. ;;
  5245. esac
  5246. else
  5247. lt_cv_deplibs_check_method=pass_all
  5248. fi
  5249. ;;
  5250. gnu*)
  5251. lt_cv_deplibs_check_method=pass_all
  5252. ;;
  5253. haiku*)
  5254. lt_cv_deplibs_check_method=pass_all
  5255. ;;
  5256. hpux10.20* | hpux11*)
  5257. lt_cv_file_magic_cmd=/usr/bin/file
  5258. case $host_cpu in
  5259. ia64*)
  5260. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5261. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5262. ;;
  5263. hppa*64*)
  5264. 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]'
  5265. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5266. ;;
  5267. *)
  5268. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5269. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5270. ;;
  5271. esac
  5272. ;;
  5273. interix[3-9]*)
  5274. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5275. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5276. ;;
  5277. irix5* | irix6* | nonstopux*)
  5278. case $LD in
  5279. *-32|*"-32 ") libmagic=32-bit;;
  5280. *-n32|*"-n32 ") libmagic=N32;;
  5281. *-64|*"-64 ") libmagic=64-bit;;
  5282. *) libmagic=never-match;;
  5283. esac
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. # This must be Linux ELF.
  5287. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5288. lt_cv_deplibs_check_method=pass_all
  5289. ;;
  5290. netbsd*)
  5291. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5292. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5293. else
  5294. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5295. fi
  5296. ;;
  5297. newos6*)
  5298. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5299. lt_cv_file_magic_cmd=/usr/bin/file
  5300. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5301. ;;
  5302. *nto* | *qnx*)
  5303. lt_cv_deplibs_check_method=pass_all
  5304. ;;
  5305. openbsd*)
  5306. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5307. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5308. else
  5309. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5310. fi
  5311. ;;
  5312. osf3* | osf4* | osf5*)
  5313. lt_cv_deplibs_check_method=pass_all
  5314. ;;
  5315. rdos*)
  5316. lt_cv_deplibs_check_method=pass_all
  5317. ;;
  5318. solaris*)
  5319. lt_cv_deplibs_check_method=pass_all
  5320. ;;
  5321. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5322. lt_cv_deplibs_check_method=pass_all
  5323. ;;
  5324. sysv4 | sysv4.3*)
  5325. case $host_vendor in
  5326. motorola)
  5327. 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]'
  5328. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5329. ;;
  5330. ncr)
  5331. lt_cv_deplibs_check_method=pass_all
  5332. ;;
  5333. sequent)
  5334. lt_cv_file_magic_cmd='/bin/file'
  5335. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5336. ;;
  5337. sni)
  5338. lt_cv_file_magic_cmd='/bin/file'
  5339. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5340. lt_cv_file_magic_test_file=/lib/libc.so
  5341. ;;
  5342. siemens)
  5343. lt_cv_deplibs_check_method=pass_all
  5344. ;;
  5345. pc)
  5346. lt_cv_deplibs_check_method=pass_all
  5347. ;;
  5348. esac
  5349. ;;
  5350. tpf*)
  5351. lt_cv_deplibs_check_method=pass_all
  5352. ;;
  5353. esac
  5354. fi
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5356. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5357. file_magic_cmd=$lt_cv_file_magic_cmd
  5358. deplibs_check_method=$lt_cv_deplibs_check_method
  5359. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5360. if test -n "$ac_tool_prefix"; then
  5361. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5362. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5364. $as_echo_n "checking for $ac_word... " >&6; }
  5365. if test "${ac_cv_prog_AR+set}" = set; then :
  5366. $as_echo_n "(cached) " >&6
  5367. else
  5368. if test -n "$AR"; then
  5369. ac_cv_prog_AR="$AR" # Let the user override the test.
  5370. else
  5371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5372. for as_dir in $PATH
  5373. do
  5374. IFS=$as_save_IFS
  5375. test -z "$as_dir" && as_dir=.
  5376. for ac_exec_ext in '' $ac_executable_extensions; do
  5377. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5378. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5380. break 2
  5381. fi
  5382. done
  5383. done
  5384. IFS=$as_save_IFS
  5385. fi
  5386. fi
  5387. AR=$ac_cv_prog_AR
  5388. if test -n "$AR"; then
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5390. $as_echo "$AR" >&6; }
  5391. else
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5393. $as_echo "no" >&6; }
  5394. fi
  5395. fi
  5396. if test -z "$ac_cv_prog_AR"; then
  5397. ac_ct_AR=$AR
  5398. # Extract the first word of "ar", so it can be a program name with args.
  5399. set dummy ar; ac_word=$2
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5401. $as_echo_n "checking for $ac_word... " >&6; }
  5402. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5403. $as_echo_n "(cached) " >&6
  5404. else
  5405. if test -n "$ac_ct_AR"; then
  5406. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5407. else
  5408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5409. for as_dir in $PATH
  5410. do
  5411. IFS=$as_save_IFS
  5412. test -z "$as_dir" && as_dir=.
  5413. for ac_exec_ext in '' $ac_executable_extensions; do
  5414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5415. ac_cv_prog_ac_ct_AR="ar"
  5416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5417. break 2
  5418. fi
  5419. done
  5420. done
  5421. IFS=$as_save_IFS
  5422. fi
  5423. fi
  5424. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5425. if test -n "$ac_ct_AR"; then
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5427. $as_echo "$ac_ct_AR" >&6; }
  5428. else
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5430. $as_echo "no" >&6; }
  5431. fi
  5432. if test "x$ac_ct_AR" = x; then
  5433. AR="false"
  5434. else
  5435. case $cross_compiling:$ac_tool_warned in
  5436. yes:)
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5438. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5439. ac_tool_warned=yes ;;
  5440. esac
  5441. AR=$ac_ct_AR
  5442. fi
  5443. else
  5444. AR="$ac_cv_prog_AR"
  5445. fi
  5446. test -z "$AR" && AR=ar
  5447. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5448. if test -n "$ac_tool_prefix"; then
  5449. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5450. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5452. $as_echo_n "checking for $ac_word... " >&6; }
  5453. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5454. $as_echo_n "(cached) " >&6
  5455. else
  5456. if test -n "$STRIP"; then
  5457. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5458. else
  5459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5460. for as_dir in $PATH
  5461. do
  5462. IFS=$as_save_IFS
  5463. test -z "$as_dir" && as_dir=.
  5464. for ac_exec_ext in '' $ac_executable_extensions; do
  5465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5466. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5468. break 2
  5469. fi
  5470. done
  5471. done
  5472. IFS=$as_save_IFS
  5473. fi
  5474. fi
  5475. STRIP=$ac_cv_prog_STRIP
  5476. if test -n "$STRIP"; then
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5478. $as_echo "$STRIP" >&6; }
  5479. else
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5481. $as_echo "no" >&6; }
  5482. fi
  5483. fi
  5484. if test -z "$ac_cv_prog_STRIP"; then
  5485. ac_ct_STRIP=$STRIP
  5486. # Extract the first word of "strip", so it can be a program name with args.
  5487. set dummy strip; ac_word=$2
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5489. $as_echo_n "checking for $ac_word... " >&6; }
  5490. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. if test -n "$ac_ct_STRIP"; then
  5494. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5495. else
  5496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5497. for as_dir in $PATH
  5498. do
  5499. IFS=$as_save_IFS
  5500. test -z "$as_dir" && as_dir=.
  5501. for ac_exec_ext in '' $ac_executable_extensions; do
  5502. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5503. ac_cv_prog_ac_ct_STRIP="strip"
  5504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5505. break 2
  5506. fi
  5507. done
  5508. done
  5509. IFS=$as_save_IFS
  5510. fi
  5511. fi
  5512. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5513. if test -n "$ac_ct_STRIP"; then
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5515. $as_echo "$ac_ct_STRIP" >&6; }
  5516. else
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5518. $as_echo "no" >&6; }
  5519. fi
  5520. if test "x$ac_ct_STRIP" = x; then
  5521. STRIP=":"
  5522. else
  5523. case $cross_compiling:$ac_tool_warned in
  5524. yes:)
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5526. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5527. ac_tool_warned=yes ;;
  5528. esac
  5529. STRIP=$ac_ct_STRIP
  5530. fi
  5531. else
  5532. STRIP="$ac_cv_prog_STRIP"
  5533. fi
  5534. test -z "$STRIP" && STRIP=:
  5535. if test -n "$ac_tool_prefix"; then
  5536. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5537. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5539. $as_echo_n "checking for $ac_word... " >&6; }
  5540. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. if test -n "$RANLIB"; then
  5544. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5545. else
  5546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5547. for as_dir in $PATH
  5548. do
  5549. IFS=$as_save_IFS
  5550. test -z "$as_dir" && as_dir=.
  5551. for ac_exec_ext in '' $ac_executable_extensions; do
  5552. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5553. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5555. break 2
  5556. fi
  5557. done
  5558. done
  5559. IFS=$as_save_IFS
  5560. fi
  5561. fi
  5562. RANLIB=$ac_cv_prog_RANLIB
  5563. if test -n "$RANLIB"; then
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5565. $as_echo "$RANLIB" >&6; }
  5566. else
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5568. $as_echo "no" >&6; }
  5569. fi
  5570. fi
  5571. if test -z "$ac_cv_prog_RANLIB"; then
  5572. ac_ct_RANLIB=$RANLIB
  5573. # Extract the first word of "ranlib", so it can be a program name with args.
  5574. set dummy ranlib; ac_word=$2
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5576. $as_echo_n "checking for $ac_word... " >&6; }
  5577. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. if test -n "$ac_ct_RANLIB"; then
  5581. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. test -z "$as_dir" && as_dir=.
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5590. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. IFS=$as_save_IFS
  5597. fi
  5598. fi
  5599. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5600. if test -n "$ac_ct_RANLIB"; then
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5602. $as_echo "$ac_ct_RANLIB" >&6; }
  5603. else
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5605. $as_echo "no" >&6; }
  5606. fi
  5607. if test "x$ac_ct_RANLIB" = x; then
  5608. RANLIB=":"
  5609. else
  5610. case $cross_compiling:$ac_tool_warned in
  5611. yes:)
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5614. ac_tool_warned=yes ;;
  5615. esac
  5616. RANLIB=$ac_ct_RANLIB
  5617. fi
  5618. else
  5619. RANLIB="$ac_cv_prog_RANLIB"
  5620. fi
  5621. test -z "$RANLIB" && RANLIB=:
  5622. # Determine commands to create old-style static archives.
  5623. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5624. old_postinstall_cmds='chmod 644 $oldlib'
  5625. old_postuninstall_cmds=
  5626. if test -n "$RANLIB"; then
  5627. case $host_os in
  5628. openbsd*)
  5629. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5630. ;;
  5631. *)
  5632. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5633. ;;
  5634. esac
  5635. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5636. fi
  5637. case $host_os in
  5638. darwin*)
  5639. lock_old_archive_extraction=yes ;;
  5640. *)
  5641. lock_old_archive_extraction=no ;;
  5642. esac
  5643. for ac_prog in gawk mawk nawk awk
  5644. do
  5645. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5646. set dummy $ac_prog; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if test "${ac_cv_prog_AWK+set}" = set; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$AWK"; then
  5653. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5662. ac_cv_prog_AWK="$ac_prog"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. AWK=$ac_cv_prog_AWK
  5672. if test -n "$AWK"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5674. $as_echo "$AWK" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. test -n "$AWK" && break
  5680. done
  5681. # If no C compiler was specified, use CC.
  5682. LTCC=${LTCC-"$CC"}
  5683. # If no C compiler flags were specified, use CFLAGS.
  5684. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5685. # Allow CC to be a program name with arguments.
  5686. compiler=$CC
  5687. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5689. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5690. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5691. $as_echo_n "(cached) " >&6
  5692. else
  5693. # These are sane defaults that work on at least a few old systems.
  5694. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5695. # Character class describing NM global symbol codes.
  5696. symcode='[BCDEGRST]'
  5697. # Regexp to match symbols that can be accessed directly from C.
  5698. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5699. # Define system-specific variables.
  5700. case $host_os in
  5701. aix*)
  5702. symcode='[BCDT]'
  5703. ;;
  5704. cygwin* | mingw* | pw32* | cegcc*)
  5705. symcode='[ABCDGISTW]'
  5706. ;;
  5707. hpux*)
  5708. if test "$host_cpu" = ia64; then
  5709. symcode='[ABCDEGRST]'
  5710. fi
  5711. ;;
  5712. irix* | nonstopux*)
  5713. symcode='[BCDEGRST]'
  5714. ;;
  5715. osf*)
  5716. symcode='[BCDEGQRST]'
  5717. ;;
  5718. solaris*)
  5719. symcode='[BDRT]'
  5720. ;;
  5721. sco3.2v5*)
  5722. symcode='[DT]'
  5723. ;;
  5724. sysv4.2uw2*)
  5725. symcode='[DT]'
  5726. ;;
  5727. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5728. symcode='[ABDT]'
  5729. ;;
  5730. sysv4)
  5731. symcode='[DFNSTU]'
  5732. ;;
  5733. esac
  5734. # If we're using GNU nm, then use its standard symbol codes.
  5735. case `$NM -V 2>&1` in
  5736. *GNU* | *'with BFD'*)
  5737. symcode='[ABCDGIRSTW]' ;;
  5738. esac
  5739. # Transform an extracted symbol line into a proper C declaration.
  5740. # Some systems (esp. on ia64) link data and code symbols differently,
  5741. # so use this general approach.
  5742. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5743. # Transform an extracted symbol line into symbol name and symbol address
  5744. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5745. 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'"
  5746. # Handle CRLF in mingw tool chain
  5747. opt_cr=
  5748. case $build_os in
  5749. mingw*)
  5750. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5751. ;;
  5752. esac
  5753. # Try without a prefix underscore, then with it.
  5754. for ac_symprfx in "" "_"; do
  5755. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5756. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5757. # Write the raw and C identifiers.
  5758. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5759. # Fake it for dumpbin and say T for any non-static function
  5760. # and D for any global variable.
  5761. # Also find C++ and __fastcall symbols from MSVC++,
  5762. # which start with @ or ?.
  5763. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5764. " {last_section=section; section=\$ 3};"\
  5765. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5766. " \$ 0!~/External *\|/{next};"\
  5767. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5768. " {if(hide[section]) next};"\
  5769. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5770. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5771. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5772. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5773. " ' prfx=^$ac_symprfx"
  5774. else
  5775. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5776. fi
  5777. # Check to see that the pipe works correctly.
  5778. pipe_works=no
  5779. rm -f conftest*
  5780. cat > conftest.$ac_ext <<_LT_EOF
  5781. #ifdef __cplusplus
  5782. extern "C" {
  5783. #endif
  5784. char nm_test_var;
  5785. void nm_test_func(void);
  5786. void nm_test_func(void){}
  5787. #ifdef __cplusplus
  5788. }
  5789. #endif
  5790. int main(){nm_test_var='a';nm_test_func();return(0);}
  5791. _LT_EOF
  5792. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5793. (eval $ac_compile) 2>&5
  5794. ac_status=$?
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5796. test $ac_status = 0; }; then
  5797. # Now try to grab the symbols.
  5798. nlist=conftest.nm
  5799. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5800. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5801. ac_status=$?
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5803. test $ac_status = 0; } && test -s "$nlist"; then
  5804. # Try sorting and uniquifying the output.
  5805. if sort "$nlist" | uniq > "$nlist"T; then
  5806. mv -f "$nlist"T "$nlist"
  5807. else
  5808. rm -f "$nlist"T
  5809. fi
  5810. # Make sure that we snagged all the symbols we need.
  5811. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5812. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5813. cat <<_LT_EOF > conftest.$ac_ext
  5814. #ifdef __cplusplus
  5815. extern "C" {
  5816. #endif
  5817. _LT_EOF
  5818. # Now generate the symbol file.
  5819. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5820. cat <<_LT_EOF >> conftest.$ac_ext
  5821. /* The mapping between symbol names and symbols. */
  5822. const struct {
  5823. const char *name;
  5824. void *address;
  5825. }
  5826. lt__PROGRAM__LTX_preloaded_symbols[] =
  5827. {
  5828. { "@PROGRAM@", (void *) 0 },
  5829. _LT_EOF
  5830. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5831. cat <<\_LT_EOF >> conftest.$ac_ext
  5832. {0, (void *) 0}
  5833. };
  5834. /* This works around a problem in FreeBSD linker */
  5835. #ifdef FREEBSD_WORKAROUND
  5836. static const void *lt_preloaded_setup() {
  5837. return lt__PROGRAM__LTX_preloaded_symbols;
  5838. }
  5839. #endif
  5840. #ifdef __cplusplus
  5841. }
  5842. #endif
  5843. _LT_EOF
  5844. # Now try linking the two files.
  5845. mv conftest.$ac_objext conftstm.$ac_objext
  5846. lt_save_LIBS="$LIBS"
  5847. lt_save_CFLAGS="$CFLAGS"
  5848. LIBS="conftstm.$ac_objext"
  5849. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5850. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5851. (eval $ac_link) 2>&5
  5852. ac_status=$?
  5853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5854. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5855. pipe_works=yes
  5856. fi
  5857. LIBS="$lt_save_LIBS"
  5858. CFLAGS="$lt_save_CFLAGS"
  5859. else
  5860. echo "cannot find nm_test_func in $nlist" >&5
  5861. fi
  5862. else
  5863. echo "cannot find nm_test_var in $nlist" >&5
  5864. fi
  5865. else
  5866. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5867. fi
  5868. else
  5869. echo "$progname: failed program was:" >&5
  5870. cat conftest.$ac_ext >&5
  5871. fi
  5872. rm -rf conftest* conftst*
  5873. # Do not use the global_symbol_pipe unless it works.
  5874. if test "$pipe_works" = yes; then
  5875. break
  5876. else
  5877. lt_cv_sys_global_symbol_pipe=
  5878. fi
  5879. done
  5880. fi
  5881. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5882. lt_cv_sys_global_symbol_to_cdecl=
  5883. fi
  5884. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5886. $as_echo "failed" >&6; }
  5887. else
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5889. $as_echo "ok" >&6; }
  5890. fi
  5891. # Check whether --enable-libtool-lock was given.
  5892. if test "${enable_libtool_lock+set}" = set; then :
  5893. enableval=$enable_libtool_lock;
  5894. fi
  5895. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5896. # Some flags need to be propagated to the compiler or linker for good
  5897. # libtool support.
  5898. case $host in
  5899. ia64-*-hpux*)
  5900. # Find out which ABI we are using.
  5901. echo 'int i;' > conftest.$ac_ext
  5902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5903. (eval $ac_compile) 2>&5
  5904. ac_status=$?
  5905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5906. test $ac_status = 0; }; then
  5907. case `/usr/bin/file conftest.$ac_objext` in
  5908. *ELF-32*)
  5909. HPUX_IA64_MODE="32"
  5910. ;;
  5911. *ELF-64*)
  5912. HPUX_IA64_MODE="64"
  5913. ;;
  5914. esac
  5915. fi
  5916. rm -rf conftest*
  5917. ;;
  5918. *-*-irix6*)
  5919. # Find out which ABI we are using.
  5920. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5921. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5922. (eval $ac_compile) 2>&5
  5923. ac_status=$?
  5924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5925. test $ac_status = 0; }; then
  5926. if test "$lt_cv_prog_gnu_ld" = yes; then
  5927. case `/usr/bin/file conftest.$ac_objext` in
  5928. *32-bit*)
  5929. LD="${LD-ld} -melf32bsmip"
  5930. ;;
  5931. *N32*)
  5932. LD="${LD-ld} -melf32bmipn32"
  5933. ;;
  5934. *64-bit*)
  5935. LD="${LD-ld} -melf64bmip"
  5936. ;;
  5937. esac
  5938. else
  5939. case `/usr/bin/file conftest.$ac_objext` in
  5940. *32-bit*)
  5941. LD="${LD-ld} -32"
  5942. ;;
  5943. *N32*)
  5944. LD="${LD-ld} -n32"
  5945. ;;
  5946. *64-bit*)
  5947. LD="${LD-ld} -64"
  5948. ;;
  5949. esac
  5950. fi
  5951. fi
  5952. rm -rf conftest*
  5953. ;;
  5954. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5955. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5956. # Find out which ABI we are using.
  5957. echo 'int i;' > conftest.$ac_ext
  5958. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5959. (eval $ac_compile) 2>&5
  5960. ac_status=$?
  5961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5962. test $ac_status = 0; }; then
  5963. case `/usr/bin/file conftest.o` in
  5964. *32-bit*)
  5965. case $host in
  5966. x86_64-*kfreebsd*-gnu)
  5967. LD="${LD-ld} -m elf_i386_fbsd"
  5968. ;;
  5969. x86_64-*linux*)
  5970. case `/usr/bin/file conftest.o` in
  5971. *x86-64*)
  5972. LD="${LD-ld} -m elf32_x86_64"
  5973. ;;
  5974. *)
  5975. LD="${LD-ld} -m elf_i386"
  5976. ;;
  5977. esac
  5978. ;;
  5979. powerpc64le-*linux*)
  5980. LD="${LD-ld} -m elf32lppclinux"
  5981. ;;
  5982. powerpc64-*linux*)
  5983. LD="${LD-ld} -m elf32ppclinux"
  5984. ;;
  5985. s390x-*linux*)
  5986. LD="${LD-ld} -m elf_s390"
  5987. ;;
  5988. sparc64-*linux*)
  5989. LD="${LD-ld} -m elf32_sparc"
  5990. ;;
  5991. esac
  5992. ;;
  5993. *64-bit*)
  5994. case $host in
  5995. x86_64-*kfreebsd*-gnu)
  5996. LD="${LD-ld} -m elf_x86_64_fbsd"
  5997. ;;
  5998. x86_64-*linux*)
  5999. LD="${LD-ld} -m elf_x86_64"
  6000. ;;
  6001. powerpcle-*linux*)
  6002. LD="${LD-ld} -m elf64lppc"
  6003. ;;
  6004. powerpc-*linux*)
  6005. LD="${LD-ld} -m elf64ppc"
  6006. ;;
  6007. s390*-*linux*|s390*-*tpf*)
  6008. LD="${LD-ld} -m elf64_s390"
  6009. ;;
  6010. sparc*-*linux*)
  6011. LD="${LD-ld} -m elf64_sparc"
  6012. ;;
  6013. esac
  6014. ;;
  6015. esac
  6016. fi
  6017. rm -rf conftest*
  6018. ;;
  6019. *-*-sco3.2v5*)
  6020. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6021. SAVE_CFLAGS="$CFLAGS"
  6022. CFLAGS="$CFLAGS -belf"
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6024. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6025. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. ac_ext=c
  6029. ac_cpp='$CPP $CPPFLAGS'
  6030. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6031. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6032. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6034. /* end confdefs.h. */
  6035. int
  6036. main ()
  6037. {
  6038. ;
  6039. return 0;
  6040. }
  6041. _ACEOF
  6042. if ac_fn_c_try_link "$LINENO"; then :
  6043. lt_cv_cc_needs_belf=yes
  6044. else
  6045. lt_cv_cc_needs_belf=no
  6046. fi
  6047. rm -f core conftest.err conftest.$ac_objext \
  6048. conftest$ac_exeext conftest.$ac_ext
  6049. ac_ext=c
  6050. ac_cpp='$CPP $CPPFLAGS'
  6051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6054. fi
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6056. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6057. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6058. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6059. CFLAGS="$SAVE_CFLAGS"
  6060. fi
  6061. ;;
  6062. sparc*-*solaris*)
  6063. # Find out which ABI we are using.
  6064. echo 'int i;' > conftest.$ac_ext
  6065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6066. (eval $ac_compile) 2>&5
  6067. ac_status=$?
  6068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6069. test $ac_status = 0; }; then
  6070. case `/usr/bin/file conftest.o` in
  6071. *64-bit*)
  6072. case $lt_cv_prog_gnu_ld in
  6073. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6074. *)
  6075. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6076. LD="${LD-ld} -64"
  6077. fi
  6078. ;;
  6079. esac
  6080. ;;
  6081. esac
  6082. fi
  6083. rm -rf conftest*
  6084. ;;
  6085. esac
  6086. need_locks="$enable_libtool_lock"
  6087. case $host_os in
  6088. rhapsody* | darwin*)
  6089. if test -n "$ac_tool_prefix"; then
  6090. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6091. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6093. $as_echo_n "checking for $ac_word... " >&6; }
  6094. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6095. $as_echo_n "(cached) " >&6
  6096. else
  6097. if test -n "$DSYMUTIL"; then
  6098. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6099. else
  6100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6101. for as_dir in $PATH
  6102. do
  6103. IFS=$as_save_IFS
  6104. test -z "$as_dir" && as_dir=.
  6105. for ac_exec_ext in '' $ac_executable_extensions; do
  6106. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6107. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6109. break 2
  6110. fi
  6111. done
  6112. done
  6113. IFS=$as_save_IFS
  6114. fi
  6115. fi
  6116. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6117. if test -n "$DSYMUTIL"; then
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6119. $as_echo "$DSYMUTIL" >&6; }
  6120. else
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6122. $as_echo "no" >&6; }
  6123. fi
  6124. fi
  6125. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6126. ac_ct_DSYMUTIL=$DSYMUTIL
  6127. # Extract the first word of "dsymutil", so it can be a program name with args.
  6128. set dummy dsymutil; ac_word=$2
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6130. $as_echo_n "checking for $ac_word... " >&6; }
  6131. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. if test -n "$ac_ct_DSYMUTIL"; then
  6135. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6136. else
  6137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6138. for as_dir in $PATH
  6139. do
  6140. IFS=$as_save_IFS
  6141. test -z "$as_dir" && as_dir=.
  6142. for ac_exec_ext in '' $ac_executable_extensions; do
  6143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6144. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6146. break 2
  6147. fi
  6148. done
  6149. done
  6150. IFS=$as_save_IFS
  6151. fi
  6152. fi
  6153. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6154. if test -n "$ac_ct_DSYMUTIL"; then
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6156. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6157. else
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6159. $as_echo "no" >&6; }
  6160. fi
  6161. if test "x$ac_ct_DSYMUTIL" = x; then
  6162. DSYMUTIL=":"
  6163. else
  6164. case $cross_compiling:$ac_tool_warned in
  6165. yes:)
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6167. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6168. ac_tool_warned=yes ;;
  6169. esac
  6170. DSYMUTIL=$ac_ct_DSYMUTIL
  6171. fi
  6172. else
  6173. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6174. fi
  6175. if test -n "$ac_tool_prefix"; then
  6176. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6177. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6179. $as_echo_n "checking for $ac_word... " >&6; }
  6180. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. if test -n "$NMEDIT"; then
  6184. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6185. else
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6193. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. fi
  6201. fi
  6202. NMEDIT=$ac_cv_prog_NMEDIT
  6203. if test -n "$NMEDIT"; then
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6205. $as_echo "$NMEDIT" >&6; }
  6206. else
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6208. $as_echo "no" >&6; }
  6209. fi
  6210. fi
  6211. if test -z "$ac_cv_prog_NMEDIT"; then
  6212. ac_ct_NMEDIT=$NMEDIT
  6213. # Extract the first word of "nmedit", so it can be a program name with args.
  6214. set dummy nmedit; ac_word=$2
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6216. $as_echo_n "checking for $ac_word... " >&6; }
  6217. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. if test -n "$ac_ct_NMEDIT"; then
  6221. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6222. else
  6223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6224. for as_dir in $PATH
  6225. do
  6226. IFS=$as_save_IFS
  6227. test -z "$as_dir" && as_dir=.
  6228. for ac_exec_ext in '' $ac_executable_extensions; do
  6229. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6230. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6232. break 2
  6233. fi
  6234. done
  6235. done
  6236. IFS=$as_save_IFS
  6237. fi
  6238. fi
  6239. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6240. if test -n "$ac_ct_NMEDIT"; then
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6242. $as_echo "$ac_ct_NMEDIT" >&6; }
  6243. else
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6245. $as_echo "no" >&6; }
  6246. fi
  6247. if test "x$ac_ct_NMEDIT" = x; then
  6248. NMEDIT=":"
  6249. else
  6250. case $cross_compiling:$ac_tool_warned in
  6251. yes:)
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6253. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6254. ac_tool_warned=yes ;;
  6255. esac
  6256. NMEDIT=$ac_ct_NMEDIT
  6257. fi
  6258. else
  6259. NMEDIT="$ac_cv_prog_NMEDIT"
  6260. fi
  6261. if test -n "$ac_tool_prefix"; then
  6262. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6263. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6265. $as_echo_n "checking for $ac_word... " >&6; }
  6266. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. if test -n "$LIPO"; then
  6270. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6271. else
  6272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6273. for as_dir in $PATH
  6274. do
  6275. IFS=$as_save_IFS
  6276. test -z "$as_dir" && as_dir=.
  6277. for ac_exec_ext in '' $ac_executable_extensions; do
  6278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6279. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6281. break 2
  6282. fi
  6283. done
  6284. done
  6285. IFS=$as_save_IFS
  6286. fi
  6287. fi
  6288. LIPO=$ac_cv_prog_LIPO
  6289. if test -n "$LIPO"; then
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6291. $as_echo "$LIPO" >&6; }
  6292. else
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6294. $as_echo "no" >&6; }
  6295. fi
  6296. fi
  6297. if test -z "$ac_cv_prog_LIPO"; then
  6298. ac_ct_LIPO=$LIPO
  6299. # Extract the first word of "lipo", so it can be a program name with args.
  6300. set dummy lipo; ac_word=$2
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6302. $as_echo_n "checking for $ac_word... " >&6; }
  6303. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6304. $as_echo_n "(cached) " >&6
  6305. else
  6306. if test -n "$ac_ct_LIPO"; then
  6307. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6308. else
  6309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6310. for as_dir in $PATH
  6311. do
  6312. IFS=$as_save_IFS
  6313. test -z "$as_dir" && as_dir=.
  6314. for ac_exec_ext in '' $ac_executable_extensions; do
  6315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6316. ac_cv_prog_ac_ct_LIPO="lipo"
  6317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6318. break 2
  6319. fi
  6320. done
  6321. done
  6322. IFS=$as_save_IFS
  6323. fi
  6324. fi
  6325. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6326. if test -n "$ac_ct_LIPO"; then
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6328. $as_echo "$ac_ct_LIPO" >&6; }
  6329. else
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6331. $as_echo "no" >&6; }
  6332. fi
  6333. if test "x$ac_ct_LIPO" = x; then
  6334. LIPO=":"
  6335. else
  6336. case $cross_compiling:$ac_tool_warned in
  6337. yes:)
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6339. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6340. ac_tool_warned=yes ;;
  6341. esac
  6342. LIPO=$ac_ct_LIPO
  6343. fi
  6344. else
  6345. LIPO="$ac_cv_prog_LIPO"
  6346. fi
  6347. if test -n "$ac_tool_prefix"; then
  6348. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6349. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6351. $as_echo_n "checking for $ac_word... " >&6; }
  6352. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6353. $as_echo_n "(cached) " >&6
  6354. else
  6355. if test -n "$OTOOL"; then
  6356. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6357. else
  6358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6359. for as_dir in $PATH
  6360. do
  6361. IFS=$as_save_IFS
  6362. test -z "$as_dir" && as_dir=.
  6363. for ac_exec_ext in '' $ac_executable_extensions; do
  6364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6365. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6367. break 2
  6368. fi
  6369. done
  6370. done
  6371. IFS=$as_save_IFS
  6372. fi
  6373. fi
  6374. OTOOL=$ac_cv_prog_OTOOL
  6375. if test -n "$OTOOL"; then
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6377. $as_echo "$OTOOL" >&6; }
  6378. else
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6380. $as_echo "no" >&6; }
  6381. fi
  6382. fi
  6383. if test -z "$ac_cv_prog_OTOOL"; then
  6384. ac_ct_OTOOL=$OTOOL
  6385. # Extract the first word of "otool", so it can be a program name with args.
  6386. set dummy otool; ac_word=$2
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6388. $as_echo_n "checking for $ac_word... " >&6; }
  6389. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6390. $as_echo_n "(cached) " >&6
  6391. else
  6392. if test -n "$ac_ct_OTOOL"; then
  6393. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6394. else
  6395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6396. for as_dir in $PATH
  6397. do
  6398. IFS=$as_save_IFS
  6399. test -z "$as_dir" && as_dir=.
  6400. for ac_exec_ext in '' $ac_executable_extensions; do
  6401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6402. ac_cv_prog_ac_ct_OTOOL="otool"
  6403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6404. break 2
  6405. fi
  6406. done
  6407. done
  6408. IFS=$as_save_IFS
  6409. fi
  6410. fi
  6411. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6412. if test -n "$ac_ct_OTOOL"; then
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6414. $as_echo "$ac_ct_OTOOL" >&6; }
  6415. else
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6417. $as_echo "no" >&6; }
  6418. fi
  6419. if test "x$ac_ct_OTOOL" = x; then
  6420. OTOOL=":"
  6421. else
  6422. case $cross_compiling:$ac_tool_warned in
  6423. yes:)
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6425. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6426. ac_tool_warned=yes ;;
  6427. esac
  6428. OTOOL=$ac_ct_OTOOL
  6429. fi
  6430. else
  6431. OTOOL="$ac_cv_prog_OTOOL"
  6432. fi
  6433. if test -n "$ac_tool_prefix"; then
  6434. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6435. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6437. $as_echo_n "checking for $ac_word... " >&6; }
  6438. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6439. $as_echo_n "(cached) " >&6
  6440. else
  6441. if test -n "$OTOOL64"; then
  6442. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6443. else
  6444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6445. for as_dir in $PATH
  6446. do
  6447. IFS=$as_save_IFS
  6448. test -z "$as_dir" && as_dir=.
  6449. for ac_exec_ext in '' $ac_executable_extensions; do
  6450. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6451. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6453. break 2
  6454. fi
  6455. done
  6456. done
  6457. IFS=$as_save_IFS
  6458. fi
  6459. fi
  6460. OTOOL64=$ac_cv_prog_OTOOL64
  6461. if test -n "$OTOOL64"; then
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6463. $as_echo "$OTOOL64" >&6; }
  6464. else
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6466. $as_echo "no" >&6; }
  6467. fi
  6468. fi
  6469. if test -z "$ac_cv_prog_OTOOL64"; then
  6470. ac_ct_OTOOL64=$OTOOL64
  6471. # Extract the first word of "otool64", so it can be a program name with args.
  6472. set dummy otool64; ac_word=$2
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6474. $as_echo_n "checking for $ac_word... " >&6; }
  6475. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6476. $as_echo_n "(cached) " >&6
  6477. else
  6478. if test -n "$ac_ct_OTOOL64"; then
  6479. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6480. else
  6481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6482. for as_dir in $PATH
  6483. do
  6484. IFS=$as_save_IFS
  6485. test -z "$as_dir" && as_dir=.
  6486. for ac_exec_ext in '' $ac_executable_extensions; do
  6487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6488. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6490. break 2
  6491. fi
  6492. done
  6493. done
  6494. IFS=$as_save_IFS
  6495. fi
  6496. fi
  6497. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6498. if test -n "$ac_ct_OTOOL64"; then
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6500. $as_echo "$ac_ct_OTOOL64" >&6; }
  6501. else
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6503. $as_echo "no" >&6; }
  6504. fi
  6505. if test "x$ac_ct_OTOOL64" = x; then
  6506. OTOOL64=":"
  6507. else
  6508. case $cross_compiling:$ac_tool_warned in
  6509. yes:)
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6511. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6512. ac_tool_warned=yes ;;
  6513. esac
  6514. OTOOL64=$ac_ct_OTOOL64
  6515. fi
  6516. else
  6517. OTOOL64="$ac_cv_prog_OTOOL64"
  6518. fi
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6520. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6521. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6522. $as_echo_n "(cached) " >&6
  6523. else
  6524. lt_cv_apple_cc_single_mod=no
  6525. if test -z "${LT_MULTI_MODULE}"; then
  6526. # By default we will add the -single_module flag. You can override
  6527. # by either setting the environment variable LT_MULTI_MODULE
  6528. # non-empty at configure time, or by adding -multi_module to the
  6529. # link flags.
  6530. rm -rf libconftest.dylib*
  6531. echo "int foo(void){return 1;}" > conftest.c
  6532. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6533. -dynamiclib -Wl,-single_module conftest.c" >&5
  6534. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6535. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6536. _lt_result=$?
  6537. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6538. lt_cv_apple_cc_single_mod=yes
  6539. else
  6540. cat conftest.err >&5
  6541. fi
  6542. rm -rf libconftest.dylib*
  6543. rm -f conftest.*
  6544. fi
  6545. fi
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6547. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6549. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6550. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6551. $as_echo_n "(cached) " >&6
  6552. else
  6553. lt_cv_ld_exported_symbols_list=no
  6554. save_LDFLAGS=$LDFLAGS
  6555. echo "_main" > conftest.sym
  6556. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6558. /* end confdefs.h. */
  6559. int
  6560. main ()
  6561. {
  6562. ;
  6563. return 0;
  6564. }
  6565. _ACEOF
  6566. if ac_fn_c_try_link "$LINENO"; then :
  6567. lt_cv_ld_exported_symbols_list=yes
  6568. else
  6569. lt_cv_ld_exported_symbols_list=no
  6570. fi
  6571. rm -f core conftest.err conftest.$ac_objext \
  6572. conftest$ac_exeext conftest.$ac_ext
  6573. LDFLAGS="$save_LDFLAGS"
  6574. fi
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6576. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6578. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6579. if test "${lt_cv_ld_force_load+set}" = set; then :
  6580. $as_echo_n "(cached) " >&6
  6581. else
  6582. lt_cv_ld_force_load=no
  6583. cat > conftest.c << _LT_EOF
  6584. int forced_loaded() { return 2;}
  6585. _LT_EOF
  6586. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6587. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6588. echo "$AR cru libconftest.a conftest.o" >&5
  6589. $AR cru libconftest.a conftest.o 2>&5
  6590. cat > conftest.c << _LT_EOF
  6591. int main() { return 0;}
  6592. _LT_EOF
  6593. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6594. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6595. _lt_result=$?
  6596. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6597. lt_cv_ld_force_load=yes
  6598. else
  6599. cat conftest.err >&5
  6600. fi
  6601. rm -f conftest.err libconftest.a conftest conftest.c
  6602. rm -rf conftest.dSYM
  6603. fi
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6605. $as_echo "$lt_cv_ld_force_load" >&6; }
  6606. case $host_os in
  6607. rhapsody* | darwin1.[012])
  6608. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6609. darwin1.*)
  6610. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6611. darwin*) # darwin 5.x on
  6612. # if running on 10.5 or later, the deployment target defaults
  6613. # to the OS version, if on x86, and 10.4, the deployment
  6614. # target defaults to 10.4. Don't you love it?
  6615. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6616. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6617. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6618. 10.[012][,.]*)
  6619. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6620. 10.*)
  6621. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6622. esac
  6623. ;;
  6624. esac
  6625. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6626. _lt_dar_single_mod='$single_module'
  6627. fi
  6628. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6629. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6630. else
  6631. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6632. fi
  6633. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6634. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6635. else
  6636. _lt_dsymutil=
  6637. fi
  6638. ;;
  6639. esac
  6640. for ac_header in dlfcn.h
  6641. do :
  6642. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6643. "
  6644. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6645. cat >>confdefs.h <<_ACEOF
  6646. #define HAVE_DLFCN_H 1
  6647. _ACEOF
  6648. fi
  6649. done
  6650. # autoconf.info says this should be called right after AC_INIT.
  6651. ac_config_headers="$ac_config_headers config.h:config.in"
  6652. # Put a plausible default for CC_FOR_BUILD in Makefile.
  6653. if test "x$cross_compiling" = "xno"; then
  6654. CC_FOR_BUILD='$(CC)'
  6655. else
  6656. CC_FOR_BUILD=gcc
  6657. fi
  6658. AR=${AR-ar}
  6659. if test -n "$ac_tool_prefix"; then
  6660. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6661. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6663. $as_echo_n "checking for $ac_word... " >&6; }
  6664. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6665. $as_echo_n "(cached) " >&6
  6666. else
  6667. if test -n "$RANLIB"; then
  6668. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6669. else
  6670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6671. for as_dir in $PATH
  6672. do
  6673. IFS=$as_save_IFS
  6674. test -z "$as_dir" && as_dir=.
  6675. for ac_exec_ext in '' $ac_executable_extensions; do
  6676. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6677. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6679. break 2
  6680. fi
  6681. done
  6682. done
  6683. IFS=$as_save_IFS
  6684. fi
  6685. fi
  6686. RANLIB=$ac_cv_prog_RANLIB
  6687. if test -n "$RANLIB"; then
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6689. $as_echo "$RANLIB" >&6; }
  6690. else
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6692. $as_echo "no" >&6; }
  6693. fi
  6694. fi
  6695. if test -z "$ac_cv_prog_RANLIB"; then
  6696. ac_ct_RANLIB=$RANLIB
  6697. # Extract the first word of "ranlib", so it can be a program name with args.
  6698. set dummy ranlib; ac_word=$2
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6700. $as_echo_n "checking for $ac_word... " >&6; }
  6701. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6702. $as_echo_n "(cached) " >&6
  6703. else
  6704. if test -n "$ac_ct_RANLIB"; then
  6705. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6706. else
  6707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6708. for as_dir in $PATH
  6709. do
  6710. IFS=$as_save_IFS
  6711. test -z "$as_dir" && as_dir=.
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6714. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. fi
  6722. fi
  6723. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6724. if test -n "$ac_ct_RANLIB"; then
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6726. $as_echo "$ac_ct_RANLIB" >&6; }
  6727. else
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. $as_echo "no" >&6; }
  6730. fi
  6731. if test "x$ac_ct_RANLIB" = x; then
  6732. RANLIB=":"
  6733. else
  6734. case $cross_compiling:$ac_tool_warned in
  6735. yes:)
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6737. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6738. ac_tool_warned=yes ;;
  6739. esac
  6740. RANLIB=$ac_ct_RANLIB
  6741. fi
  6742. else
  6743. RANLIB="$ac_cv_prog_RANLIB"
  6744. fi
  6745. # Some of the common include files depend on bfd.h, and bfd.h checks
  6746. # that config.h is included first by testing that the PACKAGE macro
  6747. # is defined.
  6748. PACKAGE=sim
  6749. cat >>confdefs.h <<_ACEOF
  6750. #define PACKAGE "$PACKAGE"
  6751. _ACEOF
  6752. # Dependency checking.
  6753. ac_config_commands="$ac_config_commands depdir"
  6754. depcc="$CC" am_compiler_list=
  6755. am_depcomp=$ac_aux_dir/depcomp
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6757. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6758. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. if test -f "$am_depcomp"; then
  6762. # We make a subdir and do the tests there. Otherwise we can end up
  6763. # making bogus files that we don't know about and never remove. For
  6764. # instance it was reported that on HP-UX the gcc test will end up
  6765. # making a dummy file named `D' -- because `-MD' means `put the output
  6766. # in D'.
  6767. mkdir conftest.dir
  6768. # Copy depcomp to subdir because otherwise we won't find it if we're
  6769. # using a relative directory.
  6770. cp "$am_depcomp" conftest.dir
  6771. cd conftest.dir
  6772. # We will build objects and dependencies in a subdirectory because
  6773. # it helps to detect inapplicable dependency modes. For instance
  6774. # both Tru64's cc and ICC support -MD to output dependencies as a
  6775. # side effect of compilation, but ICC will put the dependencies in
  6776. # the current directory while Tru64 will put them in the object
  6777. # directory.
  6778. mkdir sub
  6779. am_cv_CC_dependencies_compiler_type=none
  6780. if test "$am_compiler_list" = ""; then
  6781. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6782. fi
  6783. for depmode in $am_compiler_list; do
  6784. if test $depmode = none; then break; fi
  6785. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  6786. # Setup a source with many dependencies, because some compilers
  6787. # like to wrap large dependency lists on column 80 (with \), and
  6788. # we should not choose a depcomp mode which is confused by this.
  6789. #
  6790. # We need to recreate these files for each test, as the compiler may
  6791. # overwrite some of them when testing with obscure command lines.
  6792. # This happens at least with the AIX C compiler.
  6793. : > sub/conftest.c
  6794. for i in 1 2 3 4 5 6; do
  6795. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6796. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6797. # Solaris 8's {/usr,}/bin/sh.
  6798. touch sub/conftst$i.h
  6799. done
  6800. echo "include sub/conftest.Po" > confmf
  6801. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6802. # mode. It turns out that the SunPro C++ compiler does not properly
  6803. # handle `-M -o', and we need to detect this.
  6804. depcmd="depmode=$depmode \
  6805. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6806. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6807. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  6808. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  6809. if env $depcmd > conftest.err 2>&1 &&
  6810. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  6811. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  6812. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  6813. # icc doesn't choke on unknown options, it will just issue warnings
  6814. # or remarks (even with -Werror). So we grep stderr for any message
  6815. # that says an option was ignored or not supported.
  6816. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6817. # icc: Command line warning: ignoring option '-M'; no argument required
  6818. # The diagnosis changed in icc 8.0:
  6819. # icc: Command line remark: option '-MP' not supported
  6820. if (grep 'ignoring option' conftest.err ||
  6821. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6822. am_cv_CC_dependencies_compiler_type=$depmode
  6823. $as_echo "$as_me:$LINENO: success" >&5
  6824. break
  6825. fi
  6826. fi
  6827. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  6828. sed -e 's/^/| /' < conftest.err >&5
  6829. done
  6830. cd ..
  6831. rm -rf conftest.dir
  6832. else
  6833. am_cv_CC_dependencies_compiler_type=none
  6834. fi
  6835. fi
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6837. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6838. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  6839. then as_fn_error "no usable dependency style found" "$LINENO" 5
  6840. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6841. fi
  6842. # Check for the 'make' the user wants to use.
  6843. for ac_prog in make
  6844. do
  6845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6846. set dummy $ac_prog; ac_word=$2
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6848. $as_echo_n "checking for $ac_word... " >&6; }
  6849. if test "${ac_cv_prog_MAKE+set}" = set; then :
  6850. $as_echo_n "(cached) " >&6
  6851. else
  6852. if test -n "$MAKE"; then
  6853. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  6854. else
  6855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6856. for as_dir in $PATH
  6857. do
  6858. IFS=$as_save_IFS
  6859. test -z "$as_dir" && as_dir=.
  6860. for ac_exec_ext in '' $ac_executable_extensions; do
  6861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6862. ac_cv_prog_MAKE="$ac_prog"
  6863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6864. break 2
  6865. fi
  6866. done
  6867. done
  6868. IFS=$as_save_IFS
  6869. fi
  6870. fi
  6871. MAKE=$ac_cv_prog_MAKE
  6872. if test -n "$MAKE"; then
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  6874. $as_echo "$MAKE" >&6; }
  6875. else
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6877. $as_echo "no" >&6; }
  6878. fi
  6879. test -n "$MAKE" && break
  6880. done
  6881. MAKE_IS_GNU=
  6882. case "`$MAKE --version 2>&1 | sed 1q`" in
  6883. *GNU*)
  6884. MAKE_IS_GNU=yes
  6885. ;;
  6886. esac
  6887. if test "$MAKE_IS_GNU" = yes; then
  6888. GMAKE_TRUE=
  6889. GMAKE_FALSE='#'
  6890. else
  6891. GMAKE_TRUE='#'
  6892. GMAKE_FALSE=
  6893. fi
  6894. ALL_LINGUAS=
  6895. # If we haven't got the data from the intl directory,
  6896. # assume NLS is disabled.
  6897. USE_NLS=no
  6898. LIBINTL=
  6899. LIBINTL_DEP=
  6900. INCINTL=
  6901. XGETTEXT=
  6902. GMSGFMT=
  6903. POSUB=
  6904. if test -f ../../intl/config.intl; then
  6905. . ../../intl/config.intl
  6906. fi
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6908. $as_echo_n "checking whether NLS is requested... " >&6; }
  6909. if test x"$USE_NLS" != xyes; then
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6911. $as_echo "no" >&6; }
  6912. else
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6914. $as_echo "yes" >&6; }
  6915. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6917. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6918. # Look for .po and .gmo files in the source directory.
  6919. CATALOGS=
  6920. XLINGUAS=
  6921. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6922. # If there aren't any .gmo files the shell will give us the
  6923. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6924. # weeded out.
  6925. case "$cat" in *\**)
  6926. continue;;
  6927. esac
  6928. # The quadruple backslash is collapsed to a double backslash
  6929. # by the backticks, then collapsed again by the double quotes,
  6930. # leaving us with one backslash in the sed expression (right
  6931. # before the dot that mustn't act as a wildcard).
  6932. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6933. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6934. # The user is allowed to set LINGUAS to a list of languages to
  6935. # install catalogs for. If it's empty that means "all of them."
  6936. if test "x$LINGUAS" = x; then
  6937. CATALOGS="$CATALOGS $cat"
  6938. XLINGUAS="$XLINGUAS $lang"
  6939. else
  6940. case "$LINGUAS" in *$lang*)
  6941. CATALOGS="$CATALOGS $cat"
  6942. XLINGUAS="$XLINGUAS $lang"
  6943. ;;
  6944. esac
  6945. fi
  6946. done
  6947. LINGUAS="$XLINGUAS"
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6949. $as_echo "$LINGUAS" >&6; }
  6950. DATADIRNAME=share
  6951. INSTOBJEXT=.mo
  6952. GENCAT=gencat
  6953. CATOBJEXT=.gmo
  6954. fi
  6955. # Check for common headers.
  6956. # FIXME: Seems to me this can cause problems for i386-windows hosts.
  6957. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
  6958. for ac_header in stdlib.h string.h strings.h unistd.h time.h
  6959. do :
  6960. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6961. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6962. eval as_val=\$$as_ac_Header
  6963. if test "x$as_val" = x""yes; then :
  6964. cat >>confdefs.h <<_ACEOF
  6965. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6966. _ACEOF
  6967. fi
  6968. done
  6969. for ac_header in sys/time.h sys/resource.h
  6970. do :
  6971. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6972. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6973. eval as_val=\$$as_ac_Header
  6974. if test "x$as_val" = x""yes; then :
  6975. cat >>confdefs.h <<_ACEOF
  6976. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6977. _ACEOF
  6978. fi
  6979. done
  6980. for ac_header in fcntl.h fpu_control.h
  6981. do :
  6982. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6983. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6984. eval as_val=\$$as_ac_Header
  6985. if test "x$as_val" = x""yes; then :
  6986. cat >>confdefs.h <<_ACEOF
  6987. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6988. _ACEOF
  6989. fi
  6990. done
  6991. for ac_header in dlfcn.h errno.h sys/stat.h
  6992. do :
  6993. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6994. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6995. eval as_val=\$$as_ac_Header
  6996. if test "x$as_val" = x""yes; then :
  6997. cat >>confdefs.h <<_ACEOF
  6998. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6999. _ACEOF
  7000. fi
  7001. done
  7002. for ac_func in getrusage time sigaction __setfpucw
  7003. do :
  7004. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7005. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7006. eval as_val=\$$as_ac_var
  7007. if test "x$as_val" = x""yes; then :
  7008. cat >>confdefs.h <<_ACEOF
  7009. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7010. _ACEOF
  7011. fi
  7012. done
  7013. # Check for socket libraries
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  7015. $as_echo_n "checking for bind in -lsocket... " >&6; }
  7016. if test "${ac_cv_lib_socket_bind+set}" = set; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. ac_check_lib_save_LIBS=$LIBS
  7020. LIBS="-lsocket $LIBS"
  7021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7022. /* end confdefs.h. */
  7023. /* Override any GCC internal prototype to avoid an error.
  7024. Use char because int might match the return type of a GCC
  7025. builtin and then its argument prototype would still apply. */
  7026. #ifdef __cplusplus
  7027. extern "C"
  7028. #endif
  7029. char bind ();
  7030. int
  7031. main ()
  7032. {
  7033. return bind ();
  7034. ;
  7035. return 0;
  7036. }
  7037. _ACEOF
  7038. if ac_fn_c_try_link "$LINENO"; then :
  7039. ac_cv_lib_socket_bind=yes
  7040. else
  7041. ac_cv_lib_socket_bind=no
  7042. fi
  7043. rm -f core conftest.err conftest.$ac_objext \
  7044. conftest$ac_exeext conftest.$ac_ext
  7045. LIBS=$ac_check_lib_save_LIBS
  7046. fi
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  7048. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  7049. if test "x$ac_cv_lib_socket_bind" = x""yes; then :
  7050. cat >>confdefs.h <<_ACEOF
  7051. #define HAVE_LIBSOCKET 1
  7052. _ACEOF
  7053. LIBS="-lsocket $LIBS"
  7054. fi
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  7056. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  7057. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  7058. $as_echo_n "(cached) " >&6
  7059. else
  7060. ac_check_lib_save_LIBS=$LIBS
  7061. LIBS="-lnsl $LIBS"
  7062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7063. /* end confdefs.h. */
  7064. /* Override any GCC internal prototype to avoid an error.
  7065. Use char because int might match the return type of a GCC
  7066. builtin and then its argument prototype would still apply. */
  7067. #ifdef __cplusplus
  7068. extern "C"
  7069. #endif
  7070. char gethostbyname ();
  7071. int
  7072. main ()
  7073. {
  7074. return gethostbyname ();
  7075. ;
  7076. return 0;
  7077. }
  7078. _ACEOF
  7079. if ac_fn_c_try_link "$LINENO"; then :
  7080. ac_cv_lib_nsl_gethostbyname=yes
  7081. else
  7082. ac_cv_lib_nsl_gethostbyname=no
  7083. fi
  7084. rm -f core conftest.err conftest.$ac_objext \
  7085. conftest$ac_exeext conftest.$ac_ext
  7086. LIBS=$ac_check_lib_save_LIBS
  7087. fi
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7089. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  7090. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  7091. cat >>confdefs.h <<_ACEOF
  7092. #define HAVE_LIBNSL 1
  7093. _ACEOF
  7094. LIBS="-lnsl $LIBS"
  7095. fi
  7096. # BFD conditionally uses zlib, so we must link it in if libbfd does, by
  7097. # using the same condition.
  7098. # Use the system's zlib library.
  7099. zlibdir="-L\$(top_builddir)/../zlib"
  7100. zlibinc="-I\$(top_srcdir)/../zlib"
  7101. # Check whether --with-system-zlib was given.
  7102. if test "${with_system_zlib+set}" = set; then :
  7103. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7104. zlibdir=
  7105. zlibinc=
  7106. fi
  7107. fi
  7108. # BFD uses libdl when when plugins enabled.
  7109. maybe_plugins=no
  7110. for ac_header in dlfcn.h
  7111. do :
  7112. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7113. "
  7114. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7115. cat >>confdefs.h <<_ACEOF
  7116. #define HAVE_DLFCN_H 1
  7117. _ACEOF
  7118. maybe_plugins=yes
  7119. fi
  7120. done
  7121. for ac_header in windows.h
  7122. do :
  7123. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7124. "
  7125. if test "x$ac_cv_header_windows_h" = x""yes; then :
  7126. cat >>confdefs.h <<_ACEOF
  7127. #define HAVE_WINDOWS_H 1
  7128. _ACEOF
  7129. maybe_plugins=yes
  7130. fi
  7131. done
  7132. # Check whether --enable-plugins was given.
  7133. if test "${enable_plugins+set}" = set; then :
  7134. enableval=$enable_plugins; case "${enableval}" in
  7135. no) plugins=no ;;
  7136. *) plugins=yes
  7137. if test "$maybe_plugins" != "yes" ; then
  7138. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7139. fi ;;
  7140. esac
  7141. else
  7142. plugins=$maybe_plugins
  7143. fi
  7144. if test "$plugins" = "yes"; then
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  7146. $as_echo_n "checking for library containing dlopen... " >&6; }
  7147. if test "${ac_cv_search_dlopen+set}" = set; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. ac_func_search_save_LIBS=$LIBS
  7151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7152. /* end confdefs.h. */
  7153. /* Override any GCC internal prototype to avoid an error.
  7154. Use char because int might match the return type of a GCC
  7155. builtin and then its argument prototype would still apply. */
  7156. #ifdef __cplusplus
  7157. extern "C"
  7158. #endif
  7159. char dlopen ();
  7160. int
  7161. main ()
  7162. {
  7163. return dlopen ();
  7164. ;
  7165. return 0;
  7166. }
  7167. _ACEOF
  7168. for ac_lib in '' dl; do
  7169. if test -z "$ac_lib"; then
  7170. ac_res="none required"
  7171. else
  7172. ac_res=-l$ac_lib
  7173. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7174. fi
  7175. if ac_fn_c_try_link "$LINENO"; then :
  7176. ac_cv_search_dlopen=$ac_res
  7177. fi
  7178. rm -f core conftest.err conftest.$ac_objext \
  7179. conftest$ac_exeext
  7180. if test "${ac_cv_search_dlopen+set}" = set; then :
  7181. break
  7182. fi
  7183. done
  7184. if test "${ac_cv_search_dlopen+set}" = set; then :
  7185. else
  7186. ac_cv_search_dlopen=no
  7187. fi
  7188. rm conftest.$ac_ext
  7189. LIBS=$ac_func_search_save_LIBS
  7190. fi
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  7192. $as_echo "$ac_cv_search_dlopen" >&6; }
  7193. ac_res=$ac_cv_search_dlopen
  7194. if test "$ac_res" != no; then :
  7195. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7196. fi
  7197. fi
  7198. if test "$plugins" = yes; then
  7199. PLUGINS_TRUE=
  7200. PLUGINS_FALSE='#'
  7201. else
  7202. PLUGINS_TRUE='#'
  7203. PLUGINS_FALSE=
  7204. fi
  7205. # Set options
  7206. enable_dlopen=yes
  7207. enable_win32_dll=no
  7208. # Check whether --enable-shared was given.
  7209. if test "${enable_shared+set}" = set; then :
  7210. enableval=$enable_shared; p=${PACKAGE-default}
  7211. case $enableval in
  7212. yes) enable_shared=yes ;;
  7213. no) enable_shared=no ;;
  7214. *)
  7215. enable_shared=no
  7216. # Look at the argument we got. We use all the common list separators.
  7217. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7218. for pkg in $enableval; do
  7219. IFS="$lt_save_ifs"
  7220. if test "X$pkg" = "X$p"; then
  7221. enable_shared=yes
  7222. fi
  7223. done
  7224. IFS="$lt_save_ifs"
  7225. ;;
  7226. esac
  7227. else
  7228. enable_shared=yes
  7229. fi
  7230. # Check whether --enable-static was given.
  7231. if test "${enable_static+set}" = set; then :
  7232. enableval=$enable_static; p=${PACKAGE-default}
  7233. case $enableval in
  7234. yes) enable_static=yes ;;
  7235. no) enable_static=no ;;
  7236. *)
  7237. enable_static=no
  7238. # Look at the argument we got. We use all the common list separators.
  7239. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7240. for pkg in $enableval; do
  7241. IFS="$lt_save_ifs"
  7242. if test "X$pkg" = "X$p"; then
  7243. enable_static=yes
  7244. fi
  7245. done
  7246. IFS="$lt_save_ifs"
  7247. ;;
  7248. esac
  7249. else
  7250. enable_static=yes
  7251. fi
  7252. # Check whether --with-pic was given.
  7253. if test "${with_pic+set}" = set; then :
  7254. withval=$with_pic; pic_mode="$withval"
  7255. else
  7256. pic_mode=default
  7257. fi
  7258. test -z "$pic_mode" && pic_mode=default
  7259. # Check whether --enable-fast-install was given.
  7260. if test "${enable_fast_install+set}" = set; then :
  7261. enableval=$enable_fast_install; p=${PACKAGE-default}
  7262. case $enableval in
  7263. yes) enable_fast_install=yes ;;
  7264. no) enable_fast_install=no ;;
  7265. *)
  7266. enable_fast_install=no
  7267. # Look at the argument we got. We use all the common list separators.
  7268. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7269. for pkg in $enableval; do
  7270. IFS="$lt_save_ifs"
  7271. if test "X$pkg" = "X$p"; then
  7272. enable_fast_install=yes
  7273. fi
  7274. done
  7275. IFS="$lt_save_ifs"
  7276. ;;
  7277. esac
  7278. else
  7279. enable_fast_install=yes
  7280. fi
  7281. # This can be used to rebuild libtool when needed
  7282. LIBTOOL_DEPS="$ltmain"
  7283. # Always use our own libtool.
  7284. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7285. test -z "$LN_S" && LN_S="ln -s"
  7286. if test -n "${ZSH_VERSION+set}" ; then
  7287. setopt NO_GLOB_SUBST
  7288. fi
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7290. $as_echo_n "checking for objdir... " >&6; }
  7291. if test "${lt_cv_objdir+set}" = set; then :
  7292. $as_echo_n "(cached) " >&6
  7293. else
  7294. rm -f .libs 2>/dev/null
  7295. mkdir .libs 2>/dev/null
  7296. if test -d .libs; then
  7297. lt_cv_objdir=.libs
  7298. else
  7299. # MS-DOS does not allow filenames that begin with a dot.
  7300. lt_cv_objdir=_libs
  7301. fi
  7302. rmdir .libs 2>/dev/null
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7305. $as_echo "$lt_cv_objdir" >&6; }
  7306. objdir=$lt_cv_objdir
  7307. cat >>confdefs.h <<_ACEOF
  7308. #define LT_OBJDIR "$lt_cv_objdir/"
  7309. _ACEOF
  7310. case $host_os in
  7311. aix3*)
  7312. # AIX sometimes has problems with the GCC collect2 program. For some
  7313. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7314. # vanish in a puff of smoke.
  7315. if test "X${COLLECT_NAMES+set}" != Xset; then
  7316. COLLECT_NAMES=
  7317. export COLLECT_NAMES
  7318. fi
  7319. ;;
  7320. esac
  7321. # Global variables:
  7322. ofile=libtool
  7323. can_build_shared=yes
  7324. # All known linkers require a `.a' archive for static linking (except MSVC,
  7325. # which needs '.lib').
  7326. libext=a
  7327. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7328. old_CC="$CC"
  7329. old_CFLAGS="$CFLAGS"
  7330. # Set sane defaults for various variables
  7331. test -z "$CC" && CC=cc
  7332. test -z "$LTCC" && LTCC=$CC
  7333. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7334. test -z "$LD" && LD=ld
  7335. test -z "$ac_objext" && ac_objext=o
  7336. for cc_temp in $compiler""; do
  7337. case $cc_temp in
  7338. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7339. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7340. \-*) ;;
  7341. *) break;;
  7342. esac
  7343. done
  7344. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7345. # Only perform the check for file, if the check method requires it
  7346. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7347. case $deplibs_check_method in
  7348. file_magic*)
  7349. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7351. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7352. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7353. $as_echo_n "(cached) " >&6
  7354. else
  7355. case $MAGIC_CMD in
  7356. [\\/*] | ?:[\\/]*)
  7357. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7358. ;;
  7359. *)
  7360. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7361. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7362. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7363. for ac_dir in $ac_dummy; do
  7364. IFS="$lt_save_ifs"
  7365. test -z "$ac_dir" && ac_dir=.
  7366. if test -f $ac_dir/${ac_tool_prefix}file; then
  7367. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7368. if test -n "$file_magic_test_file"; then
  7369. case $deplibs_check_method in
  7370. "file_magic "*)
  7371. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7372. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7373. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7374. $EGREP "$file_magic_regex" > /dev/null; then
  7375. :
  7376. else
  7377. cat <<_LT_EOF 1>&2
  7378. *** Warning: the command libtool uses to detect shared libraries,
  7379. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7380. *** The result is that libtool may fail to recognize shared libraries
  7381. *** as such. This will affect the creation of libtool libraries that
  7382. *** depend on shared libraries, but programs linked with such libtool
  7383. *** libraries will work regardless of this problem. Nevertheless, you
  7384. *** may want to report the problem to your system manager and/or to
  7385. *** bug-libtool@gnu.org
  7386. _LT_EOF
  7387. fi ;;
  7388. esac
  7389. fi
  7390. break
  7391. fi
  7392. done
  7393. IFS="$lt_save_ifs"
  7394. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7395. ;;
  7396. esac
  7397. fi
  7398. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7399. if test -n "$MAGIC_CMD"; then
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7401. $as_echo "$MAGIC_CMD" >&6; }
  7402. else
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7404. $as_echo "no" >&6; }
  7405. fi
  7406. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7407. if test -n "$ac_tool_prefix"; then
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7409. $as_echo_n "checking for file... " >&6; }
  7410. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7411. $as_echo_n "(cached) " >&6
  7412. else
  7413. case $MAGIC_CMD in
  7414. [\\/*] | ?:[\\/]*)
  7415. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7416. ;;
  7417. *)
  7418. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7419. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7420. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7421. for ac_dir in $ac_dummy; do
  7422. IFS="$lt_save_ifs"
  7423. test -z "$ac_dir" && ac_dir=.
  7424. if test -f $ac_dir/file; then
  7425. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7426. if test -n "$file_magic_test_file"; then
  7427. case $deplibs_check_method in
  7428. "file_magic "*)
  7429. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7430. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7431. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7432. $EGREP "$file_magic_regex" > /dev/null; then
  7433. :
  7434. else
  7435. cat <<_LT_EOF 1>&2
  7436. *** Warning: the command libtool uses to detect shared libraries,
  7437. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7438. *** The result is that libtool may fail to recognize shared libraries
  7439. *** as such. This will affect the creation of libtool libraries that
  7440. *** depend on shared libraries, but programs linked with such libtool
  7441. *** libraries will work regardless of this problem. Nevertheless, you
  7442. *** may want to report the problem to your system manager and/or to
  7443. *** bug-libtool@gnu.org
  7444. _LT_EOF
  7445. fi ;;
  7446. esac
  7447. fi
  7448. break
  7449. fi
  7450. done
  7451. IFS="$lt_save_ifs"
  7452. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7453. ;;
  7454. esac
  7455. fi
  7456. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7457. if test -n "$MAGIC_CMD"; then
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7459. $as_echo "$MAGIC_CMD" >&6; }
  7460. else
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7462. $as_echo "no" >&6; }
  7463. fi
  7464. else
  7465. MAGIC_CMD=:
  7466. fi
  7467. fi
  7468. fi
  7469. ;;
  7470. esac
  7471. # Use C for the default configuration in the libtool script
  7472. lt_save_CC="$CC"
  7473. ac_ext=c
  7474. ac_cpp='$CPP $CPPFLAGS'
  7475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7478. # Source file extension for C test sources.
  7479. ac_ext=c
  7480. # Object file extension for compiled C test sources.
  7481. objext=o
  7482. objext=$objext
  7483. # Code to be used in simple compile tests
  7484. lt_simple_compile_test_code="int some_variable = 0;"
  7485. # Code to be used in simple link tests
  7486. lt_simple_link_test_code='int main(){return(0);}'
  7487. # If no C compiler was specified, use CC.
  7488. LTCC=${LTCC-"$CC"}
  7489. # If no C compiler flags were specified, use CFLAGS.
  7490. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7491. # Allow CC to be a program name with arguments.
  7492. compiler=$CC
  7493. # Save the default compiler, since it gets overwritten when the other
  7494. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7495. compiler_DEFAULT=$CC
  7496. # save warnings/boilerplate of simple test code
  7497. ac_outfile=conftest.$ac_objext
  7498. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7499. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7500. _lt_compiler_boilerplate=`cat conftest.err`
  7501. $RM conftest*
  7502. ac_outfile=conftest.$ac_objext
  7503. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7504. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7505. _lt_linker_boilerplate=`cat conftest.err`
  7506. $RM -r conftest*
  7507. ## CAVEAT EMPTOR:
  7508. ## There is no encapsulation within the following macros, do not change
  7509. ## the running order or otherwise move them around unless you know exactly
  7510. ## what you are doing...
  7511. if test -n "$compiler"; then
  7512. lt_prog_compiler_no_builtin_flag=
  7513. if test "$GCC" = yes; then
  7514. case $cc_basename in
  7515. nvcc*)
  7516. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7517. *)
  7518. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7519. esac
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7521. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7522. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7523. $as_echo_n "(cached) " >&6
  7524. else
  7525. lt_cv_prog_compiler_rtti_exceptions=no
  7526. ac_outfile=conftest.$ac_objext
  7527. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7528. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7529. # Insert the option either (1) after the last *FLAGS variable, or
  7530. # (2) before a word containing "conftest.", or (3) at the end.
  7531. # Note that $ac_compile itself does not contain backslashes and begins
  7532. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7533. # The option is referenced via a variable to avoid confusing sed.
  7534. lt_compile=`echo "$ac_compile" | $SED \
  7535. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7536. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7537. -e 's:$: $lt_compiler_flag:'`
  7538. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7539. (eval "$lt_compile" 2>conftest.err)
  7540. ac_status=$?
  7541. cat conftest.err >&5
  7542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543. if (exit $ac_status) && test -s "$ac_outfile"; then
  7544. # The compiler can only warn and ignore the option if not recognized
  7545. # So say no if there are warnings other than the usual output.
  7546. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7547. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7548. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7549. lt_cv_prog_compiler_rtti_exceptions=yes
  7550. fi
  7551. fi
  7552. $RM conftest*
  7553. fi
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7555. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7556. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7557. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7558. else
  7559. :
  7560. fi
  7561. fi
  7562. lt_prog_compiler_wl=
  7563. lt_prog_compiler_pic=
  7564. lt_prog_compiler_static=
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7566. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7567. if test "$GCC" = yes; then
  7568. lt_prog_compiler_wl='-Wl,'
  7569. lt_prog_compiler_static='-static'
  7570. case $host_os in
  7571. aix*)
  7572. # All AIX code is PIC.
  7573. if test "$host_cpu" = ia64; then
  7574. # AIX 5 now supports IA64 processor
  7575. lt_prog_compiler_static='-Bstatic'
  7576. fi
  7577. lt_prog_compiler_pic='-fPIC'
  7578. ;;
  7579. amigaos*)
  7580. case $host_cpu in
  7581. powerpc)
  7582. # see comment about AmigaOS4 .so support
  7583. lt_prog_compiler_pic='-fPIC'
  7584. ;;
  7585. m68k)
  7586. # FIXME: we need at least 68020 code to build shared libraries, but
  7587. # adding the `-m68020' flag to GCC prevents building anything better,
  7588. # like `-m68040'.
  7589. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7590. ;;
  7591. esac
  7592. ;;
  7593. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7594. # PIC is the default for these OSes.
  7595. ;;
  7596. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7597. # This hack is so that the source file can tell whether it is being
  7598. # built for inclusion in a dll (and should export symbols for example).
  7599. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7600. # (--disable-auto-import) libraries
  7601. lt_prog_compiler_pic='-DDLL_EXPORT'
  7602. ;;
  7603. darwin* | rhapsody*)
  7604. # PIC is the default on this platform
  7605. # Common symbols not allowed in MH_DYLIB files
  7606. lt_prog_compiler_pic='-fno-common'
  7607. ;;
  7608. haiku*)
  7609. # PIC is the default for Haiku.
  7610. # The "-static" flag exists, but is broken.
  7611. lt_prog_compiler_static=
  7612. ;;
  7613. hpux*)
  7614. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7615. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7616. # sets the default TLS model and affects inlining.
  7617. case $host_cpu in
  7618. hppa*64*)
  7619. # +Z the default
  7620. ;;
  7621. *)
  7622. lt_prog_compiler_pic='-fPIC'
  7623. ;;
  7624. esac
  7625. ;;
  7626. interix[3-9]*)
  7627. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7628. # Instead, we relocate shared libraries at runtime.
  7629. ;;
  7630. msdosdjgpp*)
  7631. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7632. # on systems that don't support them.
  7633. lt_prog_compiler_can_build_shared=no
  7634. enable_shared=no
  7635. ;;
  7636. *nto* | *qnx*)
  7637. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7638. # it will coredump.
  7639. lt_prog_compiler_pic='-fPIC -shared'
  7640. ;;
  7641. sysv4*MP*)
  7642. if test -d /usr/nec; then
  7643. lt_prog_compiler_pic=-Kconform_pic
  7644. fi
  7645. ;;
  7646. *)
  7647. lt_prog_compiler_pic='-fPIC'
  7648. ;;
  7649. esac
  7650. case $cc_basename in
  7651. nvcc*) # Cuda Compiler Driver 2.2
  7652. lt_prog_compiler_wl='-Xlinker '
  7653. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7654. ;;
  7655. esac
  7656. else
  7657. # PORTME Check for flag to pass linker flags through the system compiler.
  7658. case $host_os in
  7659. aix*)
  7660. lt_prog_compiler_wl='-Wl,'
  7661. if test "$host_cpu" = ia64; then
  7662. # AIX 5 now supports IA64 processor
  7663. lt_prog_compiler_static='-Bstatic'
  7664. else
  7665. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7666. fi
  7667. ;;
  7668. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7669. # This hack is so that the source file can tell whether it is being
  7670. # built for inclusion in a dll (and should export symbols for example).
  7671. lt_prog_compiler_pic='-DDLL_EXPORT'
  7672. ;;
  7673. hpux9* | hpux10* | hpux11*)
  7674. lt_prog_compiler_wl='-Wl,'
  7675. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7676. # not for PA HP-UX.
  7677. case $host_cpu in
  7678. hppa*64*|ia64*)
  7679. # +Z the default
  7680. ;;
  7681. *)
  7682. lt_prog_compiler_pic='+Z'
  7683. ;;
  7684. esac
  7685. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7686. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7687. ;;
  7688. irix5* | irix6* | nonstopux*)
  7689. lt_prog_compiler_wl='-Wl,'
  7690. # PIC (with -KPIC) is the default.
  7691. lt_prog_compiler_static='-non_shared'
  7692. ;;
  7693. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7694. case $cc_basename in
  7695. # old Intel for x86_64 which still supported -KPIC.
  7696. ecc*)
  7697. lt_prog_compiler_wl='-Wl,'
  7698. lt_prog_compiler_pic='-KPIC'
  7699. lt_prog_compiler_static='-static'
  7700. ;;
  7701. # icc used to be incompatible with GCC.
  7702. # ICC 10 doesn't accept -KPIC any more.
  7703. icc* | ifort*)
  7704. lt_prog_compiler_wl='-Wl,'
  7705. lt_prog_compiler_pic='-fPIC'
  7706. lt_prog_compiler_static='-static'
  7707. ;;
  7708. # Lahey Fortran 8.1.
  7709. lf95*)
  7710. lt_prog_compiler_wl='-Wl,'
  7711. lt_prog_compiler_pic='--shared'
  7712. lt_prog_compiler_static='--static'
  7713. ;;
  7714. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7715. # Portland Group compilers (*not* the Pentium gcc compiler,
  7716. # which looks to be a dead project)
  7717. lt_prog_compiler_wl='-Wl,'
  7718. lt_prog_compiler_pic='-fpic'
  7719. lt_prog_compiler_static='-Bstatic'
  7720. ;;
  7721. ccc*)
  7722. lt_prog_compiler_wl='-Wl,'
  7723. # All Alpha code is PIC.
  7724. lt_prog_compiler_static='-non_shared'
  7725. ;;
  7726. xl* | bgxl* | bgf* | mpixl*)
  7727. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7728. lt_prog_compiler_wl='-Wl,'
  7729. lt_prog_compiler_pic='-qpic'
  7730. lt_prog_compiler_static='-qstaticlink'
  7731. ;;
  7732. *)
  7733. case `$CC -V 2>&1 | sed 5q` in
  7734. *Sun\ F* | *Sun*Fortran*)
  7735. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7736. lt_prog_compiler_pic='-KPIC'
  7737. lt_prog_compiler_static='-Bstatic'
  7738. lt_prog_compiler_wl=''
  7739. ;;
  7740. *Sun\ C*)
  7741. # Sun C 5.9
  7742. lt_prog_compiler_pic='-KPIC'
  7743. lt_prog_compiler_static='-Bstatic'
  7744. lt_prog_compiler_wl='-Wl,'
  7745. ;;
  7746. esac
  7747. ;;
  7748. esac
  7749. ;;
  7750. newsos6)
  7751. lt_prog_compiler_pic='-KPIC'
  7752. lt_prog_compiler_static='-Bstatic'
  7753. ;;
  7754. *nto* | *qnx*)
  7755. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7756. # it will coredump.
  7757. lt_prog_compiler_pic='-fPIC -shared'
  7758. ;;
  7759. osf3* | osf4* | osf5*)
  7760. lt_prog_compiler_wl='-Wl,'
  7761. # All OSF/1 code is PIC.
  7762. lt_prog_compiler_static='-non_shared'
  7763. ;;
  7764. rdos*)
  7765. lt_prog_compiler_static='-non_shared'
  7766. ;;
  7767. solaris*)
  7768. lt_prog_compiler_pic='-KPIC'
  7769. lt_prog_compiler_static='-Bstatic'
  7770. case $cc_basename in
  7771. f77* | f90* | f95*)
  7772. lt_prog_compiler_wl='-Qoption ld ';;
  7773. *)
  7774. lt_prog_compiler_wl='-Wl,';;
  7775. esac
  7776. ;;
  7777. sunos4*)
  7778. lt_prog_compiler_wl='-Qoption ld '
  7779. lt_prog_compiler_pic='-PIC'
  7780. lt_prog_compiler_static='-Bstatic'
  7781. ;;
  7782. sysv4 | sysv4.2uw2* | sysv4.3*)
  7783. lt_prog_compiler_wl='-Wl,'
  7784. lt_prog_compiler_pic='-KPIC'
  7785. lt_prog_compiler_static='-Bstatic'
  7786. ;;
  7787. sysv4*MP*)
  7788. if test -d /usr/nec ;then
  7789. lt_prog_compiler_pic='-Kconform_pic'
  7790. lt_prog_compiler_static='-Bstatic'
  7791. fi
  7792. ;;
  7793. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7794. lt_prog_compiler_wl='-Wl,'
  7795. lt_prog_compiler_pic='-KPIC'
  7796. lt_prog_compiler_static='-Bstatic'
  7797. ;;
  7798. unicos*)
  7799. lt_prog_compiler_wl='-Wl,'
  7800. lt_prog_compiler_can_build_shared=no
  7801. ;;
  7802. uts4*)
  7803. lt_prog_compiler_pic='-pic'
  7804. lt_prog_compiler_static='-Bstatic'
  7805. ;;
  7806. *)
  7807. lt_prog_compiler_can_build_shared=no
  7808. ;;
  7809. esac
  7810. fi
  7811. case $host_os in
  7812. # For platforms which do not support PIC, -DPIC is meaningless:
  7813. *djgpp*)
  7814. lt_prog_compiler_pic=
  7815. ;;
  7816. *)
  7817. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7818. ;;
  7819. esac
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7821. $as_echo "$lt_prog_compiler_pic" >&6; }
  7822. #
  7823. # Check to make sure the PIC flag actually works.
  7824. #
  7825. if test -n "$lt_prog_compiler_pic"; then
  7826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7827. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7828. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7829. $as_echo_n "(cached) " >&6
  7830. else
  7831. lt_cv_prog_compiler_pic_works=no
  7832. ac_outfile=conftest.$ac_objext
  7833. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7834. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7835. # Insert the option either (1) after the last *FLAGS variable, or
  7836. # (2) before a word containing "conftest.", or (3) at the end.
  7837. # Note that $ac_compile itself does not contain backslashes and begins
  7838. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7839. # The option is referenced via a variable to avoid confusing sed.
  7840. lt_compile=`echo "$ac_compile" | $SED \
  7841. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7842. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7843. -e 's:$: $lt_compiler_flag:'`
  7844. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7845. (eval "$lt_compile" 2>conftest.err)
  7846. ac_status=$?
  7847. cat conftest.err >&5
  7848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7849. if (exit $ac_status) && test -s "$ac_outfile"; then
  7850. # The compiler can only warn and ignore the option if not recognized
  7851. # So say no if there are warnings other than the usual output.
  7852. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7853. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7854. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7855. lt_cv_prog_compiler_pic_works=yes
  7856. fi
  7857. fi
  7858. $RM conftest*
  7859. fi
  7860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7861. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7862. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7863. case $lt_prog_compiler_pic in
  7864. "" | " "*) ;;
  7865. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7866. esac
  7867. else
  7868. lt_prog_compiler_pic=
  7869. lt_prog_compiler_can_build_shared=no
  7870. fi
  7871. fi
  7872. #
  7873. # Check to make sure the static flag actually works.
  7874. #
  7875. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7877. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7878. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. lt_cv_prog_compiler_static_works=no
  7882. save_LDFLAGS="$LDFLAGS"
  7883. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7884. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7885. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7886. # The linker can only warn and ignore the option if not recognized
  7887. # So say no if there are warnings
  7888. if test -s conftest.err; then
  7889. # Append any errors to the config.log.
  7890. cat conftest.err 1>&5
  7891. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7892. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7893. if diff conftest.exp conftest.er2 >/dev/null; then
  7894. lt_cv_prog_compiler_static_works=yes
  7895. fi
  7896. else
  7897. lt_cv_prog_compiler_static_works=yes
  7898. fi
  7899. fi
  7900. $RM -r conftest*
  7901. LDFLAGS="$save_LDFLAGS"
  7902. fi
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7904. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7905. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7906. :
  7907. else
  7908. lt_prog_compiler_static=
  7909. fi
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7911. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7912. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7913. $as_echo_n "(cached) " >&6
  7914. else
  7915. lt_cv_prog_compiler_c_o=no
  7916. $RM -r conftest 2>/dev/null
  7917. mkdir conftest
  7918. cd conftest
  7919. mkdir out
  7920. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7921. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7922. # Insert the option either (1) after the last *FLAGS variable, or
  7923. # (2) before a word containing "conftest.", or (3) at the end.
  7924. # Note that $ac_compile itself does not contain backslashes and begins
  7925. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7926. lt_compile=`echo "$ac_compile" | $SED \
  7927. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7928. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7929. -e 's:$: $lt_compiler_flag:'`
  7930. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7931. (eval "$lt_compile" 2>out/conftest.err)
  7932. ac_status=$?
  7933. cat out/conftest.err >&5
  7934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7935. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7936. then
  7937. # The compiler can only warn and ignore the option if not recognized
  7938. # So say no if there are warnings
  7939. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7940. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7941. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7942. lt_cv_prog_compiler_c_o=yes
  7943. fi
  7944. fi
  7945. chmod u+w . 2>&5
  7946. $RM conftest*
  7947. # SGI C++ compiler will create directory out/ii_files/ for
  7948. # template instantiation
  7949. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7950. $RM out/* && rmdir out
  7951. cd ..
  7952. $RM -r conftest
  7953. $RM conftest*
  7954. fi
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7956. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7958. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7959. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7960. $as_echo_n "(cached) " >&6
  7961. else
  7962. lt_cv_prog_compiler_c_o=no
  7963. $RM -r conftest 2>/dev/null
  7964. mkdir conftest
  7965. cd conftest
  7966. mkdir out
  7967. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7968. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7969. # Insert the option either (1) after the last *FLAGS variable, or
  7970. # (2) before a word containing "conftest.", or (3) at the end.
  7971. # Note that $ac_compile itself does not contain backslashes and begins
  7972. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7973. lt_compile=`echo "$ac_compile" | $SED \
  7974. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7975. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7976. -e 's:$: $lt_compiler_flag:'`
  7977. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7978. (eval "$lt_compile" 2>out/conftest.err)
  7979. ac_status=$?
  7980. cat out/conftest.err >&5
  7981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7982. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7983. then
  7984. # The compiler can only warn and ignore the option if not recognized
  7985. # So say no if there are warnings
  7986. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7987. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7988. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7989. lt_cv_prog_compiler_c_o=yes
  7990. fi
  7991. fi
  7992. chmod u+w . 2>&5
  7993. $RM conftest*
  7994. # SGI C++ compiler will create directory out/ii_files/ for
  7995. # template instantiation
  7996. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7997. $RM out/* && rmdir out
  7998. cd ..
  7999. $RM -r conftest
  8000. $RM conftest*
  8001. fi
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8003. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8004. hard_links="nottested"
  8005. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8006. # do not overwrite the value of need_locks provided by the user
  8007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8008. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8009. hard_links=yes
  8010. $RM conftest*
  8011. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8012. touch conftest.a
  8013. ln conftest.a conftest.b 2>&5 || hard_links=no
  8014. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8016. $as_echo "$hard_links" >&6; }
  8017. if test "$hard_links" = no; then
  8018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8019. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8020. need_locks=warn
  8021. fi
  8022. else
  8023. need_locks=no
  8024. fi
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8026. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8027. runpath_var=
  8028. allow_undefined_flag=
  8029. always_export_symbols=no
  8030. archive_cmds=
  8031. archive_expsym_cmds=
  8032. compiler_needs_object=no
  8033. enable_shared_with_static_runtimes=no
  8034. export_dynamic_flag_spec=
  8035. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8036. hardcode_automatic=no
  8037. hardcode_direct=no
  8038. hardcode_direct_absolute=no
  8039. hardcode_libdir_flag_spec=
  8040. hardcode_libdir_flag_spec_ld=
  8041. hardcode_libdir_separator=
  8042. hardcode_minus_L=no
  8043. hardcode_shlibpath_var=unsupported
  8044. inherit_rpath=no
  8045. link_all_deplibs=unknown
  8046. module_cmds=
  8047. module_expsym_cmds=
  8048. old_archive_from_new_cmds=
  8049. old_archive_from_expsyms_cmds=
  8050. thread_safe_flag_spec=
  8051. whole_archive_flag_spec=
  8052. # include_expsyms should be a list of space-separated symbols to be *always*
  8053. # included in the symbol list
  8054. include_expsyms=
  8055. # exclude_expsyms can be an extended regexp of symbols to exclude
  8056. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8057. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8058. # as well as any symbol that contains `d'.
  8059. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8060. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8061. # platforms (ab)use it in PIC code, but their linkers get confused if
  8062. # the symbol is explicitly referenced. Since portable code cannot
  8063. # rely on this symbol name, it's probably fine to never include it in
  8064. # preloaded symbol tables.
  8065. # Exclude shared library initialization/finalization symbols.
  8066. extract_expsyms_cmds=
  8067. case $host_os in
  8068. cygwin* | mingw* | pw32* | cegcc*)
  8069. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8070. # When not using gcc, we currently assume that we are using
  8071. # Microsoft Visual C++.
  8072. if test "$GCC" != yes; then
  8073. with_gnu_ld=no
  8074. fi
  8075. ;;
  8076. interix*)
  8077. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8078. with_gnu_ld=yes
  8079. ;;
  8080. openbsd*)
  8081. with_gnu_ld=no
  8082. ;;
  8083. esac
  8084. ld_shlibs=yes
  8085. # On some targets, GNU ld is compatible enough with the native linker
  8086. # that we're better off using the native interface for both.
  8087. lt_use_gnu_ld_interface=no
  8088. if test "$with_gnu_ld" = yes; then
  8089. case $host_os in
  8090. aix*)
  8091. # The AIX port of GNU ld has always aspired to compatibility
  8092. # with the native linker. However, as the warning in the GNU ld
  8093. # block says, versions before 2.19.5* couldn't really create working
  8094. # shared libraries, regardless of the interface used.
  8095. case `$LD -v 2>&1` in
  8096. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8097. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8098. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8099. *)
  8100. lt_use_gnu_ld_interface=yes
  8101. ;;
  8102. esac
  8103. ;;
  8104. *)
  8105. lt_use_gnu_ld_interface=yes
  8106. ;;
  8107. esac
  8108. fi
  8109. if test "$lt_use_gnu_ld_interface" = yes; then
  8110. # If archive_cmds runs LD, not CC, wlarc should be empty
  8111. wlarc='${wl}'
  8112. # Set some defaults for GNU ld with shared library support. These
  8113. # are reset later if shared libraries are not supported. Putting them
  8114. # here allows them to be overridden if necessary.
  8115. runpath_var=LD_RUN_PATH
  8116. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8117. export_dynamic_flag_spec='${wl}--export-dynamic'
  8118. # ancient GNU ld didn't support --whole-archive et. al.
  8119. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8120. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8121. else
  8122. whole_archive_flag_spec=
  8123. fi
  8124. supports_anon_versioning=no
  8125. case `$LD -v 2>&1` in
  8126. *GNU\ gold*) supports_anon_versioning=yes ;;
  8127. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8128. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8129. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8130. *\ 2.11.*) ;; # other 2.11 versions
  8131. *) supports_anon_versioning=yes ;;
  8132. esac
  8133. # See if GNU ld supports shared libraries.
  8134. case $host_os in
  8135. aix[3-9]*)
  8136. # On AIX/PPC, the GNU linker is very broken
  8137. if test "$host_cpu" != ia64; then
  8138. ld_shlibs=no
  8139. cat <<_LT_EOF 1>&2
  8140. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8141. *** to be unable to reliably create shared libraries on AIX.
  8142. *** Therefore, libtool is disabling shared libraries support. If you
  8143. *** really care for shared libraries, you may want to install binutils
  8144. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8145. *** You will then need to restart the configuration process.
  8146. _LT_EOF
  8147. fi
  8148. ;;
  8149. amigaos*)
  8150. case $host_cpu in
  8151. powerpc)
  8152. # see comment about AmigaOS4 .so support
  8153. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8154. archive_expsym_cmds=''
  8155. ;;
  8156. m68k)
  8157. 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)'
  8158. hardcode_libdir_flag_spec='-L$libdir'
  8159. hardcode_minus_L=yes
  8160. ;;
  8161. esac
  8162. ;;
  8163. beos*)
  8164. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8165. allow_undefined_flag=unsupported
  8166. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8167. # support --undefined. This deserves some investigation. FIXME
  8168. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8169. else
  8170. ld_shlibs=no
  8171. fi
  8172. ;;
  8173. cygwin* | mingw* | pw32* | cegcc*)
  8174. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8175. # as there is no search path for DLLs.
  8176. hardcode_libdir_flag_spec='-L$libdir'
  8177. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8178. allow_undefined_flag=unsupported
  8179. always_export_symbols=no
  8180. enable_shared_with_static_runtimes=yes
  8181. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8182. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8183. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8184. # If the export-symbols file already is a .def file (1st line
  8185. # is EXPORTS), use it as is; otherwise, prepend...
  8186. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8187. cp $export_symbols $output_objdir/$soname.def;
  8188. else
  8189. echo EXPORTS > $output_objdir/$soname.def;
  8190. cat $export_symbols >> $output_objdir/$soname.def;
  8191. fi~
  8192. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8193. else
  8194. ld_shlibs=no
  8195. fi
  8196. ;;
  8197. haiku*)
  8198. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8199. link_all_deplibs=yes
  8200. ;;
  8201. interix[3-9]*)
  8202. hardcode_direct=no
  8203. hardcode_shlibpath_var=no
  8204. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8205. export_dynamic_flag_spec='${wl}-E'
  8206. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8207. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8208. # default) and relocated if they conflict, which is a slow very memory
  8209. # consuming and fragmenting process. To avoid this, we pick a random,
  8210. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8211. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8212. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8213. 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'
  8214. ;;
  8215. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8216. tmp_diet=no
  8217. if test "$host_os" = linux-dietlibc; then
  8218. case $cc_basename in
  8219. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8220. esac
  8221. fi
  8222. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8223. && test "$tmp_diet" = no
  8224. then
  8225. tmp_addflag=' $pic_flag'
  8226. tmp_sharedflag='-shared'
  8227. case $cc_basename,$host_cpu in
  8228. pgcc*) # Portland Group C compiler
  8229. 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'
  8230. tmp_addflag=' $pic_flag'
  8231. ;;
  8232. pgf77* | pgf90* | pgf95* | pgfortran*)
  8233. # Portland Group f77 and f90 compilers
  8234. 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'
  8235. tmp_addflag=' $pic_flag -Mnomain' ;;
  8236. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8237. tmp_addflag=' -i_dynamic' ;;
  8238. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8239. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8240. ifc* | ifort*) # Intel Fortran compiler
  8241. tmp_addflag=' -nofor_main' ;;
  8242. lf95*) # Lahey Fortran 8.1
  8243. whole_archive_flag_spec=
  8244. tmp_sharedflag='--shared' ;;
  8245. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8246. tmp_sharedflag='-qmkshrobj'
  8247. tmp_addflag= ;;
  8248. nvcc*) # Cuda Compiler Driver 2.2
  8249. 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'
  8250. compiler_needs_object=yes
  8251. ;;
  8252. esac
  8253. case `$CC -V 2>&1 | sed 5q` in
  8254. *Sun\ C*) # Sun C 5.9
  8255. 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'
  8256. compiler_needs_object=yes
  8257. tmp_sharedflag='-G' ;;
  8258. *Sun\ F*) # Sun Fortran 8.3
  8259. tmp_sharedflag='-G' ;;
  8260. esac
  8261. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8262. if test "x$supports_anon_versioning" = xyes; then
  8263. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8264. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8265. echo "local: *; };" >> $output_objdir/$libname.ver~
  8266. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8267. fi
  8268. case $cc_basename in
  8269. xlf* | bgf* | bgxlf* | mpixlf*)
  8270. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8271. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8272. hardcode_libdir_flag_spec=
  8273. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8274. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8275. if test "x$supports_anon_versioning" = xyes; then
  8276. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8277. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8278. echo "local: *; };" >> $output_objdir/$libname.ver~
  8279. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8280. fi
  8281. ;;
  8282. esac
  8283. else
  8284. ld_shlibs=no
  8285. fi
  8286. ;;
  8287. netbsd*)
  8288. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8289. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8290. wlarc=
  8291. else
  8292. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8293. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8294. fi
  8295. ;;
  8296. solaris*)
  8297. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8298. ld_shlibs=no
  8299. cat <<_LT_EOF 1>&2
  8300. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8301. *** create shared libraries on Solaris systems. Therefore, libtool
  8302. *** is disabling shared libraries support. We urge you to upgrade GNU
  8303. *** binutils to release 2.9.1 or newer. Another option is to modify
  8304. *** your PATH or compiler configuration so that the native linker is
  8305. *** used, and then restart.
  8306. _LT_EOF
  8307. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8308. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8309. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8310. else
  8311. ld_shlibs=no
  8312. fi
  8313. ;;
  8314. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8315. case `$LD -v 2>&1` in
  8316. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8317. ld_shlibs=no
  8318. cat <<_LT_EOF 1>&2
  8319. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8320. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8321. *** is disabling shared libraries support. We urge you to upgrade GNU
  8322. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8323. *** your PATH or compiler configuration so that the native linker is
  8324. *** used, and then restart.
  8325. _LT_EOF
  8326. ;;
  8327. *)
  8328. # For security reasons, it is highly recommended that you always
  8329. # use absolute paths for naming shared libraries, and exclude the
  8330. # DT_RUNPATH tag from executables and libraries. But doing so
  8331. # requires that you compile everything twice, which is a pain.
  8332. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8333. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8334. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8335. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8336. else
  8337. ld_shlibs=no
  8338. fi
  8339. ;;
  8340. esac
  8341. ;;
  8342. sunos4*)
  8343. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8344. wlarc=
  8345. hardcode_direct=yes
  8346. hardcode_shlibpath_var=no
  8347. ;;
  8348. *)
  8349. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8350. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8351. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8352. else
  8353. ld_shlibs=no
  8354. fi
  8355. ;;
  8356. esac
  8357. if test "$ld_shlibs" = no; then
  8358. runpath_var=
  8359. hardcode_libdir_flag_spec=
  8360. export_dynamic_flag_spec=
  8361. whole_archive_flag_spec=
  8362. fi
  8363. else
  8364. # PORTME fill in a description of your system's linker (not GNU ld)
  8365. case $host_os in
  8366. aix3*)
  8367. allow_undefined_flag=unsupported
  8368. always_export_symbols=yes
  8369. 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'
  8370. # Note: this linker hardcodes the directories in LIBPATH if there
  8371. # are no directories specified by -L.
  8372. hardcode_minus_L=yes
  8373. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8374. # Neither direct hardcoding nor static linking is supported with a
  8375. # broken collect2.
  8376. hardcode_direct=unsupported
  8377. fi
  8378. ;;
  8379. aix[4-9]*)
  8380. if test "$host_cpu" = ia64; then
  8381. # On IA64, the linker does run time linking by default, so we don't
  8382. # have to do anything special.
  8383. aix_use_runtimelinking=no
  8384. exp_sym_flag='-Bexport'
  8385. no_entry_flag=""
  8386. else
  8387. # If we're using GNU nm, then we don't want the "-C" option.
  8388. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8389. # Also, AIX nm treats weak defined symbols like other global
  8390. # defined symbols, whereas GNU nm marks them as "W".
  8391. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8392. 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'
  8393. else
  8394. 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'
  8395. fi
  8396. aix_use_runtimelinking=no
  8397. # Test if we are trying to use run time linking or normal
  8398. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8399. # need to do runtime linking.
  8400. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8401. for ld_flag in $LDFLAGS; do
  8402. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8403. aix_use_runtimelinking=yes
  8404. break
  8405. fi
  8406. done
  8407. ;;
  8408. esac
  8409. exp_sym_flag='-bexport'
  8410. no_entry_flag='-bnoentry'
  8411. fi
  8412. # When large executables or shared objects are built, AIX ld can
  8413. # have problems creating the table of contents. If linking a library
  8414. # or program results in "error TOC overflow" add -mminimal-toc to
  8415. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8416. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8417. archive_cmds=''
  8418. hardcode_direct=yes
  8419. hardcode_direct_absolute=yes
  8420. hardcode_libdir_separator=':'
  8421. link_all_deplibs=yes
  8422. file_list_spec='${wl}-f,'
  8423. if test "$GCC" = yes; then
  8424. case $host_os in aix4.[012]|aix4.[012].*)
  8425. # We only want to do this on AIX 4.2 and lower, the check
  8426. # below for broken collect2 doesn't work under 4.3+
  8427. collect2name=`${CC} -print-prog-name=collect2`
  8428. if test -f "$collect2name" &&
  8429. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8430. then
  8431. # We have reworked collect2
  8432. :
  8433. else
  8434. # We have old collect2
  8435. hardcode_direct=unsupported
  8436. # It fails to find uninstalled libraries when the uninstalled
  8437. # path is not listed in the libpath. Setting hardcode_minus_L
  8438. # to unsupported forces relinking
  8439. hardcode_minus_L=yes
  8440. hardcode_libdir_flag_spec='-L$libdir'
  8441. hardcode_libdir_separator=
  8442. fi
  8443. ;;
  8444. esac
  8445. shared_flag='-shared'
  8446. if test "$aix_use_runtimelinking" = yes; then
  8447. shared_flag="$shared_flag "'${wl}-G'
  8448. fi
  8449. else
  8450. # not using gcc
  8451. if test "$host_cpu" = ia64; then
  8452. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8453. # chokes on -Wl,-G. The following line is correct:
  8454. shared_flag='-G'
  8455. else
  8456. if test "$aix_use_runtimelinking" = yes; then
  8457. shared_flag='${wl}-G'
  8458. else
  8459. shared_flag='${wl}-bM:SRE'
  8460. fi
  8461. fi
  8462. fi
  8463. export_dynamic_flag_spec='${wl}-bexpall'
  8464. # It seems that -bexpall does not export symbols beginning with
  8465. # underscore (_), so it is better to generate a list of symbols to export.
  8466. always_export_symbols=yes
  8467. if test "$aix_use_runtimelinking" = yes; then
  8468. # Warning - without using the other runtime loading flags (-brtl),
  8469. # -berok will link without error, but may produce a broken library.
  8470. allow_undefined_flag='-berok'
  8471. # Determine the default libpath from the value encoded in an
  8472. # empty executable.
  8473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8474. /* end confdefs.h. */
  8475. int
  8476. main ()
  8477. {
  8478. ;
  8479. return 0;
  8480. }
  8481. _ACEOF
  8482. if ac_fn_c_try_link "$LINENO"; then :
  8483. lt_aix_libpath_sed='
  8484. /Import File Strings/,/^$/ {
  8485. /^0/ {
  8486. s/^0 *\(.*\)$/\1/
  8487. p
  8488. }
  8489. }'
  8490. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8491. # Check for a 64-bit object if we didn't find anything.
  8492. if test -z "$aix_libpath"; then
  8493. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8494. fi
  8495. fi
  8496. rm -f core conftest.err conftest.$ac_objext \
  8497. conftest$ac_exeext conftest.$ac_ext
  8498. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8499. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8500. 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"
  8501. else
  8502. if test "$host_cpu" = ia64; then
  8503. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8504. allow_undefined_flag="-z nodefs"
  8505. 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"
  8506. else
  8507. # Determine the default libpath from the value encoded in an
  8508. # empty executable.
  8509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8510. /* end confdefs.h. */
  8511. int
  8512. main ()
  8513. {
  8514. ;
  8515. return 0;
  8516. }
  8517. _ACEOF
  8518. if ac_fn_c_try_link "$LINENO"; then :
  8519. lt_aix_libpath_sed='
  8520. /Import File Strings/,/^$/ {
  8521. /^0/ {
  8522. s/^0 *\(.*\)$/\1/
  8523. p
  8524. }
  8525. }'
  8526. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8527. # Check for a 64-bit object if we didn't find anything.
  8528. if test -z "$aix_libpath"; then
  8529. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8530. fi
  8531. fi
  8532. rm -f core conftest.err conftest.$ac_objext \
  8533. conftest$ac_exeext conftest.$ac_ext
  8534. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8535. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8536. # Warning - without using the other run time loading flags,
  8537. # -berok will link without error, but may produce a broken library.
  8538. no_undefined_flag=' ${wl}-bernotok'
  8539. allow_undefined_flag=' ${wl}-berok'
  8540. if test "$with_gnu_ld" = yes; then
  8541. # We only use this code for GNU lds that support --whole-archive.
  8542. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8543. else
  8544. # Exported symbols can be pulled into shared objects from archives
  8545. whole_archive_flag_spec='$convenience'
  8546. fi
  8547. archive_cmds_need_lc=yes
  8548. # This is similar to how AIX traditionally builds its shared libraries.
  8549. 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'
  8550. fi
  8551. fi
  8552. ;;
  8553. amigaos*)
  8554. case $host_cpu in
  8555. powerpc)
  8556. # see comment about AmigaOS4 .so support
  8557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8558. archive_expsym_cmds=''
  8559. ;;
  8560. m68k)
  8561. 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)'
  8562. hardcode_libdir_flag_spec='-L$libdir'
  8563. hardcode_minus_L=yes
  8564. ;;
  8565. esac
  8566. ;;
  8567. bsdi[45]*)
  8568. export_dynamic_flag_spec=-rdynamic
  8569. ;;
  8570. cygwin* | mingw* | pw32* | cegcc*)
  8571. # When not using gcc, we currently assume that we are using
  8572. # Microsoft Visual C++.
  8573. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8574. # no search path for DLLs.
  8575. hardcode_libdir_flag_spec=' '
  8576. allow_undefined_flag=unsupported
  8577. # Tell ltmain to make .lib files, not .a files.
  8578. libext=lib
  8579. # Tell ltmain to make .dll files, not .so files.
  8580. shrext_cmds=".dll"
  8581. # FIXME: Setting linknames here is a bad hack.
  8582. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8583. # The linker will automatically build a .lib file if we build a DLL.
  8584. old_archive_from_new_cmds='true'
  8585. # FIXME: Should let the user specify the lib program.
  8586. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8587. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8588. enable_shared_with_static_runtimes=yes
  8589. ;;
  8590. darwin* | rhapsody*)
  8591. archive_cmds_need_lc=no
  8592. hardcode_direct=no
  8593. hardcode_automatic=yes
  8594. hardcode_shlibpath_var=unsupported
  8595. if test "$lt_cv_ld_force_load" = "yes"; then
  8596. 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\"`'
  8597. else
  8598. whole_archive_flag_spec=''
  8599. fi
  8600. link_all_deplibs=yes
  8601. allow_undefined_flag="$_lt_dar_allow_undefined"
  8602. case $cc_basename in
  8603. ifort*) _lt_dar_can_shared=yes ;;
  8604. *) _lt_dar_can_shared=$GCC ;;
  8605. esac
  8606. if test "$_lt_dar_can_shared" = "yes"; then
  8607. output_verbose_link_cmd=func_echo_all
  8608. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8609. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8610. 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}"
  8611. 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}"
  8612. else
  8613. ld_shlibs=no
  8614. fi
  8615. ;;
  8616. dgux*)
  8617. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8618. hardcode_libdir_flag_spec='-L$libdir'
  8619. hardcode_shlibpath_var=no
  8620. ;;
  8621. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8622. # support. Future versions do this automatically, but an explicit c++rt0.o
  8623. # does not break anything, and helps significantly (at the cost of a little
  8624. # extra space).
  8625. freebsd2.2*)
  8626. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8627. hardcode_libdir_flag_spec='-R$libdir'
  8628. hardcode_direct=yes
  8629. hardcode_shlibpath_var=no
  8630. ;;
  8631. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8632. freebsd2.*)
  8633. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8634. hardcode_direct=yes
  8635. hardcode_minus_L=yes
  8636. hardcode_shlibpath_var=no
  8637. ;;
  8638. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8639. freebsd* | dragonfly*)
  8640. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8641. hardcode_libdir_flag_spec='-R$libdir'
  8642. hardcode_direct=yes
  8643. hardcode_shlibpath_var=no
  8644. ;;
  8645. hpux9*)
  8646. if test "$GCC" = yes; then
  8647. 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'
  8648. else
  8649. 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'
  8650. fi
  8651. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8652. hardcode_libdir_separator=:
  8653. hardcode_direct=yes
  8654. # hardcode_minus_L: Not really in the search PATH,
  8655. # but as the default location of the library.
  8656. hardcode_minus_L=yes
  8657. export_dynamic_flag_spec='${wl}-E'
  8658. ;;
  8659. hpux10*)
  8660. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8661. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8662. else
  8663. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8664. fi
  8665. if test "$with_gnu_ld" = no; then
  8666. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8667. hardcode_libdir_flag_spec_ld='+b $libdir'
  8668. hardcode_libdir_separator=:
  8669. hardcode_direct=yes
  8670. hardcode_direct_absolute=yes
  8671. export_dynamic_flag_spec='${wl}-E'
  8672. # hardcode_minus_L: Not really in the search PATH,
  8673. # but as the default location of the library.
  8674. hardcode_minus_L=yes
  8675. fi
  8676. ;;
  8677. hpux11*)
  8678. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8679. case $host_cpu in
  8680. hppa*64*)
  8681. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8682. ;;
  8683. ia64*)
  8684. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8685. ;;
  8686. *)
  8687. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8688. ;;
  8689. esac
  8690. else
  8691. case $host_cpu in
  8692. hppa*64*)
  8693. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8694. ;;
  8695. ia64*)
  8696. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8697. ;;
  8698. *)
  8699. # Older versions of the 11.00 compiler do not understand -b yet
  8700. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8702. $as_echo_n "checking if $CC understands -b... " >&6; }
  8703. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8704. $as_echo_n "(cached) " >&6
  8705. else
  8706. lt_cv_prog_compiler__b=no
  8707. save_LDFLAGS="$LDFLAGS"
  8708. LDFLAGS="$LDFLAGS -b"
  8709. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8710. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8711. # The linker can only warn and ignore the option if not recognized
  8712. # So say no if there are warnings
  8713. if test -s conftest.err; then
  8714. # Append any errors to the config.log.
  8715. cat conftest.err 1>&5
  8716. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8717. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8718. if diff conftest.exp conftest.er2 >/dev/null; then
  8719. lt_cv_prog_compiler__b=yes
  8720. fi
  8721. else
  8722. lt_cv_prog_compiler__b=yes
  8723. fi
  8724. fi
  8725. $RM -r conftest*
  8726. LDFLAGS="$save_LDFLAGS"
  8727. fi
  8728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8729. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8730. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8731. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8732. else
  8733. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8734. fi
  8735. ;;
  8736. esac
  8737. fi
  8738. if test "$with_gnu_ld" = no; then
  8739. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8740. hardcode_libdir_separator=:
  8741. case $host_cpu in
  8742. hppa*64*|ia64*)
  8743. hardcode_direct=no
  8744. hardcode_shlibpath_var=no
  8745. ;;
  8746. *)
  8747. hardcode_direct=yes
  8748. hardcode_direct_absolute=yes
  8749. export_dynamic_flag_spec='${wl}-E'
  8750. # hardcode_minus_L: Not really in the search PATH,
  8751. # but as the default location of the library.
  8752. hardcode_minus_L=yes
  8753. ;;
  8754. esac
  8755. fi
  8756. ;;
  8757. irix5* | irix6* | nonstopux*)
  8758. if test "$GCC" = yes; then
  8759. 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'
  8760. # Try to use the -exported_symbol ld option, if it does not
  8761. # work, assume that -exports_file does not work either and
  8762. # implicitly export all symbols.
  8763. save_LDFLAGS="$LDFLAGS"
  8764. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8766. /* end confdefs.h. */
  8767. int foo(void) {}
  8768. _ACEOF
  8769. if ac_fn_c_try_link "$LINENO"; then :
  8770. 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'
  8771. fi
  8772. rm -f core conftest.err conftest.$ac_objext \
  8773. conftest$ac_exeext conftest.$ac_ext
  8774. LDFLAGS="$save_LDFLAGS"
  8775. else
  8776. 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'
  8777. 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'
  8778. fi
  8779. archive_cmds_need_lc='no'
  8780. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8781. hardcode_libdir_separator=:
  8782. inherit_rpath=yes
  8783. link_all_deplibs=yes
  8784. ;;
  8785. netbsd*)
  8786. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8787. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8788. else
  8789. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8790. fi
  8791. hardcode_libdir_flag_spec='-R$libdir'
  8792. hardcode_direct=yes
  8793. hardcode_shlibpath_var=no
  8794. ;;
  8795. newsos6)
  8796. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8797. hardcode_direct=yes
  8798. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8799. hardcode_libdir_separator=:
  8800. hardcode_shlibpath_var=no
  8801. ;;
  8802. *nto* | *qnx*)
  8803. ;;
  8804. openbsd*)
  8805. if test -f /usr/libexec/ld.so; then
  8806. hardcode_direct=yes
  8807. hardcode_shlibpath_var=no
  8808. hardcode_direct_absolute=yes
  8809. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8810. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8811. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8812. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8813. export_dynamic_flag_spec='${wl}-E'
  8814. else
  8815. case $host_os in
  8816. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8817. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8818. hardcode_libdir_flag_spec='-R$libdir'
  8819. ;;
  8820. *)
  8821. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8822. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8823. ;;
  8824. esac
  8825. fi
  8826. else
  8827. ld_shlibs=no
  8828. fi
  8829. ;;
  8830. os2*)
  8831. hardcode_libdir_flag_spec='-L$libdir'
  8832. hardcode_minus_L=yes
  8833. allow_undefined_flag=unsupported
  8834. 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'
  8835. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8836. ;;
  8837. osf3*)
  8838. if test "$GCC" = yes; then
  8839. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8840. 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'
  8841. else
  8842. allow_undefined_flag=' -expect_unresolved \*'
  8843. 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'
  8844. fi
  8845. archive_cmds_need_lc='no'
  8846. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8847. hardcode_libdir_separator=:
  8848. ;;
  8849. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8850. if test "$GCC" = yes; then
  8851. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8852. 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'
  8853. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8854. else
  8855. allow_undefined_flag=' -expect_unresolved \*'
  8856. 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'
  8857. 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~
  8858. $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'
  8859. # Both c and cxx compiler support -rpath directly
  8860. hardcode_libdir_flag_spec='-rpath $libdir'
  8861. fi
  8862. archive_cmds_need_lc='no'
  8863. hardcode_libdir_separator=:
  8864. ;;
  8865. solaris*)
  8866. no_undefined_flag=' -z defs'
  8867. if test "$GCC" = yes; then
  8868. wlarc='${wl}'
  8869. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8870. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8871. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8872. else
  8873. case `$CC -V 2>&1` in
  8874. *"Compilers 5.0"*)
  8875. wlarc=''
  8876. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8877. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8878. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8879. ;;
  8880. *)
  8881. wlarc='${wl}'
  8882. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8883. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8884. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8885. ;;
  8886. esac
  8887. fi
  8888. hardcode_libdir_flag_spec='-R$libdir'
  8889. hardcode_shlibpath_var=no
  8890. case $host_os in
  8891. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8892. *)
  8893. # The compiler driver will combine and reorder linker options,
  8894. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8895. # but is careful enough not to reorder.
  8896. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8897. if test "$GCC" = yes; then
  8898. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8899. else
  8900. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8901. fi
  8902. ;;
  8903. esac
  8904. link_all_deplibs=yes
  8905. ;;
  8906. sunos4*)
  8907. if test "x$host_vendor" = xsequent; then
  8908. # Use $CC to link under sequent, because it throws in some extra .o
  8909. # files that make .init and .fini sections work.
  8910. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8911. else
  8912. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8913. fi
  8914. hardcode_libdir_flag_spec='-L$libdir'
  8915. hardcode_direct=yes
  8916. hardcode_minus_L=yes
  8917. hardcode_shlibpath_var=no
  8918. ;;
  8919. sysv4)
  8920. case $host_vendor in
  8921. sni)
  8922. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8923. hardcode_direct=yes # is this really true???
  8924. ;;
  8925. siemens)
  8926. ## LD is ld it makes a PLAMLIB
  8927. ## CC just makes a GrossModule.
  8928. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8929. reload_cmds='$CC -r -o $output$reload_objs'
  8930. hardcode_direct=no
  8931. ;;
  8932. motorola)
  8933. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8934. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8935. ;;
  8936. esac
  8937. runpath_var='LD_RUN_PATH'
  8938. hardcode_shlibpath_var=no
  8939. ;;
  8940. sysv4.3*)
  8941. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8942. hardcode_shlibpath_var=no
  8943. export_dynamic_flag_spec='-Bexport'
  8944. ;;
  8945. sysv4*MP*)
  8946. if test -d /usr/nec; then
  8947. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8948. hardcode_shlibpath_var=no
  8949. runpath_var=LD_RUN_PATH
  8950. hardcode_runpath_var=yes
  8951. ld_shlibs=yes
  8952. fi
  8953. ;;
  8954. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8955. no_undefined_flag='${wl}-z,text'
  8956. archive_cmds_need_lc=no
  8957. hardcode_shlibpath_var=no
  8958. runpath_var='LD_RUN_PATH'
  8959. if test "$GCC" = yes; then
  8960. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8961. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8962. else
  8963. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8964. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8965. fi
  8966. ;;
  8967. sysv5* | sco3.2v5* | sco5v6*)
  8968. # Note: We can NOT use -z defs as we might desire, because we do not
  8969. # link with -lc, and that would cause any symbols used from libc to
  8970. # always be unresolved, which means just about no library would
  8971. # ever link correctly. If we're not using GNU ld we use -z text
  8972. # though, which does catch some bad symbols but isn't as heavy-handed
  8973. # as -z defs.
  8974. no_undefined_flag='${wl}-z,text'
  8975. allow_undefined_flag='${wl}-z,nodefs'
  8976. archive_cmds_need_lc=no
  8977. hardcode_shlibpath_var=no
  8978. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8979. hardcode_libdir_separator=':'
  8980. link_all_deplibs=yes
  8981. export_dynamic_flag_spec='${wl}-Bexport'
  8982. runpath_var='LD_RUN_PATH'
  8983. if test "$GCC" = yes; then
  8984. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8985. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8986. else
  8987. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8988. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8989. fi
  8990. ;;
  8991. uts4*)
  8992. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8993. hardcode_libdir_flag_spec='-L$libdir'
  8994. hardcode_shlibpath_var=no
  8995. ;;
  8996. *)
  8997. ld_shlibs=no
  8998. ;;
  8999. esac
  9000. if test x$host_vendor = xsni; then
  9001. case $host in
  9002. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9003. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9004. ;;
  9005. esac
  9006. fi
  9007. fi
  9008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9009. $as_echo "$ld_shlibs" >&6; }
  9010. test "$ld_shlibs" = no && can_build_shared=no
  9011. with_gnu_ld=$with_gnu_ld
  9012. #
  9013. # Do we need to explicitly link libc?
  9014. #
  9015. case "x$archive_cmds_need_lc" in
  9016. x|xyes)
  9017. # Assume -lc should be added
  9018. archive_cmds_need_lc=yes
  9019. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9020. case $archive_cmds in
  9021. *'~'*)
  9022. # FIXME: we may have to deal with multi-command sequences.
  9023. ;;
  9024. '$CC '*)
  9025. # Test whether the compiler implicitly links with -lc since on some
  9026. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9027. # to ld, don't add -lc before -lgcc.
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9029. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9030. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9031. $as_echo_n "(cached) " >&6
  9032. else
  9033. $RM conftest*
  9034. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9035. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9036. (eval $ac_compile) 2>&5
  9037. ac_status=$?
  9038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9039. test $ac_status = 0; } 2>conftest.err; then
  9040. soname=conftest
  9041. lib=conftest
  9042. libobjs=conftest.$ac_objext
  9043. deplibs=
  9044. wl=$lt_prog_compiler_wl
  9045. pic_flag=$lt_prog_compiler_pic
  9046. compiler_flags=-v
  9047. linker_flags=-v
  9048. verstring=
  9049. output_objdir=.
  9050. libname=conftest
  9051. lt_save_allow_undefined_flag=$allow_undefined_flag
  9052. allow_undefined_flag=
  9053. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9054. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9055. ac_status=$?
  9056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9057. test $ac_status = 0; }
  9058. then
  9059. lt_cv_archive_cmds_need_lc=no
  9060. else
  9061. lt_cv_archive_cmds_need_lc=yes
  9062. fi
  9063. allow_undefined_flag=$lt_save_allow_undefined_flag
  9064. else
  9065. cat conftest.err 1>&5
  9066. fi
  9067. $RM conftest*
  9068. fi
  9069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9070. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9071. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9072. ;;
  9073. esac
  9074. fi
  9075. ;;
  9076. esac
  9077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9078. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9079. if test "$GCC" = yes; then
  9080. case $host_os in
  9081. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9082. *) lt_awk_arg="/^libraries:/" ;;
  9083. esac
  9084. case $host_os in
  9085. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9086. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9087. esac
  9088. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9089. case $lt_search_path_spec in
  9090. *\;*)
  9091. # if the path contains ";" then we assume it to be the separator
  9092. # otherwise default to the standard path separator (i.e. ":") - it is
  9093. # assumed that no part of a normal pathname contains ";" but that should
  9094. # okay in the real world where ";" in dirpaths is itself problematic.
  9095. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9096. ;;
  9097. *)
  9098. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9099. ;;
  9100. esac
  9101. # Ok, now we have the path, separated by spaces, we can step through it
  9102. # and add multilib dir if necessary.
  9103. lt_tmp_lt_search_path_spec=
  9104. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9105. for lt_sys_path in $lt_search_path_spec; do
  9106. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9107. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9108. else
  9109. test -d "$lt_sys_path" && \
  9110. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9111. fi
  9112. done
  9113. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9114. BEGIN {RS=" "; FS="/|\n";} {
  9115. lt_foo="";
  9116. lt_count=0;
  9117. for (lt_i = NF; lt_i > 0; lt_i--) {
  9118. if ($lt_i != "" && $lt_i != ".") {
  9119. if ($lt_i == "..") {
  9120. lt_count++;
  9121. } else {
  9122. if (lt_count == 0) {
  9123. lt_foo="/" $lt_i lt_foo;
  9124. } else {
  9125. lt_count--;
  9126. }
  9127. }
  9128. }
  9129. }
  9130. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9131. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9132. }'`
  9133. # AWK program above erroneously prepends '/' to C:/dos/paths
  9134. # for these hosts.
  9135. case $host_os in
  9136. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9137. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9138. esac
  9139. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9140. else
  9141. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9142. fi
  9143. library_names_spec=
  9144. libname_spec='lib$name'
  9145. soname_spec=
  9146. shrext_cmds=".so"
  9147. postinstall_cmds=
  9148. postuninstall_cmds=
  9149. finish_cmds=
  9150. finish_eval=
  9151. shlibpath_var=
  9152. shlibpath_overrides_runpath=unknown
  9153. version_type=none
  9154. dynamic_linker="$host_os ld.so"
  9155. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9156. need_lib_prefix=unknown
  9157. hardcode_into_libs=no
  9158. # when you set need_version to no, make sure it does not cause -set_version
  9159. # flags to be left without arguments
  9160. need_version=unknown
  9161. case $host_os in
  9162. aix3*)
  9163. version_type=linux
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9165. shlibpath_var=LIBPATH
  9166. # AIX 3 has no versioning support, so we append a major version to the name.
  9167. soname_spec='${libname}${release}${shared_ext}$major'
  9168. ;;
  9169. aix[4-9]*)
  9170. version_type=linux
  9171. need_lib_prefix=no
  9172. need_version=no
  9173. hardcode_into_libs=yes
  9174. if test "$host_cpu" = ia64; then
  9175. # AIX 5 supports IA64
  9176. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9177. shlibpath_var=LD_LIBRARY_PATH
  9178. else
  9179. # With GCC up to 2.95.x, collect2 would create an import file
  9180. # for dependence libraries. The import file would start with
  9181. # the line `#! .'. This would cause the generated library to
  9182. # depend on `.', always an invalid library. This was fixed in
  9183. # development snapshots of GCC prior to 3.0.
  9184. case $host_os in
  9185. aix4 | aix4.[01] | aix4.[01].*)
  9186. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9187. echo ' yes '
  9188. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9189. :
  9190. else
  9191. can_build_shared=no
  9192. fi
  9193. ;;
  9194. esac
  9195. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9196. # soname into executable. Probably we can add versioning support to
  9197. # collect2, so additional links can be useful in future.
  9198. if test "$aix_use_runtimelinking" = yes; then
  9199. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9200. # instead of lib<name>.a to let people know that these are not
  9201. # typical AIX shared libraries.
  9202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9203. else
  9204. # We preserve .a as extension for shared libraries through AIX4.2
  9205. # and later when we are not doing run time linking.
  9206. library_names_spec='${libname}${release}.a $libname.a'
  9207. soname_spec='${libname}${release}${shared_ext}$major'
  9208. fi
  9209. shlibpath_var=LIBPATH
  9210. fi
  9211. ;;
  9212. amigaos*)
  9213. case $host_cpu in
  9214. powerpc)
  9215. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9216. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9218. ;;
  9219. m68k)
  9220. library_names_spec='$libname.ixlibrary $libname.a'
  9221. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9222. 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'
  9223. ;;
  9224. esac
  9225. ;;
  9226. beos*)
  9227. library_names_spec='${libname}${shared_ext}'
  9228. dynamic_linker="$host_os ld.so"
  9229. shlibpath_var=LIBRARY_PATH
  9230. ;;
  9231. bsdi[45]*)
  9232. version_type=linux
  9233. need_version=no
  9234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9235. soname_spec='${libname}${release}${shared_ext}$major'
  9236. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9237. shlibpath_var=LD_LIBRARY_PATH
  9238. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9239. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9240. # the default ld.so.conf also contains /usr/contrib/lib and
  9241. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9242. # libtool to hard-code these into programs
  9243. ;;
  9244. cygwin* | mingw* | pw32* | cegcc*)
  9245. version_type=windows
  9246. shrext_cmds=".dll"
  9247. need_version=no
  9248. need_lib_prefix=no
  9249. case $GCC,$host_os in
  9250. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9251. library_names_spec='$libname.dll.a'
  9252. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9253. postinstall_cmds='base_file=`basename \${file}`~
  9254. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9255. dldir=$destdir/`dirname \$dlpath`~
  9256. test -d \$dldir || mkdir -p \$dldir~
  9257. $install_prog $dir/$dlname \$dldir/$dlname~
  9258. chmod a+x \$dldir/$dlname~
  9259. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9260. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9261. fi'
  9262. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9263. dlpath=$dir/\$dldll~
  9264. $RM \$dlpath'
  9265. shlibpath_overrides_runpath=yes
  9266. case $host_os in
  9267. cygwin*)
  9268. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9269. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9270. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9271. ;;
  9272. mingw* | cegcc*)
  9273. # MinGW DLLs use traditional 'lib' prefix
  9274. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9275. ;;
  9276. pw32*)
  9277. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9278. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9279. ;;
  9280. esac
  9281. ;;
  9282. *)
  9283. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9284. ;;
  9285. esac
  9286. dynamic_linker='Win32 ld.exe'
  9287. # FIXME: first we should search . and the directory the executable is in
  9288. shlibpath_var=PATH
  9289. ;;
  9290. darwin* | rhapsody*)
  9291. dynamic_linker="$host_os dyld"
  9292. version_type=darwin
  9293. need_lib_prefix=no
  9294. need_version=no
  9295. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9296. soname_spec='${libname}${release}${major}$shared_ext'
  9297. shlibpath_overrides_runpath=yes
  9298. shlibpath_var=DYLD_LIBRARY_PATH
  9299. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9300. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9301. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9302. ;;
  9303. dgux*)
  9304. version_type=linux
  9305. need_lib_prefix=no
  9306. need_version=no
  9307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9308. soname_spec='${libname}${release}${shared_ext}$major'
  9309. shlibpath_var=LD_LIBRARY_PATH
  9310. ;;
  9311. freebsd* | dragonfly*)
  9312. # DragonFly does not have aout. When/if they implement a new
  9313. # versioning mechanism, adjust this.
  9314. if test -x /usr/bin/objformat; then
  9315. objformat=`/usr/bin/objformat`
  9316. else
  9317. case $host_os in
  9318. freebsd[23].*) objformat=aout ;;
  9319. *) objformat=elf ;;
  9320. esac
  9321. fi
  9322. version_type=freebsd-$objformat
  9323. case $version_type in
  9324. freebsd-elf*)
  9325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9326. need_version=no
  9327. need_lib_prefix=no
  9328. ;;
  9329. freebsd-*)
  9330. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9331. need_version=yes
  9332. ;;
  9333. esac
  9334. shlibpath_var=LD_LIBRARY_PATH
  9335. case $host_os in
  9336. freebsd2.*)
  9337. shlibpath_overrides_runpath=yes
  9338. ;;
  9339. freebsd3.[01]* | freebsdelf3.[01]*)
  9340. shlibpath_overrides_runpath=yes
  9341. hardcode_into_libs=yes
  9342. ;;
  9343. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9344. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9345. shlibpath_overrides_runpath=no
  9346. hardcode_into_libs=yes
  9347. ;;
  9348. *) # from 4.6 on, and DragonFly
  9349. shlibpath_overrides_runpath=yes
  9350. hardcode_into_libs=yes
  9351. ;;
  9352. esac
  9353. ;;
  9354. gnu*)
  9355. version_type=linux
  9356. need_lib_prefix=no
  9357. need_version=no
  9358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9359. soname_spec='${libname}${release}${shared_ext}$major'
  9360. shlibpath_var=LD_LIBRARY_PATH
  9361. hardcode_into_libs=yes
  9362. ;;
  9363. haiku*)
  9364. version_type=linux
  9365. need_lib_prefix=no
  9366. need_version=no
  9367. dynamic_linker="$host_os runtime_loader"
  9368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9369. soname_spec='${libname}${release}${shared_ext}$major'
  9370. shlibpath_var=LIBRARY_PATH
  9371. shlibpath_overrides_runpath=yes
  9372. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9373. hardcode_into_libs=yes
  9374. ;;
  9375. hpux9* | hpux10* | hpux11*)
  9376. # Give a soname corresponding to the major version so that dld.sl refuses to
  9377. # link against other versions.
  9378. version_type=sunos
  9379. need_lib_prefix=no
  9380. need_version=no
  9381. case $host_cpu in
  9382. ia64*)
  9383. shrext_cmds='.so'
  9384. hardcode_into_libs=yes
  9385. dynamic_linker="$host_os dld.so"
  9386. shlibpath_var=LD_LIBRARY_PATH
  9387. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9389. soname_spec='${libname}${release}${shared_ext}$major'
  9390. if test "X$HPUX_IA64_MODE" = X32; then
  9391. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9392. else
  9393. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9394. fi
  9395. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9396. ;;
  9397. hppa*64*)
  9398. shrext_cmds='.sl'
  9399. hardcode_into_libs=yes
  9400. dynamic_linker="$host_os dld.sl"
  9401. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9402. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9404. soname_spec='${libname}${release}${shared_ext}$major'
  9405. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9406. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9407. ;;
  9408. *)
  9409. shrext_cmds='.sl'
  9410. dynamic_linker="$host_os dld.sl"
  9411. shlibpath_var=SHLIB_PATH
  9412. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  9416. esac
  9417. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9418. postinstall_cmds='chmod 555 $lib'
  9419. # or fails outright, so override atomically:
  9420. install_override_mode=555
  9421. ;;
  9422. interix[3-9]*)
  9423. version_type=linux
  9424. need_lib_prefix=no
  9425. need_version=no
  9426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9427. soname_spec='${libname}${release}${shared_ext}$major'
  9428. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9429. shlibpath_var=LD_LIBRARY_PATH
  9430. shlibpath_overrides_runpath=no
  9431. hardcode_into_libs=yes
  9432. ;;
  9433. irix5* | irix6* | nonstopux*)
  9434. case $host_os in
  9435. nonstopux*) version_type=nonstopux ;;
  9436. *)
  9437. if test "$lt_cv_prog_gnu_ld" = yes; then
  9438. version_type=linux
  9439. else
  9440. version_type=irix
  9441. fi ;;
  9442. esac
  9443. need_lib_prefix=no
  9444. need_version=no
  9445. soname_spec='${libname}${release}${shared_ext}$major'
  9446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9447. case $host_os in
  9448. irix5* | nonstopux*)
  9449. libsuff= shlibsuff=
  9450. ;;
  9451. *)
  9452. case $LD in # libtool.m4 will add one of these switches to LD
  9453. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9454. libsuff= shlibsuff= libmagic=32-bit;;
  9455. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9456. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9457. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9458. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9459. *) libsuff= shlibsuff= libmagic=never-match;;
  9460. esac
  9461. ;;
  9462. esac
  9463. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9464. shlibpath_overrides_runpath=no
  9465. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9466. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9467. hardcode_into_libs=yes
  9468. ;;
  9469. # No shared lib support for Linux oldld, aout, or coff.
  9470. linux*oldld* | linux*aout* | linux*coff*)
  9471. dynamic_linker=no
  9472. ;;
  9473. # This must be Linux ELF.
  9474. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9475. version_type=linux
  9476. need_lib_prefix=no
  9477. need_version=no
  9478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9479. soname_spec='${libname}${release}${shared_ext}$major'
  9480. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9481. shlibpath_var=LD_LIBRARY_PATH
  9482. shlibpath_overrides_runpath=no
  9483. # Some binutils ld are patched to set DT_RUNPATH
  9484. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9485. $as_echo_n "(cached) " >&6
  9486. else
  9487. lt_cv_shlibpath_overrides_runpath=no
  9488. save_LDFLAGS=$LDFLAGS
  9489. save_libdir=$libdir
  9490. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9491. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9493. /* end confdefs.h. */
  9494. int
  9495. main ()
  9496. {
  9497. ;
  9498. return 0;
  9499. }
  9500. _ACEOF
  9501. if ac_fn_c_try_link "$LINENO"; then :
  9502. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9503. lt_cv_shlibpath_overrides_runpath=yes
  9504. fi
  9505. fi
  9506. rm -f core conftest.err conftest.$ac_objext \
  9507. conftest$ac_exeext conftest.$ac_ext
  9508. LDFLAGS=$save_LDFLAGS
  9509. libdir=$save_libdir
  9510. fi
  9511. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9512. # This implies no fast_install, which is unacceptable.
  9513. # Some rework will be needed to allow for fast_install
  9514. # before this can be enabled.
  9515. hardcode_into_libs=yes
  9516. # Append ld.so.conf contents to the search path
  9517. if test -f /etc/ld.so.conf; then
  9518. 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' ' '`
  9519. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9520. fi
  9521. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9522. # powerpc, because MkLinux only supported shared libraries with the
  9523. # GNU dynamic linker. Since this was broken with cross compilers,
  9524. # most powerpc-linux boxes support dynamic linking these days and
  9525. # people can always --disable-shared, the test was removed, and we
  9526. # assume the GNU/Linux dynamic linker is in use.
  9527. dynamic_linker='GNU/Linux ld.so'
  9528. ;;
  9529. netbsd*)
  9530. version_type=sunos
  9531. need_lib_prefix=no
  9532. need_version=no
  9533. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9535. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9536. dynamic_linker='NetBSD (a.out) ld.so'
  9537. else
  9538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9539. soname_spec='${libname}${release}${shared_ext}$major'
  9540. dynamic_linker='NetBSD ld.elf_so'
  9541. fi
  9542. shlibpath_var=LD_LIBRARY_PATH
  9543. shlibpath_overrides_runpath=yes
  9544. hardcode_into_libs=yes
  9545. ;;
  9546. newsos6)
  9547. version_type=linux
  9548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9549. shlibpath_var=LD_LIBRARY_PATH
  9550. shlibpath_overrides_runpath=yes
  9551. ;;
  9552. *nto* | *qnx*)
  9553. version_type=qnx
  9554. need_lib_prefix=no
  9555. need_version=no
  9556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9557. soname_spec='${libname}${release}${shared_ext}$major'
  9558. shlibpath_var=LD_LIBRARY_PATH
  9559. shlibpath_overrides_runpath=no
  9560. hardcode_into_libs=yes
  9561. dynamic_linker='ldqnx.so'
  9562. ;;
  9563. openbsd*)
  9564. version_type=sunos
  9565. sys_lib_dlsearch_path_spec="/usr/lib"
  9566. need_lib_prefix=no
  9567. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9568. case $host_os in
  9569. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9570. *) need_version=no ;;
  9571. esac
  9572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9573. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9574. shlibpath_var=LD_LIBRARY_PATH
  9575. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9576. case $host_os in
  9577. openbsd2.[89] | openbsd2.[89].*)
  9578. shlibpath_overrides_runpath=no
  9579. ;;
  9580. *)
  9581. shlibpath_overrides_runpath=yes
  9582. ;;
  9583. esac
  9584. else
  9585. shlibpath_overrides_runpath=yes
  9586. fi
  9587. ;;
  9588. os2*)
  9589. libname_spec='$name'
  9590. shrext_cmds=".dll"
  9591. need_lib_prefix=no
  9592. library_names_spec='$libname${shared_ext} $libname.a'
  9593. dynamic_linker='OS/2 ld.exe'
  9594. shlibpath_var=LIBPATH
  9595. ;;
  9596. osf3* | osf4* | osf5*)
  9597. version_type=osf
  9598. need_lib_prefix=no
  9599. need_version=no
  9600. soname_spec='${libname}${release}${shared_ext}$major'
  9601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9602. shlibpath_var=LD_LIBRARY_PATH
  9603. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9604. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9605. ;;
  9606. rdos*)
  9607. dynamic_linker=no
  9608. ;;
  9609. solaris*)
  9610. version_type=linux
  9611. need_lib_prefix=no
  9612. need_version=no
  9613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9614. soname_spec='${libname}${release}${shared_ext}$major'
  9615. shlibpath_var=LD_LIBRARY_PATH
  9616. shlibpath_overrides_runpath=yes
  9617. hardcode_into_libs=yes
  9618. # ldd complains unless libraries are executable
  9619. postinstall_cmds='chmod +x $lib'
  9620. ;;
  9621. sunos4*)
  9622. version_type=sunos
  9623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9624. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9625. shlibpath_var=LD_LIBRARY_PATH
  9626. shlibpath_overrides_runpath=yes
  9627. if test "$with_gnu_ld" = yes; then
  9628. need_lib_prefix=no
  9629. fi
  9630. need_version=yes
  9631. ;;
  9632. sysv4 | sysv4.3*)
  9633. version_type=linux
  9634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9635. soname_spec='${libname}${release}${shared_ext}$major'
  9636. shlibpath_var=LD_LIBRARY_PATH
  9637. case $host_vendor in
  9638. sni)
  9639. shlibpath_overrides_runpath=no
  9640. need_lib_prefix=no
  9641. runpath_var=LD_RUN_PATH
  9642. ;;
  9643. siemens)
  9644. need_lib_prefix=no
  9645. ;;
  9646. motorola)
  9647. need_lib_prefix=no
  9648. need_version=no
  9649. shlibpath_overrides_runpath=no
  9650. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9651. ;;
  9652. esac
  9653. ;;
  9654. sysv4*MP*)
  9655. if test -d /usr/nec ;then
  9656. version_type=linux
  9657. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9658. soname_spec='$libname${shared_ext}.$major'
  9659. shlibpath_var=LD_LIBRARY_PATH
  9660. fi
  9661. ;;
  9662. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9663. version_type=freebsd-elf
  9664. need_lib_prefix=no
  9665. need_version=no
  9666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9667. soname_spec='${libname}${release}${shared_ext}$major'
  9668. shlibpath_var=LD_LIBRARY_PATH
  9669. shlibpath_overrides_runpath=yes
  9670. hardcode_into_libs=yes
  9671. if test "$with_gnu_ld" = yes; then
  9672. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9673. else
  9674. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9675. case $host_os in
  9676. sco3.2v5*)
  9677. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9678. ;;
  9679. esac
  9680. fi
  9681. sys_lib_dlsearch_path_spec='/usr/lib'
  9682. ;;
  9683. tpf*)
  9684. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9685. version_type=linux
  9686. need_lib_prefix=no
  9687. need_version=no
  9688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9689. shlibpath_var=LD_LIBRARY_PATH
  9690. shlibpath_overrides_runpath=no
  9691. hardcode_into_libs=yes
  9692. ;;
  9693. uts4*)
  9694. version_type=linux
  9695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9696. soname_spec='${libname}${release}${shared_ext}$major'
  9697. shlibpath_var=LD_LIBRARY_PATH
  9698. ;;
  9699. *)
  9700. dynamic_linker=no
  9701. ;;
  9702. esac
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9704. $as_echo "$dynamic_linker" >&6; }
  9705. test "$dynamic_linker" = no && can_build_shared=no
  9706. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9707. if test "$GCC" = yes; then
  9708. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9709. fi
  9710. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9711. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9712. fi
  9713. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9714. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9715. fi
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9717. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9718. hardcode_action=
  9719. if test -n "$hardcode_libdir_flag_spec" ||
  9720. test -n "$runpath_var" ||
  9721. test "X$hardcode_automatic" = "Xyes" ; then
  9722. # We can hardcode non-existent directories.
  9723. if test "$hardcode_direct" != no &&
  9724. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9725. # have to relink, otherwise we might link with an installed library
  9726. # when we should be linking with a yet-to-be-installed one
  9727. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9728. test "$hardcode_minus_L" != no; then
  9729. # Linking always hardcodes the temporary library directory.
  9730. hardcode_action=relink
  9731. else
  9732. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9733. hardcode_action=immediate
  9734. fi
  9735. else
  9736. # We cannot hardcode anything, or else we can only hardcode existing
  9737. # directories.
  9738. hardcode_action=unsupported
  9739. fi
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9741. $as_echo "$hardcode_action" >&6; }
  9742. if test "$hardcode_action" = relink ||
  9743. test "$inherit_rpath" = yes; then
  9744. # Fast installation is not supported
  9745. enable_fast_install=no
  9746. elif test "$shlibpath_overrides_runpath" = yes ||
  9747. test "$enable_shared" = no; then
  9748. # Fast installation is not necessary
  9749. enable_fast_install=needless
  9750. fi
  9751. if test "x$enable_dlopen" != xyes; then
  9752. enable_dlopen=unknown
  9753. enable_dlopen_self=unknown
  9754. enable_dlopen_self_static=unknown
  9755. else
  9756. lt_cv_dlopen=no
  9757. lt_cv_dlopen_libs=
  9758. case $host_os in
  9759. beos*)
  9760. lt_cv_dlopen="load_add_on"
  9761. lt_cv_dlopen_libs=
  9762. lt_cv_dlopen_self=yes
  9763. ;;
  9764. mingw* | pw32* | cegcc*)
  9765. lt_cv_dlopen="LoadLibrary"
  9766. lt_cv_dlopen_libs=
  9767. ;;
  9768. cygwin*)
  9769. lt_cv_dlopen="dlopen"
  9770. lt_cv_dlopen_libs=
  9771. ;;
  9772. darwin*)
  9773. # if libdl is installed we need to link against it
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9775. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9776. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9777. $as_echo_n "(cached) " >&6
  9778. else
  9779. ac_check_lib_save_LIBS=$LIBS
  9780. LIBS="-ldl $LIBS"
  9781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9782. /* end confdefs.h. */
  9783. /* Override any GCC internal prototype to avoid an error.
  9784. Use char because int might match the return type of a GCC
  9785. builtin and then its argument prototype would still apply. */
  9786. #ifdef __cplusplus
  9787. extern "C"
  9788. #endif
  9789. char dlopen ();
  9790. int
  9791. main ()
  9792. {
  9793. return dlopen ();
  9794. ;
  9795. return 0;
  9796. }
  9797. _ACEOF
  9798. if ac_fn_c_try_link "$LINENO"; then :
  9799. ac_cv_lib_dl_dlopen=yes
  9800. else
  9801. ac_cv_lib_dl_dlopen=no
  9802. fi
  9803. rm -f core conftest.err conftest.$ac_objext \
  9804. conftest$ac_exeext conftest.$ac_ext
  9805. LIBS=$ac_check_lib_save_LIBS
  9806. fi
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9808. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9809. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9810. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9811. else
  9812. lt_cv_dlopen="dyld"
  9813. lt_cv_dlopen_libs=
  9814. lt_cv_dlopen_self=yes
  9815. fi
  9816. ;;
  9817. *)
  9818. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9819. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9820. lt_cv_dlopen="shl_load"
  9821. else
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9823. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9824. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9825. $as_echo_n "(cached) " >&6
  9826. else
  9827. ac_check_lib_save_LIBS=$LIBS
  9828. LIBS="-ldld $LIBS"
  9829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9830. /* end confdefs.h. */
  9831. /* Override any GCC internal prototype to avoid an error.
  9832. Use char because int might match the return type of a GCC
  9833. builtin and then its argument prototype would still apply. */
  9834. #ifdef __cplusplus
  9835. extern "C"
  9836. #endif
  9837. char shl_load ();
  9838. int
  9839. main ()
  9840. {
  9841. return shl_load ();
  9842. ;
  9843. return 0;
  9844. }
  9845. _ACEOF
  9846. if ac_fn_c_try_link "$LINENO"; then :
  9847. ac_cv_lib_dld_shl_load=yes
  9848. else
  9849. ac_cv_lib_dld_shl_load=no
  9850. fi
  9851. rm -f core conftest.err conftest.$ac_objext \
  9852. conftest$ac_exeext conftest.$ac_ext
  9853. LIBS=$ac_check_lib_save_LIBS
  9854. fi
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9856. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9857. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9858. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9859. else
  9860. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9861. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9862. lt_cv_dlopen="dlopen"
  9863. else
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9865. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9866. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9867. $as_echo_n "(cached) " >&6
  9868. else
  9869. ac_check_lib_save_LIBS=$LIBS
  9870. LIBS="-ldl $LIBS"
  9871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9872. /* end confdefs.h. */
  9873. /* Override any GCC internal prototype to avoid an error.
  9874. Use char because int might match the return type of a GCC
  9875. builtin and then its argument prototype would still apply. */
  9876. #ifdef __cplusplus
  9877. extern "C"
  9878. #endif
  9879. char dlopen ();
  9880. int
  9881. main ()
  9882. {
  9883. return dlopen ();
  9884. ;
  9885. return 0;
  9886. }
  9887. _ACEOF
  9888. if ac_fn_c_try_link "$LINENO"; then :
  9889. ac_cv_lib_dl_dlopen=yes
  9890. else
  9891. ac_cv_lib_dl_dlopen=no
  9892. fi
  9893. rm -f core conftest.err conftest.$ac_objext \
  9894. conftest$ac_exeext conftest.$ac_ext
  9895. LIBS=$ac_check_lib_save_LIBS
  9896. fi
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9898. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9899. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9900. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9901. else
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9903. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9904. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9905. $as_echo_n "(cached) " >&6
  9906. else
  9907. ac_check_lib_save_LIBS=$LIBS
  9908. LIBS="-lsvld $LIBS"
  9909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9910. /* end confdefs.h. */
  9911. /* Override any GCC internal prototype to avoid an error.
  9912. Use char because int might match the return type of a GCC
  9913. builtin and then its argument prototype would still apply. */
  9914. #ifdef __cplusplus
  9915. extern "C"
  9916. #endif
  9917. char dlopen ();
  9918. int
  9919. main ()
  9920. {
  9921. return dlopen ();
  9922. ;
  9923. return 0;
  9924. }
  9925. _ACEOF
  9926. if ac_fn_c_try_link "$LINENO"; then :
  9927. ac_cv_lib_svld_dlopen=yes
  9928. else
  9929. ac_cv_lib_svld_dlopen=no
  9930. fi
  9931. rm -f core conftest.err conftest.$ac_objext \
  9932. conftest$ac_exeext conftest.$ac_ext
  9933. LIBS=$ac_check_lib_save_LIBS
  9934. fi
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9936. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9937. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9938. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9939. else
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9941. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9942. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9943. $as_echo_n "(cached) " >&6
  9944. else
  9945. ac_check_lib_save_LIBS=$LIBS
  9946. LIBS="-ldld $LIBS"
  9947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9948. /* end confdefs.h. */
  9949. /* Override any GCC internal prototype to avoid an error.
  9950. Use char because int might match the return type of a GCC
  9951. builtin and then its argument prototype would still apply. */
  9952. #ifdef __cplusplus
  9953. extern "C"
  9954. #endif
  9955. char dld_link ();
  9956. int
  9957. main ()
  9958. {
  9959. return dld_link ();
  9960. ;
  9961. return 0;
  9962. }
  9963. _ACEOF
  9964. if ac_fn_c_try_link "$LINENO"; then :
  9965. ac_cv_lib_dld_dld_link=yes
  9966. else
  9967. ac_cv_lib_dld_dld_link=no
  9968. fi
  9969. rm -f core conftest.err conftest.$ac_objext \
  9970. conftest$ac_exeext conftest.$ac_ext
  9971. LIBS=$ac_check_lib_save_LIBS
  9972. fi
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9974. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9975. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9976. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9977. fi
  9978. fi
  9979. fi
  9980. fi
  9981. fi
  9982. fi
  9983. ;;
  9984. esac
  9985. if test "x$lt_cv_dlopen" != xno; then
  9986. enable_dlopen=yes
  9987. else
  9988. enable_dlopen=no
  9989. fi
  9990. case $lt_cv_dlopen in
  9991. dlopen)
  9992. save_CPPFLAGS="$CPPFLAGS"
  9993. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9994. save_LDFLAGS="$LDFLAGS"
  9995. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9996. save_LIBS="$LIBS"
  9997. LIBS="$lt_cv_dlopen_libs $LIBS"
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9999. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10000. if test "${lt_cv_dlopen_self+set}" = set; then :
  10001. $as_echo_n "(cached) " >&6
  10002. else
  10003. if test "$cross_compiling" = yes; then :
  10004. lt_cv_dlopen_self=cross
  10005. else
  10006. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10007. lt_status=$lt_dlunknown
  10008. cat > conftest.$ac_ext <<_LT_EOF
  10009. #line 12295 "configure"
  10010. #include "confdefs.h"
  10011. #if HAVE_DLFCN_H
  10012. #include <dlfcn.h>
  10013. #endif
  10014. #include <stdio.h>
  10015. #ifdef RTLD_GLOBAL
  10016. # define LT_DLGLOBAL RTLD_GLOBAL
  10017. #else
  10018. # ifdef DL_GLOBAL
  10019. # define LT_DLGLOBAL DL_GLOBAL
  10020. # else
  10021. # define LT_DLGLOBAL 0
  10022. # endif
  10023. #endif
  10024. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10025. find out it does not work in some platform. */
  10026. #ifndef LT_DLLAZY_OR_NOW
  10027. # ifdef RTLD_LAZY
  10028. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10029. # else
  10030. # ifdef DL_LAZY
  10031. # define LT_DLLAZY_OR_NOW DL_LAZY
  10032. # else
  10033. # ifdef RTLD_NOW
  10034. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10035. # else
  10036. # ifdef DL_NOW
  10037. # define LT_DLLAZY_OR_NOW DL_NOW
  10038. # else
  10039. # define LT_DLLAZY_OR_NOW 0
  10040. # endif
  10041. # endif
  10042. # endif
  10043. # endif
  10044. #endif
  10045. /* When -fvisbility=hidden is used, assume the code has been annotated
  10046. correspondingly for the symbols needed. */
  10047. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10048. void fnord () __attribute__((visibility("default")));
  10049. #endif
  10050. void fnord () { int i=42; }
  10051. int main ()
  10052. {
  10053. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10054. int status = $lt_dlunknown;
  10055. if (self)
  10056. {
  10057. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10058. else
  10059. {
  10060. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10061. else puts (dlerror ());
  10062. }
  10063. /* dlclose (self); */
  10064. }
  10065. else
  10066. puts (dlerror ());
  10067. return status;
  10068. }
  10069. _LT_EOF
  10070. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10071. (eval $ac_link) 2>&5
  10072. ac_status=$?
  10073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10074. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10075. (./conftest; exit; ) >&5 2>/dev/null
  10076. lt_status=$?
  10077. case x$lt_status in
  10078. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10079. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10080. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10081. esac
  10082. else :
  10083. # compilation failed
  10084. lt_cv_dlopen_self=no
  10085. fi
  10086. fi
  10087. rm -fr conftest*
  10088. fi
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10090. $as_echo "$lt_cv_dlopen_self" >&6; }
  10091. if test "x$lt_cv_dlopen_self" = xyes; then
  10092. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10094. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10095. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10096. $as_echo_n "(cached) " >&6
  10097. else
  10098. if test "$cross_compiling" = yes; then :
  10099. lt_cv_dlopen_self_static=cross
  10100. else
  10101. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10102. lt_status=$lt_dlunknown
  10103. cat > conftest.$ac_ext <<_LT_EOF
  10104. #line 12401 "configure"
  10105. #include "confdefs.h"
  10106. #if HAVE_DLFCN_H
  10107. #include <dlfcn.h>
  10108. #endif
  10109. #include <stdio.h>
  10110. #ifdef RTLD_GLOBAL
  10111. # define LT_DLGLOBAL RTLD_GLOBAL
  10112. #else
  10113. # ifdef DL_GLOBAL
  10114. # define LT_DLGLOBAL DL_GLOBAL
  10115. # else
  10116. # define LT_DLGLOBAL 0
  10117. # endif
  10118. #endif
  10119. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10120. find out it does not work in some platform. */
  10121. #ifndef LT_DLLAZY_OR_NOW
  10122. # ifdef RTLD_LAZY
  10123. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10124. # else
  10125. # ifdef DL_LAZY
  10126. # define LT_DLLAZY_OR_NOW DL_LAZY
  10127. # else
  10128. # ifdef RTLD_NOW
  10129. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10130. # else
  10131. # ifdef DL_NOW
  10132. # define LT_DLLAZY_OR_NOW DL_NOW
  10133. # else
  10134. # define LT_DLLAZY_OR_NOW 0
  10135. # endif
  10136. # endif
  10137. # endif
  10138. # endif
  10139. #endif
  10140. /* When -fvisbility=hidden is used, assume the code has been annotated
  10141. correspondingly for the symbols needed. */
  10142. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10143. void fnord () __attribute__((visibility("default")));
  10144. #endif
  10145. void fnord () { int i=42; }
  10146. int main ()
  10147. {
  10148. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10149. int status = $lt_dlunknown;
  10150. if (self)
  10151. {
  10152. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10153. else
  10154. {
  10155. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10156. else puts (dlerror ());
  10157. }
  10158. /* dlclose (self); */
  10159. }
  10160. else
  10161. puts (dlerror ());
  10162. return status;
  10163. }
  10164. _LT_EOF
  10165. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10166. (eval $ac_link) 2>&5
  10167. ac_status=$?
  10168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10169. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10170. (./conftest; exit; ) >&5 2>/dev/null
  10171. lt_status=$?
  10172. case x$lt_status in
  10173. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10174. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10175. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10176. esac
  10177. else :
  10178. # compilation failed
  10179. lt_cv_dlopen_self_static=no
  10180. fi
  10181. fi
  10182. rm -fr conftest*
  10183. fi
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10185. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10186. fi
  10187. CPPFLAGS="$save_CPPFLAGS"
  10188. LDFLAGS="$save_LDFLAGS"
  10189. LIBS="$save_LIBS"
  10190. ;;
  10191. esac
  10192. case $lt_cv_dlopen_self in
  10193. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10194. *) enable_dlopen_self=unknown ;;
  10195. esac
  10196. case $lt_cv_dlopen_self_static in
  10197. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10198. *) enable_dlopen_self_static=unknown ;;
  10199. esac
  10200. fi
  10201. striplib=
  10202. old_striplib=
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10204. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10205. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10206. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10207. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10209. $as_echo "yes" >&6; }
  10210. else
  10211. # FIXME - insert some real tests, host_os isn't really good enough
  10212. case $host_os in
  10213. darwin*)
  10214. if test -n "$STRIP" ; then
  10215. striplib="$STRIP -x"
  10216. old_striplib="$STRIP -S"
  10217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10218. $as_echo "yes" >&6; }
  10219. else
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10221. $as_echo "no" >&6; }
  10222. fi
  10223. ;;
  10224. *)
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10226. $as_echo "no" >&6; }
  10227. ;;
  10228. esac
  10229. fi
  10230. # Report which library types will actually be built
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10232. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10234. $as_echo "$can_build_shared" >&6; }
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10236. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10237. test "$can_build_shared" = "no" && enable_shared=no
  10238. # On AIX, shared libraries and static libraries use the same namespace, and
  10239. # are all built from PIC.
  10240. case $host_os in
  10241. aix3*)
  10242. test "$enable_shared" = yes && enable_static=no
  10243. if test -n "$RANLIB"; then
  10244. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10245. postinstall_cmds='$RANLIB $lib'
  10246. fi
  10247. ;;
  10248. aix[4-9]*)
  10249. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10250. test "$enable_shared" = yes && enable_static=no
  10251. fi
  10252. ;;
  10253. esac
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10255. $as_echo "$enable_shared" >&6; }
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10257. $as_echo_n "checking whether to build static libraries... " >&6; }
  10258. # Make sure either enable_shared or enable_static is yes.
  10259. test "$enable_shared" = yes || enable_static=yes
  10260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10261. $as_echo "$enable_static" >&6; }
  10262. fi
  10263. ac_ext=c
  10264. ac_cpp='$CPP $CPPFLAGS'
  10265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10268. CC="$lt_save_CC"
  10269. ac_config_commands="$ac_config_commands libtool"
  10270. # Only expand once:
  10271. . ${srcdir}/../../bfd/configure.host
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10273. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10274. # Check whether --enable-maintainer-mode was given.
  10275. if test "${enable_maintainer_mode+set}" = set; then :
  10276. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10277. else
  10278. USE_MAINTAINER_MODE=no
  10279. fi
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10281. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10282. if test $USE_MAINTAINER_MODE = yes; then
  10283. MAINTAINER_MODE_TRUE=
  10284. MAINTAINER_MODE_FALSE='#'
  10285. else
  10286. MAINTAINER_MODE_TRUE='#'
  10287. MAINTAINER_MODE_FALSE=
  10288. fi
  10289. MAINT=$MAINTAINER_MODE_TRUE
  10290. # Check whether --enable-sim-bswap was given.
  10291. if test "${enable_sim_bswap+set}" = set; then :
  10292. enableval=$enable_sim_bswap; case "${enableval}" in
  10293. yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
  10294. no) sim_bswap="-DWITH_BSWAP=0";;
  10295. *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
  10296. esac
  10297. if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
  10298. echo "Setting bswap flags = $sim_bswap" 6>&1
  10299. fi
  10300. else
  10301. sim_bswap=""
  10302. fi
  10303. # Check whether --enable-sim-cflags was given.
  10304. if test "${enable_sim_cflags+set}" = set; then :
  10305. enableval=$enable_sim_cflags; case "${enableval}" in
  10306. yes) sim_cflags="-O2 -fomit-frame-pointer";;
  10307. trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
  10308. no) sim_cflags="";;
  10309. *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10310. esac
  10311. if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
  10312. echo "Setting sim cflags = $sim_cflags" 6>&1
  10313. fi
  10314. else
  10315. sim_cflags=""
  10316. fi
  10317. # Check whether --enable-sim-debug was given.
  10318. if test "${enable_sim_debug+set}" = set; then :
  10319. enableval=$enable_sim_debug; case "${enableval}" in
  10320. yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
  10321. no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
  10322. *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
  10323. esac
  10324. if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
  10325. echo "Setting sim debug = $sim_debug" 6>&1
  10326. fi
  10327. else
  10328. sim_debug=""
  10329. fi
  10330. # Check whether --enable-sim-stdio was given.
  10331. if test "${enable_sim_stdio+set}" = set; then :
  10332. enableval=$enable_sim_stdio; case "${enableval}" in
  10333. yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
  10334. no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
  10335. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
  10336. esac
  10337. if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
  10338. echo "Setting stdio flags = $sim_stdio" 6>&1
  10339. fi
  10340. else
  10341. sim_stdio=""
  10342. fi
  10343. # Check whether --enable-sim-trace was given.
  10344. if test "${enable_sim_trace+set}" = set; then :
  10345. enableval=$enable_sim_trace; case "${enableval}" in
  10346. yes) sim_trace="-DWITH_TRACE=-1";;
  10347. no) sim_trace="-DWITH_TRACE=0";;
  10348. [-0-9]*)
  10349. sim_trace="-DWITH_TRACE='(${enableval})'";;
  10350. [[:lower:]]*)
  10351. sim_trace=""
  10352. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10353. if test x"$sim_trace" = x; then
  10354. sim_trace="-DWITH_TRACE='(TRACE_$x"
  10355. else
  10356. sim_trace="${sim_trace}|TRACE_$x"
  10357. fi
  10358. done
  10359. sim_trace="$sim_trace)'" ;;
  10360. esac
  10361. if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
  10362. echo "Setting sim trace = $sim_trace" 6>&1
  10363. fi
  10364. else
  10365. sim_trace=""
  10366. fi
  10367. # Check whether --enable-sim-profile was given.
  10368. if test "${enable_sim_profile+set}" = set; then :
  10369. enableval=$enable_sim_profile; case "${enableval}" in
  10370. yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
  10371. no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
  10372. [-0-9]*)
  10373. sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
  10374. [a-z]*)
  10375. sim_profile=""
  10376. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10377. if test x"$sim_profile" = x; then
  10378. sim_profile="-DWITH_PROFILE='(PROFILE_$x"
  10379. else
  10380. sim_profile="${sim_profile}|PROFILE_$x"
  10381. fi
  10382. done
  10383. sim_profile="$sim_profile)'" ;;
  10384. esac
  10385. if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
  10386. echo "Setting sim profile = $sim_profile" 6>&1
  10387. fi
  10388. else
  10389. sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
  10390. fi
  10391. # Check whether --with-pkgversion was given.
  10392. if test "${with_pkgversion+set}" = set; then :
  10393. withval=$with_pkgversion; case "$withval" in
  10394. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10395. no) PKGVERSION= ;;
  10396. *) PKGVERSION="($withval) " ;;
  10397. esac
  10398. else
  10399. PKGVERSION="(SIM) "
  10400. fi
  10401. # Check whether --with-bugurl was given.
  10402. if test "${with_bugurl+set}" = set; then :
  10403. withval=$with_bugurl; case "$withval" in
  10404. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10405. no) BUGURL=
  10406. ;;
  10407. *) BUGURL="$withval"
  10408. ;;
  10409. esac
  10410. else
  10411. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  10412. fi
  10413. case ${BUGURL} in
  10414. "")
  10415. REPORT_BUGS_TO=
  10416. REPORT_BUGS_TEXI=
  10417. ;;
  10418. *)
  10419. REPORT_BUGS_TO="<$BUGURL>"
  10420. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10421. ;;
  10422. esac;
  10423. cat >>confdefs.h <<_ACEOF
  10424. #define PKGVERSION "$PKGVERSION"
  10425. _ACEOF
  10426. cat >>confdefs.h <<_ACEOF
  10427. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  10428. _ACEOF
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10430. $as_echo_n "checking return type of signal handlers... " >&6; }
  10431. if test "${ac_cv_type_signal+set}" = set; then :
  10432. $as_echo_n "(cached) " >&6
  10433. else
  10434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10435. /* end confdefs.h. */
  10436. #include <sys/types.h>
  10437. #include <signal.h>
  10438. int
  10439. main ()
  10440. {
  10441. return *(signal (0, 0)) (0) == 1;
  10442. ;
  10443. return 0;
  10444. }
  10445. _ACEOF
  10446. if ac_fn_c_try_compile "$LINENO"; then :
  10447. ac_cv_type_signal=int
  10448. else
  10449. ac_cv_type_signal=void
  10450. fi
  10451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10452. fi
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10454. $as_echo "$ac_cv_type_signal" >&6; }
  10455. cat >>confdefs.h <<_ACEOF
  10456. #define RETSIGTYPE $ac_cv_type_signal
  10457. _ACEOF
  10458. sim_link_files=
  10459. sim_link_links=
  10460. # targ-vals.def points to the libc macro description file.
  10461. case "${target}" in
  10462. *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
  10463. esac
  10464. sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
  10465. sim_link_links="${sim_link_links} targ-vals.def"
  10466. for ac_header in sys/param.h
  10467. do :
  10468. ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  10469. if test "x$ac_cv_header_sys_param_h" = x""yes; then :
  10470. cat >>confdefs.h <<_ACEOF
  10471. #define HAVE_SYS_PARAM_H 1
  10472. _ACEOF
  10473. fi
  10474. done
  10475. ac_sources="$sim_link_files"
  10476. ac_dests="$sim_link_links"
  10477. while test -n "$ac_sources"; do
  10478. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  10479. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  10480. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  10481. done
  10482. ac_config_links="$ac_config_links $ac_config_links_1"
  10483. cgen_breaks=""
  10484. if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
  10485. cgen_breaks="break cgen_rtx_error";
  10486. fi
  10487. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  10488. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  10489. ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
  10490. ac_config_commands="$ac_config_commands Makefile"
  10491. ac_config_commands="$ac_config_commands stamp-h"
  10492. cat >confcache <<\_ACEOF
  10493. # This file is a shell script that caches the results of configure
  10494. # tests run on this system so they can be shared between configure
  10495. # scripts and configure runs, see configure's option --config-cache.
  10496. # It is not useful on other systems. If it contains results you don't
  10497. # want to keep, you may remove or edit it.
  10498. #
  10499. # config.status only pays attention to the cache file if you give it
  10500. # the --recheck option to rerun configure.
  10501. #
  10502. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10503. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10504. # following values.
  10505. _ACEOF
  10506. # The following way of writing the cache mishandles newlines in values,
  10507. # but we know of no workaround that is simple, portable, and efficient.
  10508. # So, we kill variables containing newlines.
  10509. # Ultrix sh set writes to stderr and can't be redirected directly,
  10510. # and sets the high bit in the cache file unless we assign to the vars.
  10511. (
  10512. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10513. eval ac_val=\$$ac_var
  10514. case $ac_val in #(
  10515. *${as_nl}*)
  10516. case $ac_var in #(
  10517. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10518. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10519. esac
  10520. case $ac_var in #(
  10521. _ | IFS | as_nl) ;; #(
  10522. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10523. *) { eval $ac_var=; unset $ac_var;} ;;
  10524. esac ;;
  10525. esac
  10526. done
  10527. (set) 2>&1 |
  10528. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10529. *${as_nl}ac_space=\ *)
  10530. # `set' does not quote correctly, so add quotes: double-quote
  10531. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10532. sed -n \
  10533. "s/'/'\\\\''/g;
  10534. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10535. ;; #(
  10536. *)
  10537. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10538. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10539. ;;
  10540. esac |
  10541. sort
  10542. ) |
  10543. sed '
  10544. /^ac_cv_env_/b end
  10545. t clear
  10546. :clear
  10547. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10548. t end
  10549. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10550. :end' >>confcache
  10551. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10552. if test -w "$cache_file"; then
  10553. test "x$cache_file" != "x/dev/null" &&
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10555. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10556. cat confcache >$cache_file
  10557. else
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10559. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10560. fi
  10561. fi
  10562. rm -f confcache
  10563. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10564. # Let make expand exec_prefix.
  10565. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10566. DEFS=-DHAVE_CONFIG_H
  10567. ac_libobjs=
  10568. ac_ltlibobjs=
  10569. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10570. # 1. Remove the extension, and $U if already installed.
  10571. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10572. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10573. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10574. # will be set to the directory where LIBOBJS objects are built.
  10575. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10576. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10577. done
  10578. LIBOBJS=$ac_libobjs
  10579. LTLIBOBJS=$ac_ltlibobjs
  10580. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  10581. as_fn_error "conditional \"GMAKE\" was never defined.
  10582. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10583. fi
  10584. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  10585. as_fn_error "conditional \"PLUGINS\" was never defined.
  10586. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10587. fi
  10588. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10589. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  10590. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10591. fi
  10592. : ${CONFIG_STATUS=./config.status}
  10593. ac_write_fail=0
  10594. ac_clean_files_save=$ac_clean_files
  10595. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10596. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10597. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10598. as_write_fail=0
  10599. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10600. #! $SHELL
  10601. # Generated by $as_me.
  10602. # Run this file to recreate the current configuration.
  10603. # Compiler output produced by configure, useful for debugging
  10604. # configure, is in config.log if it exists.
  10605. debug=false
  10606. ac_cs_recheck=false
  10607. ac_cs_silent=false
  10608. SHELL=\${CONFIG_SHELL-$SHELL}
  10609. export SHELL
  10610. _ASEOF
  10611. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10612. ## -------------------- ##
  10613. ## M4sh Initialization. ##
  10614. ## -------------------- ##
  10615. # Be more Bourne compatible
  10616. DUALCASE=1; export DUALCASE # for MKS sh
  10617. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10618. emulate sh
  10619. NULLCMD=:
  10620. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10621. # is contrary to our usage. Disable this feature.
  10622. alias -g '${1+"$@"}'='"$@"'
  10623. setopt NO_GLOB_SUBST
  10624. else
  10625. case `(set -o) 2>/dev/null` in #(
  10626. *posix*) :
  10627. set -o posix ;; #(
  10628. *) :
  10629. ;;
  10630. esac
  10631. fi
  10632. as_nl='
  10633. '
  10634. export as_nl
  10635. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10636. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10637. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10638. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10639. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10640. # but without wasting forks for bash or zsh.
  10641. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10642. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10643. as_echo='print -r --'
  10644. as_echo_n='print -rn --'
  10645. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10646. as_echo='printf %s\n'
  10647. as_echo_n='printf %s'
  10648. else
  10649. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10650. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10651. as_echo_n='/usr/ucb/echo -n'
  10652. else
  10653. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10654. as_echo_n_body='eval
  10655. arg=$1;
  10656. case $arg in #(
  10657. *"$as_nl"*)
  10658. expr "X$arg" : "X\\(.*\\)$as_nl";
  10659. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10660. esac;
  10661. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10662. '
  10663. export as_echo_n_body
  10664. as_echo_n='sh -c $as_echo_n_body as_echo'
  10665. fi
  10666. export as_echo_body
  10667. as_echo='sh -c $as_echo_body as_echo'
  10668. fi
  10669. # The user is always right.
  10670. if test "${PATH_SEPARATOR+set}" != set; then
  10671. PATH_SEPARATOR=:
  10672. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10673. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10674. PATH_SEPARATOR=';'
  10675. }
  10676. fi
  10677. # IFS
  10678. # We need space, tab and new line, in precisely that order. Quoting is
  10679. # there to prevent editors from complaining about space-tab.
  10680. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10681. # splitting by setting IFS to empty value.)
  10682. IFS=" "" $as_nl"
  10683. # Find who we are. Look in the path if we contain no directory separator.
  10684. case $0 in #((
  10685. *[\\/]* ) as_myself=$0 ;;
  10686. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10687. for as_dir in $PATH
  10688. do
  10689. IFS=$as_save_IFS
  10690. test -z "$as_dir" && as_dir=.
  10691. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10692. done
  10693. IFS=$as_save_IFS
  10694. ;;
  10695. esac
  10696. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10697. # in which case we are not to be found in the path.
  10698. if test "x$as_myself" = x; then
  10699. as_myself=$0
  10700. fi
  10701. if test ! -f "$as_myself"; then
  10702. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10703. exit 1
  10704. fi
  10705. # Unset variables that we do not need and which cause bugs (e.g. in
  10706. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10707. # suppresses any "Segmentation fault" message there. '((' could
  10708. # trigger a bug in pdksh 5.2.14.
  10709. for as_var in BASH_ENV ENV MAIL MAILPATH
  10710. do eval test x\${$as_var+set} = xset \
  10711. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10712. done
  10713. PS1='$ '
  10714. PS2='> '
  10715. PS4='+ '
  10716. # NLS nuisances.
  10717. LC_ALL=C
  10718. export LC_ALL
  10719. LANGUAGE=C
  10720. export LANGUAGE
  10721. # CDPATH.
  10722. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10723. # as_fn_error ERROR [LINENO LOG_FD]
  10724. # ---------------------------------
  10725. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10726. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10727. # script with status $?, using 1 if that was 0.
  10728. as_fn_error ()
  10729. {
  10730. as_status=$?; test $as_status -eq 0 && as_status=1
  10731. if test "$3"; then
  10732. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10733. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  10734. fi
  10735. $as_echo "$as_me: error: $1" >&2
  10736. as_fn_exit $as_status
  10737. } # as_fn_error
  10738. # as_fn_set_status STATUS
  10739. # -----------------------
  10740. # Set $? to STATUS, without forking.
  10741. as_fn_set_status ()
  10742. {
  10743. return $1
  10744. } # as_fn_set_status
  10745. # as_fn_exit STATUS
  10746. # -----------------
  10747. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10748. as_fn_exit ()
  10749. {
  10750. set +e
  10751. as_fn_set_status $1
  10752. exit $1
  10753. } # as_fn_exit
  10754. # as_fn_unset VAR
  10755. # ---------------
  10756. # Portably unset VAR.
  10757. as_fn_unset ()
  10758. {
  10759. { eval $1=; unset $1;}
  10760. }
  10761. as_unset=as_fn_unset
  10762. # as_fn_append VAR VALUE
  10763. # ----------------------
  10764. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10765. # advantage of any shell optimizations that allow amortized linear growth over
  10766. # repeated appends, instead of the typical quadratic growth present in naive
  10767. # implementations.
  10768. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10769. eval 'as_fn_append ()
  10770. {
  10771. eval $1+=\$2
  10772. }'
  10773. else
  10774. as_fn_append ()
  10775. {
  10776. eval $1=\$$1\$2
  10777. }
  10778. fi # as_fn_append
  10779. # as_fn_arith ARG...
  10780. # ------------------
  10781. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10782. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10783. # must be portable across $(()) and expr.
  10784. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10785. eval 'as_fn_arith ()
  10786. {
  10787. as_val=$(( $* ))
  10788. }'
  10789. else
  10790. as_fn_arith ()
  10791. {
  10792. as_val=`expr "$@" || test $? -eq 1`
  10793. }
  10794. fi # as_fn_arith
  10795. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10796. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10797. as_expr=expr
  10798. else
  10799. as_expr=false
  10800. fi
  10801. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10802. as_basename=basename
  10803. else
  10804. as_basename=false
  10805. fi
  10806. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10807. as_dirname=dirname
  10808. else
  10809. as_dirname=false
  10810. fi
  10811. as_me=`$as_basename -- "$0" ||
  10812. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10813. X"$0" : 'X\(//\)$' \| \
  10814. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10815. $as_echo X/"$0" |
  10816. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10817. s//\1/
  10818. q
  10819. }
  10820. /^X\/\(\/\/\)$/{
  10821. s//\1/
  10822. q
  10823. }
  10824. /^X\/\(\/\).*/{
  10825. s//\1/
  10826. q
  10827. }
  10828. s/.*/./; q'`
  10829. # Avoid depending upon Character Ranges.
  10830. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10831. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10832. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10833. as_cr_digits='0123456789'
  10834. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10835. ECHO_C= ECHO_N= ECHO_T=
  10836. case `echo -n x` in #(((((
  10837. -n*)
  10838. case `echo 'xy\c'` in
  10839. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10840. xy) ECHO_C='\c';;
  10841. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10842. ECHO_T=' ';;
  10843. esac;;
  10844. *)
  10845. ECHO_N='-n';;
  10846. esac
  10847. rm -f conf$$ conf$$.exe conf$$.file
  10848. if test -d conf$$.dir; then
  10849. rm -f conf$$.dir/conf$$.file
  10850. else
  10851. rm -f conf$$.dir
  10852. mkdir conf$$.dir 2>/dev/null
  10853. fi
  10854. if (echo >conf$$.file) 2>/dev/null; then
  10855. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10856. as_ln_s='ln -s'
  10857. # ... but there are two gotchas:
  10858. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10859. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10860. # In both cases, we have to default to `cp -p'.
  10861. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10862. as_ln_s='cp -p'
  10863. elif ln conf$$.file conf$$ 2>/dev/null; then
  10864. as_ln_s=ln
  10865. else
  10866. as_ln_s='cp -p'
  10867. fi
  10868. else
  10869. as_ln_s='cp -p'
  10870. fi
  10871. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10872. rmdir conf$$.dir 2>/dev/null
  10873. # as_fn_mkdir_p
  10874. # -------------
  10875. # Create "$as_dir" as a directory, including parents if necessary.
  10876. as_fn_mkdir_p ()
  10877. {
  10878. case $as_dir in #(
  10879. -*) as_dir=./$as_dir;;
  10880. esac
  10881. test -d "$as_dir" || eval $as_mkdir_p || {
  10882. as_dirs=
  10883. while :; do
  10884. case $as_dir in #(
  10885. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10886. *) as_qdir=$as_dir;;
  10887. esac
  10888. as_dirs="'$as_qdir' $as_dirs"
  10889. as_dir=`$as_dirname -- "$as_dir" ||
  10890. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10891. X"$as_dir" : 'X\(//\)[^/]' \| \
  10892. X"$as_dir" : 'X\(//\)$' \| \
  10893. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10894. $as_echo X"$as_dir" |
  10895. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10896. s//\1/
  10897. q
  10898. }
  10899. /^X\(\/\/\)[^/].*/{
  10900. s//\1/
  10901. q
  10902. }
  10903. /^X\(\/\/\)$/{
  10904. s//\1/
  10905. q
  10906. }
  10907. /^X\(\/\).*/{
  10908. s//\1/
  10909. q
  10910. }
  10911. s/.*/./; q'`
  10912. test -d "$as_dir" && break
  10913. done
  10914. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10915. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  10916. } # as_fn_mkdir_p
  10917. if mkdir -p . 2>/dev/null; then
  10918. as_mkdir_p='mkdir -p "$as_dir"'
  10919. else
  10920. test -d ./-p && rmdir ./-p
  10921. as_mkdir_p=false
  10922. fi
  10923. if test -x / >/dev/null 2>&1; then
  10924. as_test_x='test -x'
  10925. else
  10926. if ls -dL / >/dev/null 2>&1; then
  10927. as_ls_L_option=L
  10928. else
  10929. as_ls_L_option=
  10930. fi
  10931. as_test_x='
  10932. eval sh -c '\''
  10933. if test -d "$1"; then
  10934. test -d "$1/.";
  10935. else
  10936. case $1 in #(
  10937. -*)set "./$1";;
  10938. esac;
  10939. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10940. ???[sx]*):;;*)false;;esac;fi
  10941. '\'' sh
  10942. '
  10943. fi
  10944. as_executable_p=$as_test_x
  10945. # Sed expression to map a string onto a valid CPP name.
  10946. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10947. # Sed expression to map a string onto a valid variable name.
  10948. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10949. exec 6>&1
  10950. ## ----------------------------------- ##
  10951. ## Main body of $CONFIG_STATUS script. ##
  10952. ## ----------------------------------- ##
  10953. _ASEOF
  10954. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10956. # Save the log message, to keep $0 and so on meaningful, and to
  10957. # report actual input values of CONFIG_FILES etc. instead of their
  10958. # values after options handling.
  10959. ac_log="
  10960. This file was extended by $as_me, which was
  10961. generated by GNU Autoconf 2.64. Invocation command line was
  10962. CONFIG_FILES = $CONFIG_FILES
  10963. CONFIG_HEADERS = $CONFIG_HEADERS
  10964. CONFIG_LINKS = $CONFIG_LINKS
  10965. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10966. $ $0 $@
  10967. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10968. "
  10969. _ACEOF
  10970. case $ac_config_files in *"
  10971. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10972. esac
  10973. case $ac_config_headers in *"
  10974. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10975. esac
  10976. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10977. # Files that config.status was made for.
  10978. config_files="$ac_config_files"
  10979. config_headers="$ac_config_headers"
  10980. config_links="$ac_config_links"
  10981. config_commands="$ac_config_commands"
  10982. _ACEOF
  10983. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10984. ac_cs_usage="\
  10985. \`$as_me' instantiates files and other configuration actions
  10986. from templates according to the current configuration. Unless the files
  10987. and actions are specified as TAGs, all are instantiated by default.
  10988. Usage: $0 [OPTION]... [TAG]...
  10989. -h, --help print this help, then exit
  10990. -V, --version print version number and configuration settings, then exit
  10991. -q, --quiet, --silent
  10992. do not print progress messages
  10993. -d, --debug don't remove temporary files
  10994. --recheck update $as_me by reconfiguring in the same conditions
  10995. --file=FILE[:TEMPLATE]
  10996. instantiate the configuration file FILE
  10997. --header=FILE[:TEMPLATE]
  10998. instantiate the configuration header FILE
  10999. Configuration files:
  11000. $config_files
  11001. Configuration headers:
  11002. $config_headers
  11003. Configuration links:
  11004. $config_links
  11005. Configuration commands:
  11006. $config_commands
  11007. Report bugs to the package provider."
  11008. _ACEOF
  11009. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11010. ac_cs_version="\\
  11011. config.status
  11012. configured by $0, generated by GNU Autoconf 2.64,
  11013. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11014. Copyright (C) 2009 Free Software Foundation, Inc.
  11015. This config.status script is free software; the Free Software Foundation
  11016. gives unlimited permission to copy, distribute and modify it."
  11017. ac_pwd='$ac_pwd'
  11018. srcdir='$srcdir'
  11019. INSTALL='$INSTALL'
  11020. AWK='$AWK'
  11021. test -n "\$AWK" || AWK=awk
  11022. _ACEOF
  11023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11024. # The default lists apply if the user does not specify any file.
  11025. ac_need_defaults=:
  11026. while test $# != 0
  11027. do
  11028. case $1 in
  11029. --*=*)
  11030. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11031. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11032. ac_shift=:
  11033. ;;
  11034. *)
  11035. ac_option=$1
  11036. ac_optarg=$2
  11037. ac_shift=shift
  11038. ;;
  11039. esac
  11040. case $ac_option in
  11041. # Handling of the options.
  11042. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11043. ac_cs_recheck=: ;;
  11044. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11045. $as_echo "$ac_cs_version"; exit ;;
  11046. --debug | --debu | --deb | --de | --d | -d )
  11047. debug=: ;;
  11048. --file | --fil | --fi | --f )
  11049. $ac_shift
  11050. case $ac_optarg in
  11051. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11052. esac
  11053. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11054. ac_need_defaults=false;;
  11055. --header | --heade | --head | --hea )
  11056. $ac_shift
  11057. case $ac_optarg in
  11058. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11059. esac
  11060. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11061. ac_need_defaults=false;;
  11062. --he | --h)
  11063. # Conflict between --help and --header
  11064. as_fn_error "ambiguous option: \`$1'
  11065. Try \`$0 --help' for more information.";;
  11066. --help | --hel | -h )
  11067. $as_echo "$ac_cs_usage"; exit ;;
  11068. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11069. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11070. ac_cs_silent=: ;;
  11071. # This is an error.
  11072. -*) as_fn_error "unrecognized option: \`$1'
  11073. Try \`$0 --help' for more information." ;;
  11074. *) as_fn_append ac_config_targets " $1"
  11075. ac_need_defaults=false ;;
  11076. esac
  11077. shift
  11078. done
  11079. ac_configure_extra_args=
  11080. if $ac_cs_silent; then
  11081. exec 6>/dev/null
  11082. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11083. fi
  11084. _ACEOF
  11085. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11086. if \$ac_cs_recheck; then
  11087. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11088. shift
  11089. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11090. CONFIG_SHELL='$SHELL'
  11091. export CONFIG_SHELL
  11092. exec "\$@"
  11093. fi
  11094. _ACEOF
  11095. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11096. exec 5>>config.log
  11097. {
  11098. echo
  11099. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11100. ## Running $as_me. ##
  11101. _ASBOX
  11102. $as_echo "$ac_log"
  11103. } >&5
  11104. _ACEOF
  11105. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11106. #
  11107. # INIT-COMMANDS
  11108. #
  11109. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  11110. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11111. # if CDPATH is set.
  11112. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11113. sed_quote_subst='$sed_quote_subst'
  11114. double_quote_subst='$double_quote_subst'
  11115. delay_variable_subst='$delay_variable_subst'
  11116. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11117. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11118. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11119. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11120. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11121. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11122. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11123. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11124. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11125. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11126. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11127. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11128. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11129. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11130. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11131. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11132. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11133. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11134. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11135. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11136. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11137. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11138. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11139. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11140. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11141. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11142. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11143. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11144. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11145. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11146. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11147. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11148. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11149. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11150. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11151. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11152. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11153. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11154. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11155. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11156. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11157. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11158. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11159. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11160. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11161. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11162. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11163. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11164. 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"`'
  11165. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11166. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11167. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11168. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11169. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11170. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11171. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11172. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11173. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11174. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11175. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11176. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11177. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11178. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11179. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11180. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11181. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11182. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11183. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11184. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11185. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11186. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11187. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11188. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11189. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11190. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11191. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11192. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11193. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11194. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11195. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11196. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11197. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11198. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11199. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11200. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11201. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11202. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11203. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11204. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11205. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11206. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11207. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11208. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11209. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11210. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11211. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11212. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11213. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11214. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11215. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11216. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11217. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11218. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11219. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11220. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11221. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11222. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11223. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11224. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11225. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11226. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11227. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11228. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11229. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11230. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11231. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11232. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11233. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11234. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11235. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11236. LTCC='$LTCC'
  11237. LTCFLAGS='$LTCFLAGS'
  11238. compiler='$compiler_DEFAULT'
  11239. # A function that is used when there is no print builtin or printf.
  11240. func_fallback_echo ()
  11241. {
  11242. eval 'cat <<_LTECHO_EOF
  11243. \$1
  11244. _LTECHO_EOF'
  11245. }
  11246. # Quote evaled strings.
  11247. for var in SHELL \
  11248. ECHO \
  11249. SED \
  11250. GREP \
  11251. EGREP \
  11252. FGREP \
  11253. LD \
  11254. NM \
  11255. LN_S \
  11256. lt_SP2NL \
  11257. lt_NL2SP \
  11258. reload_flag \
  11259. OBJDUMP \
  11260. deplibs_check_method \
  11261. file_magic_cmd \
  11262. AR \
  11263. AR_FLAGS \
  11264. STRIP \
  11265. RANLIB \
  11266. CC \
  11267. CFLAGS \
  11268. compiler \
  11269. lt_cv_sys_global_symbol_pipe \
  11270. lt_cv_sys_global_symbol_to_cdecl \
  11271. lt_cv_sys_global_symbol_to_c_name_address \
  11272. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11273. lt_prog_compiler_no_builtin_flag \
  11274. lt_prog_compiler_wl \
  11275. lt_prog_compiler_pic \
  11276. lt_prog_compiler_static \
  11277. lt_cv_prog_compiler_c_o \
  11278. need_locks \
  11279. DSYMUTIL \
  11280. NMEDIT \
  11281. LIPO \
  11282. OTOOL \
  11283. OTOOL64 \
  11284. shrext_cmds \
  11285. export_dynamic_flag_spec \
  11286. whole_archive_flag_spec \
  11287. compiler_needs_object \
  11288. with_gnu_ld \
  11289. allow_undefined_flag \
  11290. no_undefined_flag \
  11291. hardcode_libdir_flag_spec \
  11292. hardcode_libdir_flag_spec_ld \
  11293. hardcode_libdir_separator \
  11294. fix_srcfile_path \
  11295. exclude_expsyms \
  11296. include_expsyms \
  11297. file_list_spec \
  11298. variables_saved_for_relink \
  11299. libname_spec \
  11300. library_names_spec \
  11301. soname_spec \
  11302. install_override_mode \
  11303. finish_eval \
  11304. old_striplib \
  11305. striplib; do
  11306. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11307. *[\\\\\\\`\\"\\\$]*)
  11308. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11309. ;;
  11310. *)
  11311. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11312. ;;
  11313. esac
  11314. done
  11315. # Double-quote double-evaled strings.
  11316. for var in reload_cmds \
  11317. old_postinstall_cmds \
  11318. old_postuninstall_cmds \
  11319. old_archive_cmds \
  11320. extract_expsyms_cmds \
  11321. old_archive_from_new_cmds \
  11322. old_archive_from_expsyms_cmds \
  11323. archive_cmds \
  11324. archive_expsym_cmds \
  11325. module_cmds \
  11326. module_expsym_cmds \
  11327. export_symbols_cmds \
  11328. prelink_cmds \
  11329. postinstall_cmds \
  11330. postuninstall_cmds \
  11331. finish_cmds \
  11332. sys_lib_search_path_spec \
  11333. sys_lib_dlsearch_path_spec; do
  11334. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11335. *[\\\\\\\`\\"\\\$]*)
  11336. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11337. ;;
  11338. *)
  11339. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11340. ;;
  11341. esac
  11342. done
  11343. ac_aux_dir='$ac_aux_dir'
  11344. xsi_shell='$xsi_shell'
  11345. lt_shell_append='$lt_shell_append'
  11346. # See if we are running on zsh, and set the options which allow our
  11347. # commands through without removal of \ escapes INIT.
  11348. if test -n "\${ZSH_VERSION+set}" ; then
  11349. setopt NO_GLOB_SUBST
  11350. fi
  11351. PACKAGE='$PACKAGE'
  11352. VERSION='$VERSION'
  11353. TIMESTAMP='$TIMESTAMP'
  11354. RM='$RM'
  11355. ofile='$ofile'
  11356. _ACEOF
  11357. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11358. # Handling of arguments.
  11359. for ac_config_target in $ac_config_targets
  11360. do
  11361. case $ac_config_target in
  11362. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  11363. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  11364. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11365. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  11366. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  11367. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  11368. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
  11369. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  11370. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  11371. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11372. esac
  11373. done
  11374. # If the user did not use the arguments to specify the items to instantiate,
  11375. # then the envvar interface is used. Set only those that are not.
  11376. # We use the long form for the default assignment because of an extremely
  11377. # bizarre bug on SunOS 4.1.3.
  11378. if $ac_need_defaults; then
  11379. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11380. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11381. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  11382. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11383. fi
  11384. # Have a temporary directory for convenience. Make it in the build tree
  11385. # simply because there is no reason against having it here, and in addition,
  11386. # creating and moving files from /tmp can sometimes cause problems.
  11387. # Hook for its removal unless debugging.
  11388. # Note that there is a small window in which the directory will not be cleaned:
  11389. # after its creation but before its name has been assigned to `$tmp'.
  11390. $debug ||
  11391. {
  11392. tmp=
  11393. trap 'exit_status=$?
  11394. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11395. ' 0
  11396. trap 'as_fn_exit 1' 1 2 13 15
  11397. }
  11398. # Create a (secure) tmp directory for tmp files.
  11399. {
  11400. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11401. test -n "$tmp" && test -d "$tmp"
  11402. } ||
  11403. {
  11404. tmp=./conf$$-$RANDOM
  11405. (umask 077 && mkdir "$tmp")
  11406. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11407. # Set up the scripts for CONFIG_FILES section.
  11408. # No need to generate them if there are no CONFIG_FILES.
  11409. # This happens for instance with `./config.status config.h'.
  11410. if test -n "$CONFIG_FILES"; then
  11411. ac_cr=`echo X | tr X '\015'`
  11412. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11413. # But we know of no other shell where ac_cr would be empty at this
  11414. # point, so we can use a bashism as a fallback.
  11415. if test "x$ac_cr" = x; then
  11416. eval ac_cr=\$\'\\r\'
  11417. fi
  11418. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11419. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11420. ac_cs_awk_cr='\r'
  11421. else
  11422. ac_cs_awk_cr=$ac_cr
  11423. fi
  11424. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11425. _ACEOF
  11426. {
  11427. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11428. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11429. echo "_ACEOF"
  11430. } >conf$$subs.sh ||
  11431. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11432. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11433. ac_delim='%!_!# '
  11434. for ac_last_try in false false false false false :; do
  11435. . ./conf$$subs.sh ||
  11436. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11437. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11438. if test $ac_delim_n = $ac_delim_num; then
  11439. break
  11440. elif $ac_last_try; then
  11441. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11442. else
  11443. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11444. fi
  11445. done
  11446. rm -f conf$$subs.sh
  11447. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11448. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11449. _ACEOF
  11450. sed -n '
  11451. h
  11452. s/^/S["/; s/!.*/"]=/
  11453. p
  11454. g
  11455. s/^[^!]*!//
  11456. :repl
  11457. t repl
  11458. s/'"$ac_delim"'$//
  11459. t delim
  11460. :nl
  11461. h
  11462. s/\(.\{148\}\).*/\1/
  11463. t more1
  11464. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11465. p
  11466. n
  11467. b repl
  11468. :more1
  11469. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11470. p
  11471. g
  11472. s/.\{148\}//
  11473. t nl
  11474. :delim
  11475. h
  11476. s/\(.\{148\}\).*/\1/
  11477. t more2
  11478. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11479. p
  11480. b
  11481. :more2
  11482. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11483. p
  11484. g
  11485. s/.\{148\}//
  11486. t delim
  11487. ' <conf$$subs.awk | sed '
  11488. /^[^""]/{
  11489. N
  11490. s/\n//
  11491. }
  11492. ' >>$CONFIG_STATUS || ac_write_fail=1
  11493. rm -f conf$$subs.awk
  11494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11495. _ACAWK
  11496. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11497. for (key in S) S_is_set[key] = 1
  11498. FS = ""
  11499. }
  11500. {
  11501. line = $ 0
  11502. nfields = split(line, field, "@")
  11503. substed = 0
  11504. len = length(field[1])
  11505. for (i = 2; i < nfields; i++) {
  11506. key = field[i]
  11507. keylen = length(key)
  11508. if (S_is_set[key]) {
  11509. value = S[key]
  11510. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11511. len += length(value) + length(field[++i])
  11512. substed = 1
  11513. } else
  11514. len += 1 + keylen
  11515. }
  11516. print line
  11517. }
  11518. _ACAWK
  11519. _ACEOF
  11520. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11521. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11522. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11523. else
  11524. cat
  11525. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  11526. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  11527. _ACEOF
  11528. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11529. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11530. # trailing colons and then remove the whole line if VPATH becomes empty
  11531. # (actually we leave an empty line to preserve line numbers).
  11532. if test "x$srcdir" = x.; then
  11533. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11534. s/:*\$(srcdir):*/:/
  11535. s/:*\${srcdir}:*/:/
  11536. s/:*@srcdir@:*/:/
  11537. s/^\([^=]*=[ ]*\):*/\1/
  11538. s/:*$//
  11539. s/^[^=]*=[ ]*$//
  11540. }'
  11541. fi
  11542. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11543. fi # test -n "$CONFIG_FILES"
  11544. # Set up the scripts for CONFIG_HEADERS section.
  11545. # No need to generate them if there are no CONFIG_HEADERS.
  11546. # This happens for instance with `./config.status Makefile'.
  11547. if test -n "$CONFIG_HEADERS"; then
  11548. cat >"$tmp/defines.awk" <<\_ACAWK ||
  11549. BEGIN {
  11550. _ACEOF
  11551. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11552. # here-document in config.status, that substitutes the proper values into
  11553. # config.h.in to produce config.h.
  11554. # Create a delimiter string that does not exist in confdefs.h, to ease
  11555. # handling of long lines.
  11556. ac_delim='%!_!# '
  11557. for ac_last_try in false false :; do
  11558. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  11559. if test -z "$ac_t"; then
  11560. break
  11561. elif $ac_last_try; then
  11562. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  11563. else
  11564. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11565. fi
  11566. done
  11567. # For the awk script, D is an array of macro values keyed by name,
  11568. # likewise P contains macro parameters if any. Preserve backslash
  11569. # newline sequences.
  11570. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11571. sed -n '
  11572. s/.\{148\}/&'"$ac_delim"'/g
  11573. t rset
  11574. :rset
  11575. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11576. t def
  11577. d
  11578. :def
  11579. s/\\$//
  11580. t bsnl
  11581. s/["\\]/\\&/g
  11582. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11583. D["\1"]=" \3"/p
  11584. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11585. d
  11586. :bsnl
  11587. s/["\\]/\\&/g
  11588. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11589. D["\1"]=" \3\\\\\\n"\\/p
  11590. t cont
  11591. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11592. t cont
  11593. d
  11594. :cont
  11595. n
  11596. s/.\{148\}/&'"$ac_delim"'/g
  11597. t clear
  11598. :clear
  11599. s/\\$//
  11600. t bsnlc
  11601. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11602. d
  11603. :bsnlc
  11604. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11605. b cont
  11606. ' <confdefs.h | sed '
  11607. s/'"$ac_delim"'/"\\\
  11608. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11609. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11610. for (key in D) D_is_set[key] = 1
  11611. FS = ""
  11612. }
  11613. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11614. line = \$ 0
  11615. split(line, arg, " ")
  11616. if (arg[1] == "#") {
  11617. defundef = arg[2]
  11618. mac1 = arg[3]
  11619. } else {
  11620. defundef = substr(arg[1], 2)
  11621. mac1 = arg[2]
  11622. }
  11623. split(mac1, mac2, "(") #)
  11624. macro = mac2[1]
  11625. prefix = substr(line, 1, index(line, defundef) - 1)
  11626. if (D_is_set[macro]) {
  11627. # Preserve the white space surrounding the "#".
  11628. print prefix "define", macro P[macro] D[macro]
  11629. next
  11630. } else {
  11631. # Replace #undef with comments. This is necessary, for example,
  11632. # in the case of _POSIX_SOURCE, which is predefined and required
  11633. # on some systems where configure will not decide to define it.
  11634. if (defundef == "undef") {
  11635. print "/*", prefix defundef, macro, "*/"
  11636. next
  11637. }
  11638. }
  11639. }
  11640. { print }
  11641. _ACAWK
  11642. _ACEOF
  11643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11644. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  11645. fi # test -n "$CONFIG_HEADERS"
  11646. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  11647. shift
  11648. for ac_tag
  11649. do
  11650. case $ac_tag in
  11651. :[FHLC]) ac_mode=$ac_tag; continue;;
  11652. esac
  11653. case $ac_mode$ac_tag in
  11654. :[FHL]*:*);;
  11655. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11656. :[FH]-) ac_tag=-:-;;
  11657. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11658. esac
  11659. ac_save_IFS=$IFS
  11660. IFS=:
  11661. set x $ac_tag
  11662. IFS=$ac_save_IFS
  11663. shift
  11664. ac_file=$1
  11665. shift
  11666. case $ac_mode in
  11667. :L) ac_source=$1;;
  11668. :[FH])
  11669. ac_file_inputs=
  11670. for ac_f
  11671. do
  11672. case $ac_f in
  11673. -) ac_f="$tmp/stdin";;
  11674. *) # Look for the file first in the build tree, then in the source tree
  11675. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11676. # because $ac_f cannot contain `:'.
  11677. test -f "$ac_f" ||
  11678. case $ac_f in
  11679. [\\/$]*) false;;
  11680. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11681. esac ||
  11682. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11683. esac
  11684. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11685. as_fn_append ac_file_inputs " '$ac_f'"
  11686. done
  11687. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11688. # use $as_me), people would be surprised to read:
  11689. # /* config.h. Generated by config.status. */
  11690. configure_input='Generated from '`
  11691. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11692. `' by configure.'
  11693. if test x"$ac_file" != x-; then
  11694. configure_input="$ac_file. $configure_input"
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11696. $as_echo "$as_me: creating $ac_file" >&6;}
  11697. fi
  11698. # Neutralize special characters interpreted by sed in replacement strings.
  11699. case $configure_input in #(
  11700. *\&* | *\|* | *\\* )
  11701. ac_sed_conf_input=`$as_echo "$configure_input" |
  11702. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11703. *) ac_sed_conf_input=$configure_input;;
  11704. esac
  11705. case $ac_tag in
  11706. *:-:* | *:-) cat >"$tmp/stdin" \
  11707. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  11708. esac
  11709. ;;
  11710. esac
  11711. ac_dir=`$as_dirname -- "$ac_file" ||
  11712. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11713. X"$ac_file" : 'X\(//\)[^/]' \| \
  11714. X"$ac_file" : 'X\(//\)$' \| \
  11715. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11716. $as_echo X"$ac_file" |
  11717. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11718. s//\1/
  11719. q
  11720. }
  11721. /^X\(\/\/\)[^/].*/{
  11722. s//\1/
  11723. q
  11724. }
  11725. /^X\(\/\/\)$/{
  11726. s//\1/
  11727. q
  11728. }
  11729. /^X\(\/\).*/{
  11730. s//\1/
  11731. q
  11732. }
  11733. s/.*/./; q'`
  11734. as_dir="$ac_dir"; as_fn_mkdir_p
  11735. ac_builddir=.
  11736. case "$ac_dir" in
  11737. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11738. *)
  11739. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11740. # A ".." for each directory in $ac_dir_suffix.
  11741. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11742. case $ac_top_builddir_sub in
  11743. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11744. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11745. esac ;;
  11746. esac
  11747. ac_abs_top_builddir=$ac_pwd
  11748. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11749. # for backward compatibility:
  11750. ac_top_builddir=$ac_top_build_prefix
  11751. case $srcdir in
  11752. .) # We are building in place.
  11753. ac_srcdir=.
  11754. ac_top_srcdir=$ac_top_builddir_sub
  11755. ac_abs_top_srcdir=$ac_pwd ;;
  11756. [\\/]* | ?:[\\/]* ) # Absolute name.
  11757. ac_srcdir=$srcdir$ac_dir_suffix;
  11758. ac_top_srcdir=$srcdir
  11759. ac_abs_top_srcdir=$srcdir ;;
  11760. *) # Relative name.
  11761. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11762. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11763. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11764. esac
  11765. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11766. case $ac_mode in
  11767. :F)
  11768. #
  11769. # CONFIG_FILE
  11770. #
  11771. case $INSTALL in
  11772. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11773. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11774. esac
  11775. _ACEOF
  11776. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11777. # If the template does not know about datarootdir, expand it.
  11778. # FIXME: This hack should be removed a few years after 2.60.
  11779. ac_datarootdir_hack=; ac_datarootdir_seen=
  11780. ac_sed_dataroot='
  11781. /datarootdir/ {
  11782. p
  11783. q
  11784. }
  11785. /@datadir@/p
  11786. /@docdir@/p
  11787. /@infodir@/p
  11788. /@localedir@/p
  11789. /@mandir@/p'
  11790. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11791. *datarootdir*) ac_datarootdir_seen=yes;;
  11792. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11794. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11795. _ACEOF
  11796. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11797. ac_datarootdir_hack='
  11798. s&@datadir@&$datadir&g
  11799. s&@docdir@&$docdir&g
  11800. s&@infodir@&$infodir&g
  11801. s&@localedir@&$localedir&g
  11802. s&@mandir@&$mandir&g
  11803. s&\\\${datarootdir}&$datarootdir&g' ;;
  11804. esac
  11805. _ACEOF
  11806. # Neutralize VPATH when `$srcdir' = `.'.
  11807. # Shell code in configure.ac might set extrasub.
  11808. # FIXME: do we really want to maintain this feature?
  11809. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11810. ac_sed_extra="$ac_vpsub
  11811. $extrasub
  11812. _ACEOF
  11813. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11814. :t
  11815. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11816. s|@configure_input@|$ac_sed_conf_input|;t t
  11817. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11818. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11819. s&@srcdir@&$ac_srcdir&;t t
  11820. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11821. s&@top_srcdir@&$ac_top_srcdir&;t t
  11822. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11823. s&@builddir@&$ac_builddir&;t t
  11824. s&@abs_builddir@&$ac_abs_builddir&;t t
  11825. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11826. s&@INSTALL@&$ac_INSTALL&;t t
  11827. $ac_datarootdir_hack
  11828. "
  11829. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  11830. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11831. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11832. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11833. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11835. which seems to be undefined. Please make sure it is defined." >&5
  11836. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11837. which seems to be undefined. Please make sure it is defined." >&2;}
  11838. rm -f "$tmp/stdin"
  11839. case $ac_file in
  11840. -) cat "$tmp/out" && rm -f "$tmp/out";;
  11841. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  11842. esac \
  11843. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11844. ;;
  11845. :H)
  11846. #
  11847. # CONFIG_HEADER
  11848. #
  11849. if test x"$ac_file" != x-; then
  11850. {
  11851. $as_echo "/* $configure_input */" \
  11852. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  11853. } >"$tmp/config.h" \
  11854. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11855. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  11856. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11857. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11858. else
  11859. rm -f "$ac_file"
  11860. mv "$tmp/config.h" "$ac_file" \
  11861. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11862. fi
  11863. else
  11864. $as_echo "/* $configure_input */" \
  11865. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  11866. || as_fn_error "could not create -" "$LINENO" 5
  11867. fi
  11868. ;;
  11869. :L)
  11870. #
  11871. # CONFIG_LINK
  11872. #
  11873. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  11874. :
  11875. else
  11876. # Prefer the file from the source tree if names are identical.
  11877. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  11878. ac_source=$srcdir/$ac_source
  11879. fi
  11880. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  11881. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  11882. if test ! -r "$ac_source"; then
  11883. as_fn_error "$ac_source: file not found" "$LINENO" 5
  11884. fi
  11885. rm -f "$ac_file"
  11886. # Try a relative symlink, then a hard link, then a copy.
  11887. case $srcdir in
  11888. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  11889. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  11890. esac
  11891. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  11892. ln "$ac_source" "$ac_file" 2>/dev/null ||
  11893. cp -p "$ac_source" "$ac_file" ||
  11894. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  11895. fi
  11896. ;;
  11897. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11898. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11899. ;;
  11900. esac
  11901. case $ac_file$ac_mode in
  11902. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  11903. "libtool":C)
  11904. # See if we are running on zsh, and set the options which allow our
  11905. # commands through without removal of \ escapes.
  11906. if test -n "${ZSH_VERSION+set}" ; then
  11907. setopt NO_GLOB_SUBST
  11908. fi
  11909. cfgfile="${ofile}T"
  11910. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11911. $RM "$cfgfile"
  11912. cat <<_LT_EOF >> "$cfgfile"
  11913. #! $SHELL
  11914. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11915. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11916. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11917. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11918. #
  11919. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11920. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11921. # Written by Gordon Matzigkeit, 1996
  11922. #
  11923. # This file is part of GNU Libtool.
  11924. #
  11925. # GNU Libtool is free software; you can redistribute it and/or
  11926. # modify it under the terms of the GNU General Public License as
  11927. # published by the Free Software Foundation; either version 2 of
  11928. # the License, or (at your option) any later version.
  11929. #
  11930. # As a special exception to the GNU General Public License,
  11931. # if you distribute this file as part of a program or library that
  11932. # is built using GNU Libtool, you may include this file under the
  11933. # same distribution terms that you use for the rest of that program.
  11934. #
  11935. # GNU Libtool is distributed in the hope that it will be useful,
  11936. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11937. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11938. # GNU General Public License for more details.
  11939. #
  11940. # You should have received a copy of the GNU General Public License
  11941. # along with GNU Libtool; see the file COPYING. If not, a copy
  11942. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11943. # obtained by writing to the Free Software Foundation, Inc.,
  11944. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11945. # The names of the tagged configurations supported by this script.
  11946. available_tags=""
  11947. # ### BEGIN LIBTOOL CONFIG
  11948. # Which release of libtool.m4 was used?
  11949. macro_version=$macro_version
  11950. macro_revision=$macro_revision
  11951. # Whether or not to build shared libraries.
  11952. build_libtool_libs=$enable_shared
  11953. # Whether or not to build static libraries.
  11954. build_old_libs=$enable_static
  11955. # What type of objects to build.
  11956. pic_mode=$pic_mode
  11957. # Whether or not to optimize for fast installation.
  11958. fast_install=$enable_fast_install
  11959. # Shell to use when invoking shell scripts.
  11960. SHELL=$lt_SHELL
  11961. # An echo program that protects backslashes.
  11962. ECHO=$lt_ECHO
  11963. # The host system.
  11964. host_alias=$host_alias
  11965. host=$host
  11966. host_os=$host_os
  11967. # The build system.
  11968. build_alias=$build_alias
  11969. build=$build
  11970. build_os=$build_os
  11971. # A sed program that does not truncate output.
  11972. SED=$lt_SED
  11973. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11974. Xsed="\$SED -e 1s/^X//"
  11975. # A grep program that handles long lines.
  11976. GREP=$lt_GREP
  11977. # An ERE matcher.
  11978. EGREP=$lt_EGREP
  11979. # A literal string matcher.
  11980. FGREP=$lt_FGREP
  11981. # A BSD- or MS-compatible name lister.
  11982. NM=$lt_NM
  11983. # Whether we need soft or hard links.
  11984. LN_S=$lt_LN_S
  11985. # What is the maximum length of a command?
  11986. max_cmd_len=$max_cmd_len
  11987. # Object file suffix (normally "o").
  11988. objext=$ac_objext
  11989. # Executable file suffix (normally "").
  11990. exeext=$exeext
  11991. # whether the shell understands "unset".
  11992. lt_unset=$lt_unset
  11993. # turn spaces into newlines.
  11994. SP2NL=$lt_lt_SP2NL
  11995. # turn newlines into spaces.
  11996. NL2SP=$lt_lt_NL2SP
  11997. # An object symbol dumper.
  11998. OBJDUMP=$lt_OBJDUMP
  11999. # Method to check whether dependent libraries are shared objects.
  12000. deplibs_check_method=$lt_deplibs_check_method
  12001. # Command to use when deplibs_check_method == "file_magic".
  12002. file_magic_cmd=$lt_file_magic_cmd
  12003. # The archiver.
  12004. AR=$lt_AR
  12005. AR_FLAGS=$lt_AR_FLAGS
  12006. # A symbol stripping program.
  12007. STRIP=$lt_STRIP
  12008. # Commands used to install an old-style archive.
  12009. RANLIB=$lt_RANLIB
  12010. old_postinstall_cmds=$lt_old_postinstall_cmds
  12011. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12012. # Whether to use a lock for old archive extraction.
  12013. lock_old_archive_extraction=$lock_old_archive_extraction
  12014. # A C compiler.
  12015. LTCC=$lt_CC
  12016. # LTCC compiler flags.
  12017. LTCFLAGS=$lt_CFLAGS
  12018. # Take the output of nm and produce a listing of raw symbols and C names.
  12019. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12020. # Transform the output of nm in a proper C declaration.
  12021. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12022. # Transform the output of nm in a C name address pair.
  12023. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12024. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12025. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12026. # The name of the directory that contains temporary libtool files.
  12027. objdir=$objdir
  12028. # Used to examine libraries when file_magic_cmd begins with "file".
  12029. MAGIC_CMD=$MAGIC_CMD
  12030. # Must we lock files when doing compilation?
  12031. need_locks=$lt_need_locks
  12032. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12033. DSYMUTIL=$lt_DSYMUTIL
  12034. # Tool to change global to local symbols on Mac OS X.
  12035. NMEDIT=$lt_NMEDIT
  12036. # Tool to manipulate fat objects and archives on Mac OS X.
  12037. LIPO=$lt_LIPO
  12038. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12039. OTOOL=$lt_OTOOL
  12040. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12041. OTOOL64=$lt_OTOOL64
  12042. # Old archive suffix (normally "a").
  12043. libext=$libext
  12044. # Shared library suffix (normally ".so").
  12045. shrext_cmds=$lt_shrext_cmds
  12046. # The commands to extract the exported symbol list from a shared archive.
  12047. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12048. # Variables whose values should be saved in libtool wrapper scripts and
  12049. # restored at link time.
  12050. variables_saved_for_relink=$lt_variables_saved_for_relink
  12051. # Do we need the "lib" prefix for modules?
  12052. need_lib_prefix=$need_lib_prefix
  12053. # Do we need a version for libraries?
  12054. need_version=$need_version
  12055. # Library versioning type.
  12056. version_type=$version_type
  12057. # Shared library runtime path variable.
  12058. runpath_var=$runpath_var
  12059. # Shared library path variable.
  12060. shlibpath_var=$shlibpath_var
  12061. # Is shlibpath searched before the hard-coded library search path?
  12062. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12063. # Format of library name prefix.
  12064. libname_spec=$lt_libname_spec
  12065. # List of archive names. First name is the real one, the rest are links.
  12066. # The last name is the one that the linker finds with -lNAME
  12067. library_names_spec=$lt_library_names_spec
  12068. # The coded name of the library, if different from the real name.
  12069. soname_spec=$lt_soname_spec
  12070. # Permission mode override for installation of shared libraries.
  12071. install_override_mode=$lt_install_override_mode
  12072. # Command to use after installation of a shared archive.
  12073. postinstall_cmds=$lt_postinstall_cmds
  12074. # Command to use after uninstallation of a shared archive.
  12075. postuninstall_cmds=$lt_postuninstall_cmds
  12076. # Commands used to finish a libtool library installation in a directory.
  12077. finish_cmds=$lt_finish_cmds
  12078. # As "finish_cmds", except a single script fragment to be evaled but
  12079. # not shown.
  12080. finish_eval=$lt_finish_eval
  12081. # Whether we should hardcode library paths into libraries.
  12082. hardcode_into_libs=$hardcode_into_libs
  12083. # Compile-time system search path for libraries.
  12084. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12085. # Run-time system search path for libraries.
  12086. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12087. # Whether dlopen is supported.
  12088. dlopen_support=$enable_dlopen
  12089. # Whether dlopen of programs is supported.
  12090. dlopen_self=$enable_dlopen_self
  12091. # Whether dlopen of statically linked programs is supported.
  12092. dlopen_self_static=$enable_dlopen_self_static
  12093. # Commands to strip libraries.
  12094. old_striplib=$lt_old_striplib
  12095. striplib=$lt_striplib
  12096. # The linker used to build libraries.
  12097. LD=$lt_LD
  12098. # How to create reloadable object files.
  12099. reload_flag=$lt_reload_flag
  12100. reload_cmds=$lt_reload_cmds
  12101. # Commands used to build an old-style archive.
  12102. old_archive_cmds=$lt_old_archive_cmds
  12103. # A language specific compiler.
  12104. CC=$lt_compiler
  12105. # Is the compiler the GNU compiler?
  12106. with_gcc=$GCC
  12107. # Compiler flag to turn off builtin functions.
  12108. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12109. # How to pass a linker flag through the compiler.
  12110. wl=$lt_lt_prog_compiler_wl
  12111. # Additional compiler flags for building library objects.
  12112. pic_flag=$lt_lt_prog_compiler_pic
  12113. # Compiler flag to prevent dynamic linking.
  12114. link_static_flag=$lt_lt_prog_compiler_static
  12115. # Does compiler simultaneously support -c and -o options?
  12116. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12117. # Whether or not to add -lc for building shared libraries.
  12118. build_libtool_need_lc=$archive_cmds_need_lc
  12119. # Whether or not to disallow shared libs when runtime libs are static.
  12120. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12121. # Compiler flag to allow reflexive dlopens.
  12122. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12123. # Compiler flag to generate shared objects directly from archives.
  12124. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12125. # Whether the compiler copes with passing no objects directly.
  12126. compiler_needs_object=$lt_compiler_needs_object
  12127. # Create an old-style archive from a shared archive.
  12128. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12129. # Create a temporary old-style archive to link instead of a shared archive.
  12130. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12131. # Commands used to build a shared archive.
  12132. archive_cmds=$lt_archive_cmds
  12133. archive_expsym_cmds=$lt_archive_expsym_cmds
  12134. # Commands used to build a loadable module if different from building
  12135. # a shared archive.
  12136. module_cmds=$lt_module_cmds
  12137. module_expsym_cmds=$lt_module_expsym_cmds
  12138. # Whether we are building with GNU ld or not.
  12139. with_gnu_ld=$lt_with_gnu_ld
  12140. # Flag that allows shared libraries with undefined symbols to be built.
  12141. allow_undefined_flag=$lt_allow_undefined_flag
  12142. # Flag that enforces no undefined symbols.
  12143. no_undefined_flag=$lt_no_undefined_flag
  12144. # Flag to hardcode \$libdir into a binary during linking.
  12145. # This must work even if \$libdir does not exist
  12146. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12147. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12148. # during linking. This must work even if \$libdir does not exist.
  12149. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12150. # Whether we need a single "-rpath" flag with a separated argument.
  12151. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12152. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12153. # DIR into the resulting binary.
  12154. hardcode_direct=$hardcode_direct
  12155. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12156. # DIR into the resulting binary and the resulting library dependency is
  12157. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12158. # library is relocated.
  12159. hardcode_direct_absolute=$hardcode_direct_absolute
  12160. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12161. # into the resulting binary.
  12162. hardcode_minus_L=$hardcode_minus_L
  12163. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12164. # into the resulting binary.
  12165. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12166. # Set to "yes" if building a shared library automatically hardcodes DIR
  12167. # into the library and all subsequent libraries and executables linked
  12168. # against it.
  12169. hardcode_automatic=$hardcode_automatic
  12170. # Set to yes if linker adds runtime paths of dependent libraries
  12171. # to runtime path list.
  12172. inherit_rpath=$inherit_rpath
  12173. # Whether libtool must link a program against all its dependency libraries.
  12174. link_all_deplibs=$link_all_deplibs
  12175. # Fix the shell variable \$srcfile for the compiler.
  12176. fix_srcfile_path=$lt_fix_srcfile_path
  12177. # Set to "yes" if exported symbols are required.
  12178. always_export_symbols=$always_export_symbols
  12179. # The commands to list exported symbols.
  12180. export_symbols_cmds=$lt_export_symbols_cmds
  12181. # Symbols that should not be listed in the preloaded symbols.
  12182. exclude_expsyms=$lt_exclude_expsyms
  12183. # Symbols that must always be exported.
  12184. include_expsyms=$lt_include_expsyms
  12185. # Commands necessary for linking programs (against libraries) with templates.
  12186. prelink_cmds=$lt_prelink_cmds
  12187. # Specify filename containing input files.
  12188. file_list_spec=$lt_file_list_spec
  12189. # How to hardcode a shared library path into an executable.
  12190. hardcode_action=$hardcode_action
  12191. # ### END LIBTOOL CONFIG
  12192. _LT_EOF
  12193. case $host_os in
  12194. aix3*)
  12195. cat <<\_LT_EOF >> "$cfgfile"
  12196. # AIX sometimes has problems with the GCC collect2 program. For some
  12197. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12198. # vanish in a puff of smoke.
  12199. if test "X${COLLECT_NAMES+set}" != Xset; then
  12200. COLLECT_NAMES=
  12201. export COLLECT_NAMES
  12202. fi
  12203. _LT_EOF
  12204. ;;
  12205. esac
  12206. ltmain="$ac_aux_dir/ltmain.sh"
  12207. # We use sed instead of cat because bash on DJGPP gets confused if
  12208. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12209. # text mode, it properly converts lines to CR/LF. This bash problem
  12210. # is reportedly fixed, but why not run on old versions too?
  12211. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12212. || (rm -f "$cfgfile"; exit 1)
  12213. case $xsi_shell in
  12214. yes)
  12215. cat << \_LT_EOF >> "$cfgfile"
  12216. # func_dirname file append nondir_replacement
  12217. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12218. # otherwise set result to NONDIR_REPLACEMENT.
  12219. func_dirname ()
  12220. {
  12221. case ${1} in
  12222. */*) func_dirname_result="${1%/*}${2}" ;;
  12223. * ) func_dirname_result="${3}" ;;
  12224. esac
  12225. }
  12226. # func_basename file
  12227. func_basename ()
  12228. {
  12229. func_basename_result="${1##*/}"
  12230. }
  12231. # func_dirname_and_basename file append nondir_replacement
  12232. # perform func_basename and func_dirname in a single function
  12233. # call:
  12234. # dirname: Compute the dirname of FILE. If nonempty,
  12235. # add APPEND to the result, otherwise set result
  12236. # to NONDIR_REPLACEMENT.
  12237. # value returned in "$func_dirname_result"
  12238. # basename: Compute filename of FILE.
  12239. # value retuned in "$func_basename_result"
  12240. # Implementation must be kept synchronized with func_dirname
  12241. # and func_basename. For efficiency, we do not delegate to
  12242. # those functions but instead duplicate the functionality here.
  12243. func_dirname_and_basename ()
  12244. {
  12245. case ${1} in
  12246. */*) func_dirname_result="${1%/*}${2}" ;;
  12247. * ) func_dirname_result="${3}" ;;
  12248. esac
  12249. func_basename_result="${1##*/}"
  12250. }
  12251. # func_stripname prefix suffix name
  12252. # strip PREFIX and SUFFIX off of NAME.
  12253. # PREFIX and SUFFIX must not contain globbing or regex special
  12254. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12255. # dot (in which case that matches only a dot).
  12256. func_stripname ()
  12257. {
  12258. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12259. # positional parameters, so assign one to ordinary parameter first.
  12260. func_stripname_result=${3}
  12261. func_stripname_result=${func_stripname_result#"${1}"}
  12262. func_stripname_result=${func_stripname_result%"${2}"}
  12263. }
  12264. # func_opt_split
  12265. func_opt_split ()
  12266. {
  12267. func_opt_split_opt=${1%%=*}
  12268. func_opt_split_arg=${1#*=}
  12269. }
  12270. # func_lo2o object
  12271. func_lo2o ()
  12272. {
  12273. case ${1} in
  12274. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12275. *) func_lo2o_result=${1} ;;
  12276. esac
  12277. }
  12278. # func_xform libobj-or-source
  12279. func_xform ()
  12280. {
  12281. func_xform_result=${1%.*}.lo
  12282. }
  12283. # func_arith arithmetic-term...
  12284. func_arith ()
  12285. {
  12286. func_arith_result=$(( $* ))
  12287. }
  12288. # func_len string
  12289. # STRING may not start with a hyphen.
  12290. func_len ()
  12291. {
  12292. func_len_result=${#1}
  12293. }
  12294. _LT_EOF
  12295. ;;
  12296. *) # Bourne compatible functions.
  12297. cat << \_LT_EOF >> "$cfgfile"
  12298. # func_dirname file append nondir_replacement
  12299. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12300. # otherwise set result to NONDIR_REPLACEMENT.
  12301. func_dirname ()
  12302. {
  12303. # Extract subdirectory from the argument.
  12304. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12305. if test "X$func_dirname_result" = "X${1}"; then
  12306. func_dirname_result="${3}"
  12307. else
  12308. func_dirname_result="$func_dirname_result${2}"
  12309. fi
  12310. }
  12311. # func_basename file
  12312. func_basename ()
  12313. {
  12314. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12315. }
  12316. # func_stripname prefix suffix name
  12317. # strip PREFIX and SUFFIX off of NAME.
  12318. # PREFIX and SUFFIX must not contain globbing or regex special
  12319. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12320. # dot (in which case that matches only a dot).
  12321. # func_strip_suffix prefix name
  12322. func_stripname ()
  12323. {
  12324. case ${2} in
  12325. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12326. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12327. esac
  12328. }
  12329. # sed scripts:
  12330. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12331. my_sed_long_arg='1s/^-[^=]*=//'
  12332. # func_opt_split
  12333. func_opt_split ()
  12334. {
  12335. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12336. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12337. }
  12338. # func_lo2o object
  12339. func_lo2o ()
  12340. {
  12341. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12342. }
  12343. # func_xform libobj-or-source
  12344. func_xform ()
  12345. {
  12346. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12347. }
  12348. # func_arith arithmetic-term...
  12349. func_arith ()
  12350. {
  12351. func_arith_result=`expr "$@"`
  12352. }
  12353. # func_len string
  12354. # STRING may not start with a hyphen.
  12355. func_len ()
  12356. {
  12357. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12358. }
  12359. _LT_EOF
  12360. esac
  12361. case $lt_shell_append in
  12362. yes)
  12363. cat << \_LT_EOF >> "$cfgfile"
  12364. # func_append var value
  12365. # Append VALUE to the end of shell variable VAR.
  12366. func_append ()
  12367. {
  12368. eval "$1+=\$2"
  12369. }
  12370. _LT_EOF
  12371. ;;
  12372. *)
  12373. cat << \_LT_EOF >> "$cfgfile"
  12374. # func_append var value
  12375. # Append VALUE to the end of shell variable VAR.
  12376. func_append ()
  12377. {
  12378. eval "$1=\$$1\$2"
  12379. }
  12380. _LT_EOF
  12381. ;;
  12382. esac
  12383. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12384. || (rm -f "$cfgfile"; exit 1)
  12385. mv -f "$cfgfile" "$ofile" ||
  12386. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12387. chmod +x "$ofile"
  12388. ;;
  12389. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  12390. rm -f Makesim1.tmp Makesim2.tmp Makefile
  12391. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  12392. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  12393. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  12394. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  12395. <Makefile.sim >Makefile
  12396. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  12397. ;;
  12398. "stamp-h":C) echo > stamp-h ;;
  12399. esac
  12400. done # for ac_tag
  12401. as_fn_exit 0
  12402. _ACEOF
  12403. ac_clean_files=$ac_clean_files_save
  12404. test $ac_write_fail = 0 ||
  12405. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12406. # configure is writing to config.log, and then calls config.status.
  12407. # config.status does its own redirection, appending to config.log.
  12408. # Unfortunately, on DOS this fails, as config.log is still kept open
  12409. # by configure, so config.status won't be able to write to it; its
  12410. # output is simply discarded. So we exec the FD to /dev/null,
  12411. # effectively closing config.log, so it can be properly (re)opened and
  12412. # appended to by config.status. When coming back to configure, we
  12413. # need to make the FD available again.
  12414. if test "$no_create" != yes; then
  12415. ac_cs_success=:
  12416. ac_config_status_args=
  12417. test "$silent" = yes &&
  12418. ac_config_status_args="$ac_config_status_args --quiet"
  12419. exec 5>/dev/null
  12420. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12421. exec 5>>config.log
  12422. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12423. # would make configure fail if this is the last instruction.
  12424. $ac_cs_success || as_fn_exit $?
  12425. fi
  12426. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12428. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12429. fi