configure 780 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for file 4.26.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  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. # Zsh 3.x and 4.x performs 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*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. # Check that we are running under the correct shell.
  476. SHELL=${CONFIG_SHELL-/bin/sh}
  477. case X$ECHO in
  478. X*--fallback-echo)
  479. # Remove one level of quotation (which was required for Make).
  480. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  481. ;;
  482. esac
  483. echo=${ECHO-echo}
  484. if test "X$1" = X--no-reexec; then
  485. # Discard the --no-reexec flag, and continue.
  486. shift
  487. elif test "X$1" = X--fallback-echo; then
  488. # Avoid inline document here, it may be left over
  489. :
  490. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  491. # Yippee, $echo works!
  492. :
  493. else
  494. # Restart under the correct shell.
  495. exec $SHELL "$0" --no-reexec ${1+"$@"}
  496. fi
  497. if test "X$1" = X--fallback-echo; then
  498. # used as fallback echo
  499. shift
  500. cat <<EOF
  501. $*
  502. EOF
  503. exit 0
  504. fi
  505. # The HP-UX ksh and POSIX shell print the target directory to stdout
  506. # if CDPATH is set.
  507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  508. if test -z "$ECHO"; then
  509. if test "X${echo_test_string+set}" != Xset; then
  510. # find a string as large as possible, as long as the shell can cope with it
  511. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  512. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  513. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  514. echo_test_string="`eval $cmd`" &&
  515. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  516. then
  517. break
  518. fi
  519. done
  520. fi
  521. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  522. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  523. test "X$echo_testing_string" = "X$echo_test_string"; then
  524. :
  525. else
  526. # The Solaris, AIX, and Digital Unix default echo programs unquote
  527. # backslashes. This makes it impossible to quote backslashes using
  528. # echo "$something" | sed 's/\\/\\\\/g'
  529. #
  530. # So, first we look for a working echo in the user's PATH.
  531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  532. for dir in $PATH /usr/ucb; do
  533. IFS="$lt_save_ifs"
  534. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  535. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. echo="$dir/echo"
  539. break
  540. fi
  541. done
  542. IFS="$lt_save_ifs"
  543. if test "X$echo" = Xecho; then
  544. # We didn't find a better echo, so look for alternatives.
  545. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. # This shell has a builtin print -r that does the trick.
  549. echo='print -r'
  550. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  551. test "X$CONFIG_SHELL" != X/bin/ksh; then
  552. # If we have ksh, try running configure again with it.
  553. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  554. export ORIGINAL_CONFIG_SHELL
  555. CONFIG_SHELL=/bin/ksh
  556. export CONFIG_SHELL
  557. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  558. else
  559. # Try using printf.
  560. echo='printf %s\n'
  561. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  562. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. # Cool, printf works
  565. :
  566. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  567. test "X$echo_testing_string" = 'X\t' &&
  568. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  571. export CONFIG_SHELL
  572. SHELL="$CONFIG_SHELL"
  573. export SHELL
  574. echo="$CONFIG_SHELL $0 --fallback-echo"
  575. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. echo="$CONFIG_SHELL $0 --fallback-echo"
  580. else
  581. # maybe with a smaller string...
  582. prev=:
  583. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  584. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  585. then
  586. break
  587. fi
  588. prev="$cmd"
  589. done
  590. if test "$prev" != 'sed 50q "$0"'; then
  591. echo_test_string=`eval $prev`
  592. export echo_test_string
  593. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  594. else
  595. # Oops. We lost completely, so just stick with echo.
  596. echo=echo
  597. fi
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. # Copy echo and quote the copy suitably for passing to libtool from
  604. # the Makefile, instead of quoting the original, which is used later.
  605. ECHO=$echo
  606. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  607. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  608. fi
  609. tagnames=${tagnames+${tagnames},}CXX
  610. tagnames=${tagnames+${tagnames},}F77
  611. exec 7<&0 </dev/null 6>&1
  612. # Name of the host.
  613. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  614. # so uname gets run too.
  615. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  616. #
  617. # Initializations.
  618. #
  619. ac_default_prefix=/usr/local
  620. ac_clean_files=
  621. ac_config_libobj_dir=.
  622. LIBOBJS=
  623. cross_compiling=no
  624. subdirs=
  625. MFLAGS=
  626. MAKEFLAGS=
  627. SHELL=${CONFIG_SHELL-/bin/sh}
  628. # Identity of this package.
  629. PACKAGE_NAME='file'
  630. PACKAGE_TARNAME='file'
  631. PACKAGE_VERSION='4.26'
  632. PACKAGE_STRING='file 4.26'
  633. PACKAGE_BUGREPORT='christos@astron.com'
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. INSTALL_PROGRAM
  707. INSTALL_SCRIPT
  708. INSTALL_DATA
  709. am__isrc
  710. CYGPATH_W
  711. PACKAGE
  712. VERSION
  713. ACLOCAL
  714. AUTOCONF
  715. AUTOMAKE
  716. AUTOHEADER
  717. MAKEINFO
  718. install_sh
  719. STRIP
  720. INSTALL_STRIP_PROGRAM
  721. mkdir_p
  722. AWK
  723. SET_MAKE
  724. am__leading_dot
  725. AMTAR
  726. am__tar
  727. am__untar
  728. fsect
  729. FSECT5_TRUE
  730. FSECT5_FALSE
  731. WARNINGS
  732. CC
  733. CFLAGS
  734. LDFLAGS
  735. CPPFLAGS
  736. ac_ct_CC
  737. EXEEXT
  738. OBJEXT
  739. DEPDIR
  740. am__include
  741. am__quote
  742. AMDEP_TRUE
  743. AMDEP_FALSE
  744. AMDEPBACKSLASH
  745. CCDEPMODE
  746. am__fastdepCC_TRUE
  747. am__fastdepCC_FALSE
  748. LN_S
  749. build
  750. build_cpu
  751. build_vendor
  752. build_os
  753. host
  754. host_cpu
  755. host_vendor
  756. host_os
  757. GREP
  758. EGREP
  759. ECHO
  760. AR
  761. RANLIB
  762. CPP
  763. CXX
  764. CXXFLAGS
  765. ac_ct_CXX
  766. CXXDEPMODE
  767. am__fastdepCXX_TRUE
  768. am__fastdepCXX_FALSE
  769. CXXCPP
  770. F77
  771. FFLAGS
  772. ac_ct_F77
  773. LIBTOOL
  774. LIBOBJS
  775. IS_CROSS_COMPILE_TRUE
  776. IS_CROSS_COMPILE_FALSE
  777. LTLIBOBJS'
  778. ac_subst_files=''
  779. ac_precious_vars='build_alias
  780. host_alias
  781. target_alias
  782. CC
  783. CFLAGS
  784. LDFLAGS
  785. LIBS
  786. CPPFLAGS
  787. CPP
  788. CXX
  789. CXXFLAGS
  790. CCC
  791. CXXCPP
  792. F77
  793. FFLAGS'
  794. # Initialize some variables set by options.
  795. ac_init_help=
  796. ac_init_version=false
  797. # The variables have the same names as the options, with
  798. # dashes changed to underlines.
  799. cache_file=/dev/null
  800. exec_prefix=NONE
  801. no_create=
  802. no_recursion=
  803. prefix=NONE
  804. program_prefix=NONE
  805. program_suffix=NONE
  806. program_transform_name=s,x,x,
  807. silent=
  808. site=
  809. srcdir=
  810. verbose=
  811. x_includes=NONE
  812. x_libraries=NONE
  813. # Installation directory options.
  814. # These are left unexpanded so users can "make install exec_prefix=/foo"
  815. # and all the variables that are supposed to be based on exec_prefix
  816. # by default will actually change.
  817. # Use braces instead of parens because sh, perl, etc. also accept them.
  818. # (The list follows the same order as the GNU Coding Standards.)
  819. bindir='${exec_prefix}/bin'
  820. sbindir='${exec_prefix}/sbin'
  821. libexecdir='${exec_prefix}/libexec'
  822. datarootdir='${prefix}/share'
  823. datadir='${datarootdir}'
  824. sysconfdir='${prefix}/etc'
  825. sharedstatedir='${prefix}/com'
  826. localstatedir='${prefix}/var'
  827. includedir='${prefix}/include'
  828. oldincludedir='/usr/include'
  829. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  830. infodir='${datarootdir}/info'
  831. htmldir='${docdir}'
  832. dvidir='${docdir}'
  833. pdfdir='${docdir}'
  834. psdir='${docdir}'
  835. libdir='${exec_prefix}/lib'
  836. localedir='${datarootdir}/locale'
  837. mandir='${datarootdir}/man'
  838. ac_prev=
  839. ac_dashdash=
  840. for ac_option
  841. do
  842. # If the previous option needs an argument, assign it.
  843. if test -n "$ac_prev"; then
  844. eval $ac_prev=\$ac_option
  845. ac_prev=
  846. continue
  847. fi
  848. case $ac_option in
  849. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  850. *) ac_optarg=yes ;;
  851. esac
  852. # Accept the important Cygnus configure options, so we can diagnose typos.
  853. case $ac_dashdash$ac_option in
  854. --)
  855. ac_dashdash=yes ;;
  856. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  857. ac_prev=bindir ;;
  858. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  859. bindir=$ac_optarg ;;
  860. -build | --build | --buil | --bui | --bu)
  861. ac_prev=build_alias ;;
  862. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  863. build_alias=$ac_optarg ;;
  864. -cache-file | --cache-file | --cache-fil | --cache-fi \
  865. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  866. ac_prev=cache_file ;;
  867. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  868. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  869. cache_file=$ac_optarg ;;
  870. --config-cache | -C)
  871. cache_file=config.cache ;;
  872. -datadir | --datadir | --datadi | --datad)
  873. ac_prev=datadir ;;
  874. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  875. datadir=$ac_optarg ;;
  876. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  877. | --dataroo | --dataro | --datar)
  878. ac_prev=datarootdir ;;
  879. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  880. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  881. datarootdir=$ac_optarg ;;
  882. -disable-* | --disable-*)
  883. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  886. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  887. { (exit 1); exit 1; }; }
  888. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  889. eval enable_$ac_feature=no ;;
  890. -docdir | --docdir | --docdi | --doc | --do)
  891. ac_prev=docdir ;;
  892. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  893. docdir=$ac_optarg ;;
  894. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  895. ac_prev=dvidir ;;
  896. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  897. dvidir=$ac_optarg ;;
  898. -enable-* | --enable-*)
  899. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  900. # Reject names that are not valid shell variable names.
  901. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  902. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  903. { (exit 1); exit 1; }; }
  904. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  905. eval enable_$ac_feature=\$ac_optarg ;;
  906. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  907. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  908. | --exec | --exe | --ex)
  909. ac_prev=exec_prefix ;;
  910. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  911. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  912. | --exec=* | --exe=* | --ex=*)
  913. exec_prefix=$ac_optarg ;;
  914. -gas | --gas | --ga | --g)
  915. # Obsolete; use --with-gas.
  916. with_gas=yes ;;
  917. -help | --help | --hel | --he | -h)
  918. ac_init_help=long ;;
  919. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  920. ac_init_help=recursive ;;
  921. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  922. ac_init_help=short ;;
  923. -host | --host | --hos | --ho)
  924. ac_prev=host_alias ;;
  925. -host=* | --host=* | --hos=* | --ho=*)
  926. host_alias=$ac_optarg ;;
  927. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  928. ac_prev=htmldir ;;
  929. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  930. | --ht=*)
  931. htmldir=$ac_optarg ;;
  932. -includedir | --includedir | --includedi | --included | --include \
  933. | --includ | --inclu | --incl | --inc)
  934. ac_prev=includedir ;;
  935. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  936. | --includ=* | --inclu=* | --incl=* | --inc=*)
  937. includedir=$ac_optarg ;;
  938. -infodir | --infodir | --infodi | --infod | --info | --inf)
  939. ac_prev=infodir ;;
  940. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  941. infodir=$ac_optarg ;;
  942. -libdir | --libdir | --libdi | --libd)
  943. ac_prev=libdir ;;
  944. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  945. libdir=$ac_optarg ;;
  946. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  947. | --libexe | --libex | --libe)
  948. ac_prev=libexecdir ;;
  949. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  950. | --libexe=* | --libex=* | --libe=*)
  951. libexecdir=$ac_optarg ;;
  952. -localedir | --localedir | --localedi | --localed | --locale)
  953. ac_prev=localedir ;;
  954. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  955. localedir=$ac_optarg ;;
  956. -localstatedir | --localstatedir | --localstatedi | --localstated \
  957. | --localstate | --localstat | --localsta | --localst | --locals)
  958. ac_prev=localstatedir ;;
  959. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  960. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  961. localstatedir=$ac_optarg ;;
  962. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  963. ac_prev=mandir ;;
  964. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  965. mandir=$ac_optarg ;;
  966. -nfp | --nfp | --nf)
  967. # Obsolete; use --without-fp.
  968. with_fp=no ;;
  969. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  970. | --no-cr | --no-c | -n)
  971. no_create=yes ;;
  972. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  973. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  974. no_recursion=yes ;;
  975. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  976. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  977. | --oldin | --oldi | --old | --ol | --o)
  978. ac_prev=oldincludedir ;;
  979. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  980. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  981. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  982. oldincludedir=$ac_optarg ;;
  983. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  984. ac_prev=prefix ;;
  985. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  986. prefix=$ac_optarg ;;
  987. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  988. | --program-pre | --program-pr | --program-p)
  989. ac_prev=program_prefix ;;
  990. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  991. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  992. program_prefix=$ac_optarg ;;
  993. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  994. | --program-suf | --program-su | --program-s)
  995. ac_prev=program_suffix ;;
  996. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  997. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  998. program_suffix=$ac_optarg ;;
  999. -program-transform-name | --program-transform-name \
  1000. | --program-transform-nam | --program-transform-na \
  1001. | --program-transform-n | --program-transform- \
  1002. | --program-transform | --program-transfor \
  1003. | --program-transfo | --program-transf \
  1004. | --program-trans | --program-tran \
  1005. | --progr-tra | --program-tr | --program-t)
  1006. ac_prev=program_transform_name ;;
  1007. -program-transform-name=* | --program-transform-name=* \
  1008. | --program-transform-nam=* | --program-transform-na=* \
  1009. | --program-transform-n=* | --program-transform-=* \
  1010. | --program-transform=* | --program-transfor=* \
  1011. | --program-transfo=* | --program-transf=* \
  1012. | --program-trans=* | --program-tran=* \
  1013. | --progr-tra=* | --program-tr=* | --program-t=*)
  1014. program_transform_name=$ac_optarg ;;
  1015. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1016. ac_prev=pdfdir ;;
  1017. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1018. pdfdir=$ac_optarg ;;
  1019. -psdir | --psdir | --psdi | --psd | --ps)
  1020. ac_prev=psdir ;;
  1021. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1022. psdir=$ac_optarg ;;
  1023. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1024. | -silent | --silent | --silen | --sile | --sil)
  1025. silent=yes ;;
  1026. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1027. ac_prev=sbindir ;;
  1028. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1029. | --sbi=* | --sb=*)
  1030. sbindir=$ac_optarg ;;
  1031. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1032. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1033. | --sharedst | --shareds | --shared | --share | --shar \
  1034. | --sha | --sh)
  1035. ac_prev=sharedstatedir ;;
  1036. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1037. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1038. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1039. | --sha=* | --sh=*)
  1040. sharedstatedir=$ac_optarg ;;
  1041. -site | --site | --sit)
  1042. ac_prev=site ;;
  1043. -site=* | --site=* | --sit=*)
  1044. site=$ac_optarg ;;
  1045. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1046. ac_prev=srcdir ;;
  1047. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1048. srcdir=$ac_optarg ;;
  1049. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1050. | --syscon | --sysco | --sysc | --sys | --sy)
  1051. ac_prev=sysconfdir ;;
  1052. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1053. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1054. sysconfdir=$ac_optarg ;;
  1055. -target | --target | --targe | --targ | --tar | --ta | --t)
  1056. ac_prev=target_alias ;;
  1057. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1058. target_alias=$ac_optarg ;;
  1059. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1060. verbose=yes ;;
  1061. -version | --version | --versio | --versi | --vers | -V)
  1062. ac_init_version=: ;;
  1063. -with-* | --with-*)
  1064. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1068. { (exit 1); exit 1; }; }
  1069. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1070. eval with_$ac_package=\$ac_optarg ;;
  1071. -without-* | --without-*)
  1072. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1073. # Reject names that are not valid shell variable names.
  1074. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1075. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1076. { (exit 1); exit 1; }; }
  1077. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1078. eval with_$ac_package=no ;;
  1079. --x)
  1080. # Obsolete; use --with-x.
  1081. with_x=yes ;;
  1082. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1083. | --x-incl | --x-inc | --x-in | --x-i)
  1084. ac_prev=x_includes ;;
  1085. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1086. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1087. x_includes=$ac_optarg ;;
  1088. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1089. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1090. ac_prev=x_libraries ;;
  1091. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1092. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1093. x_libraries=$ac_optarg ;;
  1094. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1095. Try \`$0 --help' for more information." >&2
  1096. { (exit 1); exit 1; }; }
  1097. ;;
  1098. *=*)
  1099. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1102. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1103. { (exit 1); exit 1; }; }
  1104. eval $ac_envvar=\$ac_optarg
  1105. export $ac_envvar ;;
  1106. *)
  1107. # FIXME: should be removed in autoconf 3.0.
  1108. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1109. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1110. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1111. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1112. ;;
  1113. esac
  1114. done
  1115. if test -n "$ac_prev"; then
  1116. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1117. { echo "$as_me: error: missing argument to $ac_option" >&2
  1118. { (exit 1); exit 1; }; }
  1119. fi
  1120. # Be sure to have absolute directory names.
  1121. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1122. datadir sysconfdir sharedstatedir localstatedir includedir \
  1123. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1124. libdir localedir mandir
  1125. do
  1126. eval ac_val=\$$ac_var
  1127. case $ac_val in
  1128. [\\/$]* | ?:[\\/]* ) continue;;
  1129. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1130. esac
  1131. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1132. { (exit 1); exit 1; }; }
  1133. done
  1134. # There might be people who depend on the old broken behavior: `$host'
  1135. # used to hold the argument of --host etc.
  1136. # FIXME: To remove some day.
  1137. build=$build_alias
  1138. host=$host_alias
  1139. target=$target_alias
  1140. # FIXME: To remove some day.
  1141. if test "x$host_alias" != x; then
  1142. if test "x$build_alias" = x; then
  1143. cross_compiling=maybe
  1144. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1145. If a cross compiler is detected then cross compile mode will be used." >&2
  1146. elif test "x$build_alias" != "x$host_alias"; then
  1147. cross_compiling=yes
  1148. fi
  1149. fi
  1150. ac_tool_prefix=
  1151. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1152. test "$silent" = yes && exec 6>/dev/null
  1153. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1154. ac_ls_di=`ls -di .` &&
  1155. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1156. { echo "$as_me: error: Working directory cannot be determined" >&2
  1157. { (exit 1); exit 1; }; }
  1158. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1159. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1160. { (exit 1); exit 1; }; }
  1161. # Find the source files, if location was not specified.
  1162. if test -z "$srcdir"; then
  1163. ac_srcdir_defaulted=yes
  1164. # Try the directory containing this script, then the parent directory.
  1165. ac_confdir=`$as_dirname -- "$0" ||
  1166. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1167. X"$0" : 'X\(//\)[^/]' \| \
  1168. X"$0" : 'X\(//\)$' \| \
  1169. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1170. echo X"$0" |
  1171. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\/\)[^/].*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. /^X\(\/\/\)$/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\).*/{
  1184. s//\1/
  1185. q
  1186. }
  1187. s/.*/./; q'`
  1188. srcdir=$ac_confdir
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. srcdir=..
  1191. fi
  1192. else
  1193. ac_srcdir_defaulted=no
  1194. fi
  1195. if test ! -r "$srcdir/$ac_unique_file"; then
  1196. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1197. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1198. { (exit 1); exit 1; }; }
  1199. fi
  1200. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1201. ac_abs_confdir=`(
  1202. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1203. { (exit 1); exit 1; }; }
  1204. pwd)`
  1205. # When building in place, set srcdir=.
  1206. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1207. srcdir=.
  1208. fi
  1209. # Remove unnecessary trailing slashes from srcdir.
  1210. # Double slashes in file names in object file debugging info
  1211. # mess up M-x gdb in Emacs.
  1212. case $srcdir in
  1213. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1214. esac
  1215. for ac_var in $ac_precious_vars; do
  1216. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1217. eval ac_env_${ac_var}_value=\$${ac_var}
  1218. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1219. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1220. done
  1221. #
  1222. # Report the --help message.
  1223. #
  1224. if test "$ac_init_help" = "long"; then
  1225. # Omit some internal or obsolete options to make the list less imposing.
  1226. # This message is too long to be a string in the A/UX 3.1 sh.
  1227. cat <<_ACEOF
  1228. \`configure' configures file 4.26 to adapt to many kinds of systems.
  1229. Usage: $0 [OPTION]... [VAR=VALUE]...
  1230. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1231. VAR=VALUE. See below for descriptions of some of the useful variables.
  1232. Defaults for the options are specified in brackets.
  1233. Configuration:
  1234. -h, --help display this help and exit
  1235. --help=short display options specific to this package
  1236. --help=recursive display the short help of all the included packages
  1237. -V, --version display version information and exit
  1238. -q, --quiet, --silent do not print \`checking...' messages
  1239. --cache-file=FILE cache test results in FILE [disabled]
  1240. -C, --config-cache alias for \`--cache-file=config.cache'
  1241. -n, --no-create do not create output files
  1242. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1243. Installation directories:
  1244. --prefix=PREFIX install architecture-independent files in PREFIX
  1245. [$ac_default_prefix]
  1246. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1247. [PREFIX]
  1248. By default, \`make install' will install all the files in
  1249. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1250. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1251. for instance \`--prefix=\$HOME'.
  1252. For better control, use the options below.
  1253. Fine tuning of the installation directories:
  1254. --bindir=DIR user executables [EPREFIX/bin]
  1255. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1256. --libexecdir=DIR program executables [EPREFIX/libexec]
  1257. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1258. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1259. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1260. --libdir=DIR object code libraries [EPREFIX/lib]
  1261. --includedir=DIR C header files [PREFIX/include]
  1262. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1263. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1264. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1265. --infodir=DIR info documentation [DATAROOTDIR/info]
  1266. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1267. --mandir=DIR man documentation [DATAROOTDIR/man]
  1268. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1269. --htmldir=DIR html documentation [DOCDIR]
  1270. --dvidir=DIR dvi documentation [DOCDIR]
  1271. --pdfdir=DIR pdf documentation [DOCDIR]
  1272. --psdir=DIR ps documentation [DOCDIR]
  1273. _ACEOF
  1274. cat <<\_ACEOF
  1275. Program names:
  1276. --program-prefix=PREFIX prepend PREFIX to installed program names
  1277. --program-suffix=SUFFIX append SUFFIX to installed program names
  1278. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1279. System types:
  1280. --build=BUILD configure for building on BUILD [guessed]
  1281. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1282. _ACEOF
  1283. fi
  1284. if test -n "$ac_init_help"; then
  1285. case $ac_init_help in
  1286. short | recursive ) echo "Configuration of file 4.26:";;
  1287. esac
  1288. cat <<\_ACEOF
  1289. Optional Features:
  1290. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1291. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1292. --disable-elf disable builtin ELF support
  1293. --disable-elf-core disable ELF core file support
  1294. --enable-fsect-man5 enable file formats in man section 5
  1295. --disable-dependency-tracking speeds up one-time build
  1296. --enable-dependency-tracking do not reject slow dependency extractors
  1297. --enable-shared[=PKGS] build shared libraries [default=yes]
  1298. --enable-static[=PKGS] build static libraries [default=yes]
  1299. --enable-fast-install[=PKGS]
  1300. optimize for fast installation [default=yes]
  1301. --disable-libtool-lock avoid locking (might break parallel builds)
  1302. --disable-largefile omit support for large files
  1303. --disable-warnings disable compiler warnings
  1304. Optional Packages:
  1305. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1306. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1307. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1308. --with-pic try to use only PIC/non-PIC objects [default=use
  1309. both]
  1310. --with-tags[=TAGS] include additional configurations [automatic]
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. LIBS libraries to pass to the linker, e.g. -l<library>
  1317. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1318. you have headers in a nonstandard directory <include dir>
  1319. CPP C preprocessor
  1320. CXX C++ compiler command
  1321. CXXFLAGS C++ compiler flags
  1322. CXXCPP C++ preprocessor
  1323. F77 Fortran 77 compiler command
  1324. FFLAGS Fortran 77 compiler flags
  1325. Use these variables to override the choices made by `configure' or to help
  1326. it to find libraries and programs with nonstandard names/locations.
  1327. Report bugs to <christos@astron.com>.
  1328. _ACEOF
  1329. ac_status=$?
  1330. fi
  1331. if test "$ac_init_help" = "recursive"; then
  1332. # If there are subdirs, report their specific --help.
  1333. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1334. test -d "$ac_dir" || continue
  1335. ac_builddir=.
  1336. case "$ac_dir" in
  1337. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1338. *)
  1339. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1340. # A ".." for each directory in $ac_dir_suffix.
  1341. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1342. case $ac_top_builddir_sub in
  1343. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1344. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1345. esac ;;
  1346. esac
  1347. ac_abs_top_builddir=$ac_pwd
  1348. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1349. # for backward compatibility:
  1350. ac_top_builddir=$ac_top_build_prefix
  1351. case $srcdir in
  1352. .) # We are building in place.
  1353. ac_srcdir=.
  1354. ac_top_srcdir=$ac_top_builddir_sub
  1355. ac_abs_top_srcdir=$ac_pwd ;;
  1356. [\\/]* | ?:[\\/]* ) # Absolute name.
  1357. ac_srcdir=$srcdir$ac_dir_suffix;
  1358. ac_top_srcdir=$srcdir
  1359. ac_abs_top_srcdir=$srcdir ;;
  1360. *) # Relative name.
  1361. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1362. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1363. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1364. esac
  1365. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1366. cd "$ac_dir" || { ac_status=$?; continue; }
  1367. # Check for guested configure.
  1368. if test -f "$ac_srcdir/configure.gnu"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1371. elif test -f "$ac_srcdir/configure"; then
  1372. echo &&
  1373. $SHELL "$ac_srcdir/configure" --help=recursive
  1374. else
  1375. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1376. fi || ac_status=$?
  1377. cd "$ac_pwd" || { ac_status=$?; break; }
  1378. done
  1379. fi
  1380. test -n "$ac_init_help" && exit $ac_status
  1381. if $ac_init_version; then
  1382. cat <<\_ACEOF
  1383. file configure 4.26
  1384. generated by GNU Autoconf 2.61
  1385. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1386. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1387. This configure script is free software; the Free Software Foundation
  1388. gives unlimited permission to copy, distribute and modify it.
  1389. _ACEOF
  1390. exit
  1391. fi
  1392. cat >config.log <<_ACEOF
  1393. This file contains any messages produced by compilers while
  1394. running configure, to aid debugging if configure makes a mistake.
  1395. It was created by file $as_me 4.26, which was
  1396. generated by GNU Autoconf 2.61. Invocation command line was
  1397. $ $0 $@
  1398. _ACEOF
  1399. exec 5>>config.log
  1400. {
  1401. cat <<_ASUNAME
  1402. ## --------- ##
  1403. ## Platform. ##
  1404. ## --------- ##
  1405. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1406. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1407. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1408. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1409. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1410. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1411. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1412. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1413. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1414. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1415. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1416. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1417. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1418. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1419. _ASUNAME
  1420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1421. for as_dir in $PATH
  1422. do
  1423. IFS=$as_save_IFS
  1424. test -z "$as_dir" && as_dir=.
  1425. echo "PATH: $as_dir"
  1426. done
  1427. IFS=$as_save_IFS
  1428. } >&5
  1429. cat >&5 <<_ACEOF
  1430. ## ----------- ##
  1431. ## Core tests. ##
  1432. ## ----------- ##
  1433. _ACEOF
  1434. # Keep a trace of the command line.
  1435. # Strip out --no-create and --no-recursion so they do not pile up.
  1436. # Strip out --silent because we don't want to record it for future runs.
  1437. # Also quote any args containing shell meta-characters.
  1438. # Make two passes to allow for proper duplicate-argument suppression.
  1439. ac_configure_args=
  1440. ac_configure_args0=
  1441. ac_configure_args1=
  1442. ac_must_keep_next=false
  1443. for ac_pass in 1 2
  1444. do
  1445. for ac_arg
  1446. do
  1447. case $ac_arg in
  1448. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1449. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1450. | -silent | --silent | --silen | --sile | --sil)
  1451. continue ;;
  1452. *\'*)
  1453. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1454. esac
  1455. case $ac_pass in
  1456. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1457. 2)
  1458. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1459. if test $ac_must_keep_next = true; then
  1460. ac_must_keep_next=false # Got value, back to normal.
  1461. else
  1462. case $ac_arg in
  1463. *=* | --config-cache | -C | -disable-* | --disable-* \
  1464. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1465. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1466. | -with-* | --with-* | -without-* | --without-* | --x)
  1467. case "$ac_configure_args0 " in
  1468. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1469. esac
  1470. ;;
  1471. -* ) ac_must_keep_next=true ;;
  1472. esac
  1473. fi
  1474. ac_configure_args="$ac_configure_args '$ac_arg'"
  1475. ;;
  1476. esac
  1477. done
  1478. done
  1479. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1480. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1481. # When interrupted or exit'd, cleanup temporary files, and complete
  1482. # config.log. We remove comments because anyway the quotes in there
  1483. # would cause problems or look ugly.
  1484. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1485. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1486. trap 'exit_status=$?
  1487. # Save into config.log some information that might help in debugging.
  1488. {
  1489. echo
  1490. cat <<\_ASBOX
  1491. ## ---------------- ##
  1492. ## Cache variables. ##
  1493. ## ---------------- ##
  1494. _ASBOX
  1495. echo
  1496. # The following way of writing the cache mishandles newlines in values,
  1497. (
  1498. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1499. eval ac_val=\$$ac_var
  1500. case $ac_val in #(
  1501. *${as_nl}*)
  1502. case $ac_var in #(
  1503. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1504. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1505. esac
  1506. case $ac_var in #(
  1507. _ | IFS | as_nl) ;; #(
  1508. *) $as_unset $ac_var ;;
  1509. esac ;;
  1510. esac
  1511. done
  1512. (set) 2>&1 |
  1513. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1514. *${as_nl}ac_space=\ *)
  1515. sed -n \
  1516. "s/'\''/'\''\\\\'\'''\''/g;
  1517. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1518. ;; #(
  1519. *)
  1520. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1521. ;;
  1522. esac |
  1523. sort
  1524. )
  1525. echo
  1526. cat <<\_ASBOX
  1527. ## ----------------- ##
  1528. ## Output variables. ##
  1529. ## ----------------- ##
  1530. _ASBOX
  1531. echo
  1532. for ac_var in $ac_subst_vars
  1533. do
  1534. eval ac_val=\$$ac_var
  1535. case $ac_val in
  1536. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1537. esac
  1538. echo "$ac_var='\''$ac_val'\''"
  1539. done | sort
  1540. echo
  1541. if test -n "$ac_subst_files"; then
  1542. cat <<\_ASBOX
  1543. ## ------------------- ##
  1544. ## File substitutions. ##
  1545. ## ------------------- ##
  1546. _ASBOX
  1547. echo
  1548. for ac_var in $ac_subst_files
  1549. do
  1550. eval ac_val=\$$ac_var
  1551. case $ac_val in
  1552. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1553. esac
  1554. echo "$ac_var='\''$ac_val'\''"
  1555. done | sort
  1556. echo
  1557. fi
  1558. if test -s confdefs.h; then
  1559. cat <<\_ASBOX
  1560. ## ----------- ##
  1561. ## confdefs.h. ##
  1562. ## ----------- ##
  1563. _ASBOX
  1564. echo
  1565. cat confdefs.h
  1566. echo
  1567. fi
  1568. test "$ac_signal" != 0 &&
  1569. echo "$as_me: caught signal $ac_signal"
  1570. echo "$as_me: exit $exit_status"
  1571. } >&5
  1572. rm -f core *.core core.conftest.* &&
  1573. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1574. exit $exit_status
  1575. ' 0
  1576. for ac_signal in 1 2 13 15; do
  1577. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1578. done
  1579. ac_signal=0
  1580. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1581. rm -f -r conftest* confdefs.h
  1582. # Predefined preprocessor variables.
  1583. cat >>confdefs.h <<_ACEOF
  1584. #define PACKAGE_NAME "$PACKAGE_NAME"
  1585. _ACEOF
  1586. cat >>confdefs.h <<_ACEOF
  1587. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1588. _ACEOF
  1589. cat >>confdefs.h <<_ACEOF
  1590. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1591. _ACEOF
  1592. cat >>confdefs.h <<_ACEOF
  1593. #define PACKAGE_STRING "$PACKAGE_STRING"
  1594. _ACEOF
  1595. cat >>confdefs.h <<_ACEOF
  1596. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1597. _ACEOF
  1598. # Let the site file select an alternate cache file if it wants to.
  1599. # Prefer explicitly selected file to automatically selected ones.
  1600. if test -n "$CONFIG_SITE"; then
  1601. set x "$CONFIG_SITE"
  1602. elif test "x$prefix" != xNONE; then
  1603. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1604. else
  1605. set x "$ac_default_prefix/share/config.site" \
  1606. "$ac_default_prefix/etc/config.site"
  1607. fi
  1608. shift
  1609. for ac_site_file
  1610. do
  1611. if test -r "$ac_site_file"; then
  1612. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1613. echo "$as_me: loading site script $ac_site_file" >&6;}
  1614. sed 's/^/| /' "$ac_site_file" >&5
  1615. . "$ac_site_file"
  1616. fi
  1617. done
  1618. if test -r "$cache_file"; then
  1619. # Some versions of bash will fail to source /dev/null (special
  1620. # files actually), so we avoid doing that.
  1621. if test -f "$cache_file"; then
  1622. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1623. echo "$as_me: loading cache $cache_file" >&6;}
  1624. case $cache_file in
  1625. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1626. *) . "./$cache_file";;
  1627. esac
  1628. fi
  1629. else
  1630. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1631. echo "$as_me: creating cache $cache_file" >&6;}
  1632. >$cache_file
  1633. fi
  1634. # Check that the precious variables saved in the cache have kept the same
  1635. # value.
  1636. ac_cache_corrupted=false
  1637. for ac_var in $ac_precious_vars; do
  1638. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1639. eval ac_new_set=\$ac_env_${ac_var}_set
  1640. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1641. eval ac_new_val=\$ac_env_${ac_var}_value
  1642. case $ac_old_set,$ac_new_set in
  1643. set,)
  1644. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1645. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1646. ac_cache_corrupted=: ;;
  1647. ,set)
  1648. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1649. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1650. ac_cache_corrupted=: ;;
  1651. ,);;
  1652. *)
  1653. if test "x$ac_old_val" != "x$ac_new_val"; then
  1654. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1655. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1656. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1657. echo "$as_me: former value: $ac_old_val" >&2;}
  1658. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1659. echo "$as_me: current value: $ac_new_val" >&2;}
  1660. ac_cache_corrupted=:
  1661. fi;;
  1662. esac
  1663. # Pass precious variables to config.status.
  1664. if test "$ac_new_set" = set; then
  1665. case $ac_new_val in
  1666. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1667. *) ac_arg=$ac_var=$ac_new_val ;;
  1668. esac
  1669. case " $ac_configure_args " in
  1670. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1671. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1672. esac
  1673. fi
  1674. done
  1675. if $ac_cache_corrupted; then
  1676. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1677. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1678. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1679. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1680. { (exit 1); exit 1; }; }
  1681. fi
  1682. ac_ext=c
  1683. ac_cpp='$CPP $CPPFLAGS'
  1684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1687. am__api_version='1.10'
  1688. ac_aux_dir=
  1689. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1690. if test -f "$ac_dir/install-sh"; then
  1691. ac_aux_dir=$ac_dir
  1692. ac_install_sh="$ac_aux_dir/install-sh -c"
  1693. break
  1694. elif test -f "$ac_dir/install.sh"; then
  1695. ac_aux_dir=$ac_dir
  1696. ac_install_sh="$ac_aux_dir/install.sh -c"
  1697. break
  1698. elif test -f "$ac_dir/shtool"; then
  1699. ac_aux_dir=$ac_dir
  1700. ac_install_sh="$ac_aux_dir/shtool install -c"
  1701. break
  1702. fi
  1703. done
  1704. if test -z "$ac_aux_dir"; then
  1705. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1706. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1707. { (exit 1); exit 1; }; }
  1708. fi
  1709. # These three variables are undocumented and unsupported,
  1710. # and are intended to be withdrawn in a future Autoconf release.
  1711. # They can cause serious problems if a builder's source tree is in a directory
  1712. # whose full name contains unusual characters.
  1713. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1714. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1715. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1716. # Find a good install program. We prefer a C program (faster),
  1717. # so one script is as good as another. But avoid the broken or
  1718. # incompatible versions:
  1719. # SysV /etc/install, /usr/sbin/install
  1720. # SunOS /usr/etc/install
  1721. # IRIX /sbin/install
  1722. # AIX /bin/install
  1723. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1724. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1725. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1726. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1727. # OS/2's system install, which has a completely different semantic
  1728. # ./install, which can be erroneously created by make from ./install.sh.
  1729. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1730. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1731. if test -z "$INSTALL"; then
  1732. if test "${ac_cv_path_install+set}" = set; then
  1733. echo $ECHO_N "(cached) $ECHO_C" >&6
  1734. else
  1735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1736. for as_dir in $PATH
  1737. do
  1738. IFS=$as_save_IFS
  1739. test -z "$as_dir" && as_dir=.
  1740. # Account for people who put trailing slashes in PATH elements.
  1741. case $as_dir/ in
  1742. ./ | .// | /cC/* | \
  1743. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1744. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1745. /usr/ucb/* ) ;;
  1746. *)
  1747. # OSF1 and SCO ODT 3.0 have their own names for install.
  1748. # Don't use installbsd from OSF since it installs stuff as root
  1749. # by default.
  1750. for ac_prog in ginstall scoinst install; do
  1751. for ac_exec_ext in '' $ac_executable_extensions; do
  1752. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1753. if test $ac_prog = install &&
  1754. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1755. # AIX install. It has an incompatible calling convention.
  1756. :
  1757. elif test $ac_prog = install &&
  1758. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1759. # program-specific install script used by HP pwplus--don't use.
  1760. :
  1761. else
  1762. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1763. break 3
  1764. fi
  1765. fi
  1766. done
  1767. done
  1768. ;;
  1769. esac
  1770. done
  1771. IFS=$as_save_IFS
  1772. fi
  1773. if test "${ac_cv_path_install+set}" = set; then
  1774. INSTALL=$ac_cv_path_install
  1775. else
  1776. # As a last resort, use the slow shell script. Don't cache a
  1777. # value for INSTALL within a source directory, because that will
  1778. # break other packages using the cache if that directory is
  1779. # removed, or if the value is a relative name.
  1780. INSTALL=$ac_install_sh
  1781. fi
  1782. fi
  1783. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1784. echo "${ECHO_T}$INSTALL" >&6; }
  1785. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1786. # It thinks the first close brace ends the variable substitution.
  1787. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1788. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1789. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1790. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1791. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1792. # Just in case
  1793. sleep 1
  1794. echo timestamp > conftest.file
  1795. # Do `set' in a subshell so we don't clobber the current shell's
  1796. # arguments. Must try -L first in case configure is actually a
  1797. # symlink; some systems play weird games with the mod time of symlinks
  1798. # (eg FreeBSD returns the mod time of the symlink's containing
  1799. # directory).
  1800. if (
  1801. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1802. if test "$*" = "X"; then
  1803. # -L didn't work.
  1804. set X `ls -t $srcdir/configure conftest.file`
  1805. fi
  1806. rm -f conftest.file
  1807. if test "$*" != "X $srcdir/configure conftest.file" \
  1808. && test "$*" != "X conftest.file $srcdir/configure"; then
  1809. # If neither matched, then we have a broken ls. This can happen
  1810. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1811. # broken ls alias from the environment. This has actually
  1812. # happened. Such a system could not be considered "sane".
  1813. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1814. alias in your environment" >&5
  1815. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1816. alias in your environment" >&2;}
  1817. { (exit 1); exit 1; }; }
  1818. fi
  1819. test "$2" = conftest.file
  1820. )
  1821. then
  1822. # Ok.
  1823. :
  1824. else
  1825. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1826. Check your system clock" >&5
  1827. echo "$as_me: error: newly created file is older than distributed files!
  1828. Check your system clock" >&2;}
  1829. { (exit 1); exit 1; }; }
  1830. fi
  1831. { echo "$as_me:$LINENO: result: yes" >&5
  1832. echo "${ECHO_T}yes" >&6; }
  1833. test "$program_prefix" != NONE &&
  1834. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1835. # Use a double $ so make ignores it.
  1836. test "$program_suffix" != NONE &&
  1837. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1838. # Double any \ or $. echo might interpret backslashes.
  1839. # By default was `s,x,x', remove it if useless.
  1840. cat <<\_ACEOF >conftest.sed
  1841. s/[\\$]/&&/g;s/;s,x,x,$//
  1842. _ACEOF
  1843. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1844. rm -f conftest.sed
  1845. # expand $ac_aux_dir to an absolute path
  1846. am_aux_dir=`cd $ac_aux_dir && pwd`
  1847. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1848. # Use eval to expand $SHELL
  1849. if eval "$MISSING --run true"; then
  1850. am_missing_run="$MISSING --run "
  1851. else
  1852. am_missing_run=
  1853. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1854. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1855. fi
  1856. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1857. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1858. if test -z "$MKDIR_P"; then
  1859. if test "${ac_cv_path_mkdir+set}" = set; then
  1860. echo $ECHO_N "(cached) $ECHO_C" >&6
  1861. else
  1862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1863. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1864. do
  1865. IFS=$as_save_IFS
  1866. test -z "$as_dir" && as_dir=.
  1867. for ac_prog in mkdir gmkdir; do
  1868. for ac_exec_ext in '' $ac_executable_extensions; do
  1869. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1870. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1871. 'mkdir (GNU coreutils) '* | \
  1872. 'mkdir (coreutils) '* | \
  1873. 'mkdir (fileutils) '4.1*)
  1874. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1875. break 3;;
  1876. esac
  1877. done
  1878. done
  1879. done
  1880. IFS=$as_save_IFS
  1881. fi
  1882. if test "${ac_cv_path_mkdir+set}" = set; then
  1883. MKDIR_P="$ac_cv_path_mkdir -p"
  1884. else
  1885. # As a last resort, use the slow shell script. Don't cache a
  1886. # value for MKDIR_P within a source directory, because that will
  1887. # break other packages using the cache if that directory is
  1888. # removed, or if the value is a relative name.
  1889. test -d ./--version && rmdir ./--version
  1890. MKDIR_P="$ac_install_sh -d"
  1891. fi
  1892. fi
  1893. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1894. echo "${ECHO_T}$MKDIR_P" >&6; }
  1895. mkdir_p="$MKDIR_P"
  1896. case $mkdir_p in
  1897. [\\/$]* | ?:[\\/]*) ;;
  1898. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1899. esac
  1900. for ac_prog in gawk mawk nawk awk
  1901. do
  1902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1903. set dummy $ac_prog; ac_word=$2
  1904. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1905. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1906. if test "${ac_cv_prog_AWK+set}" = set; then
  1907. echo $ECHO_N "(cached) $ECHO_C" >&6
  1908. else
  1909. if test -n "$AWK"; then
  1910. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1911. else
  1912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1913. for as_dir in $PATH
  1914. do
  1915. IFS=$as_save_IFS
  1916. test -z "$as_dir" && as_dir=.
  1917. for ac_exec_ext in '' $ac_executable_extensions; do
  1918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1919. ac_cv_prog_AWK="$ac_prog"
  1920. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1921. break 2
  1922. fi
  1923. done
  1924. done
  1925. IFS=$as_save_IFS
  1926. fi
  1927. fi
  1928. AWK=$ac_cv_prog_AWK
  1929. if test -n "$AWK"; then
  1930. { echo "$as_me:$LINENO: result: $AWK" >&5
  1931. echo "${ECHO_T}$AWK" >&6; }
  1932. else
  1933. { echo "$as_me:$LINENO: result: no" >&5
  1934. echo "${ECHO_T}no" >&6; }
  1935. fi
  1936. test -n "$AWK" && break
  1937. done
  1938. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1939. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1940. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1941. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1942. echo $ECHO_N "(cached) $ECHO_C" >&6
  1943. else
  1944. cat >conftest.make <<\_ACEOF
  1945. SHELL = /bin/sh
  1946. all:
  1947. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1948. _ACEOF
  1949. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1950. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1951. *@@@%%%=?*=@@@%%%*)
  1952. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1953. *)
  1954. eval ac_cv_prog_make_${ac_make}_set=no;;
  1955. esac
  1956. rm -f conftest.make
  1957. fi
  1958. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1959. { echo "$as_me:$LINENO: result: yes" >&5
  1960. echo "${ECHO_T}yes" >&6; }
  1961. SET_MAKE=
  1962. else
  1963. { echo "$as_me:$LINENO: result: no" >&5
  1964. echo "${ECHO_T}no" >&6; }
  1965. SET_MAKE="MAKE=${MAKE-make}"
  1966. fi
  1967. rm -rf .tst 2>/dev/null
  1968. mkdir .tst 2>/dev/null
  1969. if test -d .tst; then
  1970. am__leading_dot=.
  1971. else
  1972. am__leading_dot=_
  1973. fi
  1974. rmdir .tst 2>/dev/null
  1975. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1976. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1977. # is not polluted with repeated "-I."
  1978. am__isrc=' -I$(srcdir)'
  1979. # test to see if srcdir already configured
  1980. if test -f $srcdir/config.status; then
  1981. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1982. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1983. { (exit 1); exit 1; }; }
  1984. fi
  1985. fi
  1986. # test whether we have cygpath
  1987. if test -z "$CYGPATH_W"; then
  1988. if (cygpath --version) >/dev/null 2>/dev/null; then
  1989. CYGPATH_W='cygpath -w'
  1990. else
  1991. CYGPATH_W=echo
  1992. fi
  1993. fi
  1994. # Define the identity of the package.
  1995. PACKAGE='file'
  1996. VERSION='4.26'
  1997. cat >>confdefs.h <<_ACEOF
  1998. #define PACKAGE "$PACKAGE"
  1999. _ACEOF
  2000. cat >>confdefs.h <<_ACEOF
  2001. #define VERSION "$VERSION"
  2002. _ACEOF
  2003. # Some tools Automake needs.
  2004. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2005. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2006. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2007. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2008. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2009. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2010. # Installed binaries are usually stripped using `strip' when the user
  2011. # run `make install-strip'. However `strip' might not be the right
  2012. # tool to use in cross-compilation environments, therefore Automake
  2013. # will honor the `STRIP' environment variable to overrule this program.
  2014. if test "$cross_compiling" != no; then
  2015. if test -n "$ac_tool_prefix"; then
  2016. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2017. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2018. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2019. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2020. if test "${ac_cv_prog_STRIP+set}" = set; then
  2021. echo $ECHO_N "(cached) $ECHO_C" >&6
  2022. else
  2023. if test -n "$STRIP"; then
  2024. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2025. else
  2026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2027. for as_dir in $PATH
  2028. do
  2029. IFS=$as_save_IFS
  2030. test -z "$as_dir" && as_dir=.
  2031. for ac_exec_ext in '' $ac_executable_extensions; do
  2032. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2033. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2034. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2035. break 2
  2036. fi
  2037. done
  2038. done
  2039. IFS=$as_save_IFS
  2040. fi
  2041. fi
  2042. STRIP=$ac_cv_prog_STRIP
  2043. if test -n "$STRIP"; then
  2044. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2045. echo "${ECHO_T}$STRIP" >&6; }
  2046. else
  2047. { echo "$as_me:$LINENO: result: no" >&5
  2048. echo "${ECHO_T}no" >&6; }
  2049. fi
  2050. fi
  2051. if test -z "$ac_cv_prog_STRIP"; then
  2052. ac_ct_STRIP=$STRIP
  2053. # Extract the first word of "strip", so it can be a program name with args.
  2054. set dummy strip; ac_word=$2
  2055. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2056. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2057. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2058. echo $ECHO_N "(cached) $ECHO_C" >&6
  2059. else
  2060. if test -n "$ac_ct_STRIP"; then
  2061. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2062. else
  2063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2064. for as_dir in $PATH
  2065. do
  2066. IFS=$as_save_IFS
  2067. test -z "$as_dir" && as_dir=.
  2068. for ac_exec_ext in '' $ac_executable_extensions; do
  2069. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2070. ac_cv_prog_ac_ct_STRIP="strip"
  2071. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2072. break 2
  2073. fi
  2074. done
  2075. done
  2076. IFS=$as_save_IFS
  2077. fi
  2078. fi
  2079. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2080. if test -n "$ac_ct_STRIP"; then
  2081. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2082. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2083. else
  2084. { echo "$as_me:$LINENO: result: no" >&5
  2085. echo "${ECHO_T}no" >&6; }
  2086. fi
  2087. if test "x$ac_ct_STRIP" = x; then
  2088. STRIP=":"
  2089. else
  2090. case $cross_compiling:$ac_tool_warned in
  2091. yes:)
  2092. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2093. whose name does not start with the host triplet. If you think this
  2094. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2095. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2096. whose name does not start with the host triplet. If you think this
  2097. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2098. ac_tool_warned=yes ;;
  2099. esac
  2100. STRIP=$ac_ct_STRIP
  2101. fi
  2102. else
  2103. STRIP="$ac_cv_prog_STRIP"
  2104. fi
  2105. fi
  2106. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2107. # We need awk for the "check" target. The system "awk" is bad on
  2108. # some platforms.
  2109. # Always define AMTAR for backward compatibility.
  2110. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2111. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2112. ac_config_headers="$ac_config_headers config.h"
  2113. { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
  2114. echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
  2115. # Check whether --enable-elf was given.
  2116. if test "${enable_elf+set}" = set; then
  2117. enableval=$enable_elf; if test "${enableval}" = yes; then
  2118. { echo "$as_me:$LINENO: result: yes" >&5
  2119. echo "${ECHO_T}yes" >&6; }
  2120. cat >>confdefs.h <<\_ACEOF
  2121. #define BUILTIN_ELF 1
  2122. _ACEOF
  2123. else
  2124. { echo "$as_me:$LINENO: result: no" >&5
  2125. echo "${ECHO_T}no" >&6; }
  2126. fi
  2127. else
  2128. # enable by default
  2129. { echo "$as_me:$LINENO: result: yes" >&5
  2130. echo "${ECHO_T}yes" >&6; }
  2131. cat >>confdefs.h <<\_ACEOF
  2132. #define BUILTIN_ELF 1
  2133. _ACEOF
  2134. fi
  2135. { echo "$as_me:$LINENO: checking for ELF core file support" >&5
  2136. echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
  2137. # Check whether --enable-elf-core was given.
  2138. if test "${enable_elf_core+set}" = set; then
  2139. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2140. { echo "$as_me:$LINENO: result: yes" >&5
  2141. echo "${ECHO_T}yes" >&6; }
  2142. cat >>confdefs.h <<\_ACEOF
  2143. #define ELFCORE 1
  2144. _ACEOF
  2145. else
  2146. { echo "$as_me:$LINENO: result: no" >&5
  2147. echo "${ECHO_T}no" >&6; }
  2148. fi
  2149. else
  2150. # enable by default
  2151. { echo "$as_me:$LINENO: result: yes" >&5
  2152. echo "${ECHO_T}yes" >&6; }
  2153. cat >>confdefs.h <<\_ACEOF
  2154. #define ELFCORE 1
  2155. _ACEOF
  2156. fi
  2157. { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  2158. echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
  2159. # Check whether --enable-fsect-man5 was given.
  2160. if test "${enable_fsect_man5+set}" = set; then
  2161. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2162. { echo "$as_me:$LINENO: result: yes" >&5
  2163. echo "${ECHO_T}yes" >&6; }
  2164. fsect=5
  2165. else
  2166. { echo "$as_me:$LINENO: result: no" >&5
  2167. echo "${ECHO_T}no" >&6; }
  2168. fsect=4
  2169. fi
  2170. else
  2171. # disable by default
  2172. { echo "$as_me:$LINENO: result: no" >&5
  2173. echo "${ECHO_T}no" >&6; }
  2174. fsect=4
  2175. fi
  2176. if test x$fsect = x5; then
  2177. FSECT5_TRUE=
  2178. FSECT5_FALSE='#'
  2179. else
  2180. FSECT5_TRUE='#'
  2181. FSECT5_FALSE=
  2182. fi
  2183. cat >>confdefs.h <<\_ACEOF
  2184. #define _GNU_SOURCE 1
  2185. _ACEOF
  2186. ac_ext=c
  2187. ac_cpp='$CPP $CPPFLAGS'
  2188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2191. if test -n "$ac_tool_prefix"; then
  2192. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2193. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2194. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2195. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2196. if test "${ac_cv_prog_CC+set}" = set; then
  2197. echo $ECHO_N "(cached) $ECHO_C" >&6
  2198. else
  2199. if test -n "$CC"; then
  2200. ac_cv_prog_CC="$CC" # Let the user override the test.
  2201. else
  2202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2203. for as_dir in $PATH
  2204. do
  2205. IFS=$as_save_IFS
  2206. test -z "$as_dir" && as_dir=.
  2207. for ac_exec_ext in '' $ac_executable_extensions; do
  2208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2209. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2210. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2211. break 2
  2212. fi
  2213. done
  2214. done
  2215. IFS=$as_save_IFS
  2216. fi
  2217. fi
  2218. CC=$ac_cv_prog_CC
  2219. if test -n "$CC"; then
  2220. { echo "$as_me:$LINENO: result: $CC" >&5
  2221. echo "${ECHO_T}$CC" >&6; }
  2222. else
  2223. { echo "$as_me:$LINENO: result: no" >&5
  2224. echo "${ECHO_T}no" >&6; }
  2225. fi
  2226. fi
  2227. if test -z "$ac_cv_prog_CC"; then
  2228. ac_ct_CC=$CC
  2229. # Extract the first word of "gcc", so it can be a program name with args.
  2230. set dummy gcc; ac_word=$2
  2231. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2232. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2233. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2234. echo $ECHO_N "(cached) $ECHO_C" >&6
  2235. else
  2236. if test -n "$ac_ct_CC"; then
  2237. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2238. else
  2239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2240. for as_dir in $PATH
  2241. do
  2242. IFS=$as_save_IFS
  2243. test -z "$as_dir" && as_dir=.
  2244. for ac_exec_ext in '' $ac_executable_extensions; do
  2245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2246. ac_cv_prog_ac_ct_CC="gcc"
  2247. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2248. break 2
  2249. fi
  2250. done
  2251. done
  2252. IFS=$as_save_IFS
  2253. fi
  2254. fi
  2255. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2256. if test -n "$ac_ct_CC"; then
  2257. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2258. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2259. else
  2260. { echo "$as_me:$LINENO: result: no" >&5
  2261. echo "${ECHO_T}no" >&6; }
  2262. fi
  2263. if test "x$ac_ct_CC" = x; then
  2264. CC=""
  2265. else
  2266. case $cross_compiling:$ac_tool_warned in
  2267. yes:)
  2268. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2269. whose name does not start with the host triplet. If you think this
  2270. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2271. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2272. whose name does not start with the host triplet. If you think this
  2273. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2274. ac_tool_warned=yes ;;
  2275. esac
  2276. CC=$ac_ct_CC
  2277. fi
  2278. else
  2279. CC="$ac_cv_prog_CC"
  2280. fi
  2281. if test -z "$CC"; then
  2282. if test -n "$ac_tool_prefix"; then
  2283. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2284. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2285. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2286. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2287. if test "${ac_cv_prog_CC+set}" = set; then
  2288. echo $ECHO_N "(cached) $ECHO_C" >&6
  2289. else
  2290. if test -n "$CC"; then
  2291. ac_cv_prog_CC="$CC" # Let the user override the test.
  2292. else
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. for ac_exec_ext in '' $ac_executable_extensions; do
  2299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2300. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2301. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2302. break 2
  2303. fi
  2304. done
  2305. done
  2306. IFS=$as_save_IFS
  2307. fi
  2308. fi
  2309. CC=$ac_cv_prog_CC
  2310. if test -n "$CC"; then
  2311. { echo "$as_me:$LINENO: result: $CC" >&5
  2312. echo "${ECHO_T}$CC" >&6; }
  2313. else
  2314. { echo "$as_me:$LINENO: result: no" >&5
  2315. echo "${ECHO_T}no" >&6; }
  2316. fi
  2317. fi
  2318. fi
  2319. if test -z "$CC"; then
  2320. # Extract the first word of "cc", so it can be a program name with args.
  2321. set dummy cc; ac_word=$2
  2322. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2323. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2324. if test "${ac_cv_prog_CC+set}" = set; then
  2325. echo $ECHO_N "(cached) $ECHO_C" >&6
  2326. else
  2327. if test -n "$CC"; then
  2328. ac_cv_prog_CC="$CC" # Let the user override the test.
  2329. else
  2330. ac_prog_rejected=no
  2331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2332. for as_dir in $PATH
  2333. do
  2334. IFS=$as_save_IFS
  2335. test -z "$as_dir" && as_dir=.
  2336. for ac_exec_ext in '' $ac_executable_extensions; do
  2337. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2338. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2339. ac_prog_rejected=yes
  2340. continue
  2341. fi
  2342. ac_cv_prog_CC="cc"
  2343. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2344. break 2
  2345. fi
  2346. done
  2347. done
  2348. IFS=$as_save_IFS
  2349. if test $ac_prog_rejected = yes; then
  2350. # We found a bogon in the path, so make sure we never use it.
  2351. set dummy $ac_cv_prog_CC
  2352. shift
  2353. if test $# != 0; then
  2354. # We chose a different compiler from the bogus one.
  2355. # However, it has the same basename, so the bogon will be chosen
  2356. # first if we set CC to just the basename; use the full file name.
  2357. shift
  2358. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2359. fi
  2360. fi
  2361. fi
  2362. fi
  2363. CC=$ac_cv_prog_CC
  2364. if test -n "$CC"; then
  2365. { echo "$as_me:$LINENO: result: $CC" >&5
  2366. echo "${ECHO_T}$CC" >&6; }
  2367. else
  2368. { echo "$as_me:$LINENO: result: no" >&5
  2369. echo "${ECHO_T}no" >&6; }
  2370. fi
  2371. fi
  2372. if test -z "$CC"; then
  2373. if test -n "$ac_tool_prefix"; then
  2374. for ac_prog in cl.exe
  2375. do
  2376. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2377. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2378. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2379. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2380. if test "${ac_cv_prog_CC+set}" = set; then
  2381. echo $ECHO_N "(cached) $ECHO_C" >&6
  2382. else
  2383. if test -n "$CC"; then
  2384. ac_cv_prog_CC="$CC" # Let the user override the test.
  2385. else
  2386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2387. for as_dir in $PATH
  2388. do
  2389. IFS=$as_save_IFS
  2390. test -z "$as_dir" && as_dir=.
  2391. for ac_exec_ext in '' $ac_executable_extensions; do
  2392. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2393. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2394. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2395. break 2
  2396. fi
  2397. done
  2398. done
  2399. IFS=$as_save_IFS
  2400. fi
  2401. fi
  2402. CC=$ac_cv_prog_CC
  2403. if test -n "$CC"; then
  2404. { echo "$as_me:$LINENO: result: $CC" >&5
  2405. echo "${ECHO_T}$CC" >&6; }
  2406. else
  2407. { echo "$as_me:$LINENO: result: no" >&5
  2408. echo "${ECHO_T}no" >&6; }
  2409. fi
  2410. test -n "$CC" && break
  2411. done
  2412. fi
  2413. if test -z "$CC"; then
  2414. ac_ct_CC=$CC
  2415. for ac_prog in cl.exe
  2416. do
  2417. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2418. set dummy $ac_prog; ac_word=$2
  2419. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2420. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2421. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2422. echo $ECHO_N "(cached) $ECHO_C" >&6
  2423. else
  2424. if test -n "$ac_ct_CC"; then
  2425. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2426. else
  2427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2428. for as_dir in $PATH
  2429. do
  2430. IFS=$as_save_IFS
  2431. test -z "$as_dir" && as_dir=.
  2432. for ac_exec_ext in '' $ac_executable_extensions; do
  2433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2434. ac_cv_prog_ac_ct_CC="$ac_prog"
  2435. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2436. break 2
  2437. fi
  2438. done
  2439. done
  2440. IFS=$as_save_IFS
  2441. fi
  2442. fi
  2443. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2444. if test -n "$ac_ct_CC"; then
  2445. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2446. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2447. else
  2448. { echo "$as_me:$LINENO: result: no" >&5
  2449. echo "${ECHO_T}no" >&6; }
  2450. fi
  2451. test -n "$ac_ct_CC" && break
  2452. done
  2453. if test "x$ac_ct_CC" = x; then
  2454. CC=""
  2455. else
  2456. case $cross_compiling:$ac_tool_warned in
  2457. yes:)
  2458. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2459. whose name does not start with the host triplet. If you think this
  2460. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2461. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2462. whose name does not start with the host triplet. If you think this
  2463. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2464. ac_tool_warned=yes ;;
  2465. esac
  2466. CC=$ac_ct_CC
  2467. fi
  2468. fi
  2469. fi
  2470. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2471. See \`config.log' for more details." >&5
  2472. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2473. See \`config.log' for more details." >&2;}
  2474. { (exit 1); exit 1; }; }
  2475. # Provide some information about the compiler.
  2476. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2477. ac_compiler=`set X $ac_compile; echo $2`
  2478. { (ac_try="$ac_compiler --version >&5"
  2479. case "(($ac_try" in
  2480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2481. *) ac_try_echo=$ac_try;;
  2482. esac
  2483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2484. (eval "$ac_compiler --version >&5") 2>&5
  2485. ac_status=$?
  2486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2487. (exit $ac_status); }
  2488. { (ac_try="$ac_compiler -v >&5"
  2489. case "(($ac_try" in
  2490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2491. *) ac_try_echo=$ac_try;;
  2492. esac
  2493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2494. (eval "$ac_compiler -v >&5") 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); }
  2498. { (ac_try="$ac_compiler -V >&5"
  2499. case "(($ac_try" in
  2500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2501. *) ac_try_echo=$ac_try;;
  2502. esac
  2503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2504. (eval "$ac_compiler -V >&5") 2>&5
  2505. ac_status=$?
  2506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2507. (exit $ac_status); }
  2508. cat >conftest.$ac_ext <<_ACEOF
  2509. /* confdefs.h. */
  2510. _ACEOF
  2511. cat confdefs.h >>conftest.$ac_ext
  2512. cat >>conftest.$ac_ext <<_ACEOF
  2513. /* end confdefs.h. */
  2514. int
  2515. main ()
  2516. {
  2517. ;
  2518. return 0;
  2519. }
  2520. _ACEOF
  2521. ac_clean_files_save=$ac_clean_files
  2522. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2523. # Try to create an executable without -o first, disregard a.out.
  2524. # It will help us diagnose broken compilers, and finding out an intuition
  2525. # of exeext.
  2526. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2527. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2528. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2529. #
  2530. # List of possible output files, starting from the most likely.
  2531. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2532. # only as a last resort. b.out is created by i960 compilers.
  2533. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2534. #
  2535. # The IRIX 6 linker writes into existing files which may not be
  2536. # executable, retaining their permissions. Remove them first so a
  2537. # subsequent execution test works.
  2538. ac_rmfiles=
  2539. for ac_file in $ac_files
  2540. do
  2541. case $ac_file in
  2542. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2543. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2544. esac
  2545. done
  2546. rm -f $ac_rmfiles
  2547. if { (ac_try="$ac_link_default"
  2548. case "(($ac_try" in
  2549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2550. *) ac_try_echo=$ac_try;;
  2551. esac
  2552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2553. (eval "$ac_link_default") 2>&5
  2554. ac_status=$?
  2555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2556. (exit $ac_status); }; then
  2557. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2558. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2559. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2560. # so that the user can short-circuit this test for compilers unknown to
  2561. # Autoconf.
  2562. for ac_file in $ac_files ''
  2563. do
  2564. test -f "$ac_file" || continue
  2565. case $ac_file in
  2566. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2567. ;;
  2568. [ab].out )
  2569. # We found the default executable, but exeext='' is most
  2570. # certainly right.
  2571. break;;
  2572. *.* )
  2573. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2574. then :; else
  2575. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2576. fi
  2577. # We set ac_cv_exeext here because the later test for it is not
  2578. # safe: cross compilers may not add the suffix if given an `-o'
  2579. # argument, so we may need to know it at that point already.
  2580. # Even if this section looks crufty: it has the advantage of
  2581. # actually working.
  2582. break;;
  2583. * )
  2584. break;;
  2585. esac
  2586. done
  2587. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2588. else
  2589. ac_file=''
  2590. fi
  2591. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2592. echo "${ECHO_T}$ac_file" >&6; }
  2593. if test -z "$ac_file"; then
  2594. echo "$as_me: failed program was:" >&5
  2595. sed 's/^/| /' conftest.$ac_ext >&5
  2596. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2597. See \`config.log' for more details." >&5
  2598. echo "$as_me: error: C compiler cannot create executables
  2599. See \`config.log' for more details." >&2;}
  2600. { (exit 77); exit 77; }; }
  2601. fi
  2602. ac_exeext=$ac_cv_exeext
  2603. # Check that the compiler produces executables we can run. If not, either
  2604. # the compiler is broken, or we cross compile.
  2605. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2606. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2607. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2608. # If not cross compiling, check that we can run a simple program.
  2609. if test "$cross_compiling" != yes; then
  2610. if { ac_try='./$ac_file'
  2611. { (case "(($ac_try" in
  2612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2613. *) ac_try_echo=$ac_try;;
  2614. esac
  2615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2616. (eval "$ac_try") 2>&5
  2617. ac_status=$?
  2618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2619. (exit $ac_status); }; }; then
  2620. cross_compiling=no
  2621. else
  2622. if test "$cross_compiling" = maybe; then
  2623. cross_compiling=yes
  2624. else
  2625. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2626. If you meant to cross compile, use \`--host'.
  2627. See \`config.log' for more details." >&5
  2628. echo "$as_me: error: cannot run C compiled programs.
  2629. If you meant to cross compile, use \`--host'.
  2630. See \`config.log' for more details." >&2;}
  2631. { (exit 1); exit 1; }; }
  2632. fi
  2633. fi
  2634. fi
  2635. { echo "$as_me:$LINENO: result: yes" >&5
  2636. echo "${ECHO_T}yes" >&6; }
  2637. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2638. ac_clean_files=$ac_clean_files_save
  2639. # Check that the compiler produces executables we can run. If not, either
  2640. # the compiler is broken, or we cross compile.
  2641. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2642. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2643. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2644. echo "${ECHO_T}$cross_compiling" >&6; }
  2645. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2646. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2647. if { (ac_try="$ac_link"
  2648. case "(($ac_try" in
  2649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2650. *) ac_try_echo=$ac_try;;
  2651. esac
  2652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2653. (eval "$ac_link") 2>&5
  2654. ac_status=$?
  2655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2656. (exit $ac_status); }; then
  2657. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2658. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2659. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2660. # `rm'.
  2661. for ac_file in conftest.exe conftest conftest.*; do
  2662. test -f "$ac_file" || continue
  2663. case $ac_file in
  2664. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2665. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2666. break;;
  2667. * ) break;;
  2668. esac
  2669. done
  2670. else
  2671. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2672. See \`config.log' for more details." >&5
  2673. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2674. See \`config.log' for more details." >&2;}
  2675. { (exit 1); exit 1; }; }
  2676. fi
  2677. rm -f conftest$ac_cv_exeext
  2678. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2679. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2680. rm -f conftest.$ac_ext
  2681. EXEEXT=$ac_cv_exeext
  2682. ac_exeext=$EXEEXT
  2683. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2684. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2685. if test "${ac_cv_objext+set}" = set; then
  2686. echo $ECHO_N "(cached) $ECHO_C" >&6
  2687. else
  2688. cat >conftest.$ac_ext <<_ACEOF
  2689. /* confdefs.h. */
  2690. _ACEOF
  2691. cat confdefs.h >>conftest.$ac_ext
  2692. cat >>conftest.$ac_ext <<_ACEOF
  2693. /* end confdefs.h. */
  2694. int
  2695. main ()
  2696. {
  2697. ;
  2698. return 0;
  2699. }
  2700. _ACEOF
  2701. rm -f conftest.o conftest.obj
  2702. if { (ac_try="$ac_compile"
  2703. case "(($ac_try" in
  2704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2705. *) ac_try_echo=$ac_try;;
  2706. esac
  2707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2708. (eval "$ac_compile") 2>&5
  2709. ac_status=$?
  2710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2711. (exit $ac_status); }; then
  2712. for ac_file in conftest.o conftest.obj conftest.*; do
  2713. test -f "$ac_file" || continue;
  2714. case $ac_file in
  2715. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2716. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2717. break;;
  2718. esac
  2719. done
  2720. else
  2721. echo "$as_me: failed program was:" >&5
  2722. sed 's/^/| /' conftest.$ac_ext >&5
  2723. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2724. See \`config.log' for more details." >&5
  2725. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2726. See \`config.log' for more details." >&2;}
  2727. { (exit 1); exit 1; }; }
  2728. fi
  2729. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2730. fi
  2731. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2732. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2733. OBJEXT=$ac_cv_objext
  2734. ac_objext=$OBJEXT
  2735. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2736. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2737. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2738. echo $ECHO_N "(cached) $ECHO_C" >&6
  2739. else
  2740. cat >conftest.$ac_ext <<_ACEOF
  2741. /* confdefs.h. */
  2742. _ACEOF
  2743. cat confdefs.h >>conftest.$ac_ext
  2744. cat >>conftest.$ac_ext <<_ACEOF
  2745. /* end confdefs.h. */
  2746. int
  2747. main ()
  2748. {
  2749. #ifndef __GNUC__
  2750. choke me
  2751. #endif
  2752. ;
  2753. return 0;
  2754. }
  2755. _ACEOF
  2756. rm -f conftest.$ac_objext
  2757. if { (ac_try="$ac_compile"
  2758. case "(($ac_try" in
  2759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2760. *) ac_try_echo=$ac_try;;
  2761. esac
  2762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2763. (eval "$ac_compile") 2>conftest.er1
  2764. ac_status=$?
  2765. grep -v '^ *+' conftest.er1 >conftest.err
  2766. rm -f conftest.er1
  2767. cat conftest.err >&5
  2768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2769. (exit $ac_status); } && {
  2770. test -z "$ac_c_werror_flag" ||
  2771. test ! -s conftest.err
  2772. } && test -s conftest.$ac_objext; then
  2773. ac_compiler_gnu=yes
  2774. else
  2775. echo "$as_me: failed program was:" >&5
  2776. sed 's/^/| /' conftest.$ac_ext >&5
  2777. ac_compiler_gnu=no
  2778. fi
  2779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2780. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2781. fi
  2782. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2783. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2784. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2785. ac_test_CFLAGS=${CFLAGS+set}
  2786. ac_save_CFLAGS=$CFLAGS
  2787. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2788. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2789. if test "${ac_cv_prog_cc_g+set}" = set; then
  2790. echo $ECHO_N "(cached) $ECHO_C" >&6
  2791. else
  2792. ac_save_c_werror_flag=$ac_c_werror_flag
  2793. ac_c_werror_flag=yes
  2794. ac_cv_prog_cc_g=no
  2795. CFLAGS="-g"
  2796. cat >conftest.$ac_ext <<_ACEOF
  2797. /* confdefs.h. */
  2798. _ACEOF
  2799. cat confdefs.h >>conftest.$ac_ext
  2800. cat >>conftest.$ac_ext <<_ACEOF
  2801. /* end confdefs.h. */
  2802. int
  2803. main ()
  2804. {
  2805. ;
  2806. return 0;
  2807. }
  2808. _ACEOF
  2809. rm -f conftest.$ac_objext
  2810. if { (ac_try="$ac_compile"
  2811. case "(($ac_try" in
  2812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2813. *) ac_try_echo=$ac_try;;
  2814. esac
  2815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2816. (eval "$ac_compile") 2>conftest.er1
  2817. ac_status=$?
  2818. grep -v '^ *+' conftest.er1 >conftest.err
  2819. rm -f conftest.er1
  2820. cat conftest.err >&5
  2821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. (exit $ac_status); } && {
  2823. test -z "$ac_c_werror_flag" ||
  2824. test ! -s conftest.err
  2825. } && test -s conftest.$ac_objext; then
  2826. ac_cv_prog_cc_g=yes
  2827. else
  2828. echo "$as_me: failed program was:" >&5
  2829. sed 's/^/| /' conftest.$ac_ext >&5
  2830. CFLAGS=""
  2831. cat >conftest.$ac_ext <<_ACEOF
  2832. /* confdefs.h. */
  2833. _ACEOF
  2834. cat confdefs.h >>conftest.$ac_ext
  2835. cat >>conftest.$ac_ext <<_ACEOF
  2836. /* end confdefs.h. */
  2837. int
  2838. main ()
  2839. {
  2840. ;
  2841. return 0;
  2842. }
  2843. _ACEOF
  2844. rm -f conftest.$ac_objext
  2845. if { (ac_try="$ac_compile"
  2846. case "(($ac_try" in
  2847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2848. *) ac_try_echo=$ac_try;;
  2849. esac
  2850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2851. (eval "$ac_compile") 2>conftest.er1
  2852. ac_status=$?
  2853. grep -v '^ *+' conftest.er1 >conftest.err
  2854. rm -f conftest.er1
  2855. cat conftest.err >&5
  2856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857. (exit $ac_status); } && {
  2858. test -z "$ac_c_werror_flag" ||
  2859. test ! -s conftest.err
  2860. } && test -s conftest.$ac_objext; then
  2861. :
  2862. else
  2863. echo "$as_me: failed program was:" >&5
  2864. sed 's/^/| /' conftest.$ac_ext >&5
  2865. ac_c_werror_flag=$ac_save_c_werror_flag
  2866. CFLAGS="-g"
  2867. cat >conftest.$ac_ext <<_ACEOF
  2868. /* confdefs.h. */
  2869. _ACEOF
  2870. cat confdefs.h >>conftest.$ac_ext
  2871. cat >>conftest.$ac_ext <<_ACEOF
  2872. /* end confdefs.h. */
  2873. int
  2874. main ()
  2875. {
  2876. ;
  2877. return 0;
  2878. }
  2879. _ACEOF
  2880. rm -f conftest.$ac_objext
  2881. if { (ac_try="$ac_compile"
  2882. case "(($ac_try" in
  2883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2884. *) ac_try_echo=$ac_try;;
  2885. esac
  2886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2887. (eval "$ac_compile") 2>conftest.er1
  2888. ac_status=$?
  2889. grep -v '^ *+' conftest.er1 >conftest.err
  2890. rm -f conftest.er1
  2891. cat conftest.err >&5
  2892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893. (exit $ac_status); } && {
  2894. test -z "$ac_c_werror_flag" ||
  2895. test ! -s conftest.err
  2896. } && test -s conftest.$ac_objext; then
  2897. ac_cv_prog_cc_g=yes
  2898. else
  2899. echo "$as_me: failed program was:" >&5
  2900. sed 's/^/| /' conftest.$ac_ext >&5
  2901. fi
  2902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2903. fi
  2904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2905. fi
  2906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2907. ac_c_werror_flag=$ac_save_c_werror_flag
  2908. fi
  2909. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2910. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2911. if test "$ac_test_CFLAGS" = set; then
  2912. CFLAGS=$ac_save_CFLAGS
  2913. elif test $ac_cv_prog_cc_g = yes; then
  2914. if test "$GCC" = yes; then
  2915. CFLAGS="-g -O2"
  2916. else
  2917. CFLAGS="-g"
  2918. fi
  2919. else
  2920. if test "$GCC" = yes; then
  2921. CFLAGS="-O2"
  2922. else
  2923. CFLAGS=
  2924. fi
  2925. fi
  2926. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2927. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2928. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2929. echo $ECHO_N "(cached) $ECHO_C" >&6
  2930. else
  2931. ac_cv_prog_cc_c89=no
  2932. ac_save_CC=$CC
  2933. cat >conftest.$ac_ext <<_ACEOF
  2934. /* confdefs.h. */
  2935. _ACEOF
  2936. cat confdefs.h >>conftest.$ac_ext
  2937. cat >>conftest.$ac_ext <<_ACEOF
  2938. /* end confdefs.h. */
  2939. #include <stdarg.h>
  2940. #include <stdio.h>
  2941. #include <sys/types.h>
  2942. #include <sys/stat.h>
  2943. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2944. struct buf { int x; };
  2945. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2946. static char *e (p, i)
  2947. char **p;
  2948. int i;
  2949. {
  2950. return p[i];
  2951. }
  2952. static char *f (char * (*g) (char **, int), char **p, ...)
  2953. {
  2954. char *s;
  2955. va_list v;
  2956. va_start (v,p);
  2957. s = g (p, va_arg (v,int));
  2958. va_end (v);
  2959. return s;
  2960. }
  2961. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2962. function prototypes and stuff, but not '\xHH' hex character constants.
  2963. These don't provoke an error unfortunately, instead are silently treated
  2964. as 'x'. The following induces an error, until -std is added to get
  2965. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2966. array size at least. It's necessary to write '\x00'==0 to get something
  2967. that's true only with -std. */
  2968. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2969. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2970. inside strings and character constants. */
  2971. #define FOO(x) 'x'
  2972. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2973. int test (int i, double x);
  2974. struct s1 {int (*f) (int a);};
  2975. struct s2 {int (*f) (double a);};
  2976. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2977. int argc;
  2978. char **argv;
  2979. int
  2980. main ()
  2981. {
  2982. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2983. ;
  2984. return 0;
  2985. }
  2986. _ACEOF
  2987. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2988. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2989. do
  2990. CC="$ac_save_CC $ac_arg"
  2991. rm -f conftest.$ac_objext
  2992. if { (ac_try="$ac_compile"
  2993. case "(($ac_try" in
  2994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2995. *) ac_try_echo=$ac_try;;
  2996. esac
  2997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2998. (eval "$ac_compile") 2>conftest.er1
  2999. ac_status=$?
  3000. grep -v '^ *+' conftest.er1 >conftest.err
  3001. rm -f conftest.er1
  3002. cat conftest.err >&5
  3003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3004. (exit $ac_status); } && {
  3005. test -z "$ac_c_werror_flag" ||
  3006. test ! -s conftest.err
  3007. } && test -s conftest.$ac_objext; then
  3008. ac_cv_prog_cc_c89=$ac_arg
  3009. else
  3010. echo "$as_me: failed program was:" >&5
  3011. sed 's/^/| /' conftest.$ac_ext >&5
  3012. fi
  3013. rm -f core conftest.err conftest.$ac_objext
  3014. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3015. done
  3016. rm -f conftest.$ac_ext
  3017. CC=$ac_save_CC
  3018. fi
  3019. # AC_CACHE_VAL
  3020. case "x$ac_cv_prog_cc_c89" in
  3021. x)
  3022. { echo "$as_me:$LINENO: result: none needed" >&5
  3023. echo "${ECHO_T}none needed" >&6; } ;;
  3024. xno)
  3025. { echo "$as_me:$LINENO: result: unsupported" >&5
  3026. echo "${ECHO_T}unsupported" >&6; } ;;
  3027. *)
  3028. CC="$CC $ac_cv_prog_cc_c89"
  3029. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3030. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3031. esac
  3032. ac_ext=c
  3033. ac_cpp='$CPP $CPPFLAGS'
  3034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3037. DEPDIR="${am__leading_dot}deps"
  3038. ac_config_commands="$ac_config_commands depfiles"
  3039. am_make=${MAKE-make}
  3040. cat > confinc << 'END'
  3041. am__doit:
  3042. @echo done
  3043. .PHONY: am__doit
  3044. END
  3045. # If we don't find an include directive, just comment out the code.
  3046. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3047. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3048. am__include="#"
  3049. am__quote=
  3050. _am_result=none
  3051. # First try GNU make style include.
  3052. echo "include confinc" > confmf
  3053. # We grep out `Entering directory' and `Leaving directory'
  3054. # messages which can occur if `w' ends up in MAKEFLAGS.
  3055. # In particular we don't look at `^make:' because GNU make might
  3056. # be invoked under some other name (usually "gmake"), in which
  3057. # case it prints its new name instead of `make'.
  3058. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3059. am__include=include
  3060. am__quote=
  3061. _am_result=GNU
  3062. fi
  3063. # Now try BSD make style include.
  3064. if test "$am__include" = "#"; then
  3065. echo '.include "confinc"' > confmf
  3066. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3067. am__include=.include
  3068. am__quote="\""
  3069. _am_result=BSD
  3070. fi
  3071. fi
  3072. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3073. echo "${ECHO_T}$_am_result" >&6; }
  3074. rm -f confinc confmf
  3075. # Check whether --enable-dependency-tracking was given.
  3076. if test "${enable_dependency_tracking+set}" = set; then
  3077. enableval=$enable_dependency_tracking;
  3078. fi
  3079. if test "x$enable_dependency_tracking" != xno; then
  3080. am_depcomp="$ac_aux_dir/depcomp"
  3081. AMDEPBACKSLASH='\'
  3082. fi
  3083. if test "x$enable_dependency_tracking" != xno; then
  3084. AMDEP_TRUE=
  3085. AMDEP_FALSE='#'
  3086. else
  3087. AMDEP_TRUE='#'
  3088. AMDEP_FALSE=
  3089. fi
  3090. depcc="$CC" am_compiler_list=
  3091. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3092. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3093. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3094. echo $ECHO_N "(cached) $ECHO_C" >&6
  3095. else
  3096. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3097. # We make a subdir and do the tests there. Otherwise we can end up
  3098. # making bogus files that we don't know about and never remove. For
  3099. # instance it was reported that on HP-UX the gcc test will end up
  3100. # making a dummy file named `D' -- because `-MD' means `put the output
  3101. # in D'.
  3102. mkdir conftest.dir
  3103. # Copy depcomp to subdir because otherwise we won't find it if we're
  3104. # using a relative directory.
  3105. cp "$am_depcomp" conftest.dir
  3106. cd conftest.dir
  3107. # We will build objects and dependencies in a subdirectory because
  3108. # it helps to detect inapplicable dependency modes. For instance
  3109. # both Tru64's cc and ICC support -MD to output dependencies as a
  3110. # side effect of compilation, but ICC will put the dependencies in
  3111. # the current directory while Tru64 will put them in the object
  3112. # directory.
  3113. mkdir sub
  3114. am_cv_CC_dependencies_compiler_type=none
  3115. if test "$am_compiler_list" = ""; then
  3116. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3117. fi
  3118. for depmode in $am_compiler_list; do
  3119. # Setup a source with many dependencies, because some compilers
  3120. # like to wrap large dependency lists on column 80 (with \), and
  3121. # we should not choose a depcomp mode which is confused by this.
  3122. #
  3123. # We need to recreate these files for each test, as the compiler may
  3124. # overwrite some of them when testing with obscure command lines.
  3125. # This happens at least with the AIX C compiler.
  3126. : > sub/conftest.c
  3127. for i in 1 2 3 4 5 6; do
  3128. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3129. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3130. # Solaris 8's {/usr,}/bin/sh.
  3131. touch sub/conftst$i.h
  3132. done
  3133. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3134. case $depmode in
  3135. nosideeffect)
  3136. # after this tag, mechanisms are not by side-effect, so they'll
  3137. # only be used when explicitly requested
  3138. if test "x$enable_dependency_tracking" = xyes; then
  3139. continue
  3140. else
  3141. break
  3142. fi
  3143. ;;
  3144. none) break ;;
  3145. esac
  3146. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3147. # mode. It turns out that the SunPro C++ compiler does not properly
  3148. # handle `-M -o', and we need to detect this.
  3149. if depmode=$depmode \
  3150. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3151. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3152. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3153. >/dev/null 2>conftest.err &&
  3154. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3155. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3156. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3157. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3158. # icc doesn't choke on unknown options, it will just issue warnings
  3159. # or remarks (even with -Werror). So we grep stderr for any message
  3160. # that says an option was ignored or not supported.
  3161. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3162. # icc: Command line warning: ignoring option '-M'; no argument required
  3163. # The diagnosis changed in icc 8.0:
  3164. # icc: Command line remark: option '-MP' not supported
  3165. if (grep 'ignoring option' conftest.err ||
  3166. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3167. am_cv_CC_dependencies_compiler_type=$depmode
  3168. break
  3169. fi
  3170. fi
  3171. done
  3172. cd ..
  3173. rm -rf conftest.dir
  3174. else
  3175. am_cv_CC_dependencies_compiler_type=none
  3176. fi
  3177. fi
  3178. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3179. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3180. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3181. if
  3182. test "x$enable_dependency_tracking" != xno \
  3183. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3184. am__fastdepCC_TRUE=
  3185. am__fastdepCC_FALSE='#'
  3186. else
  3187. am__fastdepCC_TRUE='#'
  3188. am__fastdepCC_FALSE=
  3189. fi
  3190. if test "x$CC" != xcc; then
  3191. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3192. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3193. else
  3194. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3195. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3196. fi
  3197. set dummy $CC; ac_cc=`echo $2 |
  3198. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3199. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3200. echo $ECHO_N "(cached) $ECHO_C" >&6
  3201. else
  3202. cat >conftest.$ac_ext <<_ACEOF
  3203. /* confdefs.h. */
  3204. _ACEOF
  3205. cat confdefs.h >>conftest.$ac_ext
  3206. cat >>conftest.$ac_ext <<_ACEOF
  3207. /* end confdefs.h. */
  3208. int
  3209. main ()
  3210. {
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. # Make sure it works both with $CC and with simple cc.
  3216. # We do the test twice because some compilers refuse to overwrite an
  3217. # existing .o file with -o, though they will create one.
  3218. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3219. rm -f conftest2.*
  3220. if { (case "(($ac_try" in
  3221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3222. *) ac_try_echo=$ac_try;;
  3223. esac
  3224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3225. (eval "$ac_try") 2>&5
  3226. ac_status=$?
  3227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3228. (exit $ac_status); } &&
  3229. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3231. *) ac_try_echo=$ac_try;;
  3232. esac
  3233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3234. (eval "$ac_try") 2>&5
  3235. ac_status=$?
  3236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3237. (exit $ac_status); };
  3238. then
  3239. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3240. if test "x$CC" != xcc; then
  3241. # Test first that cc exists at all.
  3242. if { ac_try='cc -c conftest.$ac_ext >&5'
  3243. { (case "(($ac_try" in
  3244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3245. *) ac_try_echo=$ac_try;;
  3246. esac
  3247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3248. (eval "$ac_try") 2>&5
  3249. ac_status=$?
  3250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3251. (exit $ac_status); }; }; then
  3252. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3253. rm -f conftest2.*
  3254. if { (case "(($ac_try" in
  3255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3256. *) ac_try_echo=$ac_try;;
  3257. esac
  3258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3259. (eval "$ac_try") 2>&5
  3260. ac_status=$?
  3261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3262. (exit $ac_status); } &&
  3263. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3265. *) ac_try_echo=$ac_try;;
  3266. esac
  3267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3268. (eval "$ac_try") 2>&5
  3269. ac_status=$?
  3270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3271. (exit $ac_status); };
  3272. then
  3273. # cc works too.
  3274. :
  3275. else
  3276. # cc exists but doesn't like -o.
  3277. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3278. fi
  3279. fi
  3280. fi
  3281. else
  3282. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3283. fi
  3284. rm -f core conftest*
  3285. fi
  3286. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3287. { echo "$as_me:$LINENO: result: yes" >&5
  3288. echo "${ECHO_T}yes" >&6; }
  3289. else
  3290. { echo "$as_me:$LINENO: result: no" >&5
  3291. echo "${ECHO_T}no" >&6; }
  3292. cat >>confdefs.h <<\_ACEOF
  3293. #define NO_MINUS_C_MINUS_O 1
  3294. _ACEOF
  3295. fi
  3296. # FIXME: we rely on the cache variable name because
  3297. # there is no other way.
  3298. set dummy $CC
  3299. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3300. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3301. # Losing compiler, so override with the script.
  3302. # FIXME: It is wrong to rewrite CC.
  3303. # But if we don't then we get into trouble of one sort or another.
  3304. # A longer-term fix would be to have automake use am__CC in this case,
  3305. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3306. CC="$am_aux_dir/compile $CC"
  3307. fi
  3308. # Find a good install program. We prefer a C program (faster),
  3309. # so one script is as good as another. But avoid the broken or
  3310. # incompatible versions:
  3311. # SysV /etc/install, /usr/sbin/install
  3312. # SunOS /usr/etc/install
  3313. # IRIX /sbin/install
  3314. # AIX /bin/install
  3315. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3316. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3317. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3318. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3319. # OS/2's system install, which has a completely different semantic
  3320. # ./install, which can be erroneously created by make from ./install.sh.
  3321. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3322. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3323. if test -z "$INSTALL"; then
  3324. if test "${ac_cv_path_install+set}" = set; then
  3325. echo $ECHO_N "(cached) $ECHO_C" >&6
  3326. else
  3327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3328. for as_dir in $PATH
  3329. do
  3330. IFS=$as_save_IFS
  3331. test -z "$as_dir" && as_dir=.
  3332. # Account for people who put trailing slashes in PATH elements.
  3333. case $as_dir/ in
  3334. ./ | .// | /cC/* | \
  3335. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3336. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3337. /usr/ucb/* ) ;;
  3338. *)
  3339. # OSF1 and SCO ODT 3.0 have their own names for install.
  3340. # Don't use installbsd from OSF since it installs stuff as root
  3341. # by default.
  3342. for ac_prog in ginstall scoinst install; do
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3345. if test $ac_prog = install &&
  3346. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3347. # AIX install. It has an incompatible calling convention.
  3348. :
  3349. elif test $ac_prog = install &&
  3350. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3351. # program-specific install script used by HP pwplus--don't use.
  3352. :
  3353. else
  3354. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3355. break 3
  3356. fi
  3357. fi
  3358. done
  3359. done
  3360. ;;
  3361. esac
  3362. done
  3363. IFS=$as_save_IFS
  3364. fi
  3365. if test "${ac_cv_path_install+set}" = set; then
  3366. INSTALL=$ac_cv_path_install
  3367. else
  3368. # As a last resort, use the slow shell script. Don't cache a
  3369. # value for INSTALL within a source directory, because that will
  3370. # break other packages using the cache if that directory is
  3371. # removed, or if the value is a relative name.
  3372. INSTALL=$ac_install_sh
  3373. fi
  3374. fi
  3375. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3376. echo "${ECHO_T}$INSTALL" >&6; }
  3377. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3378. # It thinks the first close brace ends the variable substitution.
  3379. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3380. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3381. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3382. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3383. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3384. LN_S=$as_ln_s
  3385. if test "$LN_S" = "ln -s"; then
  3386. { echo "$as_me:$LINENO: result: yes" >&5
  3387. echo "${ECHO_T}yes" >&6; }
  3388. else
  3389. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3390. echo "${ECHO_T}no, using $LN_S" >&6; }
  3391. fi
  3392. # Check whether --enable-shared was given.
  3393. if test "${enable_shared+set}" = set; then
  3394. enableval=$enable_shared; p=${PACKAGE-default}
  3395. case $enableval in
  3396. yes) enable_shared=yes ;;
  3397. no) enable_shared=no ;;
  3398. *)
  3399. enable_shared=no
  3400. # Look at the argument we got. We use all the common list separators.
  3401. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3402. for pkg in $enableval; do
  3403. IFS="$lt_save_ifs"
  3404. if test "X$pkg" = "X$p"; then
  3405. enable_shared=yes
  3406. fi
  3407. done
  3408. IFS="$lt_save_ifs"
  3409. ;;
  3410. esac
  3411. else
  3412. enable_shared=yes
  3413. fi
  3414. # Check whether --enable-static was given.
  3415. if test "${enable_static+set}" = set; then
  3416. enableval=$enable_static; p=${PACKAGE-default}
  3417. case $enableval in
  3418. yes) enable_static=yes ;;
  3419. no) enable_static=no ;;
  3420. *)
  3421. enable_static=no
  3422. # Look at the argument we got. We use all the common list separators.
  3423. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3424. for pkg in $enableval; do
  3425. IFS="$lt_save_ifs"
  3426. if test "X$pkg" = "X$p"; then
  3427. enable_static=yes
  3428. fi
  3429. done
  3430. IFS="$lt_save_ifs"
  3431. ;;
  3432. esac
  3433. else
  3434. enable_static=yes
  3435. fi
  3436. # Check whether --enable-fast-install was given.
  3437. if test "${enable_fast_install+set}" = set; then
  3438. enableval=$enable_fast_install; p=${PACKAGE-default}
  3439. case $enableval in
  3440. yes) enable_fast_install=yes ;;
  3441. no) enable_fast_install=no ;;
  3442. *)
  3443. enable_fast_install=no
  3444. # Look at the argument we got. We use all the common list separators.
  3445. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3446. for pkg in $enableval; do
  3447. IFS="$lt_save_ifs"
  3448. if test "X$pkg" = "X$p"; then
  3449. enable_fast_install=yes
  3450. fi
  3451. done
  3452. IFS="$lt_save_ifs"
  3453. ;;
  3454. esac
  3455. else
  3456. enable_fast_install=yes
  3457. fi
  3458. # Make sure we can run config.sub.
  3459. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3460. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3461. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3462. { (exit 1); exit 1; }; }
  3463. { echo "$as_me:$LINENO: checking build system type" >&5
  3464. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3465. if test "${ac_cv_build+set}" = set; then
  3466. echo $ECHO_N "(cached) $ECHO_C" >&6
  3467. else
  3468. ac_build_alias=$build_alias
  3469. test "x$ac_build_alias" = x &&
  3470. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3471. test "x$ac_build_alias" = x &&
  3472. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3473. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3474. { (exit 1); exit 1; }; }
  3475. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3476. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3477. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3478. { (exit 1); exit 1; }; }
  3479. fi
  3480. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3481. echo "${ECHO_T}$ac_cv_build" >&6; }
  3482. case $ac_cv_build in
  3483. *-*-*) ;;
  3484. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3485. echo "$as_me: error: invalid value of canonical build" >&2;}
  3486. { (exit 1); exit 1; }; };;
  3487. esac
  3488. build=$ac_cv_build
  3489. ac_save_IFS=$IFS; IFS='-'
  3490. set x $ac_cv_build
  3491. shift
  3492. build_cpu=$1
  3493. build_vendor=$2
  3494. shift; shift
  3495. # Remember, the first character of IFS is used to create $*,
  3496. # except with old shells:
  3497. build_os=$*
  3498. IFS=$ac_save_IFS
  3499. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3500. { echo "$as_me:$LINENO: checking host system type" >&5
  3501. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3502. if test "${ac_cv_host+set}" = set; then
  3503. echo $ECHO_N "(cached) $ECHO_C" >&6
  3504. else
  3505. if test "x$host_alias" = x; then
  3506. ac_cv_host=$ac_cv_build
  3507. else
  3508. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3509. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3510. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3511. { (exit 1); exit 1; }; }
  3512. fi
  3513. fi
  3514. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3515. echo "${ECHO_T}$ac_cv_host" >&6; }
  3516. case $ac_cv_host in
  3517. *-*-*) ;;
  3518. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3519. echo "$as_me: error: invalid value of canonical host" >&2;}
  3520. { (exit 1); exit 1; }; };;
  3521. esac
  3522. host=$ac_cv_host
  3523. ac_save_IFS=$IFS; IFS='-'
  3524. set x $ac_cv_host
  3525. shift
  3526. host_cpu=$1
  3527. host_vendor=$2
  3528. shift; shift
  3529. # Remember, the first character of IFS is used to create $*,
  3530. # except with old shells:
  3531. host_os=$*
  3532. IFS=$ac_save_IFS
  3533. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3534. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3535. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3536. if test "${lt_cv_path_SED+set}" = set; then
  3537. echo $ECHO_N "(cached) $ECHO_C" >&6
  3538. else
  3539. # Loop through the user's path and test for sed and gsed.
  3540. # Then use that list of sed's as ones to test for truncation.
  3541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3542. for as_dir in $PATH
  3543. do
  3544. IFS=$as_save_IFS
  3545. test -z "$as_dir" && as_dir=.
  3546. for lt_ac_prog in sed gsed; do
  3547. for ac_exec_ext in '' $ac_executable_extensions; do
  3548. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3549. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3550. fi
  3551. done
  3552. done
  3553. done
  3554. lt_ac_max=0
  3555. lt_ac_count=0
  3556. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3557. # along with /bin/sed that truncates output.
  3558. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3559. test ! -f $lt_ac_sed && continue
  3560. cat /dev/null > conftest.in
  3561. lt_ac_count=0
  3562. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3563. # Check for GNU sed and select it if it is found.
  3564. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3565. lt_cv_path_SED=$lt_ac_sed
  3566. break
  3567. fi
  3568. while true; do
  3569. cat conftest.in conftest.in >conftest.tmp
  3570. mv conftest.tmp conftest.in
  3571. cp conftest.in conftest.nl
  3572. echo >>conftest.nl
  3573. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3574. cmp -s conftest.out conftest.nl || break
  3575. # 10000 chars as input seems more than enough
  3576. test $lt_ac_count -gt 10 && break
  3577. lt_ac_count=`expr $lt_ac_count + 1`
  3578. if test $lt_ac_count -gt $lt_ac_max; then
  3579. lt_ac_max=$lt_ac_count
  3580. lt_cv_path_SED=$lt_ac_sed
  3581. fi
  3582. done
  3583. done
  3584. fi
  3585. SED=$lt_cv_path_SED
  3586. { echo "$as_me:$LINENO: result: $SED" >&5
  3587. echo "${ECHO_T}$SED" >&6; }
  3588. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3589. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3590. if test "${ac_cv_path_GREP+set}" = set; then
  3591. echo $ECHO_N "(cached) $ECHO_C" >&6
  3592. else
  3593. # Extract the first word of "grep ggrep" to use in msg output
  3594. if test -z "$GREP"; then
  3595. set dummy grep ggrep; ac_prog_name=$2
  3596. if test "${ac_cv_path_GREP+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. ac_path_GREP_found=false
  3600. # Loop through the user's path and test for each of PROGNAME-LIST
  3601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3602. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3603. do
  3604. IFS=$as_save_IFS
  3605. test -z "$as_dir" && as_dir=.
  3606. for ac_prog in grep ggrep; do
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3609. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3610. # Check for GNU ac_path_GREP and select it if it is found.
  3611. # Check for GNU $ac_path_GREP
  3612. case `"$ac_path_GREP" --version 2>&1` in
  3613. *GNU*)
  3614. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3615. *)
  3616. ac_count=0
  3617. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3618. while :
  3619. do
  3620. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3621. mv "conftest.tmp" "conftest.in"
  3622. cp "conftest.in" "conftest.nl"
  3623. echo 'GREP' >> "conftest.nl"
  3624. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3625. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3626. ac_count=`expr $ac_count + 1`
  3627. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3628. # Best one so far, save it but keep looking for a better one
  3629. ac_cv_path_GREP="$ac_path_GREP"
  3630. ac_path_GREP_max=$ac_count
  3631. fi
  3632. # 10*(2^10) chars as input seems more than enough
  3633. test $ac_count -gt 10 && break
  3634. done
  3635. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3636. esac
  3637. $ac_path_GREP_found && break 3
  3638. done
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. fi
  3643. GREP="$ac_cv_path_GREP"
  3644. if test -z "$GREP"; then
  3645. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3646. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3647. { (exit 1); exit 1; }; }
  3648. fi
  3649. else
  3650. ac_cv_path_GREP=$GREP
  3651. fi
  3652. fi
  3653. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3654. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3655. GREP="$ac_cv_path_GREP"
  3656. { echo "$as_me:$LINENO: checking for egrep" >&5
  3657. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3658. if test "${ac_cv_path_EGREP+set}" = set; then
  3659. echo $ECHO_N "(cached) $ECHO_C" >&6
  3660. else
  3661. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3662. then ac_cv_path_EGREP="$GREP -E"
  3663. else
  3664. # Extract the first word of "egrep" to use in msg output
  3665. if test -z "$EGREP"; then
  3666. set dummy egrep; ac_prog_name=$2
  3667. if test "${ac_cv_path_EGREP+set}" = set; then
  3668. echo $ECHO_N "(cached) $ECHO_C" >&6
  3669. else
  3670. ac_path_EGREP_found=false
  3671. # Loop through the user's path and test for each of PROGNAME-LIST
  3672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3673. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3674. do
  3675. IFS=$as_save_IFS
  3676. test -z "$as_dir" && as_dir=.
  3677. for ac_prog in egrep; do
  3678. for ac_exec_ext in '' $ac_executable_extensions; do
  3679. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3680. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3681. # Check for GNU ac_path_EGREP and select it if it is found.
  3682. # Check for GNU $ac_path_EGREP
  3683. case `"$ac_path_EGREP" --version 2>&1` in
  3684. *GNU*)
  3685. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3686. *)
  3687. ac_count=0
  3688. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3689. while :
  3690. do
  3691. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3692. mv "conftest.tmp" "conftest.in"
  3693. cp "conftest.in" "conftest.nl"
  3694. echo 'EGREP' >> "conftest.nl"
  3695. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3696. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3697. ac_count=`expr $ac_count + 1`
  3698. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3699. # Best one so far, save it but keep looking for a better one
  3700. ac_cv_path_EGREP="$ac_path_EGREP"
  3701. ac_path_EGREP_max=$ac_count
  3702. fi
  3703. # 10*(2^10) chars as input seems more than enough
  3704. test $ac_count -gt 10 && break
  3705. done
  3706. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3707. esac
  3708. $ac_path_EGREP_found && break 3
  3709. done
  3710. done
  3711. done
  3712. IFS=$as_save_IFS
  3713. fi
  3714. EGREP="$ac_cv_path_EGREP"
  3715. if test -z "$EGREP"; then
  3716. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3717. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3718. { (exit 1); exit 1; }; }
  3719. fi
  3720. else
  3721. ac_cv_path_EGREP=$EGREP
  3722. fi
  3723. fi
  3724. fi
  3725. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3726. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3727. EGREP="$ac_cv_path_EGREP"
  3728. # Check whether --with-gnu-ld was given.
  3729. if test "${with_gnu_ld+set}" = set; then
  3730. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3731. else
  3732. with_gnu_ld=no
  3733. fi
  3734. ac_prog=ld
  3735. if test "$GCC" = yes; then
  3736. # Check if gcc -print-prog-name=ld gives a path.
  3737. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3738. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3739. case $host in
  3740. *-*-mingw*)
  3741. # gcc leaves a trailing carriage return which upsets mingw
  3742. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3743. *)
  3744. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3745. esac
  3746. case $ac_prog in
  3747. # Accept absolute paths.
  3748. [\\/]* | ?:[\\/]*)
  3749. re_direlt='/[^/][^/]*/\.\./'
  3750. # Canonicalize the pathname of ld
  3751. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3752. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3753. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3754. done
  3755. test -z "$LD" && LD="$ac_prog"
  3756. ;;
  3757. "")
  3758. # If it fails, then pretend we aren't using GCC.
  3759. ac_prog=ld
  3760. ;;
  3761. *)
  3762. # If it is relative, then search for the first ld in PATH.
  3763. with_gnu_ld=unknown
  3764. ;;
  3765. esac
  3766. elif test "$with_gnu_ld" = yes; then
  3767. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3768. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3769. else
  3770. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3771. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3772. fi
  3773. if test "${lt_cv_path_LD+set}" = set; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. else
  3776. if test -z "$LD"; then
  3777. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3778. for ac_dir in $PATH; do
  3779. IFS="$lt_save_ifs"
  3780. test -z "$ac_dir" && ac_dir=.
  3781. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3782. lt_cv_path_LD="$ac_dir/$ac_prog"
  3783. # Check to see if the program is GNU ld. I'd rather use --version,
  3784. # but apparently some GNU ld's only accept -v.
  3785. # Break only if it was the GNU/non-GNU ld that we prefer.
  3786. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3787. *GNU* | *'with BFD'*)
  3788. test "$with_gnu_ld" != no && break
  3789. ;;
  3790. *)
  3791. test "$with_gnu_ld" != yes && break
  3792. ;;
  3793. esac
  3794. fi
  3795. done
  3796. IFS="$lt_save_ifs"
  3797. else
  3798. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3799. fi
  3800. fi
  3801. LD="$lt_cv_path_LD"
  3802. if test -n "$LD"; then
  3803. { echo "$as_me:$LINENO: result: $LD" >&5
  3804. echo "${ECHO_T}$LD" >&6; }
  3805. else
  3806. { echo "$as_me:$LINENO: result: no" >&5
  3807. echo "${ECHO_T}no" >&6; }
  3808. fi
  3809. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3810. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3811. { (exit 1); exit 1; }; }
  3812. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3813. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3814. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3815. echo $ECHO_N "(cached) $ECHO_C" >&6
  3816. else
  3817. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3818. case `$LD -v 2>&1 </dev/null` in
  3819. *GNU* | *'with BFD'*)
  3820. lt_cv_prog_gnu_ld=yes
  3821. ;;
  3822. *)
  3823. lt_cv_prog_gnu_ld=no
  3824. ;;
  3825. esac
  3826. fi
  3827. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3828. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3829. with_gnu_ld=$lt_cv_prog_gnu_ld
  3830. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3831. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3832. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3833. echo $ECHO_N "(cached) $ECHO_C" >&6
  3834. else
  3835. lt_cv_ld_reload_flag='-r'
  3836. fi
  3837. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3838. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3839. reload_flag=$lt_cv_ld_reload_flag
  3840. case $reload_flag in
  3841. "" | " "*) ;;
  3842. *) reload_flag=" $reload_flag" ;;
  3843. esac
  3844. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3845. case $host_os in
  3846. darwin*)
  3847. if test "$GCC" = yes; then
  3848. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  3849. else
  3850. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3851. fi
  3852. ;;
  3853. esac
  3854. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3855. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3856. if test "${lt_cv_path_NM+set}" = set; then
  3857. echo $ECHO_N "(cached) $ECHO_C" >&6
  3858. else
  3859. if test -n "$NM"; then
  3860. # Let the user override the test.
  3861. lt_cv_path_NM="$NM"
  3862. else
  3863. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3864. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3865. IFS="$lt_save_ifs"
  3866. test -z "$ac_dir" && ac_dir=.
  3867. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3868. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3869. # Check to see if the nm accepts a BSD-compat flag.
  3870. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3871. # nm: unknown option "B" ignored
  3872. # Tru64's nm complains that /dev/null is an invalid object file
  3873. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3874. */dev/null* | *'Invalid file or object type'*)
  3875. lt_cv_path_NM="$tmp_nm -B"
  3876. break
  3877. ;;
  3878. *)
  3879. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3880. */dev/null*)
  3881. lt_cv_path_NM="$tmp_nm -p"
  3882. break
  3883. ;;
  3884. *)
  3885. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3886. continue # so that we can try to find one that supports BSD flags
  3887. ;;
  3888. esac
  3889. esac
  3890. fi
  3891. done
  3892. IFS="$lt_save_ifs"
  3893. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3894. fi
  3895. fi
  3896. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3897. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3898. NM="$lt_cv_path_NM"
  3899. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3900. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3901. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3902. echo $ECHO_N "(cached) $ECHO_C" >&6
  3903. else
  3904. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3905. lt_cv_file_magic_test_file=
  3906. lt_cv_deplibs_check_method='unknown'
  3907. # Need to set the preceding variable on all platforms that support
  3908. # interlibrary dependencies.
  3909. # 'none' -- dependencies not supported.
  3910. # `unknown' -- same as none, but documents that we really don't know.
  3911. # 'pass_all' -- all dependencies passed with no checks.
  3912. # 'test_compile' -- check by making test program.
  3913. # 'file_magic [[regex]]' -- check by looking for files in library path
  3914. # which responds to the $file_magic_cmd with a given extended regex.
  3915. # If you have `file' or equivalent on your system and you're not sure
  3916. # whether `pass_all' will *always* work, you probably want this one.
  3917. case $host_os in
  3918. aix4* | aix5*)
  3919. lt_cv_deplibs_check_method=pass_all
  3920. ;;
  3921. beos*)
  3922. lt_cv_deplibs_check_method=pass_all
  3923. ;;
  3924. bsdi[45]*)
  3925. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3926. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3927. lt_cv_file_magic_test_file=/shlib/libc.so
  3928. ;;
  3929. cygwin*)
  3930. # func_win32_libid is a shell function defined in ltmain.sh
  3931. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3932. lt_cv_file_magic_cmd='func_win32_libid'
  3933. ;;
  3934. mingw* | pw32*)
  3935. # Base MSYS/MinGW do not provide the 'file' command needed by
  3936. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3937. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3938. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3939. ;;
  3940. darwin* | rhapsody*)
  3941. lt_cv_deplibs_check_method=pass_all
  3942. ;;
  3943. freebsd* | kfreebsd*-gnu | dragonfly*)
  3944. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3945. case $host_cpu in
  3946. i*86 )
  3947. # Not sure whether the presence of OpenBSD here was a mistake.
  3948. # Let's accept both of them until this is cleared up.
  3949. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3950. lt_cv_file_magic_cmd=/usr/bin/file
  3951. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3952. ;;
  3953. esac
  3954. else
  3955. lt_cv_deplibs_check_method=pass_all
  3956. fi
  3957. ;;
  3958. gnu*)
  3959. lt_cv_deplibs_check_method=pass_all
  3960. ;;
  3961. hpux10.20* | hpux11*)
  3962. lt_cv_file_magic_cmd=/usr/bin/file
  3963. case "$host_cpu" in
  3964. ia64*)
  3965. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3966. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3967. ;;
  3968. hppa*64*)
  3969. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  3970. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3971. ;;
  3972. *)
  3973. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3974. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3975. ;;
  3976. esac
  3977. ;;
  3978. irix5* | irix6* | nonstopux*)
  3979. case $LD in
  3980. *-32|*"-32 ") libmagic=32-bit;;
  3981. *-n32|*"-n32 ") libmagic=N32;;
  3982. *-64|*"-64 ") libmagic=64-bit;;
  3983. *) libmagic=never-match;;
  3984. esac
  3985. lt_cv_deplibs_check_method=pass_all
  3986. ;;
  3987. # This must be Linux ELF.
  3988. linux*)
  3989. lt_cv_deplibs_check_method=pass_all
  3990. ;;
  3991. netbsd*)
  3992. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3993. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3994. else
  3995. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3996. fi
  3997. ;;
  3998. newos6*)
  3999. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4000. lt_cv_file_magic_cmd=/usr/bin/file
  4001. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4002. ;;
  4003. nto-qnx*)
  4004. lt_cv_deplibs_check_method=unknown
  4005. ;;
  4006. openbsd*)
  4007. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4008. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4009. else
  4010. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4011. fi
  4012. ;;
  4013. osf3* | osf4* | osf5*)
  4014. lt_cv_deplibs_check_method=pass_all
  4015. ;;
  4016. sco3.2v5*)
  4017. lt_cv_deplibs_check_method=pass_all
  4018. ;;
  4019. solaris*)
  4020. lt_cv_deplibs_check_method=pass_all
  4021. ;;
  4022. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4023. case $host_vendor in
  4024. motorola)
  4025. 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]'
  4026. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4027. ;;
  4028. ncr)
  4029. lt_cv_deplibs_check_method=pass_all
  4030. ;;
  4031. sequent)
  4032. lt_cv_file_magic_cmd='/bin/file'
  4033. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4034. ;;
  4035. sni)
  4036. lt_cv_file_magic_cmd='/bin/file'
  4037. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4038. lt_cv_file_magic_test_file=/lib/libc.so
  4039. ;;
  4040. siemens)
  4041. lt_cv_deplibs_check_method=pass_all
  4042. ;;
  4043. esac
  4044. ;;
  4045. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4046. lt_cv_deplibs_check_method=pass_all
  4047. ;;
  4048. esac
  4049. fi
  4050. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4051. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4052. file_magic_cmd=$lt_cv_file_magic_cmd
  4053. deplibs_check_method=$lt_cv_deplibs_check_method
  4054. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4055. # If no C compiler was specified, use CC.
  4056. LTCC=${LTCC-"$CC"}
  4057. # Allow CC to be a program name with arguments.
  4058. compiler=$CC
  4059. # Check whether --enable-libtool-lock was given.
  4060. if test "${enable_libtool_lock+set}" = set; then
  4061. enableval=$enable_libtool_lock;
  4062. fi
  4063. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4064. # Some flags need to be propagated to the compiler or linker for good
  4065. # libtool support.
  4066. case $host in
  4067. ia64-*-hpux*)
  4068. # Find out which ABI we are using.
  4069. echo 'int i;' > conftest.$ac_ext
  4070. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4071. (eval $ac_compile) 2>&5
  4072. ac_status=$?
  4073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4074. (exit $ac_status); }; then
  4075. case `/usr/bin/file conftest.$ac_objext` in
  4076. *ELF-32*)
  4077. HPUX_IA64_MODE="32"
  4078. ;;
  4079. *ELF-64*)
  4080. HPUX_IA64_MODE="64"
  4081. ;;
  4082. esac
  4083. fi
  4084. rm -rf conftest*
  4085. ;;
  4086. *-*-irix6*)
  4087. # Find out which ABI we are using.
  4088. echo '#line 4606 "configure"' > conftest.$ac_ext
  4089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4090. (eval $ac_compile) 2>&5
  4091. ac_status=$?
  4092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4093. (exit $ac_status); }; then
  4094. if test "$lt_cv_prog_gnu_ld" = yes; then
  4095. case `/usr/bin/file conftest.$ac_objext` in
  4096. *32-bit*)
  4097. LD="${LD-ld} -melf32bsmip"
  4098. ;;
  4099. *N32*)
  4100. LD="${LD-ld} -melf32bmipn32"
  4101. ;;
  4102. *64-bit*)
  4103. LD="${LD-ld} -melf64bmip"
  4104. ;;
  4105. esac
  4106. else
  4107. case `/usr/bin/file conftest.$ac_objext` in
  4108. *32-bit*)
  4109. LD="${LD-ld} -32"
  4110. ;;
  4111. *N32*)
  4112. LD="${LD-ld} -n32"
  4113. ;;
  4114. *64-bit*)
  4115. LD="${LD-ld} -64"
  4116. ;;
  4117. esac
  4118. fi
  4119. fi
  4120. rm -rf conftest*
  4121. ;;
  4122. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4123. # Find out which ABI we are using.
  4124. echo 'int i;' > conftest.$ac_ext
  4125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4126. (eval $ac_compile) 2>&5
  4127. ac_status=$?
  4128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4129. (exit $ac_status); }; then
  4130. case "`/usr/bin/file conftest.o`" in
  4131. *32-bit*)
  4132. case $host in
  4133. x86_64-*linux*)
  4134. LD="${LD-ld} -m elf_i386"
  4135. ;;
  4136. ppc64-*linux*|powerpc64-*linux*)
  4137. LD="${LD-ld} -m elf32ppclinux"
  4138. ;;
  4139. s390x-*linux*)
  4140. LD="${LD-ld} -m elf_s390"
  4141. ;;
  4142. sparc64-*linux*)
  4143. LD="${LD-ld} -m elf32_sparc"
  4144. ;;
  4145. esac
  4146. ;;
  4147. *64-bit*)
  4148. case $host in
  4149. x86_64-*linux*)
  4150. LD="${LD-ld} -m elf_x86_64"
  4151. ;;
  4152. ppc*-*linux*|powerpc*-*linux*)
  4153. LD="${LD-ld} -m elf64ppc"
  4154. ;;
  4155. s390*-*linux*)
  4156. LD="${LD-ld} -m elf64_s390"
  4157. ;;
  4158. sparc*-*linux*)
  4159. LD="${LD-ld} -m elf64_sparc"
  4160. ;;
  4161. esac
  4162. ;;
  4163. esac
  4164. fi
  4165. rm -rf conftest*
  4166. ;;
  4167. *-*-sco3.2v5*)
  4168. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4169. SAVE_CFLAGS="$CFLAGS"
  4170. CFLAGS="$CFLAGS -belf"
  4171. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4172. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4173. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4174. echo $ECHO_N "(cached) $ECHO_C" >&6
  4175. else
  4176. ac_ext=c
  4177. ac_cpp='$CPP $CPPFLAGS'
  4178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4181. cat >conftest.$ac_ext <<_ACEOF
  4182. /* confdefs.h. */
  4183. _ACEOF
  4184. cat confdefs.h >>conftest.$ac_ext
  4185. cat >>conftest.$ac_ext <<_ACEOF
  4186. /* end confdefs.h. */
  4187. int
  4188. main ()
  4189. {
  4190. ;
  4191. return 0;
  4192. }
  4193. _ACEOF
  4194. rm -f conftest.$ac_objext conftest$ac_exeext
  4195. if { (ac_try="$ac_link"
  4196. case "(($ac_try" in
  4197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4198. *) ac_try_echo=$ac_try;;
  4199. esac
  4200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4201. (eval "$ac_link") 2>conftest.er1
  4202. ac_status=$?
  4203. grep -v '^ *+' conftest.er1 >conftest.err
  4204. rm -f conftest.er1
  4205. cat conftest.err >&5
  4206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4207. (exit $ac_status); } && {
  4208. test -z "$ac_c_werror_flag" ||
  4209. test ! -s conftest.err
  4210. } && test -s conftest$ac_exeext &&
  4211. $as_test_x conftest$ac_exeext; then
  4212. lt_cv_cc_needs_belf=yes
  4213. else
  4214. echo "$as_me: failed program was:" >&5
  4215. sed 's/^/| /' conftest.$ac_ext >&5
  4216. lt_cv_cc_needs_belf=no
  4217. fi
  4218. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4219. conftest$ac_exeext conftest.$ac_ext
  4220. ac_ext=c
  4221. ac_cpp='$CPP $CPPFLAGS'
  4222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4225. fi
  4226. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4227. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4228. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4229. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4230. CFLAGS="$SAVE_CFLAGS"
  4231. fi
  4232. ;;
  4233. esac
  4234. need_locks="$enable_libtool_lock"
  4235. ac_ext=c
  4236. ac_cpp='$CPP $CPPFLAGS'
  4237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4240. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4241. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4242. # On Suns, sometimes $CPP names a directory.
  4243. if test -n "$CPP" && test -d "$CPP"; then
  4244. CPP=
  4245. fi
  4246. if test -z "$CPP"; then
  4247. if test "${ac_cv_prog_CPP+set}" = set; then
  4248. echo $ECHO_N "(cached) $ECHO_C" >&6
  4249. else
  4250. # Double quotes because CPP needs to be expanded
  4251. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4252. do
  4253. ac_preproc_ok=false
  4254. for ac_c_preproc_warn_flag in '' yes
  4255. do
  4256. # Use a header file that comes with gcc, so configuring glibc
  4257. # with a fresh cross-compiler works.
  4258. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4259. # <limits.h> exists even on freestanding compilers.
  4260. # On the NeXT, cc -E runs the code through the compiler's parser,
  4261. # not just through cpp. "Syntax error" is here to catch this case.
  4262. cat >conftest.$ac_ext <<_ACEOF
  4263. /* confdefs.h. */
  4264. _ACEOF
  4265. cat confdefs.h >>conftest.$ac_ext
  4266. cat >>conftest.$ac_ext <<_ACEOF
  4267. /* end confdefs.h. */
  4268. #ifdef __STDC__
  4269. # include <limits.h>
  4270. #else
  4271. # include <assert.h>
  4272. #endif
  4273. Syntax error
  4274. _ACEOF
  4275. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4276. case "(($ac_try" in
  4277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4278. *) ac_try_echo=$ac_try;;
  4279. esac
  4280. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4281. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4282. ac_status=$?
  4283. grep -v '^ *+' conftest.er1 >conftest.err
  4284. rm -f conftest.er1
  4285. cat conftest.err >&5
  4286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4287. (exit $ac_status); } >/dev/null && {
  4288. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4289. test ! -s conftest.err
  4290. }; then
  4291. :
  4292. else
  4293. echo "$as_me: failed program was:" >&5
  4294. sed 's/^/| /' conftest.$ac_ext >&5
  4295. # Broken: fails on valid input.
  4296. continue
  4297. fi
  4298. rm -f conftest.err conftest.$ac_ext
  4299. # OK, works on sane cases. Now check whether nonexistent headers
  4300. # can be detected and how.
  4301. cat >conftest.$ac_ext <<_ACEOF
  4302. /* confdefs.h. */
  4303. _ACEOF
  4304. cat confdefs.h >>conftest.$ac_ext
  4305. cat >>conftest.$ac_ext <<_ACEOF
  4306. /* end confdefs.h. */
  4307. #include <ac_nonexistent.h>
  4308. _ACEOF
  4309. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4310. case "(($ac_try" in
  4311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4312. *) ac_try_echo=$ac_try;;
  4313. esac
  4314. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4315. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4316. ac_status=$?
  4317. grep -v '^ *+' conftest.er1 >conftest.err
  4318. rm -f conftest.er1
  4319. cat conftest.err >&5
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); } >/dev/null && {
  4322. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4323. test ! -s conftest.err
  4324. }; then
  4325. # Broken: success on invalid input.
  4326. continue
  4327. else
  4328. echo "$as_me: failed program was:" >&5
  4329. sed 's/^/| /' conftest.$ac_ext >&5
  4330. # Passes both tests.
  4331. ac_preproc_ok=:
  4332. break
  4333. fi
  4334. rm -f conftest.err conftest.$ac_ext
  4335. done
  4336. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4337. rm -f conftest.err conftest.$ac_ext
  4338. if $ac_preproc_ok; then
  4339. break
  4340. fi
  4341. done
  4342. ac_cv_prog_CPP=$CPP
  4343. fi
  4344. CPP=$ac_cv_prog_CPP
  4345. else
  4346. ac_cv_prog_CPP=$CPP
  4347. fi
  4348. { echo "$as_me:$LINENO: result: $CPP" >&5
  4349. echo "${ECHO_T}$CPP" >&6; }
  4350. ac_preproc_ok=false
  4351. for ac_c_preproc_warn_flag in '' yes
  4352. do
  4353. # Use a header file that comes with gcc, so configuring glibc
  4354. # with a fresh cross-compiler works.
  4355. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4356. # <limits.h> exists even on freestanding compilers.
  4357. # On the NeXT, cc -E runs the code through the compiler's parser,
  4358. # not just through cpp. "Syntax error" is here to catch this case.
  4359. cat >conftest.$ac_ext <<_ACEOF
  4360. /* confdefs.h. */
  4361. _ACEOF
  4362. cat confdefs.h >>conftest.$ac_ext
  4363. cat >>conftest.$ac_ext <<_ACEOF
  4364. /* end confdefs.h. */
  4365. #ifdef __STDC__
  4366. # include <limits.h>
  4367. #else
  4368. # include <assert.h>
  4369. #endif
  4370. Syntax error
  4371. _ACEOF
  4372. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4373. case "(($ac_try" in
  4374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4375. *) ac_try_echo=$ac_try;;
  4376. esac
  4377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4378. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4379. ac_status=$?
  4380. grep -v '^ *+' conftest.er1 >conftest.err
  4381. rm -f conftest.er1
  4382. cat conftest.err >&5
  4383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4384. (exit $ac_status); } >/dev/null && {
  4385. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4386. test ! -s conftest.err
  4387. }; then
  4388. :
  4389. else
  4390. echo "$as_me: failed program was:" >&5
  4391. sed 's/^/| /' conftest.$ac_ext >&5
  4392. # Broken: fails on valid input.
  4393. continue
  4394. fi
  4395. rm -f conftest.err conftest.$ac_ext
  4396. # OK, works on sane cases. Now check whether nonexistent headers
  4397. # can be detected and how.
  4398. cat >conftest.$ac_ext <<_ACEOF
  4399. /* confdefs.h. */
  4400. _ACEOF
  4401. cat confdefs.h >>conftest.$ac_ext
  4402. cat >>conftest.$ac_ext <<_ACEOF
  4403. /* end confdefs.h. */
  4404. #include <ac_nonexistent.h>
  4405. _ACEOF
  4406. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4407. case "(($ac_try" in
  4408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4409. *) ac_try_echo=$ac_try;;
  4410. esac
  4411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4412. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4413. ac_status=$?
  4414. grep -v '^ *+' conftest.er1 >conftest.err
  4415. rm -f conftest.er1
  4416. cat conftest.err >&5
  4417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4418. (exit $ac_status); } >/dev/null && {
  4419. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4420. test ! -s conftest.err
  4421. }; then
  4422. # Broken: success on invalid input.
  4423. continue
  4424. else
  4425. echo "$as_me: failed program was:" >&5
  4426. sed 's/^/| /' conftest.$ac_ext >&5
  4427. # Passes both tests.
  4428. ac_preproc_ok=:
  4429. break
  4430. fi
  4431. rm -f conftest.err conftest.$ac_ext
  4432. done
  4433. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4434. rm -f conftest.err conftest.$ac_ext
  4435. if $ac_preproc_ok; then
  4436. :
  4437. else
  4438. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4439. See \`config.log' for more details." >&5
  4440. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4441. See \`config.log' for more details." >&2;}
  4442. { (exit 1); exit 1; }; }
  4443. fi
  4444. ac_ext=c
  4445. ac_cpp='$CPP $CPPFLAGS'
  4446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4449. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4450. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4451. if test "${ac_cv_header_stdc+set}" = set; then
  4452. echo $ECHO_N "(cached) $ECHO_C" >&6
  4453. else
  4454. cat >conftest.$ac_ext <<_ACEOF
  4455. /* confdefs.h. */
  4456. _ACEOF
  4457. cat confdefs.h >>conftest.$ac_ext
  4458. cat >>conftest.$ac_ext <<_ACEOF
  4459. /* end confdefs.h. */
  4460. #include <stdlib.h>
  4461. #include <stdarg.h>
  4462. #include <string.h>
  4463. #include <float.h>
  4464. int
  4465. main ()
  4466. {
  4467. ;
  4468. return 0;
  4469. }
  4470. _ACEOF
  4471. rm -f conftest.$ac_objext
  4472. if { (ac_try="$ac_compile"
  4473. case "(($ac_try" in
  4474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4475. *) ac_try_echo=$ac_try;;
  4476. esac
  4477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4478. (eval "$ac_compile") 2>conftest.er1
  4479. ac_status=$?
  4480. grep -v '^ *+' conftest.er1 >conftest.err
  4481. rm -f conftest.er1
  4482. cat conftest.err >&5
  4483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); } && {
  4485. test -z "$ac_c_werror_flag" ||
  4486. test ! -s conftest.err
  4487. } && test -s conftest.$ac_objext; then
  4488. ac_cv_header_stdc=yes
  4489. else
  4490. echo "$as_me: failed program was:" >&5
  4491. sed 's/^/| /' conftest.$ac_ext >&5
  4492. ac_cv_header_stdc=no
  4493. fi
  4494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4495. if test $ac_cv_header_stdc = yes; then
  4496. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4497. cat >conftest.$ac_ext <<_ACEOF
  4498. /* confdefs.h. */
  4499. _ACEOF
  4500. cat confdefs.h >>conftest.$ac_ext
  4501. cat >>conftest.$ac_ext <<_ACEOF
  4502. /* end confdefs.h. */
  4503. #include <string.h>
  4504. _ACEOF
  4505. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4506. $EGREP "memchr" >/dev/null 2>&1; then
  4507. :
  4508. else
  4509. ac_cv_header_stdc=no
  4510. fi
  4511. rm -f conftest*
  4512. fi
  4513. if test $ac_cv_header_stdc = yes; then
  4514. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4515. cat >conftest.$ac_ext <<_ACEOF
  4516. /* confdefs.h. */
  4517. _ACEOF
  4518. cat confdefs.h >>conftest.$ac_ext
  4519. cat >>conftest.$ac_ext <<_ACEOF
  4520. /* end confdefs.h. */
  4521. #include <stdlib.h>
  4522. _ACEOF
  4523. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4524. $EGREP "free" >/dev/null 2>&1; then
  4525. :
  4526. else
  4527. ac_cv_header_stdc=no
  4528. fi
  4529. rm -f conftest*
  4530. fi
  4531. if test $ac_cv_header_stdc = yes; then
  4532. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4533. if test "$cross_compiling" = yes; then
  4534. :
  4535. else
  4536. cat >conftest.$ac_ext <<_ACEOF
  4537. /* confdefs.h. */
  4538. _ACEOF
  4539. cat confdefs.h >>conftest.$ac_ext
  4540. cat >>conftest.$ac_ext <<_ACEOF
  4541. /* end confdefs.h. */
  4542. #include <ctype.h>
  4543. #include <stdlib.h>
  4544. #if ((' ' & 0x0FF) == 0x020)
  4545. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4546. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4547. #else
  4548. # define ISLOWER(c) \
  4549. (('a' <= (c) && (c) <= 'i') \
  4550. || ('j' <= (c) && (c) <= 'r') \
  4551. || ('s' <= (c) && (c) <= 'z'))
  4552. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4553. #endif
  4554. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4555. int
  4556. main ()
  4557. {
  4558. int i;
  4559. for (i = 0; i < 256; i++)
  4560. if (XOR (islower (i), ISLOWER (i))
  4561. || toupper (i) != TOUPPER (i))
  4562. return 2;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. rm -f conftest$ac_exeext
  4567. if { (ac_try="$ac_link"
  4568. case "(($ac_try" in
  4569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4570. *) ac_try_echo=$ac_try;;
  4571. esac
  4572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4573. (eval "$ac_link") 2>&5
  4574. ac_status=$?
  4575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4577. { (case "(($ac_try" in
  4578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4579. *) ac_try_echo=$ac_try;;
  4580. esac
  4581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4582. (eval "$ac_try") 2>&5
  4583. ac_status=$?
  4584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4585. (exit $ac_status); }; }; then
  4586. :
  4587. else
  4588. echo "$as_me: program exited with status $ac_status" >&5
  4589. echo "$as_me: failed program was:" >&5
  4590. sed 's/^/| /' conftest.$ac_ext >&5
  4591. ( exit $ac_status )
  4592. ac_cv_header_stdc=no
  4593. fi
  4594. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4595. fi
  4596. fi
  4597. fi
  4598. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4599. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4600. if test $ac_cv_header_stdc = yes; then
  4601. cat >>confdefs.h <<\_ACEOF
  4602. #define STDC_HEADERS 1
  4603. _ACEOF
  4604. fi
  4605. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4606. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4607. inttypes.h stdint.h unistd.h
  4608. do
  4609. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4610. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4611. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4612. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4613. echo $ECHO_N "(cached) $ECHO_C" >&6
  4614. else
  4615. cat >conftest.$ac_ext <<_ACEOF
  4616. /* confdefs.h. */
  4617. _ACEOF
  4618. cat confdefs.h >>conftest.$ac_ext
  4619. cat >>conftest.$ac_ext <<_ACEOF
  4620. /* end confdefs.h. */
  4621. $ac_includes_default
  4622. #include <$ac_header>
  4623. _ACEOF
  4624. rm -f conftest.$ac_objext
  4625. if { (ac_try="$ac_compile"
  4626. case "(($ac_try" in
  4627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4628. *) ac_try_echo=$ac_try;;
  4629. esac
  4630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4631. (eval "$ac_compile") 2>conftest.er1
  4632. ac_status=$?
  4633. grep -v '^ *+' conftest.er1 >conftest.err
  4634. rm -f conftest.er1
  4635. cat conftest.err >&5
  4636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); } && {
  4638. test -z "$ac_c_werror_flag" ||
  4639. test ! -s conftest.err
  4640. } && test -s conftest.$ac_objext; then
  4641. eval "$as_ac_Header=yes"
  4642. else
  4643. echo "$as_me: failed program was:" >&5
  4644. sed 's/^/| /' conftest.$ac_ext >&5
  4645. eval "$as_ac_Header=no"
  4646. fi
  4647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4648. fi
  4649. ac_res=`eval echo '${'$as_ac_Header'}'`
  4650. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4651. echo "${ECHO_T}$ac_res" >&6; }
  4652. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4653. cat >>confdefs.h <<_ACEOF
  4654. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4655. _ACEOF
  4656. fi
  4657. done
  4658. for ac_header in dlfcn.h
  4659. do
  4660. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4661. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4662. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4663. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4665. echo $ECHO_N "(cached) $ECHO_C" >&6
  4666. fi
  4667. ac_res=`eval echo '${'$as_ac_Header'}'`
  4668. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4669. echo "${ECHO_T}$ac_res" >&6; }
  4670. else
  4671. # Is the header compilable?
  4672. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4673. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4674. cat >conftest.$ac_ext <<_ACEOF
  4675. /* confdefs.h. */
  4676. _ACEOF
  4677. cat confdefs.h >>conftest.$ac_ext
  4678. cat >>conftest.$ac_ext <<_ACEOF
  4679. /* end confdefs.h. */
  4680. $ac_includes_default
  4681. #include <$ac_header>
  4682. _ACEOF
  4683. rm -f conftest.$ac_objext
  4684. if { (ac_try="$ac_compile"
  4685. case "(($ac_try" in
  4686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4687. *) ac_try_echo=$ac_try;;
  4688. esac
  4689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4690. (eval "$ac_compile") 2>conftest.er1
  4691. ac_status=$?
  4692. grep -v '^ *+' conftest.er1 >conftest.err
  4693. rm -f conftest.er1
  4694. cat conftest.err >&5
  4695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4696. (exit $ac_status); } && {
  4697. test -z "$ac_c_werror_flag" ||
  4698. test ! -s conftest.err
  4699. } && test -s conftest.$ac_objext; then
  4700. ac_header_compiler=yes
  4701. else
  4702. echo "$as_me: failed program was:" >&5
  4703. sed 's/^/| /' conftest.$ac_ext >&5
  4704. ac_header_compiler=no
  4705. fi
  4706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4707. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4708. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4709. # Is the header present?
  4710. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4711. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4712. cat >conftest.$ac_ext <<_ACEOF
  4713. /* confdefs.h. */
  4714. _ACEOF
  4715. cat confdefs.h >>conftest.$ac_ext
  4716. cat >>conftest.$ac_ext <<_ACEOF
  4717. /* end confdefs.h. */
  4718. #include <$ac_header>
  4719. _ACEOF
  4720. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4721. case "(($ac_try" in
  4722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4723. *) ac_try_echo=$ac_try;;
  4724. esac
  4725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4726. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4727. ac_status=$?
  4728. grep -v '^ *+' conftest.er1 >conftest.err
  4729. rm -f conftest.er1
  4730. cat conftest.err >&5
  4731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732. (exit $ac_status); } >/dev/null && {
  4733. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4734. test ! -s conftest.err
  4735. }; then
  4736. ac_header_preproc=yes
  4737. else
  4738. echo "$as_me: failed program was:" >&5
  4739. sed 's/^/| /' conftest.$ac_ext >&5
  4740. ac_header_preproc=no
  4741. fi
  4742. rm -f conftest.err conftest.$ac_ext
  4743. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4744. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4745. # So? What about this header?
  4746. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4747. yes:no: )
  4748. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4749. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4750. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4751. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4752. ac_header_preproc=yes
  4753. ;;
  4754. no:yes:* )
  4755. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4756. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4757. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4758. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4759. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4760. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4761. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4762. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4763. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4764. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4765. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4766. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4767. ( cat <<\_ASBOX
  4768. ## ---------------------------------- ##
  4769. ## Report this to christos@astron.com ##
  4770. ## ---------------------------------- ##
  4771. _ASBOX
  4772. ) | sed "s/^/$as_me: WARNING: /" >&2
  4773. ;;
  4774. esac
  4775. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4776. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4777. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4778. echo $ECHO_N "(cached) $ECHO_C" >&6
  4779. else
  4780. eval "$as_ac_Header=\$ac_header_preproc"
  4781. fi
  4782. ac_res=`eval echo '${'$as_ac_Header'}'`
  4783. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4784. echo "${ECHO_T}$ac_res" >&6; }
  4785. fi
  4786. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4787. cat >>confdefs.h <<_ACEOF
  4788. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4789. _ACEOF
  4790. fi
  4791. done
  4792. ac_ext=cpp
  4793. ac_cpp='$CXXCPP $CPPFLAGS'
  4794. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4795. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4796. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4797. if test -z "$CXX"; then
  4798. if test -n "$CCC"; then
  4799. CXX=$CCC
  4800. else
  4801. if test -n "$ac_tool_prefix"; then
  4802. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4803. do
  4804. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4805. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4806. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4807. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4808. if test "${ac_cv_prog_CXX+set}" = set; then
  4809. echo $ECHO_N "(cached) $ECHO_C" >&6
  4810. else
  4811. if test -n "$CXX"; then
  4812. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4813. else
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_exec_ext in '' $ac_executable_extensions; do
  4820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4821. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4822. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4823. break 2
  4824. fi
  4825. done
  4826. done
  4827. IFS=$as_save_IFS
  4828. fi
  4829. fi
  4830. CXX=$ac_cv_prog_CXX
  4831. if test -n "$CXX"; then
  4832. { echo "$as_me:$LINENO: result: $CXX" >&5
  4833. echo "${ECHO_T}$CXX" >&6; }
  4834. else
  4835. { echo "$as_me:$LINENO: result: no" >&5
  4836. echo "${ECHO_T}no" >&6; }
  4837. fi
  4838. test -n "$CXX" && break
  4839. done
  4840. fi
  4841. if test -z "$CXX"; then
  4842. ac_ct_CXX=$CXX
  4843. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4844. do
  4845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4846. set dummy $ac_prog; ac_word=$2
  4847. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4848. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4849. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4850. echo $ECHO_N "(cached) $ECHO_C" >&6
  4851. else
  4852. if test -n "$ac_ct_CXX"; then
  4853. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4862. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4863. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4872. if test -n "$ac_ct_CXX"; then
  4873. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4874. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4875. else
  4876. { echo "$as_me:$LINENO: result: no" >&5
  4877. echo "${ECHO_T}no" >&6; }
  4878. fi
  4879. test -n "$ac_ct_CXX" && break
  4880. done
  4881. if test "x$ac_ct_CXX" = x; then
  4882. CXX="g++"
  4883. else
  4884. case $cross_compiling:$ac_tool_warned in
  4885. yes:)
  4886. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4887. whose name does not start with the host triplet. If you think this
  4888. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4889. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4890. whose name does not start with the host triplet. If you think this
  4891. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4892. ac_tool_warned=yes ;;
  4893. esac
  4894. CXX=$ac_ct_CXX
  4895. fi
  4896. fi
  4897. fi
  4898. fi
  4899. # Provide some information about the compiler.
  4900. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4901. ac_compiler=`set X $ac_compile; echo $2`
  4902. { (ac_try="$ac_compiler --version >&5"
  4903. case "(($ac_try" in
  4904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4905. *) ac_try_echo=$ac_try;;
  4906. esac
  4907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4908. (eval "$ac_compiler --version >&5") 2>&5
  4909. ac_status=$?
  4910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4911. (exit $ac_status); }
  4912. { (ac_try="$ac_compiler -v >&5"
  4913. case "(($ac_try" in
  4914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4915. *) ac_try_echo=$ac_try;;
  4916. esac
  4917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4918. (eval "$ac_compiler -v >&5") 2>&5
  4919. ac_status=$?
  4920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4921. (exit $ac_status); }
  4922. { (ac_try="$ac_compiler -V >&5"
  4923. case "(($ac_try" in
  4924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4925. *) ac_try_echo=$ac_try;;
  4926. esac
  4927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4928. (eval "$ac_compiler -V >&5") 2>&5
  4929. ac_status=$?
  4930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4931. (exit $ac_status); }
  4932. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4933. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4934. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4935. echo $ECHO_N "(cached) $ECHO_C" >&6
  4936. else
  4937. cat >conftest.$ac_ext <<_ACEOF
  4938. /* confdefs.h. */
  4939. _ACEOF
  4940. cat confdefs.h >>conftest.$ac_ext
  4941. cat >>conftest.$ac_ext <<_ACEOF
  4942. /* end confdefs.h. */
  4943. int
  4944. main ()
  4945. {
  4946. #ifndef __GNUC__
  4947. choke me
  4948. #endif
  4949. ;
  4950. return 0;
  4951. }
  4952. _ACEOF
  4953. rm -f conftest.$ac_objext
  4954. if { (ac_try="$ac_compile"
  4955. case "(($ac_try" in
  4956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4957. *) ac_try_echo=$ac_try;;
  4958. esac
  4959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4960. (eval "$ac_compile") 2>conftest.er1
  4961. ac_status=$?
  4962. grep -v '^ *+' conftest.er1 >conftest.err
  4963. rm -f conftest.er1
  4964. cat conftest.err >&5
  4965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4966. (exit $ac_status); } && {
  4967. test -z "$ac_cxx_werror_flag" ||
  4968. test ! -s conftest.err
  4969. } && test -s conftest.$ac_objext; then
  4970. ac_compiler_gnu=yes
  4971. else
  4972. echo "$as_me: failed program was:" >&5
  4973. sed 's/^/| /' conftest.$ac_ext >&5
  4974. ac_compiler_gnu=no
  4975. fi
  4976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4977. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4978. fi
  4979. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4980. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4981. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4982. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4983. ac_save_CXXFLAGS=$CXXFLAGS
  4984. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4985. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4986. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4987. echo $ECHO_N "(cached) $ECHO_C" >&6
  4988. else
  4989. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4990. ac_cxx_werror_flag=yes
  4991. ac_cv_prog_cxx_g=no
  4992. CXXFLAGS="-g"
  4993. cat >conftest.$ac_ext <<_ACEOF
  4994. /* confdefs.h. */
  4995. _ACEOF
  4996. cat confdefs.h >>conftest.$ac_ext
  4997. cat >>conftest.$ac_ext <<_ACEOF
  4998. /* end confdefs.h. */
  4999. int
  5000. main ()
  5001. {
  5002. ;
  5003. return 0;
  5004. }
  5005. _ACEOF
  5006. rm -f conftest.$ac_objext
  5007. if { (ac_try="$ac_compile"
  5008. case "(($ac_try" in
  5009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5010. *) ac_try_echo=$ac_try;;
  5011. esac
  5012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5013. (eval "$ac_compile") 2>conftest.er1
  5014. ac_status=$?
  5015. grep -v '^ *+' conftest.er1 >conftest.err
  5016. rm -f conftest.er1
  5017. cat conftest.err >&5
  5018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); } && {
  5020. test -z "$ac_cxx_werror_flag" ||
  5021. test ! -s conftest.err
  5022. } && test -s conftest.$ac_objext; then
  5023. ac_cv_prog_cxx_g=yes
  5024. else
  5025. echo "$as_me: failed program was:" >&5
  5026. sed 's/^/| /' conftest.$ac_ext >&5
  5027. CXXFLAGS=""
  5028. cat >conftest.$ac_ext <<_ACEOF
  5029. /* confdefs.h. */
  5030. _ACEOF
  5031. cat confdefs.h >>conftest.$ac_ext
  5032. cat >>conftest.$ac_ext <<_ACEOF
  5033. /* end confdefs.h. */
  5034. int
  5035. main ()
  5036. {
  5037. ;
  5038. return 0;
  5039. }
  5040. _ACEOF
  5041. rm -f conftest.$ac_objext
  5042. if { (ac_try="$ac_compile"
  5043. case "(($ac_try" in
  5044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5045. *) ac_try_echo=$ac_try;;
  5046. esac
  5047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5048. (eval "$ac_compile") 2>conftest.er1
  5049. ac_status=$?
  5050. grep -v '^ *+' conftest.er1 >conftest.err
  5051. rm -f conftest.er1
  5052. cat conftest.err >&5
  5053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5054. (exit $ac_status); } && {
  5055. test -z "$ac_cxx_werror_flag" ||
  5056. test ! -s conftest.err
  5057. } && test -s conftest.$ac_objext; then
  5058. :
  5059. else
  5060. echo "$as_me: failed program was:" >&5
  5061. sed 's/^/| /' conftest.$ac_ext >&5
  5062. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5063. CXXFLAGS="-g"
  5064. cat >conftest.$ac_ext <<_ACEOF
  5065. /* confdefs.h. */
  5066. _ACEOF
  5067. cat confdefs.h >>conftest.$ac_ext
  5068. cat >>conftest.$ac_ext <<_ACEOF
  5069. /* end confdefs.h. */
  5070. int
  5071. main ()
  5072. {
  5073. ;
  5074. return 0;
  5075. }
  5076. _ACEOF
  5077. rm -f conftest.$ac_objext
  5078. if { (ac_try="$ac_compile"
  5079. case "(($ac_try" in
  5080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5081. *) ac_try_echo=$ac_try;;
  5082. esac
  5083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5084. (eval "$ac_compile") 2>conftest.er1
  5085. ac_status=$?
  5086. grep -v '^ *+' conftest.er1 >conftest.err
  5087. rm -f conftest.er1
  5088. cat conftest.err >&5
  5089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5090. (exit $ac_status); } && {
  5091. test -z "$ac_cxx_werror_flag" ||
  5092. test ! -s conftest.err
  5093. } && test -s conftest.$ac_objext; then
  5094. ac_cv_prog_cxx_g=yes
  5095. else
  5096. echo "$as_me: failed program was:" >&5
  5097. sed 's/^/| /' conftest.$ac_ext >&5
  5098. fi
  5099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5100. fi
  5101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5102. fi
  5103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5104. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5105. fi
  5106. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5107. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5108. if test "$ac_test_CXXFLAGS" = set; then
  5109. CXXFLAGS=$ac_save_CXXFLAGS
  5110. elif test $ac_cv_prog_cxx_g = yes; then
  5111. if test "$GXX" = yes; then
  5112. CXXFLAGS="-g -O2"
  5113. else
  5114. CXXFLAGS="-g"
  5115. fi
  5116. else
  5117. if test "$GXX" = yes; then
  5118. CXXFLAGS="-O2"
  5119. else
  5120. CXXFLAGS=
  5121. fi
  5122. fi
  5123. ac_ext=cpp
  5124. ac_cpp='$CXXCPP $CPPFLAGS'
  5125. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5126. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5127. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5128. depcc="$CXX" am_compiler_list=
  5129. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5130. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5131. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5132. echo $ECHO_N "(cached) $ECHO_C" >&6
  5133. else
  5134. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5135. # We make a subdir and do the tests there. Otherwise we can end up
  5136. # making bogus files that we don't know about and never remove. For
  5137. # instance it was reported that on HP-UX the gcc test will end up
  5138. # making a dummy file named `D' -- because `-MD' means `put the output
  5139. # in D'.
  5140. mkdir conftest.dir
  5141. # Copy depcomp to subdir because otherwise we won't find it if we're
  5142. # using a relative directory.
  5143. cp "$am_depcomp" conftest.dir
  5144. cd conftest.dir
  5145. # We will build objects and dependencies in a subdirectory because
  5146. # it helps to detect inapplicable dependency modes. For instance
  5147. # both Tru64's cc and ICC support -MD to output dependencies as a
  5148. # side effect of compilation, but ICC will put the dependencies in
  5149. # the current directory while Tru64 will put them in the object
  5150. # directory.
  5151. mkdir sub
  5152. am_cv_CXX_dependencies_compiler_type=none
  5153. if test "$am_compiler_list" = ""; then
  5154. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5155. fi
  5156. for depmode in $am_compiler_list; do
  5157. # Setup a source with many dependencies, because some compilers
  5158. # like to wrap large dependency lists on column 80 (with \), and
  5159. # we should not choose a depcomp mode which is confused by this.
  5160. #
  5161. # We need to recreate these files for each test, as the compiler may
  5162. # overwrite some of them when testing with obscure command lines.
  5163. # This happens at least with the AIX C compiler.
  5164. : > sub/conftest.c
  5165. for i in 1 2 3 4 5 6; do
  5166. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5167. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5168. # Solaris 8's {/usr,}/bin/sh.
  5169. touch sub/conftst$i.h
  5170. done
  5171. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5172. case $depmode in
  5173. nosideeffect)
  5174. # after this tag, mechanisms are not by side-effect, so they'll
  5175. # only be used when explicitly requested
  5176. if test "x$enable_dependency_tracking" = xyes; then
  5177. continue
  5178. else
  5179. break
  5180. fi
  5181. ;;
  5182. none) break ;;
  5183. esac
  5184. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5185. # mode. It turns out that the SunPro C++ compiler does not properly
  5186. # handle `-M -o', and we need to detect this.
  5187. if depmode=$depmode \
  5188. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5189. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5190. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5191. >/dev/null 2>conftest.err &&
  5192. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5193. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5194. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5195. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5196. # icc doesn't choke on unknown options, it will just issue warnings
  5197. # or remarks (even with -Werror). So we grep stderr for any message
  5198. # that says an option was ignored or not supported.
  5199. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5200. # icc: Command line warning: ignoring option '-M'; no argument required
  5201. # The diagnosis changed in icc 8.0:
  5202. # icc: Command line remark: option '-MP' not supported
  5203. if (grep 'ignoring option' conftest.err ||
  5204. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5205. am_cv_CXX_dependencies_compiler_type=$depmode
  5206. break
  5207. fi
  5208. fi
  5209. done
  5210. cd ..
  5211. rm -rf conftest.dir
  5212. else
  5213. am_cv_CXX_dependencies_compiler_type=none
  5214. fi
  5215. fi
  5216. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5217. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5218. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5219. if
  5220. test "x$enable_dependency_tracking" != xno \
  5221. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5222. am__fastdepCXX_TRUE=
  5223. am__fastdepCXX_FALSE='#'
  5224. else
  5225. am__fastdepCXX_TRUE='#'
  5226. am__fastdepCXX_FALSE=
  5227. fi
  5228. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5229. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5230. (test "X$CXX" != "Xg++"))) ; then
  5231. ac_ext=cpp
  5232. ac_cpp='$CXXCPP $CPPFLAGS'
  5233. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5234. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5235. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5236. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5237. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5238. if test -z "$CXXCPP"; then
  5239. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5240. echo $ECHO_N "(cached) $ECHO_C" >&6
  5241. else
  5242. # Double quotes because CXXCPP needs to be expanded
  5243. for CXXCPP in "$CXX -E" "/lib/cpp"
  5244. do
  5245. ac_preproc_ok=false
  5246. for ac_cxx_preproc_warn_flag in '' yes
  5247. do
  5248. # Use a header file that comes with gcc, so configuring glibc
  5249. # with a fresh cross-compiler works.
  5250. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5251. # <limits.h> exists even on freestanding compilers.
  5252. # On the NeXT, cc -E runs the code through the compiler's parser,
  5253. # not just through cpp. "Syntax error" is here to catch this case.
  5254. cat >conftest.$ac_ext <<_ACEOF
  5255. /* confdefs.h. */
  5256. _ACEOF
  5257. cat confdefs.h >>conftest.$ac_ext
  5258. cat >>conftest.$ac_ext <<_ACEOF
  5259. /* end confdefs.h. */
  5260. #ifdef __STDC__
  5261. # include <limits.h>
  5262. #else
  5263. # include <assert.h>
  5264. #endif
  5265. Syntax error
  5266. _ACEOF
  5267. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5268. case "(($ac_try" in
  5269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5270. *) ac_try_echo=$ac_try;;
  5271. esac
  5272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5273. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5274. ac_status=$?
  5275. grep -v '^ *+' conftest.er1 >conftest.err
  5276. rm -f conftest.er1
  5277. cat conftest.err >&5
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); } >/dev/null && {
  5280. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5281. test ! -s conftest.err
  5282. }; then
  5283. :
  5284. else
  5285. echo "$as_me: failed program was:" >&5
  5286. sed 's/^/| /' conftest.$ac_ext >&5
  5287. # Broken: fails on valid input.
  5288. continue
  5289. fi
  5290. rm -f conftest.err conftest.$ac_ext
  5291. # OK, works on sane cases. Now check whether nonexistent headers
  5292. # can be detected and how.
  5293. cat >conftest.$ac_ext <<_ACEOF
  5294. /* confdefs.h. */
  5295. _ACEOF
  5296. cat confdefs.h >>conftest.$ac_ext
  5297. cat >>conftest.$ac_ext <<_ACEOF
  5298. /* end confdefs.h. */
  5299. #include <ac_nonexistent.h>
  5300. _ACEOF
  5301. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5302. case "(($ac_try" in
  5303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5304. *) ac_try_echo=$ac_try;;
  5305. esac
  5306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5307. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5308. ac_status=$?
  5309. grep -v '^ *+' conftest.er1 >conftest.err
  5310. rm -f conftest.er1
  5311. cat conftest.err >&5
  5312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); } >/dev/null && {
  5314. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5315. test ! -s conftest.err
  5316. }; then
  5317. # Broken: success on invalid input.
  5318. continue
  5319. else
  5320. echo "$as_me: failed program was:" >&5
  5321. sed 's/^/| /' conftest.$ac_ext >&5
  5322. # Passes both tests.
  5323. ac_preproc_ok=:
  5324. break
  5325. fi
  5326. rm -f conftest.err conftest.$ac_ext
  5327. done
  5328. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5329. rm -f conftest.err conftest.$ac_ext
  5330. if $ac_preproc_ok; then
  5331. break
  5332. fi
  5333. done
  5334. ac_cv_prog_CXXCPP=$CXXCPP
  5335. fi
  5336. CXXCPP=$ac_cv_prog_CXXCPP
  5337. else
  5338. ac_cv_prog_CXXCPP=$CXXCPP
  5339. fi
  5340. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5341. echo "${ECHO_T}$CXXCPP" >&6; }
  5342. ac_preproc_ok=false
  5343. for ac_cxx_preproc_warn_flag in '' yes
  5344. do
  5345. # Use a header file that comes with gcc, so configuring glibc
  5346. # with a fresh cross-compiler works.
  5347. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5348. # <limits.h> exists even on freestanding compilers.
  5349. # On the NeXT, cc -E runs the code through the compiler's parser,
  5350. # not just through cpp. "Syntax error" is here to catch this case.
  5351. cat >conftest.$ac_ext <<_ACEOF
  5352. /* confdefs.h. */
  5353. _ACEOF
  5354. cat confdefs.h >>conftest.$ac_ext
  5355. cat >>conftest.$ac_ext <<_ACEOF
  5356. /* end confdefs.h. */
  5357. #ifdef __STDC__
  5358. # include <limits.h>
  5359. #else
  5360. # include <assert.h>
  5361. #endif
  5362. Syntax error
  5363. _ACEOF
  5364. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5365. case "(($ac_try" in
  5366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5367. *) ac_try_echo=$ac_try;;
  5368. esac
  5369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5370. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5371. ac_status=$?
  5372. grep -v '^ *+' conftest.er1 >conftest.err
  5373. rm -f conftest.er1
  5374. cat conftest.err >&5
  5375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5376. (exit $ac_status); } >/dev/null && {
  5377. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5378. test ! -s conftest.err
  5379. }; then
  5380. :
  5381. else
  5382. echo "$as_me: failed program was:" >&5
  5383. sed 's/^/| /' conftest.$ac_ext >&5
  5384. # Broken: fails on valid input.
  5385. continue
  5386. fi
  5387. rm -f conftest.err conftest.$ac_ext
  5388. # OK, works on sane cases. Now check whether nonexistent headers
  5389. # can be detected and how.
  5390. cat >conftest.$ac_ext <<_ACEOF
  5391. /* confdefs.h. */
  5392. _ACEOF
  5393. cat confdefs.h >>conftest.$ac_ext
  5394. cat >>conftest.$ac_ext <<_ACEOF
  5395. /* end confdefs.h. */
  5396. #include <ac_nonexistent.h>
  5397. _ACEOF
  5398. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5399. case "(($ac_try" in
  5400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5401. *) ac_try_echo=$ac_try;;
  5402. esac
  5403. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5404. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5405. ac_status=$?
  5406. grep -v '^ *+' conftest.er1 >conftest.err
  5407. rm -f conftest.er1
  5408. cat conftest.err >&5
  5409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5410. (exit $ac_status); } >/dev/null && {
  5411. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5412. test ! -s conftest.err
  5413. }; then
  5414. # Broken: success on invalid input.
  5415. continue
  5416. else
  5417. echo "$as_me: failed program was:" >&5
  5418. sed 's/^/| /' conftest.$ac_ext >&5
  5419. # Passes both tests.
  5420. ac_preproc_ok=:
  5421. break
  5422. fi
  5423. rm -f conftest.err conftest.$ac_ext
  5424. done
  5425. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5426. rm -f conftest.err conftest.$ac_ext
  5427. if $ac_preproc_ok; then
  5428. :
  5429. else
  5430. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5431. See \`config.log' for more details." >&5
  5432. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5433. See \`config.log' for more details." >&2;}
  5434. { (exit 1); exit 1; }; }
  5435. fi
  5436. ac_ext=cpp
  5437. ac_cpp='$CXXCPP $CPPFLAGS'
  5438. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5439. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5440. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5441. fi
  5442. ac_ext=f
  5443. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5444. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5445. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5446. if test -n "$ac_tool_prefix"; then
  5447. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5448. do
  5449. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5450. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5451. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5452. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5453. if test "${ac_cv_prog_F77+set}" = set; then
  5454. echo $ECHO_N "(cached) $ECHO_C" >&6
  5455. else
  5456. if test -n "$F77"; then
  5457. ac_cv_prog_F77="$F77" # 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_F77="$ac_tool_prefix$ac_prog"
  5467. echo "$as_me:$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. F77=$ac_cv_prog_F77
  5476. if test -n "$F77"; then
  5477. { echo "$as_me:$LINENO: result: $F77" >&5
  5478. echo "${ECHO_T}$F77" >&6; }
  5479. else
  5480. { echo "$as_me:$LINENO: result: no" >&5
  5481. echo "${ECHO_T}no" >&6; }
  5482. fi
  5483. test -n "$F77" && break
  5484. done
  5485. fi
  5486. if test -z "$F77"; then
  5487. ac_ct_F77=$F77
  5488. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5489. do
  5490. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5491. set dummy $ac_prog; ac_word=$2
  5492. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5493. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5494. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5495. echo $ECHO_N "(cached) $ECHO_C" >&6
  5496. else
  5497. if test -n "$ac_ct_F77"; then
  5498. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5499. else
  5500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5501. for as_dir in $PATH
  5502. do
  5503. IFS=$as_save_IFS
  5504. test -z "$as_dir" && as_dir=.
  5505. for ac_exec_ext in '' $ac_executable_extensions; do
  5506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5507. ac_cv_prog_ac_ct_F77="$ac_prog"
  5508. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5509. break 2
  5510. fi
  5511. done
  5512. done
  5513. IFS=$as_save_IFS
  5514. fi
  5515. fi
  5516. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5517. if test -n "$ac_ct_F77"; then
  5518. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5519. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5520. else
  5521. { echo "$as_me:$LINENO: result: no" >&5
  5522. echo "${ECHO_T}no" >&6; }
  5523. fi
  5524. test -n "$ac_ct_F77" && break
  5525. done
  5526. if test "x$ac_ct_F77" = x; then
  5527. F77=""
  5528. else
  5529. case $cross_compiling:$ac_tool_warned in
  5530. yes:)
  5531. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5532. whose name does not start with the host triplet. If you think this
  5533. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5534. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5535. whose name does not start with the host triplet. If you think this
  5536. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5537. ac_tool_warned=yes ;;
  5538. esac
  5539. F77=$ac_ct_F77
  5540. fi
  5541. fi
  5542. # Provide some information about the compiler.
  5543. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5544. ac_compiler=`set X $ac_compile; echo $2`
  5545. { (ac_try="$ac_compiler --version >&5"
  5546. case "(($ac_try" in
  5547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5548. *) ac_try_echo=$ac_try;;
  5549. esac
  5550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5551. (eval "$ac_compiler --version >&5") 2>&5
  5552. ac_status=$?
  5553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5554. (exit $ac_status); }
  5555. { (ac_try="$ac_compiler -v >&5"
  5556. case "(($ac_try" in
  5557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5558. *) ac_try_echo=$ac_try;;
  5559. esac
  5560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5561. (eval "$ac_compiler -v >&5") 2>&5
  5562. ac_status=$?
  5563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5564. (exit $ac_status); }
  5565. { (ac_try="$ac_compiler -V >&5"
  5566. case "(($ac_try" in
  5567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5568. *) ac_try_echo=$ac_try;;
  5569. esac
  5570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5571. (eval "$ac_compiler -V >&5") 2>&5
  5572. ac_status=$?
  5573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5574. (exit $ac_status); }
  5575. rm -f a.out
  5576. # If we don't use `.F' as extension, the preprocessor is not run on the
  5577. # input file. (Note that this only needs to work for GNU compilers.)
  5578. ac_save_ext=$ac_ext
  5579. ac_ext=F
  5580. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5581. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5582. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5583. echo $ECHO_N "(cached) $ECHO_C" >&6
  5584. else
  5585. cat >conftest.$ac_ext <<_ACEOF
  5586. program main
  5587. #ifndef __GNUC__
  5588. choke me
  5589. #endif
  5590. end
  5591. _ACEOF
  5592. rm -f conftest.$ac_objext
  5593. if { (ac_try="$ac_compile"
  5594. case "(($ac_try" in
  5595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5596. *) ac_try_echo=$ac_try;;
  5597. esac
  5598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5599. (eval "$ac_compile") 2>conftest.er1
  5600. ac_status=$?
  5601. grep -v '^ *+' conftest.er1 >conftest.err
  5602. rm -f conftest.er1
  5603. cat conftest.err >&5
  5604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5605. (exit $ac_status); } && {
  5606. test -z "$ac_f77_werror_flag" ||
  5607. test ! -s conftest.err
  5608. } && test -s conftest.$ac_objext; then
  5609. ac_compiler_gnu=yes
  5610. else
  5611. echo "$as_me: failed program was:" >&5
  5612. sed 's/^/| /' conftest.$ac_ext >&5
  5613. ac_compiler_gnu=no
  5614. fi
  5615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5616. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5617. fi
  5618. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5619. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5620. ac_ext=$ac_save_ext
  5621. ac_test_FFLAGS=${FFLAGS+set}
  5622. ac_save_FFLAGS=$FFLAGS
  5623. FFLAGS=
  5624. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5625. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5626. if test "${ac_cv_prog_f77_g+set}" = set; then
  5627. echo $ECHO_N "(cached) $ECHO_C" >&6
  5628. else
  5629. FFLAGS=-g
  5630. cat >conftest.$ac_ext <<_ACEOF
  5631. program main
  5632. end
  5633. _ACEOF
  5634. rm -f conftest.$ac_objext
  5635. if { (ac_try="$ac_compile"
  5636. case "(($ac_try" in
  5637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5638. *) ac_try_echo=$ac_try;;
  5639. esac
  5640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5641. (eval "$ac_compile") 2>conftest.er1
  5642. ac_status=$?
  5643. grep -v '^ *+' conftest.er1 >conftest.err
  5644. rm -f conftest.er1
  5645. cat conftest.err >&5
  5646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5647. (exit $ac_status); } && {
  5648. test -z "$ac_f77_werror_flag" ||
  5649. test ! -s conftest.err
  5650. } && test -s conftest.$ac_objext; then
  5651. ac_cv_prog_f77_g=yes
  5652. else
  5653. echo "$as_me: failed program was:" >&5
  5654. sed 's/^/| /' conftest.$ac_ext >&5
  5655. ac_cv_prog_f77_g=no
  5656. fi
  5657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5658. fi
  5659. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5660. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5661. if test "$ac_test_FFLAGS" = set; then
  5662. FFLAGS=$ac_save_FFLAGS
  5663. elif test $ac_cv_prog_f77_g = yes; then
  5664. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5665. FFLAGS="-g -O2"
  5666. else
  5667. FFLAGS="-g"
  5668. fi
  5669. else
  5670. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5671. FFLAGS="-O2"
  5672. else
  5673. FFLAGS=
  5674. fi
  5675. fi
  5676. G77=`test $ac_compiler_gnu = yes && echo yes`
  5677. ac_ext=c
  5678. ac_cpp='$CPP $CPPFLAGS'
  5679. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5680. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5681. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5682. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5683. # find the maximum length of command line arguments
  5684. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5685. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5686. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5687. echo $ECHO_N "(cached) $ECHO_C" >&6
  5688. else
  5689. i=0
  5690. teststring="ABCD"
  5691. case $build_os in
  5692. msdosdjgpp*)
  5693. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5694. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5695. # during glob expansion). Even if it were fixed, the result of this
  5696. # check would be larger than it should be.
  5697. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5698. ;;
  5699. gnu*)
  5700. # Under GNU Hurd, this test is not required because there is
  5701. # no limit to the length of command line arguments.
  5702. # Libtool will interpret -1 as no limit whatsoever
  5703. lt_cv_sys_max_cmd_len=-1;
  5704. ;;
  5705. cygwin* | mingw*)
  5706. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5707. # about 5 minutes as the teststring grows exponentially.
  5708. # Worse, since 9x/ME are not pre-emptively multitasking,
  5709. # you end up with a "frozen" computer, even though with patience
  5710. # the test eventually succeeds (with a max line length of 256k).
  5711. # Instead, let's just punt: use the minimum linelength reported by
  5712. # all of the supported platforms: 8192 (on NT/2K/XP).
  5713. lt_cv_sys_max_cmd_len=8192;
  5714. ;;
  5715. amigaos*)
  5716. # On AmigaOS with pdksh, this test takes hours, literally.
  5717. # So we just punt and use a minimum line length of 8192.
  5718. lt_cv_sys_max_cmd_len=8192;
  5719. ;;
  5720. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5721. # This has been around since 386BSD, at least. Likely further.
  5722. if test -x /sbin/sysctl; then
  5723. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5724. elif test -x /usr/sbin/sysctl; then
  5725. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5726. else
  5727. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  5728. fi
  5729. # And add a safety zone
  5730. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5731. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5732. ;;
  5733. osf*)
  5734. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5735. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5736. # nice to cause kernel panics so lets avoid the loop below.
  5737. # First set a reasonable default.
  5738. lt_cv_sys_max_cmd_len=16384
  5739. #
  5740. if test -x /sbin/sysconfig; then
  5741. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5742. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5743. esac
  5744. fi
  5745. ;;
  5746. *)
  5747. # If test is not a shell built-in, we'll probably end up computing a
  5748. # maximum length that is only half of the actual maximum length, but
  5749. # we can't tell.
  5750. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5751. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5752. = "XX$teststring") >/dev/null 2>&1 &&
  5753. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5754. lt_cv_sys_max_cmd_len=$new_result &&
  5755. test $i != 17 # 1/2 MB should be enough
  5756. do
  5757. i=`expr $i + 1`
  5758. teststring=$teststring$teststring
  5759. done
  5760. teststring=
  5761. # Add a significant safety factor because C++ compilers can tack on massive
  5762. # amounts of additional arguments before passing them to the linker.
  5763. # It appears as though 1/2 is a usable value.
  5764. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5765. ;;
  5766. esac
  5767. fi
  5768. if test -n $lt_cv_sys_max_cmd_len ; then
  5769. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5770. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5771. else
  5772. { echo "$as_me:$LINENO: result: none" >&5
  5773. echo "${ECHO_T}none" >&6; }
  5774. fi
  5775. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5776. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5777. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5778. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5779. echo $ECHO_N "(cached) $ECHO_C" >&6
  5780. else
  5781. # These are sane defaults that work on at least a few old systems.
  5782. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5783. # Character class describing NM global symbol codes.
  5784. symcode='[BCDEGRST]'
  5785. # Regexp to match symbols that can be accessed directly from C.
  5786. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5787. # Transform an extracted symbol line into a proper C declaration
  5788. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5789. # Transform an extracted symbol line into symbol name and symbol address
  5790. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5791. # Define system-specific variables.
  5792. case $host_os in
  5793. aix*)
  5794. symcode='[BCDT]'
  5795. ;;
  5796. cygwin* | mingw* | pw32*)
  5797. symcode='[ABCDGISTW]'
  5798. ;;
  5799. hpux*) # Its linker distinguishes data from code symbols
  5800. if test "$host_cpu" = ia64; then
  5801. symcode='[ABCDEGRST]'
  5802. fi
  5803. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5804. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5805. ;;
  5806. linux*)
  5807. if test "$host_cpu" = ia64; then
  5808. symcode='[ABCDGIRSTW]'
  5809. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5810. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5811. fi
  5812. ;;
  5813. irix* | nonstopux*)
  5814. symcode='[BCDEGRST]'
  5815. ;;
  5816. osf*)
  5817. symcode='[BCDEGQRST]'
  5818. ;;
  5819. solaris* | sysv5*)
  5820. symcode='[BDRT]'
  5821. ;;
  5822. sysv4)
  5823. symcode='[DFNSTU]'
  5824. ;;
  5825. esac
  5826. # Handle CRLF in mingw tool chain
  5827. opt_cr=
  5828. case $build_os in
  5829. mingw*)
  5830. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5831. ;;
  5832. esac
  5833. # If we're using GNU nm, then use its standard symbol codes.
  5834. case `$NM -V 2>&1` in
  5835. *GNU* | *'with BFD'*)
  5836. symcode='[ABCDGIRSTW]' ;;
  5837. esac
  5838. # Try without a prefix undercore, then with it.
  5839. for ac_symprfx in "" "_"; do
  5840. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5841. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5842. # Write the raw and C identifiers.
  5843. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5844. # Check to see that the pipe works correctly.
  5845. pipe_works=no
  5846. rm -f conftest*
  5847. cat > conftest.$ac_ext <<EOF
  5848. #ifdef __cplusplus
  5849. extern "C" {
  5850. #endif
  5851. char nm_test_var;
  5852. void nm_test_func(){}
  5853. #ifdef __cplusplus
  5854. }
  5855. #endif
  5856. int main(){nm_test_var='a';nm_test_func();return(0);}
  5857. EOF
  5858. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5859. (eval $ac_compile) 2>&5
  5860. ac_status=$?
  5861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5862. (exit $ac_status); }; then
  5863. # Now try to grab the symbols.
  5864. nlist=conftest.nm
  5865. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5866. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5867. ac_status=$?
  5868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5869. (exit $ac_status); } && test -s "$nlist"; then
  5870. # Try sorting and uniquifying the output.
  5871. if sort "$nlist" | uniq > "$nlist"T; then
  5872. mv -f "$nlist"T "$nlist"
  5873. else
  5874. rm -f "$nlist"T
  5875. fi
  5876. # Make sure that we snagged all the symbols we need.
  5877. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5878. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5879. cat <<EOF > conftest.$ac_ext
  5880. #ifdef __cplusplus
  5881. extern "C" {
  5882. #endif
  5883. EOF
  5884. # Now generate the symbol file.
  5885. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5886. cat <<EOF >> conftest.$ac_ext
  5887. #if defined (__STDC__) && __STDC__
  5888. # define lt_ptr_t void *
  5889. #else
  5890. # define lt_ptr_t char *
  5891. # define const
  5892. #endif
  5893. /* The mapping between symbol names and symbols. */
  5894. const struct {
  5895. const char *name;
  5896. lt_ptr_t address;
  5897. }
  5898. lt_preloaded_symbols[] =
  5899. {
  5900. EOF
  5901. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5902. cat <<\EOF >> conftest.$ac_ext
  5903. {0, (lt_ptr_t) 0}
  5904. };
  5905. #ifdef __cplusplus
  5906. }
  5907. #endif
  5908. EOF
  5909. # Now try linking the two files.
  5910. mv conftest.$ac_objext conftstm.$ac_objext
  5911. lt_save_LIBS="$LIBS"
  5912. lt_save_CFLAGS="$CFLAGS"
  5913. LIBS="conftstm.$ac_objext"
  5914. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5915. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5916. (eval $ac_link) 2>&5
  5917. ac_status=$?
  5918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5919. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5920. pipe_works=yes
  5921. fi
  5922. LIBS="$lt_save_LIBS"
  5923. CFLAGS="$lt_save_CFLAGS"
  5924. else
  5925. echo "cannot find nm_test_func in $nlist" >&5
  5926. fi
  5927. else
  5928. echo "cannot find nm_test_var in $nlist" >&5
  5929. fi
  5930. else
  5931. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5932. fi
  5933. else
  5934. echo "$progname: failed program was:" >&5
  5935. cat conftest.$ac_ext >&5
  5936. fi
  5937. rm -f conftest* conftst*
  5938. # Do not use the global_symbol_pipe unless it works.
  5939. if test "$pipe_works" = yes; then
  5940. break
  5941. else
  5942. lt_cv_sys_global_symbol_pipe=
  5943. fi
  5944. done
  5945. fi
  5946. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5947. lt_cv_sys_global_symbol_to_cdecl=
  5948. fi
  5949. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5950. { echo "$as_me:$LINENO: result: failed" >&5
  5951. echo "${ECHO_T}failed" >&6; }
  5952. else
  5953. { echo "$as_me:$LINENO: result: ok" >&5
  5954. echo "${ECHO_T}ok" >&6; }
  5955. fi
  5956. { echo "$as_me:$LINENO: checking for objdir" >&5
  5957. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5958. if test "${lt_cv_objdir+set}" = set; then
  5959. echo $ECHO_N "(cached) $ECHO_C" >&6
  5960. else
  5961. rm -f .libs 2>/dev/null
  5962. mkdir .libs 2>/dev/null
  5963. if test -d .libs; then
  5964. lt_cv_objdir=.libs
  5965. else
  5966. # MS-DOS does not allow filenames that begin with a dot.
  5967. lt_cv_objdir=_libs
  5968. fi
  5969. rmdir .libs 2>/dev/null
  5970. fi
  5971. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5972. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5973. objdir=$lt_cv_objdir
  5974. case $host_os in
  5975. aix3*)
  5976. # AIX sometimes has problems with the GCC collect2 program. For some
  5977. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5978. # vanish in a puff of smoke.
  5979. if test "X${COLLECT_NAMES+set}" != Xset; then
  5980. COLLECT_NAMES=
  5981. export COLLECT_NAMES
  5982. fi
  5983. ;;
  5984. esac
  5985. # Sed substitution that helps us do robust quoting. It backslashifies
  5986. # metacharacters that are still active within double-quoted strings.
  5987. Xsed='sed -e 1s/^X//'
  5988. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5989. # Same as above, but do not quote variable references.
  5990. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5991. # Sed substitution to delay expansion of an escaped shell variable in a
  5992. # double_quote_subst'ed string.
  5993. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5994. # Sed substitution to avoid accidental globbing in evaled expressions
  5995. no_glob_subst='s/\*/\\\*/g'
  5996. # Constants:
  5997. rm="rm -f"
  5998. # Global variables:
  5999. default_ofile=libtool
  6000. can_build_shared=yes
  6001. # All known linkers require a `.a' archive for static linking (except M$VC,
  6002. # which needs '.lib').
  6003. libext=a
  6004. ltmain="$ac_aux_dir/ltmain.sh"
  6005. ofile="$default_ofile"
  6006. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6007. if test -n "$ac_tool_prefix"; then
  6008. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6009. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6010. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6011. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6012. if test "${ac_cv_prog_AR+set}" = set; then
  6013. echo $ECHO_N "(cached) $ECHO_C" >&6
  6014. else
  6015. if test -n "$AR"; then
  6016. ac_cv_prog_AR="$AR" # Let the user override the test.
  6017. else
  6018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6019. for as_dir in $PATH
  6020. do
  6021. IFS=$as_save_IFS
  6022. test -z "$as_dir" && as_dir=.
  6023. for ac_exec_ext in '' $ac_executable_extensions; do
  6024. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6025. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6026. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6027. break 2
  6028. fi
  6029. done
  6030. done
  6031. IFS=$as_save_IFS
  6032. fi
  6033. fi
  6034. AR=$ac_cv_prog_AR
  6035. if test -n "$AR"; then
  6036. { echo "$as_me:$LINENO: result: $AR" >&5
  6037. echo "${ECHO_T}$AR" >&6; }
  6038. else
  6039. { echo "$as_me:$LINENO: result: no" >&5
  6040. echo "${ECHO_T}no" >&6; }
  6041. fi
  6042. fi
  6043. if test -z "$ac_cv_prog_AR"; then
  6044. ac_ct_AR=$AR
  6045. # Extract the first word of "ar", so it can be a program name with args.
  6046. set dummy ar; ac_word=$2
  6047. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6048. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6049. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6050. echo $ECHO_N "(cached) $ECHO_C" >&6
  6051. else
  6052. if test -n "$ac_ct_AR"; then
  6053. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6054. else
  6055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6056. for as_dir in $PATH
  6057. do
  6058. IFS=$as_save_IFS
  6059. test -z "$as_dir" && as_dir=.
  6060. for ac_exec_ext in '' $ac_executable_extensions; do
  6061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6062. ac_cv_prog_ac_ct_AR="ar"
  6063. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6064. break 2
  6065. fi
  6066. done
  6067. done
  6068. IFS=$as_save_IFS
  6069. fi
  6070. fi
  6071. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6072. if test -n "$ac_ct_AR"; then
  6073. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6074. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6075. else
  6076. { echo "$as_me:$LINENO: result: no" >&5
  6077. echo "${ECHO_T}no" >&6; }
  6078. fi
  6079. if test "x$ac_ct_AR" = x; then
  6080. AR="false"
  6081. else
  6082. case $cross_compiling:$ac_tool_warned in
  6083. yes:)
  6084. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6085. whose name does not start with the host triplet. If you think this
  6086. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6087. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6088. whose name does not start with the host triplet. If you think this
  6089. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6090. ac_tool_warned=yes ;;
  6091. esac
  6092. AR=$ac_ct_AR
  6093. fi
  6094. else
  6095. AR="$ac_cv_prog_AR"
  6096. fi
  6097. if test -n "$ac_tool_prefix"; then
  6098. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6099. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6100. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6101. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6102. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6103. echo $ECHO_N "(cached) $ECHO_C" >&6
  6104. else
  6105. if test -n "$RANLIB"; then
  6106. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6107. else
  6108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6109. for as_dir in $PATH
  6110. do
  6111. IFS=$as_save_IFS
  6112. test -z "$as_dir" && as_dir=.
  6113. for ac_exec_ext in '' $ac_executable_extensions; do
  6114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6115. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6116. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6117. break 2
  6118. fi
  6119. done
  6120. done
  6121. IFS=$as_save_IFS
  6122. fi
  6123. fi
  6124. RANLIB=$ac_cv_prog_RANLIB
  6125. if test -n "$RANLIB"; then
  6126. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6127. echo "${ECHO_T}$RANLIB" >&6; }
  6128. else
  6129. { echo "$as_me:$LINENO: result: no" >&5
  6130. echo "${ECHO_T}no" >&6; }
  6131. fi
  6132. fi
  6133. if test -z "$ac_cv_prog_RANLIB"; then
  6134. ac_ct_RANLIB=$RANLIB
  6135. # Extract the first word of "ranlib", so it can be a program name with args.
  6136. set dummy ranlib; ac_word=$2
  6137. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6138. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6139. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6140. echo $ECHO_N "(cached) $ECHO_C" >&6
  6141. else
  6142. if test -n "$ac_ct_RANLIB"; then
  6143. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6144. else
  6145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6146. for as_dir in $PATH
  6147. do
  6148. IFS=$as_save_IFS
  6149. test -z "$as_dir" && as_dir=.
  6150. for ac_exec_ext in '' $ac_executable_extensions; do
  6151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6152. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6153. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6154. break 2
  6155. fi
  6156. done
  6157. done
  6158. IFS=$as_save_IFS
  6159. fi
  6160. fi
  6161. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6162. if test -n "$ac_ct_RANLIB"; then
  6163. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6164. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6165. else
  6166. { echo "$as_me:$LINENO: result: no" >&5
  6167. echo "${ECHO_T}no" >&6; }
  6168. fi
  6169. if test "x$ac_ct_RANLIB" = x; then
  6170. RANLIB=":"
  6171. else
  6172. case $cross_compiling:$ac_tool_warned in
  6173. yes:)
  6174. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6175. whose name does not start with the host triplet. If you think this
  6176. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6177. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6178. whose name does not start with the host triplet. If you think this
  6179. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6180. ac_tool_warned=yes ;;
  6181. esac
  6182. RANLIB=$ac_ct_RANLIB
  6183. fi
  6184. else
  6185. RANLIB="$ac_cv_prog_RANLIB"
  6186. fi
  6187. if test -n "$ac_tool_prefix"; then
  6188. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6189. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6190. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6191. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6192. if test "${ac_cv_prog_STRIP+set}" = set; then
  6193. echo $ECHO_N "(cached) $ECHO_C" >&6
  6194. else
  6195. if test -n "$STRIP"; then
  6196. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6197. else
  6198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6199. for as_dir in $PATH
  6200. do
  6201. IFS=$as_save_IFS
  6202. test -z "$as_dir" && as_dir=.
  6203. for ac_exec_ext in '' $ac_executable_extensions; do
  6204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6205. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6206. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6207. break 2
  6208. fi
  6209. done
  6210. done
  6211. IFS=$as_save_IFS
  6212. fi
  6213. fi
  6214. STRIP=$ac_cv_prog_STRIP
  6215. if test -n "$STRIP"; then
  6216. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6217. echo "${ECHO_T}$STRIP" >&6; }
  6218. else
  6219. { echo "$as_me:$LINENO: result: no" >&5
  6220. echo "${ECHO_T}no" >&6; }
  6221. fi
  6222. fi
  6223. if test -z "$ac_cv_prog_STRIP"; then
  6224. ac_ct_STRIP=$STRIP
  6225. # Extract the first word of "strip", so it can be a program name with args.
  6226. set dummy strip; ac_word=$2
  6227. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6228. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6229. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6230. echo $ECHO_N "(cached) $ECHO_C" >&6
  6231. else
  6232. if test -n "$ac_ct_STRIP"; then
  6233. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6234. else
  6235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6236. for as_dir in $PATH
  6237. do
  6238. IFS=$as_save_IFS
  6239. test -z "$as_dir" && as_dir=.
  6240. for ac_exec_ext in '' $ac_executable_extensions; do
  6241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6242. ac_cv_prog_ac_ct_STRIP="strip"
  6243. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6244. break 2
  6245. fi
  6246. done
  6247. done
  6248. IFS=$as_save_IFS
  6249. fi
  6250. fi
  6251. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6252. if test -n "$ac_ct_STRIP"; then
  6253. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6254. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6255. else
  6256. { echo "$as_me:$LINENO: result: no" >&5
  6257. echo "${ECHO_T}no" >&6; }
  6258. fi
  6259. if test "x$ac_ct_STRIP" = x; then
  6260. STRIP=":"
  6261. else
  6262. case $cross_compiling:$ac_tool_warned in
  6263. yes:)
  6264. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6265. whose name does not start with the host triplet. If you think this
  6266. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6267. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6268. whose name does not start with the host triplet. If you think this
  6269. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6270. ac_tool_warned=yes ;;
  6271. esac
  6272. STRIP=$ac_ct_STRIP
  6273. fi
  6274. else
  6275. STRIP="$ac_cv_prog_STRIP"
  6276. fi
  6277. old_CC="$CC"
  6278. old_CFLAGS="$CFLAGS"
  6279. # Set sane defaults for various variables
  6280. test -z "$AR" && AR=ar
  6281. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6282. test -z "$AS" && AS=as
  6283. test -z "$CC" && CC=cc
  6284. test -z "$LTCC" && LTCC=$CC
  6285. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6286. test -z "$LD" && LD=ld
  6287. test -z "$LN_S" && LN_S="ln -s"
  6288. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6289. test -z "$NM" && NM=nm
  6290. test -z "$SED" && SED=sed
  6291. test -z "$OBJDUMP" && OBJDUMP=objdump
  6292. test -z "$RANLIB" && RANLIB=:
  6293. test -z "$STRIP" && STRIP=:
  6294. test -z "$ac_objext" && ac_objext=o
  6295. # Determine commands to create old-style static archives.
  6296. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6297. old_postinstall_cmds='chmod 644 $oldlib'
  6298. old_postuninstall_cmds=
  6299. if test -n "$RANLIB"; then
  6300. case $host_os in
  6301. openbsd*)
  6302. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6303. ;;
  6304. *)
  6305. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6306. ;;
  6307. esac
  6308. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6309. fi
  6310. for cc_temp in $compiler""; do
  6311. case $cc_temp in
  6312. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6313. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6314. \-*) ;;
  6315. *) break;;
  6316. esac
  6317. done
  6318. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6319. # Only perform the check for file, if the check method requires it
  6320. case $deplibs_check_method in
  6321. file_magic*)
  6322. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6323. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6324. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6325. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6326. echo $ECHO_N "(cached) $ECHO_C" >&6
  6327. else
  6328. case $MAGIC_CMD in
  6329. [\\/*] | ?:[\\/]*)
  6330. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6331. ;;
  6332. *)
  6333. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6334. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6335. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6336. for ac_dir in $ac_dummy; do
  6337. IFS="$lt_save_ifs"
  6338. test -z "$ac_dir" && ac_dir=.
  6339. if test -f $ac_dir/${ac_tool_prefix}file; then
  6340. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6341. if test -n "$file_magic_test_file"; then
  6342. case $deplibs_check_method in
  6343. "file_magic "*)
  6344. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6345. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6346. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6347. $EGREP "$file_magic_regex" > /dev/null; then
  6348. :
  6349. else
  6350. cat <<EOF 1>&2
  6351. *** Warning: the command libtool uses to detect shared libraries,
  6352. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6353. *** The result is that libtool may fail to recognize shared libraries
  6354. *** as such. This will affect the creation of libtool libraries that
  6355. *** depend on shared libraries, but programs linked with such libtool
  6356. *** libraries will work regardless of this problem. Nevertheless, you
  6357. *** may want to report the problem to your system manager and/or to
  6358. *** bug-libtool@gnu.org
  6359. EOF
  6360. fi ;;
  6361. esac
  6362. fi
  6363. break
  6364. fi
  6365. done
  6366. IFS="$lt_save_ifs"
  6367. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6368. ;;
  6369. esac
  6370. fi
  6371. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6372. if test -n "$MAGIC_CMD"; then
  6373. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6374. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6375. else
  6376. { echo "$as_me:$LINENO: result: no" >&5
  6377. echo "${ECHO_T}no" >&6; }
  6378. fi
  6379. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6380. if test -n "$ac_tool_prefix"; then
  6381. { echo "$as_me:$LINENO: checking for file" >&5
  6382. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6383. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6384. echo $ECHO_N "(cached) $ECHO_C" >&6
  6385. else
  6386. case $MAGIC_CMD in
  6387. [\\/*] | ?:[\\/]*)
  6388. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6389. ;;
  6390. *)
  6391. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6392. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6393. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6394. for ac_dir in $ac_dummy; do
  6395. IFS="$lt_save_ifs"
  6396. test -z "$ac_dir" && ac_dir=.
  6397. if test -f $ac_dir/file; then
  6398. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6399. if test -n "$file_magic_test_file"; then
  6400. case $deplibs_check_method in
  6401. "file_magic "*)
  6402. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6403. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6404. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6405. $EGREP "$file_magic_regex" > /dev/null; then
  6406. :
  6407. else
  6408. cat <<EOF 1>&2
  6409. *** Warning: the command libtool uses to detect shared libraries,
  6410. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6411. *** The result is that libtool may fail to recognize shared libraries
  6412. *** as such. This will affect the creation of libtool libraries that
  6413. *** depend on shared libraries, but programs linked with such libtool
  6414. *** libraries will work regardless of this problem. Nevertheless, you
  6415. *** may want to report the problem to your system manager and/or to
  6416. *** bug-libtool@gnu.org
  6417. EOF
  6418. fi ;;
  6419. esac
  6420. fi
  6421. break
  6422. fi
  6423. done
  6424. IFS="$lt_save_ifs"
  6425. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6426. ;;
  6427. esac
  6428. fi
  6429. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6430. if test -n "$MAGIC_CMD"; then
  6431. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6432. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6433. else
  6434. { echo "$as_me:$LINENO: result: no" >&5
  6435. echo "${ECHO_T}no" >&6; }
  6436. fi
  6437. else
  6438. MAGIC_CMD=:
  6439. fi
  6440. fi
  6441. fi
  6442. ;;
  6443. esac
  6444. enable_dlopen=no
  6445. enable_win32_dll=no
  6446. # Check whether --enable-libtool-lock was given.
  6447. if test "${enable_libtool_lock+set}" = set; then
  6448. enableval=$enable_libtool_lock;
  6449. fi
  6450. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6451. # Check whether --with-pic was given.
  6452. if test "${with_pic+set}" = set; then
  6453. withval=$with_pic; pic_mode="$withval"
  6454. else
  6455. pic_mode=default
  6456. fi
  6457. test -z "$pic_mode" && pic_mode=default
  6458. # Use C for the default configuration in the libtool script
  6459. tagname=
  6460. lt_save_CC="$CC"
  6461. ac_ext=c
  6462. ac_cpp='$CPP $CPPFLAGS'
  6463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6466. # Source file extension for C test sources.
  6467. ac_ext=c
  6468. # Object file extension for compiled C test sources.
  6469. objext=o
  6470. objext=$objext
  6471. # Code to be used in simple compile tests
  6472. lt_simple_compile_test_code="int some_variable = 0;\n"
  6473. # Code to be used in simple link tests
  6474. lt_simple_link_test_code='int main(){return(0);}\n'
  6475. # If no C compiler was specified, use CC.
  6476. LTCC=${LTCC-"$CC"}
  6477. # Allow CC to be a program name with arguments.
  6478. compiler=$CC
  6479. # save warnings/boilerplate of simple test code
  6480. ac_outfile=conftest.$ac_objext
  6481. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  6482. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6483. _lt_compiler_boilerplate=`cat conftest.err`
  6484. $rm conftest*
  6485. ac_outfile=conftest.$ac_objext
  6486. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  6487. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6488. _lt_linker_boilerplate=`cat conftest.err`
  6489. $rm conftest*
  6490. #
  6491. # Check for any special shared library compilation flags.
  6492. #
  6493. lt_prog_cc_shlib=
  6494. if test "$GCC" = no; then
  6495. case $host_os in
  6496. sco3.2v5*)
  6497. lt_prog_cc_shlib='-belf'
  6498. ;;
  6499. esac
  6500. fi
  6501. if test -n "$lt_prog_cc_shlib"; then
  6502. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  6503. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  6504. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  6505. else
  6506. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6507. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6508. lt_cv_prog_cc_can_build_shared=no
  6509. fi
  6510. fi
  6511. #
  6512. # Check to make sure the static flag actually works.
  6513. #
  6514. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  6515. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
  6516. if test "${lt_prog_compiler_static_works+set}" = set; then
  6517. echo $ECHO_N "(cached) $ECHO_C" >&6
  6518. else
  6519. lt_prog_compiler_static_works=no
  6520. save_LDFLAGS="$LDFLAGS"
  6521. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  6522. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6523. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6524. # The compiler can only warn and ignore the option if not recognized
  6525. # So say no if there are warnings
  6526. if test -s conftest.err; then
  6527. # Append any errors to the config.log.
  6528. cat conftest.err 1>&5
  6529. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  6530. $SED '/^$/d' conftest.err >conftest.er2
  6531. if diff conftest.exp conftest.er2 >/dev/null; then
  6532. lt_prog_compiler_static_works=yes
  6533. fi
  6534. else
  6535. lt_prog_compiler_static_works=yes
  6536. fi
  6537. fi
  6538. $rm conftest*
  6539. LDFLAGS="$save_LDFLAGS"
  6540. fi
  6541. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6542. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6543. if test x"$lt_prog_compiler_static_works" = xyes; then
  6544. :
  6545. else
  6546. lt_prog_compiler_static=
  6547. fi
  6548. lt_prog_compiler_no_builtin_flag=
  6549. if test "$GCC" = yes; then
  6550. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6551. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6552. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6553. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6554. echo $ECHO_N "(cached) $ECHO_C" >&6
  6555. else
  6556. lt_cv_prog_compiler_rtti_exceptions=no
  6557. ac_outfile=conftest.$ac_objext
  6558. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6559. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6560. # Insert the option either (1) after the last *FLAGS variable, or
  6561. # (2) before a word containing "conftest.", or (3) at the end.
  6562. # Note that $ac_compile itself does not contain backslashes and begins
  6563. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6564. # The option is referenced via a variable to avoid confusing sed.
  6565. lt_compile=`echo "$ac_compile" | $SED \
  6566. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6567. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6568. -e 's:$: $lt_compiler_flag:'`
  6569. (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
  6570. (eval "$lt_compile" 2>conftest.err)
  6571. ac_status=$?
  6572. cat conftest.err >&5
  6573. echo "$as_me:7356: \$? = $ac_status" >&5
  6574. if (exit $ac_status) && test -s "$ac_outfile"; then
  6575. # The compiler can only warn and ignore the option if not recognized
  6576. # So say no if there are warnings other than the usual output.
  6577. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6578. $SED '/^$/d' conftest.err >conftest.er2
  6579. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6580. lt_cv_prog_compiler_rtti_exceptions=yes
  6581. fi
  6582. fi
  6583. $rm conftest*
  6584. fi
  6585. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6586. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6587. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6588. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6589. else
  6590. :
  6591. fi
  6592. fi
  6593. lt_prog_compiler_wl=
  6594. lt_prog_compiler_pic=
  6595. lt_prog_compiler_static=
  6596. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6597. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6598. if test "$GCC" = yes; then
  6599. lt_prog_compiler_wl='-Wl,'
  6600. lt_prog_compiler_static='-static'
  6601. case $host_os in
  6602. aix*)
  6603. # All AIX code is PIC.
  6604. if test "$host_cpu" = ia64; then
  6605. # AIX 5 now supports IA64 processor
  6606. lt_prog_compiler_static='-Bstatic'
  6607. fi
  6608. ;;
  6609. amigaos*)
  6610. # FIXME: we need at least 68020 code to build shared libraries, but
  6611. # adding the `-m68020' flag to GCC prevents building anything better,
  6612. # like `-m68040'.
  6613. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6614. ;;
  6615. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6616. # PIC is the default for these OSes.
  6617. ;;
  6618. mingw* | pw32* | os2*)
  6619. # This hack is so that the source file can tell whether it is being
  6620. # built for inclusion in a dll (and should export symbols for example).
  6621. lt_prog_compiler_pic='-DDLL_EXPORT'
  6622. ;;
  6623. darwin* | rhapsody*)
  6624. # PIC is the default on this platform
  6625. # Common symbols not allowed in MH_DYLIB files
  6626. lt_prog_compiler_pic='-fno-common'
  6627. ;;
  6628. msdosdjgpp*)
  6629. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6630. # on systems that don't support them.
  6631. lt_prog_compiler_can_build_shared=no
  6632. enable_shared=no
  6633. ;;
  6634. sysv4*MP*)
  6635. if test -d /usr/nec; then
  6636. lt_prog_compiler_pic=-Kconform_pic
  6637. fi
  6638. ;;
  6639. hpux*)
  6640. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6641. # not for PA HP-UX.
  6642. case "$host_cpu" in
  6643. hppa*64*|ia64*)
  6644. # +Z the default
  6645. ;;
  6646. *)
  6647. lt_prog_compiler_pic='-fPIC'
  6648. ;;
  6649. esac
  6650. ;;
  6651. *)
  6652. lt_prog_compiler_pic='-fPIC'
  6653. ;;
  6654. esac
  6655. else
  6656. # PORTME Check for flag to pass linker flags through the system compiler.
  6657. case $host_os in
  6658. aix*)
  6659. lt_prog_compiler_wl='-Wl,'
  6660. if test "$host_cpu" = ia64; then
  6661. # AIX 5 now supports IA64 processor
  6662. lt_prog_compiler_static='-Bstatic'
  6663. else
  6664. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6665. fi
  6666. ;;
  6667. darwin*)
  6668. # PIC is the default on this platform
  6669. # Common symbols not allowed in MH_DYLIB files
  6670. case $cc_basename in
  6671. xlc*)
  6672. lt_prog_compiler_pic='-qnocommon'
  6673. lt_prog_compiler_wl='-Wl,'
  6674. ;;
  6675. esac
  6676. ;;
  6677. mingw* | pw32* | os2*)
  6678. # This hack is so that the source file can tell whether it is being
  6679. # built for inclusion in a dll (and should export symbols for example).
  6680. lt_prog_compiler_pic='-DDLL_EXPORT'
  6681. ;;
  6682. hpux9* | hpux10* | hpux11*)
  6683. lt_prog_compiler_wl='-Wl,'
  6684. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6685. # not for PA HP-UX.
  6686. case "$host_cpu" in
  6687. hppa*64*|ia64*)
  6688. # +Z the default
  6689. ;;
  6690. *)
  6691. lt_prog_compiler_pic='+Z'
  6692. ;;
  6693. esac
  6694. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6695. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6696. ;;
  6697. irix5* | irix6* | nonstopux*)
  6698. lt_prog_compiler_wl='-Wl,'
  6699. # PIC (with -KPIC) is the default.
  6700. lt_prog_compiler_static='-non_shared'
  6701. ;;
  6702. newsos6)
  6703. lt_prog_compiler_pic='-KPIC'
  6704. lt_prog_compiler_static='-Bstatic'
  6705. ;;
  6706. linux*)
  6707. case $cc_basename in
  6708. icc* | ecc*)
  6709. lt_prog_compiler_wl='-Wl,'
  6710. lt_prog_compiler_pic='-KPIC'
  6711. lt_prog_compiler_static='-static'
  6712. ;;
  6713. pgcc* | pgf77* | pgf90*)
  6714. # Portland Group compilers (*not* the Pentium gcc compiler,
  6715. # which looks to be a dead project)
  6716. lt_prog_compiler_wl='-Wl,'
  6717. lt_prog_compiler_pic='-fpic'
  6718. lt_prog_compiler_static='-static'
  6719. ;;
  6720. ccc*)
  6721. lt_prog_compiler_wl='-Wl,'
  6722. # All Alpha code is PIC.
  6723. lt_prog_compiler_static='-non_shared'
  6724. ;;
  6725. esac
  6726. ;;
  6727. osf3* | osf4* | osf5*)
  6728. lt_prog_compiler_wl='-Wl,'
  6729. # All OSF/1 code is PIC.
  6730. lt_prog_compiler_static='-non_shared'
  6731. ;;
  6732. sco3.2v5*)
  6733. lt_prog_compiler_pic='-Kpic'
  6734. lt_prog_compiler_static='-dn'
  6735. ;;
  6736. solaris*)
  6737. lt_prog_compiler_pic='-KPIC'
  6738. lt_prog_compiler_static='-Bstatic'
  6739. case $cc_basename in
  6740. f77* | f90* | f95*)
  6741. lt_prog_compiler_wl='-Qoption ld ';;
  6742. *)
  6743. lt_prog_compiler_wl='-Wl,';;
  6744. esac
  6745. ;;
  6746. sunos4*)
  6747. lt_prog_compiler_wl='-Qoption ld '
  6748. lt_prog_compiler_pic='-PIC'
  6749. lt_prog_compiler_static='-Bstatic'
  6750. ;;
  6751. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6752. lt_prog_compiler_wl='-Wl,'
  6753. lt_prog_compiler_pic='-KPIC'
  6754. lt_prog_compiler_static='-Bstatic'
  6755. ;;
  6756. sysv4*MP*)
  6757. if test -d /usr/nec ;then
  6758. lt_prog_compiler_pic='-Kconform_pic'
  6759. lt_prog_compiler_static='-Bstatic'
  6760. fi
  6761. ;;
  6762. unicos*)
  6763. lt_prog_compiler_wl='-Wl,'
  6764. lt_prog_compiler_can_build_shared=no
  6765. ;;
  6766. uts4*)
  6767. lt_prog_compiler_pic='-pic'
  6768. lt_prog_compiler_static='-Bstatic'
  6769. ;;
  6770. *)
  6771. lt_prog_compiler_can_build_shared=no
  6772. ;;
  6773. esac
  6774. fi
  6775. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6776. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6777. #
  6778. # Check to make sure the PIC flag actually works.
  6779. #
  6780. if test -n "$lt_prog_compiler_pic"; then
  6781. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6782. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6783. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6784. echo $ECHO_N "(cached) $ECHO_C" >&6
  6785. else
  6786. lt_prog_compiler_pic_works=no
  6787. ac_outfile=conftest.$ac_objext
  6788. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6789. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6790. # Insert the option either (1) after the last *FLAGS variable, or
  6791. # (2) before a word containing "conftest.", or (3) at the end.
  6792. # Note that $ac_compile itself does not contain backslashes and begins
  6793. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6794. # The option is referenced via a variable to avoid confusing sed.
  6795. lt_compile=`echo "$ac_compile" | $SED \
  6796. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6797. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6798. -e 's:$: $lt_compiler_flag:'`
  6799. (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
  6800. (eval "$lt_compile" 2>conftest.err)
  6801. ac_status=$?
  6802. cat conftest.err >&5
  6803. echo "$as_me:7618: \$? = $ac_status" >&5
  6804. if (exit $ac_status) && test -s "$ac_outfile"; then
  6805. # The compiler can only warn and ignore the option if not recognized
  6806. # So say no if there are warnings other than the usual output.
  6807. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6808. $SED '/^$/d' conftest.err >conftest.er2
  6809. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6810. lt_prog_compiler_pic_works=yes
  6811. fi
  6812. fi
  6813. $rm conftest*
  6814. fi
  6815. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6816. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6817. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6818. case $lt_prog_compiler_pic in
  6819. "" | " "*) ;;
  6820. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6821. esac
  6822. else
  6823. lt_prog_compiler_pic=
  6824. lt_prog_compiler_can_build_shared=no
  6825. fi
  6826. fi
  6827. case "$host_os" in
  6828. # For platforms which do not support PIC, -DPIC is meaningless:
  6829. *djgpp*)
  6830. lt_prog_compiler_pic=
  6831. ;;
  6832. *)
  6833. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6834. ;;
  6835. esac
  6836. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6837. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6838. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6839. echo $ECHO_N "(cached) $ECHO_C" >&6
  6840. else
  6841. lt_cv_prog_compiler_c_o=no
  6842. $rm -r conftest 2>/dev/null
  6843. mkdir conftest
  6844. cd conftest
  6845. mkdir out
  6846. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6847. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6848. # Insert the option either (1) after the last *FLAGS variable, or
  6849. # (2) before a word containing "conftest.", or (3) at the end.
  6850. # Note that $ac_compile itself does not contain backslashes and begins
  6851. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6852. lt_compile=`echo "$ac_compile" | $SED \
  6853. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6854. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6855. -e 's:$: $lt_compiler_flag:'`
  6856. (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
  6857. (eval "$lt_compile" 2>out/conftest.err)
  6858. ac_status=$?
  6859. cat out/conftest.err >&5
  6860. echo "$as_me:7680: \$? = $ac_status" >&5
  6861. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6862. then
  6863. # The compiler can only warn and ignore the option if not recognized
  6864. # So say no if there are warnings
  6865. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  6866. $SED '/^$/d' out/conftest.err >out/conftest.er2
  6867. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6868. lt_cv_prog_compiler_c_o=yes
  6869. fi
  6870. fi
  6871. chmod u+w .
  6872. $rm conftest*
  6873. # SGI C++ compiler will create directory out/ii_files/ for
  6874. # template instantiation
  6875. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6876. $rm out/* && rmdir out
  6877. cd ..
  6878. rmdir conftest
  6879. $rm conftest*
  6880. fi
  6881. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6882. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6883. hard_links="nottested"
  6884. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6885. # do not overwrite the value of need_locks provided by the user
  6886. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6887. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6888. hard_links=yes
  6889. $rm conftest*
  6890. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6891. touch conftest.a
  6892. ln conftest.a conftest.b 2>&5 || hard_links=no
  6893. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6894. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6895. echo "${ECHO_T}$hard_links" >&6; }
  6896. if test "$hard_links" = no; then
  6897. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6898. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6899. need_locks=warn
  6900. fi
  6901. else
  6902. need_locks=no
  6903. fi
  6904. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6905. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6906. runpath_var=
  6907. allow_undefined_flag=
  6908. enable_shared_with_static_runtimes=no
  6909. archive_cmds=
  6910. archive_expsym_cmds=
  6911. old_archive_From_new_cmds=
  6912. old_archive_from_expsyms_cmds=
  6913. export_dynamic_flag_spec=
  6914. whole_archive_flag_spec=
  6915. thread_safe_flag_spec=
  6916. hardcode_libdir_flag_spec=
  6917. hardcode_libdir_flag_spec_ld=
  6918. hardcode_libdir_separator=
  6919. hardcode_direct=no
  6920. hardcode_minus_L=no
  6921. hardcode_shlibpath_var=unsupported
  6922. link_all_deplibs=unknown
  6923. hardcode_automatic=no
  6924. module_cmds=
  6925. module_expsym_cmds=
  6926. always_export_symbols=no
  6927. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6928. # include_expsyms should be a list of space-separated symbols to be *always*
  6929. # included in the symbol list
  6930. include_expsyms=
  6931. # exclude_expsyms can be an extended regexp of symbols to exclude
  6932. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6933. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6934. # as well as any symbol that contains `d'.
  6935. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6936. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6937. # platforms (ab)use it in PIC code, but their linkers get confused if
  6938. # the symbol is explicitly referenced. Since portable code cannot
  6939. # rely on this symbol name, it's probably fine to never include it in
  6940. # preloaded symbol tables.
  6941. extract_expsyms_cmds=
  6942. # Just being paranoid about ensuring that cc_basename is set.
  6943. for cc_temp in $compiler""; do
  6944. case $cc_temp in
  6945. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6946. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6947. \-*) ;;
  6948. *) break;;
  6949. esac
  6950. done
  6951. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6952. case $host_os in
  6953. cygwin* | mingw* | pw32*)
  6954. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6955. # When not using gcc, we currently assume that we are using
  6956. # Microsoft Visual C++.
  6957. if test "$GCC" != yes; then
  6958. with_gnu_ld=no
  6959. fi
  6960. ;;
  6961. openbsd*)
  6962. with_gnu_ld=no
  6963. ;;
  6964. esac
  6965. ld_shlibs=yes
  6966. if test "$with_gnu_ld" = yes; then
  6967. # If archive_cmds runs LD, not CC, wlarc should be empty
  6968. wlarc='${wl}'
  6969. # Set some defaults for GNU ld with shared library support. These
  6970. # are reset later if shared libraries are not supported. Putting them
  6971. # here allows them to be overridden if necessary.
  6972. runpath_var=LD_RUN_PATH
  6973. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6974. export_dynamic_flag_spec='${wl}--export-dynamic'
  6975. # ancient GNU ld didn't support --whole-archive et. al.
  6976. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6977. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6978. else
  6979. whole_archive_flag_spec=
  6980. fi
  6981. supports_anon_versioning=no
  6982. case `$LD -v 2>/dev/null` in
  6983. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6984. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6985. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6986. *\ 2.11.*) ;; # other 2.11 versions
  6987. *) supports_anon_versioning=yes ;;
  6988. esac
  6989. # See if GNU ld supports shared libraries.
  6990. case $host_os in
  6991. aix3* | aix4* | aix5*)
  6992. # On AIX/PPC, the GNU linker is very broken
  6993. if test "$host_cpu" != ia64; then
  6994. ld_shlibs=no
  6995. cat <<EOF 1>&2
  6996. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6997. *** to be unable to reliably create shared libraries on AIX.
  6998. *** Therefore, libtool is disabling shared libraries support. If you
  6999. *** really care for shared libraries, you may want to modify your PATH
  7000. *** so that a non-GNU linker is found, and then restart.
  7001. EOF
  7002. fi
  7003. ;;
  7004. amigaos*)
  7005. 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)'
  7006. hardcode_libdir_flag_spec='-L$libdir'
  7007. hardcode_minus_L=yes
  7008. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7009. # that the semantics of dynamic libraries on AmigaOS, at least up
  7010. # to version 4, is to share data among multiple programs linked
  7011. # with the same dynamic library. Since this doesn't match the
  7012. # behavior of shared libraries on other platforms, we can't use
  7013. # them.
  7014. ld_shlibs=no
  7015. ;;
  7016. beos*)
  7017. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7018. allow_undefined_flag=unsupported
  7019. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7020. # support --undefined. This deserves some investigation. FIXME
  7021. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7022. else
  7023. ld_shlibs=no
  7024. fi
  7025. ;;
  7026. cygwin* | mingw* | pw32*)
  7027. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7028. # as there is no search path for DLLs.
  7029. hardcode_libdir_flag_spec='-L$libdir'
  7030. allow_undefined_flag=unsupported
  7031. always_export_symbols=no
  7032. enable_shared_with_static_runtimes=yes
  7033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7034. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7035. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7036. # If the export-symbols file already is a .def file (1st line
  7037. # is EXPORTS), use it as is; otherwise, prepend...
  7038. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7039. cp $export_symbols $output_objdir/$soname.def;
  7040. else
  7041. echo EXPORTS > $output_objdir/$soname.def;
  7042. cat $export_symbols >> $output_objdir/$soname.def;
  7043. fi~
  7044. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7045. else
  7046. ld_shlibs=no
  7047. fi
  7048. ;;
  7049. linux*)
  7050. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7051. tmp_addflag=
  7052. case $cc_basename,$host_cpu in
  7053. pgcc*) # Portland Group C compiler
  7054. whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7055. tmp_addflag=' $pic_flag'
  7056. ;;
  7057. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  7058. whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7059. tmp_addflag=' $pic_flag -Mnomain' ;;
  7060. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7061. tmp_addflag=' -i_dynamic' ;;
  7062. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7063. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7064. ifc* | ifort*) # Intel Fortran compiler
  7065. tmp_addflag=' -nofor_main' ;;
  7066. esac
  7067. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7068. if test $supports_anon_versioning = yes; then
  7069. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7070. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7071. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7072. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7073. fi
  7074. else
  7075. ld_shlibs=no
  7076. fi
  7077. ;;
  7078. netbsd*)
  7079. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7080. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7081. wlarc=
  7082. else
  7083. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7084. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7085. fi
  7086. ;;
  7087. solaris* | sysv5*)
  7088. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7089. ld_shlibs=no
  7090. cat <<EOF 1>&2
  7091. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7092. *** create shared libraries on Solaris systems. Therefore, libtool
  7093. *** is disabling shared libraries support. We urge you to upgrade GNU
  7094. *** binutils to release 2.9.1 or newer. Another option is to modify
  7095. *** your PATH or compiler configuration so that the native linker is
  7096. *** used, and then restart.
  7097. EOF
  7098. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7099. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7100. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7101. else
  7102. ld_shlibs=no
  7103. fi
  7104. ;;
  7105. sunos4*)
  7106. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7107. wlarc=
  7108. hardcode_direct=yes
  7109. hardcode_shlibpath_var=no
  7110. ;;
  7111. *)
  7112. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7113. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7114. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7115. else
  7116. ld_shlibs=no
  7117. fi
  7118. ;;
  7119. esac
  7120. if test "$ld_shlibs" = no; then
  7121. runpath_var=
  7122. hardcode_libdir_flag_spec=
  7123. export_dynamic_flag_spec=
  7124. whole_archive_flag_spec=
  7125. fi
  7126. else
  7127. # PORTME fill in a description of your system's linker (not GNU ld)
  7128. case $host_os in
  7129. aix3*)
  7130. allow_undefined_flag=unsupported
  7131. always_export_symbols=yes
  7132. 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'
  7133. # Note: this linker hardcodes the directories in LIBPATH if there
  7134. # are no directories specified by -L.
  7135. hardcode_minus_L=yes
  7136. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7137. # Neither direct hardcoding nor static linking is supported with a
  7138. # broken collect2.
  7139. hardcode_direct=unsupported
  7140. fi
  7141. ;;
  7142. aix4* | aix5*)
  7143. if test "$host_cpu" = ia64; then
  7144. # On IA64, the linker does run time linking by default, so we don't
  7145. # have to do anything special.
  7146. aix_use_runtimelinking=no
  7147. exp_sym_flag='-Bexport'
  7148. no_entry_flag=""
  7149. else
  7150. # If we're using GNU nm, then we don't want the "-C" option.
  7151. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7152. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7153. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7154. else
  7155. 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'
  7156. fi
  7157. aix_use_runtimelinking=no
  7158. # Test if we are trying to use run time linking or normal
  7159. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7160. # need to do runtime linking.
  7161. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7162. for ld_flag in $LDFLAGS; do
  7163. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7164. aix_use_runtimelinking=yes
  7165. break
  7166. fi
  7167. done
  7168. esac
  7169. exp_sym_flag='-bexport'
  7170. no_entry_flag='-bnoentry'
  7171. fi
  7172. # When large executables or shared objects are built, AIX ld can
  7173. # have problems creating the table of contents. If linking a library
  7174. # or program results in "error TOC overflow" add -mminimal-toc to
  7175. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7176. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7177. archive_cmds=''
  7178. hardcode_direct=yes
  7179. hardcode_libdir_separator=':'
  7180. link_all_deplibs=yes
  7181. if test "$GCC" = yes; then
  7182. case $host_os in aix4.[012]|aix4.[012].*)
  7183. # We only want to do this on AIX 4.2 and lower, the check
  7184. # below for broken collect2 doesn't work under 4.3+
  7185. collect2name=`${CC} -print-prog-name=collect2`
  7186. if test -f "$collect2name" && \
  7187. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7188. then
  7189. # We have reworked collect2
  7190. hardcode_direct=yes
  7191. else
  7192. # We have old collect2
  7193. hardcode_direct=unsupported
  7194. # It fails to find uninstalled libraries when the uninstalled
  7195. # path is not listed in the libpath. Setting hardcode_minus_L
  7196. # to unsupported forces relinking
  7197. hardcode_minus_L=yes
  7198. hardcode_libdir_flag_spec='-L$libdir'
  7199. hardcode_libdir_separator=
  7200. fi
  7201. esac
  7202. shared_flag='-shared'
  7203. if test "$aix_use_runtimelinking" = yes; then
  7204. shared_flag="$shared_flag "'${wl}-G'
  7205. fi
  7206. else
  7207. # not using gcc
  7208. if test "$host_cpu" = ia64; then
  7209. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7210. # chokes on -Wl,-G. The following line is correct:
  7211. shared_flag='-G'
  7212. else
  7213. if test "$aix_use_runtimelinking" = yes; then
  7214. shared_flag='${wl}-G'
  7215. else
  7216. shared_flag='${wl}-bM:SRE'
  7217. fi
  7218. fi
  7219. fi
  7220. # It seems that -bexpall does not export symbols beginning with
  7221. # underscore (_), so it is better to generate a list of symbols to export.
  7222. always_export_symbols=yes
  7223. if test "$aix_use_runtimelinking" = yes; then
  7224. # Warning - without using the other runtime loading flags (-brtl),
  7225. # -berok will link without error, but may produce a broken library.
  7226. allow_undefined_flag='-berok'
  7227. # Determine the default libpath from the value encoded in an empty executable.
  7228. cat >conftest.$ac_ext <<_ACEOF
  7229. /* confdefs.h. */
  7230. _ACEOF
  7231. cat confdefs.h >>conftest.$ac_ext
  7232. cat >>conftest.$ac_ext <<_ACEOF
  7233. /* end confdefs.h. */
  7234. int
  7235. main ()
  7236. {
  7237. ;
  7238. return 0;
  7239. }
  7240. _ACEOF
  7241. rm -f conftest.$ac_objext conftest$ac_exeext
  7242. if { (ac_try="$ac_link"
  7243. case "(($ac_try" in
  7244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7245. *) ac_try_echo=$ac_try;;
  7246. esac
  7247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7248. (eval "$ac_link") 2>conftest.er1
  7249. ac_status=$?
  7250. grep -v '^ *+' conftest.er1 >conftest.err
  7251. rm -f conftest.er1
  7252. cat conftest.err >&5
  7253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7254. (exit $ac_status); } && {
  7255. test -z "$ac_c_werror_flag" ||
  7256. test ! -s conftest.err
  7257. } && test -s conftest$ac_exeext &&
  7258. $as_test_x conftest$ac_exeext; then
  7259. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7260. }'`
  7261. # Check for a 64-bit object if we didn't find anything.
  7262. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7263. }'`; fi
  7264. else
  7265. echo "$as_me: failed program was:" >&5
  7266. sed 's/^/| /' conftest.$ac_ext >&5
  7267. fi
  7268. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7269. conftest$ac_exeext conftest.$ac_ext
  7270. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7271. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7272. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7273. else
  7274. if test "$host_cpu" = ia64; then
  7275. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7276. allow_undefined_flag="-z nodefs"
  7277. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  7278. else
  7279. # Determine the default libpath from the value encoded in an empty executable.
  7280. cat >conftest.$ac_ext <<_ACEOF
  7281. /* confdefs.h. */
  7282. _ACEOF
  7283. cat confdefs.h >>conftest.$ac_ext
  7284. cat >>conftest.$ac_ext <<_ACEOF
  7285. /* end confdefs.h. */
  7286. int
  7287. main ()
  7288. {
  7289. ;
  7290. return 0;
  7291. }
  7292. _ACEOF
  7293. rm -f conftest.$ac_objext conftest$ac_exeext
  7294. if { (ac_try="$ac_link"
  7295. case "(($ac_try" in
  7296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7297. *) ac_try_echo=$ac_try;;
  7298. esac
  7299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7300. (eval "$ac_link") 2>conftest.er1
  7301. ac_status=$?
  7302. grep -v '^ *+' conftest.er1 >conftest.err
  7303. rm -f conftest.er1
  7304. cat conftest.err >&5
  7305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7306. (exit $ac_status); } && {
  7307. test -z "$ac_c_werror_flag" ||
  7308. test ! -s conftest.err
  7309. } && test -s conftest$ac_exeext &&
  7310. $as_test_x conftest$ac_exeext; then
  7311. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7312. }'`
  7313. # Check for a 64-bit object if we didn't find anything.
  7314. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7315. }'`; fi
  7316. else
  7317. echo "$as_me: failed program was:" >&5
  7318. sed 's/^/| /' conftest.$ac_ext >&5
  7319. fi
  7320. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7321. conftest$ac_exeext conftest.$ac_ext
  7322. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7323. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7324. # Warning - without using the other run time loading flags,
  7325. # -berok will link without error, but may produce a broken library.
  7326. no_undefined_flag=' ${wl}-bernotok'
  7327. allow_undefined_flag=' ${wl}-berok'
  7328. # -bexpall does not export symbols beginning with underscore (_)
  7329. always_export_symbols=yes
  7330. # Exported symbols can be pulled into shared objects from archives
  7331. whole_archive_flag_spec=' '
  7332. archive_cmds_need_lc=yes
  7333. # This is similar to how AIX traditionally builds it's shared libraries.
  7334. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7335. fi
  7336. fi
  7337. ;;
  7338. amigaos*)
  7339. 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)'
  7340. hardcode_libdir_flag_spec='-L$libdir'
  7341. hardcode_minus_L=yes
  7342. # see comment about different semantics on the GNU ld section
  7343. ld_shlibs=no
  7344. ;;
  7345. bsdi[45]*)
  7346. export_dynamic_flag_spec=-rdynamic
  7347. ;;
  7348. cygwin* | mingw* | pw32*)
  7349. # When not using gcc, we currently assume that we are using
  7350. # Microsoft Visual C++.
  7351. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7352. # no search path for DLLs.
  7353. hardcode_libdir_flag_spec=' '
  7354. allow_undefined_flag=unsupported
  7355. # Tell ltmain to make .lib files, not .a files.
  7356. libext=lib
  7357. # Tell ltmain to make .dll files, not .so files.
  7358. shrext_cmds=".dll"
  7359. # FIXME: Setting linknames here is a bad hack.
  7360. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7361. # The linker will automatically build a .lib file if we build a DLL.
  7362. old_archive_From_new_cmds='true'
  7363. # FIXME: Should let the user specify the lib program.
  7364. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7365. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7366. enable_shared_with_static_runtimes=yes
  7367. ;;
  7368. darwin* | rhapsody*)
  7369. case "$host_os" in
  7370. rhapsody* | darwin1.[012])
  7371. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7372. ;;
  7373. *) # Darwin 1.3 on
  7374. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7375. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7376. else
  7377. case ${MACOSX_DEPLOYMENT_TARGET} in
  7378. 10.[012])
  7379. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7380. ;;
  7381. 10.*)
  7382. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7383. ;;
  7384. esac
  7385. fi
  7386. ;;
  7387. esac
  7388. archive_cmds_need_lc=no
  7389. hardcode_direct=no
  7390. hardcode_automatic=yes
  7391. hardcode_shlibpath_var=unsupported
  7392. whole_archive_flag_spec=''
  7393. link_all_deplibs=yes
  7394. if test "$GCC" = yes ; then
  7395. output_verbose_link_cmd='echo'
  7396. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7397. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7398. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7399. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7400. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7401. else
  7402. case $cc_basename in
  7403. xlc*)
  7404. output_verbose_link_cmd='echo'
  7405. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7406. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7407. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7408. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7409. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7410. ;;
  7411. *)
  7412. ld_shlibs=no
  7413. ;;
  7414. esac
  7415. fi
  7416. ;;
  7417. dgux*)
  7418. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7419. hardcode_libdir_flag_spec='-L$libdir'
  7420. hardcode_shlibpath_var=no
  7421. ;;
  7422. freebsd1*)
  7423. ld_shlibs=no
  7424. ;;
  7425. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7426. # support. Future versions do this automatically, but an explicit c++rt0.o
  7427. # does not break anything, and helps significantly (at the cost of a little
  7428. # extra space).
  7429. freebsd2.2*)
  7430. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7431. hardcode_libdir_flag_spec='-R$libdir'
  7432. hardcode_direct=yes
  7433. hardcode_shlibpath_var=no
  7434. ;;
  7435. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7436. freebsd2*)
  7437. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7438. hardcode_direct=yes
  7439. hardcode_minus_L=yes
  7440. hardcode_shlibpath_var=no
  7441. ;;
  7442. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7443. freebsd* | kfreebsd*-gnu | dragonfly*)
  7444. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7445. hardcode_libdir_flag_spec='-R$libdir'
  7446. hardcode_direct=yes
  7447. hardcode_shlibpath_var=no
  7448. ;;
  7449. hpux9*)
  7450. if test "$GCC" = yes; then
  7451. 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'
  7452. else
  7453. 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'
  7454. fi
  7455. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7456. hardcode_libdir_separator=:
  7457. hardcode_direct=yes
  7458. # hardcode_minus_L: Not really in the search PATH,
  7459. # but as the default location of the library.
  7460. hardcode_minus_L=yes
  7461. export_dynamic_flag_spec='${wl}-E'
  7462. ;;
  7463. hpux10* | hpux11*)
  7464. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7465. case "$host_cpu" in
  7466. hppa*64*|ia64*)
  7467. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7468. ;;
  7469. *)
  7470. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7471. ;;
  7472. esac
  7473. else
  7474. case "$host_cpu" in
  7475. hppa*64*|ia64*)
  7476. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7477. ;;
  7478. *)
  7479. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7480. ;;
  7481. esac
  7482. fi
  7483. if test "$with_gnu_ld" = no; then
  7484. case "$host_cpu" in
  7485. hppa*64*)
  7486. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7487. hardcode_libdir_flag_spec_ld='+b $libdir'
  7488. hardcode_libdir_separator=:
  7489. hardcode_direct=no
  7490. hardcode_shlibpath_var=no
  7491. ;;
  7492. ia64*)
  7493. hardcode_libdir_flag_spec='-L$libdir'
  7494. hardcode_direct=no
  7495. hardcode_shlibpath_var=no
  7496. # hardcode_minus_L: Not really in the search PATH,
  7497. # but as the default location of the library.
  7498. hardcode_minus_L=yes
  7499. ;;
  7500. *)
  7501. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7502. hardcode_libdir_separator=:
  7503. hardcode_direct=yes
  7504. export_dynamic_flag_spec='${wl}-E'
  7505. # hardcode_minus_L: Not really in the search PATH,
  7506. # but as the default location of the library.
  7507. hardcode_minus_L=yes
  7508. ;;
  7509. esac
  7510. fi
  7511. ;;
  7512. irix5* | irix6* | nonstopux*)
  7513. if test "$GCC" = yes; then
  7514. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7515. else
  7516. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7517. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7518. fi
  7519. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7520. hardcode_libdir_separator=:
  7521. link_all_deplibs=yes
  7522. ;;
  7523. netbsd*)
  7524. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7525. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7526. else
  7527. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7528. fi
  7529. hardcode_libdir_flag_spec='-R$libdir'
  7530. hardcode_direct=yes
  7531. hardcode_shlibpath_var=no
  7532. ;;
  7533. newsos6)
  7534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7535. hardcode_direct=yes
  7536. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7537. hardcode_libdir_separator=:
  7538. hardcode_shlibpath_var=no
  7539. ;;
  7540. openbsd*)
  7541. hardcode_direct=yes
  7542. hardcode_shlibpath_var=no
  7543. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7544. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7545. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7546. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7547. export_dynamic_flag_spec='${wl}-E'
  7548. else
  7549. case $host_os in
  7550. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7551. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7552. hardcode_libdir_flag_spec='-R$libdir'
  7553. ;;
  7554. *)
  7555. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7556. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7557. ;;
  7558. esac
  7559. fi
  7560. ;;
  7561. os2*)
  7562. hardcode_libdir_flag_spec='-L$libdir'
  7563. hardcode_minus_L=yes
  7564. allow_undefined_flag=unsupported
  7565. 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'
  7566. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7567. ;;
  7568. osf3*)
  7569. if test "$GCC" = yes; then
  7570. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7571. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7572. else
  7573. allow_undefined_flag=' -expect_unresolved \*'
  7574. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7575. fi
  7576. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7577. hardcode_libdir_separator=:
  7578. ;;
  7579. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7580. if test "$GCC" = yes; then
  7581. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7582. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7583. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7584. else
  7585. allow_undefined_flag=' -expect_unresolved \*'
  7586. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7587. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7588. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7589. # Both c and cxx compiler support -rpath directly
  7590. hardcode_libdir_flag_spec='-rpath $libdir'
  7591. fi
  7592. hardcode_libdir_separator=:
  7593. ;;
  7594. sco3.2v5*)
  7595. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7596. hardcode_shlibpath_var=no
  7597. export_dynamic_flag_spec='${wl}-Bexport'
  7598. runpath_var=LD_RUN_PATH
  7599. hardcode_runpath_var=yes
  7600. ;;
  7601. solaris*)
  7602. no_undefined_flag=' -z text'
  7603. if test "$GCC" = yes; then
  7604. wlarc='${wl}'
  7605. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7606. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7607. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7608. else
  7609. wlarc=''
  7610. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7611. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7612. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7613. fi
  7614. hardcode_libdir_flag_spec='-R$libdir'
  7615. hardcode_shlibpath_var=no
  7616. case $host_os in
  7617. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7618. *)
  7619. # The compiler driver will combine linker options so we
  7620. # cannot just pass the convience library names through
  7621. # without $wl, iff we do not link with $LD.
  7622. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7623. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7624. case $wlarc in
  7625. '')
  7626. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7627. *)
  7628. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  7629. esac ;;
  7630. esac
  7631. link_all_deplibs=yes
  7632. ;;
  7633. sunos4*)
  7634. if test "x$host_vendor" = xsequent; then
  7635. # Use $CC to link under sequent, because it throws in some extra .o
  7636. # files that make .init and .fini sections work.
  7637. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7638. else
  7639. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7640. fi
  7641. hardcode_libdir_flag_spec='-L$libdir'
  7642. hardcode_direct=yes
  7643. hardcode_minus_L=yes
  7644. hardcode_shlibpath_var=no
  7645. ;;
  7646. sysv4)
  7647. case $host_vendor in
  7648. sni)
  7649. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7650. hardcode_direct=yes # is this really true???
  7651. ;;
  7652. siemens)
  7653. ## LD is ld it makes a PLAMLIB
  7654. ## CC just makes a GrossModule.
  7655. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7656. reload_cmds='$CC -r -o $output$reload_objs'
  7657. hardcode_direct=no
  7658. ;;
  7659. motorola)
  7660. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7661. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7662. ;;
  7663. esac
  7664. runpath_var='LD_RUN_PATH'
  7665. hardcode_shlibpath_var=no
  7666. ;;
  7667. sysv4.3*)
  7668. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7669. hardcode_shlibpath_var=no
  7670. export_dynamic_flag_spec='-Bexport'
  7671. ;;
  7672. sysv4*MP*)
  7673. if test -d /usr/nec; then
  7674. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7675. hardcode_shlibpath_var=no
  7676. runpath_var=LD_RUN_PATH
  7677. hardcode_runpath_var=yes
  7678. ld_shlibs=yes
  7679. fi
  7680. ;;
  7681. sysv4.2uw2*)
  7682. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7683. hardcode_direct=yes
  7684. hardcode_minus_L=no
  7685. hardcode_shlibpath_var=no
  7686. hardcode_runpath_var=yes
  7687. runpath_var=LD_RUN_PATH
  7688. ;;
  7689. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  7690. no_undefined_flag='${wl}-z ${wl}text'
  7691. if test "$GCC" = yes; then
  7692. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7693. else
  7694. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7695. fi
  7696. runpath_var='LD_RUN_PATH'
  7697. hardcode_shlibpath_var=no
  7698. ;;
  7699. sysv5*)
  7700. no_undefined_flag=' -z text'
  7701. # $CC -shared without GNU ld will not create a library from C++
  7702. # object files and a static libstdc++, better avoid it by now
  7703. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7704. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7705. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7706. hardcode_libdir_flag_spec=
  7707. hardcode_shlibpath_var=no
  7708. runpath_var='LD_RUN_PATH'
  7709. ;;
  7710. uts4*)
  7711. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7712. hardcode_libdir_flag_spec='-L$libdir'
  7713. hardcode_shlibpath_var=no
  7714. ;;
  7715. *)
  7716. ld_shlibs=no
  7717. ;;
  7718. esac
  7719. fi
  7720. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7721. echo "${ECHO_T}$ld_shlibs" >&6; }
  7722. test "$ld_shlibs" = no && can_build_shared=no
  7723. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7724. if test "$GCC" = yes; then
  7725. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7726. fi
  7727. #
  7728. # Do we need to explicitly link libc?
  7729. #
  7730. case "x$archive_cmds_need_lc" in
  7731. x|xyes)
  7732. # Assume -lc should be added
  7733. archive_cmds_need_lc=yes
  7734. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7735. case $archive_cmds in
  7736. *'~'*)
  7737. # FIXME: we may have to deal with multi-command sequences.
  7738. ;;
  7739. '$CC '*)
  7740. # Test whether the compiler implicitly links with -lc since on some
  7741. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7742. # to ld, don't add -lc before -lgcc.
  7743. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7744. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7745. $rm conftest*
  7746. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7747. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7748. (eval $ac_compile) 2>&5
  7749. ac_status=$?
  7750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7751. (exit $ac_status); } 2>conftest.err; then
  7752. soname=conftest
  7753. lib=conftest
  7754. libobjs=conftest.$ac_objext
  7755. deplibs=
  7756. wl=$lt_prog_compiler_wl
  7757. compiler_flags=-v
  7758. linker_flags=-v
  7759. verstring=
  7760. output_objdir=.
  7761. libname=conftest
  7762. lt_save_allow_undefined_flag=$allow_undefined_flag
  7763. allow_undefined_flag=
  7764. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7765. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7766. ac_status=$?
  7767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7768. (exit $ac_status); }
  7769. then
  7770. archive_cmds_need_lc=no
  7771. else
  7772. archive_cmds_need_lc=yes
  7773. fi
  7774. allow_undefined_flag=$lt_save_allow_undefined_flag
  7775. else
  7776. cat conftest.err 1>&5
  7777. fi
  7778. $rm conftest*
  7779. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7780. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7781. ;;
  7782. esac
  7783. fi
  7784. ;;
  7785. esac
  7786. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7787. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7788. library_names_spec=
  7789. libname_spec='lib$name'
  7790. soname_spec=
  7791. shrext_cmds=".so"
  7792. postinstall_cmds=
  7793. postuninstall_cmds=
  7794. finish_cmds=
  7795. finish_eval=
  7796. shlibpath_var=
  7797. shlibpath_overrides_runpath=unknown
  7798. version_type=none
  7799. dynamic_linker="$host_os ld.so"
  7800. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7801. if test "$GCC" = yes; then
  7802. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7803. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7804. # if the path contains ";" then we assume it to be the separator
  7805. # otherwise default to the standard path separator (i.e. ":") - it is
  7806. # assumed that no part of a normal pathname contains ";" but that should
  7807. # okay in the real world where ";" in dirpaths is itself problematic.
  7808. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7809. else
  7810. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7811. fi
  7812. else
  7813. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7814. fi
  7815. need_lib_prefix=unknown
  7816. hardcode_into_libs=no
  7817. # when you set need_version to no, make sure it does not cause -set_version
  7818. # flags to be left without arguments
  7819. need_version=unknown
  7820. case $host_os in
  7821. aix3*)
  7822. version_type=linux
  7823. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7824. shlibpath_var=LIBPATH
  7825. # AIX 3 has no versioning support, so we append a major version to the name.
  7826. soname_spec='${libname}${release}${shared_ext}$major'
  7827. ;;
  7828. aix4* | aix5*)
  7829. version_type=linux
  7830. need_lib_prefix=no
  7831. need_version=no
  7832. hardcode_into_libs=yes
  7833. if test "$host_cpu" = ia64; then
  7834. # AIX 5 supports IA64
  7835. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7836. shlibpath_var=LD_LIBRARY_PATH
  7837. else
  7838. # With GCC up to 2.95.x, collect2 would create an import file
  7839. # for dependence libraries. The import file would start with
  7840. # the line `#! .'. This would cause the generated library to
  7841. # depend on `.', always an invalid library. This was fixed in
  7842. # development snapshots of GCC prior to 3.0.
  7843. case $host_os in
  7844. aix4 | aix4.[01] | aix4.[01].*)
  7845. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7846. echo ' yes '
  7847. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7848. :
  7849. else
  7850. can_build_shared=no
  7851. fi
  7852. ;;
  7853. esac
  7854. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7855. # soname into executable. Probably we can add versioning support to
  7856. # collect2, so additional links can be useful in future.
  7857. if test "$aix_use_runtimelinking" = yes; then
  7858. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7859. # instead of lib<name>.a to let people know that these are not
  7860. # typical AIX shared libraries.
  7861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7862. else
  7863. # We preserve .a as extension for shared libraries through AIX4.2
  7864. # and later when we are not doing run time linking.
  7865. library_names_spec='${libname}${release}.a $libname.a'
  7866. soname_spec='${libname}${release}${shared_ext}$major'
  7867. fi
  7868. shlibpath_var=LIBPATH
  7869. fi
  7870. ;;
  7871. amigaos*)
  7872. library_names_spec='$libname.ixlibrary $libname.a'
  7873. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7874. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  7875. ;;
  7876. beos*)
  7877. library_names_spec='${libname}${shared_ext}'
  7878. dynamic_linker="$host_os ld.so"
  7879. shlibpath_var=LIBRARY_PATH
  7880. ;;
  7881. bsdi[45]*)
  7882. version_type=linux
  7883. need_version=no
  7884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7885. soname_spec='${libname}${release}${shared_ext}$major'
  7886. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7887. shlibpath_var=LD_LIBRARY_PATH
  7888. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7889. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7890. # the default ld.so.conf also contains /usr/contrib/lib and
  7891. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7892. # libtool to hard-code these into programs
  7893. ;;
  7894. cygwin* | mingw* | pw32*)
  7895. version_type=windows
  7896. shrext_cmds=".dll"
  7897. need_version=no
  7898. need_lib_prefix=no
  7899. case $GCC,$host_os in
  7900. yes,cygwin* | yes,mingw* | yes,pw32*)
  7901. library_names_spec='$libname.dll.a'
  7902. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7903. postinstall_cmds='base_file=`basename \${file}`~
  7904. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7905. dldir=$destdir/`dirname \$dlpath`~
  7906. test -d \$dldir || mkdir -p \$dldir~
  7907. $install_prog $dir/$dlname \$dldir/$dlname'
  7908. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7909. dlpath=$dir/\$dldll~
  7910. $rm \$dlpath'
  7911. shlibpath_overrides_runpath=yes
  7912. case $host_os in
  7913. cygwin*)
  7914. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7915. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7916. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7917. ;;
  7918. mingw*)
  7919. # MinGW DLLs use traditional 'lib' prefix
  7920. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7921. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7922. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7923. # It is most probably a Windows format PATH printed by
  7924. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7925. # path with ; separators, and with drive letters. We can handle the
  7926. # drive letters (cygwin fileutils understands them), so leave them,
  7927. # especially as we might pass files found there to a mingw objdump,
  7928. # which wouldn't understand a cygwinified path. Ahh.
  7929. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7930. else
  7931. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7932. fi
  7933. ;;
  7934. pw32*)
  7935. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7936. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7937. ;;
  7938. esac
  7939. ;;
  7940. *)
  7941. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7942. ;;
  7943. esac
  7944. dynamic_linker='Win32 ld.exe'
  7945. # FIXME: first we should search . and the directory the executable is in
  7946. shlibpath_var=PATH
  7947. ;;
  7948. darwin* | rhapsody*)
  7949. dynamic_linker="$host_os dyld"
  7950. version_type=darwin
  7951. need_lib_prefix=no
  7952. need_version=no
  7953. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7954. soname_spec='${libname}${release}${major}$shared_ext'
  7955. shlibpath_overrides_runpath=yes
  7956. shlibpath_var=DYLD_LIBRARY_PATH
  7957. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  7958. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7959. if test "$GCC" = yes; then
  7960. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  7961. else
  7962. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7963. fi
  7964. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7965. ;;
  7966. dgux*)
  7967. version_type=linux
  7968. need_lib_prefix=no
  7969. need_version=no
  7970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7971. soname_spec='${libname}${release}${shared_ext}$major'
  7972. shlibpath_var=LD_LIBRARY_PATH
  7973. ;;
  7974. freebsd1*)
  7975. dynamic_linker=no
  7976. ;;
  7977. kfreebsd*-gnu)
  7978. version_type=linux
  7979. need_lib_prefix=no
  7980. need_version=no
  7981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7982. soname_spec='${libname}${release}${shared_ext}$major'
  7983. shlibpath_var=LD_LIBRARY_PATH
  7984. shlibpath_overrides_runpath=no
  7985. hardcode_into_libs=yes
  7986. dynamic_linker='GNU ld.so'
  7987. ;;
  7988. freebsd* | dragonfly*)
  7989. # DragonFly does not have aout. When/if they implement a new
  7990. # versioning mechanism, adjust this.
  7991. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7992. version_type=freebsd-$objformat
  7993. case $version_type in
  7994. freebsd-elf*)
  7995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7996. need_version=no
  7997. need_lib_prefix=no
  7998. ;;
  7999. freebsd-*)
  8000. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8001. need_version=yes
  8002. ;;
  8003. esac
  8004. shlibpath_var=LD_LIBRARY_PATH
  8005. case $host_os in
  8006. freebsd2*)
  8007. shlibpath_overrides_runpath=yes
  8008. ;;
  8009. freebsd3.[01]* | freebsdelf3.[01]*)
  8010. shlibpath_overrides_runpath=yes
  8011. hardcode_into_libs=yes
  8012. ;;
  8013. *) # from 3.2 on
  8014. shlibpath_overrides_runpath=no
  8015. hardcode_into_libs=yes
  8016. ;;
  8017. esac
  8018. ;;
  8019. gnu*)
  8020. version_type=linux
  8021. need_lib_prefix=no
  8022. need_version=no
  8023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8024. soname_spec='${libname}${release}${shared_ext}$major'
  8025. shlibpath_var=LD_LIBRARY_PATH
  8026. hardcode_into_libs=yes
  8027. ;;
  8028. hpux9* | hpux10* | hpux11*)
  8029. # Give a soname corresponding to the major version so that dld.sl refuses to
  8030. # link against other versions.
  8031. version_type=sunos
  8032. need_lib_prefix=no
  8033. need_version=no
  8034. case "$host_cpu" in
  8035. ia64*)
  8036. shrext_cmds='.so'
  8037. hardcode_into_libs=yes
  8038. dynamic_linker="$host_os dld.so"
  8039. shlibpath_var=LD_LIBRARY_PATH
  8040. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8042. soname_spec='${libname}${release}${shared_ext}$major'
  8043. if test "X$HPUX_IA64_MODE" = X32; then
  8044. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8045. else
  8046. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8047. fi
  8048. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8049. ;;
  8050. hppa*64*)
  8051. shrext_cmds='.sl'
  8052. hardcode_into_libs=yes
  8053. dynamic_linker="$host_os dld.sl"
  8054. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8055. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8057. soname_spec='${libname}${release}${shared_ext}$major'
  8058. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8059. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8060. ;;
  8061. *)
  8062. shrext_cmds='.sl'
  8063. dynamic_linker="$host_os dld.sl"
  8064. shlibpath_var=SHLIB_PATH
  8065. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8067. soname_spec='${libname}${release}${shared_ext}$major'
  8068. ;;
  8069. esac
  8070. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8071. postinstall_cmds='chmod 555 $lib'
  8072. ;;
  8073. irix5* | irix6* | nonstopux*)
  8074. case $host_os in
  8075. nonstopux*) version_type=nonstopux ;;
  8076. *)
  8077. if test "$lt_cv_prog_gnu_ld" = yes; then
  8078. version_type=linux
  8079. else
  8080. version_type=irix
  8081. fi ;;
  8082. esac
  8083. need_lib_prefix=no
  8084. need_version=no
  8085. soname_spec='${libname}${release}${shared_ext}$major'
  8086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8087. case $host_os in
  8088. irix5* | nonstopux*)
  8089. libsuff= shlibsuff=
  8090. ;;
  8091. *)
  8092. case $LD in # libtool.m4 will add one of these switches to LD
  8093. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8094. libsuff= shlibsuff= libmagic=32-bit;;
  8095. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8096. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8097. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8098. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8099. *) libsuff= shlibsuff= libmagic=never-match;;
  8100. esac
  8101. ;;
  8102. esac
  8103. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8104. shlibpath_overrides_runpath=no
  8105. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8106. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8107. hardcode_into_libs=yes
  8108. ;;
  8109. # No shared lib support for Linux oldld, aout, or coff.
  8110. linux*oldld* | linux*aout* | linux*coff*)
  8111. dynamic_linker=no
  8112. ;;
  8113. # This must be Linux ELF.
  8114. linux*)
  8115. version_type=linux
  8116. need_lib_prefix=no
  8117. need_version=no
  8118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8119. soname_spec='${libname}${release}${shared_ext}$major'
  8120. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8121. shlibpath_var=LD_LIBRARY_PATH
  8122. shlibpath_overrides_runpath=no
  8123. # This implies no fast_install, which is unacceptable.
  8124. # Some rework will be needed to allow for fast_install
  8125. # before this can be enabled.
  8126. hardcode_into_libs=yes
  8127. # Append ld.so.conf contents to the search path
  8128. if test -f /etc/ld.so.conf; then
  8129. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8130. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8131. fi
  8132. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8133. # powerpc, because MkLinux only supported shared libraries with the
  8134. # GNU dynamic linker. Since this was broken with cross compilers,
  8135. # most powerpc-linux boxes support dynamic linking these days and
  8136. # people can always --disable-shared, the test was removed, and we
  8137. # assume the GNU/Linux dynamic linker is in use.
  8138. dynamic_linker='GNU/Linux ld.so'
  8139. ;;
  8140. knetbsd*-gnu)
  8141. version_type=linux
  8142. need_lib_prefix=no
  8143. need_version=no
  8144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8145. soname_spec='${libname}${release}${shared_ext}$major'
  8146. shlibpath_var=LD_LIBRARY_PATH
  8147. shlibpath_overrides_runpath=no
  8148. hardcode_into_libs=yes
  8149. dynamic_linker='GNU ld.so'
  8150. ;;
  8151. netbsd*)
  8152. version_type=sunos
  8153. need_lib_prefix=no
  8154. need_version=no
  8155. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8157. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8158. dynamic_linker='NetBSD (a.out) ld.so'
  8159. else
  8160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8161. soname_spec='${libname}${release}${shared_ext}$major'
  8162. dynamic_linker='NetBSD ld.elf_so'
  8163. fi
  8164. shlibpath_var=LD_LIBRARY_PATH
  8165. shlibpath_overrides_runpath=yes
  8166. hardcode_into_libs=yes
  8167. ;;
  8168. newsos6)
  8169. version_type=linux
  8170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8171. shlibpath_var=LD_LIBRARY_PATH
  8172. shlibpath_overrides_runpath=yes
  8173. ;;
  8174. nto-qnx*)
  8175. version_type=linux
  8176. need_lib_prefix=no
  8177. need_version=no
  8178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8179. soname_spec='${libname}${release}${shared_ext}$major'
  8180. shlibpath_var=LD_LIBRARY_PATH
  8181. shlibpath_overrides_runpath=yes
  8182. ;;
  8183. openbsd*)
  8184. version_type=sunos
  8185. need_lib_prefix=no
  8186. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8187. case $host_os in
  8188. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8189. *) need_version=no ;;
  8190. esac
  8191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8192. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8193. shlibpath_var=LD_LIBRARY_PATH
  8194. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8195. case $host_os in
  8196. openbsd2.[89] | openbsd2.[89].*)
  8197. shlibpath_overrides_runpath=no
  8198. ;;
  8199. *)
  8200. shlibpath_overrides_runpath=yes
  8201. ;;
  8202. esac
  8203. else
  8204. shlibpath_overrides_runpath=yes
  8205. fi
  8206. ;;
  8207. os2*)
  8208. libname_spec='$name'
  8209. shrext_cmds=".dll"
  8210. need_lib_prefix=no
  8211. library_names_spec='$libname${shared_ext} $libname.a'
  8212. dynamic_linker='OS/2 ld.exe'
  8213. shlibpath_var=LIBPATH
  8214. ;;
  8215. osf3* | osf4* | osf5*)
  8216. version_type=osf
  8217. need_lib_prefix=no
  8218. need_version=no
  8219. soname_spec='${libname}${release}${shared_ext}$major'
  8220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8221. shlibpath_var=LD_LIBRARY_PATH
  8222. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8223. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8224. ;;
  8225. sco3.2v5*)
  8226. version_type=osf
  8227. soname_spec='${libname}${release}${shared_ext}$major'
  8228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8229. shlibpath_var=LD_LIBRARY_PATH
  8230. ;;
  8231. solaris*)
  8232. version_type=linux
  8233. need_lib_prefix=no
  8234. need_version=no
  8235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8236. soname_spec='${libname}${release}${shared_ext}$major'
  8237. shlibpath_var=LD_LIBRARY_PATH
  8238. shlibpath_overrides_runpath=yes
  8239. hardcode_into_libs=yes
  8240. # ldd complains unless libraries are executable
  8241. postinstall_cmds='chmod +x $lib'
  8242. ;;
  8243. sunos4*)
  8244. version_type=sunos
  8245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8246. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8247. shlibpath_var=LD_LIBRARY_PATH
  8248. shlibpath_overrides_runpath=yes
  8249. if test "$with_gnu_ld" = yes; then
  8250. need_lib_prefix=no
  8251. fi
  8252. need_version=yes
  8253. ;;
  8254. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8255. version_type=linux
  8256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8257. soname_spec='${libname}${release}${shared_ext}$major'
  8258. shlibpath_var=LD_LIBRARY_PATH
  8259. case $host_vendor in
  8260. sni)
  8261. shlibpath_overrides_runpath=no
  8262. need_lib_prefix=no
  8263. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8264. runpath_var=LD_RUN_PATH
  8265. ;;
  8266. siemens)
  8267. need_lib_prefix=no
  8268. ;;
  8269. motorola)
  8270. need_lib_prefix=no
  8271. need_version=no
  8272. shlibpath_overrides_runpath=no
  8273. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8274. ;;
  8275. esac
  8276. ;;
  8277. sysv4*MP*)
  8278. if test -d /usr/nec ;then
  8279. version_type=linux
  8280. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8281. soname_spec='$libname${shared_ext}.$major'
  8282. shlibpath_var=LD_LIBRARY_PATH
  8283. fi
  8284. ;;
  8285. uts4*)
  8286. version_type=linux
  8287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8288. soname_spec='${libname}${release}${shared_ext}$major'
  8289. shlibpath_var=LD_LIBRARY_PATH
  8290. ;;
  8291. *)
  8292. dynamic_linker=no
  8293. ;;
  8294. esac
  8295. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8296. echo "${ECHO_T}$dynamic_linker" >&6; }
  8297. test "$dynamic_linker" = no && can_build_shared=no
  8298. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8299. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8300. hardcode_action=
  8301. if test -n "$hardcode_libdir_flag_spec" || \
  8302. test -n "$runpath_var" || \
  8303. test "X$hardcode_automatic" = "Xyes" ; then
  8304. # We can hardcode non-existant directories.
  8305. if test "$hardcode_direct" != no &&
  8306. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8307. # have to relink, otherwise we might link with an installed library
  8308. # when we should be linking with a yet-to-be-installed one
  8309. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8310. test "$hardcode_minus_L" != no; then
  8311. # Linking always hardcodes the temporary library directory.
  8312. hardcode_action=relink
  8313. else
  8314. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8315. hardcode_action=immediate
  8316. fi
  8317. else
  8318. # We cannot hardcode anything, or else we can only hardcode existing
  8319. # directories.
  8320. hardcode_action=unsupported
  8321. fi
  8322. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8323. echo "${ECHO_T}$hardcode_action" >&6; }
  8324. if test "$hardcode_action" = relink; then
  8325. # Fast installation is not supported
  8326. enable_fast_install=no
  8327. elif test "$shlibpath_overrides_runpath" = yes ||
  8328. test "$enable_shared" = no; then
  8329. # Fast installation is not necessary
  8330. enable_fast_install=needless
  8331. fi
  8332. striplib=
  8333. old_striplib=
  8334. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8335. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8336. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8337. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8338. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8339. { echo "$as_me:$LINENO: result: yes" >&5
  8340. echo "${ECHO_T}yes" >&6; }
  8341. else
  8342. # FIXME - insert some real tests, host_os isn't really good enough
  8343. case $host_os in
  8344. darwin*)
  8345. if test -n "$STRIP" ; then
  8346. striplib="$STRIP -x"
  8347. { echo "$as_me:$LINENO: result: yes" >&5
  8348. echo "${ECHO_T}yes" >&6; }
  8349. else
  8350. { echo "$as_me:$LINENO: result: no" >&5
  8351. echo "${ECHO_T}no" >&6; }
  8352. fi
  8353. ;;
  8354. *)
  8355. { echo "$as_me:$LINENO: result: no" >&5
  8356. echo "${ECHO_T}no" >&6; }
  8357. ;;
  8358. esac
  8359. fi
  8360. if test "x$enable_dlopen" != xyes; then
  8361. enable_dlopen=unknown
  8362. enable_dlopen_self=unknown
  8363. enable_dlopen_self_static=unknown
  8364. else
  8365. lt_cv_dlopen=no
  8366. lt_cv_dlopen_libs=
  8367. case $host_os in
  8368. beos*)
  8369. lt_cv_dlopen="load_add_on"
  8370. lt_cv_dlopen_libs=
  8371. lt_cv_dlopen_self=yes
  8372. ;;
  8373. mingw* | pw32*)
  8374. lt_cv_dlopen="LoadLibrary"
  8375. lt_cv_dlopen_libs=
  8376. ;;
  8377. cygwin*)
  8378. lt_cv_dlopen="dlopen"
  8379. lt_cv_dlopen_libs=
  8380. ;;
  8381. darwin*)
  8382. # if libdl is installed we need to link against it
  8383. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8384. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8385. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8386. echo $ECHO_N "(cached) $ECHO_C" >&6
  8387. else
  8388. ac_check_lib_save_LIBS=$LIBS
  8389. LIBS="-ldl $LIBS"
  8390. cat >conftest.$ac_ext <<_ACEOF
  8391. /* confdefs.h. */
  8392. _ACEOF
  8393. cat confdefs.h >>conftest.$ac_ext
  8394. cat >>conftest.$ac_ext <<_ACEOF
  8395. /* end confdefs.h. */
  8396. /* Override any GCC internal prototype to avoid an error.
  8397. Use char because int might match the return type of a GCC
  8398. builtin and then its argument prototype would still apply. */
  8399. #ifdef __cplusplus
  8400. extern "C"
  8401. #endif
  8402. char dlopen ();
  8403. int
  8404. main ()
  8405. {
  8406. return dlopen ();
  8407. ;
  8408. return 0;
  8409. }
  8410. _ACEOF
  8411. rm -f conftest.$ac_objext conftest$ac_exeext
  8412. if { (ac_try="$ac_link"
  8413. case "(($ac_try" in
  8414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8415. *) ac_try_echo=$ac_try;;
  8416. esac
  8417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8418. (eval "$ac_link") 2>conftest.er1
  8419. ac_status=$?
  8420. grep -v '^ *+' conftest.er1 >conftest.err
  8421. rm -f conftest.er1
  8422. cat conftest.err >&5
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. (exit $ac_status); } && {
  8425. test -z "$ac_c_werror_flag" ||
  8426. test ! -s conftest.err
  8427. } && test -s conftest$ac_exeext &&
  8428. $as_test_x conftest$ac_exeext; then
  8429. ac_cv_lib_dl_dlopen=yes
  8430. else
  8431. echo "$as_me: failed program was:" >&5
  8432. sed 's/^/| /' conftest.$ac_ext >&5
  8433. ac_cv_lib_dl_dlopen=no
  8434. fi
  8435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8436. conftest$ac_exeext conftest.$ac_ext
  8437. LIBS=$ac_check_lib_save_LIBS
  8438. fi
  8439. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8440. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8441. if test $ac_cv_lib_dl_dlopen = yes; then
  8442. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8443. else
  8444. lt_cv_dlopen="dyld"
  8445. lt_cv_dlopen_libs=
  8446. lt_cv_dlopen_self=yes
  8447. fi
  8448. ;;
  8449. *)
  8450. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8451. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8452. if test "${ac_cv_func_shl_load+set}" = set; then
  8453. echo $ECHO_N "(cached) $ECHO_C" >&6
  8454. else
  8455. cat >conftest.$ac_ext <<_ACEOF
  8456. /* confdefs.h. */
  8457. _ACEOF
  8458. cat confdefs.h >>conftest.$ac_ext
  8459. cat >>conftest.$ac_ext <<_ACEOF
  8460. /* end confdefs.h. */
  8461. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8462. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8463. #define shl_load innocuous_shl_load
  8464. /* System header to define __stub macros and hopefully few prototypes,
  8465. which can conflict with char shl_load (); below.
  8466. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8467. <limits.h> exists even on freestanding compilers. */
  8468. #ifdef __STDC__
  8469. # include <limits.h>
  8470. #else
  8471. # include <assert.h>
  8472. #endif
  8473. #undef shl_load
  8474. /* Override any GCC internal prototype to avoid an error.
  8475. Use char because int might match the return type of a GCC
  8476. builtin and then its argument prototype would still apply. */
  8477. #ifdef __cplusplus
  8478. extern "C"
  8479. #endif
  8480. char shl_load ();
  8481. /* The GNU C library defines this for functions which it implements
  8482. to always fail with ENOSYS. Some functions are actually named
  8483. something starting with __ and the normal name is an alias. */
  8484. #if defined __stub_shl_load || defined __stub___shl_load
  8485. choke me
  8486. #endif
  8487. int
  8488. main ()
  8489. {
  8490. return shl_load ();
  8491. ;
  8492. return 0;
  8493. }
  8494. _ACEOF
  8495. rm -f conftest.$ac_objext conftest$ac_exeext
  8496. if { (ac_try="$ac_link"
  8497. case "(($ac_try" in
  8498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8499. *) ac_try_echo=$ac_try;;
  8500. esac
  8501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8502. (eval "$ac_link") 2>conftest.er1
  8503. ac_status=$?
  8504. grep -v '^ *+' conftest.er1 >conftest.err
  8505. rm -f conftest.er1
  8506. cat conftest.err >&5
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. (exit $ac_status); } && {
  8509. test -z "$ac_c_werror_flag" ||
  8510. test ! -s conftest.err
  8511. } && test -s conftest$ac_exeext &&
  8512. $as_test_x conftest$ac_exeext; then
  8513. ac_cv_func_shl_load=yes
  8514. else
  8515. echo "$as_me: failed program was:" >&5
  8516. sed 's/^/| /' conftest.$ac_ext >&5
  8517. ac_cv_func_shl_load=no
  8518. fi
  8519. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8520. conftest$ac_exeext conftest.$ac_ext
  8521. fi
  8522. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8523. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8524. if test $ac_cv_func_shl_load = yes; then
  8525. lt_cv_dlopen="shl_load"
  8526. else
  8527. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8528. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8529. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8530. echo $ECHO_N "(cached) $ECHO_C" >&6
  8531. else
  8532. ac_check_lib_save_LIBS=$LIBS
  8533. LIBS="-ldld $LIBS"
  8534. cat >conftest.$ac_ext <<_ACEOF
  8535. /* confdefs.h. */
  8536. _ACEOF
  8537. cat confdefs.h >>conftest.$ac_ext
  8538. cat >>conftest.$ac_ext <<_ACEOF
  8539. /* end confdefs.h. */
  8540. /* Override any GCC internal prototype to avoid an error.
  8541. Use char because int might match the return type of a GCC
  8542. builtin and then its argument prototype would still apply. */
  8543. #ifdef __cplusplus
  8544. extern "C"
  8545. #endif
  8546. char shl_load ();
  8547. int
  8548. main ()
  8549. {
  8550. return shl_load ();
  8551. ;
  8552. return 0;
  8553. }
  8554. _ACEOF
  8555. rm -f conftest.$ac_objext conftest$ac_exeext
  8556. if { (ac_try="$ac_link"
  8557. case "(($ac_try" in
  8558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8559. *) ac_try_echo=$ac_try;;
  8560. esac
  8561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8562. (eval "$ac_link") 2>conftest.er1
  8563. ac_status=$?
  8564. grep -v '^ *+' conftest.er1 >conftest.err
  8565. rm -f conftest.er1
  8566. cat conftest.err >&5
  8567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8568. (exit $ac_status); } && {
  8569. test -z "$ac_c_werror_flag" ||
  8570. test ! -s conftest.err
  8571. } && test -s conftest$ac_exeext &&
  8572. $as_test_x conftest$ac_exeext; then
  8573. ac_cv_lib_dld_shl_load=yes
  8574. else
  8575. echo "$as_me: failed program was:" >&5
  8576. sed 's/^/| /' conftest.$ac_ext >&5
  8577. ac_cv_lib_dld_shl_load=no
  8578. fi
  8579. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8580. conftest$ac_exeext conftest.$ac_ext
  8581. LIBS=$ac_check_lib_save_LIBS
  8582. fi
  8583. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8584. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8585. if test $ac_cv_lib_dld_shl_load = yes; then
  8586. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8587. else
  8588. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8589. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8590. if test "${ac_cv_func_dlopen+set}" = set; then
  8591. echo $ECHO_N "(cached) $ECHO_C" >&6
  8592. else
  8593. cat >conftest.$ac_ext <<_ACEOF
  8594. /* confdefs.h. */
  8595. _ACEOF
  8596. cat confdefs.h >>conftest.$ac_ext
  8597. cat >>conftest.$ac_ext <<_ACEOF
  8598. /* end confdefs.h. */
  8599. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8600. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8601. #define dlopen innocuous_dlopen
  8602. /* System header to define __stub macros and hopefully few prototypes,
  8603. which can conflict with char dlopen (); below.
  8604. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8605. <limits.h> exists even on freestanding compilers. */
  8606. #ifdef __STDC__
  8607. # include <limits.h>
  8608. #else
  8609. # include <assert.h>
  8610. #endif
  8611. #undef dlopen
  8612. /* Override any GCC internal prototype to avoid an error.
  8613. Use char because int might match the return type of a GCC
  8614. builtin and then its argument prototype would still apply. */
  8615. #ifdef __cplusplus
  8616. extern "C"
  8617. #endif
  8618. char dlopen ();
  8619. /* The GNU C library defines this for functions which it implements
  8620. to always fail with ENOSYS. Some functions are actually named
  8621. something starting with __ and the normal name is an alias. */
  8622. #if defined __stub_dlopen || defined __stub___dlopen
  8623. choke me
  8624. #endif
  8625. int
  8626. main ()
  8627. {
  8628. return dlopen ();
  8629. ;
  8630. return 0;
  8631. }
  8632. _ACEOF
  8633. rm -f conftest.$ac_objext conftest$ac_exeext
  8634. if { (ac_try="$ac_link"
  8635. case "(($ac_try" in
  8636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8637. *) ac_try_echo=$ac_try;;
  8638. esac
  8639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8640. (eval "$ac_link") 2>conftest.er1
  8641. ac_status=$?
  8642. grep -v '^ *+' conftest.er1 >conftest.err
  8643. rm -f conftest.er1
  8644. cat conftest.err >&5
  8645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8646. (exit $ac_status); } && {
  8647. test -z "$ac_c_werror_flag" ||
  8648. test ! -s conftest.err
  8649. } && test -s conftest$ac_exeext &&
  8650. $as_test_x conftest$ac_exeext; then
  8651. ac_cv_func_dlopen=yes
  8652. else
  8653. echo "$as_me: failed program was:" >&5
  8654. sed 's/^/| /' conftest.$ac_ext >&5
  8655. ac_cv_func_dlopen=no
  8656. fi
  8657. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8658. conftest$ac_exeext conftest.$ac_ext
  8659. fi
  8660. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8661. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8662. if test $ac_cv_func_dlopen = yes; then
  8663. lt_cv_dlopen="dlopen"
  8664. else
  8665. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8666. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8667. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8668. echo $ECHO_N "(cached) $ECHO_C" >&6
  8669. else
  8670. ac_check_lib_save_LIBS=$LIBS
  8671. LIBS="-ldl $LIBS"
  8672. cat >conftest.$ac_ext <<_ACEOF
  8673. /* confdefs.h. */
  8674. _ACEOF
  8675. cat confdefs.h >>conftest.$ac_ext
  8676. cat >>conftest.$ac_ext <<_ACEOF
  8677. /* end confdefs.h. */
  8678. /* Override any GCC internal prototype to avoid an error.
  8679. Use char because int might match the return type of a GCC
  8680. builtin and then its argument prototype would still apply. */
  8681. #ifdef __cplusplus
  8682. extern "C"
  8683. #endif
  8684. char dlopen ();
  8685. int
  8686. main ()
  8687. {
  8688. return dlopen ();
  8689. ;
  8690. return 0;
  8691. }
  8692. _ACEOF
  8693. rm -f conftest.$ac_objext conftest$ac_exeext
  8694. if { (ac_try="$ac_link"
  8695. case "(($ac_try" in
  8696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8697. *) ac_try_echo=$ac_try;;
  8698. esac
  8699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8700. (eval "$ac_link") 2>conftest.er1
  8701. ac_status=$?
  8702. grep -v '^ *+' conftest.er1 >conftest.err
  8703. rm -f conftest.er1
  8704. cat conftest.err >&5
  8705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8706. (exit $ac_status); } && {
  8707. test -z "$ac_c_werror_flag" ||
  8708. test ! -s conftest.err
  8709. } && test -s conftest$ac_exeext &&
  8710. $as_test_x conftest$ac_exeext; then
  8711. ac_cv_lib_dl_dlopen=yes
  8712. else
  8713. echo "$as_me: failed program was:" >&5
  8714. sed 's/^/| /' conftest.$ac_ext >&5
  8715. ac_cv_lib_dl_dlopen=no
  8716. fi
  8717. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8718. conftest$ac_exeext conftest.$ac_ext
  8719. LIBS=$ac_check_lib_save_LIBS
  8720. fi
  8721. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8722. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8723. if test $ac_cv_lib_dl_dlopen = yes; then
  8724. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8725. else
  8726. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8727. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8728. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8729. echo $ECHO_N "(cached) $ECHO_C" >&6
  8730. else
  8731. ac_check_lib_save_LIBS=$LIBS
  8732. LIBS="-lsvld $LIBS"
  8733. cat >conftest.$ac_ext <<_ACEOF
  8734. /* confdefs.h. */
  8735. _ACEOF
  8736. cat confdefs.h >>conftest.$ac_ext
  8737. cat >>conftest.$ac_ext <<_ACEOF
  8738. /* end confdefs.h. */
  8739. /* Override any GCC internal prototype to avoid an error.
  8740. Use char because int might match the return type of a GCC
  8741. builtin and then its argument prototype would still apply. */
  8742. #ifdef __cplusplus
  8743. extern "C"
  8744. #endif
  8745. char dlopen ();
  8746. int
  8747. main ()
  8748. {
  8749. return dlopen ();
  8750. ;
  8751. return 0;
  8752. }
  8753. _ACEOF
  8754. rm -f conftest.$ac_objext conftest$ac_exeext
  8755. if { (ac_try="$ac_link"
  8756. case "(($ac_try" in
  8757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8758. *) ac_try_echo=$ac_try;;
  8759. esac
  8760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8761. (eval "$ac_link") 2>conftest.er1
  8762. ac_status=$?
  8763. grep -v '^ *+' conftest.er1 >conftest.err
  8764. rm -f conftest.er1
  8765. cat conftest.err >&5
  8766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8767. (exit $ac_status); } && {
  8768. test -z "$ac_c_werror_flag" ||
  8769. test ! -s conftest.err
  8770. } && test -s conftest$ac_exeext &&
  8771. $as_test_x conftest$ac_exeext; then
  8772. ac_cv_lib_svld_dlopen=yes
  8773. else
  8774. echo "$as_me: failed program was:" >&5
  8775. sed 's/^/| /' conftest.$ac_ext >&5
  8776. ac_cv_lib_svld_dlopen=no
  8777. fi
  8778. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8779. conftest$ac_exeext conftest.$ac_ext
  8780. LIBS=$ac_check_lib_save_LIBS
  8781. fi
  8782. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8783. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8784. if test $ac_cv_lib_svld_dlopen = yes; then
  8785. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8786. else
  8787. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8788. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8789. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8790. echo $ECHO_N "(cached) $ECHO_C" >&6
  8791. else
  8792. ac_check_lib_save_LIBS=$LIBS
  8793. LIBS="-ldld $LIBS"
  8794. cat >conftest.$ac_ext <<_ACEOF
  8795. /* confdefs.h. */
  8796. _ACEOF
  8797. cat confdefs.h >>conftest.$ac_ext
  8798. cat >>conftest.$ac_ext <<_ACEOF
  8799. /* end confdefs.h. */
  8800. /* Override any GCC internal prototype to avoid an error.
  8801. Use char because int might match the return type of a GCC
  8802. builtin and then its argument prototype would still apply. */
  8803. #ifdef __cplusplus
  8804. extern "C"
  8805. #endif
  8806. char dld_link ();
  8807. int
  8808. main ()
  8809. {
  8810. return dld_link ();
  8811. ;
  8812. return 0;
  8813. }
  8814. _ACEOF
  8815. rm -f conftest.$ac_objext conftest$ac_exeext
  8816. if { (ac_try="$ac_link"
  8817. case "(($ac_try" in
  8818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8819. *) ac_try_echo=$ac_try;;
  8820. esac
  8821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8822. (eval "$ac_link") 2>conftest.er1
  8823. ac_status=$?
  8824. grep -v '^ *+' conftest.er1 >conftest.err
  8825. rm -f conftest.er1
  8826. cat conftest.err >&5
  8827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8828. (exit $ac_status); } && {
  8829. test -z "$ac_c_werror_flag" ||
  8830. test ! -s conftest.err
  8831. } && test -s conftest$ac_exeext &&
  8832. $as_test_x conftest$ac_exeext; then
  8833. ac_cv_lib_dld_dld_link=yes
  8834. else
  8835. echo "$as_me: failed program was:" >&5
  8836. sed 's/^/| /' conftest.$ac_ext >&5
  8837. ac_cv_lib_dld_dld_link=no
  8838. fi
  8839. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8840. conftest$ac_exeext conftest.$ac_ext
  8841. LIBS=$ac_check_lib_save_LIBS
  8842. fi
  8843. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8844. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8845. if test $ac_cv_lib_dld_dld_link = yes; then
  8846. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8847. fi
  8848. fi
  8849. fi
  8850. fi
  8851. fi
  8852. fi
  8853. ;;
  8854. esac
  8855. if test "x$lt_cv_dlopen" != xno; then
  8856. enable_dlopen=yes
  8857. else
  8858. enable_dlopen=no
  8859. fi
  8860. case $lt_cv_dlopen in
  8861. dlopen)
  8862. save_CPPFLAGS="$CPPFLAGS"
  8863. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8864. save_LDFLAGS="$LDFLAGS"
  8865. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8866. save_LIBS="$LIBS"
  8867. LIBS="$lt_cv_dlopen_libs $LIBS"
  8868. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8869. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8870. if test "${lt_cv_dlopen_self+set}" = set; then
  8871. echo $ECHO_N "(cached) $ECHO_C" >&6
  8872. else
  8873. if test "$cross_compiling" = yes; then :
  8874. lt_cv_dlopen_self=cross
  8875. else
  8876. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8877. lt_status=$lt_dlunknown
  8878. cat > conftest.$ac_ext <<EOF
  8879. #line 9879 "configure"
  8880. #include "confdefs.h"
  8881. #if HAVE_DLFCN_H
  8882. #include <dlfcn.h>
  8883. #endif
  8884. #include <stdio.h>
  8885. #ifdef RTLD_GLOBAL
  8886. # define LT_DLGLOBAL RTLD_GLOBAL
  8887. #else
  8888. # ifdef DL_GLOBAL
  8889. # define LT_DLGLOBAL DL_GLOBAL
  8890. # else
  8891. # define LT_DLGLOBAL 0
  8892. # endif
  8893. #endif
  8894. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8895. find out it does not work in some platform. */
  8896. #ifndef LT_DLLAZY_OR_NOW
  8897. # ifdef RTLD_LAZY
  8898. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8899. # else
  8900. # ifdef DL_LAZY
  8901. # define LT_DLLAZY_OR_NOW DL_LAZY
  8902. # else
  8903. # ifdef RTLD_NOW
  8904. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8905. # else
  8906. # ifdef DL_NOW
  8907. # define LT_DLLAZY_OR_NOW DL_NOW
  8908. # else
  8909. # define LT_DLLAZY_OR_NOW 0
  8910. # endif
  8911. # endif
  8912. # endif
  8913. # endif
  8914. #endif
  8915. #ifdef __cplusplus
  8916. extern "C" void exit (int);
  8917. #endif
  8918. void fnord() { int i=42;}
  8919. int main ()
  8920. {
  8921. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8922. int status = $lt_dlunknown;
  8923. if (self)
  8924. {
  8925. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8926. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8927. /* dlclose (self); */
  8928. }
  8929. exit (status);
  8930. }
  8931. EOF
  8932. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8933. (eval $ac_link) 2>&5
  8934. ac_status=$?
  8935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8936. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8937. (./conftest; exit; ) 2>/dev/null
  8938. lt_status=$?
  8939. case x$lt_status in
  8940. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8941. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8942. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  8943. esac
  8944. else :
  8945. # compilation failed
  8946. lt_cv_dlopen_self=no
  8947. fi
  8948. fi
  8949. rm -fr conftest*
  8950. fi
  8951. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8952. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8953. if test "x$lt_cv_dlopen_self" = xyes; then
  8954. LDFLAGS="$LDFLAGS $link_static_flag"
  8955. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8956. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8957. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8958. echo $ECHO_N "(cached) $ECHO_C" >&6
  8959. else
  8960. if test "$cross_compiling" = yes; then :
  8961. lt_cv_dlopen_self_static=cross
  8962. else
  8963. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8964. lt_status=$lt_dlunknown
  8965. cat > conftest.$ac_ext <<EOF
  8966. #line 9977 "configure"
  8967. #include "confdefs.h"
  8968. #if HAVE_DLFCN_H
  8969. #include <dlfcn.h>
  8970. #endif
  8971. #include <stdio.h>
  8972. #ifdef RTLD_GLOBAL
  8973. # define LT_DLGLOBAL RTLD_GLOBAL
  8974. #else
  8975. # ifdef DL_GLOBAL
  8976. # define LT_DLGLOBAL DL_GLOBAL
  8977. # else
  8978. # define LT_DLGLOBAL 0
  8979. # endif
  8980. #endif
  8981. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8982. find out it does not work in some platform. */
  8983. #ifndef LT_DLLAZY_OR_NOW
  8984. # ifdef RTLD_LAZY
  8985. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8986. # else
  8987. # ifdef DL_LAZY
  8988. # define LT_DLLAZY_OR_NOW DL_LAZY
  8989. # else
  8990. # ifdef RTLD_NOW
  8991. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8992. # else
  8993. # ifdef DL_NOW
  8994. # define LT_DLLAZY_OR_NOW DL_NOW
  8995. # else
  8996. # define LT_DLLAZY_OR_NOW 0
  8997. # endif
  8998. # endif
  8999. # endif
  9000. # endif
  9001. #endif
  9002. #ifdef __cplusplus
  9003. extern "C" void exit (int);
  9004. #endif
  9005. void fnord() { int i=42;}
  9006. int main ()
  9007. {
  9008. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9009. int status = $lt_dlunknown;
  9010. if (self)
  9011. {
  9012. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9013. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9014. /* dlclose (self); */
  9015. }
  9016. exit (status);
  9017. }
  9018. EOF
  9019. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9020. (eval $ac_link) 2>&5
  9021. ac_status=$?
  9022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9023. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9024. (./conftest; exit; ) 2>/dev/null
  9025. lt_status=$?
  9026. case x$lt_status in
  9027. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9028. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9029. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  9030. esac
  9031. else :
  9032. # compilation failed
  9033. lt_cv_dlopen_self_static=no
  9034. fi
  9035. fi
  9036. rm -fr conftest*
  9037. fi
  9038. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9039. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9040. fi
  9041. CPPFLAGS="$save_CPPFLAGS"
  9042. LDFLAGS="$save_LDFLAGS"
  9043. LIBS="$save_LIBS"
  9044. ;;
  9045. esac
  9046. case $lt_cv_dlopen_self in
  9047. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9048. *) enable_dlopen_self=unknown ;;
  9049. esac
  9050. case $lt_cv_dlopen_self_static in
  9051. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9052. *) enable_dlopen_self_static=unknown ;;
  9053. esac
  9054. fi
  9055. # Report which librarie types wil actually be built
  9056. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9057. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9058. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9059. echo "${ECHO_T}$can_build_shared" >&6; }
  9060. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9061. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9062. test "$can_build_shared" = "no" && enable_shared=no
  9063. # On AIX, shared libraries and static libraries use the same namespace, and
  9064. # are all built from PIC.
  9065. case "$host_os" in
  9066. aix3*)
  9067. test "$enable_shared" = yes && enable_static=no
  9068. if test -n "$RANLIB"; then
  9069. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9070. postinstall_cmds='$RANLIB $lib'
  9071. fi
  9072. ;;
  9073. aix4* | aix5*)
  9074. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9075. test "$enable_shared" = yes && enable_static=no
  9076. fi
  9077. ;;
  9078. esac
  9079. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9080. echo "${ECHO_T}$enable_shared" >&6; }
  9081. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9082. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9083. # Make sure either enable_shared or enable_static is yes.
  9084. test "$enable_shared" = yes || enable_static=yes
  9085. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9086. echo "${ECHO_T}$enable_static" >&6; }
  9087. # The else clause should only fire when bootstrapping the
  9088. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9089. # with your package, and you will get complaints that there are
  9090. # no rules to generate ltmain.sh.
  9091. if test -f "$ltmain"; then
  9092. # See if we are running on zsh, and set the options which allow our commands through
  9093. # without removal of \ escapes.
  9094. if test -n "${ZSH_VERSION+set}" ; then
  9095. setopt NO_GLOB_SUBST
  9096. fi
  9097. # Now quote all the things that may contain metacharacters while being
  9098. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9099. # variables and quote the copies for generation of the libtool script.
  9100. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  9101. SED SHELL STRIP \
  9102. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9103. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9104. deplibs_check_method reload_flag reload_cmds need_locks \
  9105. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9106. lt_cv_sys_global_symbol_to_c_name_address \
  9107. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9108. old_postinstall_cmds old_postuninstall_cmds \
  9109. compiler \
  9110. CC \
  9111. LD \
  9112. lt_prog_compiler_wl \
  9113. lt_prog_compiler_pic \
  9114. lt_prog_compiler_static \
  9115. lt_prog_compiler_no_builtin_flag \
  9116. export_dynamic_flag_spec \
  9117. thread_safe_flag_spec \
  9118. whole_archive_flag_spec \
  9119. enable_shared_with_static_runtimes \
  9120. old_archive_cmds \
  9121. old_archive_from_new_cmds \
  9122. predep_objects \
  9123. postdep_objects \
  9124. predeps \
  9125. postdeps \
  9126. compiler_lib_search_path \
  9127. archive_cmds \
  9128. archive_expsym_cmds \
  9129. postinstall_cmds \
  9130. postuninstall_cmds \
  9131. old_archive_from_expsyms_cmds \
  9132. allow_undefined_flag \
  9133. no_undefined_flag \
  9134. export_symbols_cmds \
  9135. hardcode_libdir_flag_spec \
  9136. hardcode_libdir_flag_spec_ld \
  9137. hardcode_libdir_separator \
  9138. hardcode_automatic \
  9139. module_cmds \
  9140. module_expsym_cmds \
  9141. lt_cv_prog_compiler_c_o \
  9142. exclude_expsyms \
  9143. include_expsyms; do
  9144. case $var in
  9145. old_archive_cmds | \
  9146. old_archive_from_new_cmds | \
  9147. archive_cmds | \
  9148. archive_expsym_cmds | \
  9149. module_cmds | \
  9150. module_expsym_cmds | \
  9151. old_archive_from_expsyms_cmds | \
  9152. export_symbols_cmds | \
  9153. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9154. postinstall_cmds | postuninstall_cmds | \
  9155. old_postinstall_cmds | old_postuninstall_cmds | \
  9156. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9157. # Double-quote double-evaled strings.
  9158. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9159. ;;
  9160. *)
  9161. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9162. ;;
  9163. esac
  9164. done
  9165. case $lt_echo in
  9166. *'\$0 --fallback-echo"')
  9167. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9168. ;;
  9169. esac
  9170. cfgfile="${ofile}T"
  9171. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9172. $rm -f "$cfgfile"
  9173. { echo "$as_me:$LINENO: creating $ofile" >&5
  9174. echo "$as_me: creating $ofile" >&6;}
  9175. cat <<__EOF__ >> "$cfgfile"
  9176. #! $SHELL
  9177. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9178. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9179. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9180. #
  9181. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9182. # Free Software Foundation, Inc.
  9183. #
  9184. # This file is part of GNU Libtool:
  9185. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9186. #
  9187. # This program is free software; you can redistribute it and/or modify
  9188. # it under the terms of the GNU General Public License as published by
  9189. # the Free Software Foundation; either version 2 of the License, or
  9190. # (at your option) any later version.
  9191. #
  9192. # This program is distributed in the hope that it will be useful, but
  9193. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9194. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9195. # General Public License for more details.
  9196. #
  9197. # You should have received a copy of the GNU General Public License
  9198. # along with this program; if not, write to the Free Software
  9199. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9200. #
  9201. # As a special exception to the GNU General Public License, if you
  9202. # distribute this file as part of a program that contains a
  9203. # configuration script generated by Autoconf, you may include it under
  9204. # the same distribution terms that you use for the rest of that program.
  9205. # A sed program that does not truncate output.
  9206. SED=$lt_SED
  9207. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9208. Xsed="$SED -e 1s/^X//"
  9209. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9210. # if CDPATH is set.
  9211. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9212. # The names of the tagged configurations supported by this script.
  9213. available_tags=
  9214. # ### BEGIN LIBTOOL CONFIG
  9215. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9216. # Shell to use when invoking shell scripts.
  9217. SHELL=$lt_SHELL
  9218. # Whether or not to build shared libraries.
  9219. build_libtool_libs=$enable_shared
  9220. # Whether or not to build static libraries.
  9221. build_old_libs=$enable_static
  9222. # Whether or not to add -lc for building shared libraries.
  9223. build_libtool_need_lc=$archive_cmds_need_lc
  9224. # Whether or not to disallow shared libs when runtime libs are static
  9225. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9226. # Whether or not to optimize for fast installation.
  9227. fast_install=$enable_fast_install
  9228. # The host system.
  9229. host_alias=$host_alias
  9230. host=$host
  9231. host_os=$host_os
  9232. # The build system.
  9233. build_alias=$build_alias
  9234. build=$build
  9235. build_os=$build_os
  9236. # An echo program that does not interpret backslashes.
  9237. echo=$lt_echo
  9238. # The archiver.
  9239. AR=$lt_AR
  9240. AR_FLAGS=$lt_AR_FLAGS
  9241. # A C compiler.
  9242. LTCC=$lt_LTCC
  9243. # A language-specific compiler.
  9244. CC=$lt_compiler
  9245. # Is the compiler the GNU C compiler?
  9246. with_gcc=$GCC
  9247. # An ERE matcher.
  9248. EGREP=$lt_EGREP
  9249. # The linker used to build libraries.
  9250. LD=$lt_LD
  9251. # Whether we need hard or soft links.
  9252. LN_S=$lt_LN_S
  9253. # A BSD-compatible nm program.
  9254. NM=$lt_NM
  9255. # A symbol stripping program
  9256. STRIP=$lt_STRIP
  9257. # Used to examine libraries when file_magic_cmd begins "file"
  9258. MAGIC_CMD=$MAGIC_CMD
  9259. # Used on cygwin: DLL creation program.
  9260. DLLTOOL="$DLLTOOL"
  9261. # Used on cygwin: object dumper.
  9262. OBJDUMP="$OBJDUMP"
  9263. # Used on cygwin: assembler.
  9264. AS="$AS"
  9265. # The name of the directory that contains temporary libtool files.
  9266. objdir=$objdir
  9267. # How to create reloadable object files.
  9268. reload_flag=$lt_reload_flag
  9269. reload_cmds=$lt_reload_cmds
  9270. # How to pass a linker flag through the compiler.
  9271. wl=$lt_lt_prog_compiler_wl
  9272. # Object file suffix (normally "o").
  9273. objext="$ac_objext"
  9274. # Old archive suffix (normally "a").
  9275. libext="$libext"
  9276. # Shared library suffix (normally ".so").
  9277. shrext_cmds='$shrext_cmds'
  9278. # Executable file suffix (normally "").
  9279. exeext="$exeext"
  9280. # Additional compiler flags for building library objects.
  9281. pic_flag=$lt_lt_prog_compiler_pic
  9282. pic_mode=$pic_mode
  9283. # What is the maximum length of a command?
  9284. max_cmd_len=$lt_cv_sys_max_cmd_len
  9285. # Does compiler simultaneously support -c and -o options?
  9286. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9287. # Must we lock files when doing compilation?
  9288. need_locks=$lt_need_locks
  9289. # Do we need the lib prefix for modules?
  9290. need_lib_prefix=$need_lib_prefix
  9291. # Do we need a version for libraries?
  9292. need_version=$need_version
  9293. # Whether dlopen is supported.
  9294. dlopen_support=$enable_dlopen
  9295. # Whether dlopen of programs is supported.
  9296. dlopen_self=$enable_dlopen_self
  9297. # Whether dlopen of statically linked programs is supported.
  9298. dlopen_self_static=$enable_dlopen_self_static
  9299. # Compiler flag to prevent dynamic linking.
  9300. link_static_flag=$lt_lt_prog_compiler_static
  9301. # Compiler flag to turn off builtin functions.
  9302. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9303. # Compiler flag to allow reflexive dlopens.
  9304. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9305. # Compiler flag to generate shared objects directly from archives.
  9306. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9307. # Compiler flag to generate thread-safe objects.
  9308. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9309. # Library versioning type.
  9310. version_type=$version_type
  9311. # Format of library name prefix.
  9312. libname_spec=$lt_libname_spec
  9313. # List of archive names. First name is the real one, the rest are links.
  9314. # The last name is the one that the linker finds with -lNAME.
  9315. library_names_spec=$lt_library_names_spec
  9316. # The coded name of the library, if different from the real name.
  9317. soname_spec=$lt_soname_spec
  9318. # Commands used to build and install an old-style archive.
  9319. RANLIB=$lt_RANLIB
  9320. old_archive_cmds=$lt_old_archive_cmds
  9321. old_postinstall_cmds=$lt_old_postinstall_cmds
  9322. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9323. # Create an old-style archive from a shared archive.
  9324. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9325. # Create a temporary old-style archive to link instead of a shared archive.
  9326. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9327. # Commands used to build and install a shared archive.
  9328. archive_cmds=$lt_archive_cmds
  9329. archive_expsym_cmds=$lt_archive_expsym_cmds
  9330. postinstall_cmds=$lt_postinstall_cmds
  9331. postuninstall_cmds=$lt_postuninstall_cmds
  9332. # Commands used to build a loadable module (assumed same as above if empty)
  9333. module_cmds=$lt_module_cmds
  9334. module_expsym_cmds=$lt_module_expsym_cmds
  9335. # Commands to strip libraries.
  9336. old_striplib=$lt_old_striplib
  9337. striplib=$lt_striplib
  9338. # Dependencies to place before the objects being linked to create a
  9339. # shared library.
  9340. predep_objects=$lt_predep_objects
  9341. # Dependencies to place after the objects being linked to create a
  9342. # shared library.
  9343. postdep_objects=$lt_postdep_objects
  9344. # Dependencies to place before the objects being linked to create a
  9345. # shared library.
  9346. predeps=$lt_predeps
  9347. # Dependencies to place after the objects being linked to create a
  9348. # shared library.
  9349. postdeps=$lt_postdeps
  9350. # The library search path used internally by the compiler when linking
  9351. # a shared library.
  9352. compiler_lib_search_path=$lt_compiler_lib_search_path
  9353. # Method to check whether dependent libraries are shared objects.
  9354. deplibs_check_method=$lt_deplibs_check_method
  9355. # Command to use when deplibs_check_method == file_magic.
  9356. file_magic_cmd=$lt_file_magic_cmd
  9357. # Flag that allows shared libraries with undefined symbols to be built.
  9358. allow_undefined_flag=$lt_allow_undefined_flag
  9359. # Flag that forces no undefined symbols.
  9360. no_undefined_flag=$lt_no_undefined_flag
  9361. # Commands used to finish a libtool library installation in a directory.
  9362. finish_cmds=$lt_finish_cmds
  9363. # Same as above, but a single script fragment to be evaled but not shown.
  9364. finish_eval=$lt_finish_eval
  9365. # Take the output of nm and produce a listing of raw symbols and C names.
  9366. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9367. # Transform the output of nm in a proper C declaration
  9368. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9369. # Transform the output of nm in a C name address pair
  9370. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9371. # This is the shared library runtime path variable.
  9372. runpath_var=$runpath_var
  9373. # This is the shared library path variable.
  9374. shlibpath_var=$shlibpath_var
  9375. # Is shlibpath searched before the hard-coded library search path?
  9376. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9377. # How to hardcode a shared library path into an executable.
  9378. hardcode_action=$hardcode_action
  9379. # Whether we should hardcode library paths into libraries.
  9380. hardcode_into_libs=$hardcode_into_libs
  9381. # Flag to hardcode \$libdir into a binary during linking.
  9382. # This must work even if \$libdir does not exist.
  9383. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9384. # If ld is used when linking, flag to hardcode \$libdir into
  9385. # a binary during linking. This must work even if \$libdir does
  9386. # not exist.
  9387. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9388. # Whether we need a single -rpath flag with a separated argument.
  9389. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9390. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9391. # resulting binary.
  9392. hardcode_direct=$hardcode_direct
  9393. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9394. # resulting binary.
  9395. hardcode_minus_L=$hardcode_minus_L
  9396. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9397. # the resulting binary.
  9398. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9399. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9400. # and all subsequent libraries and executables linked against it.
  9401. hardcode_automatic=$hardcode_automatic
  9402. # Variables whose values should be saved in libtool wrapper scripts and
  9403. # restored at relink time.
  9404. variables_saved_for_relink="$variables_saved_for_relink"
  9405. # Whether libtool must link a program against all its dependency libraries.
  9406. link_all_deplibs=$link_all_deplibs
  9407. # Compile-time system search path for libraries
  9408. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9409. # Run-time system search path for libraries
  9410. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9411. # Fix the shell variable \$srcfile for the compiler.
  9412. fix_srcfile_path="$fix_srcfile_path"
  9413. # Set to yes if exported symbols are required.
  9414. always_export_symbols=$always_export_symbols
  9415. # The commands to list exported symbols.
  9416. export_symbols_cmds=$lt_export_symbols_cmds
  9417. # The commands to extract the exported symbol list from a shared archive.
  9418. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9419. # Symbols that should not be listed in the preloaded symbols.
  9420. exclude_expsyms=$lt_exclude_expsyms
  9421. # Symbols that must always be exported.
  9422. include_expsyms=$lt_include_expsyms
  9423. # ### END LIBTOOL CONFIG
  9424. __EOF__
  9425. case $host_os in
  9426. aix3*)
  9427. cat <<\EOF >> "$cfgfile"
  9428. # AIX sometimes has problems with the GCC collect2 program. For some
  9429. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9430. # vanish in a puff of smoke.
  9431. if test "X${COLLECT_NAMES+set}" != Xset; then
  9432. COLLECT_NAMES=
  9433. export COLLECT_NAMES
  9434. fi
  9435. EOF
  9436. ;;
  9437. esac
  9438. # We use sed instead of cat because bash on DJGPP gets confused if
  9439. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9440. # text mode, it properly converts lines to CR/LF. This bash problem
  9441. # is reportedly fixed, but why not run on old versions too?
  9442. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9443. mv -f "$cfgfile" "$ofile" || \
  9444. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9445. chmod +x "$ofile"
  9446. else
  9447. # If there is no Makefile yet, we rely on a make rule to execute
  9448. # `config.status --recheck' to rerun these tests and create the
  9449. # libtool script then.
  9450. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9451. if test -f "$ltmain_in"; then
  9452. test -f Makefile && make "$ltmain"
  9453. fi
  9454. fi
  9455. ac_ext=c
  9456. ac_cpp='$CPP $CPPFLAGS'
  9457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9460. CC="$lt_save_CC"
  9461. # Check whether --with-tags was given.
  9462. if test "${with_tags+set}" = set; then
  9463. withval=$with_tags; tagnames="$withval"
  9464. fi
  9465. if test -f "$ltmain" && test -n "$tagnames"; then
  9466. if test ! -f "${ofile}"; then
  9467. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9468. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9469. fi
  9470. if test -z "$LTCC"; then
  9471. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9472. if test -z "$LTCC"; then
  9473. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9474. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9475. else
  9476. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9477. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9478. fi
  9479. fi
  9480. # Extract list of available tagged configurations in $ofile.
  9481. # Note that this assumes the entire list is on one line.
  9482. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9483. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9484. for tagname in $tagnames; do
  9485. IFS="$lt_save_ifs"
  9486. # Check whether tagname contains only valid characters
  9487. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9488. "") ;;
  9489. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9490. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9491. { (exit 1); exit 1; }; }
  9492. ;;
  9493. esac
  9494. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9495. then
  9496. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9497. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9498. { (exit 1); exit 1; }; }
  9499. fi
  9500. # Update the list of available tags.
  9501. if test -n "$tagname"; then
  9502. echo appending configuration tag \"$tagname\" to $ofile
  9503. case $tagname in
  9504. CXX)
  9505. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9506. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9507. (test "X$CXX" != "Xg++"))) ; then
  9508. ac_ext=cpp
  9509. ac_cpp='$CXXCPP $CPPFLAGS'
  9510. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9511. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9512. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9513. archive_cmds_need_lc_CXX=no
  9514. allow_undefined_flag_CXX=
  9515. always_export_symbols_CXX=no
  9516. archive_expsym_cmds_CXX=
  9517. export_dynamic_flag_spec_CXX=
  9518. hardcode_direct_CXX=no
  9519. hardcode_libdir_flag_spec_CXX=
  9520. hardcode_libdir_flag_spec_ld_CXX=
  9521. hardcode_libdir_separator_CXX=
  9522. hardcode_minus_L_CXX=no
  9523. hardcode_automatic_CXX=no
  9524. module_cmds_CXX=
  9525. module_expsym_cmds_CXX=
  9526. link_all_deplibs_CXX=unknown
  9527. old_archive_cmds_CXX=$old_archive_cmds
  9528. no_undefined_flag_CXX=
  9529. whole_archive_flag_spec_CXX=
  9530. enable_shared_with_static_runtimes_CXX=no
  9531. # Dependencies to place before and after the object being linked:
  9532. predep_objects_CXX=
  9533. postdep_objects_CXX=
  9534. predeps_CXX=
  9535. postdeps_CXX=
  9536. compiler_lib_search_path_CXX=
  9537. # Source file extension for C++ test sources.
  9538. ac_ext=cc
  9539. # Object file extension for compiled C++ test sources.
  9540. objext=o
  9541. objext_CXX=$objext
  9542. # Code to be used in simple compile tests
  9543. lt_simple_compile_test_code="int some_variable = 0;\n"
  9544. # Code to be used in simple link tests
  9545. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  9546. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9547. # If no C compiler was specified, use CC.
  9548. LTCC=${LTCC-"$CC"}
  9549. # Allow CC to be a program name with arguments.
  9550. compiler=$CC
  9551. # save warnings/boilerplate of simple test code
  9552. ac_outfile=conftest.$ac_objext
  9553. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9554. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9555. _lt_compiler_boilerplate=`cat conftest.err`
  9556. $rm conftest*
  9557. ac_outfile=conftest.$ac_objext
  9558. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9559. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9560. _lt_linker_boilerplate=`cat conftest.err`
  9561. $rm conftest*
  9562. # Allow CC to be a program name with arguments.
  9563. lt_save_CC=$CC
  9564. lt_save_LD=$LD
  9565. lt_save_GCC=$GCC
  9566. GCC=$GXX
  9567. lt_save_with_gnu_ld=$with_gnu_ld
  9568. lt_save_path_LD=$lt_cv_path_LD
  9569. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9570. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9571. else
  9572. unset lt_cv_prog_gnu_ld
  9573. fi
  9574. if test -n "${lt_cv_path_LDCXX+set}"; then
  9575. lt_cv_path_LD=$lt_cv_path_LDCXX
  9576. else
  9577. unset lt_cv_path_LD
  9578. fi
  9579. test -z "${LDCXX+set}" || LD=$LDCXX
  9580. CC=${CXX-"c++"}
  9581. compiler=$CC
  9582. compiler_CXX=$CC
  9583. for cc_temp in $compiler""; do
  9584. case $cc_temp in
  9585. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9586. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9587. \-*) ;;
  9588. *) break;;
  9589. esac
  9590. done
  9591. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9592. # We don't want -fno-exception wen compiling C++ code, so set the
  9593. # no_builtin_flag separately
  9594. if test "$GXX" = yes; then
  9595. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9596. else
  9597. lt_prog_compiler_no_builtin_flag_CXX=
  9598. fi
  9599. if test "$GXX" = yes; then
  9600. # Set up default GNU C++ configuration
  9601. # Check whether --with-gnu-ld was given.
  9602. if test "${with_gnu_ld+set}" = set; then
  9603. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9604. else
  9605. with_gnu_ld=no
  9606. fi
  9607. ac_prog=ld
  9608. if test "$GCC" = yes; then
  9609. # Check if gcc -print-prog-name=ld gives a path.
  9610. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9611. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9612. case $host in
  9613. *-*-mingw*)
  9614. # gcc leaves a trailing carriage return which upsets mingw
  9615. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9616. *)
  9617. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9618. esac
  9619. case $ac_prog in
  9620. # Accept absolute paths.
  9621. [\\/]* | ?:[\\/]*)
  9622. re_direlt='/[^/][^/]*/\.\./'
  9623. # Canonicalize the pathname of ld
  9624. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9625. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9626. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9627. done
  9628. test -z "$LD" && LD="$ac_prog"
  9629. ;;
  9630. "")
  9631. # If it fails, then pretend we aren't using GCC.
  9632. ac_prog=ld
  9633. ;;
  9634. *)
  9635. # If it is relative, then search for the first ld in PATH.
  9636. with_gnu_ld=unknown
  9637. ;;
  9638. esac
  9639. elif test "$with_gnu_ld" = yes; then
  9640. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9641. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9642. else
  9643. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9644. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9645. fi
  9646. if test "${lt_cv_path_LD+set}" = set; then
  9647. echo $ECHO_N "(cached) $ECHO_C" >&6
  9648. else
  9649. if test -z "$LD"; then
  9650. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9651. for ac_dir in $PATH; do
  9652. IFS="$lt_save_ifs"
  9653. test -z "$ac_dir" && ac_dir=.
  9654. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9655. lt_cv_path_LD="$ac_dir/$ac_prog"
  9656. # Check to see if the program is GNU ld. I'd rather use --version,
  9657. # but apparently some GNU ld's only accept -v.
  9658. # Break only if it was the GNU/non-GNU ld that we prefer.
  9659. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9660. *GNU* | *'with BFD'*)
  9661. test "$with_gnu_ld" != no && break
  9662. ;;
  9663. *)
  9664. test "$with_gnu_ld" != yes && break
  9665. ;;
  9666. esac
  9667. fi
  9668. done
  9669. IFS="$lt_save_ifs"
  9670. else
  9671. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9672. fi
  9673. fi
  9674. LD="$lt_cv_path_LD"
  9675. if test -n "$LD"; then
  9676. { echo "$as_me:$LINENO: result: $LD" >&5
  9677. echo "${ECHO_T}$LD" >&6; }
  9678. else
  9679. { echo "$as_me:$LINENO: result: no" >&5
  9680. echo "${ECHO_T}no" >&6; }
  9681. fi
  9682. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9683. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9684. { (exit 1); exit 1; }; }
  9685. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9686. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9687. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9688. echo $ECHO_N "(cached) $ECHO_C" >&6
  9689. else
  9690. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9691. case `$LD -v 2>&1 </dev/null` in
  9692. *GNU* | *'with BFD'*)
  9693. lt_cv_prog_gnu_ld=yes
  9694. ;;
  9695. *)
  9696. lt_cv_prog_gnu_ld=no
  9697. ;;
  9698. esac
  9699. fi
  9700. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9701. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9702. with_gnu_ld=$lt_cv_prog_gnu_ld
  9703. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9704. # archiving commands below assume that GNU ld is being used.
  9705. if test "$with_gnu_ld" = yes; then
  9706. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9707. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9708. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9709. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9710. # If archive_cmds runs LD, not CC, wlarc should be empty
  9711. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9712. # investigate it a little bit more. (MM)
  9713. wlarc='${wl}'
  9714. # ancient GNU ld didn't support --whole-archive et. al.
  9715. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9716. grep 'no-whole-archive' > /dev/null; then
  9717. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9718. else
  9719. whole_archive_flag_spec_CXX=
  9720. fi
  9721. else
  9722. with_gnu_ld=no
  9723. wlarc=
  9724. # A generic and very simple default shared library creation
  9725. # command for GNU C++ for the case where it uses the native
  9726. # linker, instead of GNU ld. If possible, this setting should
  9727. # overridden to take advantage of the native linker features on
  9728. # the platform it is being used on.
  9729. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9730. fi
  9731. # Commands to make compiler produce verbose output that lists
  9732. # what "hidden" libraries, object files and flags are used when
  9733. # linking a shared library.
  9734. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9735. else
  9736. GXX=no
  9737. with_gnu_ld=no
  9738. wlarc=
  9739. fi
  9740. # PORTME: fill in a description of your system's C++ link characteristics
  9741. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9742. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9743. ld_shlibs_CXX=yes
  9744. case $host_os in
  9745. aix3*)
  9746. # FIXME: insert proper C++ library support
  9747. ld_shlibs_CXX=no
  9748. ;;
  9749. aix4* | aix5*)
  9750. if test "$host_cpu" = ia64; then
  9751. # On IA64, the linker does run time linking by default, so we don't
  9752. # have to do anything special.
  9753. aix_use_runtimelinking=no
  9754. exp_sym_flag='-Bexport'
  9755. no_entry_flag=""
  9756. else
  9757. aix_use_runtimelinking=no
  9758. # Test if we are trying to use run time linking or normal
  9759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9760. # need to do runtime linking.
  9761. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9762. for ld_flag in $LDFLAGS; do
  9763. case $ld_flag in
  9764. *-brtl*)
  9765. aix_use_runtimelinking=yes
  9766. break
  9767. ;;
  9768. esac
  9769. done
  9770. esac
  9771. exp_sym_flag='-bexport'
  9772. no_entry_flag='-bnoentry'
  9773. fi
  9774. # When large executables or shared objects are built, AIX ld can
  9775. # have problems creating the table of contents. If linking a library
  9776. # or program results in "error TOC overflow" add -mminimal-toc to
  9777. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9778. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9779. archive_cmds_CXX=''
  9780. hardcode_direct_CXX=yes
  9781. hardcode_libdir_separator_CXX=':'
  9782. link_all_deplibs_CXX=yes
  9783. if test "$GXX" = yes; then
  9784. case $host_os in aix4.[012]|aix4.[012].*)
  9785. # We only want to do this on AIX 4.2 and lower, the check
  9786. # below for broken collect2 doesn't work under 4.3+
  9787. collect2name=`${CC} -print-prog-name=collect2`
  9788. if test -f "$collect2name" && \
  9789. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9790. then
  9791. # We have reworked collect2
  9792. hardcode_direct_CXX=yes
  9793. else
  9794. # We have old collect2
  9795. hardcode_direct_CXX=unsupported
  9796. # It fails to find uninstalled libraries when the uninstalled
  9797. # path is not listed in the libpath. Setting hardcode_minus_L
  9798. # to unsupported forces relinking
  9799. hardcode_minus_L_CXX=yes
  9800. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9801. hardcode_libdir_separator_CXX=
  9802. fi
  9803. esac
  9804. shared_flag='-shared'
  9805. if test "$aix_use_runtimelinking" = yes; then
  9806. shared_flag="$shared_flag "'${wl}-G'
  9807. fi
  9808. else
  9809. # not using gcc
  9810. if test "$host_cpu" = ia64; then
  9811. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9812. # chokes on -Wl,-G. The following line is correct:
  9813. shared_flag='-G'
  9814. else
  9815. if test "$aix_use_runtimelinking" = yes; then
  9816. shared_flag='${wl}-G'
  9817. else
  9818. shared_flag='${wl}-bM:SRE'
  9819. fi
  9820. fi
  9821. fi
  9822. # It seems that -bexpall does not export symbols beginning with
  9823. # underscore (_), so it is better to generate a list of symbols to export.
  9824. always_export_symbols_CXX=yes
  9825. if test "$aix_use_runtimelinking" = yes; then
  9826. # Warning - without using the other runtime loading flags (-brtl),
  9827. # -berok will link without error, but may produce a broken library.
  9828. allow_undefined_flag_CXX='-berok'
  9829. # Determine the default libpath from the value encoded in an empty executable.
  9830. cat >conftest.$ac_ext <<_ACEOF
  9831. /* confdefs.h. */
  9832. _ACEOF
  9833. cat confdefs.h >>conftest.$ac_ext
  9834. cat >>conftest.$ac_ext <<_ACEOF
  9835. /* end confdefs.h. */
  9836. int
  9837. main ()
  9838. {
  9839. ;
  9840. return 0;
  9841. }
  9842. _ACEOF
  9843. rm -f conftest.$ac_objext conftest$ac_exeext
  9844. if { (ac_try="$ac_link"
  9845. case "(($ac_try" in
  9846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9847. *) ac_try_echo=$ac_try;;
  9848. esac
  9849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9850. (eval "$ac_link") 2>conftest.er1
  9851. ac_status=$?
  9852. grep -v '^ *+' conftest.er1 >conftest.err
  9853. rm -f conftest.er1
  9854. cat conftest.err >&5
  9855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9856. (exit $ac_status); } && {
  9857. test -z "$ac_cxx_werror_flag" ||
  9858. test ! -s conftest.err
  9859. } && test -s conftest$ac_exeext &&
  9860. $as_test_x conftest$ac_exeext; then
  9861. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9862. }'`
  9863. # Check for a 64-bit object if we didn't find anything.
  9864. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9865. }'`; fi
  9866. else
  9867. echo "$as_me: failed program was:" >&5
  9868. sed 's/^/| /' conftest.$ac_ext >&5
  9869. fi
  9870. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9871. conftest$ac_exeext conftest.$ac_ext
  9872. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9873. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9874. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9875. else
  9876. if test "$host_cpu" = ia64; then
  9877. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9878. allow_undefined_flag_CXX="-z nodefs"
  9879. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9880. else
  9881. # Determine the default libpath from the value encoded in an empty executable.
  9882. cat >conftest.$ac_ext <<_ACEOF
  9883. /* confdefs.h. */
  9884. _ACEOF
  9885. cat confdefs.h >>conftest.$ac_ext
  9886. cat >>conftest.$ac_ext <<_ACEOF
  9887. /* end confdefs.h. */
  9888. int
  9889. main ()
  9890. {
  9891. ;
  9892. return 0;
  9893. }
  9894. _ACEOF
  9895. rm -f conftest.$ac_objext conftest$ac_exeext
  9896. if { (ac_try="$ac_link"
  9897. case "(($ac_try" in
  9898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9899. *) ac_try_echo=$ac_try;;
  9900. esac
  9901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9902. (eval "$ac_link") 2>conftest.er1
  9903. ac_status=$?
  9904. grep -v '^ *+' conftest.er1 >conftest.err
  9905. rm -f conftest.er1
  9906. cat conftest.err >&5
  9907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9908. (exit $ac_status); } && {
  9909. test -z "$ac_cxx_werror_flag" ||
  9910. test ! -s conftest.err
  9911. } && test -s conftest$ac_exeext &&
  9912. $as_test_x conftest$ac_exeext; then
  9913. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9914. }'`
  9915. # Check for a 64-bit object if we didn't find anything.
  9916. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9917. }'`; fi
  9918. else
  9919. echo "$as_me: failed program was:" >&5
  9920. sed 's/^/| /' conftest.$ac_ext >&5
  9921. fi
  9922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9923. conftest$ac_exeext conftest.$ac_ext
  9924. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9925. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9926. # Warning - without using the other run time loading flags,
  9927. # -berok will link without error, but may produce a broken library.
  9928. no_undefined_flag_CXX=' ${wl}-bernotok'
  9929. allow_undefined_flag_CXX=' ${wl}-berok'
  9930. # -bexpall does not export symbols beginning with underscore (_)
  9931. always_export_symbols_CXX=yes
  9932. # Exported symbols can be pulled into shared objects from archives
  9933. whole_archive_flag_spec_CXX=' '
  9934. archive_cmds_need_lc_CXX=yes
  9935. # This is similar to how AIX traditionally builds it's shared libraries.
  9936. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9937. fi
  9938. fi
  9939. ;;
  9940. chorus*)
  9941. case $cc_basename in
  9942. *)
  9943. # FIXME: insert proper C++ library support
  9944. ld_shlibs_CXX=no
  9945. ;;
  9946. esac
  9947. ;;
  9948. cygwin* | mingw* | pw32*)
  9949. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9950. # as there is no search path for DLLs.
  9951. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9952. allow_undefined_flag_CXX=unsupported
  9953. always_export_symbols_CXX=no
  9954. enable_shared_with_static_runtimes_CXX=yes
  9955. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9956. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9957. # If the export-symbols file already is a .def file (1st line
  9958. # is EXPORTS), use it as is; otherwise, prepend...
  9959. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9960. cp $export_symbols $output_objdir/$soname.def;
  9961. else
  9962. echo EXPORTS > $output_objdir/$soname.def;
  9963. cat $export_symbols >> $output_objdir/$soname.def;
  9964. fi~
  9965. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9966. else
  9967. ld_shlibs_CXX=no
  9968. fi
  9969. ;;
  9970. darwin* | rhapsody*)
  9971. case "$host_os" in
  9972. rhapsody* | darwin1.[012])
  9973. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9974. ;;
  9975. *) # Darwin 1.3 on
  9976. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9977. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9978. else
  9979. case ${MACOSX_DEPLOYMENT_TARGET} in
  9980. 10.[012])
  9981. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9982. ;;
  9983. 10.*)
  9984. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9985. ;;
  9986. esac
  9987. fi
  9988. ;;
  9989. esac
  9990. archive_cmds_need_lc_CXX=no
  9991. hardcode_direct_CXX=no
  9992. hardcode_automatic_CXX=yes
  9993. hardcode_shlibpath_var_CXX=unsupported
  9994. whole_archive_flag_spec_CXX=''
  9995. link_all_deplibs_CXX=yes
  9996. if test "$GXX" = yes ; then
  9997. lt_int_apple_cc_single_mod=no
  9998. output_verbose_link_cmd='echo'
  9999. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10000. lt_int_apple_cc_single_mod=yes
  10001. fi
  10002. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10003. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10004. else
  10005. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10006. fi
  10007. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10008. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10009. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10010. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10011. else
  10012. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10013. fi
  10014. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10015. else
  10016. case $cc_basename in
  10017. xlc*)
  10018. output_verbose_link_cmd='echo'
  10019. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  10020. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10021. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10022. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10023. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10024. ;;
  10025. *)
  10026. ld_shlibs_CXX=no
  10027. ;;
  10028. esac
  10029. fi
  10030. ;;
  10031. dgux*)
  10032. case $cc_basename in
  10033. ec++*)
  10034. # FIXME: insert proper C++ library support
  10035. ld_shlibs_CXX=no
  10036. ;;
  10037. ghcx*)
  10038. # Green Hills C++ Compiler
  10039. # FIXME: insert proper C++ library support
  10040. ld_shlibs_CXX=no
  10041. ;;
  10042. *)
  10043. # FIXME: insert proper C++ library support
  10044. ld_shlibs_CXX=no
  10045. ;;
  10046. esac
  10047. ;;
  10048. freebsd[12]*)
  10049. # C++ shared libraries reported to be fairly broken before switch to ELF
  10050. ld_shlibs_CXX=no
  10051. ;;
  10052. freebsd-elf*)
  10053. archive_cmds_need_lc_CXX=no
  10054. ;;
  10055. freebsd* | kfreebsd*-gnu | dragonfly*)
  10056. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10057. # conventions
  10058. ld_shlibs_CXX=yes
  10059. ;;
  10060. gnu*)
  10061. ;;
  10062. hpux9*)
  10063. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10064. hardcode_libdir_separator_CXX=:
  10065. export_dynamic_flag_spec_CXX='${wl}-E'
  10066. hardcode_direct_CXX=yes
  10067. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10068. # but as the default
  10069. # location of the library.
  10070. case $cc_basename in
  10071. CC*)
  10072. # FIXME: insert proper C++ library support
  10073. ld_shlibs_CXX=no
  10074. ;;
  10075. aCC*)
  10076. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10077. # Commands to make compiler produce verbose output that lists
  10078. # what "hidden" libraries, object files and flags are used when
  10079. # linking a shared library.
  10080. #
  10081. # There doesn't appear to be a way to prevent this compiler from
  10082. # explicitly linking system object files so we need to strip them
  10083. # from the output so that they don't get included in the library
  10084. # dependencies.
  10085. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10086. ;;
  10087. *)
  10088. if test "$GXX" = yes; then
  10089. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10090. else
  10091. # FIXME: insert proper C++ library support
  10092. ld_shlibs_CXX=no
  10093. fi
  10094. ;;
  10095. esac
  10096. ;;
  10097. hpux10*|hpux11*)
  10098. if test $with_gnu_ld = no; then
  10099. case "$host_cpu" in
  10100. hppa*64*)
  10101. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10102. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10103. hardcode_libdir_separator_CXX=:
  10104. ;;
  10105. ia64*)
  10106. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10107. ;;
  10108. *)
  10109. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10110. hardcode_libdir_separator_CXX=:
  10111. export_dynamic_flag_spec_CXX='${wl}-E'
  10112. ;;
  10113. esac
  10114. fi
  10115. case "$host_cpu" in
  10116. hppa*64*)
  10117. hardcode_direct_CXX=no
  10118. hardcode_shlibpath_var_CXX=no
  10119. ;;
  10120. ia64*)
  10121. hardcode_direct_CXX=no
  10122. hardcode_shlibpath_var_CXX=no
  10123. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10124. # but as the default
  10125. # location of the library.
  10126. ;;
  10127. *)
  10128. hardcode_direct_CXX=yes
  10129. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10130. # but as the default
  10131. # location of the library.
  10132. ;;
  10133. esac
  10134. case $cc_basename in
  10135. CC*)
  10136. # FIXME: insert proper C++ library support
  10137. ld_shlibs_CXX=no
  10138. ;;
  10139. aCC*)
  10140. case "$host_cpu" in
  10141. hppa*64*|ia64*)
  10142. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10143. ;;
  10144. *)
  10145. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10146. ;;
  10147. esac
  10148. # Commands to make compiler produce verbose output that lists
  10149. # what "hidden" libraries, object files and flags are used when
  10150. # linking a shared library.
  10151. #
  10152. # There doesn't appear to be a way to prevent this compiler from
  10153. # explicitly linking system object files so we need to strip them
  10154. # from the output so that they don't get included in the library
  10155. # dependencies.
  10156. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10157. ;;
  10158. *)
  10159. if test "$GXX" = yes; then
  10160. if test $with_gnu_ld = no; then
  10161. case "$host_cpu" in
  10162. ia64*|hppa*64*)
  10163. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10164. ;;
  10165. *)
  10166. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10167. ;;
  10168. esac
  10169. fi
  10170. else
  10171. # FIXME: insert proper C++ library support
  10172. ld_shlibs_CXX=no
  10173. fi
  10174. ;;
  10175. esac
  10176. ;;
  10177. irix5* | irix6*)
  10178. case $cc_basename in
  10179. CC*)
  10180. # SGI C++
  10181. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10182. # Archives containing C++ object files must be created using
  10183. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10184. # necessary to make sure instantiated templates are included
  10185. # in the archive.
  10186. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10187. ;;
  10188. *)
  10189. if test "$GXX" = yes; then
  10190. if test "$with_gnu_ld" = no; then
  10191. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10192. else
  10193. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10194. fi
  10195. fi
  10196. link_all_deplibs_CXX=yes
  10197. ;;
  10198. esac
  10199. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10200. hardcode_libdir_separator_CXX=:
  10201. ;;
  10202. linux*)
  10203. case $cc_basename in
  10204. KCC*)
  10205. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10206. # KCC will only create a shared library if the output file
  10207. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10208. # to its proper name (with version) after linking.
  10209. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10210. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10211. # Commands to make compiler produce verbose output that lists
  10212. # what "hidden" libraries, object files and flags are used when
  10213. # linking a shared library.
  10214. #
  10215. # There doesn't appear to be a way to prevent this compiler from
  10216. # explicitly linking system object files so we need to strip them
  10217. # from the output so that they don't get included in the library
  10218. # dependencies.
  10219. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10220. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10221. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10222. # Archives containing C++ object files must be created using
  10223. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10224. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10225. ;;
  10226. icpc*)
  10227. # Intel C++
  10228. with_gnu_ld=yes
  10229. # version 8.0 and above of icpc choke on multiply defined symbols
  10230. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10231. # earlier do not add the objects themselves.
  10232. case `$CC -V 2>&1` in
  10233. *"Version 7."*)
  10234. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10235. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10236. ;;
  10237. *) # Version 8.0 or newer
  10238. tmp_idyn=
  10239. case $host_cpu in
  10240. ia64*) tmp_idyn=' -i_dynamic';;
  10241. esac
  10242. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10243. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10244. ;;
  10245. esac
  10246. archive_cmds_need_lc_CXX=no
  10247. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10248. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10249. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10250. ;;
  10251. pgCC*)
  10252. # Portland Group C++ compiler
  10253. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10254. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10255. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10256. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10257. whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10258. ;;
  10259. cxx*)
  10260. # Compaq C++
  10261. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10262. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10263. runpath_var=LD_RUN_PATH
  10264. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10265. hardcode_libdir_separator_CXX=:
  10266. # Commands to make compiler produce verbose output that lists
  10267. # what "hidden" libraries, object files and flags are used when
  10268. # linking a shared library.
  10269. #
  10270. # There doesn't appear to be a way to prevent this compiler from
  10271. # explicitly linking system object files so we need to strip them
  10272. # from the output so that they don't get included in the library
  10273. # dependencies.
  10274. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10275. ;;
  10276. esac
  10277. ;;
  10278. lynxos*)
  10279. # FIXME: insert proper C++ library support
  10280. ld_shlibs_CXX=no
  10281. ;;
  10282. m88k*)
  10283. # FIXME: insert proper C++ library support
  10284. ld_shlibs_CXX=no
  10285. ;;
  10286. mvs*)
  10287. case $cc_basename in
  10288. cxx*)
  10289. # FIXME: insert proper C++ library support
  10290. ld_shlibs_CXX=no
  10291. ;;
  10292. *)
  10293. # FIXME: insert proper C++ library support
  10294. ld_shlibs_CXX=no
  10295. ;;
  10296. esac
  10297. ;;
  10298. netbsd*)
  10299. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10300. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10301. wlarc=
  10302. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10303. hardcode_direct_CXX=yes
  10304. hardcode_shlibpath_var_CXX=no
  10305. fi
  10306. # Workaround some broken pre-1.5 toolchains
  10307. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10308. ;;
  10309. openbsd2*)
  10310. # C++ shared libraries are fairly broken
  10311. ld_shlibs_CXX=no
  10312. ;;
  10313. openbsd*)
  10314. hardcode_direct_CXX=yes
  10315. hardcode_shlibpath_var_CXX=no
  10316. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10317. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10318. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10319. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10320. export_dynamic_flag_spec_CXX='${wl}-E'
  10321. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10322. fi
  10323. output_verbose_link_cmd='echo'
  10324. ;;
  10325. osf3*)
  10326. case $cc_basename in
  10327. KCC*)
  10328. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10329. # KCC will only create a shared library if the output file
  10330. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10331. # to its proper name (with version) after linking.
  10332. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10333. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10334. hardcode_libdir_separator_CXX=:
  10335. # Archives containing C++ object files must be created using
  10336. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10337. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10338. ;;
  10339. RCC*)
  10340. # Rational C++ 2.4.1
  10341. # FIXME: insert proper C++ library support
  10342. ld_shlibs_CXX=no
  10343. ;;
  10344. cxx*)
  10345. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10346. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10347. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10348. hardcode_libdir_separator_CXX=:
  10349. # Commands to make compiler produce verbose output that lists
  10350. # what "hidden" libraries, object files and flags are used when
  10351. # linking a shared library.
  10352. #
  10353. # There doesn't appear to be a way to prevent this compiler from
  10354. # explicitly linking system object files so we need to strip them
  10355. # from the output so that they don't get included in the library
  10356. # dependencies.
  10357. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10358. ;;
  10359. *)
  10360. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10361. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10362. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10363. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10364. hardcode_libdir_separator_CXX=:
  10365. # Commands to make compiler produce verbose output that lists
  10366. # what "hidden" libraries, object files and flags are used when
  10367. # linking a shared library.
  10368. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10369. else
  10370. # FIXME: insert proper C++ library support
  10371. ld_shlibs_CXX=no
  10372. fi
  10373. ;;
  10374. esac
  10375. ;;
  10376. osf4* | osf5*)
  10377. case $cc_basename in
  10378. KCC*)
  10379. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10380. # KCC will only create a shared library if the output file
  10381. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10382. # to its proper name (with version) after linking.
  10383. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10384. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10385. hardcode_libdir_separator_CXX=:
  10386. # Archives containing C++ object files must be created using
  10387. # the KAI C++ compiler.
  10388. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10389. ;;
  10390. RCC*)
  10391. # Rational C++ 2.4.1
  10392. # FIXME: insert proper C++ library support
  10393. ld_shlibs_CXX=no
  10394. ;;
  10395. cxx*)
  10396. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10397. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10398. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10399. echo "-hidden">> $lib.exp~
  10400. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  10401. $rm $lib.exp'
  10402. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10403. hardcode_libdir_separator_CXX=:
  10404. # Commands to make compiler produce verbose output that lists
  10405. # what "hidden" libraries, object files and flags are used when
  10406. # linking a shared library.
  10407. #
  10408. # There doesn't appear to be a way to prevent this compiler from
  10409. # explicitly linking system object files so we need to strip them
  10410. # from the output so that they don't get included in the library
  10411. # dependencies.
  10412. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10413. ;;
  10414. *)
  10415. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10416. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10417. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10418. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10419. hardcode_libdir_separator_CXX=:
  10420. # Commands to make compiler produce verbose output that lists
  10421. # what "hidden" libraries, object files and flags are used when
  10422. # linking a shared library.
  10423. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10424. else
  10425. # FIXME: insert proper C++ library support
  10426. ld_shlibs_CXX=no
  10427. fi
  10428. ;;
  10429. esac
  10430. ;;
  10431. psos*)
  10432. # FIXME: insert proper C++ library support
  10433. ld_shlibs_CXX=no
  10434. ;;
  10435. sco*)
  10436. archive_cmds_need_lc_CXX=no
  10437. case $cc_basename in
  10438. CC*)
  10439. # FIXME: insert proper C++ library support
  10440. ld_shlibs_CXX=no
  10441. ;;
  10442. *)
  10443. # FIXME: insert proper C++ library support
  10444. ld_shlibs_CXX=no
  10445. ;;
  10446. esac
  10447. ;;
  10448. sunos4*)
  10449. case $cc_basename in
  10450. CC*)
  10451. # Sun C++ 4.x
  10452. # FIXME: insert proper C++ library support
  10453. ld_shlibs_CXX=no
  10454. ;;
  10455. lcc*)
  10456. # Lucid
  10457. # FIXME: insert proper C++ library support
  10458. ld_shlibs_CXX=no
  10459. ;;
  10460. *)
  10461. # FIXME: insert proper C++ library support
  10462. ld_shlibs_CXX=no
  10463. ;;
  10464. esac
  10465. ;;
  10466. solaris*)
  10467. case $cc_basename in
  10468. CC*)
  10469. # Sun C++ 4.2, 5.x and Centerline C++
  10470. no_undefined_flag_CXX=' -zdefs'
  10471. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10472. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10473. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10474. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10475. hardcode_shlibpath_var_CXX=no
  10476. case $host_os in
  10477. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10478. *)
  10479. # The C++ compiler is used as linker so we must use $wl
  10480. # flag to pass the commands to the underlying system
  10481. # linker. We must also pass each convience library through
  10482. # to the system linker between allextract/defaultextract.
  10483. # The C++ compiler will combine linker options so we
  10484. # cannot just pass the convience library names through
  10485. # without $wl.
  10486. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10487. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  10488. ;;
  10489. esac
  10490. link_all_deplibs_CXX=yes
  10491. # Commands to make compiler produce verbose output that lists
  10492. # what "hidden" libraries, object files and flags are used when
  10493. # linking a shared library.
  10494. #
  10495. # There doesn't appear to be a way to prevent this compiler from
  10496. # explicitly linking system object files so we need to strip them
  10497. # from the output so that they don't get included in the library
  10498. # dependencies.
  10499. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10500. # Archives containing C++ object files must be created using
  10501. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10502. # necessary to make sure instantiated templates are included
  10503. # in the archive.
  10504. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10505. ;;
  10506. gcx*)
  10507. # Green Hills C++ Compiler
  10508. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10509. # The C++ compiler must be used to create the archive.
  10510. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10511. ;;
  10512. *)
  10513. # GNU C++ compiler with Solaris linker
  10514. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10515. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10516. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10517. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10518. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10519. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10520. # Commands to make compiler produce verbose output that lists
  10521. # what "hidden" libraries, object files and flags are used when
  10522. # linking a shared library.
  10523. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10524. else
  10525. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10526. # platform.
  10527. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10528. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10529. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10530. # Commands to make compiler produce verbose output that lists
  10531. # what "hidden" libraries, object files and flags are used when
  10532. # linking a shared library.
  10533. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10534. fi
  10535. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10536. fi
  10537. ;;
  10538. esac
  10539. ;;
  10540. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10541. archive_cmds_need_lc_CXX=no
  10542. ;;
  10543. tandem*)
  10544. case $cc_basename in
  10545. NCC*)
  10546. # NonStop-UX NCC 3.20
  10547. # FIXME: insert proper C++ library support
  10548. ld_shlibs_CXX=no
  10549. ;;
  10550. *)
  10551. # FIXME: insert proper C++ library support
  10552. ld_shlibs_CXX=no
  10553. ;;
  10554. esac
  10555. ;;
  10556. vxworks*)
  10557. # FIXME: insert proper C++ library support
  10558. ld_shlibs_CXX=no
  10559. ;;
  10560. *)
  10561. # FIXME: insert proper C++ library support
  10562. ld_shlibs_CXX=no
  10563. ;;
  10564. esac
  10565. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10566. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10567. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10568. GCC_CXX="$GXX"
  10569. LD_CXX="$LD"
  10570. cat > conftest.$ac_ext <<EOF
  10571. class Foo
  10572. {
  10573. public:
  10574. Foo (void) { a = 0; }
  10575. private:
  10576. int a;
  10577. };
  10578. EOF
  10579. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10580. (eval $ac_compile) 2>&5
  10581. ac_status=$?
  10582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10583. (exit $ac_status); }; then
  10584. # Parse the compiler output and extract the necessary
  10585. # objects, libraries and library flags.
  10586. # Sentinel used to keep track of whether or not we are before
  10587. # the conftest object file.
  10588. pre_test_object_deps_done=no
  10589. # The `*' in the case matches for architectures that use `case' in
  10590. # $output_verbose_cmd can trigger glob expansion during the loop
  10591. # eval without this substitution.
  10592. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10593. for p in `eval $output_verbose_link_cmd`; do
  10594. case $p in
  10595. -L* | -R* | -l*)
  10596. # Some compilers place space between "-{L,R}" and the path.
  10597. # Remove the space.
  10598. if test $p = "-L" \
  10599. || test $p = "-R"; then
  10600. prev=$p
  10601. continue
  10602. else
  10603. prev=
  10604. fi
  10605. if test "$pre_test_object_deps_done" = no; then
  10606. case $p in
  10607. -L* | -R*)
  10608. # Internal compiler library paths should come after those
  10609. # provided the user. The postdeps already come after the
  10610. # user supplied libs so there is no need to process them.
  10611. if test -z "$compiler_lib_search_path_CXX"; then
  10612. compiler_lib_search_path_CXX="${prev}${p}"
  10613. else
  10614. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10615. fi
  10616. ;;
  10617. # The "-l" case would never come before the object being
  10618. # linked, so don't bother handling this case.
  10619. esac
  10620. else
  10621. if test -z "$postdeps_CXX"; then
  10622. postdeps_CXX="${prev}${p}"
  10623. else
  10624. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10625. fi
  10626. fi
  10627. ;;
  10628. *.$objext)
  10629. # This assumes that the test object file only shows up
  10630. # once in the compiler output.
  10631. if test "$p" = "conftest.$objext"; then
  10632. pre_test_object_deps_done=yes
  10633. continue
  10634. fi
  10635. if test "$pre_test_object_deps_done" = no; then
  10636. if test -z "$predep_objects_CXX"; then
  10637. predep_objects_CXX="$p"
  10638. else
  10639. predep_objects_CXX="$predep_objects_CXX $p"
  10640. fi
  10641. else
  10642. if test -z "$postdep_objects_CXX"; then
  10643. postdep_objects_CXX="$p"
  10644. else
  10645. postdep_objects_CXX="$postdep_objects_CXX $p"
  10646. fi
  10647. fi
  10648. ;;
  10649. *) ;; # Ignore the rest.
  10650. esac
  10651. done
  10652. # Clean up.
  10653. rm -f a.out a.exe
  10654. else
  10655. echo "libtool.m4: error: problem compiling CXX test program"
  10656. fi
  10657. $rm -f confest.$objext
  10658. case " $postdeps_CXX " in
  10659. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10660. esac
  10661. lt_prog_compiler_wl_CXX=
  10662. lt_prog_compiler_pic_CXX=
  10663. lt_prog_compiler_static_CXX=
  10664. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10665. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10666. # C++ specific cases for pic, static, wl, etc.
  10667. if test "$GXX" = yes; then
  10668. lt_prog_compiler_wl_CXX='-Wl,'
  10669. lt_prog_compiler_static_CXX='-static'
  10670. case $host_os in
  10671. aix*)
  10672. # All AIX code is PIC.
  10673. if test "$host_cpu" = ia64; then
  10674. # AIX 5 now supports IA64 processor
  10675. lt_prog_compiler_static_CXX='-Bstatic'
  10676. fi
  10677. ;;
  10678. amigaos*)
  10679. # FIXME: we need at least 68020 code to build shared libraries, but
  10680. # adding the `-m68020' flag to GCC prevents building anything better,
  10681. # like `-m68040'.
  10682. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10683. ;;
  10684. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10685. # PIC is the default for these OSes.
  10686. ;;
  10687. mingw* | os2* | pw32*)
  10688. # This hack is so that the source file can tell whether it is being
  10689. # built for inclusion in a dll (and should export symbols for example).
  10690. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10691. ;;
  10692. darwin* | rhapsody*)
  10693. # PIC is the default on this platform
  10694. # Common symbols not allowed in MH_DYLIB files
  10695. lt_prog_compiler_pic_CXX='-fno-common'
  10696. ;;
  10697. *djgpp*)
  10698. # DJGPP does not support shared libraries at all
  10699. lt_prog_compiler_pic_CXX=
  10700. ;;
  10701. sysv4*MP*)
  10702. if test -d /usr/nec; then
  10703. lt_prog_compiler_pic_CXX=-Kconform_pic
  10704. fi
  10705. ;;
  10706. hpux*)
  10707. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10708. # not for PA HP-UX.
  10709. case "$host_cpu" in
  10710. hppa*64*|ia64*)
  10711. ;;
  10712. *)
  10713. lt_prog_compiler_pic_CXX='-fPIC'
  10714. ;;
  10715. esac
  10716. ;;
  10717. *)
  10718. lt_prog_compiler_pic_CXX='-fPIC'
  10719. ;;
  10720. esac
  10721. else
  10722. case $host_os in
  10723. aix4* | aix5*)
  10724. # All AIX code is PIC.
  10725. if test "$host_cpu" = ia64; then
  10726. # AIX 5 now supports IA64 processor
  10727. lt_prog_compiler_static_CXX='-Bstatic'
  10728. else
  10729. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10730. fi
  10731. ;;
  10732. chorus*)
  10733. case $cc_basename in
  10734. cxch68*)
  10735. # Green Hills C++ Compiler
  10736. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  10737. ;;
  10738. esac
  10739. ;;
  10740. darwin*)
  10741. # PIC is the default on this platform
  10742. # Common symbols not allowed in MH_DYLIB files
  10743. case $cc_basename in
  10744. xlc*)
  10745. lt_prog_compiler_pic_CXX='-qnocommon'
  10746. lt_prog_compiler_wl_CXX='-Wl,'
  10747. ;;
  10748. esac
  10749. ;;
  10750. dgux*)
  10751. case $cc_basename in
  10752. ec++*)
  10753. lt_prog_compiler_pic_CXX='-KPIC'
  10754. ;;
  10755. ghcx*)
  10756. # Green Hills C++ Compiler
  10757. lt_prog_compiler_pic_CXX='-pic'
  10758. ;;
  10759. *)
  10760. ;;
  10761. esac
  10762. ;;
  10763. freebsd* | kfreebsd*-gnu | dragonfly*)
  10764. # FreeBSD uses GNU C++
  10765. ;;
  10766. hpux9* | hpux10* | hpux11*)
  10767. case $cc_basename in
  10768. CC*)
  10769. lt_prog_compiler_wl_CXX='-Wl,'
  10770. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10771. if test "$host_cpu" != ia64; then
  10772. lt_prog_compiler_pic_CXX='+Z'
  10773. fi
  10774. ;;
  10775. aCC*)
  10776. lt_prog_compiler_wl_CXX='-Wl,'
  10777. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10778. case "$host_cpu" in
  10779. hppa*64*|ia64*)
  10780. # +Z the default
  10781. ;;
  10782. *)
  10783. lt_prog_compiler_pic_CXX='+Z'
  10784. ;;
  10785. esac
  10786. ;;
  10787. *)
  10788. ;;
  10789. esac
  10790. ;;
  10791. irix5* | irix6* | nonstopux*)
  10792. case $cc_basename in
  10793. CC*)
  10794. lt_prog_compiler_wl_CXX='-Wl,'
  10795. lt_prog_compiler_static_CXX='-non_shared'
  10796. # CC pic flag -KPIC is the default.
  10797. ;;
  10798. *)
  10799. ;;
  10800. esac
  10801. ;;
  10802. linux*)
  10803. case $cc_basename in
  10804. KCC*)
  10805. # KAI C++ Compiler
  10806. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10807. lt_prog_compiler_pic_CXX='-fPIC'
  10808. ;;
  10809. icpc* | ecpc*)
  10810. # Intel C++
  10811. lt_prog_compiler_wl_CXX='-Wl,'
  10812. lt_prog_compiler_pic_CXX='-KPIC'
  10813. lt_prog_compiler_static_CXX='-static'
  10814. ;;
  10815. pgCC*)
  10816. # Portland Group C++ compiler.
  10817. lt_prog_compiler_wl_CXX='-Wl,'
  10818. lt_prog_compiler_pic_CXX='-fpic'
  10819. lt_prog_compiler_static_CXX='-static'
  10820. ;;
  10821. cxx*)
  10822. # Compaq C++
  10823. # Make sure the PIC flag is empty. It appears that all Alpha
  10824. # Linux and Compaq Tru64 Unix objects are PIC.
  10825. lt_prog_compiler_pic_CXX=
  10826. lt_prog_compiler_static_CXX='-non_shared'
  10827. ;;
  10828. *)
  10829. ;;
  10830. esac
  10831. ;;
  10832. lynxos*)
  10833. ;;
  10834. m88k*)
  10835. ;;
  10836. mvs*)
  10837. case $cc_basename in
  10838. cxx*)
  10839. lt_prog_compiler_pic_CXX='-W c,exportall'
  10840. ;;
  10841. *)
  10842. ;;
  10843. esac
  10844. ;;
  10845. netbsd*)
  10846. ;;
  10847. osf3* | osf4* | osf5*)
  10848. case $cc_basename in
  10849. KCC*)
  10850. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10851. ;;
  10852. RCC*)
  10853. # Rational C++ 2.4.1
  10854. lt_prog_compiler_pic_CXX='-pic'
  10855. ;;
  10856. cxx*)
  10857. # Digital/Compaq C++
  10858. lt_prog_compiler_wl_CXX='-Wl,'
  10859. # Make sure the PIC flag is empty. It appears that all Alpha
  10860. # Linux and Compaq Tru64 Unix objects are PIC.
  10861. lt_prog_compiler_pic_CXX=
  10862. lt_prog_compiler_static_CXX='-non_shared'
  10863. ;;
  10864. *)
  10865. ;;
  10866. esac
  10867. ;;
  10868. psos*)
  10869. ;;
  10870. sco*)
  10871. case $cc_basename in
  10872. CC*)
  10873. lt_prog_compiler_pic_CXX='-fPIC'
  10874. ;;
  10875. *)
  10876. ;;
  10877. esac
  10878. ;;
  10879. solaris*)
  10880. case $cc_basename in
  10881. CC*)
  10882. # Sun C++ 4.2, 5.x and Centerline C++
  10883. lt_prog_compiler_pic_CXX='-KPIC'
  10884. lt_prog_compiler_static_CXX='-Bstatic'
  10885. lt_prog_compiler_wl_CXX='-Qoption ld '
  10886. ;;
  10887. gcx*)
  10888. # Green Hills C++ Compiler
  10889. lt_prog_compiler_pic_CXX='-PIC'
  10890. ;;
  10891. *)
  10892. ;;
  10893. esac
  10894. ;;
  10895. sunos4*)
  10896. case $cc_basename in
  10897. CC*)
  10898. # Sun C++ 4.x
  10899. lt_prog_compiler_pic_CXX='-pic'
  10900. lt_prog_compiler_static_CXX='-Bstatic'
  10901. ;;
  10902. lcc*)
  10903. # Lucid
  10904. lt_prog_compiler_pic_CXX='-pic'
  10905. ;;
  10906. *)
  10907. ;;
  10908. esac
  10909. ;;
  10910. tandem*)
  10911. case $cc_basename in
  10912. NCC*)
  10913. # NonStop-UX NCC 3.20
  10914. lt_prog_compiler_pic_CXX='-KPIC'
  10915. ;;
  10916. *)
  10917. ;;
  10918. esac
  10919. ;;
  10920. unixware*)
  10921. ;;
  10922. vxworks*)
  10923. ;;
  10924. *)
  10925. lt_prog_compiler_can_build_shared_CXX=no
  10926. ;;
  10927. esac
  10928. fi
  10929. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10930. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  10931. #
  10932. # Check to make sure the PIC flag actually works.
  10933. #
  10934. if test -n "$lt_prog_compiler_pic_CXX"; then
  10935. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10936. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  10937. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10938. echo $ECHO_N "(cached) $ECHO_C" >&6
  10939. else
  10940. lt_prog_compiler_pic_works_CXX=no
  10941. ac_outfile=conftest.$ac_objext
  10942. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10943. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10944. # Insert the option either (1) after the last *FLAGS variable, or
  10945. # (2) before a word containing "conftest.", or (3) at the end.
  10946. # Note that $ac_compile itself does not contain backslashes and begins
  10947. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10948. # The option is referenced via a variable to avoid confusing sed.
  10949. lt_compile=`echo "$ac_compile" | $SED \
  10950. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10951. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10952. -e 's:$: $lt_compiler_flag:'`
  10953. (eval echo "\"\$as_me:12221: $lt_compile\"" >&5)
  10954. (eval "$lt_compile" 2>conftest.err)
  10955. ac_status=$?
  10956. cat conftest.err >&5
  10957. echo "$as_me:12225: \$? = $ac_status" >&5
  10958. if (exit $ac_status) && test -s "$ac_outfile"; then
  10959. # The compiler can only warn and ignore the option if not recognized
  10960. # So say no if there are warnings other than the usual output.
  10961. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  10962. $SED '/^$/d' conftest.err >conftest.er2
  10963. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  10964. lt_prog_compiler_pic_works_CXX=yes
  10965. fi
  10966. fi
  10967. $rm conftest*
  10968. fi
  10969. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10970. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  10971. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10972. case $lt_prog_compiler_pic_CXX in
  10973. "" | " "*) ;;
  10974. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10975. esac
  10976. else
  10977. lt_prog_compiler_pic_CXX=
  10978. lt_prog_compiler_can_build_shared_CXX=no
  10979. fi
  10980. fi
  10981. case "$host_os" in
  10982. # For platforms which do not support PIC, -DPIC is meaningless:
  10983. *djgpp*)
  10984. lt_prog_compiler_pic_CXX=
  10985. ;;
  10986. *)
  10987. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10988. ;;
  10989. esac
  10990. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10991. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  10992. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10993. echo $ECHO_N "(cached) $ECHO_C" >&6
  10994. else
  10995. lt_cv_prog_compiler_c_o_CXX=no
  10996. $rm -r conftest 2>/dev/null
  10997. mkdir conftest
  10998. cd conftest
  10999. mkdir out
  11000. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11001. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11002. # Insert the option either (1) after the last *FLAGS variable, or
  11003. # (2) before a word containing "conftest.", or (3) at the end.
  11004. # Note that $ac_compile itself does not contain backslashes and begins
  11005. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11006. lt_compile=`echo "$ac_compile" | $SED \
  11007. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11008. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11009. -e 's:$: $lt_compiler_flag:'`
  11010. (eval echo "\"\$as_me:12283: $lt_compile\"" >&5)
  11011. (eval "$lt_compile" 2>out/conftest.err)
  11012. ac_status=$?
  11013. cat out/conftest.err >&5
  11014. echo "$as_me:12287: \$? = $ac_status" >&5
  11015. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11016. then
  11017. # The compiler can only warn and ignore the option if not recognized
  11018. # So say no if there are warnings
  11019. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  11020. $SED '/^$/d' out/conftest.err >out/conftest.er2
  11021. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11022. lt_cv_prog_compiler_c_o_CXX=yes
  11023. fi
  11024. fi
  11025. chmod u+w .
  11026. $rm conftest*
  11027. # SGI C++ compiler will create directory out/ii_files/ for
  11028. # template instantiation
  11029. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11030. $rm out/* && rmdir out
  11031. cd ..
  11032. rmdir conftest
  11033. $rm conftest*
  11034. fi
  11035. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11036. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11037. hard_links="nottested"
  11038. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11039. # do not overwrite the value of need_locks provided by the user
  11040. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11041. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11042. hard_links=yes
  11043. $rm conftest*
  11044. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11045. touch conftest.a
  11046. ln conftest.a conftest.b 2>&5 || hard_links=no
  11047. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11048. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11049. echo "${ECHO_T}$hard_links" >&6; }
  11050. if test "$hard_links" = no; then
  11051. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11052. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11053. need_locks=warn
  11054. fi
  11055. else
  11056. need_locks=no
  11057. fi
  11058. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11059. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11060. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11061. case $host_os in
  11062. aix4* | aix5*)
  11063. # If we're using GNU nm, then we don't want the "-C" option.
  11064. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11065. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11066. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11067. else
  11068. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11069. fi
  11070. ;;
  11071. pw32*)
  11072. export_symbols_cmds_CXX="$ltdll_cmds"
  11073. ;;
  11074. cygwin* | mingw*)
  11075. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11076. ;;
  11077. *)
  11078. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11079. ;;
  11080. esac
  11081. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11082. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11083. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11084. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11085. if test "$GCC" = yes; then
  11086. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11087. fi
  11088. #
  11089. # Do we need to explicitly link libc?
  11090. #
  11091. case "x$archive_cmds_need_lc_CXX" in
  11092. x|xyes)
  11093. # Assume -lc should be added
  11094. archive_cmds_need_lc_CXX=yes
  11095. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11096. case $archive_cmds_CXX in
  11097. *'~'*)
  11098. # FIXME: we may have to deal with multi-command sequences.
  11099. ;;
  11100. '$CC '*)
  11101. # Test whether the compiler implicitly links with -lc since on some
  11102. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11103. # to ld, don't add -lc before -lgcc.
  11104. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11105. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11106. $rm conftest*
  11107. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11109. (eval $ac_compile) 2>&5
  11110. ac_status=$?
  11111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11112. (exit $ac_status); } 2>conftest.err; then
  11113. soname=conftest
  11114. lib=conftest
  11115. libobjs=conftest.$ac_objext
  11116. deplibs=
  11117. wl=$lt_prog_compiler_wl_CXX
  11118. compiler_flags=-v
  11119. linker_flags=-v
  11120. verstring=
  11121. output_objdir=.
  11122. libname=conftest
  11123. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11124. allow_undefined_flag_CXX=
  11125. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11126. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11127. ac_status=$?
  11128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11129. (exit $ac_status); }
  11130. then
  11131. archive_cmds_need_lc_CXX=no
  11132. else
  11133. archive_cmds_need_lc_CXX=yes
  11134. fi
  11135. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11136. else
  11137. cat conftest.err 1>&5
  11138. fi
  11139. $rm conftest*
  11140. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11141. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11142. ;;
  11143. esac
  11144. fi
  11145. ;;
  11146. esac
  11147. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11148. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11149. library_names_spec=
  11150. libname_spec='lib$name'
  11151. soname_spec=
  11152. shrext_cmds=".so"
  11153. postinstall_cmds=
  11154. postuninstall_cmds=
  11155. finish_cmds=
  11156. finish_eval=
  11157. shlibpath_var=
  11158. shlibpath_overrides_runpath=unknown
  11159. version_type=none
  11160. dynamic_linker="$host_os ld.so"
  11161. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11162. if test "$GCC" = yes; then
  11163. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11164. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11165. # if the path contains ";" then we assume it to be the separator
  11166. # otherwise default to the standard path separator (i.e. ":") - it is
  11167. # assumed that no part of a normal pathname contains ";" but that should
  11168. # okay in the real world where ";" in dirpaths is itself problematic.
  11169. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11170. else
  11171. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11172. fi
  11173. else
  11174. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11175. fi
  11176. need_lib_prefix=unknown
  11177. hardcode_into_libs=no
  11178. # when you set need_version to no, make sure it does not cause -set_version
  11179. # flags to be left without arguments
  11180. need_version=unknown
  11181. case $host_os in
  11182. aix3*)
  11183. version_type=linux
  11184. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11185. shlibpath_var=LIBPATH
  11186. # AIX 3 has no versioning support, so we append a major version to the name.
  11187. soname_spec='${libname}${release}${shared_ext}$major'
  11188. ;;
  11189. aix4* | aix5*)
  11190. version_type=linux
  11191. need_lib_prefix=no
  11192. need_version=no
  11193. hardcode_into_libs=yes
  11194. if test "$host_cpu" = ia64; then
  11195. # AIX 5 supports IA64
  11196. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11197. shlibpath_var=LD_LIBRARY_PATH
  11198. else
  11199. # With GCC up to 2.95.x, collect2 would create an import file
  11200. # for dependence libraries. The import file would start with
  11201. # the line `#! .'. This would cause the generated library to
  11202. # depend on `.', always an invalid library. This was fixed in
  11203. # development snapshots of GCC prior to 3.0.
  11204. case $host_os in
  11205. aix4 | aix4.[01] | aix4.[01].*)
  11206. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11207. echo ' yes '
  11208. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11209. :
  11210. else
  11211. can_build_shared=no
  11212. fi
  11213. ;;
  11214. esac
  11215. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11216. # soname into executable. Probably we can add versioning support to
  11217. # collect2, so additional links can be useful in future.
  11218. if test "$aix_use_runtimelinking" = yes; then
  11219. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11220. # instead of lib<name>.a to let people know that these are not
  11221. # typical AIX shared libraries.
  11222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11223. else
  11224. # We preserve .a as extension for shared libraries through AIX4.2
  11225. # and later when we are not doing run time linking.
  11226. library_names_spec='${libname}${release}.a $libname.a'
  11227. soname_spec='${libname}${release}${shared_ext}$major'
  11228. fi
  11229. shlibpath_var=LIBPATH
  11230. fi
  11231. ;;
  11232. amigaos*)
  11233. library_names_spec='$libname.ixlibrary $libname.a'
  11234. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11235. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  11236. ;;
  11237. beos*)
  11238. library_names_spec='${libname}${shared_ext}'
  11239. dynamic_linker="$host_os ld.so"
  11240. shlibpath_var=LIBRARY_PATH
  11241. ;;
  11242. bsdi[45]*)
  11243. version_type=linux
  11244. need_version=no
  11245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11246. soname_spec='${libname}${release}${shared_ext}$major'
  11247. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11248. shlibpath_var=LD_LIBRARY_PATH
  11249. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11250. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11251. # the default ld.so.conf also contains /usr/contrib/lib and
  11252. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11253. # libtool to hard-code these into programs
  11254. ;;
  11255. cygwin* | mingw* | pw32*)
  11256. version_type=windows
  11257. shrext_cmds=".dll"
  11258. need_version=no
  11259. need_lib_prefix=no
  11260. case $GCC,$host_os in
  11261. yes,cygwin* | yes,mingw* | yes,pw32*)
  11262. library_names_spec='$libname.dll.a'
  11263. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11264. postinstall_cmds='base_file=`basename \${file}`~
  11265. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11266. dldir=$destdir/`dirname \$dlpath`~
  11267. test -d \$dldir || mkdir -p \$dldir~
  11268. $install_prog $dir/$dlname \$dldir/$dlname'
  11269. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11270. dlpath=$dir/\$dldll~
  11271. $rm \$dlpath'
  11272. shlibpath_overrides_runpath=yes
  11273. case $host_os in
  11274. cygwin*)
  11275. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11276. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11277. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11278. ;;
  11279. mingw*)
  11280. # MinGW DLLs use traditional 'lib' prefix
  11281. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11282. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11283. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11284. # It is most probably a Windows format PATH printed by
  11285. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11286. # path with ; separators, and with drive letters. We can handle the
  11287. # drive letters (cygwin fileutils understands them), so leave them,
  11288. # especially as we might pass files found there to a mingw objdump,
  11289. # which wouldn't understand a cygwinified path. Ahh.
  11290. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11291. else
  11292. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11293. fi
  11294. ;;
  11295. pw32*)
  11296. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11297. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11298. ;;
  11299. esac
  11300. ;;
  11301. *)
  11302. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11303. ;;
  11304. esac
  11305. dynamic_linker='Win32 ld.exe'
  11306. # FIXME: first we should search . and the directory the executable is in
  11307. shlibpath_var=PATH
  11308. ;;
  11309. darwin* | rhapsody*)
  11310. dynamic_linker="$host_os dyld"
  11311. version_type=darwin
  11312. need_lib_prefix=no
  11313. need_version=no
  11314. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11315. soname_spec='${libname}${release}${major}$shared_ext'
  11316. shlibpath_overrides_runpath=yes
  11317. shlibpath_var=DYLD_LIBRARY_PATH
  11318. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  11319. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11320. if test "$GCC" = yes; then
  11321. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  11322. else
  11323. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11324. fi
  11325. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11326. ;;
  11327. dgux*)
  11328. version_type=linux
  11329. need_lib_prefix=no
  11330. need_version=no
  11331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11332. soname_spec='${libname}${release}${shared_ext}$major'
  11333. shlibpath_var=LD_LIBRARY_PATH
  11334. ;;
  11335. freebsd1*)
  11336. dynamic_linker=no
  11337. ;;
  11338. kfreebsd*-gnu)
  11339. version_type=linux
  11340. need_lib_prefix=no
  11341. need_version=no
  11342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11343. soname_spec='${libname}${release}${shared_ext}$major'
  11344. shlibpath_var=LD_LIBRARY_PATH
  11345. shlibpath_overrides_runpath=no
  11346. hardcode_into_libs=yes
  11347. dynamic_linker='GNU ld.so'
  11348. ;;
  11349. freebsd* | dragonfly*)
  11350. # DragonFly does not have aout. When/if they implement a new
  11351. # versioning mechanism, adjust this.
  11352. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11353. version_type=freebsd-$objformat
  11354. case $version_type in
  11355. freebsd-elf*)
  11356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11357. need_version=no
  11358. need_lib_prefix=no
  11359. ;;
  11360. freebsd-*)
  11361. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11362. need_version=yes
  11363. ;;
  11364. esac
  11365. shlibpath_var=LD_LIBRARY_PATH
  11366. case $host_os in
  11367. freebsd2*)
  11368. shlibpath_overrides_runpath=yes
  11369. ;;
  11370. freebsd3.[01]* | freebsdelf3.[01]*)
  11371. shlibpath_overrides_runpath=yes
  11372. hardcode_into_libs=yes
  11373. ;;
  11374. *) # from 3.2 on
  11375. shlibpath_overrides_runpath=no
  11376. hardcode_into_libs=yes
  11377. ;;
  11378. esac
  11379. ;;
  11380. gnu*)
  11381. version_type=linux
  11382. need_lib_prefix=no
  11383. need_version=no
  11384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11385. soname_spec='${libname}${release}${shared_ext}$major'
  11386. shlibpath_var=LD_LIBRARY_PATH
  11387. hardcode_into_libs=yes
  11388. ;;
  11389. hpux9* | hpux10* | hpux11*)
  11390. # Give a soname corresponding to the major version so that dld.sl refuses to
  11391. # link against other versions.
  11392. version_type=sunos
  11393. need_lib_prefix=no
  11394. need_version=no
  11395. case "$host_cpu" in
  11396. ia64*)
  11397. shrext_cmds='.so'
  11398. hardcode_into_libs=yes
  11399. dynamic_linker="$host_os dld.so"
  11400. shlibpath_var=LD_LIBRARY_PATH
  11401. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11403. soname_spec='${libname}${release}${shared_ext}$major'
  11404. if test "X$HPUX_IA64_MODE" = X32; then
  11405. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11406. else
  11407. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11408. fi
  11409. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11410. ;;
  11411. hppa*64*)
  11412. shrext_cmds='.sl'
  11413. hardcode_into_libs=yes
  11414. dynamic_linker="$host_os dld.sl"
  11415. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11416. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11418. soname_spec='${libname}${release}${shared_ext}$major'
  11419. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11420. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11421. ;;
  11422. *)
  11423. shrext_cmds='.sl'
  11424. dynamic_linker="$host_os dld.sl"
  11425. shlibpath_var=SHLIB_PATH
  11426. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11428. soname_spec='${libname}${release}${shared_ext}$major'
  11429. ;;
  11430. esac
  11431. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11432. postinstall_cmds='chmod 555 $lib'
  11433. ;;
  11434. irix5* | irix6* | nonstopux*)
  11435. case $host_os in
  11436. nonstopux*) version_type=nonstopux ;;
  11437. *)
  11438. if test "$lt_cv_prog_gnu_ld" = yes; then
  11439. version_type=linux
  11440. else
  11441. version_type=irix
  11442. fi ;;
  11443. esac
  11444. need_lib_prefix=no
  11445. need_version=no
  11446. soname_spec='${libname}${release}${shared_ext}$major'
  11447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11448. case $host_os in
  11449. irix5* | nonstopux*)
  11450. libsuff= shlibsuff=
  11451. ;;
  11452. *)
  11453. case $LD in # libtool.m4 will add one of these switches to LD
  11454. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11455. libsuff= shlibsuff= libmagic=32-bit;;
  11456. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11457. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11458. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11459. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11460. *) libsuff= shlibsuff= libmagic=never-match;;
  11461. esac
  11462. ;;
  11463. esac
  11464. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11465. shlibpath_overrides_runpath=no
  11466. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11467. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11468. hardcode_into_libs=yes
  11469. ;;
  11470. # No shared lib support for Linux oldld, aout, or coff.
  11471. linux*oldld* | linux*aout* | linux*coff*)
  11472. dynamic_linker=no
  11473. ;;
  11474. # This must be Linux ELF.
  11475. linux*)
  11476. version_type=linux
  11477. need_lib_prefix=no
  11478. need_version=no
  11479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11480. soname_spec='${libname}${release}${shared_ext}$major'
  11481. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11482. shlibpath_var=LD_LIBRARY_PATH
  11483. shlibpath_overrides_runpath=no
  11484. # This implies no fast_install, which is unacceptable.
  11485. # Some rework will be needed to allow for fast_install
  11486. # before this can be enabled.
  11487. hardcode_into_libs=yes
  11488. # Append ld.so.conf contents to the search path
  11489. if test -f /etc/ld.so.conf; then
  11490. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11491. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11492. fi
  11493. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11494. # powerpc, because MkLinux only supported shared libraries with the
  11495. # GNU dynamic linker. Since this was broken with cross compilers,
  11496. # most powerpc-linux boxes support dynamic linking these days and
  11497. # people can always --disable-shared, the test was removed, and we
  11498. # assume the GNU/Linux dynamic linker is in use.
  11499. dynamic_linker='GNU/Linux ld.so'
  11500. ;;
  11501. knetbsd*-gnu)
  11502. version_type=linux
  11503. need_lib_prefix=no
  11504. need_version=no
  11505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11506. soname_spec='${libname}${release}${shared_ext}$major'
  11507. shlibpath_var=LD_LIBRARY_PATH
  11508. shlibpath_overrides_runpath=no
  11509. hardcode_into_libs=yes
  11510. dynamic_linker='GNU ld.so'
  11511. ;;
  11512. netbsd*)
  11513. version_type=sunos
  11514. need_lib_prefix=no
  11515. need_version=no
  11516. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11518. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11519. dynamic_linker='NetBSD (a.out) ld.so'
  11520. else
  11521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11522. soname_spec='${libname}${release}${shared_ext}$major'
  11523. dynamic_linker='NetBSD ld.elf_so'
  11524. fi
  11525. shlibpath_var=LD_LIBRARY_PATH
  11526. shlibpath_overrides_runpath=yes
  11527. hardcode_into_libs=yes
  11528. ;;
  11529. newsos6)
  11530. version_type=linux
  11531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11532. shlibpath_var=LD_LIBRARY_PATH
  11533. shlibpath_overrides_runpath=yes
  11534. ;;
  11535. nto-qnx*)
  11536. version_type=linux
  11537. need_lib_prefix=no
  11538. need_version=no
  11539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11540. soname_spec='${libname}${release}${shared_ext}$major'
  11541. shlibpath_var=LD_LIBRARY_PATH
  11542. shlibpath_overrides_runpath=yes
  11543. ;;
  11544. openbsd*)
  11545. version_type=sunos
  11546. need_lib_prefix=no
  11547. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11548. case $host_os in
  11549. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11550. *) need_version=no ;;
  11551. esac
  11552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11553. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11554. shlibpath_var=LD_LIBRARY_PATH
  11555. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11556. case $host_os in
  11557. openbsd2.[89] | openbsd2.[89].*)
  11558. shlibpath_overrides_runpath=no
  11559. ;;
  11560. *)
  11561. shlibpath_overrides_runpath=yes
  11562. ;;
  11563. esac
  11564. else
  11565. shlibpath_overrides_runpath=yes
  11566. fi
  11567. ;;
  11568. os2*)
  11569. libname_spec='$name'
  11570. shrext_cmds=".dll"
  11571. need_lib_prefix=no
  11572. library_names_spec='$libname${shared_ext} $libname.a'
  11573. dynamic_linker='OS/2 ld.exe'
  11574. shlibpath_var=LIBPATH
  11575. ;;
  11576. osf3* | osf4* | osf5*)
  11577. version_type=osf
  11578. need_lib_prefix=no
  11579. need_version=no
  11580. soname_spec='${libname}${release}${shared_ext}$major'
  11581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11582. shlibpath_var=LD_LIBRARY_PATH
  11583. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11584. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11585. ;;
  11586. sco3.2v5*)
  11587. version_type=osf
  11588. soname_spec='${libname}${release}${shared_ext}$major'
  11589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11590. shlibpath_var=LD_LIBRARY_PATH
  11591. ;;
  11592. solaris*)
  11593. version_type=linux
  11594. need_lib_prefix=no
  11595. need_version=no
  11596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11597. soname_spec='${libname}${release}${shared_ext}$major'
  11598. shlibpath_var=LD_LIBRARY_PATH
  11599. shlibpath_overrides_runpath=yes
  11600. hardcode_into_libs=yes
  11601. # ldd complains unless libraries are executable
  11602. postinstall_cmds='chmod +x $lib'
  11603. ;;
  11604. sunos4*)
  11605. version_type=sunos
  11606. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11607. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11608. shlibpath_var=LD_LIBRARY_PATH
  11609. shlibpath_overrides_runpath=yes
  11610. if test "$with_gnu_ld" = yes; then
  11611. need_lib_prefix=no
  11612. fi
  11613. need_version=yes
  11614. ;;
  11615. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11616. version_type=linux
  11617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11618. soname_spec='${libname}${release}${shared_ext}$major'
  11619. shlibpath_var=LD_LIBRARY_PATH
  11620. case $host_vendor in
  11621. sni)
  11622. shlibpath_overrides_runpath=no
  11623. need_lib_prefix=no
  11624. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11625. runpath_var=LD_RUN_PATH
  11626. ;;
  11627. siemens)
  11628. need_lib_prefix=no
  11629. ;;
  11630. motorola)
  11631. need_lib_prefix=no
  11632. need_version=no
  11633. shlibpath_overrides_runpath=no
  11634. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11635. ;;
  11636. esac
  11637. ;;
  11638. sysv4*MP*)
  11639. if test -d /usr/nec ;then
  11640. version_type=linux
  11641. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11642. soname_spec='$libname${shared_ext}.$major'
  11643. shlibpath_var=LD_LIBRARY_PATH
  11644. fi
  11645. ;;
  11646. uts4*)
  11647. version_type=linux
  11648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11649. soname_spec='${libname}${release}${shared_ext}$major'
  11650. shlibpath_var=LD_LIBRARY_PATH
  11651. ;;
  11652. *)
  11653. dynamic_linker=no
  11654. ;;
  11655. esac
  11656. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11657. echo "${ECHO_T}$dynamic_linker" >&6; }
  11658. test "$dynamic_linker" = no && can_build_shared=no
  11659. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11660. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11661. hardcode_action_CXX=
  11662. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11663. test -n "$runpath_var_CXX" || \
  11664. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11665. # We can hardcode non-existant directories.
  11666. if test "$hardcode_direct_CXX" != no &&
  11667. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11668. # have to relink, otherwise we might link with an installed library
  11669. # when we should be linking with a yet-to-be-installed one
  11670. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11671. test "$hardcode_minus_L_CXX" != no; then
  11672. # Linking always hardcodes the temporary library directory.
  11673. hardcode_action_CXX=relink
  11674. else
  11675. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11676. hardcode_action_CXX=immediate
  11677. fi
  11678. else
  11679. # We cannot hardcode anything, or else we can only hardcode existing
  11680. # directories.
  11681. hardcode_action_CXX=unsupported
  11682. fi
  11683. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11684. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11685. if test "$hardcode_action_CXX" = relink; then
  11686. # Fast installation is not supported
  11687. enable_fast_install=no
  11688. elif test "$shlibpath_overrides_runpath" = yes ||
  11689. test "$enable_shared" = no; then
  11690. # Fast installation is not necessary
  11691. enable_fast_install=needless
  11692. fi
  11693. striplib=
  11694. old_striplib=
  11695. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11696. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  11697. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11698. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11699. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11700. { echo "$as_me:$LINENO: result: yes" >&5
  11701. echo "${ECHO_T}yes" >&6; }
  11702. else
  11703. # FIXME - insert some real tests, host_os isn't really good enough
  11704. case $host_os in
  11705. darwin*)
  11706. if test -n "$STRIP" ; then
  11707. striplib="$STRIP -x"
  11708. { echo "$as_me:$LINENO: result: yes" >&5
  11709. echo "${ECHO_T}yes" >&6; }
  11710. else
  11711. { echo "$as_me:$LINENO: result: no" >&5
  11712. echo "${ECHO_T}no" >&6; }
  11713. fi
  11714. ;;
  11715. *)
  11716. { echo "$as_me:$LINENO: result: no" >&5
  11717. echo "${ECHO_T}no" >&6; }
  11718. ;;
  11719. esac
  11720. fi
  11721. if test "x$enable_dlopen" != xyes; then
  11722. enable_dlopen=unknown
  11723. enable_dlopen_self=unknown
  11724. enable_dlopen_self_static=unknown
  11725. else
  11726. lt_cv_dlopen=no
  11727. lt_cv_dlopen_libs=
  11728. case $host_os in
  11729. beos*)
  11730. lt_cv_dlopen="load_add_on"
  11731. lt_cv_dlopen_libs=
  11732. lt_cv_dlopen_self=yes
  11733. ;;
  11734. mingw* | pw32*)
  11735. lt_cv_dlopen="LoadLibrary"
  11736. lt_cv_dlopen_libs=
  11737. ;;
  11738. cygwin*)
  11739. lt_cv_dlopen="dlopen"
  11740. lt_cv_dlopen_libs=
  11741. ;;
  11742. darwin*)
  11743. # if libdl is installed we need to link against it
  11744. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11745. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11746. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11747. echo $ECHO_N "(cached) $ECHO_C" >&6
  11748. else
  11749. ac_check_lib_save_LIBS=$LIBS
  11750. LIBS="-ldl $LIBS"
  11751. cat >conftest.$ac_ext <<_ACEOF
  11752. /* confdefs.h. */
  11753. _ACEOF
  11754. cat confdefs.h >>conftest.$ac_ext
  11755. cat >>conftest.$ac_ext <<_ACEOF
  11756. /* end confdefs.h. */
  11757. /* Override any GCC internal prototype to avoid an error.
  11758. Use char because int might match the return type of a GCC
  11759. builtin and then its argument prototype would still apply. */
  11760. #ifdef __cplusplus
  11761. extern "C"
  11762. #endif
  11763. char dlopen ();
  11764. int
  11765. main ()
  11766. {
  11767. return dlopen ();
  11768. ;
  11769. return 0;
  11770. }
  11771. _ACEOF
  11772. rm -f conftest.$ac_objext conftest$ac_exeext
  11773. if { (ac_try="$ac_link"
  11774. case "(($ac_try" in
  11775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11776. *) ac_try_echo=$ac_try;;
  11777. esac
  11778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11779. (eval "$ac_link") 2>conftest.er1
  11780. ac_status=$?
  11781. grep -v '^ *+' conftest.er1 >conftest.err
  11782. rm -f conftest.er1
  11783. cat conftest.err >&5
  11784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11785. (exit $ac_status); } && {
  11786. test -z "$ac_cxx_werror_flag" ||
  11787. test ! -s conftest.err
  11788. } && test -s conftest$ac_exeext &&
  11789. $as_test_x conftest$ac_exeext; then
  11790. ac_cv_lib_dl_dlopen=yes
  11791. else
  11792. echo "$as_me: failed program was:" >&5
  11793. sed 's/^/| /' conftest.$ac_ext >&5
  11794. ac_cv_lib_dl_dlopen=no
  11795. fi
  11796. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11797. conftest$ac_exeext conftest.$ac_ext
  11798. LIBS=$ac_check_lib_save_LIBS
  11799. fi
  11800. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11801. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11802. if test $ac_cv_lib_dl_dlopen = yes; then
  11803. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11804. else
  11805. lt_cv_dlopen="dyld"
  11806. lt_cv_dlopen_libs=
  11807. lt_cv_dlopen_self=yes
  11808. fi
  11809. ;;
  11810. *)
  11811. { echo "$as_me:$LINENO: checking for shl_load" >&5
  11812. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  11813. if test "${ac_cv_func_shl_load+set}" = set; then
  11814. echo $ECHO_N "(cached) $ECHO_C" >&6
  11815. else
  11816. cat >conftest.$ac_ext <<_ACEOF
  11817. /* confdefs.h. */
  11818. _ACEOF
  11819. cat confdefs.h >>conftest.$ac_ext
  11820. cat >>conftest.$ac_ext <<_ACEOF
  11821. /* end confdefs.h. */
  11822. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11823. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11824. #define shl_load innocuous_shl_load
  11825. /* System header to define __stub macros and hopefully few prototypes,
  11826. which can conflict with char shl_load (); below.
  11827. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11828. <limits.h> exists even on freestanding compilers. */
  11829. #ifdef __STDC__
  11830. # include <limits.h>
  11831. #else
  11832. # include <assert.h>
  11833. #endif
  11834. #undef shl_load
  11835. /* Override any GCC internal prototype to avoid an error.
  11836. Use char because int might match the return type of a GCC
  11837. builtin and then its argument prototype would still apply. */
  11838. #ifdef __cplusplus
  11839. extern "C"
  11840. #endif
  11841. char shl_load ();
  11842. /* The GNU C library defines this for functions which it implements
  11843. to always fail with ENOSYS. Some functions are actually named
  11844. something starting with __ and the normal name is an alias. */
  11845. #if defined __stub_shl_load || defined __stub___shl_load
  11846. choke me
  11847. #endif
  11848. int
  11849. main ()
  11850. {
  11851. return shl_load ();
  11852. ;
  11853. return 0;
  11854. }
  11855. _ACEOF
  11856. rm -f conftest.$ac_objext conftest$ac_exeext
  11857. if { (ac_try="$ac_link"
  11858. case "(($ac_try" in
  11859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11860. *) ac_try_echo=$ac_try;;
  11861. esac
  11862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11863. (eval "$ac_link") 2>conftest.er1
  11864. ac_status=$?
  11865. grep -v '^ *+' conftest.er1 >conftest.err
  11866. rm -f conftest.er1
  11867. cat conftest.err >&5
  11868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11869. (exit $ac_status); } && {
  11870. test -z "$ac_cxx_werror_flag" ||
  11871. test ! -s conftest.err
  11872. } && test -s conftest$ac_exeext &&
  11873. $as_test_x conftest$ac_exeext; then
  11874. ac_cv_func_shl_load=yes
  11875. else
  11876. echo "$as_me: failed program was:" >&5
  11877. sed 's/^/| /' conftest.$ac_ext >&5
  11878. ac_cv_func_shl_load=no
  11879. fi
  11880. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11881. conftest$ac_exeext conftest.$ac_ext
  11882. fi
  11883. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11884. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  11885. if test $ac_cv_func_shl_load = yes; then
  11886. lt_cv_dlopen="shl_load"
  11887. else
  11888. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11889. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  11890. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11891. echo $ECHO_N "(cached) $ECHO_C" >&6
  11892. else
  11893. ac_check_lib_save_LIBS=$LIBS
  11894. LIBS="-ldld $LIBS"
  11895. cat >conftest.$ac_ext <<_ACEOF
  11896. /* confdefs.h. */
  11897. _ACEOF
  11898. cat confdefs.h >>conftest.$ac_ext
  11899. cat >>conftest.$ac_ext <<_ACEOF
  11900. /* end confdefs.h. */
  11901. /* Override any GCC internal prototype to avoid an error.
  11902. Use char because int might match the return type of a GCC
  11903. builtin and then its argument prototype would still apply. */
  11904. #ifdef __cplusplus
  11905. extern "C"
  11906. #endif
  11907. char shl_load ();
  11908. int
  11909. main ()
  11910. {
  11911. return shl_load ();
  11912. ;
  11913. return 0;
  11914. }
  11915. _ACEOF
  11916. rm -f conftest.$ac_objext conftest$ac_exeext
  11917. if { (ac_try="$ac_link"
  11918. case "(($ac_try" in
  11919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11920. *) ac_try_echo=$ac_try;;
  11921. esac
  11922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11923. (eval "$ac_link") 2>conftest.er1
  11924. ac_status=$?
  11925. grep -v '^ *+' conftest.er1 >conftest.err
  11926. rm -f conftest.er1
  11927. cat conftest.err >&5
  11928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11929. (exit $ac_status); } && {
  11930. test -z "$ac_cxx_werror_flag" ||
  11931. test ! -s conftest.err
  11932. } && test -s conftest$ac_exeext &&
  11933. $as_test_x conftest$ac_exeext; then
  11934. ac_cv_lib_dld_shl_load=yes
  11935. else
  11936. echo "$as_me: failed program was:" >&5
  11937. sed 's/^/| /' conftest.$ac_ext >&5
  11938. ac_cv_lib_dld_shl_load=no
  11939. fi
  11940. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11941. conftest$ac_exeext conftest.$ac_ext
  11942. LIBS=$ac_check_lib_save_LIBS
  11943. fi
  11944. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11945. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  11946. if test $ac_cv_lib_dld_shl_load = yes; then
  11947. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  11948. else
  11949. { echo "$as_me:$LINENO: checking for dlopen" >&5
  11950. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  11951. if test "${ac_cv_func_dlopen+set}" = set; then
  11952. echo $ECHO_N "(cached) $ECHO_C" >&6
  11953. else
  11954. cat >conftest.$ac_ext <<_ACEOF
  11955. /* confdefs.h. */
  11956. _ACEOF
  11957. cat confdefs.h >>conftest.$ac_ext
  11958. cat >>conftest.$ac_ext <<_ACEOF
  11959. /* end confdefs.h. */
  11960. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11961. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11962. #define dlopen innocuous_dlopen
  11963. /* System header to define __stub macros and hopefully few prototypes,
  11964. which can conflict with char dlopen (); below.
  11965. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11966. <limits.h> exists even on freestanding compilers. */
  11967. #ifdef __STDC__
  11968. # include <limits.h>
  11969. #else
  11970. # include <assert.h>
  11971. #endif
  11972. #undef dlopen
  11973. /* Override any GCC internal prototype to avoid an error.
  11974. Use char because int might match the return type of a GCC
  11975. builtin and then its argument prototype would still apply. */
  11976. #ifdef __cplusplus
  11977. extern "C"
  11978. #endif
  11979. char dlopen ();
  11980. /* The GNU C library defines this for functions which it implements
  11981. to always fail with ENOSYS. Some functions are actually named
  11982. something starting with __ and the normal name is an alias. */
  11983. #if defined __stub_dlopen || defined __stub___dlopen
  11984. choke me
  11985. #endif
  11986. int
  11987. main ()
  11988. {
  11989. return dlopen ();
  11990. ;
  11991. return 0;
  11992. }
  11993. _ACEOF
  11994. rm -f conftest.$ac_objext conftest$ac_exeext
  11995. if { (ac_try="$ac_link"
  11996. case "(($ac_try" in
  11997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11998. *) ac_try_echo=$ac_try;;
  11999. esac
  12000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12001. (eval "$ac_link") 2>conftest.er1
  12002. ac_status=$?
  12003. grep -v '^ *+' conftest.er1 >conftest.err
  12004. rm -f conftest.er1
  12005. cat conftest.err >&5
  12006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12007. (exit $ac_status); } && {
  12008. test -z "$ac_cxx_werror_flag" ||
  12009. test ! -s conftest.err
  12010. } && test -s conftest$ac_exeext &&
  12011. $as_test_x conftest$ac_exeext; then
  12012. ac_cv_func_dlopen=yes
  12013. else
  12014. echo "$as_me: failed program was:" >&5
  12015. sed 's/^/| /' conftest.$ac_ext >&5
  12016. ac_cv_func_dlopen=no
  12017. fi
  12018. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12019. conftest$ac_exeext conftest.$ac_ext
  12020. fi
  12021. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  12022. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  12023. if test $ac_cv_func_dlopen = yes; then
  12024. lt_cv_dlopen="dlopen"
  12025. else
  12026. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12027. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  12028. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12029. echo $ECHO_N "(cached) $ECHO_C" >&6
  12030. else
  12031. ac_check_lib_save_LIBS=$LIBS
  12032. LIBS="-ldl $LIBS"
  12033. cat >conftest.$ac_ext <<_ACEOF
  12034. /* confdefs.h. */
  12035. _ACEOF
  12036. cat confdefs.h >>conftest.$ac_ext
  12037. cat >>conftest.$ac_ext <<_ACEOF
  12038. /* end confdefs.h. */
  12039. /* Override any GCC internal prototype to avoid an error.
  12040. Use char because int might match the return type of a GCC
  12041. builtin and then its argument prototype would still apply. */
  12042. #ifdef __cplusplus
  12043. extern "C"
  12044. #endif
  12045. char dlopen ();
  12046. int
  12047. main ()
  12048. {
  12049. return dlopen ();
  12050. ;
  12051. return 0;
  12052. }
  12053. _ACEOF
  12054. rm -f conftest.$ac_objext conftest$ac_exeext
  12055. if { (ac_try="$ac_link"
  12056. case "(($ac_try" in
  12057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12058. *) ac_try_echo=$ac_try;;
  12059. esac
  12060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12061. (eval "$ac_link") 2>conftest.er1
  12062. ac_status=$?
  12063. grep -v '^ *+' conftest.er1 >conftest.err
  12064. rm -f conftest.er1
  12065. cat conftest.err >&5
  12066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12067. (exit $ac_status); } && {
  12068. test -z "$ac_cxx_werror_flag" ||
  12069. test ! -s conftest.err
  12070. } && test -s conftest$ac_exeext &&
  12071. $as_test_x conftest$ac_exeext; then
  12072. ac_cv_lib_dl_dlopen=yes
  12073. else
  12074. echo "$as_me: failed program was:" >&5
  12075. sed 's/^/| /' conftest.$ac_ext >&5
  12076. ac_cv_lib_dl_dlopen=no
  12077. fi
  12078. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12079. conftest$ac_exeext conftest.$ac_ext
  12080. LIBS=$ac_check_lib_save_LIBS
  12081. fi
  12082. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12083. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  12084. if test $ac_cv_lib_dl_dlopen = yes; then
  12085. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12086. else
  12087. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12088. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  12089. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12090. echo $ECHO_N "(cached) $ECHO_C" >&6
  12091. else
  12092. ac_check_lib_save_LIBS=$LIBS
  12093. LIBS="-lsvld $LIBS"
  12094. cat >conftest.$ac_ext <<_ACEOF
  12095. /* confdefs.h. */
  12096. _ACEOF
  12097. cat confdefs.h >>conftest.$ac_ext
  12098. cat >>conftest.$ac_ext <<_ACEOF
  12099. /* end confdefs.h. */
  12100. /* Override any GCC internal prototype to avoid an error.
  12101. Use char because int might match the return type of a GCC
  12102. builtin and then its argument prototype would still apply. */
  12103. #ifdef __cplusplus
  12104. extern "C"
  12105. #endif
  12106. char dlopen ();
  12107. int
  12108. main ()
  12109. {
  12110. return dlopen ();
  12111. ;
  12112. return 0;
  12113. }
  12114. _ACEOF
  12115. rm -f conftest.$ac_objext conftest$ac_exeext
  12116. if { (ac_try="$ac_link"
  12117. case "(($ac_try" in
  12118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12119. *) ac_try_echo=$ac_try;;
  12120. esac
  12121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12122. (eval "$ac_link") 2>conftest.er1
  12123. ac_status=$?
  12124. grep -v '^ *+' conftest.er1 >conftest.err
  12125. rm -f conftest.er1
  12126. cat conftest.err >&5
  12127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12128. (exit $ac_status); } && {
  12129. test -z "$ac_cxx_werror_flag" ||
  12130. test ! -s conftest.err
  12131. } && test -s conftest$ac_exeext &&
  12132. $as_test_x conftest$ac_exeext; then
  12133. ac_cv_lib_svld_dlopen=yes
  12134. else
  12135. echo "$as_me: failed program was:" >&5
  12136. sed 's/^/| /' conftest.$ac_ext >&5
  12137. ac_cv_lib_svld_dlopen=no
  12138. fi
  12139. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12140. conftest$ac_exeext conftest.$ac_ext
  12141. LIBS=$ac_check_lib_save_LIBS
  12142. fi
  12143. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12144. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  12145. if test $ac_cv_lib_svld_dlopen = yes; then
  12146. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12147. else
  12148. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12149. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  12150. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12151. echo $ECHO_N "(cached) $ECHO_C" >&6
  12152. else
  12153. ac_check_lib_save_LIBS=$LIBS
  12154. LIBS="-ldld $LIBS"
  12155. cat >conftest.$ac_ext <<_ACEOF
  12156. /* confdefs.h. */
  12157. _ACEOF
  12158. cat confdefs.h >>conftest.$ac_ext
  12159. cat >>conftest.$ac_ext <<_ACEOF
  12160. /* end confdefs.h. */
  12161. /* Override any GCC internal prototype to avoid an error.
  12162. Use char because int might match the return type of a GCC
  12163. builtin and then its argument prototype would still apply. */
  12164. #ifdef __cplusplus
  12165. extern "C"
  12166. #endif
  12167. char dld_link ();
  12168. int
  12169. main ()
  12170. {
  12171. return dld_link ();
  12172. ;
  12173. return 0;
  12174. }
  12175. _ACEOF
  12176. rm -f conftest.$ac_objext conftest$ac_exeext
  12177. if { (ac_try="$ac_link"
  12178. case "(($ac_try" in
  12179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12180. *) ac_try_echo=$ac_try;;
  12181. esac
  12182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12183. (eval "$ac_link") 2>conftest.er1
  12184. ac_status=$?
  12185. grep -v '^ *+' conftest.er1 >conftest.err
  12186. rm -f conftest.er1
  12187. cat conftest.err >&5
  12188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12189. (exit $ac_status); } && {
  12190. test -z "$ac_cxx_werror_flag" ||
  12191. test ! -s conftest.err
  12192. } && test -s conftest$ac_exeext &&
  12193. $as_test_x conftest$ac_exeext; then
  12194. ac_cv_lib_dld_dld_link=yes
  12195. else
  12196. echo "$as_me: failed program was:" >&5
  12197. sed 's/^/| /' conftest.$ac_ext >&5
  12198. ac_cv_lib_dld_dld_link=no
  12199. fi
  12200. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12201. conftest$ac_exeext conftest.$ac_ext
  12202. LIBS=$ac_check_lib_save_LIBS
  12203. fi
  12204. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12205. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  12206. if test $ac_cv_lib_dld_dld_link = yes; then
  12207. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12208. fi
  12209. fi
  12210. fi
  12211. fi
  12212. fi
  12213. fi
  12214. ;;
  12215. esac
  12216. if test "x$lt_cv_dlopen" != xno; then
  12217. enable_dlopen=yes
  12218. else
  12219. enable_dlopen=no
  12220. fi
  12221. case $lt_cv_dlopen in
  12222. dlopen)
  12223. save_CPPFLAGS="$CPPFLAGS"
  12224. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12225. save_LDFLAGS="$LDFLAGS"
  12226. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12227. save_LIBS="$LIBS"
  12228. LIBS="$lt_cv_dlopen_libs $LIBS"
  12229. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12230. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  12231. if test "${lt_cv_dlopen_self+set}" = set; then
  12232. echo $ECHO_N "(cached) $ECHO_C" >&6
  12233. else
  12234. if test "$cross_compiling" = yes; then :
  12235. lt_cv_dlopen_self=cross
  12236. else
  12237. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12238. lt_status=$lt_dlunknown
  12239. cat > conftest.$ac_ext <<EOF
  12240. #line 13619 "configure"
  12241. #include "confdefs.h"
  12242. #if HAVE_DLFCN_H
  12243. #include <dlfcn.h>
  12244. #endif
  12245. #include <stdio.h>
  12246. #ifdef RTLD_GLOBAL
  12247. # define LT_DLGLOBAL RTLD_GLOBAL
  12248. #else
  12249. # ifdef DL_GLOBAL
  12250. # define LT_DLGLOBAL DL_GLOBAL
  12251. # else
  12252. # define LT_DLGLOBAL 0
  12253. # endif
  12254. #endif
  12255. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12256. find out it does not work in some platform. */
  12257. #ifndef LT_DLLAZY_OR_NOW
  12258. # ifdef RTLD_LAZY
  12259. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12260. # else
  12261. # ifdef DL_LAZY
  12262. # define LT_DLLAZY_OR_NOW DL_LAZY
  12263. # else
  12264. # ifdef RTLD_NOW
  12265. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12266. # else
  12267. # ifdef DL_NOW
  12268. # define LT_DLLAZY_OR_NOW DL_NOW
  12269. # else
  12270. # define LT_DLLAZY_OR_NOW 0
  12271. # endif
  12272. # endif
  12273. # endif
  12274. # endif
  12275. #endif
  12276. #ifdef __cplusplus
  12277. extern "C" void exit (int);
  12278. #endif
  12279. void fnord() { int i=42;}
  12280. int main ()
  12281. {
  12282. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12283. int status = $lt_dlunknown;
  12284. if (self)
  12285. {
  12286. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12287. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12288. /* dlclose (self); */
  12289. }
  12290. exit (status);
  12291. }
  12292. EOF
  12293. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12294. (eval $ac_link) 2>&5
  12295. ac_status=$?
  12296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12297. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12298. (./conftest; exit; ) 2>/dev/null
  12299. lt_status=$?
  12300. case x$lt_status in
  12301. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12302. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12303. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12304. esac
  12305. else :
  12306. # compilation failed
  12307. lt_cv_dlopen_self=no
  12308. fi
  12309. fi
  12310. rm -fr conftest*
  12311. fi
  12312. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12313. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  12314. if test "x$lt_cv_dlopen_self" = xyes; then
  12315. LDFLAGS="$LDFLAGS $link_static_flag"
  12316. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12317. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  12318. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12319. echo $ECHO_N "(cached) $ECHO_C" >&6
  12320. else
  12321. if test "$cross_compiling" = yes; then :
  12322. lt_cv_dlopen_self_static=cross
  12323. else
  12324. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12325. lt_status=$lt_dlunknown
  12326. cat > conftest.$ac_ext <<EOF
  12327. #line 13717 "configure"
  12328. #include "confdefs.h"
  12329. #if HAVE_DLFCN_H
  12330. #include <dlfcn.h>
  12331. #endif
  12332. #include <stdio.h>
  12333. #ifdef RTLD_GLOBAL
  12334. # define LT_DLGLOBAL RTLD_GLOBAL
  12335. #else
  12336. # ifdef DL_GLOBAL
  12337. # define LT_DLGLOBAL DL_GLOBAL
  12338. # else
  12339. # define LT_DLGLOBAL 0
  12340. # endif
  12341. #endif
  12342. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12343. find out it does not work in some platform. */
  12344. #ifndef LT_DLLAZY_OR_NOW
  12345. # ifdef RTLD_LAZY
  12346. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12347. # else
  12348. # ifdef DL_LAZY
  12349. # define LT_DLLAZY_OR_NOW DL_LAZY
  12350. # else
  12351. # ifdef RTLD_NOW
  12352. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12353. # else
  12354. # ifdef DL_NOW
  12355. # define LT_DLLAZY_OR_NOW DL_NOW
  12356. # else
  12357. # define LT_DLLAZY_OR_NOW 0
  12358. # endif
  12359. # endif
  12360. # endif
  12361. # endif
  12362. #endif
  12363. #ifdef __cplusplus
  12364. extern "C" void exit (int);
  12365. #endif
  12366. void fnord() { int i=42;}
  12367. int main ()
  12368. {
  12369. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12370. int status = $lt_dlunknown;
  12371. if (self)
  12372. {
  12373. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12374. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12375. /* dlclose (self); */
  12376. }
  12377. exit (status);
  12378. }
  12379. EOF
  12380. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12381. (eval $ac_link) 2>&5
  12382. ac_status=$?
  12383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12384. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12385. (./conftest; exit; ) 2>/dev/null
  12386. lt_status=$?
  12387. case x$lt_status in
  12388. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12389. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12390. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12391. esac
  12392. else :
  12393. # compilation failed
  12394. lt_cv_dlopen_self_static=no
  12395. fi
  12396. fi
  12397. rm -fr conftest*
  12398. fi
  12399. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12400. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  12401. fi
  12402. CPPFLAGS="$save_CPPFLAGS"
  12403. LDFLAGS="$save_LDFLAGS"
  12404. LIBS="$save_LIBS"
  12405. ;;
  12406. esac
  12407. case $lt_cv_dlopen_self in
  12408. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12409. *) enable_dlopen_self=unknown ;;
  12410. esac
  12411. case $lt_cv_dlopen_self_static in
  12412. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12413. *) enable_dlopen_self_static=unknown ;;
  12414. esac
  12415. fi
  12416. # The else clause should only fire when bootstrapping the
  12417. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12418. # with your package, and you will get complaints that there are
  12419. # no rules to generate ltmain.sh.
  12420. if test -f "$ltmain"; then
  12421. # See if we are running on zsh, and set the options which allow our commands through
  12422. # without removal of \ escapes.
  12423. if test -n "${ZSH_VERSION+set}" ; then
  12424. setopt NO_GLOB_SUBST
  12425. fi
  12426. # Now quote all the things that may contain metacharacters while being
  12427. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12428. # variables and quote the copies for generation of the libtool script.
  12429. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12430. SED SHELL STRIP \
  12431. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12432. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12433. deplibs_check_method reload_flag reload_cmds need_locks \
  12434. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12435. lt_cv_sys_global_symbol_to_c_name_address \
  12436. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12437. old_postinstall_cmds old_postuninstall_cmds \
  12438. compiler_CXX \
  12439. CC_CXX \
  12440. LD_CXX \
  12441. lt_prog_compiler_wl_CXX \
  12442. lt_prog_compiler_pic_CXX \
  12443. lt_prog_compiler_static_CXX \
  12444. lt_prog_compiler_no_builtin_flag_CXX \
  12445. export_dynamic_flag_spec_CXX \
  12446. thread_safe_flag_spec_CXX \
  12447. whole_archive_flag_spec_CXX \
  12448. enable_shared_with_static_runtimes_CXX \
  12449. old_archive_cmds_CXX \
  12450. old_archive_from_new_cmds_CXX \
  12451. predep_objects_CXX \
  12452. postdep_objects_CXX \
  12453. predeps_CXX \
  12454. postdeps_CXX \
  12455. compiler_lib_search_path_CXX \
  12456. archive_cmds_CXX \
  12457. archive_expsym_cmds_CXX \
  12458. postinstall_cmds_CXX \
  12459. postuninstall_cmds_CXX \
  12460. old_archive_from_expsyms_cmds_CXX \
  12461. allow_undefined_flag_CXX \
  12462. no_undefined_flag_CXX \
  12463. export_symbols_cmds_CXX \
  12464. hardcode_libdir_flag_spec_CXX \
  12465. hardcode_libdir_flag_spec_ld_CXX \
  12466. hardcode_libdir_separator_CXX \
  12467. hardcode_automatic_CXX \
  12468. module_cmds_CXX \
  12469. module_expsym_cmds_CXX \
  12470. lt_cv_prog_compiler_c_o_CXX \
  12471. exclude_expsyms_CXX \
  12472. include_expsyms_CXX; do
  12473. case $var in
  12474. old_archive_cmds_CXX | \
  12475. old_archive_from_new_cmds_CXX | \
  12476. archive_cmds_CXX | \
  12477. archive_expsym_cmds_CXX | \
  12478. module_cmds_CXX | \
  12479. module_expsym_cmds_CXX | \
  12480. old_archive_from_expsyms_cmds_CXX | \
  12481. export_symbols_cmds_CXX | \
  12482. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12483. postinstall_cmds | postuninstall_cmds | \
  12484. old_postinstall_cmds | old_postuninstall_cmds | \
  12485. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12486. # Double-quote double-evaled strings.
  12487. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12488. ;;
  12489. *)
  12490. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12491. ;;
  12492. esac
  12493. done
  12494. case $lt_echo in
  12495. *'\$0 --fallback-echo"')
  12496. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12497. ;;
  12498. esac
  12499. cfgfile="$ofile"
  12500. cat <<__EOF__ >> "$cfgfile"
  12501. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12502. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12503. # Shell to use when invoking shell scripts.
  12504. SHELL=$lt_SHELL
  12505. # Whether or not to build shared libraries.
  12506. build_libtool_libs=$enable_shared
  12507. # Whether or not to build static libraries.
  12508. build_old_libs=$enable_static
  12509. # Whether or not to add -lc for building shared libraries.
  12510. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12511. # Whether or not to disallow shared libs when runtime libs are static
  12512. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12513. # Whether or not to optimize for fast installation.
  12514. fast_install=$enable_fast_install
  12515. # The host system.
  12516. host_alias=$host_alias
  12517. host=$host
  12518. host_os=$host_os
  12519. # The build system.
  12520. build_alias=$build_alias
  12521. build=$build
  12522. build_os=$build_os
  12523. # An echo program that does not interpret backslashes.
  12524. echo=$lt_echo
  12525. # The archiver.
  12526. AR=$lt_AR
  12527. AR_FLAGS=$lt_AR_FLAGS
  12528. # A C compiler.
  12529. LTCC=$lt_LTCC
  12530. # A language-specific compiler.
  12531. CC=$lt_compiler_CXX
  12532. # Is the compiler the GNU C compiler?
  12533. with_gcc=$GCC_CXX
  12534. # An ERE matcher.
  12535. EGREP=$lt_EGREP
  12536. # The linker used to build libraries.
  12537. LD=$lt_LD_CXX
  12538. # Whether we need hard or soft links.
  12539. LN_S=$lt_LN_S
  12540. # A BSD-compatible nm program.
  12541. NM=$lt_NM
  12542. # A symbol stripping program
  12543. STRIP=$lt_STRIP
  12544. # Used to examine libraries when file_magic_cmd begins "file"
  12545. MAGIC_CMD=$MAGIC_CMD
  12546. # Used on cygwin: DLL creation program.
  12547. DLLTOOL="$DLLTOOL"
  12548. # Used on cygwin: object dumper.
  12549. OBJDUMP="$OBJDUMP"
  12550. # Used on cygwin: assembler.
  12551. AS="$AS"
  12552. # The name of the directory that contains temporary libtool files.
  12553. objdir=$objdir
  12554. # How to create reloadable object files.
  12555. reload_flag=$lt_reload_flag
  12556. reload_cmds=$lt_reload_cmds
  12557. # How to pass a linker flag through the compiler.
  12558. wl=$lt_lt_prog_compiler_wl_CXX
  12559. # Object file suffix (normally "o").
  12560. objext="$ac_objext"
  12561. # Old archive suffix (normally "a").
  12562. libext="$libext"
  12563. # Shared library suffix (normally ".so").
  12564. shrext_cmds='$shrext_cmds'
  12565. # Executable file suffix (normally "").
  12566. exeext="$exeext"
  12567. # Additional compiler flags for building library objects.
  12568. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12569. pic_mode=$pic_mode
  12570. # What is the maximum length of a command?
  12571. max_cmd_len=$lt_cv_sys_max_cmd_len
  12572. # Does compiler simultaneously support -c and -o options?
  12573. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12574. # Must we lock files when doing compilation?
  12575. need_locks=$lt_need_locks
  12576. # Do we need the lib prefix for modules?
  12577. need_lib_prefix=$need_lib_prefix
  12578. # Do we need a version for libraries?
  12579. need_version=$need_version
  12580. # Whether dlopen is supported.
  12581. dlopen_support=$enable_dlopen
  12582. # Whether dlopen of programs is supported.
  12583. dlopen_self=$enable_dlopen_self
  12584. # Whether dlopen of statically linked programs is supported.
  12585. dlopen_self_static=$enable_dlopen_self_static
  12586. # Compiler flag to prevent dynamic linking.
  12587. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12588. # Compiler flag to turn off builtin functions.
  12589. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12590. # Compiler flag to allow reflexive dlopens.
  12591. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12592. # Compiler flag to generate shared objects directly from archives.
  12593. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12594. # Compiler flag to generate thread-safe objects.
  12595. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12596. # Library versioning type.
  12597. version_type=$version_type
  12598. # Format of library name prefix.
  12599. libname_spec=$lt_libname_spec
  12600. # List of archive names. First name is the real one, the rest are links.
  12601. # The last name is the one that the linker finds with -lNAME.
  12602. library_names_spec=$lt_library_names_spec
  12603. # The coded name of the library, if different from the real name.
  12604. soname_spec=$lt_soname_spec
  12605. # Commands used to build and install an old-style archive.
  12606. RANLIB=$lt_RANLIB
  12607. old_archive_cmds=$lt_old_archive_cmds_CXX
  12608. old_postinstall_cmds=$lt_old_postinstall_cmds
  12609. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12610. # Create an old-style archive from a shared archive.
  12611. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12612. # Create a temporary old-style archive to link instead of a shared archive.
  12613. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12614. # Commands used to build and install a shared archive.
  12615. archive_cmds=$lt_archive_cmds_CXX
  12616. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12617. postinstall_cmds=$lt_postinstall_cmds
  12618. postuninstall_cmds=$lt_postuninstall_cmds
  12619. # Commands used to build a loadable module (assumed same as above if empty)
  12620. module_cmds=$lt_module_cmds_CXX
  12621. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12622. # Commands to strip libraries.
  12623. old_striplib=$lt_old_striplib
  12624. striplib=$lt_striplib
  12625. # Dependencies to place before the objects being linked to create a
  12626. # shared library.
  12627. predep_objects=$lt_predep_objects_CXX
  12628. # Dependencies to place after the objects being linked to create a
  12629. # shared library.
  12630. postdep_objects=$lt_postdep_objects_CXX
  12631. # Dependencies to place before the objects being linked to create a
  12632. # shared library.
  12633. predeps=$lt_predeps_CXX
  12634. # Dependencies to place after the objects being linked to create a
  12635. # shared library.
  12636. postdeps=$lt_postdeps_CXX
  12637. # The library search path used internally by the compiler when linking
  12638. # a shared library.
  12639. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12640. # Method to check whether dependent libraries are shared objects.
  12641. deplibs_check_method=$lt_deplibs_check_method
  12642. # Command to use when deplibs_check_method == file_magic.
  12643. file_magic_cmd=$lt_file_magic_cmd
  12644. # Flag that allows shared libraries with undefined symbols to be built.
  12645. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12646. # Flag that forces no undefined symbols.
  12647. no_undefined_flag=$lt_no_undefined_flag_CXX
  12648. # Commands used to finish a libtool library installation in a directory.
  12649. finish_cmds=$lt_finish_cmds
  12650. # Same as above, but a single script fragment to be evaled but not shown.
  12651. finish_eval=$lt_finish_eval
  12652. # Take the output of nm and produce a listing of raw symbols and C names.
  12653. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12654. # Transform the output of nm in a proper C declaration
  12655. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12656. # Transform the output of nm in a C name address pair
  12657. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12658. # This is the shared library runtime path variable.
  12659. runpath_var=$runpath_var
  12660. # This is the shared library path variable.
  12661. shlibpath_var=$shlibpath_var
  12662. # Is shlibpath searched before the hard-coded library search path?
  12663. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12664. # How to hardcode a shared library path into an executable.
  12665. hardcode_action=$hardcode_action_CXX
  12666. # Whether we should hardcode library paths into libraries.
  12667. hardcode_into_libs=$hardcode_into_libs
  12668. # Flag to hardcode \$libdir into a binary during linking.
  12669. # This must work even if \$libdir does not exist.
  12670. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12671. # If ld is used when linking, flag to hardcode \$libdir into
  12672. # a binary during linking. This must work even if \$libdir does
  12673. # not exist.
  12674. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12675. # Whether we need a single -rpath flag with a separated argument.
  12676. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12677. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12678. # resulting binary.
  12679. hardcode_direct=$hardcode_direct_CXX
  12680. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12681. # resulting binary.
  12682. hardcode_minus_L=$hardcode_minus_L_CXX
  12683. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12684. # the resulting binary.
  12685. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12686. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12687. # and all subsequent libraries and executables linked against it.
  12688. hardcode_automatic=$hardcode_automatic_CXX
  12689. # Variables whose values should be saved in libtool wrapper scripts and
  12690. # restored at relink time.
  12691. variables_saved_for_relink="$variables_saved_for_relink"
  12692. # Whether libtool must link a program against all its dependency libraries.
  12693. link_all_deplibs=$link_all_deplibs_CXX
  12694. # Compile-time system search path for libraries
  12695. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12696. # Run-time system search path for libraries
  12697. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12698. # Fix the shell variable \$srcfile for the compiler.
  12699. fix_srcfile_path="$fix_srcfile_path_CXX"
  12700. # Set to yes if exported symbols are required.
  12701. always_export_symbols=$always_export_symbols_CXX
  12702. # The commands to list exported symbols.
  12703. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12704. # The commands to extract the exported symbol list from a shared archive.
  12705. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12706. # Symbols that should not be listed in the preloaded symbols.
  12707. exclude_expsyms=$lt_exclude_expsyms_CXX
  12708. # Symbols that must always be exported.
  12709. include_expsyms=$lt_include_expsyms_CXX
  12710. # ### END LIBTOOL TAG CONFIG: $tagname
  12711. __EOF__
  12712. else
  12713. # If there is no Makefile yet, we rely on a make rule to execute
  12714. # `config.status --recheck' to rerun these tests and create the
  12715. # libtool script then.
  12716. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12717. if test -f "$ltmain_in"; then
  12718. test -f Makefile && make "$ltmain"
  12719. fi
  12720. fi
  12721. ac_ext=c
  12722. ac_cpp='$CPP $CPPFLAGS'
  12723. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12724. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12725. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12726. CC=$lt_save_CC
  12727. LDCXX=$LD
  12728. LD=$lt_save_LD
  12729. GCC=$lt_save_GCC
  12730. with_gnu_ldcxx=$with_gnu_ld
  12731. with_gnu_ld=$lt_save_with_gnu_ld
  12732. lt_cv_path_LDCXX=$lt_cv_path_LD
  12733. lt_cv_path_LD=$lt_save_path_LD
  12734. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12735. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12736. else
  12737. tagname=""
  12738. fi
  12739. ;;
  12740. F77)
  12741. if test -n "$F77" && test "X$F77" != "Xno"; then
  12742. ac_ext=f
  12743. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12744. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12745. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12746. archive_cmds_need_lc_F77=no
  12747. allow_undefined_flag_F77=
  12748. always_export_symbols_F77=no
  12749. archive_expsym_cmds_F77=
  12750. export_dynamic_flag_spec_F77=
  12751. hardcode_direct_F77=no
  12752. hardcode_libdir_flag_spec_F77=
  12753. hardcode_libdir_flag_spec_ld_F77=
  12754. hardcode_libdir_separator_F77=
  12755. hardcode_minus_L_F77=no
  12756. hardcode_automatic_F77=no
  12757. module_cmds_F77=
  12758. module_expsym_cmds_F77=
  12759. link_all_deplibs_F77=unknown
  12760. old_archive_cmds_F77=$old_archive_cmds
  12761. no_undefined_flag_F77=
  12762. whole_archive_flag_spec_F77=
  12763. enable_shared_with_static_runtimes_F77=no
  12764. # Source file extension for f77 test sources.
  12765. ac_ext=f
  12766. # Object file extension for compiled f77 test sources.
  12767. objext=o
  12768. objext_F77=$objext
  12769. # Code to be used in simple compile tests
  12770. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12771. # Code to be used in simple link tests
  12772. lt_simple_link_test_code=" program t\n end\n"
  12773. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12774. # If no C compiler was specified, use CC.
  12775. LTCC=${LTCC-"$CC"}
  12776. # Allow CC to be a program name with arguments.
  12777. compiler=$CC
  12778. # save warnings/boilerplate of simple test code
  12779. ac_outfile=conftest.$ac_objext
  12780. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12781. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12782. _lt_compiler_boilerplate=`cat conftest.err`
  12783. $rm conftest*
  12784. ac_outfile=conftest.$ac_objext
  12785. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12786. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12787. _lt_linker_boilerplate=`cat conftest.err`
  12788. $rm conftest*
  12789. # Allow CC to be a program name with arguments.
  12790. lt_save_CC="$CC"
  12791. CC=${F77-"f77"}
  12792. compiler=$CC
  12793. compiler_F77=$CC
  12794. for cc_temp in $compiler""; do
  12795. case $cc_temp in
  12796. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12797. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12798. \-*) ;;
  12799. *) break;;
  12800. esac
  12801. done
  12802. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12803. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12804. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12805. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12806. echo "${ECHO_T}$can_build_shared" >&6; }
  12807. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12808. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12809. test "$can_build_shared" = "no" && enable_shared=no
  12810. # On AIX, shared libraries and static libraries use the same namespace, and
  12811. # are all built from PIC.
  12812. case "$host_os" in
  12813. aix3*)
  12814. test "$enable_shared" = yes && enable_static=no
  12815. if test -n "$RANLIB"; then
  12816. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12817. postinstall_cmds='$RANLIB $lib'
  12818. fi
  12819. ;;
  12820. aix4* | aix5*)
  12821. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12822. test "$enable_shared" = yes && enable_static=no
  12823. fi
  12824. ;;
  12825. esac
  12826. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12827. echo "${ECHO_T}$enable_shared" >&6; }
  12828. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12829. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12830. # Make sure either enable_shared or enable_static is yes.
  12831. test "$enable_shared" = yes || enable_static=yes
  12832. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12833. echo "${ECHO_T}$enable_static" >&6; }
  12834. test "$ld_shlibs_F77" = no && can_build_shared=no
  12835. GCC_F77="$G77"
  12836. LD_F77="$LD"
  12837. lt_prog_compiler_wl_F77=
  12838. lt_prog_compiler_pic_F77=
  12839. lt_prog_compiler_static_F77=
  12840. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12841. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12842. if test "$GCC" = yes; then
  12843. lt_prog_compiler_wl_F77='-Wl,'
  12844. lt_prog_compiler_static_F77='-static'
  12845. case $host_os in
  12846. aix*)
  12847. # All AIX code is PIC.
  12848. if test "$host_cpu" = ia64; then
  12849. # AIX 5 now supports IA64 processor
  12850. lt_prog_compiler_static_F77='-Bstatic'
  12851. fi
  12852. ;;
  12853. amigaos*)
  12854. # FIXME: we need at least 68020 code to build shared libraries, but
  12855. # adding the `-m68020' flag to GCC prevents building anything better,
  12856. # like `-m68040'.
  12857. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12858. ;;
  12859. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12860. # PIC is the default for these OSes.
  12861. ;;
  12862. mingw* | pw32* | os2*)
  12863. # This hack is so that the source file can tell whether it is being
  12864. # built for inclusion in a dll (and should export symbols for example).
  12865. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12866. ;;
  12867. darwin* | rhapsody*)
  12868. # PIC is the default on this platform
  12869. # Common symbols not allowed in MH_DYLIB files
  12870. lt_prog_compiler_pic_F77='-fno-common'
  12871. ;;
  12872. msdosdjgpp*)
  12873. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12874. # on systems that don't support them.
  12875. lt_prog_compiler_can_build_shared_F77=no
  12876. enable_shared=no
  12877. ;;
  12878. sysv4*MP*)
  12879. if test -d /usr/nec; then
  12880. lt_prog_compiler_pic_F77=-Kconform_pic
  12881. fi
  12882. ;;
  12883. hpux*)
  12884. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12885. # not for PA HP-UX.
  12886. case "$host_cpu" in
  12887. hppa*64*|ia64*)
  12888. # +Z the default
  12889. ;;
  12890. *)
  12891. lt_prog_compiler_pic_F77='-fPIC'
  12892. ;;
  12893. esac
  12894. ;;
  12895. *)
  12896. lt_prog_compiler_pic_F77='-fPIC'
  12897. ;;
  12898. esac
  12899. else
  12900. # PORTME Check for flag to pass linker flags through the system compiler.
  12901. case $host_os in
  12902. aix*)
  12903. lt_prog_compiler_wl_F77='-Wl,'
  12904. if test "$host_cpu" = ia64; then
  12905. # AIX 5 now supports IA64 processor
  12906. lt_prog_compiler_static_F77='-Bstatic'
  12907. else
  12908. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12909. fi
  12910. ;;
  12911. darwin*)
  12912. # PIC is the default on this platform
  12913. # Common symbols not allowed in MH_DYLIB files
  12914. case $cc_basename in
  12915. xlc*)
  12916. lt_prog_compiler_pic_F77='-qnocommon'
  12917. lt_prog_compiler_wl_F77='-Wl,'
  12918. ;;
  12919. esac
  12920. ;;
  12921. mingw* | pw32* | os2*)
  12922. # This hack is so that the source file can tell whether it is being
  12923. # built for inclusion in a dll (and should export symbols for example).
  12924. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12925. ;;
  12926. hpux9* | hpux10* | hpux11*)
  12927. lt_prog_compiler_wl_F77='-Wl,'
  12928. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12929. # not for PA HP-UX.
  12930. case "$host_cpu" in
  12931. hppa*64*|ia64*)
  12932. # +Z the default
  12933. ;;
  12934. *)
  12935. lt_prog_compiler_pic_F77='+Z'
  12936. ;;
  12937. esac
  12938. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12939. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12940. ;;
  12941. irix5* | irix6* | nonstopux*)
  12942. lt_prog_compiler_wl_F77='-Wl,'
  12943. # PIC (with -KPIC) is the default.
  12944. lt_prog_compiler_static_F77='-non_shared'
  12945. ;;
  12946. newsos6)
  12947. lt_prog_compiler_pic_F77='-KPIC'
  12948. lt_prog_compiler_static_F77='-Bstatic'
  12949. ;;
  12950. linux*)
  12951. case $cc_basename in
  12952. icc* | ecc*)
  12953. lt_prog_compiler_wl_F77='-Wl,'
  12954. lt_prog_compiler_pic_F77='-KPIC'
  12955. lt_prog_compiler_static_F77='-static'
  12956. ;;
  12957. pgcc* | pgf77* | pgf90*)
  12958. # Portland Group compilers (*not* the Pentium gcc compiler,
  12959. # which looks to be a dead project)
  12960. lt_prog_compiler_wl_F77='-Wl,'
  12961. lt_prog_compiler_pic_F77='-fpic'
  12962. lt_prog_compiler_static_F77='-static'
  12963. ;;
  12964. ccc*)
  12965. lt_prog_compiler_wl_F77='-Wl,'
  12966. # All Alpha code is PIC.
  12967. lt_prog_compiler_static_F77='-non_shared'
  12968. ;;
  12969. esac
  12970. ;;
  12971. osf3* | osf4* | osf5*)
  12972. lt_prog_compiler_wl_F77='-Wl,'
  12973. # All OSF/1 code is PIC.
  12974. lt_prog_compiler_static_F77='-non_shared'
  12975. ;;
  12976. sco3.2v5*)
  12977. lt_prog_compiler_pic_F77='-Kpic'
  12978. lt_prog_compiler_static_F77='-dn'
  12979. ;;
  12980. solaris*)
  12981. lt_prog_compiler_pic_F77='-KPIC'
  12982. lt_prog_compiler_static_F77='-Bstatic'
  12983. case $cc_basename in
  12984. f77* | f90* | f95*)
  12985. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12986. *)
  12987. lt_prog_compiler_wl_F77='-Wl,';;
  12988. esac
  12989. ;;
  12990. sunos4*)
  12991. lt_prog_compiler_wl_F77='-Qoption ld '
  12992. lt_prog_compiler_pic_F77='-PIC'
  12993. lt_prog_compiler_static_F77='-Bstatic'
  12994. ;;
  12995. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12996. lt_prog_compiler_wl_F77='-Wl,'
  12997. lt_prog_compiler_pic_F77='-KPIC'
  12998. lt_prog_compiler_static_F77='-Bstatic'
  12999. ;;
  13000. sysv4*MP*)
  13001. if test -d /usr/nec ;then
  13002. lt_prog_compiler_pic_F77='-Kconform_pic'
  13003. lt_prog_compiler_static_F77='-Bstatic'
  13004. fi
  13005. ;;
  13006. unicos*)
  13007. lt_prog_compiler_wl_F77='-Wl,'
  13008. lt_prog_compiler_can_build_shared_F77=no
  13009. ;;
  13010. uts4*)
  13011. lt_prog_compiler_pic_F77='-pic'
  13012. lt_prog_compiler_static_F77='-Bstatic'
  13013. ;;
  13014. *)
  13015. lt_prog_compiler_can_build_shared_F77=no
  13016. ;;
  13017. esac
  13018. fi
  13019. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13020. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  13021. #
  13022. # Check to make sure the PIC flag actually works.
  13023. #
  13024. if test -n "$lt_prog_compiler_pic_F77"; then
  13025. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13026. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  13027. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  13028. echo $ECHO_N "(cached) $ECHO_C" >&6
  13029. else
  13030. lt_prog_compiler_pic_works_F77=no
  13031. ac_outfile=conftest.$ac_objext
  13032. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13033. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13034. # Insert the option either (1) after the last *FLAGS variable, or
  13035. # (2) before a word containing "conftest.", or (3) at the end.
  13036. # Note that $ac_compile itself does not contain backslashes and begins
  13037. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13038. # The option is referenced via a variable to avoid confusing sed.
  13039. lt_compile=`echo "$ac_compile" | $SED \
  13040. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13041. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13042. -e 's:$: $lt_compiler_flag:'`
  13043. (eval echo "\"\$as_me:14602: $lt_compile\"" >&5)
  13044. (eval "$lt_compile" 2>conftest.err)
  13045. ac_status=$?
  13046. cat conftest.err >&5
  13047. echo "$as_me:14606: \$? = $ac_status" >&5
  13048. if (exit $ac_status) && test -s "$ac_outfile"; then
  13049. # The compiler can only warn and ignore the option if not recognized
  13050. # So say no if there are warnings other than the usual output.
  13051. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13052. $SED '/^$/d' conftest.err >conftest.er2
  13053. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13054. lt_prog_compiler_pic_works_F77=yes
  13055. fi
  13056. fi
  13057. $rm conftest*
  13058. fi
  13059. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  13060. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  13061. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  13062. case $lt_prog_compiler_pic_F77 in
  13063. "" | " "*) ;;
  13064. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13065. esac
  13066. else
  13067. lt_prog_compiler_pic_F77=
  13068. lt_prog_compiler_can_build_shared_F77=no
  13069. fi
  13070. fi
  13071. case "$host_os" in
  13072. # For platforms which do not support PIC, -DPIC is meaningless:
  13073. *djgpp*)
  13074. lt_prog_compiler_pic_F77=
  13075. ;;
  13076. *)
  13077. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13078. ;;
  13079. esac
  13080. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13081. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13082. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13083. echo $ECHO_N "(cached) $ECHO_C" >&6
  13084. else
  13085. lt_cv_prog_compiler_c_o_F77=no
  13086. $rm -r conftest 2>/dev/null
  13087. mkdir conftest
  13088. cd conftest
  13089. mkdir out
  13090. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13091. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13092. # Insert the option either (1) after the last *FLAGS variable, or
  13093. # (2) before a word containing "conftest.", or (3) at the end.
  13094. # Note that $ac_compile itself does not contain backslashes and begins
  13095. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13096. lt_compile=`echo "$ac_compile" | $SED \
  13097. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13098. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13099. -e 's:$: $lt_compiler_flag:'`
  13100. (eval echo "\"\$as_me:14664: $lt_compile\"" >&5)
  13101. (eval "$lt_compile" 2>out/conftest.err)
  13102. ac_status=$?
  13103. cat out/conftest.err >&5
  13104. echo "$as_me:14668: \$? = $ac_status" >&5
  13105. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13106. then
  13107. # The compiler can only warn and ignore the option if not recognized
  13108. # So say no if there are warnings
  13109. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  13110. $SED '/^$/d' out/conftest.err >out/conftest.er2
  13111. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13112. lt_cv_prog_compiler_c_o_F77=yes
  13113. fi
  13114. fi
  13115. chmod u+w .
  13116. $rm conftest*
  13117. # SGI C++ compiler will create directory out/ii_files/ for
  13118. # template instantiation
  13119. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13120. $rm out/* && rmdir out
  13121. cd ..
  13122. rmdir conftest
  13123. $rm conftest*
  13124. fi
  13125. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13126. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13127. hard_links="nottested"
  13128. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13129. # do not overwrite the value of need_locks provided by the user
  13130. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13131. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13132. hard_links=yes
  13133. $rm conftest*
  13134. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13135. touch conftest.a
  13136. ln conftest.a conftest.b 2>&5 || hard_links=no
  13137. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13138. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13139. echo "${ECHO_T}$hard_links" >&6; }
  13140. if test "$hard_links" = no; then
  13141. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13142. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13143. need_locks=warn
  13144. fi
  13145. else
  13146. need_locks=no
  13147. fi
  13148. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13149. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13150. runpath_var=
  13151. allow_undefined_flag_F77=
  13152. enable_shared_with_static_runtimes_F77=no
  13153. archive_cmds_F77=
  13154. archive_expsym_cmds_F77=
  13155. old_archive_From_new_cmds_F77=
  13156. old_archive_from_expsyms_cmds_F77=
  13157. export_dynamic_flag_spec_F77=
  13158. whole_archive_flag_spec_F77=
  13159. thread_safe_flag_spec_F77=
  13160. hardcode_libdir_flag_spec_F77=
  13161. hardcode_libdir_flag_spec_ld_F77=
  13162. hardcode_libdir_separator_F77=
  13163. hardcode_direct_F77=no
  13164. hardcode_minus_L_F77=no
  13165. hardcode_shlibpath_var_F77=unsupported
  13166. link_all_deplibs_F77=unknown
  13167. hardcode_automatic_F77=no
  13168. module_cmds_F77=
  13169. module_expsym_cmds_F77=
  13170. always_export_symbols_F77=no
  13171. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13172. # include_expsyms should be a list of space-separated symbols to be *always*
  13173. # included in the symbol list
  13174. include_expsyms_F77=
  13175. # exclude_expsyms can be an extended regexp of symbols to exclude
  13176. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13177. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13178. # as well as any symbol that contains `d'.
  13179. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13180. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13181. # platforms (ab)use it in PIC code, but their linkers get confused if
  13182. # the symbol is explicitly referenced. Since portable code cannot
  13183. # rely on this symbol name, it's probably fine to never include it in
  13184. # preloaded symbol tables.
  13185. extract_expsyms_cmds=
  13186. # Just being paranoid about ensuring that cc_basename is set.
  13187. for cc_temp in $compiler""; do
  13188. case $cc_temp in
  13189. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13190. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13191. \-*) ;;
  13192. *) break;;
  13193. esac
  13194. done
  13195. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13196. case $host_os in
  13197. cygwin* | mingw* | pw32*)
  13198. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13199. # When not using gcc, we currently assume that we are using
  13200. # Microsoft Visual C++.
  13201. if test "$GCC" != yes; then
  13202. with_gnu_ld=no
  13203. fi
  13204. ;;
  13205. openbsd*)
  13206. with_gnu_ld=no
  13207. ;;
  13208. esac
  13209. ld_shlibs_F77=yes
  13210. if test "$with_gnu_ld" = yes; then
  13211. # If archive_cmds runs LD, not CC, wlarc should be empty
  13212. wlarc='${wl}'
  13213. # Set some defaults for GNU ld with shared library support. These
  13214. # are reset later if shared libraries are not supported. Putting them
  13215. # here allows them to be overridden if necessary.
  13216. runpath_var=LD_RUN_PATH
  13217. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13218. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13219. # ancient GNU ld didn't support --whole-archive et. al.
  13220. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13221. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13222. else
  13223. whole_archive_flag_spec_F77=
  13224. fi
  13225. supports_anon_versioning=no
  13226. case `$LD -v 2>/dev/null` in
  13227. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13228. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13229. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13230. *\ 2.11.*) ;; # other 2.11 versions
  13231. *) supports_anon_versioning=yes ;;
  13232. esac
  13233. # See if GNU ld supports shared libraries.
  13234. case $host_os in
  13235. aix3* | aix4* | aix5*)
  13236. # On AIX/PPC, the GNU linker is very broken
  13237. if test "$host_cpu" != ia64; then
  13238. ld_shlibs_F77=no
  13239. cat <<EOF 1>&2
  13240. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13241. *** to be unable to reliably create shared libraries on AIX.
  13242. *** Therefore, libtool is disabling shared libraries support. If you
  13243. *** really care for shared libraries, you may want to modify your PATH
  13244. *** so that a non-GNU linker is found, and then restart.
  13245. EOF
  13246. fi
  13247. ;;
  13248. amigaos*)
  13249. archive_cmds_F77='$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)'
  13250. hardcode_libdir_flag_spec_F77='-L$libdir'
  13251. hardcode_minus_L_F77=yes
  13252. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13253. # that the semantics of dynamic libraries on AmigaOS, at least up
  13254. # to version 4, is to share data among multiple programs linked
  13255. # with the same dynamic library. Since this doesn't match the
  13256. # behavior of shared libraries on other platforms, we can't use
  13257. # them.
  13258. ld_shlibs_F77=no
  13259. ;;
  13260. beos*)
  13261. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13262. allow_undefined_flag_F77=unsupported
  13263. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13264. # support --undefined. This deserves some investigation. FIXME
  13265. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13266. else
  13267. ld_shlibs_F77=no
  13268. fi
  13269. ;;
  13270. cygwin* | mingw* | pw32*)
  13271. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13272. # as there is no search path for DLLs.
  13273. hardcode_libdir_flag_spec_F77='-L$libdir'
  13274. allow_undefined_flag_F77=unsupported
  13275. always_export_symbols_F77=no
  13276. enable_shared_with_static_runtimes_F77=yes
  13277. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13278. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13279. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13280. # If the export-symbols file already is a .def file (1st line
  13281. # is EXPORTS), use it as is; otherwise, prepend...
  13282. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13283. cp $export_symbols $output_objdir/$soname.def;
  13284. else
  13285. echo EXPORTS > $output_objdir/$soname.def;
  13286. cat $export_symbols >> $output_objdir/$soname.def;
  13287. fi~
  13288. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13289. else
  13290. ld_shlibs_F77=no
  13291. fi
  13292. ;;
  13293. linux*)
  13294. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13295. tmp_addflag=
  13296. case $cc_basename,$host_cpu in
  13297. pgcc*) # Portland Group C compiler
  13298. whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13299. tmp_addflag=' $pic_flag'
  13300. ;;
  13301. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  13302. whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13303. tmp_addflag=' $pic_flag -Mnomain' ;;
  13304. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13305. tmp_addflag=' -i_dynamic' ;;
  13306. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13307. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13308. ifc* | ifort*) # Intel Fortran compiler
  13309. tmp_addflag=' -nofor_main' ;;
  13310. esac
  13311. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13312. if test $supports_anon_versioning = yes; then
  13313. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13314. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13315. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13316. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13317. fi
  13318. else
  13319. ld_shlibs_F77=no
  13320. fi
  13321. ;;
  13322. netbsd*)
  13323. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13324. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13325. wlarc=
  13326. else
  13327. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13328. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13329. fi
  13330. ;;
  13331. solaris* | sysv5*)
  13332. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13333. ld_shlibs_F77=no
  13334. cat <<EOF 1>&2
  13335. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13336. *** create shared libraries on Solaris systems. Therefore, libtool
  13337. *** is disabling shared libraries support. We urge you to upgrade GNU
  13338. *** binutils to release 2.9.1 or newer. Another option is to modify
  13339. *** your PATH or compiler configuration so that the native linker is
  13340. *** used, and then restart.
  13341. EOF
  13342. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13343. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13344. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13345. else
  13346. ld_shlibs_F77=no
  13347. fi
  13348. ;;
  13349. sunos4*)
  13350. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13351. wlarc=
  13352. hardcode_direct_F77=yes
  13353. hardcode_shlibpath_var_F77=no
  13354. ;;
  13355. *)
  13356. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13357. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13358. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13359. else
  13360. ld_shlibs_F77=no
  13361. fi
  13362. ;;
  13363. esac
  13364. if test "$ld_shlibs_F77" = no; then
  13365. runpath_var=
  13366. hardcode_libdir_flag_spec_F77=
  13367. export_dynamic_flag_spec_F77=
  13368. whole_archive_flag_spec_F77=
  13369. fi
  13370. else
  13371. # PORTME fill in a description of your system's linker (not GNU ld)
  13372. case $host_os in
  13373. aix3*)
  13374. allow_undefined_flag_F77=unsupported
  13375. always_export_symbols_F77=yes
  13376. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13377. # Note: this linker hardcodes the directories in LIBPATH if there
  13378. # are no directories specified by -L.
  13379. hardcode_minus_L_F77=yes
  13380. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13381. # Neither direct hardcoding nor static linking is supported with a
  13382. # broken collect2.
  13383. hardcode_direct_F77=unsupported
  13384. fi
  13385. ;;
  13386. aix4* | aix5*)
  13387. if test "$host_cpu" = ia64; then
  13388. # On IA64, the linker does run time linking by default, so we don't
  13389. # have to do anything special.
  13390. aix_use_runtimelinking=no
  13391. exp_sym_flag='-Bexport'
  13392. no_entry_flag=""
  13393. else
  13394. # If we're using GNU nm, then we don't want the "-C" option.
  13395. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13396. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13397. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13398. else
  13399. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13400. fi
  13401. aix_use_runtimelinking=no
  13402. # Test if we are trying to use run time linking or normal
  13403. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13404. # need to do runtime linking.
  13405. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13406. for ld_flag in $LDFLAGS; do
  13407. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13408. aix_use_runtimelinking=yes
  13409. break
  13410. fi
  13411. done
  13412. esac
  13413. exp_sym_flag='-bexport'
  13414. no_entry_flag='-bnoentry'
  13415. fi
  13416. # When large executables or shared objects are built, AIX ld can
  13417. # have problems creating the table of contents. If linking a library
  13418. # or program results in "error TOC overflow" add -mminimal-toc to
  13419. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13420. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13421. archive_cmds_F77=''
  13422. hardcode_direct_F77=yes
  13423. hardcode_libdir_separator_F77=':'
  13424. link_all_deplibs_F77=yes
  13425. if test "$GCC" = yes; then
  13426. case $host_os in aix4.[012]|aix4.[012].*)
  13427. # We only want to do this on AIX 4.2 and lower, the check
  13428. # below for broken collect2 doesn't work under 4.3+
  13429. collect2name=`${CC} -print-prog-name=collect2`
  13430. if test -f "$collect2name" && \
  13431. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13432. then
  13433. # We have reworked collect2
  13434. hardcode_direct_F77=yes
  13435. else
  13436. # We have old collect2
  13437. hardcode_direct_F77=unsupported
  13438. # It fails to find uninstalled libraries when the uninstalled
  13439. # path is not listed in the libpath. Setting hardcode_minus_L
  13440. # to unsupported forces relinking
  13441. hardcode_minus_L_F77=yes
  13442. hardcode_libdir_flag_spec_F77='-L$libdir'
  13443. hardcode_libdir_separator_F77=
  13444. fi
  13445. esac
  13446. shared_flag='-shared'
  13447. if test "$aix_use_runtimelinking" = yes; then
  13448. shared_flag="$shared_flag "'${wl}-G'
  13449. fi
  13450. else
  13451. # not using gcc
  13452. if test "$host_cpu" = ia64; then
  13453. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13454. # chokes on -Wl,-G. The following line is correct:
  13455. shared_flag='-G'
  13456. else
  13457. if test "$aix_use_runtimelinking" = yes; then
  13458. shared_flag='${wl}-G'
  13459. else
  13460. shared_flag='${wl}-bM:SRE'
  13461. fi
  13462. fi
  13463. fi
  13464. # It seems that -bexpall does not export symbols beginning with
  13465. # underscore (_), so it is better to generate a list of symbols to export.
  13466. always_export_symbols_F77=yes
  13467. if test "$aix_use_runtimelinking" = yes; then
  13468. # Warning - without using the other runtime loading flags (-brtl),
  13469. # -berok will link without error, but may produce a broken library.
  13470. allow_undefined_flag_F77='-berok'
  13471. # Determine the default libpath from the value encoded in an empty executable.
  13472. cat >conftest.$ac_ext <<_ACEOF
  13473. program main
  13474. end
  13475. _ACEOF
  13476. rm -f conftest.$ac_objext conftest$ac_exeext
  13477. if { (ac_try="$ac_link"
  13478. case "(($ac_try" in
  13479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13480. *) ac_try_echo=$ac_try;;
  13481. esac
  13482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13483. (eval "$ac_link") 2>conftest.er1
  13484. ac_status=$?
  13485. grep -v '^ *+' conftest.er1 >conftest.err
  13486. rm -f conftest.er1
  13487. cat conftest.err >&5
  13488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13489. (exit $ac_status); } && {
  13490. test -z "$ac_f77_werror_flag" ||
  13491. test ! -s conftest.err
  13492. } && test -s conftest$ac_exeext &&
  13493. $as_test_x conftest$ac_exeext; then
  13494. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13495. }'`
  13496. # Check for a 64-bit object if we didn't find anything.
  13497. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13498. }'`; fi
  13499. else
  13500. echo "$as_me: failed program was:" >&5
  13501. sed 's/^/| /' conftest.$ac_ext >&5
  13502. fi
  13503. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13504. conftest$ac_exeext conftest.$ac_ext
  13505. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13506. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13507. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13508. else
  13509. if test "$host_cpu" = ia64; then
  13510. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13511. allow_undefined_flag_F77="-z nodefs"
  13512. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  13513. else
  13514. # Determine the default libpath from the value encoded in an empty executable.
  13515. cat >conftest.$ac_ext <<_ACEOF
  13516. program main
  13517. end
  13518. _ACEOF
  13519. rm -f conftest.$ac_objext conftest$ac_exeext
  13520. if { (ac_try="$ac_link"
  13521. case "(($ac_try" in
  13522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13523. *) ac_try_echo=$ac_try;;
  13524. esac
  13525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13526. (eval "$ac_link") 2>conftest.er1
  13527. ac_status=$?
  13528. grep -v '^ *+' conftest.er1 >conftest.err
  13529. rm -f conftest.er1
  13530. cat conftest.err >&5
  13531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13532. (exit $ac_status); } && {
  13533. test -z "$ac_f77_werror_flag" ||
  13534. test ! -s conftest.err
  13535. } && test -s conftest$ac_exeext &&
  13536. $as_test_x conftest$ac_exeext; then
  13537. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13538. }'`
  13539. # Check for a 64-bit object if we didn't find anything.
  13540. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13541. }'`; fi
  13542. else
  13543. echo "$as_me: failed program was:" >&5
  13544. sed 's/^/| /' conftest.$ac_ext >&5
  13545. fi
  13546. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13547. conftest$ac_exeext conftest.$ac_ext
  13548. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13549. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13550. # Warning - without using the other run time loading flags,
  13551. # -berok will link without error, but may produce a broken library.
  13552. no_undefined_flag_F77=' ${wl}-bernotok'
  13553. allow_undefined_flag_F77=' ${wl}-berok'
  13554. # -bexpall does not export symbols beginning with underscore (_)
  13555. always_export_symbols_F77=yes
  13556. # Exported symbols can be pulled into shared objects from archives
  13557. whole_archive_flag_spec_F77=' '
  13558. archive_cmds_need_lc_F77=yes
  13559. # This is similar to how AIX traditionally builds it's shared libraries.
  13560. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13561. fi
  13562. fi
  13563. ;;
  13564. amigaos*)
  13565. archive_cmds_F77='$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)'
  13566. hardcode_libdir_flag_spec_F77='-L$libdir'
  13567. hardcode_minus_L_F77=yes
  13568. # see comment about different semantics on the GNU ld section
  13569. ld_shlibs_F77=no
  13570. ;;
  13571. bsdi[45]*)
  13572. export_dynamic_flag_spec_F77=-rdynamic
  13573. ;;
  13574. cygwin* | mingw* | pw32*)
  13575. # When not using gcc, we currently assume that we are using
  13576. # Microsoft Visual C++.
  13577. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13578. # no search path for DLLs.
  13579. hardcode_libdir_flag_spec_F77=' '
  13580. allow_undefined_flag_F77=unsupported
  13581. # Tell ltmain to make .lib files, not .a files.
  13582. libext=lib
  13583. # Tell ltmain to make .dll files, not .so files.
  13584. shrext_cmds=".dll"
  13585. # FIXME: Setting linknames here is a bad hack.
  13586. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13587. # The linker will automatically build a .lib file if we build a DLL.
  13588. old_archive_From_new_cmds_F77='true'
  13589. # FIXME: Should let the user specify the lib program.
  13590. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13591. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13592. enable_shared_with_static_runtimes_F77=yes
  13593. ;;
  13594. darwin* | rhapsody*)
  13595. case "$host_os" in
  13596. rhapsody* | darwin1.[012])
  13597. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13598. ;;
  13599. *) # Darwin 1.3 on
  13600. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13601. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13602. else
  13603. case ${MACOSX_DEPLOYMENT_TARGET} in
  13604. 10.[012])
  13605. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13606. ;;
  13607. 10.*)
  13608. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13609. ;;
  13610. esac
  13611. fi
  13612. ;;
  13613. esac
  13614. archive_cmds_need_lc_F77=no
  13615. hardcode_direct_F77=no
  13616. hardcode_automatic_F77=yes
  13617. hardcode_shlibpath_var_F77=unsupported
  13618. whole_archive_flag_spec_F77=''
  13619. link_all_deplibs_F77=yes
  13620. if test "$GCC" = yes ; then
  13621. output_verbose_link_cmd='echo'
  13622. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13623. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13624. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13625. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13626. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13627. else
  13628. case $cc_basename in
  13629. xlc*)
  13630. output_verbose_link_cmd='echo'
  13631. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13632. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13633. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13634. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13635. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13636. ;;
  13637. *)
  13638. ld_shlibs_F77=no
  13639. ;;
  13640. esac
  13641. fi
  13642. ;;
  13643. dgux*)
  13644. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13645. hardcode_libdir_flag_spec_F77='-L$libdir'
  13646. hardcode_shlibpath_var_F77=no
  13647. ;;
  13648. freebsd1*)
  13649. ld_shlibs_F77=no
  13650. ;;
  13651. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13652. # support. Future versions do this automatically, but an explicit c++rt0.o
  13653. # does not break anything, and helps significantly (at the cost of a little
  13654. # extra space).
  13655. freebsd2.2*)
  13656. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13657. hardcode_libdir_flag_spec_F77='-R$libdir'
  13658. hardcode_direct_F77=yes
  13659. hardcode_shlibpath_var_F77=no
  13660. ;;
  13661. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13662. freebsd2*)
  13663. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13664. hardcode_direct_F77=yes
  13665. hardcode_minus_L_F77=yes
  13666. hardcode_shlibpath_var_F77=no
  13667. ;;
  13668. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13669. freebsd* | kfreebsd*-gnu | dragonfly*)
  13670. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13671. hardcode_libdir_flag_spec_F77='-R$libdir'
  13672. hardcode_direct_F77=yes
  13673. hardcode_shlibpath_var_F77=no
  13674. ;;
  13675. hpux9*)
  13676. if test "$GCC" = yes; then
  13677. archive_cmds_F77='$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'
  13678. else
  13679. archive_cmds_F77='$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'
  13680. fi
  13681. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13682. hardcode_libdir_separator_F77=:
  13683. hardcode_direct_F77=yes
  13684. # hardcode_minus_L: Not really in the search PATH,
  13685. # but as the default location of the library.
  13686. hardcode_minus_L_F77=yes
  13687. export_dynamic_flag_spec_F77='${wl}-E'
  13688. ;;
  13689. hpux10* | hpux11*)
  13690. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13691. case "$host_cpu" in
  13692. hppa*64*|ia64*)
  13693. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13694. ;;
  13695. *)
  13696. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13697. ;;
  13698. esac
  13699. else
  13700. case "$host_cpu" in
  13701. hppa*64*|ia64*)
  13702. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13703. ;;
  13704. *)
  13705. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13706. ;;
  13707. esac
  13708. fi
  13709. if test "$with_gnu_ld" = no; then
  13710. case "$host_cpu" in
  13711. hppa*64*)
  13712. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13713. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13714. hardcode_libdir_separator_F77=:
  13715. hardcode_direct_F77=no
  13716. hardcode_shlibpath_var_F77=no
  13717. ;;
  13718. ia64*)
  13719. hardcode_libdir_flag_spec_F77='-L$libdir'
  13720. hardcode_direct_F77=no
  13721. hardcode_shlibpath_var_F77=no
  13722. # hardcode_minus_L: Not really in the search PATH,
  13723. # but as the default location of the library.
  13724. hardcode_minus_L_F77=yes
  13725. ;;
  13726. *)
  13727. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13728. hardcode_libdir_separator_F77=:
  13729. hardcode_direct_F77=yes
  13730. export_dynamic_flag_spec_F77='${wl}-E'
  13731. # hardcode_minus_L: Not really in the search PATH,
  13732. # but as the default location of the library.
  13733. hardcode_minus_L_F77=yes
  13734. ;;
  13735. esac
  13736. fi
  13737. ;;
  13738. irix5* | irix6* | nonstopux*)
  13739. if test "$GCC" = yes; then
  13740. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13741. else
  13742. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13743. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13744. fi
  13745. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13746. hardcode_libdir_separator_F77=:
  13747. link_all_deplibs_F77=yes
  13748. ;;
  13749. netbsd*)
  13750. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13751. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13752. else
  13753. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13754. fi
  13755. hardcode_libdir_flag_spec_F77='-R$libdir'
  13756. hardcode_direct_F77=yes
  13757. hardcode_shlibpath_var_F77=no
  13758. ;;
  13759. newsos6)
  13760. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13761. hardcode_direct_F77=yes
  13762. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13763. hardcode_libdir_separator_F77=:
  13764. hardcode_shlibpath_var_F77=no
  13765. ;;
  13766. openbsd*)
  13767. hardcode_direct_F77=yes
  13768. hardcode_shlibpath_var_F77=no
  13769. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13770. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13771. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13772. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13773. export_dynamic_flag_spec_F77='${wl}-E'
  13774. else
  13775. case $host_os in
  13776. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13777. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13778. hardcode_libdir_flag_spec_F77='-R$libdir'
  13779. ;;
  13780. *)
  13781. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13782. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13783. ;;
  13784. esac
  13785. fi
  13786. ;;
  13787. os2*)
  13788. hardcode_libdir_flag_spec_F77='-L$libdir'
  13789. hardcode_minus_L_F77=yes
  13790. allow_undefined_flag_F77=unsupported
  13791. archive_cmds_F77='$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'
  13792. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13793. ;;
  13794. osf3*)
  13795. if test "$GCC" = yes; then
  13796. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13797. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13798. else
  13799. allow_undefined_flag_F77=' -expect_unresolved \*'
  13800. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13801. fi
  13802. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13803. hardcode_libdir_separator_F77=:
  13804. ;;
  13805. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13806. if test "$GCC" = yes; then
  13807. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13808. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13809. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13810. else
  13811. allow_undefined_flag_F77=' -expect_unresolved \*'
  13812. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13813. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13814. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  13815. # Both c and cxx compiler support -rpath directly
  13816. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13817. fi
  13818. hardcode_libdir_separator_F77=:
  13819. ;;
  13820. sco3.2v5*)
  13821. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13822. hardcode_shlibpath_var_F77=no
  13823. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13824. runpath_var=LD_RUN_PATH
  13825. hardcode_runpath_var=yes
  13826. ;;
  13827. solaris*)
  13828. no_undefined_flag_F77=' -z text'
  13829. if test "$GCC" = yes; then
  13830. wlarc='${wl}'
  13831. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13832. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13833. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13834. else
  13835. wlarc=''
  13836. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13837. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13838. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13839. fi
  13840. hardcode_libdir_flag_spec_F77='-R$libdir'
  13841. hardcode_shlibpath_var_F77=no
  13842. case $host_os in
  13843. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13844. *)
  13845. # The compiler driver will combine linker options so we
  13846. # cannot just pass the convience library names through
  13847. # without $wl, iff we do not link with $LD.
  13848. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13849. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13850. case $wlarc in
  13851. '')
  13852. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13853. *)
  13854. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  13855. esac ;;
  13856. esac
  13857. link_all_deplibs_F77=yes
  13858. ;;
  13859. sunos4*)
  13860. if test "x$host_vendor" = xsequent; then
  13861. # Use $CC to link under sequent, because it throws in some extra .o
  13862. # files that make .init and .fini sections work.
  13863. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13864. else
  13865. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13866. fi
  13867. hardcode_libdir_flag_spec_F77='-L$libdir'
  13868. hardcode_direct_F77=yes
  13869. hardcode_minus_L_F77=yes
  13870. hardcode_shlibpath_var_F77=no
  13871. ;;
  13872. sysv4)
  13873. case $host_vendor in
  13874. sni)
  13875. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13876. hardcode_direct_F77=yes # is this really true???
  13877. ;;
  13878. siemens)
  13879. ## LD is ld it makes a PLAMLIB
  13880. ## CC just makes a GrossModule.
  13881. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13882. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13883. hardcode_direct_F77=no
  13884. ;;
  13885. motorola)
  13886. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13887. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13888. ;;
  13889. esac
  13890. runpath_var='LD_RUN_PATH'
  13891. hardcode_shlibpath_var_F77=no
  13892. ;;
  13893. sysv4.3*)
  13894. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13895. hardcode_shlibpath_var_F77=no
  13896. export_dynamic_flag_spec_F77='-Bexport'
  13897. ;;
  13898. sysv4*MP*)
  13899. if test -d /usr/nec; then
  13900. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13901. hardcode_shlibpath_var_F77=no
  13902. runpath_var=LD_RUN_PATH
  13903. hardcode_runpath_var=yes
  13904. ld_shlibs_F77=yes
  13905. fi
  13906. ;;
  13907. sysv4.2uw2*)
  13908. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13909. hardcode_direct_F77=yes
  13910. hardcode_minus_L_F77=no
  13911. hardcode_shlibpath_var_F77=no
  13912. hardcode_runpath_var=yes
  13913. runpath_var=LD_RUN_PATH
  13914. ;;
  13915. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13916. no_undefined_flag_F77='${wl}-z ${wl}text'
  13917. if test "$GCC" = yes; then
  13918. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13919. else
  13920. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13921. fi
  13922. runpath_var='LD_RUN_PATH'
  13923. hardcode_shlibpath_var_F77=no
  13924. ;;
  13925. sysv5*)
  13926. no_undefined_flag_F77=' -z text'
  13927. # $CC -shared without GNU ld will not create a library from C++
  13928. # object files and a static libstdc++, better avoid it by now
  13929. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13930. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13931. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13932. hardcode_libdir_flag_spec_F77=
  13933. hardcode_shlibpath_var_F77=no
  13934. runpath_var='LD_RUN_PATH'
  13935. ;;
  13936. uts4*)
  13937. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13938. hardcode_libdir_flag_spec_F77='-L$libdir'
  13939. hardcode_shlibpath_var_F77=no
  13940. ;;
  13941. *)
  13942. ld_shlibs_F77=no
  13943. ;;
  13944. esac
  13945. fi
  13946. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13947. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13948. test "$ld_shlibs_F77" = no && can_build_shared=no
  13949. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13950. if test "$GCC" = yes; then
  13951. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13952. fi
  13953. #
  13954. # Do we need to explicitly link libc?
  13955. #
  13956. case "x$archive_cmds_need_lc_F77" in
  13957. x|xyes)
  13958. # Assume -lc should be added
  13959. archive_cmds_need_lc_F77=yes
  13960. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13961. case $archive_cmds_F77 in
  13962. *'~'*)
  13963. # FIXME: we may have to deal with multi-command sequences.
  13964. ;;
  13965. '$CC '*)
  13966. # Test whether the compiler implicitly links with -lc since on some
  13967. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13968. # to ld, don't add -lc before -lgcc.
  13969. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13970. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13971. $rm conftest*
  13972. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13974. (eval $ac_compile) 2>&5
  13975. ac_status=$?
  13976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13977. (exit $ac_status); } 2>conftest.err; then
  13978. soname=conftest
  13979. lib=conftest
  13980. libobjs=conftest.$ac_objext
  13981. deplibs=
  13982. wl=$lt_prog_compiler_wl_F77
  13983. compiler_flags=-v
  13984. linker_flags=-v
  13985. verstring=
  13986. output_objdir=.
  13987. libname=conftest
  13988. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13989. allow_undefined_flag_F77=
  13990. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13991. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13992. ac_status=$?
  13993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13994. (exit $ac_status); }
  13995. then
  13996. archive_cmds_need_lc_F77=no
  13997. else
  13998. archive_cmds_need_lc_F77=yes
  13999. fi
  14000. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14001. else
  14002. cat conftest.err 1>&5
  14003. fi
  14004. $rm conftest*
  14005. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14006. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  14007. ;;
  14008. esac
  14009. fi
  14010. ;;
  14011. esac
  14012. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14013. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14014. library_names_spec=
  14015. libname_spec='lib$name'
  14016. soname_spec=
  14017. shrext_cmds=".so"
  14018. postinstall_cmds=
  14019. postuninstall_cmds=
  14020. finish_cmds=
  14021. finish_eval=
  14022. shlibpath_var=
  14023. shlibpath_overrides_runpath=unknown
  14024. version_type=none
  14025. dynamic_linker="$host_os ld.so"
  14026. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14027. if test "$GCC" = yes; then
  14028. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14029. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14030. # if the path contains ";" then we assume it to be the separator
  14031. # otherwise default to the standard path separator (i.e. ":") - it is
  14032. # assumed that no part of a normal pathname contains ";" but that should
  14033. # okay in the real world where ";" in dirpaths is itself problematic.
  14034. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14035. else
  14036. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14037. fi
  14038. else
  14039. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14040. fi
  14041. need_lib_prefix=unknown
  14042. hardcode_into_libs=no
  14043. # when you set need_version to no, make sure it does not cause -set_version
  14044. # flags to be left without arguments
  14045. need_version=unknown
  14046. case $host_os in
  14047. aix3*)
  14048. version_type=linux
  14049. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14050. shlibpath_var=LIBPATH
  14051. # AIX 3 has no versioning support, so we append a major version to the name.
  14052. soname_spec='${libname}${release}${shared_ext}$major'
  14053. ;;
  14054. aix4* | aix5*)
  14055. version_type=linux
  14056. need_lib_prefix=no
  14057. need_version=no
  14058. hardcode_into_libs=yes
  14059. if test "$host_cpu" = ia64; then
  14060. # AIX 5 supports IA64
  14061. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14062. shlibpath_var=LD_LIBRARY_PATH
  14063. else
  14064. # With GCC up to 2.95.x, collect2 would create an import file
  14065. # for dependence libraries. The import file would start with
  14066. # the line `#! .'. This would cause the generated library to
  14067. # depend on `.', always an invalid library. This was fixed in
  14068. # development snapshots of GCC prior to 3.0.
  14069. case $host_os in
  14070. aix4 | aix4.[01] | aix4.[01].*)
  14071. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14072. echo ' yes '
  14073. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14074. :
  14075. else
  14076. can_build_shared=no
  14077. fi
  14078. ;;
  14079. esac
  14080. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14081. # soname into executable. Probably we can add versioning support to
  14082. # collect2, so additional links can be useful in future.
  14083. if test "$aix_use_runtimelinking" = yes; then
  14084. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14085. # instead of lib<name>.a to let people know that these are not
  14086. # typical AIX shared libraries.
  14087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14088. else
  14089. # We preserve .a as extension for shared libraries through AIX4.2
  14090. # and later when we are not doing run time linking.
  14091. library_names_spec='${libname}${release}.a $libname.a'
  14092. soname_spec='${libname}${release}${shared_ext}$major'
  14093. fi
  14094. shlibpath_var=LIBPATH
  14095. fi
  14096. ;;
  14097. amigaos*)
  14098. library_names_spec='$libname.ixlibrary $libname.a'
  14099. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14100. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  14101. ;;
  14102. beos*)
  14103. library_names_spec='${libname}${shared_ext}'
  14104. dynamic_linker="$host_os ld.so"
  14105. shlibpath_var=LIBRARY_PATH
  14106. ;;
  14107. bsdi[45]*)
  14108. version_type=linux
  14109. need_version=no
  14110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14111. soname_spec='${libname}${release}${shared_ext}$major'
  14112. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14113. shlibpath_var=LD_LIBRARY_PATH
  14114. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14115. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14116. # the default ld.so.conf also contains /usr/contrib/lib and
  14117. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14118. # libtool to hard-code these into programs
  14119. ;;
  14120. cygwin* | mingw* | pw32*)
  14121. version_type=windows
  14122. shrext_cmds=".dll"
  14123. need_version=no
  14124. need_lib_prefix=no
  14125. case $GCC,$host_os in
  14126. yes,cygwin* | yes,mingw* | yes,pw32*)
  14127. library_names_spec='$libname.dll.a'
  14128. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14129. postinstall_cmds='base_file=`basename \${file}`~
  14130. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14131. dldir=$destdir/`dirname \$dlpath`~
  14132. test -d \$dldir || mkdir -p \$dldir~
  14133. $install_prog $dir/$dlname \$dldir/$dlname'
  14134. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14135. dlpath=$dir/\$dldll~
  14136. $rm \$dlpath'
  14137. shlibpath_overrides_runpath=yes
  14138. case $host_os in
  14139. cygwin*)
  14140. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14141. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14142. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14143. ;;
  14144. mingw*)
  14145. # MinGW DLLs use traditional 'lib' prefix
  14146. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14147. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14148. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14149. # It is most probably a Windows format PATH printed by
  14150. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14151. # path with ; separators, and with drive letters. We can handle the
  14152. # drive letters (cygwin fileutils understands them), so leave them,
  14153. # especially as we might pass files found there to a mingw objdump,
  14154. # which wouldn't understand a cygwinified path. Ahh.
  14155. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14156. else
  14157. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14158. fi
  14159. ;;
  14160. pw32*)
  14161. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14162. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14163. ;;
  14164. esac
  14165. ;;
  14166. *)
  14167. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14168. ;;
  14169. esac
  14170. dynamic_linker='Win32 ld.exe'
  14171. # FIXME: first we should search . and the directory the executable is in
  14172. shlibpath_var=PATH
  14173. ;;
  14174. darwin* | rhapsody*)
  14175. dynamic_linker="$host_os dyld"
  14176. version_type=darwin
  14177. need_lib_prefix=no
  14178. need_version=no
  14179. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14180. soname_spec='${libname}${release}${major}$shared_ext'
  14181. shlibpath_overrides_runpath=yes
  14182. shlibpath_var=DYLD_LIBRARY_PATH
  14183. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  14184. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14185. if test "$GCC" = yes; then
  14186. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14187. else
  14188. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14189. fi
  14190. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14191. ;;
  14192. dgux*)
  14193. version_type=linux
  14194. need_lib_prefix=no
  14195. need_version=no
  14196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14197. soname_spec='${libname}${release}${shared_ext}$major'
  14198. shlibpath_var=LD_LIBRARY_PATH
  14199. ;;
  14200. freebsd1*)
  14201. dynamic_linker=no
  14202. ;;
  14203. kfreebsd*-gnu)
  14204. version_type=linux
  14205. need_lib_prefix=no
  14206. need_version=no
  14207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14208. soname_spec='${libname}${release}${shared_ext}$major'
  14209. shlibpath_var=LD_LIBRARY_PATH
  14210. shlibpath_overrides_runpath=no
  14211. hardcode_into_libs=yes
  14212. dynamic_linker='GNU ld.so'
  14213. ;;
  14214. freebsd* | dragonfly*)
  14215. # DragonFly does not have aout. When/if they implement a new
  14216. # versioning mechanism, adjust this.
  14217. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14218. version_type=freebsd-$objformat
  14219. case $version_type in
  14220. freebsd-elf*)
  14221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14222. need_version=no
  14223. need_lib_prefix=no
  14224. ;;
  14225. freebsd-*)
  14226. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14227. need_version=yes
  14228. ;;
  14229. esac
  14230. shlibpath_var=LD_LIBRARY_PATH
  14231. case $host_os in
  14232. freebsd2*)
  14233. shlibpath_overrides_runpath=yes
  14234. ;;
  14235. freebsd3.[01]* | freebsdelf3.[01]*)
  14236. shlibpath_overrides_runpath=yes
  14237. hardcode_into_libs=yes
  14238. ;;
  14239. *) # from 3.2 on
  14240. shlibpath_overrides_runpath=no
  14241. hardcode_into_libs=yes
  14242. ;;
  14243. esac
  14244. ;;
  14245. gnu*)
  14246. version_type=linux
  14247. need_lib_prefix=no
  14248. need_version=no
  14249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14250. soname_spec='${libname}${release}${shared_ext}$major'
  14251. shlibpath_var=LD_LIBRARY_PATH
  14252. hardcode_into_libs=yes
  14253. ;;
  14254. hpux9* | hpux10* | hpux11*)
  14255. # Give a soname corresponding to the major version so that dld.sl refuses to
  14256. # link against other versions.
  14257. version_type=sunos
  14258. need_lib_prefix=no
  14259. need_version=no
  14260. case "$host_cpu" in
  14261. ia64*)
  14262. shrext_cmds='.so'
  14263. hardcode_into_libs=yes
  14264. dynamic_linker="$host_os dld.so"
  14265. shlibpath_var=LD_LIBRARY_PATH
  14266. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14268. soname_spec='${libname}${release}${shared_ext}$major'
  14269. if test "X$HPUX_IA64_MODE" = X32; then
  14270. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14271. else
  14272. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14273. fi
  14274. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14275. ;;
  14276. hppa*64*)
  14277. shrext_cmds='.sl'
  14278. hardcode_into_libs=yes
  14279. dynamic_linker="$host_os dld.sl"
  14280. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14281. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14283. soname_spec='${libname}${release}${shared_ext}$major'
  14284. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14285. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14286. ;;
  14287. *)
  14288. shrext_cmds='.sl'
  14289. dynamic_linker="$host_os dld.sl"
  14290. shlibpath_var=SHLIB_PATH
  14291. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14293. soname_spec='${libname}${release}${shared_ext}$major'
  14294. ;;
  14295. esac
  14296. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14297. postinstall_cmds='chmod 555 $lib'
  14298. ;;
  14299. irix5* | irix6* | nonstopux*)
  14300. case $host_os in
  14301. nonstopux*) version_type=nonstopux ;;
  14302. *)
  14303. if test "$lt_cv_prog_gnu_ld" = yes; then
  14304. version_type=linux
  14305. else
  14306. version_type=irix
  14307. fi ;;
  14308. esac
  14309. need_lib_prefix=no
  14310. need_version=no
  14311. soname_spec='${libname}${release}${shared_ext}$major'
  14312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14313. case $host_os in
  14314. irix5* | nonstopux*)
  14315. libsuff= shlibsuff=
  14316. ;;
  14317. *)
  14318. case $LD in # libtool.m4 will add one of these switches to LD
  14319. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14320. libsuff= shlibsuff= libmagic=32-bit;;
  14321. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14322. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14323. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14324. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14325. *) libsuff= shlibsuff= libmagic=never-match;;
  14326. esac
  14327. ;;
  14328. esac
  14329. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14330. shlibpath_overrides_runpath=no
  14331. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14332. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14333. hardcode_into_libs=yes
  14334. ;;
  14335. # No shared lib support for Linux oldld, aout, or coff.
  14336. linux*oldld* | linux*aout* | linux*coff*)
  14337. dynamic_linker=no
  14338. ;;
  14339. # This must be Linux ELF.
  14340. linux*)
  14341. version_type=linux
  14342. need_lib_prefix=no
  14343. need_version=no
  14344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14345. soname_spec='${libname}${release}${shared_ext}$major'
  14346. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14347. shlibpath_var=LD_LIBRARY_PATH
  14348. shlibpath_overrides_runpath=no
  14349. # This implies no fast_install, which is unacceptable.
  14350. # Some rework will be needed to allow for fast_install
  14351. # before this can be enabled.
  14352. hardcode_into_libs=yes
  14353. # Append ld.so.conf contents to the search path
  14354. if test -f /etc/ld.so.conf; then
  14355. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14356. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14357. fi
  14358. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14359. # powerpc, because MkLinux only supported shared libraries with the
  14360. # GNU dynamic linker. Since this was broken with cross compilers,
  14361. # most powerpc-linux boxes support dynamic linking these days and
  14362. # people can always --disable-shared, the test was removed, and we
  14363. # assume the GNU/Linux dynamic linker is in use.
  14364. dynamic_linker='GNU/Linux ld.so'
  14365. ;;
  14366. knetbsd*-gnu)
  14367. version_type=linux
  14368. need_lib_prefix=no
  14369. need_version=no
  14370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14371. soname_spec='${libname}${release}${shared_ext}$major'
  14372. shlibpath_var=LD_LIBRARY_PATH
  14373. shlibpath_overrides_runpath=no
  14374. hardcode_into_libs=yes
  14375. dynamic_linker='GNU ld.so'
  14376. ;;
  14377. netbsd*)
  14378. version_type=sunos
  14379. need_lib_prefix=no
  14380. need_version=no
  14381. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14383. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14384. dynamic_linker='NetBSD (a.out) ld.so'
  14385. else
  14386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14387. soname_spec='${libname}${release}${shared_ext}$major'
  14388. dynamic_linker='NetBSD ld.elf_so'
  14389. fi
  14390. shlibpath_var=LD_LIBRARY_PATH
  14391. shlibpath_overrides_runpath=yes
  14392. hardcode_into_libs=yes
  14393. ;;
  14394. newsos6)
  14395. version_type=linux
  14396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14397. shlibpath_var=LD_LIBRARY_PATH
  14398. shlibpath_overrides_runpath=yes
  14399. ;;
  14400. nto-qnx*)
  14401. version_type=linux
  14402. need_lib_prefix=no
  14403. need_version=no
  14404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14405. soname_spec='${libname}${release}${shared_ext}$major'
  14406. shlibpath_var=LD_LIBRARY_PATH
  14407. shlibpath_overrides_runpath=yes
  14408. ;;
  14409. openbsd*)
  14410. version_type=sunos
  14411. need_lib_prefix=no
  14412. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14413. case $host_os in
  14414. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14415. *) need_version=no ;;
  14416. esac
  14417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14418. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14419. shlibpath_var=LD_LIBRARY_PATH
  14420. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14421. case $host_os in
  14422. openbsd2.[89] | openbsd2.[89].*)
  14423. shlibpath_overrides_runpath=no
  14424. ;;
  14425. *)
  14426. shlibpath_overrides_runpath=yes
  14427. ;;
  14428. esac
  14429. else
  14430. shlibpath_overrides_runpath=yes
  14431. fi
  14432. ;;
  14433. os2*)
  14434. libname_spec='$name'
  14435. shrext_cmds=".dll"
  14436. need_lib_prefix=no
  14437. library_names_spec='$libname${shared_ext} $libname.a'
  14438. dynamic_linker='OS/2 ld.exe'
  14439. shlibpath_var=LIBPATH
  14440. ;;
  14441. osf3* | osf4* | osf5*)
  14442. version_type=osf
  14443. need_lib_prefix=no
  14444. need_version=no
  14445. soname_spec='${libname}${release}${shared_ext}$major'
  14446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14447. shlibpath_var=LD_LIBRARY_PATH
  14448. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14449. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14450. ;;
  14451. sco3.2v5*)
  14452. version_type=osf
  14453. soname_spec='${libname}${release}${shared_ext}$major'
  14454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14455. shlibpath_var=LD_LIBRARY_PATH
  14456. ;;
  14457. solaris*)
  14458. version_type=linux
  14459. need_lib_prefix=no
  14460. need_version=no
  14461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14462. soname_spec='${libname}${release}${shared_ext}$major'
  14463. shlibpath_var=LD_LIBRARY_PATH
  14464. shlibpath_overrides_runpath=yes
  14465. hardcode_into_libs=yes
  14466. # ldd complains unless libraries are executable
  14467. postinstall_cmds='chmod +x $lib'
  14468. ;;
  14469. sunos4*)
  14470. version_type=sunos
  14471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14472. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14473. shlibpath_var=LD_LIBRARY_PATH
  14474. shlibpath_overrides_runpath=yes
  14475. if test "$with_gnu_ld" = yes; then
  14476. need_lib_prefix=no
  14477. fi
  14478. need_version=yes
  14479. ;;
  14480. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14481. version_type=linux
  14482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14483. soname_spec='${libname}${release}${shared_ext}$major'
  14484. shlibpath_var=LD_LIBRARY_PATH
  14485. case $host_vendor in
  14486. sni)
  14487. shlibpath_overrides_runpath=no
  14488. need_lib_prefix=no
  14489. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14490. runpath_var=LD_RUN_PATH
  14491. ;;
  14492. siemens)
  14493. need_lib_prefix=no
  14494. ;;
  14495. motorola)
  14496. need_lib_prefix=no
  14497. need_version=no
  14498. shlibpath_overrides_runpath=no
  14499. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14500. ;;
  14501. esac
  14502. ;;
  14503. sysv4*MP*)
  14504. if test -d /usr/nec ;then
  14505. version_type=linux
  14506. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14507. soname_spec='$libname${shared_ext}.$major'
  14508. shlibpath_var=LD_LIBRARY_PATH
  14509. fi
  14510. ;;
  14511. uts4*)
  14512. version_type=linux
  14513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14514. soname_spec='${libname}${release}${shared_ext}$major'
  14515. shlibpath_var=LD_LIBRARY_PATH
  14516. ;;
  14517. *)
  14518. dynamic_linker=no
  14519. ;;
  14520. esac
  14521. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14522. echo "${ECHO_T}$dynamic_linker" >&6; }
  14523. test "$dynamic_linker" = no && can_build_shared=no
  14524. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14525. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14526. hardcode_action_F77=
  14527. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14528. test -n "$runpath_var_F77" || \
  14529. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14530. # We can hardcode non-existant directories.
  14531. if test "$hardcode_direct_F77" != no &&
  14532. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14533. # have to relink, otherwise we might link with an installed library
  14534. # when we should be linking with a yet-to-be-installed one
  14535. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14536. test "$hardcode_minus_L_F77" != no; then
  14537. # Linking always hardcodes the temporary library directory.
  14538. hardcode_action_F77=relink
  14539. else
  14540. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14541. hardcode_action_F77=immediate
  14542. fi
  14543. else
  14544. # We cannot hardcode anything, or else we can only hardcode existing
  14545. # directories.
  14546. hardcode_action_F77=unsupported
  14547. fi
  14548. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14549. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14550. if test "$hardcode_action_F77" = relink; then
  14551. # Fast installation is not supported
  14552. enable_fast_install=no
  14553. elif test "$shlibpath_overrides_runpath" = yes ||
  14554. test "$enable_shared" = no; then
  14555. # Fast installation is not necessary
  14556. enable_fast_install=needless
  14557. fi
  14558. striplib=
  14559. old_striplib=
  14560. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  14561. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  14562. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  14563. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14564. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14565. { echo "$as_me:$LINENO: result: yes" >&5
  14566. echo "${ECHO_T}yes" >&6; }
  14567. else
  14568. # FIXME - insert some real tests, host_os isn't really good enough
  14569. case $host_os in
  14570. darwin*)
  14571. if test -n "$STRIP" ; then
  14572. striplib="$STRIP -x"
  14573. { echo "$as_me:$LINENO: result: yes" >&5
  14574. echo "${ECHO_T}yes" >&6; }
  14575. else
  14576. { echo "$as_me:$LINENO: result: no" >&5
  14577. echo "${ECHO_T}no" >&6; }
  14578. fi
  14579. ;;
  14580. *)
  14581. { echo "$as_me:$LINENO: result: no" >&5
  14582. echo "${ECHO_T}no" >&6; }
  14583. ;;
  14584. esac
  14585. fi
  14586. # The else clause should only fire when bootstrapping the
  14587. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14588. # with your package, and you will get complaints that there are
  14589. # no rules to generate ltmain.sh.
  14590. if test -f "$ltmain"; then
  14591. # See if we are running on zsh, and set the options which allow our commands through
  14592. # without removal of \ escapes.
  14593. if test -n "${ZSH_VERSION+set}" ; then
  14594. setopt NO_GLOB_SUBST
  14595. fi
  14596. # Now quote all the things that may contain metacharacters while being
  14597. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14598. # variables and quote the copies for generation of the libtool script.
  14599. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14600. SED SHELL STRIP \
  14601. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14602. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14603. deplibs_check_method reload_flag reload_cmds need_locks \
  14604. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14605. lt_cv_sys_global_symbol_to_c_name_address \
  14606. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14607. old_postinstall_cmds old_postuninstall_cmds \
  14608. compiler_F77 \
  14609. CC_F77 \
  14610. LD_F77 \
  14611. lt_prog_compiler_wl_F77 \
  14612. lt_prog_compiler_pic_F77 \
  14613. lt_prog_compiler_static_F77 \
  14614. lt_prog_compiler_no_builtin_flag_F77 \
  14615. export_dynamic_flag_spec_F77 \
  14616. thread_safe_flag_spec_F77 \
  14617. whole_archive_flag_spec_F77 \
  14618. enable_shared_with_static_runtimes_F77 \
  14619. old_archive_cmds_F77 \
  14620. old_archive_from_new_cmds_F77 \
  14621. predep_objects_F77 \
  14622. postdep_objects_F77 \
  14623. predeps_F77 \
  14624. postdeps_F77 \
  14625. compiler_lib_search_path_F77 \
  14626. archive_cmds_F77 \
  14627. archive_expsym_cmds_F77 \
  14628. postinstall_cmds_F77 \
  14629. postuninstall_cmds_F77 \
  14630. old_archive_from_expsyms_cmds_F77 \
  14631. allow_undefined_flag_F77 \
  14632. no_undefined_flag_F77 \
  14633. export_symbols_cmds_F77 \
  14634. hardcode_libdir_flag_spec_F77 \
  14635. hardcode_libdir_flag_spec_ld_F77 \
  14636. hardcode_libdir_separator_F77 \
  14637. hardcode_automatic_F77 \
  14638. module_cmds_F77 \
  14639. module_expsym_cmds_F77 \
  14640. lt_cv_prog_compiler_c_o_F77 \
  14641. exclude_expsyms_F77 \
  14642. include_expsyms_F77; do
  14643. case $var in
  14644. old_archive_cmds_F77 | \
  14645. old_archive_from_new_cmds_F77 | \
  14646. archive_cmds_F77 | \
  14647. archive_expsym_cmds_F77 | \
  14648. module_cmds_F77 | \
  14649. module_expsym_cmds_F77 | \
  14650. old_archive_from_expsyms_cmds_F77 | \
  14651. export_symbols_cmds_F77 | \
  14652. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14653. postinstall_cmds | postuninstall_cmds | \
  14654. old_postinstall_cmds | old_postuninstall_cmds | \
  14655. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14656. # Double-quote double-evaled strings.
  14657. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14658. ;;
  14659. *)
  14660. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14661. ;;
  14662. esac
  14663. done
  14664. case $lt_echo in
  14665. *'\$0 --fallback-echo"')
  14666. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14667. ;;
  14668. esac
  14669. cfgfile="$ofile"
  14670. cat <<__EOF__ >> "$cfgfile"
  14671. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14672. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14673. # Shell to use when invoking shell scripts.
  14674. SHELL=$lt_SHELL
  14675. # Whether or not to build shared libraries.
  14676. build_libtool_libs=$enable_shared
  14677. # Whether or not to build static libraries.
  14678. build_old_libs=$enable_static
  14679. # Whether or not to add -lc for building shared libraries.
  14680. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14681. # Whether or not to disallow shared libs when runtime libs are static
  14682. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14683. # Whether or not to optimize for fast installation.
  14684. fast_install=$enable_fast_install
  14685. # The host system.
  14686. host_alias=$host_alias
  14687. host=$host
  14688. host_os=$host_os
  14689. # The build system.
  14690. build_alias=$build_alias
  14691. build=$build
  14692. build_os=$build_os
  14693. # An echo program that does not interpret backslashes.
  14694. echo=$lt_echo
  14695. # The archiver.
  14696. AR=$lt_AR
  14697. AR_FLAGS=$lt_AR_FLAGS
  14698. # A C compiler.
  14699. LTCC=$lt_LTCC
  14700. # A language-specific compiler.
  14701. CC=$lt_compiler_F77
  14702. # Is the compiler the GNU C compiler?
  14703. with_gcc=$GCC_F77
  14704. # An ERE matcher.
  14705. EGREP=$lt_EGREP
  14706. # The linker used to build libraries.
  14707. LD=$lt_LD_F77
  14708. # Whether we need hard or soft links.
  14709. LN_S=$lt_LN_S
  14710. # A BSD-compatible nm program.
  14711. NM=$lt_NM
  14712. # A symbol stripping program
  14713. STRIP=$lt_STRIP
  14714. # Used to examine libraries when file_magic_cmd begins "file"
  14715. MAGIC_CMD=$MAGIC_CMD
  14716. # Used on cygwin: DLL creation program.
  14717. DLLTOOL="$DLLTOOL"
  14718. # Used on cygwin: object dumper.
  14719. OBJDUMP="$OBJDUMP"
  14720. # Used on cygwin: assembler.
  14721. AS="$AS"
  14722. # The name of the directory that contains temporary libtool files.
  14723. objdir=$objdir
  14724. # How to create reloadable object files.
  14725. reload_flag=$lt_reload_flag
  14726. reload_cmds=$lt_reload_cmds
  14727. # How to pass a linker flag through the compiler.
  14728. wl=$lt_lt_prog_compiler_wl_F77
  14729. # Object file suffix (normally "o").
  14730. objext="$ac_objext"
  14731. # Old archive suffix (normally "a").
  14732. libext="$libext"
  14733. # Shared library suffix (normally ".so").
  14734. shrext_cmds='$shrext_cmds'
  14735. # Executable file suffix (normally "").
  14736. exeext="$exeext"
  14737. # Additional compiler flags for building library objects.
  14738. pic_flag=$lt_lt_prog_compiler_pic_F77
  14739. pic_mode=$pic_mode
  14740. # What is the maximum length of a command?
  14741. max_cmd_len=$lt_cv_sys_max_cmd_len
  14742. # Does compiler simultaneously support -c and -o options?
  14743. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14744. # Must we lock files when doing compilation?
  14745. need_locks=$lt_need_locks
  14746. # Do we need the lib prefix for modules?
  14747. need_lib_prefix=$need_lib_prefix
  14748. # Do we need a version for libraries?
  14749. need_version=$need_version
  14750. # Whether dlopen is supported.
  14751. dlopen_support=$enable_dlopen
  14752. # Whether dlopen of programs is supported.
  14753. dlopen_self=$enable_dlopen_self
  14754. # Whether dlopen of statically linked programs is supported.
  14755. dlopen_self_static=$enable_dlopen_self_static
  14756. # Compiler flag to prevent dynamic linking.
  14757. link_static_flag=$lt_lt_prog_compiler_static_F77
  14758. # Compiler flag to turn off builtin functions.
  14759. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14760. # Compiler flag to allow reflexive dlopens.
  14761. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14762. # Compiler flag to generate shared objects directly from archives.
  14763. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14764. # Compiler flag to generate thread-safe objects.
  14765. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14766. # Library versioning type.
  14767. version_type=$version_type
  14768. # Format of library name prefix.
  14769. libname_spec=$lt_libname_spec
  14770. # List of archive names. First name is the real one, the rest are links.
  14771. # The last name is the one that the linker finds with -lNAME.
  14772. library_names_spec=$lt_library_names_spec
  14773. # The coded name of the library, if different from the real name.
  14774. soname_spec=$lt_soname_spec
  14775. # Commands used to build and install an old-style archive.
  14776. RANLIB=$lt_RANLIB
  14777. old_archive_cmds=$lt_old_archive_cmds_F77
  14778. old_postinstall_cmds=$lt_old_postinstall_cmds
  14779. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14780. # Create an old-style archive from a shared archive.
  14781. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14782. # Create a temporary old-style archive to link instead of a shared archive.
  14783. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14784. # Commands used to build and install a shared archive.
  14785. archive_cmds=$lt_archive_cmds_F77
  14786. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14787. postinstall_cmds=$lt_postinstall_cmds
  14788. postuninstall_cmds=$lt_postuninstall_cmds
  14789. # Commands used to build a loadable module (assumed same as above if empty)
  14790. module_cmds=$lt_module_cmds_F77
  14791. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14792. # Commands to strip libraries.
  14793. old_striplib=$lt_old_striplib
  14794. striplib=$lt_striplib
  14795. # Dependencies to place before the objects being linked to create a
  14796. # shared library.
  14797. predep_objects=$lt_predep_objects_F77
  14798. # Dependencies to place after the objects being linked to create a
  14799. # shared library.
  14800. postdep_objects=$lt_postdep_objects_F77
  14801. # Dependencies to place before the objects being linked to create a
  14802. # shared library.
  14803. predeps=$lt_predeps_F77
  14804. # Dependencies to place after the objects being linked to create a
  14805. # shared library.
  14806. postdeps=$lt_postdeps_F77
  14807. # The library search path used internally by the compiler when linking
  14808. # a shared library.
  14809. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14810. # Method to check whether dependent libraries are shared objects.
  14811. deplibs_check_method=$lt_deplibs_check_method
  14812. # Command to use when deplibs_check_method == file_magic.
  14813. file_magic_cmd=$lt_file_magic_cmd
  14814. # Flag that allows shared libraries with undefined symbols to be built.
  14815. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14816. # Flag that forces no undefined symbols.
  14817. no_undefined_flag=$lt_no_undefined_flag_F77
  14818. # Commands used to finish a libtool library installation in a directory.
  14819. finish_cmds=$lt_finish_cmds
  14820. # Same as above, but a single script fragment to be evaled but not shown.
  14821. finish_eval=$lt_finish_eval
  14822. # Take the output of nm and produce a listing of raw symbols and C names.
  14823. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14824. # Transform the output of nm in a proper C declaration
  14825. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14826. # Transform the output of nm in a C name address pair
  14827. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14828. # This is the shared library runtime path variable.
  14829. runpath_var=$runpath_var
  14830. # This is the shared library path variable.
  14831. shlibpath_var=$shlibpath_var
  14832. # Is shlibpath searched before the hard-coded library search path?
  14833. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14834. # How to hardcode a shared library path into an executable.
  14835. hardcode_action=$hardcode_action_F77
  14836. # Whether we should hardcode library paths into libraries.
  14837. hardcode_into_libs=$hardcode_into_libs
  14838. # Flag to hardcode \$libdir into a binary during linking.
  14839. # This must work even if \$libdir does not exist.
  14840. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14841. # If ld is used when linking, flag to hardcode \$libdir into
  14842. # a binary during linking. This must work even if \$libdir does
  14843. # not exist.
  14844. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14845. # Whether we need a single -rpath flag with a separated argument.
  14846. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14847. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14848. # resulting binary.
  14849. hardcode_direct=$hardcode_direct_F77
  14850. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14851. # resulting binary.
  14852. hardcode_minus_L=$hardcode_minus_L_F77
  14853. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14854. # the resulting binary.
  14855. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14856. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14857. # and all subsequent libraries and executables linked against it.
  14858. hardcode_automatic=$hardcode_automatic_F77
  14859. # Variables whose values should be saved in libtool wrapper scripts and
  14860. # restored at relink time.
  14861. variables_saved_for_relink="$variables_saved_for_relink"
  14862. # Whether libtool must link a program against all its dependency libraries.
  14863. link_all_deplibs=$link_all_deplibs_F77
  14864. # Compile-time system search path for libraries
  14865. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14866. # Run-time system search path for libraries
  14867. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14868. # Fix the shell variable \$srcfile for the compiler.
  14869. fix_srcfile_path="$fix_srcfile_path_F77"
  14870. # Set to yes if exported symbols are required.
  14871. always_export_symbols=$always_export_symbols_F77
  14872. # The commands to list exported symbols.
  14873. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14874. # The commands to extract the exported symbol list from a shared archive.
  14875. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14876. # Symbols that should not be listed in the preloaded symbols.
  14877. exclude_expsyms=$lt_exclude_expsyms_F77
  14878. # Symbols that must always be exported.
  14879. include_expsyms=$lt_include_expsyms_F77
  14880. # ### END LIBTOOL TAG CONFIG: $tagname
  14881. __EOF__
  14882. else
  14883. # If there is no Makefile yet, we rely on a make rule to execute
  14884. # `config.status --recheck' to rerun these tests and create the
  14885. # libtool script then.
  14886. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14887. if test -f "$ltmain_in"; then
  14888. test -f Makefile && make "$ltmain"
  14889. fi
  14890. fi
  14891. ac_ext=c
  14892. ac_cpp='$CPP $CPPFLAGS'
  14893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14896. CC="$lt_save_CC"
  14897. else
  14898. tagname=""
  14899. fi
  14900. ;;
  14901. GCJ)
  14902. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14903. # Source file extension for Java test sources.
  14904. ac_ext=java
  14905. # Object file extension for compiled Java test sources.
  14906. objext=o
  14907. objext_GCJ=$objext
  14908. # Code to be used in simple compile tests
  14909. lt_simple_compile_test_code="class foo {}\n"
  14910. # Code to be used in simple link tests
  14911. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14912. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14913. # If no C compiler was specified, use CC.
  14914. LTCC=${LTCC-"$CC"}
  14915. # Allow CC to be a program name with arguments.
  14916. compiler=$CC
  14917. # save warnings/boilerplate of simple test code
  14918. ac_outfile=conftest.$ac_objext
  14919. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14920. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14921. _lt_compiler_boilerplate=`cat conftest.err`
  14922. $rm conftest*
  14923. ac_outfile=conftest.$ac_objext
  14924. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14925. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14926. _lt_linker_boilerplate=`cat conftest.err`
  14927. $rm conftest*
  14928. # Allow CC to be a program name with arguments.
  14929. lt_save_CC="$CC"
  14930. CC=${GCJ-"gcj"}
  14931. compiler=$CC
  14932. compiler_GCJ=$CC
  14933. for cc_temp in $compiler""; do
  14934. case $cc_temp in
  14935. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14936. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14937. \-*) ;;
  14938. *) break;;
  14939. esac
  14940. done
  14941. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14942. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14943. archive_cmds_need_lc_GCJ=no
  14944. old_archive_cmds_GCJ=$old_archive_cmds
  14945. lt_prog_compiler_no_builtin_flag_GCJ=
  14946. if test "$GCC" = yes; then
  14947. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14948. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14949. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14950. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14951. echo $ECHO_N "(cached) $ECHO_C" >&6
  14952. else
  14953. lt_cv_prog_compiler_rtti_exceptions=no
  14954. ac_outfile=conftest.$ac_objext
  14955. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14956. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14957. # Insert the option either (1) after the last *FLAGS variable, or
  14958. # (2) before a word containing "conftest.", or (3) at the end.
  14959. # Note that $ac_compile itself does not contain backslashes and begins
  14960. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14961. # The option is referenced via a variable to avoid confusing sed.
  14962. lt_compile=`echo "$ac_compile" | $SED \
  14963. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14964. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14965. -e 's:$: $lt_compiler_flag:'`
  14966. (eval echo "\"\$as_me:16781: $lt_compile\"" >&5)
  14967. (eval "$lt_compile" 2>conftest.err)
  14968. ac_status=$?
  14969. cat conftest.err >&5
  14970. echo "$as_me:16785: \$? = $ac_status" >&5
  14971. if (exit $ac_status) && test -s "$ac_outfile"; then
  14972. # The compiler can only warn and ignore the option if not recognized
  14973. # So say no if there are warnings other than the usual output.
  14974. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  14975. $SED '/^$/d' conftest.err >conftest.er2
  14976. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  14977. lt_cv_prog_compiler_rtti_exceptions=yes
  14978. fi
  14979. fi
  14980. $rm conftest*
  14981. fi
  14982. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14983. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14984. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14985. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14986. else
  14987. :
  14988. fi
  14989. fi
  14990. lt_prog_compiler_wl_GCJ=
  14991. lt_prog_compiler_pic_GCJ=
  14992. lt_prog_compiler_static_GCJ=
  14993. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14994. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14995. if test "$GCC" = yes; then
  14996. lt_prog_compiler_wl_GCJ='-Wl,'
  14997. lt_prog_compiler_static_GCJ='-static'
  14998. case $host_os in
  14999. aix*)
  15000. # All AIX code is PIC.
  15001. if test "$host_cpu" = ia64; then
  15002. # AIX 5 now supports IA64 processor
  15003. lt_prog_compiler_static_GCJ='-Bstatic'
  15004. fi
  15005. ;;
  15006. amigaos*)
  15007. # FIXME: we need at least 68020 code to build shared libraries, but
  15008. # adding the `-m68020' flag to GCC prevents building anything better,
  15009. # like `-m68040'.
  15010. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15011. ;;
  15012. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15013. # PIC is the default for these OSes.
  15014. ;;
  15015. mingw* | pw32* | os2*)
  15016. # This hack is so that the source file can tell whether it is being
  15017. # built for inclusion in a dll (and should export symbols for example).
  15018. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15019. ;;
  15020. darwin* | rhapsody*)
  15021. # PIC is the default on this platform
  15022. # Common symbols not allowed in MH_DYLIB files
  15023. lt_prog_compiler_pic_GCJ='-fno-common'
  15024. ;;
  15025. msdosdjgpp*)
  15026. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15027. # on systems that don't support them.
  15028. lt_prog_compiler_can_build_shared_GCJ=no
  15029. enable_shared=no
  15030. ;;
  15031. sysv4*MP*)
  15032. if test -d /usr/nec; then
  15033. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15034. fi
  15035. ;;
  15036. hpux*)
  15037. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15038. # not for PA HP-UX.
  15039. case "$host_cpu" in
  15040. hppa*64*|ia64*)
  15041. # +Z the default
  15042. ;;
  15043. *)
  15044. lt_prog_compiler_pic_GCJ='-fPIC'
  15045. ;;
  15046. esac
  15047. ;;
  15048. *)
  15049. lt_prog_compiler_pic_GCJ='-fPIC'
  15050. ;;
  15051. esac
  15052. else
  15053. # PORTME Check for flag to pass linker flags through the system compiler.
  15054. case $host_os in
  15055. aix*)
  15056. lt_prog_compiler_wl_GCJ='-Wl,'
  15057. if test "$host_cpu" = ia64; then
  15058. # AIX 5 now supports IA64 processor
  15059. lt_prog_compiler_static_GCJ='-Bstatic'
  15060. else
  15061. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15062. fi
  15063. ;;
  15064. darwin*)
  15065. # PIC is the default on this platform
  15066. # Common symbols not allowed in MH_DYLIB files
  15067. case $cc_basename in
  15068. xlc*)
  15069. lt_prog_compiler_pic_GCJ='-qnocommon'
  15070. lt_prog_compiler_wl_GCJ='-Wl,'
  15071. ;;
  15072. esac
  15073. ;;
  15074. mingw* | pw32* | os2*)
  15075. # This hack is so that the source file can tell whether it is being
  15076. # built for inclusion in a dll (and should export symbols for example).
  15077. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15078. ;;
  15079. hpux9* | hpux10* | hpux11*)
  15080. lt_prog_compiler_wl_GCJ='-Wl,'
  15081. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15082. # not for PA HP-UX.
  15083. case "$host_cpu" in
  15084. hppa*64*|ia64*)
  15085. # +Z the default
  15086. ;;
  15087. *)
  15088. lt_prog_compiler_pic_GCJ='+Z'
  15089. ;;
  15090. esac
  15091. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15092. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15093. ;;
  15094. irix5* | irix6* | nonstopux*)
  15095. lt_prog_compiler_wl_GCJ='-Wl,'
  15096. # PIC (with -KPIC) is the default.
  15097. lt_prog_compiler_static_GCJ='-non_shared'
  15098. ;;
  15099. newsos6)
  15100. lt_prog_compiler_pic_GCJ='-KPIC'
  15101. lt_prog_compiler_static_GCJ='-Bstatic'
  15102. ;;
  15103. linux*)
  15104. case $cc_basename in
  15105. icc* | ecc*)
  15106. lt_prog_compiler_wl_GCJ='-Wl,'
  15107. lt_prog_compiler_pic_GCJ='-KPIC'
  15108. lt_prog_compiler_static_GCJ='-static'
  15109. ;;
  15110. pgcc* | pgf77* | pgf90*)
  15111. # Portland Group compilers (*not* the Pentium gcc compiler,
  15112. # which looks to be a dead project)
  15113. lt_prog_compiler_wl_GCJ='-Wl,'
  15114. lt_prog_compiler_pic_GCJ='-fpic'
  15115. lt_prog_compiler_static_GCJ='-static'
  15116. ;;
  15117. ccc*)
  15118. lt_prog_compiler_wl_GCJ='-Wl,'
  15119. # All Alpha code is PIC.
  15120. lt_prog_compiler_static_GCJ='-non_shared'
  15121. ;;
  15122. esac
  15123. ;;
  15124. osf3* | osf4* | osf5*)
  15125. lt_prog_compiler_wl_GCJ='-Wl,'
  15126. # All OSF/1 code is PIC.
  15127. lt_prog_compiler_static_GCJ='-non_shared'
  15128. ;;
  15129. sco3.2v5*)
  15130. lt_prog_compiler_pic_GCJ='-Kpic'
  15131. lt_prog_compiler_static_GCJ='-dn'
  15132. ;;
  15133. solaris*)
  15134. lt_prog_compiler_pic_GCJ='-KPIC'
  15135. lt_prog_compiler_static_GCJ='-Bstatic'
  15136. case $cc_basename in
  15137. f77* | f90* | f95*)
  15138. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15139. *)
  15140. lt_prog_compiler_wl_GCJ='-Wl,';;
  15141. esac
  15142. ;;
  15143. sunos4*)
  15144. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15145. lt_prog_compiler_pic_GCJ='-PIC'
  15146. lt_prog_compiler_static_GCJ='-Bstatic'
  15147. ;;
  15148. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15149. lt_prog_compiler_wl_GCJ='-Wl,'
  15150. lt_prog_compiler_pic_GCJ='-KPIC'
  15151. lt_prog_compiler_static_GCJ='-Bstatic'
  15152. ;;
  15153. sysv4*MP*)
  15154. if test -d /usr/nec ;then
  15155. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15156. lt_prog_compiler_static_GCJ='-Bstatic'
  15157. fi
  15158. ;;
  15159. unicos*)
  15160. lt_prog_compiler_wl_GCJ='-Wl,'
  15161. lt_prog_compiler_can_build_shared_GCJ=no
  15162. ;;
  15163. uts4*)
  15164. lt_prog_compiler_pic_GCJ='-pic'
  15165. lt_prog_compiler_static_GCJ='-Bstatic'
  15166. ;;
  15167. *)
  15168. lt_prog_compiler_can_build_shared_GCJ=no
  15169. ;;
  15170. esac
  15171. fi
  15172. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15173. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15174. #
  15175. # Check to make sure the PIC flag actually works.
  15176. #
  15177. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15178. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15179. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15180. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15181. echo $ECHO_N "(cached) $ECHO_C" >&6
  15182. else
  15183. lt_prog_compiler_pic_works_GCJ=no
  15184. ac_outfile=conftest.$ac_objext
  15185. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15186. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15187. # Insert the option either (1) after the last *FLAGS variable, or
  15188. # (2) before a word containing "conftest.", or (3) at the end.
  15189. # Note that $ac_compile itself does not contain backslashes and begins
  15190. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15191. # The option is referenced via a variable to avoid confusing sed.
  15192. lt_compile=`echo "$ac_compile" | $SED \
  15193. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15194. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15195. -e 's:$: $lt_compiler_flag:'`
  15196. (eval echo "\"\$as_me:17043: $lt_compile\"" >&5)
  15197. (eval "$lt_compile" 2>conftest.err)
  15198. ac_status=$?
  15199. cat conftest.err >&5
  15200. echo "$as_me:17047: \$? = $ac_status" >&5
  15201. if (exit $ac_status) && test -s "$ac_outfile"; then
  15202. # The compiler can only warn and ignore the option if not recognized
  15203. # So say no if there are warnings other than the usual output.
  15204. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  15205. $SED '/^$/d' conftest.err >conftest.er2
  15206. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  15207. lt_prog_compiler_pic_works_GCJ=yes
  15208. fi
  15209. fi
  15210. $rm conftest*
  15211. fi
  15212. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15213. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15214. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15215. case $lt_prog_compiler_pic_GCJ in
  15216. "" | " "*) ;;
  15217. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15218. esac
  15219. else
  15220. lt_prog_compiler_pic_GCJ=
  15221. lt_prog_compiler_can_build_shared_GCJ=no
  15222. fi
  15223. fi
  15224. case "$host_os" in
  15225. # For platforms which do not support PIC, -DPIC is meaningless:
  15226. *djgpp*)
  15227. lt_prog_compiler_pic_GCJ=
  15228. ;;
  15229. *)
  15230. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15231. ;;
  15232. esac
  15233. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15234. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15235. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15236. echo $ECHO_N "(cached) $ECHO_C" >&6
  15237. else
  15238. lt_cv_prog_compiler_c_o_GCJ=no
  15239. $rm -r conftest 2>/dev/null
  15240. mkdir conftest
  15241. cd conftest
  15242. mkdir out
  15243. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15244. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15245. # Insert the option either (1) after the last *FLAGS variable, or
  15246. # (2) before a word containing "conftest.", or (3) at the end.
  15247. # Note that $ac_compile itself does not contain backslashes and begins
  15248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15249. lt_compile=`echo "$ac_compile" | $SED \
  15250. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15252. -e 's:$: $lt_compiler_flag:'`
  15253. (eval echo "\"\$as_me:17105: $lt_compile\"" >&5)
  15254. (eval "$lt_compile" 2>out/conftest.err)
  15255. ac_status=$?
  15256. cat out/conftest.err >&5
  15257. echo "$as_me:17109: \$? = $ac_status" >&5
  15258. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15259. then
  15260. # The compiler can only warn and ignore the option if not recognized
  15261. # So say no if there are warnings
  15262. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  15263. $SED '/^$/d' out/conftest.err >out/conftest.er2
  15264. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15265. lt_cv_prog_compiler_c_o_GCJ=yes
  15266. fi
  15267. fi
  15268. chmod u+w .
  15269. $rm conftest*
  15270. # SGI C++ compiler will create directory out/ii_files/ for
  15271. # template instantiation
  15272. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15273. $rm out/* && rmdir out
  15274. cd ..
  15275. rmdir conftest
  15276. $rm conftest*
  15277. fi
  15278. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15279. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15280. hard_links="nottested"
  15281. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15282. # do not overwrite the value of need_locks provided by the user
  15283. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15284. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15285. hard_links=yes
  15286. $rm conftest*
  15287. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15288. touch conftest.a
  15289. ln conftest.a conftest.b 2>&5 || hard_links=no
  15290. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15291. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15292. echo "${ECHO_T}$hard_links" >&6; }
  15293. if test "$hard_links" = no; then
  15294. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15295. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15296. need_locks=warn
  15297. fi
  15298. else
  15299. need_locks=no
  15300. fi
  15301. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15302. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15303. runpath_var=
  15304. allow_undefined_flag_GCJ=
  15305. enable_shared_with_static_runtimes_GCJ=no
  15306. archive_cmds_GCJ=
  15307. archive_expsym_cmds_GCJ=
  15308. old_archive_From_new_cmds_GCJ=
  15309. old_archive_from_expsyms_cmds_GCJ=
  15310. export_dynamic_flag_spec_GCJ=
  15311. whole_archive_flag_spec_GCJ=
  15312. thread_safe_flag_spec_GCJ=
  15313. hardcode_libdir_flag_spec_GCJ=
  15314. hardcode_libdir_flag_spec_ld_GCJ=
  15315. hardcode_libdir_separator_GCJ=
  15316. hardcode_direct_GCJ=no
  15317. hardcode_minus_L_GCJ=no
  15318. hardcode_shlibpath_var_GCJ=unsupported
  15319. link_all_deplibs_GCJ=unknown
  15320. hardcode_automatic_GCJ=no
  15321. module_cmds_GCJ=
  15322. module_expsym_cmds_GCJ=
  15323. always_export_symbols_GCJ=no
  15324. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15325. # include_expsyms should be a list of space-separated symbols to be *always*
  15326. # included in the symbol list
  15327. include_expsyms_GCJ=
  15328. # exclude_expsyms can be an extended regexp of symbols to exclude
  15329. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15330. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15331. # as well as any symbol that contains `d'.
  15332. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15333. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15334. # platforms (ab)use it in PIC code, but their linkers get confused if
  15335. # the symbol is explicitly referenced. Since portable code cannot
  15336. # rely on this symbol name, it's probably fine to never include it in
  15337. # preloaded symbol tables.
  15338. extract_expsyms_cmds=
  15339. # Just being paranoid about ensuring that cc_basename is set.
  15340. for cc_temp in $compiler""; do
  15341. case $cc_temp in
  15342. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15343. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15344. \-*) ;;
  15345. *) break;;
  15346. esac
  15347. done
  15348. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15349. case $host_os in
  15350. cygwin* | mingw* | pw32*)
  15351. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15352. # When not using gcc, we currently assume that we are using
  15353. # Microsoft Visual C++.
  15354. if test "$GCC" != yes; then
  15355. with_gnu_ld=no
  15356. fi
  15357. ;;
  15358. openbsd*)
  15359. with_gnu_ld=no
  15360. ;;
  15361. esac
  15362. ld_shlibs_GCJ=yes
  15363. if test "$with_gnu_ld" = yes; then
  15364. # If archive_cmds runs LD, not CC, wlarc should be empty
  15365. wlarc='${wl}'
  15366. # Set some defaults for GNU ld with shared library support. These
  15367. # are reset later if shared libraries are not supported. Putting them
  15368. # here allows them to be overridden if necessary.
  15369. runpath_var=LD_RUN_PATH
  15370. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15371. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15372. # ancient GNU ld didn't support --whole-archive et. al.
  15373. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15374. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15375. else
  15376. whole_archive_flag_spec_GCJ=
  15377. fi
  15378. supports_anon_versioning=no
  15379. case `$LD -v 2>/dev/null` in
  15380. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15381. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15382. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15383. *\ 2.11.*) ;; # other 2.11 versions
  15384. *) supports_anon_versioning=yes ;;
  15385. esac
  15386. # See if GNU ld supports shared libraries.
  15387. case $host_os in
  15388. aix3* | aix4* | aix5*)
  15389. # On AIX/PPC, the GNU linker is very broken
  15390. if test "$host_cpu" != ia64; then
  15391. ld_shlibs_GCJ=no
  15392. cat <<EOF 1>&2
  15393. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15394. *** to be unable to reliably create shared libraries on AIX.
  15395. *** Therefore, libtool is disabling shared libraries support. If you
  15396. *** really care for shared libraries, you may want to modify your PATH
  15397. *** so that a non-GNU linker is found, and then restart.
  15398. EOF
  15399. fi
  15400. ;;
  15401. amigaos*)
  15402. archive_cmds_GCJ='$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)'
  15403. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15404. hardcode_minus_L_GCJ=yes
  15405. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15406. # that the semantics of dynamic libraries on AmigaOS, at least up
  15407. # to version 4, is to share data among multiple programs linked
  15408. # with the same dynamic library. Since this doesn't match the
  15409. # behavior of shared libraries on other platforms, we can't use
  15410. # them.
  15411. ld_shlibs_GCJ=no
  15412. ;;
  15413. beos*)
  15414. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15415. allow_undefined_flag_GCJ=unsupported
  15416. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15417. # support --undefined. This deserves some investigation. FIXME
  15418. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15419. else
  15420. ld_shlibs_GCJ=no
  15421. fi
  15422. ;;
  15423. cygwin* | mingw* | pw32*)
  15424. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15425. # as there is no search path for DLLs.
  15426. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15427. allow_undefined_flag_GCJ=unsupported
  15428. always_export_symbols_GCJ=no
  15429. enable_shared_with_static_runtimes_GCJ=yes
  15430. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15431. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15432. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15433. # If the export-symbols file already is a .def file (1st line
  15434. # is EXPORTS), use it as is; otherwise, prepend...
  15435. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15436. cp $export_symbols $output_objdir/$soname.def;
  15437. else
  15438. echo EXPORTS > $output_objdir/$soname.def;
  15439. cat $export_symbols >> $output_objdir/$soname.def;
  15440. fi~
  15441. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15442. else
  15443. ld_shlibs_GCJ=no
  15444. fi
  15445. ;;
  15446. linux*)
  15447. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15448. tmp_addflag=
  15449. case $cc_basename,$host_cpu in
  15450. pgcc*) # Portland Group C compiler
  15451. whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15452. tmp_addflag=' $pic_flag'
  15453. ;;
  15454. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  15455. whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15456. tmp_addflag=' $pic_flag -Mnomain' ;;
  15457. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15458. tmp_addflag=' -i_dynamic' ;;
  15459. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15460. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15461. ifc* | ifort*) # Intel Fortran compiler
  15462. tmp_addflag=' -nofor_main' ;;
  15463. esac
  15464. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15465. if test $supports_anon_versioning = yes; then
  15466. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15467. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15468. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15469. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15470. fi
  15471. else
  15472. ld_shlibs_GCJ=no
  15473. fi
  15474. ;;
  15475. netbsd*)
  15476. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15477. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15478. wlarc=
  15479. else
  15480. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15481. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15482. fi
  15483. ;;
  15484. solaris* | sysv5*)
  15485. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15486. ld_shlibs_GCJ=no
  15487. cat <<EOF 1>&2
  15488. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15489. *** create shared libraries on Solaris systems. Therefore, libtool
  15490. *** is disabling shared libraries support. We urge you to upgrade GNU
  15491. *** binutils to release 2.9.1 or newer. Another option is to modify
  15492. *** your PATH or compiler configuration so that the native linker is
  15493. *** used, and then restart.
  15494. EOF
  15495. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15496. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15497. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15498. else
  15499. ld_shlibs_GCJ=no
  15500. fi
  15501. ;;
  15502. sunos4*)
  15503. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15504. wlarc=
  15505. hardcode_direct_GCJ=yes
  15506. hardcode_shlibpath_var_GCJ=no
  15507. ;;
  15508. *)
  15509. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15510. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15511. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15512. else
  15513. ld_shlibs_GCJ=no
  15514. fi
  15515. ;;
  15516. esac
  15517. if test "$ld_shlibs_GCJ" = no; then
  15518. runpath_var=
  15519. hardcode_libdir_flag_spec_GCJ=
  15520. export_dynamic_flag_spec_GCJ=
  15521. whole_archive_flag_spec_GCJ=
  15522. fi
  15523. else
  15524. # PORTME fill in a description of your system's linker (not GNU ld)
  15525. case $host_os in
  15526. aix3*)
  15527. allow_undefined_flag_GCJ=unsupported
  15528. always_export_symbols_GCJ=yes
  15529. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  15530. # Note: this linker hardcodes the directories in LIBPATH if there
  15531. # are no directories specified by -L.
  15532. hardcode_minus_L_GCJ=yes
  15533. if test "$GCC" = yes && test -z "$link_static_flag"; then
  15534. # Neither direct hardcoding nor static linking is supported with a
  15535. # broken collect2.
  15536. hardcode_direct_GCJ=unsupported
  15537. fi
  15538. ;;
  15539. aix4* | aix5*)
  15540. if test "$host_cpu" = ia64; then
  15541. # On IA64, the linker does run time linking by default, so we don't
  15542. # have to do anything special.
  15543. aix_use_runtimelinking=no
  15544. exp_sym_flag='-Bexport'
  15545. no_entry_flag=""
  15546. else
  15547. # If we're using GNU nm, then we don't want the "-C" option.
  15548. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15549. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15550. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15551. else
  15552. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15553. fi
  15554. aix_use_runtimelinking=no
  15555. # Test if we are trying to use run time linking or normal
  15556. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15557. # need to do runtime linking.
  15558. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15559. for ld_flag in $LDFLAGS; do
  15560. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15561. aix_use_runtimelinking=yes
  15562. break
  15563. fi
  15564. done
  15565. esac
  15566. exp_sym_flag='-bexport'
  15567. no_entry_flag='-bnoentry'
  15568. fi
  15569. # When large executables or shared objects are built, AIX ld can
  15570. # have problems creating the table of contents. If linking a library
  15571. # or program results in "error TOC overflow" add -mminimal-toc to
  15572. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15573. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15574. archive_cmds_GCJ=''
  15575. hardcode_direct_GCJ=yes
  15576. hardcode_libdir_separator_GCJ=':'
  15577. link_all_deplibs_GCJ=yes
  15578. if test "$GCC" = yes; then
  15579. case $host_os in aix4.[012]|aix4.[012].*)
  15580. # We only want to do this on AIX 4.2 and lower, the check
  15581. # below for broken collect2 doesn't work under 4.3+
  15582. collect2name=`${CC} -print-prog-name=collect2`
  15583. if test -f "$collect2name" && \
  15584. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15585. then
  15586. # We have reworked collect2
  15587. hardcode_direct_GCJ=yes
  15588. else
  15589. # We have old collect2
  15590. hardcode_direct_GCJ=unsupported
  15591. # It fails to find uninstalled libraries when the uninstalled
  15592. # path is not listed in the libpath. Setting hardcode_minus_L
  15593. # to unsupported forces relinking
  15594. hardcode_minus_L_GCJ=yes
  15595. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15596. hardcode_libdir_separator_GCJ=
  15597. fi
  15598. esac
  15599. shared_flag='-shared'
  15600. if test "$aix_use_runtimelinking" = yes; then
  15601. shared_flag="$shared_flag "'${wl}-G'
  15602. fi
  15603. else
  15604. # not using gcc
  15605. if test "$host_cpu" = ia64; then
  15606. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15607. # chokes on -Wl,-G. The following line is correct:
  15608. shared_flag='-G'
  15609. else
  15610. if test "$aix_use_runtimelinking" = yes; then
  15611. shared_flag='${wl}-G'
  15612. else
  15613. shared_flag='${wl}-bM:SRE'
  15614. fi
  15615. fi
  15616. fi
  15617. # It seems that -bexpall does not export symbols beginning with
  15618. # underscore (_), so it is better to generate a list of symbols to export.
  15619. always_export_symbols_GCJ=yes
  15620. if test "$aix_use_runtimelinking" = yes; then
  15621. # Warning - without using the other runtime loading flags (-brtl),
  15622. # -berok will link without error, but may produce a broken library.
  15623. allow_undefined_flag_GCJ='-berok'
  15624. # Determine the default libpath from the value encoded in an empty executable.
  15625. cat >conftest.$ac_ext <<_ACEOF
  15626. /* confdefs.h. */
  15627. _ACEOF
  15628. cat confdefs.h >>conftest.$ac_ext
  15629. cat >>conftest.$ac_ext <<_ACEOF
  15630. /* end confdefs.h. */
  15631. int
  15632. main ()
  15633. {
  15634. ;
  15635. return 0;
  15636. }
  15637. _ACEOF
  15638. rm -f conftest.$ac_objext conftest$ac_exeext
  15639. if { (ac_try="$ac_link"
  15640. case "(($ac_try" in
  15641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15642. *) ac_try_echo=$ac_try;;
  15643. esac
  15644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15645. (eval "$ac_link") 2>conftest.er1
  15646. ac_status=$?
  15647. grep -v '^ *+' conftest.er1 >conftest.err
  15648. rm -f conftest.er1
  15649. cat conftest.err >&5
  15650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15651. (exit $ac_status); } && {
  15652. test -z "$ac_c_werror_flag" ||
  15653. test ! -s conftest.err
  15654. } && test -s conftest$ac_exeext &&
  15655. $as_test_x conftest$ac_exeext; then
  15656. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15657. }'`
  15658. # Check for a 64-bit object if we didn't find anything.
  15659. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15660. }'`; fi
  15661. else
  15662. echo "$as_me: failed program was:" >&5
  15663. sed 's/^/| /' conftest.$ac_ext >&5
  15664. fi
  15665. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15666. conftest$ac_exeext conftest.$ac_ext
  15667. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15668. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15669. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15670. else
  15671. if test "$host_cpu" = ia64; then
  15672. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15673. allow_undefined_flag_GCJ="-z nodefs"
  15674. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  15675. else
  15676. # Determine the default libpath from the value encoded in an empty executable.
  15677. cat >conftest.$ac_ext <<_ACEOF
  15678. /* confdefs.h. */
  15679. _ACEOF
  15680. cat confdefs.h >>conftest.$ac_ext
  15681. cat >>conftest.$ac_ext <<_ACEOF
  15682. /* end confdefs.h. */
  15683. int
  15684. main ()
  15685. {
  15686. ;
  15687. return 0;
  15688. }
  15689. _ACEOF
  15690. rm -f conftest.$ac_objext conftest$ac_exeext
  15691. if { (ac_try="$ac_link"
  15692. case "(($ac_try" in
  15693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15694. *) ac_try_echo=$ac_try;;
  15695. esac
  15696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15697. (eval "$ac_link") 2>conftest.er1
  15698. ac_status=$?
  15699. grep -v '^ *+' conftest.er1 >conftest.err
  15700. rm -f conftest.er1
  15701. cat conftest.err >&5
  15702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15703. (exit $ac_status); } && {
  15704. test -z "$ac_c_werror_flag" ||
  15705. test ! -s conftest.err
  15706. } && test -s conftest$ac_exeext &&
  15707. $as_test_x conftest$ac_exeext; then
  15708. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15709. }'`
  15710. # Check for a 64-bit object if we didn't find anything.
  15711. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15712. }'`; fi
  15713. else
  15714. echo "$as_me: failed program was:" >&5
  15715. sed 's/^/| /' conftest.$ac_ext >&5
  15716. fi
  15717. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15718. conftest$ac_exeext conftest.$ac_ext
  15719. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15720. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15721. # Warning - without using the other run time loading flags,
  15722. # -berok will link without error, but may produce a broken library.
  15723. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15724. allow_undefined_flag_GCJ=' ${wl}-berok'
  15725. # -bexpall does not export symbols beginning with underscore (_)
  15726. always_export_symbols_GCJ=yes
  15727. # Exported symbols can be pulled into shared objects from archives
  15728. whole_archive_flag_spec_GCJ=' '
  15729. archive_cmds_need_lc_GCJ=yes
  15730. # This is similar to how AIX traditionally builds it's shared libraries.
  15731. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  15732. fi
  15733. fi
  15734. ;;
  15735. amigaos*)
  15736. archive_cmds_GCJ='$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)'
  15737. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15738. hardcode_minus_L_GCJ=yes
  15739. # see comment about different semantics on the GNU ld section
  15740. ld_shlibs_GCJ=no
  15741. ;;
  15742. bsdi[45]*)
  15743. export_dynamic_flag_spec_GCJ=-rdynamic
  15744. ;;
  15745. cygwin* | mingw* | pw32*)
  15746. # When not using gcc, we currently assume that we are using
  15747. # Microsoft Visual C++.
  15748. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15749. # no search path for DLLs.
  15750. hardcode_libdir_flag_spec_GCJ=' '
  15751. allow_undefined_flag_GCJ=unsupported
  15752. # Tell ltmain to make .lib files, not .a files.
  15753. libext=lib
  15754. # Tell ltmain to make .dll files, not .so files.
  15755. shrext_cmds=".dll"
  15756. # FIXME: Setting linknames here is a bad hack.
  15757. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15758. # The linker will automatically build a .lib file if we build a DLL.
  15759. old_archive_From_new_cmds_GCJ='true'
  15760. # FIXME: Should let the user specify the lib program.
  15761. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15762. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15763. enable_shared_with_static_runtimes_GCJ=yes
  15764. ;;
  15765. darwin* | rhapsody*)
  15766. case "$host_os" in
  15767. rhapsody* | darwin1.[012])
  15768. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15769. ;;
  15770. *) # Darwin 1.3 on
  15771. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15772. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15773. else
  15774. case ${MACOSX_DEPLOYMENT_TARGET} in
  15775. 10.[012])
  15776. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15777. ;;
  15778. 10.*)
  15779. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15780. ;;
  15781. esac
  15782. fi
  15783. ;;
  15784. esac
  15785. archive_cmds_need_lc_GCJ=no
  15786. hardcode_direct_GCJ=no
  15787. hardcode_automatic_GCJ=yes
  15788. hardcode_shlibpath_var_GCJ=unsupported
  15789. whole_archive_flag_spec_GCJ=''
  15790. link_all_deplibs_GCJ=yes
  15791. if test "$GCC" = yes ; then
  15792. output_verbose_link_cmd='echo'
  15793. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15794. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15795. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15796. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15797. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15798. else
  15799. case $cc_basename in
  15800. xlc*)
  15801. output_verbose_link_cmd='echo'
  15802. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15803. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15804. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15805. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15806. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15807. ;;
  15808. *)
  15809. ld_shlibs_GCJ=no
  15810. ;;
  15811. esac
  15812. fi
  15813. ;;
  15814. dgux*)
  15815. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15816. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15817. hardcode_shlibpath_var_GCJ=no
  15818. ;;
  15819. freebsd1*)
  15820. ld_shlibs_GCJ=no
  15821. ;;
  15822. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15823. # support. Future versions do this automatically, but an explicit c++rt0.o
  15824. # does not break anything, and helps significantly (at the cost of a little
  15825. # extra space).
  15826. freebsd2.2*)
  15827. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15828. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15829. hardcode_direct_GCJ=yes
  15830. hardcode_shlibpath_var_GCJ=no
  15831. ;;
  15832. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15833. freebsd2*)
  15834. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15835. hardcode_direct_GCJ=yes
  15836. hardcode_minus_L_GCJ=yes
  15837. hardcode_shlibpath_var_GCJ=no
  15838. ;;
  15839. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15840. freebsd* | kfreebsd*-gnu | dragonfly*)
  15841. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15842. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15843. hardcode_direct_GCJ=yes
  15844. hardcode_shlibpath_var_GCJ=no
  15845. ;;
  15846. hpux9*)
  15847. if test "$GCC" = yes; then
  15848. archive_cmds_GCJ='$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'
  15849. else
  15850. archive_cmds_GCJ='$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'
  15851. fi
  15852. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15853. hardcode_libdir_separator_GCJ=:
  15854. hardcode_direct_GCJ=yes
  15855. # hardcode_minus_L: Not really in the search PATH,
  15856. # but as the default location of the library.
  15857. hardcode_minus_L_GCJ=yes
  15858. export_dynamic_flag_spec_GCJ='${wl}-E'
  15859. ;;
  15860. hpux10* | hpux11*)
  15861. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15862. case "$host_cpu" in
  15863. hppa*64*|ia64*)
  15864. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15865. ;;
  15866. *)
  15867. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15868. ;;
  15869. esac
  15870. else
  15871. case "$host_cpu" in
  15872. hppa*64*|ia64*)
  15873. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  15874. ;;
  15875. *)
  15876. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15877. ;;
  15878. esac
  15879. fi
  15880. if test "$with_gnu_ld" = no; then
  15881. case "$host_cpu" in
  15882. hppa*64*)
  15883. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15884. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15885. hardcode_libdir_separator_GCJ=:
  15886. hardcode_direct_GCJ=no
  15887. hardcode_shlibpath_var_GCJ=no
  15888. ;;
  15889. ia64*)
  15890. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15891. hardcode_direct_GCJ=no
  15892. hardcode_shlibpath_var_GCJ=no
  15893. # hardcode_minus_L: Not really in the search PATH,
  15894. # but as the default location of the library.
  15895. hardcode_minus_L_GCJ=yes
  15896. ;;
  15897. *)
  15898. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15899. hardcode_libdir_separator_GCJ=:
  15900. hardcode_direct_GCJ=yes
  15901. export_dynamic_flag_spec_GCJ='${wl}-E'
  15902. # hardcode_minus_L: Not really in the search PATH,
  15903. # but as the default location of the library.
  15904. hardcode_minus_L_GCJ=yes
  15905. ;;
  15906. esac
  15907. fi
  15908. ;;
  15909. irix5* | irix6* | nonstopux*)
  15910. if test "$GCC" = yes; then
  15911. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15912. else
  15913. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15914. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15915. fi
  15916. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15917. hardcode_libdir_separator_GCJ=:
  15918. link_all_deplibs_GCJ=yes
  15919. ;;
  15920. netbsd*)
  15921. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15922. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15923. else
  15924. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15925. fi
  15926. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15927. hardcode_direct_GCJ=yes
  15928. hardcode_shlibpath_var_GCJ=no
  15929. ;;
  15930. newsos6)
  15931. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15932. hardcode_direct_GCJ=yes
  15933. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15934. hardcode_libdir_separator_GCJ=:
  15935. hardcode_shlibpath_var_GCJ=no
  15936. ;;
  15937. openbsd*)
  15938. hardcode_direct_GCJ=yes
  15939. hardcode_shlibpath_var_GCJ=no
  15940. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15941. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15942. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15943. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15944. export_dynamic_flag_spec_GCJ='${wl}-E'
  15945. else
  15946. case $host_os in
  15947. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15948. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15949. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15950. ;;
  15951. *)
  15952. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15953. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15954. ;;
  15955. esac
  15956. fi
  15957. ;;
  15958. os2*)
  15959. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15960. hardcode_minus_L_GCJ=yes
  15961. allow_undefined_flag_GCJ=unsupported
  15962. archive_cmds_GCJ='$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'
  15963. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15964. ;;
  15965. osf3*)
  15966. if test "$GCC" = yes; then
  15967. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15968. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15969. else
  15970. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15971. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15972. fi
  15973. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15974. hardcode_libdir_separator_GCJ=:
  15975. ;;
  15976. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15977. if test "$GCC" = yes; then
  15978. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15979. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15980. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15981. else
  15982. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15983. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15984. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15985. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  15986. # Both c and cxx compiler support -rpath directly
  15987. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15988. fi
  15989. hardcode_libdir_separator_GCJ=:
  15990. ;;
  15991. sco3.2v5*)
  15992. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15993. hardcode_shlibpath_var_GCJ=no
  15994. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15995. runpath_var=LD_RUN_PATH
  15996. hardcode_runpath_var=yes
  15997. ;;
  15998. solaris*)
  15999. no_undefined_flag_GCJ=' -z text'
  16000. if test "$GCC" = yes; then
  16001. wlarc='${wl}'
  16002. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16003. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16004. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16005. else
  16006. wlarc=''
  16007. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16008. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16009. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16010. fi
  16011. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16012. hardcode_shlibpath_var_GCJ=no
  16013. case $host_os in
  16014. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16015. *)
  16016. # The compiler driver will combine linker options so we
  16017. # cannot just pass the convience library names through
  16018. # without $wl, iff we do not link with $LD.
  16019. # Luckily, gcc supports the same syntax we need for Sun Studio.
  16020. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16021. case $wlarc in
  16022. '')
  16023. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  16024. *)
  16025. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  16026. esac ;;
  16027. esac
  16028. link_all_deplibs_GCJ=yes
  16029. ;;
  16030. sunos4*)
  16031. if test "x$host_vendor" = xsequent; then
  16032. # Use $CC to link under sequent, because it throws in some extra .o
  16033. # files that make .init and .fini sections work.
  16034. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16035. else
  16036. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16037. fi
  16038. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16039. hardcode_direct_GCJ=yes
  16040. hardcode_minus_L_GCJ=yes
  16041. hardcode_shlibpath_var_GCJ=no
  16042. ;;
  16043. sysv4)
  16044. case $host_vendor in
  16045. sni)
  16046. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16047. hardcode_direct_GCJ=yes # is this really true???
  16048. ;;
  16049. siemens)
  16050. ## LD is ld it makes a PLAMLIB
  16051. ## CC just makes a GrossModule.
  16052. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16053. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16054. hardcode_direct_GCJ=no
  16055. ;;
  16056. motorola)
  16057. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16058. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16059. ;;
  16060. esac
  16061. runpath_var='LD_RUN_PATH'
  16062. hardcode_shlibpath_var_GCJ=no
  16063. ;;
  16064. sysv4.3*)
  16065. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16066. hardcode_shlibpath_var_GCJ=no
  16067. export_dynamic_flag_spec_GCJ='-Bexport'
  16068. ;;
  16069. sysv4*MP*)
  16070. if test -d /usr/nec; then
  16071. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16072. hardcode_shlibpath_var_GCJ=no
  16073. runpath_var=LD_RUN_PATH
  16074. hardcode_runpath_var=yes
  16075. ld_shlibs_GCJ=yes
  16076. fi
  16077. ;;
  16078. sysv4.2uw2*)
  16079. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16080. hardcode_direct_GCJ=yes
  16081. hardcode_minus_L_GCJ=no
  16082. hardcode_shlibpath_var_GCJ=no
  16083. hardcode_runpath_var=yes
  16084. runpath_var=LD_RUN_PATH
  16085. ;;
  16086. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  16087. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  16088. if test "$GCC" = yes; then
  16089. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16090. else
  16091. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16092. fi
  16093. runpath_var='LD_RUN_PATH'
  16094. hardcode_shlibpath_var_GCJ=no
  16095. ;;
  16096. sysv5*)
  16097. no_undefined_flag_GCJ=' -z text'
  16098. # $CC -shared without GNU ld will not create a library from C++
  16099. # object files and a static libstdc++, better avoid it by now
  16100. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16101. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16102. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16103. hardcode_libdir_flag_spec_GCJ=
  16104. hardcode_shlibpath_var_GCJ=no
  16105. runpath_var='LD_RUN_PATH'
  16106. ;;
  16107. uts4*)
  16108. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16109. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16110. hardcode_shlibpath_var_GCJ=no
  16111. ;;
  16112. *)
  16113. ld_shlibs_GCJ=no
  16114. ;;
  16115. esac
  16116. fi
  16117. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16118. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16119. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16120. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16121. if test "$GCC" = yes; then
  16122. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16123. fi
  16124. #
  16125. # Do we need to explicitly link libc?
  16126. #
  16127. case "x$archive_cmds_need_lc_GCJ" in
  16128. x|xyes)
  16129. # Assume -lc should be added
  16130. archive_cmds_need_lc_GCJ=yes
  16131. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16132. case $archive_cmds_GCJ in
  16133. *'~'*)
  16134. # FIXME: we may have to deal with multi-command sequences.
  16135. ;;
  16136. '$CC '*)
  16137. # Test whether the compiler implicitly links with -lc since on some
  16138. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16139. # to ld, don't add -lc before -lgcc.
  16140. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16141. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16142. $rm conftest*
  16143. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16144. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16145. (eval $ac_compile) 2>&5
  16146. ac_status=$?
  16147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16148. (exit $ac_status); } 2>conftest.err; then
  16149. soname=conftest
  16150. lib=conftest
  16151. libobjs=conftest.$ac_objext
  16152. deplibs=
  16153. wl=$lt_prog_compiler_wl_GCJ
  16154. compiler_flags=-v
  16155. linker_flags=-v
  16156. verstring=
  16157. output_objdir=.
  16158. libname=conftest
  16159. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16160. allow_undefined_flag_GCJ=
  16161. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16162. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16163. ac_status=$?
  16164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16165. (exit $ac_status); }
  16166. then
  16167. archive_cmds_need_lc_GCJ=no
  16168. else
  16169. archive_cmds_need_lc_GCJ=yes
  16170. fi
  16171. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16172. else
  16173. cat conftest.err 1>&5
  16174. fi
  16175. $rm conftest*
  16176. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16177. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16178. ;;
  16179. esac
  16180. fi
  16181. ;;
  16182. esac
  16183. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16184. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16185. library_names_spec=
  16186. libname_spec='lib$name'
  16187. soname_spec=
  16188. shrext_cmds=".so"
  16189. postinstall_cmds=
  16190. postuninstall_cmds=
  16191. finish_cmds=
  16192. finish_eval=
  16193. shlibpath_var=
  16194. shlibpath_overrides_runpath=unknown
  16195. version_type=none
  16196. dynamic_linker="$host_os ld.so"
  16197. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16198. if test "$GCC" = yes; then
  16199. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16200. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16201. # if the path contains ";" then we assume it to be the separator
  16202. # otherwise default to the standard path separator (i.e. ":") - it is
  16203. # assumed that no part of a normal pathname contains ";" but that should
  16204. # okay in the real world where ";" in dirpaths is itself problematic.
  16205. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16206. else
  16207. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16208. fi
  16209. else
  16210. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16211. fi
  16212. need_lib_prefix=unknown
  16213. hardcode_into_libs=no
  16214. # when you set need_version to no, make sure it does not cause -set_version
  16215. # flags to be left without arguments
  16216. need_version=unknown
  16217. case $host_os in
  16218. aix3*)
  16219. version_type=linux
  16220. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16221. shlibpath_var=LIBPATH
  16222. # AIX 3 has no versioning support, so we append a major version to the name.
  16223. soname_spec='${libname}${release}${shared_ext}$major'
  16224. ;;
  16225. aix4* | aix5*)
  16226. version_type=linux
  16227. need_lib_prefix=no
  16228. need_version=no
  16229. hardcode_into_libs=yes
  16230. if test "$host_cpu" = ia64; then
  16231. # AIX 5 supports IA64
  16232. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16233. shlibpath_var=LD_LIBRARY_PATH
  16234. else
  16235. # With GCC up to 2.95.x, collect2 would create an import file
  16236. # for dependence libraries. The import file would start with
  16237. # the line `#! .'. This would cause the generated library to
  16238. # depend on `.', always an invalid library. This was fixed in
  16239. # development snapshots of GCC prior to 3.0.
  16240. case $host_os in
  16241. aix4 | aix4.[01] | aix4.[01].*)
  16242. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16243. echo ' yes '
  16244. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16245. :
  16246. else
  16247. can_build_shared=no
  16248. fi
  16249. ;;
  16250. esac
  16251. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16252. # soname into executable. Probably we can add versioning support to
  16253. # collect2, so additional links can be useful in future.
  16254. if test "$aix_use_runtimelinking" = yes; then
  16255. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16256. # instead of lib<name>.a to let people know that these are not
  16257. # typical AIX shared libraries.
  16258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16259. else
  16260. # We preserve .a as extension for shared libraries through AIX4.2
  16261. # and later when we are not doing run time linking.
  16262. library_names_spec='${libname}${release}.a $libname.a'
  16263. soname_spec='${libname}${release}${shared_ext}$major'
  16264. fi
  16265. shlibpath_var=LIBPATH
  16266. fi
  16267. ;;
  16268. amigaos*)
  16269. library_names_spec='$libname.ixlibrary $libname.a'
  16270. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16271. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  16272. ;;
  16273. beos*)
  16274. library_names_spec='${libname}${shared_ext}'
  16275. dynamic_linker="$host_os ld.so"
  16276. shlibpath_var=LIBRARY_PATH
  16277. ;;
  16278. bsdi[45]*)
  16279. version_type=linux
  16280. need_version=no
  16281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16282. soname_spec='${libname}${release}${shared_ext}$major'
  16283. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16284. shlibpath_var=LD_LIBRARY_PATH
  16285. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16286. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16287. # the default ld.so.conf also contains /usr/contrib/lib and
  16288. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16289. # libtool to hard-code these into programs
  16290. ;;
  16291. cygwin* | mingw* | pw32*)
  16292. version_type=windows
  16293. shrext_cmds=".dll"
  16294. need_version=no
  16295. need_lib_prefix=no
  16296. case $GCC,$host_os in
  16297. yes,cygwin* | yes,mingw* | yes,pw32*)
  16298. library_names_spec='$libname.dll.a'
  16299. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16300. postinstall_cmds='base_file=`basename \${file}`~
  16301. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16302. dldir=$destdir/`dirname \$dlpath`~
  16303. test -d \$dldir || mkdir -p \$dldir~
  16304. $install_prog $dir/$dlname \$dldir/$dlname'
  16305. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16306. dlpath=$dir/\$dldll~
  16307. $rm \$dlpath'
  16308. shlibpath_overrides_runpath=yes
  16309. case $host_os in
  16310. cygwin*)
  16311. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16312. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16313. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16314. ;;
  16315. mingw*)
  16316. # MinGW DLLs use traditional 'lib' prefix
  16317. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16318. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16319. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16320. # It is most probably a Windows format PATH printed by
  16321. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16322. # path with ; separators, and with drive letters. We can handle the
  16323. # drive letters (cygwin fileutils understands them), so leave them,
  16324. # especially as we might pass files found there to a mingw objdump,
  16325. # which wouldn't understand a cygwinified path. Ahh.
  16326. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16327. else
  16328. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16329. fi
  16330. ;;
  16331. pw32*)
  16332. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16333. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16334. ;;
  16335. esac
  16336. ;;
  16337. *)
  16338. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16339. ;;
  16340. esac
  16341. dynamic_linker='Win32 ld.exe'
  16342. # FIXME: first we should search . and the directory the executable is in
  16343. shlibpath_var=PATH
  16344. ;;
  16345. darwin* | rhapsody*)
  16346. dynamic_linker="$host_os dyld"
  16347. version_type=darwin
  16348. need_lib_prefix=no
  16349. need_version=no
  16350. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16351. soname_spec='${libname}${release}${major}$shared_ext'
  16352. shlibpath_overrides_runpath=yes
  16353. shlibpath_var=DYLD_LIBRARY_PATH
  16354. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  16355. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16356. if test "$GCC" = yes; then
  16357. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  16358. else
  16359. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16360. fi
  16361. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16362. ;;
  16363. dgux*)
  16364. version_type=linux
  16365. need_lib_prefix=no
  16366. need_version=no
  16367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16368. soname_spec='${libname}${release}${shared_ext}$major'
  16369. shlibpath_var=LD_LIBRARY_PATH
  16370. ;;
  16371. freebsd1*)
  16372. dynamic_linker=no
  16373. ;;
  16374. kfreebsd*-gnu)
  16375. version_type=linux
  16376. need_lib_prefix=no
  16377. need_version=no
  16378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16379. soname_spec='${libname}${release}${shared_ext}$major'
  16380. shlibpath_var=LD_LIBRARY_PATH
  16381. shlibpath_overrides_runpath=no
  16382. hardcode_into_libs=yes
  16383. dynamic_linker='GNU ld.so'
  16384. ;;
  16385. freebsd* | dragonfly*)
  16386. # DragonFly does not have aout. When/if they implement a new
  16387. # versioning mechanism, adjust this.
  16388. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  16389. version_type=freebsd-$objformat
  16390. case $version_type in
  16391. freebsd-elf*)
  16392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16393. need_version=no
  16394. need_lib_prefix=no
  16395. ;;
  16396. freebsd-*)
  16397. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16398. need_version=yes
  16399. ;;
  16400. esac
  16401. shlibpath_var=LD_LIBRARY_PATH
  16402. case $host_os in
  16403. freebsd2*)
  16404. shlibpath_overrides_runpath=yes
  16405. ;;
  16406. freebsd3.[01]* | freebsdelf3.[01]*)
  16407. shlibpath_overrides_runpath=yes
  16408. hardcode_into_libs=yes
  16409. ;;
  16410. *) # from 3.2 on
  16411. shlibpath_overrides_runpath=no
  16412. hardcode_into_libs=yes
  16413. ;;
  16414. esac
  16415. ;;
  16416. gnu*)
  16417. version_type=linux
  16418. need_lib_prefix=no
  16419. need_version=no
  16420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16421. soname_spec='${libname}${release}${shared_ext}$major'
  16422. shlibpath_var=LD_LIBRARY_PATH
  16423. hardcode_into_libs=yes
  16424. ;;
  16425. hpux9* | hpux10* | hpux11*)
  16426. # Give a soname corresponding to the major version so that dld.sl refuses to
  16427. # link against other versions.
  16428. version_type=sunos
  16429. need_lib_prefix=no
  16430. need_version=no
  16431. case "$host_cpu" in
  16432. ia64*)
  16433. shrext_cmds='.so'
  16434. hardcode_into_libs=yes
  16435. dynamic_linker="$host_os dld.so"
  16436. shlibpath_var=LD_LIBRARY_PATH
  16437. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16439. soname_spec='${libname}${release}${shared_ext}$major'
  16440. if test "X$HPUX_IA64_MODE" = X32; then
  16441. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16442. else
  16443. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16444. fi
  16445. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16446. ;;
  16447. hppa*64*)
  16448. shrext_cmds='.sl'
  16449. hardcode_into_libs=yes
  16450. dynamic_linker="$host_os dld.sl"
  16451. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16452. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16454. soname_spec='${libname}${release}${shared_ext}$major'
  16455. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16456. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16457. ;;
  16458. *)
  16459. shrext_cmds='.sl'
  16460. dynamic_linker="$host_os dld.sl"
  16461. shlibpath_var=SHLIB_PATH
  16462. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16464. soname_spec='${libname}${release}${shared_ext}$major'
  16465. ;;
  16466. esac
  16467. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16468. postinstall_cmds='chmod 555 $lib'
  16469. ;;
  16470. irix5* | irix6* | nonstopux*)
  16471. case $host_os in
  16472. nonstopux*) version_type=nonstopux ;;
  16473. *)
  16474. if test "$lt_cv_prog_gnu_ld" = yes; then
  16475. version_type=linux
  16476. else
  16477. version_type=irix
  16478. fi ;;
  16479. esac
  16480. need_lib_prefix=no
  16481. need_version=no
  16482. soname_spec='${libname}${release}${shared_ext}$major'
  16483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16484. case $host_os in
  16485. irix5* | nonstopux*)
  16486. libsuff= shlibsuff=
  16487. ;;
  16488. *)
  16489. case $LD in # libtool.m4 will add one of these switches to LD
  16490. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16491. libsuff= shlibsuff= libmagic=32-bit;;
  16492. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16493. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16494. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16495. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16496. *) libsuff= shlibsuff= libmagic=never-match;;
  16497. esac
  16498. ;;
  16499. esac
  16500. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16501. shlibpath_overrides_runpath=no
  16502. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16503. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16504. hardcode_into_libs=yes
  16505. ;;
  16506. # No shared lib support for Linux oldld, aout, or coff.
  16507. linux*oldld* | linux*aout* | linux*coff*)
  16508. dynamic_linker=no
  16509. ;;
  16510. # This must be Linux ELF.
  16511. linux*)
  16512. version_type=linux
  16513. need_lib_prefix=no
  16514. need_version=no
  16515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16516. soname_spec='${libname}${release}${shared_ext}$major'
  16517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16518. shlibpath_var=LD_LIBRARY_PATH
  16519. shlibpath_overrides_runpath=no
  16520. # This implies no fast_install, which is unacceptable.
  16521. # Some rework will be needed to allow for fast_install
  16522. # before this can be enabled.
  16523. hardcode_into_libs=yes
  16524. # Append ld.so.conf contents to the search path
  16525. if test -f /etc/ld.so.conf; then
  16526. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16527. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16528. fi
  16529. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16530. # powerpc, because MkLinux only supported shared libraries with the
  16531. # GNU dynamic linker. Since this was broken with cross compilers,
  16532. # most powerpc-linux boxes support dynamic linking these days and
  16533. # people can always --disable-shared, the test was removed, and we
  16534. # assume the GNU/Linux dynamic linker is in use.
  16535. dynamic_linker='GNU/Linux ld.so'
  16536. ;;
  16537. knetbsd*-gnu)
  16538. version_type=linux
  16539. need_lib_prefix=no
  16540. need_version=no
  16541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16542. soname_spec='${libname}${release}${shared_ext}$major'
  16543. shlibpath_var=LD_LIBRARY_PATH
  16544. shlibpath_overrides_runpath=no
  16545. hardcode_into_libs=yes
  16546. dynamic_linker='GNU ld.so'
  16547. ;;
  16548. netbsd*)
  16549. version_type=sunos
  16550. need_lib_prefix=no
  16551. need_version=no
  16552. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16554. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16555. dynamic_linker='NetBSD (a.out) ld.so'
  16556. else
  16557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16558. soname_spec='${libname}${release}${shared_ext}$major'
  16559. dynamic_linker='NetBSD ld.elf_so'
  16560. fi
  16561. shlibpath_var=LD_LIBRARY_PATH
  16562. shlibpath_overrides_runpath=yes
  16563. hardcode_into_libs=yes
  16564. ;;
  16565. newsos6)
  16566. version_type=linux
  16567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16568. shlibpath_var=LD_LIBRARY_PATH
  16569. shlibpath_overrides_runpath=yes
  16570. ;;
  16571. nto-qnx*)
  16572. version_type=linux
  16573. need_lib_prefix=no
  16574. need_version=no
  16575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16576. soname_spec='${libname}${release}${shared_ext}$major'
  16577. shlibpath_var=LD_LIBRARY_PATH
  16578. shlibpath_overrides_runpath=yes
  16579. ;;
  16580. openbsd*)
  16581. version_type=sunos
  16582. need_lib_prefix=no
  16583. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16584. case $host_os in
  16585. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16586. *) need_version=no ;;
  16587. esac
  16588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16589. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16590. shlibpath_var=LD_LIBRARY_PATH
  16591. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16592. case $host_os in
  16593. openbsd2.[89] | openbsd2.[89].*)
  16594. shlibpath_overrides_runpath=no
  16595. ;;
  16596. *)
  16597. shlibpath_overrides_runpath=yes
  16598. ;;
  16599. esac
  16600. else
  16601. shlibpath_overrides_runpath=yes
  16602. fi
  16603. ;;
  16604. os2*)
  16605. libname_spec='$name'
  16606. shrext_cmds=".dll"
  16607. need_lib_prefix=no
  16608. library_names_spec='$libname${shared_ext} $libname.a'
  16609. dynamic_linker='OS/2 ld.exe'
  16610. shlibpath_var=LIBPATH
  16611. ;;
  16612. osf3* | osf4* | osf5*)
  16613. version_type=osf
  16614. need_lib_prefix=no
  16615. need_version=no
  16616. soname_spec='${libname}${release}${shared_ext}$major'
  16617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16618. shlibpath_var=LD_LIBRARY_PATH
  16619. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16620. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16621. ;;
  16622. sco3.2v5*)
  16623. version_type=osf
  16624. soname_spec='${libname}${release}${shared_ext}$major'
  16625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16626. shlibpath_var=LD_LIBRARY_PATH
  16627. ;;
  16628. solaris*)
  16629. version_type=linux
  16630. need_lib_prefix=no
  16631. need_version=no
  16632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16633. soname_spec='${libname}${release}${shared_ext}$major'
  16634. shlibpath_var=LD_LIBRARY_PATH
  16635. shlibpath_overrides_runpath=yes
  16636. hardcode_into_libs=yes
  16637. # ldd complains unless libraries are executable
  16638. postinstall_cmds='chmod +x $lib'
  16639. ;;
  16640. sunos4*)
  16641. version_type=sunos
  16642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16643. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16644. shlibpath_var=LD_LIBRARY_PATH
  16645. shlibpath_overrides_runpath=yes
  16646. if test "$with_gnu_ld" = yes; then
  16647. need_lib_prefix=no
  16648. fi
  16649. need_version=yes
  16650. ;;
  16651. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16652. version_type=linux
  16653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16654. soname_spec='${libname}${release}${shared_ext}$major'
  16655. shlibpath_var=LD_LIBRARY_PATH
  16656. case $host_vendor in
  16657. sni)
  16658. shlibpath_overrides_runpath=no
  16659. need_lib_prefix=no
  16660. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16661. runpath_var=LD_RUN_PATH
  16662. ;;
  16663. siemens)
  16664. need_lib_prefix=no
  16665. ;;
  16666. motorola)
  16667. need_lib_prefix=no
  16668. need_version=no
  16669. shlibpath_overrides_runpath=no
  16670. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16671. ;;
  16672. esac
  16673. ;;
  16674. sysv4*MP*)
  16675. if test -d /usr/nec ;then
  16676. version_type=linux
  16677. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16678. soname_spec='$libname${shared_ext}.$major'
  16679. shlibpath_var=LD_LIBRARY_PATH
  16680. fi
  16681. ;;
  16682. uts4*)
  16683. version_type=linux
  16684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16685. soname_spec='${libname}${release}${shared_ext}$major'
  16686. shlibpath_var=LD_LIBRARY_PATH
  16687. ;;
  16688. *)
  16689. dynamic_linker=no
  16690. ;;
  16691. esac
  16692. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16693. echo "${ECHO_T}$dynamic_linker" >&6; }
  16694. test "$dynamic_linker" = no && can_build_shared=no
  16695. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16696. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16697. hardcode_action_GCJ=
  16698. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16699. test -n "$runpath_var_GCJ" || \
  16700. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16701. # We can hardcode non-existant directories.
  16702. if test "$hardcode_direct_GCJ" != no &&
  16703. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16704. # have to relink, otherwise we might link with an installed library
  16705. # when we should be linking with a yet-to-be-installed one
  16706. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16707. test "$hardcode_minus_L_GCJ" != no; then
  16708. # Linking always hardcodes the temporary library directory.
  16709. hardcode_action_GCJ=relink
  16710. else
  16711. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16712. hardcode_action_GCJ=immediate
  16713. fi
  16714. else
  16715. # We cannot hardcode anything, or else we can only hardcode existing
  16716. # directories.
  16717. hardcode_action_GCJ=unsupported
  16718. fi
  16719. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16720. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16721. if test "$hardcode_action_GCJ" = relink; then
  16722. # Fast installation is not supported
  16723. enable_fast_install=no
  16724. elif test "$shlibpath_overrides_runpath" = yes ||
  16725. test "$enable_shared" = no; then
  16726. # Fast installation is not necessary
  16727. enable_fast_install=needless
  16728. fi
  16729. striplib=
  16730. old_striplib=
  16731. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16732. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  16733. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16734. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16735. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16736. { echo "$as_me:$LINENO: result: yes" >&5
  16737. echo "${ECHO_T}yes" >&6; }
  16738. else
  16739. # FIXME - insert some real tests, host_os isn't really good enough
  16740. case $host_os in
  16741. darwin*)
  16742. if test -n "$STRIP" ; then
  16743. striplib="$STRIP -x"
  16744. { echo "$as_me:$LINENO: result: yes" >&5
  16745. echo "${ECHO_T}yes" >&6; }
  16746. else
  16747. { echo "$as_me:$LINENO: result: no" >&5
  16748. echo "${ECHO_T}no" >&6; }
  16749. fi
  16750. ;;
  16751. *)
  16752. { echo "$as_me:$LINENO: result: no" >&5
  16753. echo "${ECHO_T}no" >&6; }
  16754. ;;
  16755. esac
  16756. fi
  16757. if test "x$enable_dlopen" != xyes; then
  16758. enable_dlopen=unknown
  16759. enable_dlopen_self=unknown
  16760. enable_dlopen_self_static=unknown
  16761. else
  16762. lt_cv_dlopen=no
  16763. lt_cv_dlopen_libs=
  16764. case $host_os in
  16765. beos*)
  16766. lt_cv_dlopen="load_add_on"
  16767. lt_cv_dlopen_libs=
  16768. lt_cv_dlopen_self=yes
  16769. ;;
  16770. mingw* | pw32*)
  16771. lt_cv_dlopen="LoadLibrary"
  16772. lt_cv_dlopen_libs=
  16773. ;;
  16774. cygwin*)
  16775. lt_cv_dlopen="dlopen"
  16776. lt_cv_dlopen_libs=
  16777. ;;
  16778. darwin*)
  16779. # if libdl is installed we need to link against it
  16780. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16781. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16782. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16783. echo $ECHO_N "(cached) $ECHO_C" >&6
  16784. else
  16785. ac_check_lib_save_LIBS=$LIBS
  16786. LIBS="-ldl $LIBS"
  16787. cat >conftest.$ac_ext <<_ACEOF
  16788. /* confdefs.h. */
  16789. _ACEOF
  16790. cat confdefs.h >>conftest.$ac_ext
  16791. cat >>conftest.$ac_ext <<_ACEOF
  16792. /* end confdefs.h. */
  16793. /* Override any GCC internal prototype to avoid an error.
  16794. Use char because int might match the return type of a GCC
  16795. builtin and then its argument prototype would still apply. */
  16796. #ifdef __cplusplus
  16797. extern "C"
  16798. #endif
  16799. char dlopen ();
  16800. int
  16801. main ()
  16802. {
  16803. return dlopen ();
  16804. ;
  16805. return 0;
  16806. }
  16807. _ACEOF
  16808. rm -f conftest.$ac_objext conftest$ac_exeext
  16809. if { (ac_try="$ac_link"
  16810. case "(($ac_try" in
  16811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16812. *) ac_try_echo=$ac_try;;
  16813. esac
  16814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16815. (eval "$ac_link") 2>conftest.er1
  16816. ac_status=$?
  16817. grep -v '^ *+' conftest.er1 >conftest.err
  16818. rm -f conftest.er1
  16819. cat conftest.err >&5
  16820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16821. (exit $ac_status); } && {
  16822. test -z "$ac_c_werror_flag" ||
  16823. test ! -s conftest.err
  16824. } && test -s conftest$ac_exeext &&
  16825. $as_test_x conftest$ac_exeext; then
  16826. ac_cv_lib_dl_dlopen=yes
  16827. else
  16828. echo "$as_me: failed program was:" >&5
  16829. sed 's/^/| /' conftest.$ac_ext >&5
  16830. ac_cv_lib_dl_dlopen=no
  16831. fi
  16832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16833. conftest$ac_exeext conftest.$ac_ext
  16834. LIBS=$ac_check_lib_save_LIBS
  16835. fi
  16836. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16837. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  16838. if test $ac_cv_lib_dl_dlopen = yes; then
  16839. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16840. else
  16841. lt_cv_dlopen="dyld"
  16842. lt_cv_dlopen_libs=
  16843. lt_cv_dlopen_self=yes
  16844. fi
  16845. ;;
  16846. *)
  16847. { echo "$as_me:$LINENO: checking for shl_load" >&5
  16848. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  16849. if test "${ac_cv_func_shl_load+set}" = set; then
  16850. echo $ECHO_N "(cached) $ECHO_C" >&6
  16851. else
  16852. cat >conftest.$ac_ext <<_ACEOF
  16853. /* confdefs.h. */
  16854. _ACEOF
  16855. cat confdefs.h >>conftest.$ac_ext
  16856. cat >>conftest.$ac_ext <<_ACEOF
  16857. /* end confdefs.h. */
  16858. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  16859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16860. #define shl_load innocuous_shl_load
  16861. /* System header to define __stub macros and hopefully few prototypes,
  16862. which can conflict with char shl_load (); below.
  16863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16864. <limits.h> exists even on freestanding compilers. */
  16865. #ifdef __STDC__
  16866. # include <limits.h>
  16867. #else
  16868. # include <assert.h>
  16869. #endif
  16870. #undef shl_load
  16871. /* Override any GCC internal prototype to avoid an error.
  16872. Use char because int might match the return type of a GCC
  16873. builtin and then its argument prototype would still apply. */
  16874. #ifdef __cplusplus
  16875. extern "C"
  16876. #endif
  16877. char shl_load ();
  16878. /* The GNU C library defines this for functions which it implements
  16879. to always fail with ENOSYS. Some functions are actually named
  16880. something starting with __ and the normal name is an alias. */
  16881. #if defined __stub_shl_load || defined __stub___shl_load
  16882. choke me
  16883. #endif
  16884. int
  16885. main ()
  16886. {
  16887. return shl_load ();
  16888. ;
  16889. return 0;
  16890. }
  16891. _ACEOF
  16892. rm -f conftest.$ac_objext conftest$ac_exeext
  16893. if { (ac_try="$ac_link"
  16894. case "(($ac_try" in
  16895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16896. *) ac_try_echo=$ac_try;;
  16897. esac
  16898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16899. (eval "$ac_link") 2>conftest.er1
  16900. ac_status=$?
  16901. grep -v '^ *+' conftest.er1 >conftest.err
  16902. rm -f conftest.er1
  16903. cat conftest.err >&5
  16904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16905. (exit $ac_status); } && {
  16906. test -z "$ac_c_werror_flag" ||
  16907. test ! -s conftest.err
  16908. } && test -s conftest$ac_exeext &&
  16909. $as_test_x conftest$ac_exeext; then
  16910. ac_cv_func_shl_load=yes
  16911. else
  16912. echo "$as_me: failed program was:" >&5
  16913. sed 's/^/| /' conftest.$ac_ext >&5
  16914. ac_cv_func_shl_load=no
  16915. fi
  16916. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16917. conftest$ac_exeext conftest.$ac_ext
  16918. fi
  16919. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  16920. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  16921. if test $ac_cv_func_shl_load = yes; then
  16922. lt_cv_dlopen="shl_load"
  16923. else
  16924. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  16925. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  16926. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  16927. echo $ECHO_N "(cached) $ECHO_C" >&6
  16928. else
  16929. ac_check_lib_save_LIBS=$LIBS
  16930. LIBS="-ldld $LIBS"
  16931. cat >conftest.$ac_ext <<_ACEOF
  16932. /* confdefs.h. */
  16933. _ACEOF
  16934. cat confdefs.h >>conftest.$ac_ext
  16935. cat >>conftest.$ac_ext <<_ACEOF
  16936. /* end confdefs.h. */
  16937. /* Override any GCC internal prototype to avoid an error.
  16938. Use char because int might match the return type of a GCC
  16939. builtin and then its argument prototype would still apply. */
  16940. #ifdef __cplusplus
  16941. extern "C"
  16942. #endif
  16943. char shl_load ();
  16944. int
  16945. main ()
  16946. {
  16947. return shl_load ();
  16948. ;
  16949. return 0;
  16950. }
  16951. _ACEOF
  16952. rm -f conftest.$ac_objext conftest$ac_exeext
  16953. if { (ac_try="$ac_link"
  16954. case "(($ac_try" in
  16955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16956. *) ac_try_echo=$ac_try;;
  16957. esac
  16958. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16959. (eval "$ac_link") 2>conftest.er1
  16960. ac_status=$?
  16961. grep -v '^ *+' conftest.er1 >conftest.err
  16962. rm -f conftest.er1
  16963. cat conftest.err >&5
  16964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16965. (exit $ac_status); } && {
  16966. test -z "$ac_c_werror_flag" ||
  16967. test ! -s conftest.err
  16968. } && test -s conftest$ac_exeext &&
  16969. $as_test_x conftest$ac_exeext; then
  16970. ac_cv_lib_dld_shl_load=yes
  16971. else
  16972. echo "$as_me: failed program was:" >&5
  16973. sed 's/^/| /' conftest.$ac_ext >&5
  16974. ac_cv_lib_dld_shl_load=no
  16975. fi
  16976. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16977. conftest$ac_exeext conftest.$ac_ext
  16978. LIBS=$ac_check_lib_save_LIBS
  16979. fi
  16980. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16981. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  16982. if test $ac_cv_lib_dld_shl_load = yes; then
  16983. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16984. else
  16985. { echo "$as_me:$LINENO: checking for dlopen" >&5
  16986. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  16987. if test "${ac_cv_func_dlopen+set}" = set; then
  16988. echo $ECHO_N "(cached) $ECHO_C" >&6
  16989. else
  16990. cat >conftest.$ac_ext <<_ACEOF
  16991. /* confdefs.h. */
  16992. _ACEOF
  16993. cat confdefs.h >>conftest.$ac_ext
  16994. cat >>conftest.$ac_ext <<_ACEOF
  16995. /* end confdefs.h. */
  16996. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16997. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16998. #define dlopen innocuous_dlopen
  16999. /* System header to define __stub macros and hopefully few prototypes,
  17000. which can conflict with char dlopen (); below.
  17001. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17002. <limits.h> exists even on freestanding compilers. */
  17003. #ifdef __STDC__
  17004. # include <limits.h>
  17005. #else
  17006. # include <assert.h>
  17007. #endif
  17008. #undef dlopen
  17009. /* Override any GCC internal prototype to avoid an error.
  17010. Use char because int might match the return type of a GCC
  17011. builtin and then its argument prototype would still apply. */
  17012. #ifdef __cplusplus
  17013. extern "C"
  17014. #endif
  17015. char dlopen ();
  17016. /* The GNU C library defines this for functions which it implements
  17017. to always fail with ENOSYS. Some functions are actually named
  17018. something starting with __ and the normal name is an alias. */
  17019. #if defined __stub_dlopen || defined __stub___dlopen
  17020. choke me
  17021. #endif
  17022. int
  17023. main ()
  17024. {
  17025. return dlopen ();
  17026. ;
  17027. return 0;
  17028. }
  17029. _ACEOF
  17030. rm -f conftest.$ac_objext conftest$ac_exeext
  17031. if { (ac_try="$ac_link"
  17032. case "(($ac_try" in
  17033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17034. *) ac_try_echo=$ac_try;;
  17035. esac
  17036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17037. (eval "$ac_link") 2>conftest.er1
  17038. ac_status=$?
  17039. grep -v '^ *+' conftest.er1 >conftest.err
  17040. rm -f conftest.er1
  17041. cat conftest.err >&5
  17042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17043. (exit $ac_status); } && {
  17044. test -z "$ac_c_werror_flag" ||
  17045. test ! -s conftest.err
  17046. } && test -s conftest$ac_exeext &&
  17047. $as_test_x conftest$ac_exeext; then
  17048. ac_cv_func_dlopen=yes
  17049. else
  17050. echo "$as_me: failed program was:" >&5
  17051. sed 's/^/| /' conftest.$ac_ext >&5
  17052. ac_cv_func_dlopen=no
  17053. fi
  17054. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17055. conftest$ac_exeext conftest.$ac_ext
  17056. fi
  17057. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  17058. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  17059. if test $ac_cv_func_dlopen = yes; then
  17060. lt_cv_dlopen="dlopen"
  17061. else
  17062. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17063. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  17064. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17065. echo $ECHO_N "(cached) $ECHO_C" >&6
  17066. else
  17067. ac_check_lib_save_LIBS=$LIBS
  17068. LIBS="-ldl $LIBS"
  17069. cat >conftest.$ac_ext <<_ACEOF
  17070. /* confdefs.h. */
  17071. _ACEOF
  17072. cat confdefs.h >>conftest.$ac_ext
  17073. cat >>conftest.$ac_ext <<_ACEOF
  17074. /* end confdefs.h. */
  17075. /* Override any GCC internal prototype to avoid an error.
  17076. Use char because int might match the return type of a GCC
  17077. builtin and then its argument prototype would still apply. */
  17078. #ifdef __cplusplus
  17079. extern "C"
  17080. #endif
  17081. char dlopen ();
  17082. int
  17083. main ()
  17084. {
  17085. return dlopen ();
  17086. ;
  17087. return 0;
  17088. }
  17089. _ACEOF
  17090. rm -f conftest.$ac_objext conftest$ac_exeext
  17091. if { (ac_try="$ac_link"
  17092. case "(($ac_try" in
  17093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17094. *) ac_try_echo=$ac_try;;
  17095. esac
  17096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17097. (eval "$ac_link") 2>conftest.er1
  17098. ac_status=$?
  17099. grep -v '^ *+' conftest.er1 >conftest.err
  17100. rm -f conftest.er1
  17101. cat conftest.err >&5
  17102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17103. (exit $ac_status); } && {
  17104. test -z "$ac_c_werror_flag" ||
  17105. test ! -s conftest.err
  17106. } && test -s conftest$ac_exeext &&
  17107. $as_test_x conftest$ac_exeext; then
  17108. ac_cv_lib_dl_dlopen=yes
  17109. else
  17110. echo "$as_me: failed program was:" >&5
  17111. sed 's/^/| /' conftest.$ac_ext >&5
  17112. ac_cv_lib_dl_dlopen=no
  17113. fi
  17114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17115. conftest$ac_exeext conftest.$ac_ext
  17116. LIBS=$ac_check_lib_save_LIBS
  17117. fi
  17118. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17119. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  17120. if test $ac_cv_lib_dl_dlopen = yes; then
  17121. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17122. else
  17123. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  17124. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  17125. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  17126. echo $ECHO_N "(cached) $ECHO_C" >&6
  17127. else
  17128. ac_check_lib_save_LIBS=$LIBS
  17129. LIBS="-lsvld $LIBS"
  17130. cat >conftest.$ac_ext <<_ACEOF
  17131. /* confdefs.h. */
  17132. _ACEOF
  17133. cat confdefs.h >>conftest.$ac_ext
  17134. cat >>conftest.$ac_ext <<_ACEOF
  17135. /* end confdefs.h. */
  17136. /* Override any GCC internal prototype to avoid an error.
  17137. Use char because int might match the return type of a GCC
  17138. builtin and then its argument prototype would still apply. */
  17139. #ifdef __cplusplus
  17140. extern "C"
  17141. #endif
  17142. char dlopen ();
  17143. int
  17144. main ()
  17145. {
  17146. return dlopen ();
  17147. ;
  17148. return 0;
  17149. }
  17150. _ACEOF
  17151. rm -f conftest.$ac_objext conftest$ac_exeext
  17152. if { (ac_try="$ac_link"
  17153. case "(($ac_try" in
  17154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17155. *) ac_try_echo=$ac_try;;
  17156. esac
  17157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17158. (eval "$ac_link") 2>conftest.er1
  17159. ac_status=$?
  17160. grep -v '^ *+' conftest.er1 >conftest.err
  17161. rm -f conftest.er1
  17162. cat conftest.err >&5
  17163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17164. (exit $ac_status); } && {
  17165. test -z "$ac_c_werror_flag" ||
  17166. test ! -s conftest.err
  17167. } && test -s conftest$ac_exeext &&
  17168. $as_test_x conftest$ac_exeext; then
  17169. ac_cv_lib_svld_dlopen=yes
  17170. else
  17171. echo "$as_me: failed program was:" >&5
  17172. sed 's/^/| /' conftest.$ac_ext >&5
  17173. ac_cv_lib_svld_dlopen=no
  17174. fi
  17175. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17176. conftest$ac_exeext conftest.$ac_ext
  17177. LIBS=$ac_check_lib_save_LIBS
  17178. fi
  17179. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  17180. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  17181. if test $ac_cv_lib_svld_dlopen = yes; then
  17182. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  17183. else
  17184. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  17185. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  17186. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  17187. echo $ECHO_N "(cached) $ECHO_C" >&6
  17188. else
  17189. ac_check_lib_save_LIBS=$LIBS
  17190. LIBS="-ldld $LIBS"
  17191. cat >conftest.$ac_ext <<_ACEOF
  17192. /* confdefs.h. */
  17193. _ACEOF
  17194. cat confdefs.h >>conftest.$ac_ext
  17195. cat >>conftest.$ac_ext <<_ACEOF
  17196. /* end confdefs.h. */
  17197. /* Override any GCC internal prototype to avoid an error.
  17198. Use char because int might match the return type of a GCC
  17199. builtin and then its argument prototype would still apply. */
  17200. #ifdef __cplusplus
  17201. extern "C"
  17202. #endif
  17203. char dld_link ();
  17204. int
  17205. main ()
  17206. {
  17207. return dld_link ();
  17208. ;
  17209. return 0;
  17210. }
  17211. _ACEOF
  17212. rm -f conftest.$ac_objext conftest$ac_exeext
  17213. if { (ac_try="$ac_link"
  17214. case "(($ac_try" in
  17215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17216. *) ac_try_echo=$ac_try;;
  17217. esac
  17218. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17219. (eval "$ac_link") 2>conftest.er1
  17220. ac_status=$?
  17221. grep -v '^ *+' conftest.er1 >conftest.err
  17222. rm -f conftest.er1
  17223. cat conftest.err >&5
  17224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17225. (exit $ac_status); } && {
  17226. test -z "$ac_c_werror_flag" ||
  17227. test ! -s conftest.err
  17228. } && test -s conftest$ac_exeext &&
  17229. $as_test_x conftest$ac_exeext; then
  17230. ac_cv_lib_dld_dld_link=yes
  17231. else
  17232. echo "$as_me: failed program was:" >&5
  17233. sed 's/^/| /' conftest.$ac_ext >&5
  17234. ac_cv_lib_dld_dld_link=no
  17235. fi
  17236. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17237. conftest$ac_exeext conftest.$ac_ext
  17238. LIBS=$ac_check_lib_save_LIBS
  17239. fi
  17240. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17241. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  17242. if test $ac_cv_lib_dld_dld_link = yes; then
  17243. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17244. fi
  17245. fi
  17246. fi
  17247. fi
  17248. fi
  17249. fi
  17250. ;;
  17251. esac
  17252. if test "x$lt_cv_dlopen" != xno; then
  17253. enable_dlopen=yes
  17254. else
  17255. enable_dlopen=no
  17256. fi
  17257. case $lt_cv_dlopen in
  17258. dlopen)
  17259. save_CPPFLAGS="$CPPFLAGS"
  17260. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17261. save_LDFLAGS="$LDFLAGS"
  17262. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  17263. save_LIBS="$LIBS"
  17264. LIBS="$lt_cv_dlopen_libs $LIBS"
  17265. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  17266. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  17267. if test "${lt_cv_dlopen_self+set}" = set; then
  17268. echo $ECHO_N "(cached) $ECHO_C" >&6
  17269. else
  17270. if test "$cross_compiling" = yes; then :
  17271. lt_cv_dlopen_self=cross
  17272. else
  17273. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17274. lt_status=$lt_dlunknown
  17275. cat > conftest.$ac_ext <<EOF
  17276. #line 19308 "configure"
  17277. #include "confdefs.h"
  17278. #if HAVE_DLFCN_H
  17279. #include <dlfcn.h>
  17280. #endif
  17281. #include <stdio.h>
  17282. #ifdef RTLD_GLOBAL
  17283. # define LT_DLGLOBAL RTLD_GLOBAL
  17284. #else
  17285. # ifdef DL_GLOBAL
  17286. # define LT_DLGLOBAL DL_GLOBAL
  17287. # else
  17288. # define LT_DLGLOBAL 0
  17289. # endif
  17290. #endif
  17291. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17292. find out it does not work in some platform. */
  17293. #ifndef LT_DLLAZY_OR_NOW
  17294. # ifdef RTLD_LAZY
  17295. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17296. # else
  17297. # ifdef DL_LAZY
  17298. # define LT_DLLAZY_OR_NOW DL_LAZY
  17299. # else
  17300. # ifdef RTLD_NOW
  17301. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17302. # else
  17303. # ifdef DL_NOW
  17304. # define LT_DLLAZY_OR_NOW DL_NOW
  17305. # else
  17306. # define LT_DLLAZY_OR_NOW 0
  17307. # endif
  17308. # endif
  17309. # endif
  17310. # endif
  17311. #endif
  17312. #ifdef __cplusplus
  17313. extern "C" void exit (int);
  17314. #endif
  17315. void fnord() { int i=42;}
  17316. int main ()
  17317. {
  17318. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17319. int status = $lt_dlunknown;
  17320. if (self)
  17321. {
  17322. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17323. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17324. /* dlclose (self); */
  17325. }
  17326. exit (status);
  17327. }
  17328. EOF
  17329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17330. (eval $ac_link) 2>&5
  17331. ac_status=$?
  17332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17333. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17334. (./conftest; exit; ) 2>/dev/null
  17335. lt_status=$?
  17336. case x$lt_status in
  17337. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17338. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17339. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  17340. esac
  17341. else :
  17342. # compilation failed
  17343. lt_cv_dlopen_self=no
  17344. fi
  17345. fi
  17346. rm -fr conftest*
  17347. fi
  17348. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  17349. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  17350. if test "x$lt_cv_dlopen_self" = xyes; then
  17351. LDFLAGS="$LDFLAGS $link_static_flag"
  17352. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  17353. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  17354. if test "${lt_cv_dlopen_self_static+set}" = set; then
  17355. echo $ECHO_N "(cached) $ECHO_C" >&6
  17356. else
  17357. if test "$cross_compiling" = yes; then :
  17358. lt_cv_dlopen_self_static=cross
  17359. else
  17360. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17361. lt_status=$lt_dlunknown
  17362. cat > conftest.$ac_ext <<EOF
  17363. #line 19406 "configure"
  17364. #include "confdefs.h"
  17365. #if HAVE_DLFCN_H
  17366. #include <dlfcn.h>
  17367. #endif
  17368. #include <stdio.h>
  17369. #ifdef RTLD_GLOBAL
  17370. # define LT_DLGLOBAL RTLD_GLOBAL
  17371. #else
  17372. # ifdef DL_GLOBAL
  17373. # define LT_DLGLOBAL DL_GLOBAL
  17374. # else
  17375. # define LT_DLGLOBAL 0
  17376. # endif
  17377. #endif
  17378. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17379. find out it does not work in some platform. */
  17380. #ifndef LT_DLLAZY_OR_NOW
  17381. # ifdef RTLD_LAZY
  17382. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17383. # else
  17384. # ifdef DL_LAZY
  17385. # define LT_DLLAZY_OR_NOW DL_LAZY
  17386. # else
  17387. # ifdef RTLD_NOW
  17388. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17389. # else
  17390. # ifdef DL_NOW
  17391. # define LT_DLLAZY_OR_NOW DL_NOW
  17392. # else
  17393. # define LT_DLLAZY_OR_NOW 0
  17394. # endif
  17395. # endif
  17396. # endif
  17397. # endif
  17398. #endif
  17399. #ifdef __cplusplus
  17400. extern "C" void exit (int);
  17401. #endif
  17402. void fnord() { int i=42;}
  17403. int main ()
  17404. {
  17405. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17406. int status = $lt_dlunknown;
  17407. if (self)
  17408. {
  17409. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17410. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17411. /* dlclose (self); */
  17412. }
  17413. exit (status);
  17414. }
  17415. EOF
  17416. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17417. (eval $ac_link) 2>&5
  17418. ac_status=$?
  17419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17420. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17421. (./conftest; exit; ) 2>/dev/null
  17422. lt_status=$?
  17423. case x$lt_status in
  17424. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17425. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17426. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  17427. esac
  17428. else :
  17429. # compilation failed
  17430. lt_cv_dlopen_self_static=no
  17431. fi
  17432. fi
  17433. rm -fr conftest*
  17434. fi
  17435. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  17436. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  17437. fi
  17438. CPPFLAGS="$save_CPPFLAGS"
  17439. LDFLAGS="$save_LDFLAGS"
  17440. LIBS="$save_LIBS"
  17441. ;;
  17442. esac
  17443. case $lt_cv_dlopen_self in
  17444. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17445. *) enable_dlopen_self=unknown ;;
  17446. esac
  17447. case $lt_cv_dlopen_self_static in
  17448. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17449. *) enable_dlopen_self_static=unknown ;;
  17450. esac
  17451. fi
  17452. # The else clause should only fire when bootstrapping the
  17453. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17454. # with your package, and you will get complaints that there are
  17455. # no rules to generate ltmain.sh.
  17456. if test -f "$ltmain"; then
  17457. # See if we are running on zsh, and set the options which allow our commands through
  17458. # without removal of \ escapes.
  17459. if test -n "${ZSH_VERSION+set}" ; then
  17460. setopt NO_GLOB_SUBST
  17461. fi
  17462. # Now quote all the things that may contain metacharacters while being
  17463. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17464. # variables and quote the copies for generation of the libtool script.
  17465. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17466. SED SHELL STRIP \
  17467. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17468. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17469. deplibs_check_method reload_flag reload_cmds need_locks \
  17470. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17471. lt_cv_sys_global_symbol_to_c_name_address \
  17472. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17473. old_postinstall_cmds old_postuninstall_cmds \
  17474. compiler_GCJ \
  17475. CC_GCJ \
  17476. LD_GCJ \
  17477. lt_prog_compiler_wl_GCJ \
  17478. lt_prog_compiler_pic_GCJ \
  17479. lt_prog_compiler_static_GCJ \
  17480. lt_prog_compiler_no_builtin_flag_GCJ \
  17481. export_dynamic_flag_spec_GCJ \
  17482. thread_safe_flag_spec_GCJ \
  17483. whole_archive_flag_spec_GCJ \
  17484. enable_shared_with_static_runtimes_GCJ \
  17485. old_archive_cmds_GCJ \
  17486. old_archive_from_new_cmds_GCJ \
  17487. predep_objects_GCJ \
  17488. postdep_objects_GCJ \
  17489. predeps_GCJ \
  17490. postdeps_GCJ \
  17491. compiler_lib_search_path_GCJ \
  17492. archive_cmds_GCJ \
  17493. archive_expsym_cmds_GCJ \
  17494. postinstall_cmds_GCJ \
  17495. postuninstall_cmds_GCJ \
  17496. old_archive_from_expsyms_cmds_GCJ \
  17497. allow_undefined_flag_GCJ \
  17498. no_undefined_flag_GCJ \
  17499. export_symbols_cmds_GCJ \
  17500. hardcode_libdir_flag_spec_GCJ \
  17501. hardcode_libdir_flag_spec_ld_GCJ \
  17502. hardcode_libdir_separator_GCJ \
  17503. hardcode_automatic_GCJ \
  17504. module_cmds_GCJ \
  17505. module_expsym_cmds_GCJ \
  17506. lt_cv_prog_compiler_c_o_GCJ \
  17507. exclude_expsyms_GCJ \
  17508. include_expsyms_GCJ; do
  17509. case $var in
  17510. old_archive_cmds_GCJ | \
  17511. old_archive_from_new_cmds_GCJ | \
  17512. archive_cmds_GCJ | \
  17513. archive_expsym_cmds_GCJ | \
  17514. module_cmds_GCJ | \
  17515. module_expsym_cmds_GCJ | \
  17516. old_archive_from_expsyms_cmds_GCJ | \
  17517. export_symbols_cmds_GCJ | \
  17518. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17519. postinstall_cmds | postuninstall_cmds | \
  17520. old_postinstall_cmds | old_postuninstall_cmds | \
  17521. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17522. # Double-quote double-evaled strings.
  17523. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17524. ;;
  17525. *)
  17526. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17527. ;;
  17528. esac
  17529. done
  17530. case $lt_echo in
  17531. *'\$0 --fallback-echo"')
  17532. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17533. ;;
  17534. esac
  17535. cfgfile="$ofile"
  17536. cat <<__EOF__ >> "$cfgfile"
  17537. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17538. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17539. # Shell to use when invoking shell scripts.
  17540. SHELL=$lt_SHELL
  17541. # Whether or not to build shared libraries.
  17542. build_libtool_libs=$enable_shared
  17543. # Whether or not to build static libraries.
  17544. build_old_libs=$enable_static
  17545. # Whether or not to add -lc for building shared libraries.
  17546. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17547. # Whether or not to disallow shared libs when runtime libs are static
  17548. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17549. # Whether or not to optimize for fast installation.
  17550. fast_install=$enable_fast_install
  17551. # The host system.
  17552. host_alias=$host_alias
  17553. host=$host
  17554. host_os=$host_os
  17555. # The build system.
  17556. build_alias=$build_alias
  17557. build=$build
  17558. build_os=$build_os
  17559. # An echo program that does not interpret backslashes.
  17560. echo=$lt_echo
  17561. # The archiver.
  17562. AR=$lt_AR
  17563. AR_FLAGS=$lt_AR_FLAGS
  17564. # A C compiler.
  17565. LTCC=$lt_LTCC
  17566. # A language-specific compiler.
  17567. CC=$lt_compiler_GCJ
  17568. # Is the compiler the GNU C compiler?
  17569. with_gcc=$GCC_GCJ
  17570. # An ERE matcher.
  17571. EGREP=$lt_EGREP
  17572. # The linker used to build libraries.
  17573. LD=$lt_LD_GCJ
  17574. # Whether we need hard or soft links.
  17575. LN_S=$lt_LN_S
  17576. # A BSD-compatible nm program.
  17577. NM=$lt_NM
  17578. # A symbol stripping program
  17579. STRIP=$lt_STRIP
  17580. # Used to examine libraries when file_magic_cmd begins "file"
  17581. MAGIC_CMD=$MAGIC_CMD
  17582. # Used on cygwin: DLL creation program.
  17583. DLLTOOL="$DLLTOOL"
  17584. # Used on cygwin: object dumper.
  17585. OBJDUMP="$OBJDUMP"
  17586. # Used on cygwin: assembler.
  17587. AS="$AS"
  17588. # The name of the directory that contains temporary libtool files.
  17589. objdir=$objdir
  17590. # How to create reloadable object files.
  17591. reload_flag=$lt_reload_flag
  17592. reload_cmds=$lt_reload_cmds
  17593. # How to pass a linker flag through the compiler.
  17594. wl=$lt_lt_prog_compiler_wl_GCJ
  17595. # Object file suffix (normally "o").
  17596. objext="$ac_objext"
  17597. # Old archive suffix (normally "a").
  17598. libext="$libext"
  17599. # Shared library suffix (normally ".so").
  17600. shrext_cmds='$shrext_cmds'
  17601. # Executable file suffix (normally "").
  17602. exeext="$exeext"
  17603. # Additional compiler flags for building library objects.
  17604. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17605. pic_mode=$pic_mode
  17606. # What is the maximum length of a command?
  17607. max_cmd_len=$lt_cv_sys_max_cmd_len
  17608. # Does compiler simultaneously support -c and -o options?
  17609. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17610. # Must we lock files when doing compilation?
  17611. need_locks=$lt_need_locks
  17612. # Do we need the lib prefix for modules?
  17613. need_lib_prefix=$need_lib_prefix
  17614. # Do we need a version for libraries?
  17615. need_version=$need_version
  17616. # Whether dlopen is supported.
  17617. dlopen_support=$enable_dlopen
  17618. # Whether dlopen of programs is supported.
  17619. dlopen_self=$enable_dlopen_self
  17620. # Whether dlopen of statically linked programs is supported.
  17621. dlopen_self_static=$enable_dlopen_self_static
  17622. # Compiler flag to prevent dynamic linking.
  17623. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17624. # Compiler flag to turn off builtin functions.
  17625. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17626. # Compiler flag to allow reflexive dlopens.
  17627. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17628. # Compiler flag to generate shared objects directly from archives.
  17629. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17630. # Compiler flag to generate thread-safe objects.
  17631. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17632. # Library versioning type.
  17633. version_type=$version_type
  17634. # Format of library name prefix.
  17635. libname_spec=$lt_libname_spec
  17636. # List of archive names. First name is the real one, the rest are links.
  17637. # The last name is the one that the linker finds with -lNAME.
  17638. library_names_spec=$lt_library_names_spec
  17639. # The coded name of the library, if different from the real name.
  17640. soname_spec=$lt_soname_spec
  17641. # Commands used to build and install an old-style archive.
  17642. RANLIB=$lt_RANLIB
  17643. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17644. old_postinstall_cmds=$lt_old_postinstall_cmds
  17645. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17646. # Create an old-style archive from a shared archive.
  17647. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17648. # Create a temporary old-style archive to link instead of a shared archive.
  17649. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17650. # Commands used to build and install a shared archive.
  17651. archive_cmds=$lt_archive_cmds_GCJ
  17652. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17653. postinstall_cmds=$lt_postinstall_cmds
  17654. postuninstall_cmds=$lt_postuninstall_cmds
  17655. # Commands used to build a loadable module (assumed same as above if empty)
  17656. module_cmds=$lt_module_cmds_GCJ
  17657. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17658. # Commands to strip libraries.
  17659. old_striplib=$lt_old_striplib
  17660. striplib=$lt_striplib
  17661. # Dependencies to place before the objects being linked to create a
  17662. # shared library.
  17663. predep_objects=$lt_predep_objects_GCJ
  17664. # Dependencies to place after the objects being linked to create a
  17665. # shared library.
  17666. postdep_objects=$lt_postdep_objects_GCJ
  17667. # Dependencies to place before the objects being linked to create a
  17668. # shared library.
  17669. predeps=$lt_predeps_GCJ
  17670. # Dependencies to place after the objects being linked to create a
  17671. # shared library.
  17672. postdeps=$lt_postdeps_GCJ
  17673. # The library search path used internally by the compiler when linking
  17674. # a shared library.
  17675. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17676. # Method to check whether dependent libraries are shared objects.
  17677. deplibs_check_method=$lt_deplibs_check_method
  17678. # Command to use when deplibs_check_method == file_magic.
  17679. file_magic_cmd=$lt_file_magic_cmd
  17680. # Flag that allows shared libraries with undefined symbols to be built.
  17681. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17682. # Flag that forces no undefined symbols.
  17683. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17684. # Commands used to finish a libtool library installation in a directory.
  17685. finish_cmds=$lt_finish_cmds
  17686. # Same as above, but a single script fragment to be evaled but not shown.
  17687. finish_eval=$lt_finish_eval
  17688. # Take the output of nm and produce a listing of raw symbols and C names.
  17689. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17690. # Transform the output of nm in a proper C declaration
  17691. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17692. # Transform the output of nm in a C name address pair
  17693. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17694. # This is the shared library runtime path variable.
  17695. runpath_var=$runpath_var
  17696. # This is the shared library path variable.
  17697. shlibpath_var=$shlibpath_var
  17698. # Is shlibpath searched before the hard-coded library search path?
  17699. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17700. # How to hardcode a shared library path into an executable.
  17701. hardcode_action=$hardcode_action_GCJ
  17702. # Whether we should hardcode library paths into libraries.
  17703. hardcode_into_libs=$hardcode_into_libs
  17704. # Flag to hardcode \$libdir into a binary during linking.
  17705. # This must work even if \$libdir does not exist.
  17706. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17707. # If ld is used when linking, flag to hardcode \$libdir into
  17708. # a binary during linking. This must work even if \$libdir does
  17709. # not exist.
  17710. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17711. # Whether we need a single -rpath flag with a separated argument.
  17712. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17713. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17714. # resulting binary.
  17715. hardcode_direct=$hardcode_direct_GCJ
  17716. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17717. # resulting binary.
  17718. hardcode_minus_L=$hardcode_minus_L_GCJ
  17719. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17720. # the resulting binary.
  17721. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17722. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17723. # and all subsequent libraries and executables linked against it.
  17724. hardcode_automatic=$hardcode_automatic_GCJ
  17725. # Variables whose values should be saved in libtool wrapper scripts and
  17726. # restored at relink time.
  17727. variables_saved_for_relink="$variables_saved_for_relink"
  17728. # Whether libtool must link a program against all its dependency libraries.
  17729. link_all_deplibs=$link_all_deplibs_GCJ
  17730. # Compile-time system search path for libraries
  17731. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17732. # Run-time system search path for libraries
  17733. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17734. # Fix the shell variable \$srcfile for the compiler.
  17735. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17736. # Set to yes if exported symbols are required.
  17737. always_export_symbols=$always_export_symbols_GCJ
  17738. # The commands to list exported symbols.
  17739. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17740. # The commands to extract the exported symbol list from a shared archive.
  17741. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17742. # Symbols that should not be listed in the preloaded symbols.
  17743. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17744. # Symbols that must always be exported.
  17745. include_expsyms=$lt_include_expsyms_GCJ
  17746. # ### END LIBTOOL TAG CONFIG: $tagname
  17747. __EOF__
  17748. else
  17749. # If there is no Makefile yet, we rely on a make rule to execute
  17750. # `config.status --recheck' to rerun these tests and create the
  17751. # libtool script then.
  17752. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17753. if test -f "$ltmain_in"; then
  17754. test -f Makefile && make "$ltmain"
  17755. fi
  17756. fi
  17757. ac_ext=c
  17758. ac_cpp='$CPP $CPPFLAGS'
  17759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17762. CC="$lt_save_CC"
  17763. else
  17764. tagname=""
  17765. fi
  17766. ;;
  17767. RC)
  17768. # Source file extension for RC test sources.
  17769. ac_ext=rc
  17770. # Object file extension for compiled RC test sources.
  17771. objext=o
  17772. objext_RC=$objext
  17773. # Code to be used in simple compile tests
  17774. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17775. # Code to be used in simple link tests
  17776. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17777. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17778. # If no C compiler was specified, use CC.
  17779. LTCC=${LTCC-"$CC"}
  17780. # Allow CC to be a program name with arguments.
  17781. compiler=$CC
  17782. # save warnings/boilerplate of simple test code
  17783. ac_outfile=conftest.$ac_objext
  17784. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17785. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17786. _lt_compiler_boilerplate=`cat conftest.err`
  17787. $rm conftest*
  17788. ac_outfile=conftest.$ac_objext
  17789. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17790. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17791. _lt_linker_boilerplate=`cat conftest.err`
  17792. $rm conftest*
  17793. # Allow CC to be a program name with arguments.
  17794. lt_save_CC="$CC"
  17795. CC=${RC-"windres"}
  17796. compiler=$CC
  17797. compiler_RC=$CC
  17798. for cc_temp in $compiler""; do
  17799. case $cc_temp in
  17800. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17801. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17802. \-*) ;;
  17803. *) break;;
  17804. esac
  17805. done
  17806. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17807. lt_cv_prog_compiler_c_o_RC=yes
  17808. # The else clause should only fire when bootstrapping the
  17809. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17810. # with your package, and you will get complaints that there are
  17811. # no rules to generate ltmain.sh.
  17812. if test -f "$ltmain"; then
  17813. # See if we are running on zsh, and set the options which allow our commands through
  17814. # without removal of \ escapes.
  17815. if test -n "${ZSH_VERSION+set}" ; then
  17816. setopt NO_GLOB_SUBST
  17817. fi
  17818. # Now quote all the things that may contain metacharacters while being
  17819. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17820. # variables and quote the copies for generation of the libtool script.
  17821. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17822. SED SHELL STRIP \
  17823. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17824. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17825. deplibs_check_method reload_flag reload_cmds need_locks \
  17826. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17827. lt_cv_sys_global_symbol_to_c_name_address \
  17828. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17829. old_postinstall_cmds old_postuninstall_cmds \
  17830. compiler_RC \
  17831. CC_RC \
  17832. LD_RC \
  17833. lt_prog_compiler_wl_RC \
  17834. lt_prog_compiler_pic_RC \
  17835. lt_prog_compiler_static_RC \
  17836. lt_prog_compiler_no_builtin_flag_RC \
  17837. export_dynamic_flag_spec_RC \
  17838. thread_safe_flag_spec_RC \
  17839. whole_archive_flag_spec_RC \
  17840. enable_shared_with_static_runtimes_RC \
  17841. old_archive_cmds_RC \
  17842. old_archive_from_new_cmds_RC \
  17843. predep_objects_RC \
  17844. postdep_objects_RC \
  17845. predeps_RC \
  17846. postdeps_RC \
  17847. compiler_lib_search_path_RC \
  17848. archive_cmds_RC \
  17849. archive_expsym_cmds_RC \
  17850. postinstall_cmds_RC \
  17851. postuninstall_cmds_RC \
  17852. old_archive_from_expsyms_cmds_RC \
  17853. allow_undefined_flag_RC \
  17854. no_undefined_flag_RC \
  17855. export_symbols_cmds_RC \
  17856. hardcode_libdir_flag_spec_RC \
  17857. hardcode_libdir_flag_spec_ld_RC \
  17858. hardcode_libdir_separator_RC \
  17859. hardcode_automatic_RC \
  17860. module_cmds_RC \
  17861. module_expsym_cmds_RC \
  17862. lt_cv_prog_compiler_c_o_RC \
  17863. exclude_expsyms_RC \
  17864. include_expsyms_RC; do
  17865. case $var in
  17866. old_archive_cmds_RC | \
  17867. old_archive_from_new_cmds_RC | \
  17868. archive_cmds_RC | \
  17869. archive_expsym_cmds_RC | \
  17870. module_cmds_RC | \
  17871. module_expsym_cmds_RC | \
  17872. old_archive_from_expsyms_cmds_RC | \
  17873. export_symbols_cmds_RC | \
  17874. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17875. postinstall_cmds | postuninstall_cmds | \
  17876. old_postinstall_cmds | old_postuninstall_cmds | \
  17877. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17878. # Double-quote double-evaled strings.
  17879. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17880. ;;
  17881. *)
  17882. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17883. ;;
  17884. esac
  17885. done
  17886. case $lt_echo in
  17887. *'\$0 --fallback-echo"')
  17888. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17889. ;;
  17890. esac
  17891. cfgfile="$ofile"
  17892. cat <<__EOF__ >> "$cfgfile"
  17893. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17894. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17895. # Shell to use when invoking shell scripts.
  17896. SHELL=$lt_SHELL
  17897. # Whether or not to build shared libraries.
  17898. build_libtool_libs=$enable_shared
  17899. # Whether or not to build static libraries.
  17900. build_old_libs=$enable_static
  17901. # Whether or not to add -lc for building shared libraries.
  17902. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17903. # Whether or not to disallow shared libs when runtime libs are static
  17904. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17905. # Whether or not to optimize for fast installation.
  17906. fast_install=$enable_fast_install
  17907. # The host system.
  17908. host_alias=$host_alias
  17909. host=$host
  17910. host_os=$host_os
  17911. # The build system.
  17912. build_alias=$build_alias
  17913. build=$build
  17914. build_os=$build_os
  17915. # An echo program that does not interpret backslashes.
  17916. echo=$lt_echo
  17917. # The archiver.
  17918. AR=$lt_AR
  17919. AR_FLAGS=$lt_AR_FLAGS
  17920. # A C compiler.
  17921. LTCC=$lt_LTCC
  17922. # A language-specific compiler.
  17923. CC=$lt_compiler_RC
  17924. # Is the compiler the GNU C compiler?
  17925. with_gcc=$GCC_RC
  17926. # An ERE matcher.
  17927. EGREP=$lt_EGREP
  17928. # The linker used to build libraries.
  17929. LD=$lt_LD_RC
  17930. # Whether we need hard or soft links.
  17931. LN_S=$lt_LN_S
  17932. # A BSD-compatible nm program.
  17933. NM=$lt_NM
  17934. # A symbol stripping program
  17935. STRIP=$lt_STRIP
  17936. # Used to examine libraries when file_magic_cmd begins "file"
  17937. MAGIC_CMD=$MAGIC_CMD
  17938. # Used on cygwin: DLL creation program.
  17939. DLLTOOL="$DLLTOOL"
  17940. # Used on cygwin: object dumper.
  17941. OBJDUMP="$OBJDUMP"
  17942. # Used on cygwin: assembler.
  17943. AS="$AS"
  17944. # The name of the directory that contains temporary libtool files.
  17945. objdir=$objdir
  17946. # How to create reloadable object files.
  17947. reload_flag=$lt_reload_flag
  17948. reload_cmds=$lt_reload_cmds
  17949. # How to pass a linker flag through the compiler.
  17950. wl=$lt_lt_prog_compiler_wl_RC
  17951. # Object file suffix (normally "o").
  17952. objext="$ac_objext"
  17953. # Old archive suffix (normally "a").
  17954. libext="$libext"
  17955. # Shared library suffix (normally ".so").
  17956. shrext_cmds='$shrext_cmds'
  17957. # Executable file suffix (normally "").
  17958. exeext="$exeext"
  17959. # Additional compiler flags for building library objects.
  17960. pic_flag=$lt_lt_prog_compiler_pic_RC
  17961. pic_mode=$pic_mode
  17962. # What is the maximum length of a command?
  17963. max_cmd_len=$lt_cv_sys_max_cmd_len
  17964. # Does compiler simultaneously support -c and -o options?
  17965. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17966. # Must we lock files when doing compilation?
  17967. need_locks=$lt_need_locks
  17968. # Do we need the lib prefix for modules?
  17969. need_lib_prefix=$need_lib_prefix
  17970. # Do we need a version for libraries?
  17971. need_version=$need_version
  17972. # Whether dlopen is supported.
  17973. dlopen_support=$enable_dlopen
  17974. # Whether dlopen of programs is supported.
  17975. dlopen_self=$enable_dlopen_self
  17976. # Whether dlopen of statically linked programs is supported.
  17977. dlopen_self_static=$enable_dlopen_self_static
  17978. # Compiler flag to prevent dynamic linking.
  17979. link_static_flag=$lt_lt_prog_compiler_static_RC
  17980. # Compiler flag to turn off builtin functions.
  17981. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17982. # Compiler flag to allow reflexive dlopens.
  17983. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17984. # Compiler flag to generate shared objects directly from archives.
  17985. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17986. # Compiler flag to generate thread-safe objects.
  17987. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17988. # Library versioning type.
  17989. version_type=$version_type
  17990. # Format of library name prefix.
  17991. libname_spec=$lt_libname_spec
  17992. # List of archive names. First name is the real one, the rest are links.
  17993. # The last name is the one that the linker finds with -lNAME.
  17994. library_names_spec=$lt_library_names_spec
  17995. # The coded name of the library, if different from the real name.
  17996. soname_spec=$lt_soname_spec
  17997. # Commands used to build and install an old-style archive.
  17998. RANLIB=$lt_RANLIB
  17999. old_archive_cmds=$lt_old_archive_cmds_RC
  18000. old_postinstall_cmds=$lt_old_postinstall_cmds
  18001. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18002. # Create an old-style archive from a shared archive.
  18003. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  18004. # Create a temporary old-style archive to link instead of a shared archive.
  18005. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  18006. # Commands used to build and install a shared archive.
  18007. archive_cmds=$lt_archive_cmds_RC
  18008. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  18009. postinstall_cmds=$lt_postinstall_cmds
  18010. postuninstall_cmds=$lt_postuninstall_cmds
  18011. # Commands used to build a loadable module (assumed same as above if empty)
  18012. module_cmds=$lt_module_cmds_RC
  18013. module_expsym_cmds=$lt_module_expsym_cmds_RC
  18014. # Commands to strip libraries.
  18015. old_striplib=$lt_old_striplib
  18016. striplib=$lt_striplib
  18017. # Dependencies to place before the objects being linked to create a
  18018. # shared library.
  18019. predep_objects=$lt_predep_objects_RC
  18020. # Dependencies to place after the objects being linked to create a
  18021. # shared library.
  18022. postdep_objects=$lt_postdep_objects_RC
  18023. # Dependencies to place before the objects being linked to create a
  18024. # shared library.
  18025. predeps=$lt_predeps_RC
  18026. # Dependencies to place after the objects being linked to create a
  18027. # shared library.
  18028. postdeps=$lt_postdeps_RC
  18029. # The library search path used internally by the compiler when linking
  18030. # a shared library.
  18031. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  18032. # Method to check whether dependent libraries are shared objects.
  18033. deplibs_check_method=$lt_deplibs_check_method
  18034. # Command to use when deplibs_check_method == file_magic.
  18035. file_magic_cmd=$lt_file_magic_cmd
  18036. # Flag that allows shared libraries with undefined symbols to be built.
  18037. allow_undefined_flag=$lt_allow_undefined_flag_RC
  18038. # Flag that forces no undefined symbols.
  18039. no_undefined_flag=$lt_no_undefined_flag_RC
  18040. # Commands used to finish a libtool library installation in a directory.
  18041. finish_cmds=$lt_finish_cmds
  18042. # Same as above, but a single script fragment to be evaled but not shown.
  18043. finish_eval=$lt_finish_eval
  18044. # Take the output of nm and produce a listing of raw symbols and C names.
  18045. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18046. # Transform the output of nm in a proper C declaration
  18047. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18048. # Transform the output of nm in a C name address pair
  18049. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18050. # This is the shared library runtime path variable.
  18051. runpath_var=$runpath_var
  18052. # This is the shared library path variable.
  18053. shlibpath_var=$shlibpath_var
  18054. # Is shlibpath searched before the hard-coded library search path?
  18055. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18056. # How to hardcode a shared library path into an executable.
  18057. hardcode_action=$hardcode_action_RC
  18058. # Whether we should hardcode library paths into libraries.
  18059. hardcode_into_libs=$hardcode_into_libs
  18060. # Flag to hardcode \$libdir into a binary during linking.
  18061. # This must work even if \$libdir does not exist.
  18062. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  18063. # If ld is used when linking, flag to hardcode \$libdir into
  18064. # a binary during linking. This must work even if \$libdir does
  18065. # not exist.
  18066. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  18067. # Whether we need a single -rpath flag with a separated argument.
  18068. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  18069. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18070. # resulting binary.
  18071. hardcode_direct=$hardcode_direct_RC
  18072. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18073. # resulting binary.
  18074. hardcode_minus_L=$hardcode_minus_L_RC
  18075. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18076. # the resulting binary.
  18077. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  18078. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18079. # and all subsequent libraries and executables linked against it.
  18080. hardcode_automatic=$hardcode_automatic_RC
  18081. # Variables whose values should be saved in libtool wrapper scripts and
  18082. # restored at relink time.
  18083. variables_saved_for_relink="$variables_saved_for_relink"
  18084. # Whether libtool must link a program against all its dependency libraries.
  18085. link_all_deplibs=$link_all_deplibs_RC
  18086. # Compile-time system search path for libraries
  18087. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18088. # Run-time system search path for libraries
  18089. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18090. # Fix the shell variable \$srcfile for the compiler.
  18091. fix_srcfile_path="$fix_srcfile_path_RC"
  18092. # Set to yes if exported symbols are required.
  18093. always_export_symbols=$always_export_symbols_RC
  18094. # The commands to list exported symbols.
  18095. export_symbols_cmds=$lt_export_symbols_cmds_RC
  18096. # The commands to extract the exported symbol list from a shared archive.
  18097. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18098. # Symbols that should not be listed in the preloaded symbols.
  18099. exclude_expsyms=$lt_exclude_expsyms_RC
  18100. # Symbols that must always be exported.
  18101. include_expsyms=$lt_include_expsyms_RC
  18102. # ### END LIBTOOL TAG CONFIG: $tagname
  18103. __EOF__
  18104. else
  18105. # If there is no Makefile yet, we rely on a make rule to execute
  18106. # `config.status --recheck' to rerun these tests and create the
  18107. # libtool script then.
  18108. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18109. if test -f "$ltmain_in"; then
  18110. test -f Makefile && make "$ltmain"
  18111. fi
  18112. fi
  18113. ac_ext=c
  18114. ac_cpp='$CPP $CPPFLAGS'
  18115. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18116. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18117. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18118. CC="$lt_save_CC"
  18119. ;;
  18120. *)
  18121. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18122. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18123. { (exit 1); exit 1; }; }
  18124. ;;
  18125. esac
  18126. # Append the new tag name to the list of available tags.
  18127. if test -n "$tagname" ; then
  18128. available_tags="$available_tags $tagname"
  18129. fi
  18130. fi
  18131. done
  18132. IFS="$lt_save_ifs"
  18133. # Now substitute the updated list of available tags.
  18134. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18135. mv "${ofile}T" "$ofile"
  18136. chmod +x "$ofile"
  18137. else
  18138. rm -f "${ofile}T"
  18139. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18140. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18141. { (exit 1); exit 1; }; }
  18142. fi
  18143. fi
  18144. # This can be used to rebuild libtool when needed
  18145. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18146. # Always use our own libtool.
  18147. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18148. # Prevent multiple expansion
  18149. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18150. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  18151. if test "${ac_cv_header_stdc+set}" = set; then
  18152. echo $ECHO_N "(cached) $ECHO_C" >&6
  18153. else
  18154. cat >conftest.$ac_ext <<_ACEOF
  18155. /* confdefs.h. */
  18156. _ACEOF
  18157. cat confdefs.h >>conftest.$ac_ext
  18158. cat >>conftest.$ac_ext <<_ACEOF
  18159. /* end confdefs.h. */
  18160. #include <stdlib.h>
  18161. #include <stdarg.h>
  18162. #include <string.h>
  18163. #include <float.h>
  18164. int
  18165. main ()
  18166. {
  18167. ;
  18168. return 0;
  18169. }
  18170. _ACEOF
  18171. rm -f conftest.$ac_objext
  18172. if { (ac_try="$ac_compile"
  18173. case "(($ac_try" in
  18174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18175. *) ac_try_echo=$ac_try;;
  18176. esac
  18177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18178. (eval "$ac_compile") 2>conftest.er1
  18179. ac_status=$?
  18180. grep -v '^ *+' conftest.er1 >conftest.err
  18181. rm -f conftest.er1
  18182. cat conftest.err >&5
  18183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18184. (exit $ac_status); } && {
  18185. test -z "$ac_c_werror_flag" ||
  18186. test ! -s conftest.err
  18187. } && test -s conftest.$ac_objext; then
  18188. ac_cv_header_stdc=yes
  18189. else
  18190. echo "$as_me: failed program was:" >&5
  18191. sed 's/^/| /' conftest.$ac_ext >&5
  18192. ac_cv_header_stdc=no
  18193. fi
  18194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18195. if test $ac_cv_header_stdc = yes; then
  18196. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18197. cat >conftest.$ac_ext <<_ACEOF
  18198. /* confdefs.h. */
  18199. _ACEOF
  18200. cat confdefs.h >>conftest.$ac_ext
  18201. cat >>conftest.$ac_ext <<_ACEOF
  18202. /* end confdefs.h. */
  18203. #include <string.h>
  18204. _ACEOF
  18205. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18206. $EGREP "memchr" >/dev/null 2>&1; then
  18207. :
  18208. else
  18209. ac_cv_header_stdc=no
  18210. fi
  18211. rm -f conftest*
  18212. fi
  18213. if test $ac_cv_header_stdc = yes; then
  18214. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18215. cat >conftest.$ac_ext <<_ACEOF
  18216. /* confdefs.h. */
  18217. _ACEOF
  18218. cat confdefs.h >>conftest.$ac_ext
  18219. cat >>conftest.$ac_ext <<_ACEOF
  18220. /* end confdefs.h. */
  18221. #include <stdlib.h>
  18222. _ACEOF
  18223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18224. $EGREP "free" >/dev/null 2>&1; then
  18225. :
  18226. else
  18227. ac_cv_header_stdc=no
  18228. fi
  18229. rm -f conftest*
  18230. fi
  18231. if test $ac_cv_header_stdc = yes; then
  18232. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18233. if test "$cross_compiling" = yes; then
  18234. :
  18235. else
  18236. cat >conftest.$ac_ext <<_ACEOF
  18237. /* confdefs.h. */
  18238. _ACEOF
  18239. cat confdefs.h >>conftest.$ac_ext
  18240. cat >>conftest.$ac_ext <<_ACEOF
  18241. /* end confdefs.h. */
  18242. #include <ctype.h>
  18243. #include <stdlib.h>
  18244. #if ((' ' & 0x0FF) == 0x020)
  18245. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18246. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18247. #else
  18248. # define ISLOWER(c) \
  18249. (('a' <= (c) && (c) <= 'i') \
  18250. || ('j' <= (c) && (c) <= 'r') \
  18251. || ('s' <= (c) && (c) <= 'z'))
  18252. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18253. #endif
  18254. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18255. int
  18256. main ()
  18257. {
  18258. int i;
  18259. for (i = 0; i < 256; i++)
  18260. if (XOR (islower (i), ISLOWER (i))
  18261. || toupper (i) != TOUPPER (i))
  18262. return 2;
  18263. return 0;
  18264. }
  18265. _ACEOF
  18266. rm -f conftest$ac_exeext
  18267. if { (ac_try="$ac_link"
  18268. case "(($ac_try" in
  18269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18270. *) ac_try_echo=$ac_try;;
  18271. esac
  18272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18273. (eval "$ac_link") 2>&5
  18274. ac_status=$?
  18275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18276. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18277. { (case "(($ac_try" in
  18278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18279. *) ac_try_echo=$ac_try;;
  18280. esac
  18281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18282. (eval "$ac_try") 2>&5
  18283. ac_status=$?
  18284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18285. (exit $ac_status); }; }; then
  18286. :
  18287. else
  18288. echo "$as_me: program exited with status $ac_status" >&5
  18289. echo "$as_me: failed program was:" >&5
  18290. sed 's/^/| /' conftest.$ac_ext >&5
  18291. ( exit $ac_status )
  18292. ac_cv_header_stdc=no
  18293. fi
  18294. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18295. fi
  18296. fi
  18297. fi
  18298. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18299. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  18300. if test $ac_cv_header_stdc = yes; then
  18301. cat >>confdefs.h <<\_ACEOF
  18302. #define STDC_HEADERS 1
  18303. _ACEOF
  18304. fi
  18305. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  18306. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  18307. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  18308. echo $ECHO_N "(cached) $ECHO_C" >&6
  18309. else
  18310. cat >conftest.$ac_ext <<_ACEOF
  18311. /* confdefs.h. */
  18312. _ACEOF
  18313. cat confdefs.h >>conftest.$ac_ext
  18314. cat >>conftest.$ac_ext <<_ACEOF
  18315. /* end confdefs.h. */
  18316. #include <sys/types.h>
  18317. int
  18318. main ()
  18319. {
  18320. return makedev(0, 0);
  18321. ;
  18322. return 0;
  18323. }
  18324. _ACEOF
  18325. rm -f conftest.$ac_objext conftest$ac_exeext
  18326. if { (ac_try="$ac_link"
  18327. case "(($ac_try" in
  18328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18329. *) ac_try_echo=$ac_try;;
  18330. esac
  18331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18332. (eval "$ac_link") 2>conftest.er1
  18333. ac_status=$?
  18334. grep -v '^ *+' conftest.er1 >conftest.err
  18335. rm -f conftest.er1
  18336. cat conftest.err >&5
  18337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18338. (exit $ac_status); } && {
  18339. test -z "$ac_c_werror_flag" ||
  18340. test ! -s conftest.err
  18341. } && test -s conftest$ac_exeext &&
  18342. $as_test_x conftest$ac_exeext; then
  18343. ac_cv_header_sys_types_h_makedev=yes
  18344. else
  18345. echo "$as_me: failed program was:" >&5
  18346. sed 's/^/| /' conftest.$ac_ext >&5
  18347. ac_cv_header_sys_types_h_makedev=no
  18348. fi
  18349. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18350. conftest$ac_exeext conftest.$ac_ext
  18351. fi
  18352. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  18353. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  18354. if test $ac_cv_header_sys_types_h_makedev = no; then
  18355. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18356. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18357. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18358. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18359. echo $ECHO_N "(cached) $ECHO_C" >&6
  18360. fi
  18361. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18362. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18363. else
  18364. # Is the header compilable?
  18365. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  18366. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  18367. cat >conftest.$ac_ext <<_ACEOF
  18368. /* confdefs.h. */
  18369. _ACEOF
  18370. cat confdefs.h >>conftest.$ac_ext
  18371. cat >>conftest.$ac_ext <<_ACEOF
  18372. /* end confdefs.h. */
  18373. $ac_includes_default
  18374. #include <sys/mkdev.h>
  18375. _ACEOF
  18376. rm -f conftest.$ac_objext
  18377. if { (ac_try="$ac_compile"
  18378. case "(($ac_try" in
  18379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18380. *) ac_try_echo=$ac_try;;
  18381. esac
  18382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18383. (eval "$ac_compile") 2>conftest.er1
  18384. ac_status=$?
  18385. grep -v '^ *+' conftest.er1 >conftest.err
  18386. rm -f conftest.er1
  18387. cat conftest.err >&5
  18388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18389. (exit $ac_status); } && {
  18390. test -z "$ac_c_werror_flag" ||
  18391. test ! -s conftest.err
  18392. } && test -s conftest.$ac_objext; then
  18393. ac_header_compiler=yes
  18394. else
  18395. echo "$as_me: failed program was:" >&5
  18396. sed 's/^/| /' conftest.$ac_ext >&5
  18397. ac_header_compiler=no
  18398. fi
  18399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18400. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18401. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18402. # Is the header present?
  18403. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  18404. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  18405. cat >conftest.$ac_ext <<_ACEOF
  18406. /* confdefs.h. */
  18407. _ACEOF
  18408. cat confdefs.h >>conftest.$ac_ext
  18409. cat >>conftest.$ac_ext <<_ACEOF
  18410. /* end confdefs.h. */
  18411. #include <sys/mkdev.h>
  18412. _ACEOF
  18413. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18414. case "(($ac_try" in
  18415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18416. *) ac_try_echo=$ac_try;;
  18417. esac
  18418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18419. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18420. ac_status=$?
  18421. grep -v '^ *+' conftest.er1 >conftest.err
  18422. rm -f conftest.er1
  18423. cat conftest.err >&5
  18424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18425. (exit $ac_status); } >/dev/null && {
  18426. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18427. test ! -s conftest.err
  18428. }; then
  18429. ac_header_preproc=yes
  18430. else
  18431. echo "$as_me: failed program was:" >&5
  18432. sed 's/^/| /' conftest.$ac_ext >&5
  18433. ac_header_preproc=no
  18434. fi
  18435. rm -f conftest.err conftest.$ac_ext
  18436. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18437. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18438. # So? What about this header?
  18439. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18440. yes:no: )
  18441. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18442. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18443. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  18444. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  18445. ac_header_preproc=yes
  18446. ;;
  18447. no:yes:* )
  18448. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  18449. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  18450. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  18451. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  18452. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  18453. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  18454. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  18455. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18456. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  18457. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  18458. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  18459. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  18460. ( cat <<\_ASBOX
  18461. ## ---------------------------------- ##
  18462. ## Report this to christos@astron.com ##
  18463. ## ---------------------------------- ##
  18464. _ASBOX
  18465. ) | sed "s/^/$as_me: WARNING: /" >&2
  18466. ;;
  18467. esac
  18468. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18469. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18470. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18471. echo $ECHO_N "(cached) $ECHO_C" >&6
  18472. else
  18473. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  18474. fi
  18475. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18476. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18477. fi
  18478. if test $ac_cv_header_sys_mkdev_h = yes; then
  18479. cat >>confdefs.h <<\_ACEOF
  18480. #define MAJOR_IN_MKDEV 1
  18481. _ACEOF
  18482. fi
  18483. if test $ac_cv_header_sys_mkdev_h = no; then
  18484. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18485. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18486. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18487. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18488. echo $ECHO_N "(cached) $ECHO_C" >&6
  18489. fi
  18490. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18491. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18492. else
  18493. # Is the header compilable?
  18494. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  18495. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  18496. cat >conftest.$ac_ext <<_ACEOF
  18497. /* confdefs.h. */
  18498. _ACEOF
  18499. cat confdefs.h >>conftest.$ac_ext
  18500. cat >>conftest.$ac_ext <<_ACEOF
  18501. /* end confdefs.h. */
  18502. $ac_includes_default
  18503. #include <sys/sysmacros.h>
  18504. _ACEOF
  18505. rm -f conftest.$ac_objext
  18506. if { (ac_try="$ac_compile"
  18507. case "(($ac_try" in
  18508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18509. *) ac_try_echo=$ac_try;;
  18510. esac
  18511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18512. (eval "$ac_compile") 2>conftest.er1
  18513. ac_status=$?
  18514. grep -v '^ *+' conftest.er1 >conftest.err
  18515. rm -f conftest.er1
  18516. cat conftest.err >&5
  18517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18518. (exit $ac_status); } && {
  18519. test -z "$ac_c_werror_flag" ||
  18520. test ! -s conftest.err
  18521. } && test -s conftest.$ac_objext; then
  18522. ac_header_compiler=yes
  18523. else
  18524. echo "$as_me: failed program was:" >&5
  18525. sed 's/^/| /' conftest.$ac_ext >&5
  18526. ac_header_compiler=no
  18527. fi
  18528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18529. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18530. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18531. # Is the header present?
  18532. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18533. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  18534. cat >conftest.$ac_ext <<_ACEOF
  18535. /* confdefs.h. */
  18536. _ACEOF
  18537. cat confdefs.h >>conftest.$ac_ext
  18538. cat >>conftest.$ac_ext <<_ACEOF
  18539. /* end confdefs.h. */
  18540. #include <sys/sysmacros.h>
  18541. _ACEOF
  18542. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18543. case "(($ac_try" in
  18544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18545. *) ac_try_echo=$ac_try;;
  18546. esac
  18547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18548. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18549. ac_status=$?
  18550. grep -v '^ *+' conftest.er1 >conftest.err
  18551. rm -f conftest.er1
  18552. cat conftest.err >&5
  18553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18554. (exit $ac_status); } >/dev/null && {
  18555. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18556. test ! -s conftest.err
  18557. }; then
  18558. ac_header_preproc=yes
  18559. else
  18560. echo "$as_me: failed program was:" >&5
  18561. sed 's/^/| /' conftest.$ac_ext >&5
  18562. ac_header_preproc=no
  18563. fi
  18564. rm -f conftest.err conftest.$ac_ext
  18565. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18566. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18567. # So? What about this header?
  18568. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18569. yes:no: )
  18570. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18571. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18572. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18573. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18574. ac_header_preproc=yes
  18575. ;;
  18576. no:yes:* )
  18577. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18578. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18579. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18580. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18581. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18582. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18583. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18584. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18585. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18586. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18587. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18588. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18589. ( cat <<\_ASBOX
  18590. ## ---------------------------------- ##
  18591. ## Report this to christos@astron.com ##
  18592. ## ---------------------------------- ##
  18593. _ASBOX
  18594. ) | sed "s/^/$as_me: WARNING: /" >&2
  18595. ;;
  18596. esac
  18597. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18598. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18599. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18600. echo $ECHO_N "(cached) $ECHO_C" >&6
  18601. else
  18602. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18603. fi
  18604. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18605. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18606. fi
  18607. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18608. cat >>confdefs.h <<\_ACEOF
  18609. #define MAJOR_IN_SYSMACROS 1
  18610. _ACEOF
  18611. fi
  18612. fi
  18613. fi
  18614. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18615. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  18616. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  18617. echo $ECHO_N "(cached) $ECHO_C" >&6
  18618. else
  18619. cat >conftest.$ac_ext <<_ACEOF
  18620. /* confdefs.h. */
  18621. _ACEOF
  18622. cat confdefs.h >>conftest.$ac_ext
  18623. cat >>conftest.$ac_ext <<_ACEOF
  18624. /* end confdefs.h. */
  18625. #include <sys/types.h>
  18626. #include <sys/wait.h>
  18627. #ifndef WEXITSTATUS
  18628. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  18629. #endif
  18630. #ifndef WIFEXITED
  18631. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18632. #endif
  18633. int
  18634. main ()
  18635. {
  18636. int s;
  18637. wait (&s);
  18638. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18639. ;
  18640. return 0;
  18641. }
  18642. _ACEOF
  18643. rm -f conftest.$ac_objext
  18644. if { (ac_try="$ac_compile"
  18645. case "(($ac_try" in
  18646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18647. *) ac_try_echo=$ac_try;;
  18648. esac
  18649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18650. (eval "$ac_compile") 2>conftest.er1
  18651. ac_status=$?
  18652. grep -v '^ *+' conftest.er1 >conftest.err
  18653. rm -f conftest.er1
  18654. cat conftest.err >&5
  18655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18656. (exit $ac_status); } && {
  18657. test -z "$ac_c_werror_flag" ||
  18658. test ! -s conftest.err
  18659. } && test -s conftest.$ac_objext; then
  18660. ac_cv_header_sys_wait_h=yes
  18661. else
  18662. echo "$as_me: failed program was:" >&5
  18663. sed 's/^/| /' conftest.$ac_ext >&5
  18664. ac_cv_header_sys_wait_h=no
  18665. fi
  18666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18667. fi
  18668. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  18669. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  18670. if test $ac_cv_header_sys_wait_h = yes; then
  18671. cat >>confdefs.h <<\_ACEOF
  18672. #define HAVE_SYS_WAIT_H 1
  18673. _ACEOF
  18674. fi
  18675. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  18676. do
  18677. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18678. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18679. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18680. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18681. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18682. echo $ECHO_N "(cached) $ECHO_C" >&6
  18683. fi
  18684. ac_res=`eval echo '${'$as_ac_Header'}'`
  18685. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18686. echo "${ECHO_T}$ac_res" >&6; }
  18687. else
  18688. # Is the header compilable?
  18689. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18690. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18691. cat >conftest.$ac_ext <<_ACEOF
  18692. /* confdefs.h. */
  18693. _ACEOF
  18694. cat confdefs.h >>conftest.$ac_ext
  18695. cat >>conftest.$ac_ext <<_ACEOF
  18696. /* end confdefs.h. */
  18697. $ac_includes_default
  18698. #include <$ac_header>
  18699. _ACEOF
  18700. rm -f conftest.$ac_objext
  18701. if { (ac_try="$ac_compile"
  18702. case "(($ac_try" in
  18703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18704. *) ac_try_echo=$ac_try;;
  18705. esac
  18706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18707. (eval "$ac_compile") 2>conftest.er1
  18708. ac_status=$?
  18709. grep -v '^ *+' conftest.er1 >conftest.err
  18710. rm -f conftest.er1
  18711. cat conftest.err >&5
  18712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18713. (exit $ac_status); } && {
  18714. test -z "$ac_c_werror_flag" ||
  18715. test ! -s conftest.err
  18716. } && test -s conftest.$ac_objext; then
  18717. ac_header_compiler=yes
  18718. else
  18719. echo "$as_me: failed program was:" >&5
  18720. sed 's/^/| /' conftest.$ac_ext >&5
  18721. ac_header_compiler=no
  18722. fi
  18723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18724. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18725. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18726. # Is the header present?
  18727. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18728. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18729. cat >conftest.$ac_ext <<_ACEOF
  18730. /* confdefs.h. */
  18731. _ACEOF
  18732. cat confdefs.h >>conftest.$ac_ext
  18733. cat >>conftest.$ac_ext <<_ACEOF
  18734. /* end confdefs.h. */
  18735. #include <$ac_header>
  18736. _ACEOF
  18737. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18738. case "(($ac_try" in
  18739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18740. *) ac_try_echo=$ac_try;;
  18741. esac
  18742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18743. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18744. ac_status=$?
  18745. grep -v '^ *+' conftest.er1 >conftest.err
  18746. rm -f conftest.er1
  18747. cat conftest.err >&5
  18748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18749. (exit $ac_status); } >/dev/null && {
  18750. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18751. test ! -s conftest.err
  18752. }; then
  18753. ac_header_preproc=yes
  18754. else
  18755. echo "$as_me: failed program was:" >&5
  18756. sed 's/^/| /' conftest.$ac_ext >&5
  18757. ac_header_preproc=no
  18758. fi
  18759. rm -f conftest.err conftest.$ac_ext
  18760. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18761. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18762. # So? What about this header?
  18763. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18764. yes:no: )
  18765. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18766. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18767. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18768. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18769. ac_header_preproc=yes
  18770. ;;
  18771. no:yes:* )
  18772. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18773. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18774. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18775. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18776. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18777. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18778. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18779. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18780. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18781. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18782. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18783. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18784. ( cat <<\_ASBOX
  18785. ## ---------------------------------- ##
  18786. ## Report this to christos@astron.com ##
  18787. ## ---------------------------------- ##
  18788. _ASBOX
  18789. ) | sed "s/^/$as_me: WARNING: /" >&2
  18790. ;;
  18791. esac
  18792. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18793. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18794. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18795. echo $ECHO_N "(cached) $ECHO_C" >&6
  18796. else
  18797. eval "$as_ac_Header=\$ac_header_preproc"
  18798. fi
  18799. ac_res=`eval echo '${'$as_ac_Header'}'`
  18800. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18801. echo "${ECHO_T}$ac_res" >&6; }
  18802. fi
  18803. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18804. cat >>confdefs.h <<_ACEOF
  18805. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18806. _ACEOF
  18807. fi
  18808. done
  18809. for ac_header in utime.h wchar.h wctype.h limits.h
  18810. do
  18811. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18812. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18813. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18814. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18815. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18816. echo $ECHO_N "(cached) $ECHO_C" >&6
  18817. fi
  18818. ac_res=`eval echo '${'$as_ac_Header'}'`
  18819. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18820. echo "${ECHO_T}$ac_res" >&6; }
  18821. else
  18822. # Is the header compilable?
  18823. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18824. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18825. cat >conftest.$ac_ext <<_ACEOF
  18826. /* confdefs.h. */
  18827. _ACEOF
  18828. cat confdefs.h >>conftest.$ac_ext
  18829. cat >>conftest.$ac_ext <<_ACEOF
  18830. /* end confdefs.h. */
  18831. $ac_includes_default
  18832. #include <$ac_header>
  18833. _ACEOF
  18834. rm -f conftest.$ac_objext
  18835. if { (ac_try="$ac_compile"
  18836. case "(($ac_try" in
  18837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18838. *) ac_try_echo=$ac_try;;
  18839. esac
  18840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18841. (eval "$ac_compile") 2>conftest.er1
  18842. ac_status=$?
  18843. grep -v '^ *+' conftest.er1 >conftest.err
  18844. rm -f conftest.er1
  18845. cat conftest.err >&5
  18846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18847. (exit $ac_status); } && {
  18848. test -z "$ac_c_werror_flag" ||
  18849. test ! -s conftest.err
  18850. } && test -s conftest.$ac_objext; then
  18851. ac_header_compiler=yes
  18852. else
  18853. echo "$as_me: failed program was:" >&5
  18854. sed 's/^/| /' conftest.$ac_ext >&5
  18855. ac_header_compiler=no
  18856. fi
  18857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18858. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18859. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18860. # Is the header present?
  18861. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18862. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18863. cat >conftest.$ac_ext <<_ACEOF
  18864. /* confdefs.h. */
  18865. _ACEOF
  18866. cat confdefs.h >>conftest.$ac_ext
  18867. cat >>conftest.$ac_ext <<_ACEOF
  18868. /* end confdefs.h. */
  18869. #include <$ac_header>
  18870. _ACEOF
  18871. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18872. case "(($ac_try" in
  18873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18874. *) ac_try_echo=$ac_try;;
  18875. esac
  18876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18877. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18878. ac_status=$?
  18879. grep -v '^ *+' conftest.er1 >conftest.err
  18880. rm -f conftest.er1
  18881. cat conftest.err >&5
  18882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18883. (exit $ac_status); } >/dev/null && {
  18884. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18885. test ! -s conftest.err
  18886. }; then
  18887. ac_header_preproc=yes
  18888. else
  18889. echo "$as_me: failed program was:" >&5
  18890. sed 's/^/| /' conftest.$ac_ext >&5
  18891. ac_header_preproc=no
  18892. fi
  18893. rm -f conftest.err conftest.$ac_ext
  18894. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18895. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18896. # So? What about this header?
  18897. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18898. yes:no: )
  18899. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18900. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18901. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18902. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18903. ac_header_preproc=yes
  18904. ;;
  18905. no:yes:* )
  18906. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18907. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18908. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18909. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18910. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18911. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18912. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18913. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18914. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18915. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18916. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18917. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18918. ( cat <<\_ASBOX
  18919. ## ---------------------------------- ##
  18920. ## Report this to christos@astron.com ##
  18921. ## ---------------------------------- ##
  18922. _ASBOX
  18923. ) | sed "s/^/$as_me: WARNING: /" >&2
  18924. ;;
  18925. esac
  18926. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18927. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18928. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18929. echo $ECHO_N "(cached) $ECHO_C" >&6
  18930. else
  18931. eval "$as_ac_Header=\$ac_header_preproc"
  18932. fi
  18933. ac_res=`eval echo '${'$as_ac_Header'}'`
  18934. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18935. echo "${ECHO_T}$ac_res" >&6; }
  18936. fi
  18937. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18938. cat >>confdefs.h <<_ACEOF
  18939. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18940. _ACEOF
  18941. fi
  18942. done
  18943. for ac_header in getopt.h err.h
  18944. do
  18945. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18946. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18947. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18948. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18949. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18950. echo $ECHO_N "(cached) $ECHO_C" >&6
  18951. fi
  18952. ac_res=`eval echo '${'$as_ac_Header'}'`
  18953. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18954. echo "${ECHO_T}$ac_res" >&6; }
  18955. else
  18956. # Is the header compilable?
  18957. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18958. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18959. cat >conftest.$ac_ext <<_ACEOF
  18960. /* confdefs.h. */
  18961. _ACEOF
  18962. cat confdefs.h >>conftest.$ac_ext
  18963. cat >>conftest.$ac_ext <<_ACEOF
  18964. /* end confdefs.h. */
  18965. $ac_includes_default
  18966. #include <$ac_header>
  18967. _ACEOF
  18968. rm -f conftest.$ac_objext
  18969. if { (ac_try="$ac_compile"
  18970. case "(($ac_try" in
  18971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18972. *) ac_try_echo=$ac_try;;
  18973. esac
  18974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18975. (eval "$ac_compile") 2>conftest.er1
  18976. ac_status=$?
  18977. grep -v '^ *+' conftest.er1 >conftest.err
  18978. rm -f conftest.er1
  18979. cat conftest.err >&5
  18980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18981. (exit $ac_status); } && {
  18982. test -z "$ac_c_werror_flag" ||
  18983. test ! -s conftest.err
  18984. } && test -s conftest.$ac_objext; then
  18985. ac_header_compiler=yes
  18986. else
  18987. echo "$as_me: failed program was:" >&5
  18988. sed 's/^/| /' conftest.$ac_ext >&5
  18989. ac_header_compiler=no
  18990. fi
  18991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18992. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18993. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18994. # Is the header present?
  18995. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18996. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18997. cat >conftest.$ac_ext <<_ACEOF
  18998. /* confdefs.h. */
  18999. _ACEOF
  19000. cat confdefs.h >>conftest.$ac_ext
  19001. cat >>conftest.$ac_ext <<_ACEOF
  19002. /* end confdefs.h. */
  19003. #include <$ac_header>
  19004. _ACEOF
  19005. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19006. case "(($ac_try" in
  19007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19008. *) ac_try_echo=$ac_try;;
  19009. esac
  19010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19011. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19012. ac_status=$?
  19013. grep -v '^ *+' conftest.er1 >conftest.err
  19014. rm -f conftest.er1
  19015. cat conftest.err >&5
  19016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19017. (exit $ac_status); } >/dev/null && {
  19018. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19019. test ! -s conftest.err
  19020. }; then
  19021. ac_header_preproc=yes
  19022. else
  19023. echo "$as_me: failed program was:" >&5
  19024. sed 's/^/| /' conftest.$ac_ext >&5
  19025. ac_header_preproc=no
  19026. fi
  19027. rm -f conftest.err conftest.$ac_ext
  19028. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19029. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19030. # So? What about this header?
  19031. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19032. yes:no: )
  19033. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19034. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19035. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19036. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19037. ac_header_preproc=yes
  19038. ;;
  19039. no:yes:* )
  19040. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19041. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19042. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19043. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19044. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19045. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19046. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19047. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19048. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19049. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19050. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19051. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19052. ( cat <<\_ASBOX
  19053. ## ---------------------------------- ##
  19054. ## Report this to christos@astron.com ##
  19055. ## ---------------------------------- ##
  19056. _ASBOX
  19057. ) | sed "s/^/$as_me: WARNING: /" >&2
  19058. ;;
  19059. esac
  19060. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19061. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19062. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19063. echo $ECHO_N "(cached) $ECHO_C" >&6
  19064. else
  19065. eval "$as_ac_Header=\$ac_header_preproc"
  19066. fi
  19067. ac_res=`eval echo '${'$as_ac_Header'}'`
  19068. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19069. echo "${ECHO_T}$ac_res" >&6; }
  19070. fi
  19071. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19072. cat >>confdefs.h <<_ACEOF
  19073. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19074. _ACEOF
  19075. fi
  19076. done
  19077. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  19078. do
  19079. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19080. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19081. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19082. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19083. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19084. echo $ECHO_N "(cached) $ECHO_C" >&6
  19085. fi
  19086. ac_res=`eval echo '${'$as_ac_Header'}'`
  19087. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19088. echo "${ECHO_T}$ac_res" >&6; }
  19089. else
  19090. # Is the header compilable?
  19091. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19092. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19093. cat >conftest.$ac_ext <<_ACEOF
  19094. /* confdefs.h. */
  19095. _ACEOF
  19096. cat confdefs.h >>conftest.$ac_ext
  19097. cat >>conftest.$ac_ext <<_ACEOF
  19098. /* end confdefs.h. */
  19099. $ac_includes_default
  19100. #include <$ac_header>
  19101. _ACEOF
  19102. rm -f conftest.$ac_objext
  19103. if { (ac_try="$ac_compile"
  19104. case "(($ac_try" in
  19105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19106. *) ac_try_echo=$ac_try;;
  19107. esac
  19108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19109. (eval "$ac_compile") 2>conftest.er1
  19110. ac_status=$?
  19111. grep -v '^ *+' conftest.er1 >conftest.err
  19112. rm -f conftest.er1
  19113. cat conftest.err >&5
  19114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19115. (exit $ac_status); } && {
  19116. test -z "$ac_c_werror_flag" ||
  19117. test ! -s conftest.err
  19118. } && test -s conftest.$ac_objext; then
  19119. ac_header_compiler=yes
  19120. else
  19121. echo "$as_me: failed program was:" >&5
  19122. sed 's/^/| /' conftest.$ac_ext >&5
  19123. ac_header_compiler=no
  19124. fi
  19125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19126. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19127. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19128. # Is the header present?
  19129. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19130. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19131. cat >conftest.$ac_ext <<_ACEOF
  19132. /* confdefs.h. */
  19133. _ACEOF
  19134. cat confdefs.h >>conftest.$ac_ext
  19135. cat >>conftest.$ac_ext <<_ACEOF
  19136. /* end confdefs.h. */
  19137. #include <$ac_header>
  19138. _ACEOF
  19139. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19140. case "(($ac_try" in
  19141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19142. *) ac_try_echo=$ac_try;;
  19143. esac
  19144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19146. ac_status=$?
  19147. grep -v '^ *+' conftest.er1 >conftest.err
  19148. rm -f conftest.er1
  19149. cat conftest.err >&5
  19150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19151. (exit $ac_status); } >/dev/null && {
  19152. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19153. test ! -s conftest.err
  19154. }; then
  19155. ac_header_preproc=yes
  19156. else
  19157. echo "$as_me: failed program was:" >&5
  19158. sed 's/^/| /' conftest.$ac_ext >&5
  19159. ac_header_preproc=no
  19160. fi
  19161. rm -f conftest.err conftest.$ac_ext
  19162. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19163. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19164. # So? What about this header?
  19165. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19166. yes:no: )
  19167. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19168. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19169. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19170. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19171. ac_header_preproc=yes
  19172. ;;
  19173. no:yes:* )
  19174. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19175. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19176. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19177. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19178. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19179. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19180. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19181. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19182. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19183. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19184. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19185. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19186. ( cat <<\_ASBOX
  19187. ## ---------------------------------- ##
  19188. ## Report this to christos@astron.com ##
  19189. ## ---------------------------------- ##
  19190. _ASBOX
  19191. ) | sed "s/^/$as_me: WARNING: /" >&2
  19192. ;;
  19193. esac
  19194. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19195. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19196. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19197. echo $ECHO_N "(cached) $ECHO_C" >&6
  19198. else
  19199. eval "$as_ac_Header=\$ac_header_preproc"
  19200. fi
  19201. ac_res=`eval echo '${'$as_ac_Header'}'`
  19202. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19203. echo "${ECHO_T}$ac_res" >&6; }
  19204. fi
  19205. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19206. cat >>confdefs.h <<_ACEOF
  19207. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19208. _ACEOF
  19209. fi
  19210. done
  19211. for ac_header in zlib.h
  19212. do
  19213. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19214. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19215. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19216. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19217. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19218. echo $ECHO_N "(cached) $ECHO_C" >&6
  19219. fi
  19220. ac_res=`eval echo '${'$as_ac_Header'}'`
  19221. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19222. echo "${ECHO_T}$ac_res" >&6; }
  19223. else
  19224. # Is the header compilable?
  19225. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19226. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19227. cat >conftest.$ac_ext <<_ACEOF
  19228. /* confdefs.h. */
  19229. _ACEOF
  19230. cat confdefs.h >>conftest.$ac_ext
  19231. cat >>conftest.$ac_ext <<_ACEOF
  19232. /* end confdefs.h. */
  19233. $ac_includes_default
  19234. #include <$ac_header>
  19235. _ACEOF
  19236. rm -f conftest.$ac_objext
  19237. if { (ac_try="$ac_compile"
  19238. case "(($ac_try" in
  19239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19240. *) ac_try_echo=$ac_try;;
  19241. esac
  19242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19243. (eval "$ac_compile") 2>conftest.er1
  19244. ac_status=$?
  19245. grep -v '^ *+' conftest.er1 >conftest.err
  19246. rm -f conftest.er1
  19247. cat conftest.err >&5
  19248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19249. (exit $ac_status); } && {
  19250. test -z "$ac_c_werror_flag" ||
  19251. test ! -s conftest.err
  19252. } && test -s conftest.$ac_objext; then
  19253. ac_header_compiler=yes
  19254. else
  19255. echo "$as_me: failed program was:" >&5
  19256. sed 's/^/| /' conftest.$ac_ext >&5
  19257. ac_header_compiler=no
  19258. fi
  19259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19260. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19261. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19262. # Is the header present?
  19263. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19264. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19265. cat >conftest.$ac_ext <<_ACEOF
  19266. /* confdefs.h. */
  19267. _ACEOF
  19268. cat confdefs.h >>conftest.$ac_ext
  19269. cat >>conftest.$ac_ext <<_ACEOF
  19270. /* end confdefs.h. */
  19271. #include <$ac_header>
  19272. _ACEOF
  19273. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19274. case "(($ac_try" in
  19275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19276. *) ac_try_echo=$ac_try;;
  19277. esac
  19278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19279. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19280. ac_status=$?
  19281. grep -v '^ *+' conftest.er1 >conftest.err
  19282. rm -f conftest.er1
  19283. cat conftest.err >&5
  19284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19285. (exit $ac_status); } >/dev/null && {
  19286. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19287. test ! -s conftest.err
  19288. }; then
  19289. ac_header_preproc=yes
  19290. else
  19291. echo "$as_me: failed program was:" >&5
  19292. sed 's/^/| /' conftest.$ac_ext >&5
  19293. ac_header_preproc=no
  19294. fi
  19295. rm -f conftest.err conftest.$ac_ext
  19296. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19297. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19298. # So? What about this header?
  19299. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19300. yes:no: )
  19301. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19302. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19303. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19304. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19305. ac_header_preproc=yes
  19306. ;;
  19307. no:yes:* )
  19308. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19309. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19310. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19311. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19312. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19313. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19314. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19315. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19316. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19317. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19318. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19319. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19320. ( cat <<\_ASBOX
  19321. ## ---------------------------------- ##
  19322. ## Report this to christos@astron.com ##
  19323. ## ---------------------------------- ##
  19324. _ASBOX
  19325. ) | sed "s/^/$as_me: WARNING: /" >&2
  19326. ;;
  19327. esac
  19328. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19329. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19330. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19331. echo $ECHO_N "(cached) $ECHO_C" >&6
  19332. else
  19333. eval "$as_ac_Header=\$ac_header_preproc"
  19334. fi
  19335. ac_res=`eval echo '${'$as_ac_Header'}'`
  19336. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19337. echo "${ECHO_T}$ac_res" >&6; }
  19338. fi
  19339. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19340. cat >>confdefs.h <<_ACEOF
  19341. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19342. _ACEOF
  19343. fi
  19344. done
  19345. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19346. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19347. if test "${ac_cv_c_const+set}" = set; then
  19348. echo $ECHO_N "(cached) $ECHO_C" >&6
  19349. else
  19350. cat >conftest.$ac_ext <<_ACEOF
  19351. /* confdefs.h. */
  19352. _ACEOF
  19353. cat confdefs.h >>conftest.$ac_ext
  19354. cat >>conftest.$ac_ext <<_ACEOF
  19355. /* end confdefs.h. */
  19356. int
  19357. main ()
  19358. {
  19359. /* FIXME: Include the comments suggested by Paul. */
  19360. #ifndef __cplusplus
  19361. /* Ultrix mips cc rejects this. */
  19362. typedef int charset[2];
  19363. const charset cs;
  19364. /* SunOS 4.1.1 cc rejects this. */
  19365. char const *const *pcpcc;
  19366. char **ppc;
  19367. /* NEC SVR4.0.2 mips cc rejects this. */
  19368. struct point {int x, y;};
  19369. static struct point const zero = {0,0};
  19370. /* AIX XL C 1.02.0.0 rejects this.
  19371. It does not let you subtract one const X* pointer from another in
  19372. an arm of an if-expression whose if-part is not a constant
  19373. expression */
  19374. const char *g = "string";
  19375. pcpcc = &g + (g ? g-g : 0);
  19376. /* HPUX 7.0 cc rejects these. */
  19377. ++pcpcc;
  19378. ppc = (char**) pcpcc;
  19379. pcpcc = (char const *const *) ppc;
  19380. { /* SCO 3.2v4 cc rejects this. */
  19381. char *t;
  19382. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19383. *t++ = 0;
  19384. if (s) return 0;
  19385. }
  19386. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19387. int x[] = {25, 17};
  19388. const int *foo = &x[0];
  19389. ++foo;
  19390. }
  19391. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19392. typedef const int *iptr;
  19393. iptr p = 0;
  19394. ++p;
  19395. }
  19396. { /* AIX XL C 1.02.0.0 rejects this saying
  19397. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19398. struct s { int j; const int *ap[3]; };
  19399. struct s *b; b->j = 5;
  19400. }
  19401. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19402. const int foo = 10;
  19403. if (!foo) return 0;
  19404. }
  19405. return !cs[0] && !zero.x;
  19406. #endif
  19407. ;
  19408. return 0;
  19409. }
  19410. _ACEOF
  19411. rm -f conftest.$ac_objext
  19412. if { (ac_try="$ac_compile"
  19413. case "(($ac_try" in
  19414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19415. *) ac_try_echo=$ac_try;;
  19416. esac
  19417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19418. (eval "$ac_compile") 2>conftest.er1
  19419. ac_status=$?
  19420. grep -v '^ *+' conftest.er1 >conftest.err
  19421. rm -f conftest.er1
  19422. cat conftest.err >&5
  19423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19424. (exit $ac_status); } && {
  19425. test -z "$ac_c_werror_flag" ||
  19426. test ! -s conftest.err
  19427. } && test -s conftest.$ac_objext; then
  19428. ac_cv_c_const=yes
  19429. else
  19430. echo "$as_me: failed program was:" >&5
  19431. sed 's/^/| /' conftest.$ac_ext >&5
  19432. ac_cv_c_const=no
  19433. fi
  19434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19435. fi
  19436. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19437. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  19438. if test $ac_cv_c_const = no; then
  19439. cat >>confdefs.h <<\_ACEOF
  19440. #define const
  19441. _ACEOF
  19442. fi
  19443. { echo "$as_me:$LINENO: checking for off_t" >&5
  19444. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  19445. if test "${ac_cv_type_off_t+set}" = set; then
  19446. echo $ECHO_N "(cached) $ECHO_C" >&6
  19447. else
  19448. cat >conftest.$ac_ext <<_ACEOF
  19449. /* confdefs.h. */
  19450. _ACEOF
  19451. cat confdefs.h >>conftest.$ac_ext
  19452. cat >>conftest.$ac_ext <<_ACEOF
  19453. /* end confdefs.h. */
  19454. $ac_includes_default
  19455. typedef off_t ac__type_new_;
  19456. int
  19457. main ()
  19458. {
  19459. if ((ac__type_new_ *) 0)
  19460. return 0;
  19461. if (sizeof (ac__type_new_))
  19462. return 0;
  19463. ;
  19464. return 0;
  19465. }
  19466. _ACEOF
  19467. rm -f conftest.$ac_objext
  19468. if { (ac_try="$ac_compile"
  19469. case "(($ac_try" in
  19470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19471. *) ac_try_echo=$ac_try;;
  19472. esac
  19473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19474. (eval "$ac_compile") 2>conftest.er1
  19475. ac_status=$?
  19476. grep -v '^ *+' conftest.er1 >conftest.err
  19477. rm -f conftest.er1
  19478. cat conftest.err >&5
  19479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19480. (exit $ac_status); } && {
  19481. test -z "$ac_c_werror_flag" ||
  19482. test ! -s conftest.err
  19483. } && test -s conftest.$ac_objext; then
  19484. ac_cv_type_off_t=yes
  19485. else
  19486. echo "$as_me: failed program was:" >&5
  19487. sed 's/^/| /' conftest.$ac_ext >&5
  19488. ac_cv_type_off_t=no
  19489. fi
  19490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19491. fi
  19492. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  19493. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  19494. if test $ac_cv_type_off_t = yes; then
  19495. :
  19496. else
  19497. cat >>confdefs.h <<_ACEOF
  19498. #define off_t long int
  19499. _ACEOF
  19500. fi
  19501. { echo "$as_me:$LINENO: checking for size_t" >&5
  19502. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19503. if test "${ac_cv_type_size_t+set}" = set; then
  19504. echo $ECHO_N "(cached) $ECHO_C" >&6
  19505. else
  19506. cat >conftest.$ac_ext <<_ACEOF
  19507. /* confdefs.h. */
  19508. _ACEOF
  19509. cat confdefs.h >>conftest.$ac_ext
  19510. cat >>conftest.$ac_ext <<_ACEOF
  19511. /* end confdefs.h. */
  19512. $ac_includes_default
  19513. typedef size_t ac__type_new_;
  19514. int
  19515. main ()
  19516. {
  19517. if ((ac__type_new_ *) 0)
  19518. return 0;
  19519. if (sizeof (ac__type_new_))
  19520. return 0;
  19521. ;
  19522. return 0;
  19523. }
  19524. _ACEOF
  19525. rm -f conftest.$ac_objext
  19526. if { (ac_try="$ac_compile"
  19527. case "(($ac_try" in
  19528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19529. *) ac_try_echo=$ac_try;;
  19530. esac
  19531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19532. (eval "$ac_compile") 2>conftest.er1
  19533. ac_status=$?
  19534. grep -v '^ *+' conftest.er1 >conftest.err
  19535. rm -f conftest.er1
  19536. cat conftest.err >&5
  19537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19538. (exit $ac_status); } && {
  19539. test -z "$ac_c_werror_flag" ||
  19540. test ! -s conftest.err
  19541. } && test -s conftest.$ac_objext; then
  19542. ac_cv_type_size_t=yes
  19543. else
  19544. echo "$as_me: failed program was:" >&5
  19545. sed 's/^/| /' conftest.$ac_ext >&5
  19546. ac_cv_type_size_t=no
  19547. fi
  19548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19549. fi
  19550. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19551. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19552. if test $ac_cv_type_size_t = yes; then
  19553. :
  19554. else
  19555. cat >>confdefs.h <<_ACEOF
  19556. #define size_t unsigned int
  19557. _ACEOF
  19558. fi
  19559. { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  19560. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
  19561. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  19562. echo $ECHO_N "(cached) $ECHO_C" >&6
  19563. else
  19564. cat >conftest.$ac_ext <<_ACEOF
  19565. /* confdefs.h. */
  19566. _ACEOF
  19567. cat confdefs.h >>conftest.$ac_ext
  19568. cat >>conftest.$ac_ext <<_ACEOF
  19569. /* end confdefs.h. */
  19570. $ac_includes_default
  19571. int
  19572. main ()
  19573. {
  19574. static struct stat ac_aggr;
  19575. if (ac_aggr.st_rdev)
  19576. return 0;
  19577. ;
  19578. return 0;
  19579. }
  19580. _ACEOF
  19581. rm -f conftest.$ac_objext
  19582. if { (ac_try="$ac_compile"
  19583. case "(($ac_try" in
  19584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19585. *) ac_try_echo=$ac_try;;
  19586. esac
  19587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19588. (eval "$ac_compile") 2>conftest.er1
  19589. ac_status=$?
  19590. grep -v '^ *+' conftest.er1 >conftest.err
  19591. rm -f conftest.er1
  19592. cat conftest.err >&5
  19593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19594. (exit $ac_status); } && {
  19595. test -z "$ac_c_werror_flag" ||
  19596. test ! -s conftest.err
  19597. } && test -s conftest.$ac_objext; then
  19598. ac_cv_member_struct_stat_st_rdev=yes
  19599. else
  19600. echo "$as_me: failed program was:" >&5
  19601. sed 's/^/| /' conftest.$ac_ext >&5
  19602. cat >conftest.$ac_ext <<_ACEOF
  19603. /* confdefs.h. */
  19604. _ACEOF
  19605. cat confdefs.h >>conftest.$ac_ext
  19606. cat >>conftest.$ac_ext <<_ACEOF
  19607. /* end confdefs.h. */
  19608. $ac_includes_default
  19609. int
  19610. main ()
  19611. {
  19612. static struct stat ac_aggr;
  19613. if (sizeof ac_aggr.st_rdev)
  19614. return 0;
  19615. ;
  19616. return 0;
  19617. }
  19618. _ACEOF
  19619. rm -f conftest.$ac_objext
  19620. if { (ac_try="$ac_compile"
  19621. case "(($ac_try" in
  19622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19623. *) ac_try_echo=$ac_try;;
  19624. esac
  19625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19626. (eval "$ac_compile") 2>conftest.er1
  19627. ac_status=$?
  19628. grep -v '^ *+' conftest.er1 >conftest.err
  19629. rm -f conftest.er1
  19630. cat conftest.err >&5
  19631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19632. (exit $ac_status); } && {
  19633. test -z "$ac_c_werror_flag" ||
  19634. test ! -s conftest.err
  19635. } && test -s conftest.$ac_objext; then
  19636. ac_cv_member_struct_stat_st_rdev=yes
  19637. else
  19638. echo "$as_me: failed program was:" >&5
  19639. sed 's/^/| /' conftest.$ac_ext >&5
  19640. ac_cv_member_struct_stat_st_rdev=no
  19641. fi
  19642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19643. fi
  19644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19645. fi
  19646. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  19647. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
  19648. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  19649. cat >>confdefs.h <<_ACEOF
  19650. #define HAVE_STRUCT_STAT_ST_RDEV 1
  19651. _ACEOF
  19652. fi
  19653. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  19654. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  19655. if test "${ac_cv_struct_tm+set}" = set; then
  19656. echo $ECHO_N "(cached) $ECHO_C" >&6
  19657. else
  19658. cat >conftest.$ac_ext <<_ACEOF
  19659. /* confdefs.h. */
  19660. _ACEOF
  19661. cat confdefs.h >>conftest.$ac_ext
  19662. cat >>conftest.$ac_ext <<_ACEOF
  19663. /* end confdefs.h. */
  19664. #include <sys/types.h>
  19665. #include <time.h>
  19666. int
  19667. main ()
  19668. {
  19669. struct tm tm;
  19670. int *p = &tm.tm_sec;
  19671. return !p;
  19672. ;
  19673. return 0;
  19674. }
  19675. _ACEOF
  19676. rm -f conftest.$ac_objext
  19677. if { (ac_try="$ac_compile"
  19678. case "(($ac_try" in
  19679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19680. *) ac_try_echo=$ac_try;;
  19681. esac
  19682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19683. (eval "$ac_compile") 2>conftest.er1
  19684. ac_status=$?
  19685. grep -v '^ *+' conftest.er1 >conftest.err
  19686. rm -f conftest.er1
  19687. cat conftest.err >&5
  19688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19689. (exit $ac_status); } && {
  19690. test -z "$ac_c_werror_flag" ||
  19691. test ! -s conftest.err
  19692. } && test -s conftest.$ac_objext; then
  19693. ac_cv_struct_tm=time.h
  19694. else
  19695. echo "$as_me: failed program was:" >&5
  19696. sed 's/^/| /' conftest.$ac_ext >&5
  19697. ac_cv_struct_tm=sys/time.h
  19698. fi
  19699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19700. fi
  19701. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  19702. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  19703. if test $ac_cv_struct_tm = sys/time.h; then
  19704. cat >>confdefs.h <<\_ACEOF
  19705. #define TM_IN_SYS_TIME 1
  19706. _ACEOF
  19707. fi
  19708. { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  19709. echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
  19710. if test "${ac_cv_struct_tm_zone+set}" = set; then
  19711. echo $ECHO_N "(cached) $ECHO_C" >&6
  19712. else
  19713. cat >conftest.$ac_ext <<_ACEOF
  19714. /* confdefs.h. */
  19715. _ACEOF
  19716. cat confdefs.h >>conftest.$ac_ext
  19717. cat >>conftest.$ac_ext <<_ACEOF
  19718. /* end confdefs.h. */
  19719. #include <sys/types.h>
  19720. #include <$ac_cv_struct_tm>
  19721. int
  19722. main ()
  19723. {
  19724. struct tm tm; tm.tm_zone;
  19725. ;
  19726. return 0;
  19727. }
  19728. _ACEOF
  19729. rm -f conftest.$ac_objext
  19730. if { (ac_try="$ac_compile"
  19731. case "(($ac_try" in
  19732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19733. *) ac_try_echo=$ac_try;;
  19734. esac
  19735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19736. (eval "$ac_compile") 2>conftest.er1
  19737. ac_status=$?
  19738. grep -v '^ *+' conftest.er1 >conftest.err
  19739. rm -f conftest.er1
  19740. cat conftest.err >&5
  19741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19742. (exit $ac_status); } && {
  19743. test -z "$ac_c_werror_flag" ||
  19744. test ! -s conftest.err
  19745. } && test -s conftest.$ac_objext; then
  19746. ac_cv_struct_tm_zone=yes
  19747. else
  19748. echo "$as_me: failed program was:" >&5
  19749. sed 's/^/| /' conftest.$ac_ext >&5
  19750. ac_cv_struct_tm_zone=no
  19751. fi
  19752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19753. fi
  19754. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  19755. echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
  19756. if test "$ac_cv_struct_tm_zone" = yes; then
  19757. cat >>confdefs.h <<\_ACEOF
  19758. #define HAVE_TM_ZONE 1
  19759. _ACEOF
  19760. fi
  19761. { echo "$as_me:$LINENO: checking for tzname" >&5
  19762. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  19763. if test "${ac_cv_var_tzname+set}" = set; then
  19764. echo $ECHO_N "(cached) $ECHO_C" >&6
  19765. else
  19766. cat >conftest.$ac_ext <<_ACEOF
  19767. /* confdefs.h. */
  19768. _ACEOF
  19769. cat confdefs.h >>conftest.$ac_ext
  19770. cat >>conftest.$ac_ext <<_ACEOF
  19771. /* end confdefs.h. */
  19772. #include <time.h>
  19773. #ifndef tzname /* For SGI. */
  19774. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  19775. #endif
  19776. int
  19777. main ()
  19778. {
  19779. atoi(*tzname);
  19780. ;
  19781. return 0;
  19782. }
  19783. _ACEOF
  19784. rm -f conftest.$ac_objext conftest$ac_exeext
  19785. if { (ac_try="$ac_link"
  19786. case "(($ac_try" in
  19787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19788. *) ac_try_echo=$ac_try;;
  19789. esac
  19790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19791. (eval "$ac_link") 2>conftest.er1
  19792. ac_status=$?
  19793. grep -v '^ *+' conftest.er1 >conftest.err
  19794. rm -f conftest.er1
  19795. cat conftest.err >&5
  19796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19797. (exit $ac_status); } && {
  19798. test -z "$ac_c_werror_flag" ||
  19799. test ! -s conftest.err
  19800. } && test -s conftest$ac_exeext &&
  19801. $as_test_x conftest$ac_exeext; then
  19802. ac_cv_var_tzname=yes
  19803. else
  19804. echo "$as_me: failed program was:" >&5
  19805. sed 's/^/| /' conftest.$ac_ext >&5
  19806. ac_cv_var_tzname=no
  19807. fi
  19808. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19809. conftest$ac_exeext conftest.$ac_ext
  19810. fi
  19811. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  19812. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  19813. if test $ac_cv_var_tzname = yes; then
  19814. cat >>confdefs.h <<\_ACEOF
  19815. #define HAVE_TZNAME 1
  19816. _ACEOF
  19817. fi
  19818. { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
  19819. echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
  19820. if test "${ac_cv_struct_tm_isdst+set}" = set; then
  19821. echo $ECHO_N "(cached) $ECHO_C" >&6
  19822. else
  19823. cat >conftest.$ac_ext <<_ACEOF
  19824. /* confdefs.h. */
  19825. _ACEOF
  19826. cat confdefs.h >>conftest.$ac_ext
  19827. cat >>conftest.$ac_ext <<_ACEOF
  19828. /* end confdefs.h. */
  19829. #include <sys/types.h>
  19830. #include <$ac_cv_struct_tm>
  19831. int
  19832. main ()
  19833. {
  19834. struct tm tm; tm.tm_isdst;
  19835. ;
  19836. return 0;
  19837. }
  19838. _ACEOF
  19839. rm -f conftest.$ac_objext
  19840. if { (ac_try="$ac_compile"
  19841. case "(($ac_try" in
  19842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19843. *) ac_try_echo=$ac_try;;
  19844. esac
  19845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19846. (eval "$ac_compile") 2>conftest.er1
  19847. ac_status=$?
  19848. grep -v '^ *+' conftest.er1 >conftest.err
  19849. rm -f conftest.er1
  19850. cat conftest.err >&5
  19851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19852. (exit $ac_status); } && {
  19853. test -z "$ac_c_werror_flag" ||
  19854. test ! -s conftest.err
  19855. } && test -s conftest.$ac_objext; then
  19856. ac_cv_struct_tm_isdst=yes
  19857. else
  19858. echo "$as_me: failed program was:" >&5
  19859. sed 's/^/| /' conftest.$ac_ext >&5
  19860. ac_cv_struct_tm_isdst=no
  19861. fi
  19862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19863. fi
  19864. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
  19865. echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
  19866. if test "$ac_cv_struct_tm_isdst" = yes; then
  19867. cat >>confdefs.h <<\_ACEOF
  19868. #define HAVE_TM_ISDST 1
  19869. _ACEOF
  19870. fi
  19871. { echo "$as_me:$LINENO: checking for daylight" >&5
  19872. echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
  19873. if test "${ac_cv_var_daylight+set}" = set; then
  19874. echo $ECHO_N "(cached) $ECHO_C" >&6
  19875. else
  19876. cat >conftest.$ac_ext <<_ACEOF
  19877. /* confdefs.h. */
  19878. _ACEOF
  19879. cat confdefs.h >>conftest.$ac_ext
  19880. cat >>conftest.$ac_ext <<_ACEOF
  19881. /* end confdefs.h. */
  19882. #include <time.h>
  19883. #ifndef daylight /* In case IRIX #defines this, too */
  19884. extern int daylight;
  19885. #endif
  19886. int
  19887. main ()
  19888. {
  19889. atoi(daylight);
  19890. ;
  19891. return 0;
  19892. }
  19893. _ACEOF
  19894. rm -f conftest.$ac_objext conftest$ac_exeext
  19895. if { (ac_try="$ac_link"
  19896. case "(($ac_try" in
  19897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19898. *) ac_try_echo=$ac_try;;
  19899. esac
  19900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19901. (eval "$ac_link") 2>conftest.er1
  19902. ac_status=$?
  19903. grep -v '^ *+' conftest.er1 >conftest.err
  19904. rm -f conftest.er1
  19905. cat conftest.err >&5
  19906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19907. (exit $ac_status); } && {
  19908. test -z "$ac_c_werror_flag" ||
  19909. test ! -s conftest.err
  19910. } && test -s conftest$ac_exeext &&
  19911. $as_test_x conftest$ac_exeext; then
  19912. ac_cv_var_daylight=yes
  19913. else
  19914. echo "$as_me: failed program was:" >&5
  19915. sed 's/^/| /' conftest.$ac_ext >&5
  19916. ac_cv_var_daylight=no
  19917. fi
  19918. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19919. conftest$ac_exeext conftest.$ac_ext
  19920. fi
  19921. { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
  19922. echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
  19923. if test $ac_cv_var_daylight = yes; then
  19924. cat >>confdefs.h <<\_ACEOF
  19925. #define HAVE_DAYLIGHT 1
  19926. _ACEOF
  19927. fi
  19928. # Check whether --enable-largefile was given.
  19929. if test "${enable_largefile+set}" = set; then
  19930. enableval=$enable_largefile;
  19931. fi
  19932. if test "$enable_largefile" != no; then
  19933. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19934. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  19935. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19936. echo $ECHO_N "(cached) $ECHO_C" >&6
  19937. else
  19938. ac_cv_sys_largefile_CC=no
  19939. if test "$GCC" != yes; then
  19940. ac_save_CC=$CC
  19941. while :; do
  19942. # IRIX 6.2 and later do not support large files by default,
  19943. # so use the C compiler's -n32 option if that helps.
  19944. cat >conftest.$ac_ext <<_ACEOF
  19945. /* confdefs.h. */
  19946. _ACEOF
  19947. cat confdefs.h >>conftest.$ac_ext
  19948. cat >>conftest.$ac_ext <<_ACEOF
  19949. /* end confdefs.h. */
  19950. #include <sys/types.h>
  19951. /* Check that off_t can represent 2**63 - 1 correctly.
  19952. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19953. since some C++ compilers masquerading as C compilers
  19954. incorrectly reject 9223372036854775807. */
  19955. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19956. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19957. && LARGE_OFF_T % 2147483647 == 1)
  19958. ? 1 : -1];
  19959. int
  19960. main ()
  19961. {
  19962. ;
  19963. return 0;
  19964. }
  19965. _ACEOF
  19966. rm -f conftest.$ac_objext
  19967. if { (ac_try="$ac_compile"
  19968. case "(($ac_try" in
  19969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19970. *) ac_try_echo=$ac_try;;
  19971. esac
  19972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19973. (eval "$ac_compile") 2>conftest.er1
  19974. ac_status=$?
  19975. grep -v '^ *+' conftest.er1 >conftest.err
  19976. rm -f conftest.er1
  19977. cat conftest.err >&5
  19978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19979. (exit $ac_status); } && {
  19980. test -z "$ac_c_werror_flag" ||
  19981. test ! -s conftest.err
  19982. } && test -s conftest.$ac_objext; then
  19983. break
  19984. else
  19985. echo "$as_me: failed program was:" >&5
  19986. sed 's/^/| /' conftest.$ac_ext >&5
  19987. fi
  19988. rm -f core conftest.err conftest.$ac_objext
  19989. CC="$CC -n32"
  19990. rm -f conftest.$ac_objext
  19991. if { (ac_try="$ac_compile"
  19992. case "(($ac_try" in
  19993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19994. *) ac_try_echo=$ac_try;;
  19995. esac
  19996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19997. (eval "$ac_compile") 2>conftest.er1
  19998. ac_status=$?
  19999. grep -v '^ *+' conftest.er1 >conftest.err
  20000. rm -f conftest.er1
  20001. cat conftest.err >&5
  20002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20003. (exit $ac_status); } && {
  20004. test -z "$ac_c_werror_flag" ||
  20005. test ! -s conftest.err
  20006. } && test -s conftest.$ac_objext; then
  20007. ac_cv_sys_largefile_CC=' -n32'; break
  20008. else
  20009. echo "$as_me: failed program was:" >&5
  20010. sed 's/^/| /' conftest.$ac_ext >&5
  20011. fi
  20012. rm -f core conftest.err conftest.$ac_objext
  20013. break
  20014. done
  20015. CC=$ac_save_CC
  20016. rm -f conftest.$ac_ext
  20017. fi
  20018. fi
  20019. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20020. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  20021. if test "$ac_cv_sys_largefile_CC" != no; then
  20022. CC=$CC$ac_cv_sys_largefile_CC
  20023. fi
  20024. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20025. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  20026. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20027. echo $ECHO_N "(cached) $ECHO_C" >&6
  20028. else
  20029. while :; do
  20030. cat >conftest.$ac_ext <<_ACEOF
  20031. /* confdefs.h. */
  20032. _ACEOF
  20033. cat confdefs.h >>conftest.$ac_ext
  20034. cat >>conftest.$ac_ext <<_ACEOF
  20035. /* end confdefs.h. */
  20036. #include <sys/types.h>
  20037. /* Check that off_t can represent 2**63 - 1 correctly.
  20038. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20039. since some C++ compilers masquerading as C compilers
  20040. incorrectly reject 9223372036854775807. */
  20041. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20042. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20043. && LARGE_OFF_T % 2147483647 == 1)
  20044. ? 1 : -1];
  20045. int
  20046. main ()
  20047. {
  20048. ;
  20049. return 0;
  20050. }
  20051. _ACEOF
  20052. rm -f conftest.$ac_objext
  20053. if { (ac_try="$ac_compile"
  20054. case "(($ac_try" in
  20055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20056. *) ac_try_echo=$ac_try;;
  20057. esac
  20058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20059. (eval "$ac_compile") 2>conftest.er1
  20060. ac_status=$?
  20061. grep -v '^ *+' conftest.er1 >conftest.err
  20062. rm -f conftest.er1
  20063. cat conftest.err >&5
  20064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20065. (exit $ac_status); } && {
  20066. test -z "$ac_c_werror_flag" ||
  20067. test ! -s conftest.err
  20068. } && test -s conftest.$ac_objext; then
  20069. ac_cv_sys_file_offset_bits=no; break
  20070. else
  20071. echo "$as_me: failed program was:" >&5
  20072. sed 's/^/| /' conftest.$ac_ext >&5
  20073. fi
  20074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20075. cat >conftest.$ac_ext <<_ACEOF
  20076. /* confdefs.h. */
  20077. _ACEOF
  20078. cat confdefs.h >>conftest.$ac_ext
  20079. cat >>conftest.$ac_ext <<_ACEOF
  20080. /* end confdefs.h. */
  20081. #define _FILE_OFFSET_BITS 64
  20082. #include <sys/types.h>
  20083. /* Check that off_t can represent 2**63 - 1 correctly.
  20084. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20085. since some C++ compilers masquerading as C compilers
  20086. incorrectly reject 9223372036854775807. */
  20087. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20088. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20089. && LARGE_OFF_T % 2147483647 == 1)
  20090. ? 1 : -1];
  20091. int
  20092. main ()
  20093. {
  20094. ;
  20095. return 0;
  20096. }
  20097. _ACEOF
  20098. rm -f conftest.$ac_objext
  20099. if { (ac_try="$ac_compile"
  20100. case "(($ac_try" in
  20101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20102. *) ac_try_echo=$ac_try;;
  20103. esac
  20104. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20105. (eval "$ac_compile") 2>conftest.er1
  20106. ac_status=$?
  20107. grep -v '^ *+' conftest.er1 >conftest.err
  20108. rm -f conftest.er1
  20109. cat conftest.err >&5
  20110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20111. (exit $ac_status); } && {
  20112. test -z "$ac_c_werror_flag" ||
  20113. test ! -s conftest.err
  20114. } && test -s conftest.$ac_objext; then
  20115. ac_cv_sys_file_offset_bits=64; break
  20116. else
  20117. echo "$as_me: failed program was:" >&5
  20118. sed 's/^/| /' conftest.$ac_ext >&5
  20119. fi
  20120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20121. ac_cv_sys_file_offset_bits=unknown
  20122. break
  20123. done
  20124. fi
  20125. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20126. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  20127. case $ac_cv_sys_file_offset_bits in #(
  20128. no | unknown) ;;
  20129. *)
  20130. cat >>confdefs.h <<_ACEOF
  20131. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20132. _ACEOF
  20133. ;;
  20134. esac
  20135. rm -f conftest*
  20136. if test $ac_cv_sys_file_offset_bits = unknown; then
  20137. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20138. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20139. if test "${ac_cv_sys_large_files+set}" = set; then
  20140. echo $ECHO_N "(cached) $ECHO_C" >&6
  20141. else
  20142. while :; do
  20143. cat >conftest.$ac_ext <<_ACEOF
  20144. /* confdefs.h. */
  20145. _ACEOF
  20146. cat confdefs.h >>conftest.$ac_ext
  20147. cat >>conftest.$ac_ext <<_ACEOF
  20148. /* end confdefs.h. */
  20149. #include <sys/types.h>
  20150. /* Check that off_t can represent 2**63 - 1 correctly.
  20151. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20152. since some C++ compilers masquerading as C compilers
  20153. incorrectly reject 9223372036854775807. */
  20154. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20155. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20156. && LARGE_OFF_T % 2147483647 == 1)
  20157. ? 1 : -1];
  20158. int
  20159. main ()
  20160. {
  20161. ;
  20162. return 0;
  20163. }
  20164. _ACEOF
  20165. rm -f conftest.$ac_objext
  20166. if { (ac_try="$ac_compile"
  20167. case "(($ac_try" in
  20168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20169. *) ac_try_echo=$ac_try;;
  20170. esac
  20171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20172. (eval "$ac_compile") 2>conftest.er1
  20173. ac_status=$?
  20174. grep -v '^ *+' conftest.er1 >conftest.err
  20175. rm -f conftest.er1
  20176. cat conftest.err >&5
  20177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20178. (exit $ac_status); } && {
  20179. test -z "$ac_c_werror_flag" ||
  20180. test ! -s conftest.err
  20181. } && test -s conftest.$ac_objext; then
  20182. ac_cv_sys_large_files=no; break
  20183. else
  20184. echo "$as_me: failed program was:" >&5
  20185. sed 's/^/| /' conftest.$ac_ext >&5
  20186. fi
  20187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20188. cat >conftest.$ac_ext <<_ACEOF
  20189. /* confdefs.h. */
  20190. _ACEOF
  20191. cat confdefs.h >>conftest.$ac_ext
  20192. cat >>conftest.$ac_ext <<_ACEOF
  20193. /* end confdefs.h. */
  20194. #define _LARGE_FILES 1
  20195. #include <sys/types.h>
  20196. /* Check that off_t can represent 2**63 - 1 correctly.
  20197. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20198. since some C++ compilers masquerading as C compilers
  20199. incorrectly reject 9223372036854775807. */
  20200. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20201. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20202. && LARGE_OFF_T % 2147483647 == 1)
  20203. ? 1 : -1];
  20204. int
  20205. main ()
  20206. {
  20207. ;
  20208. return 0;
  20209. }
  20210. _ACEOF
  20211. rm -f conftest.$ac_objext
  20212. if { (ac_try="$ac_compile"
  20213. case "(($ac_try" in
  20214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20215. *) ac_try_echo=$ac_try;;
  20216. esac
  20217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20218. (eval "$ac_compile") 2>conftest.er1
  20219. ac_status=$?
  20220. grep -v '^ *+' conftest.er1 >conftest.err
  20221. rm -f conftest.er1
  20222. cat conftest.err >&5
  20223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20224. (exit $ac_status); } && {
  20225. test -z "$ac_c_werror_flag" ||
  20226. test ! -s conftest.err
  20227. } && test -s conftest.$ac_objext; then
  20228. ac_cv_sys_large_files=1; break
  20229. else
  20230. echo "$as_me: failed program was:" >&5
  20231. sed 's/^/| /' conftest.$ac_ext >&5
  20232. fi
  20233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20234. ac_cv_sys_large_files=unknown
  20235. break
  20236. done
  20237. fi
  20238. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20239. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20240. case $ac_cv_sys_large_files in #(
  20241. no | unknown) ;;
  20242. *)
  20243. cat >>confdefs.h <<_ACEOF
  20244. #define _LARGE_FILES $ac_cv_sys_large_files
  20245. _ACEOF
  20246. ;;
  20247. esac
  20248. rm -f conftest*
  20249. fi
  20250. fi
  20251. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20252. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20253. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20254. echo $ECHO_N "(cached) $ECHO_C" >&6
  20255. else
  20256. while :; do
  20257. cat >conftest.$ac_ext <<_ACEOF
  20258. /* confdefs.h. */
  20259. _ACEOF
  20260. cat confdefs.h >>conftest.$ac_ext
  20261. cat >>conftest.$ac_ext <<_ACEOF
  20262. /* end confdefs.h. */
  20263. #include <stdio.h>
  20264. int
  20265. main ()
  20266. {
  20267. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20268. ;
  20269. return 0;
  20270. }
  20271. _ACEOF
  20272. rm -f conftest.$ac_objext conftest$ac_exeext
  20273. if { (ac_try="$ac_link"
  20274. case "(($ac_try" in
  20275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20276. *) ac_try_echo=$ac_try;;
  20277. esac
  20278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20279. (eval "$ac_link") 2>conftest.er1
  20280. ac_status=$?
  20281. grep -v '^ *+' conftest.er1 >conftest.err
  20282. rm -f conftest.er1
  20283. cat conftest.err >&5
  20284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20285. (exit $ac_status); } && {
  20286. test -z "$ac_c_werror_flag" ||
  20287. test ! -s conftest.err
  20288. } && test -s conftest$ac_exeext &&
  20289. $as_test_x conftest$ac_exeext; then
  20290. ac_cv_sys_largefile_source=no; break
  20291. else
  20292. echo "$as_me: failed program was:" >&5
  20293. sed 's/^/| /' conftest.$ac_ext >&5
  20294. fi
  20295. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20296. conftest$ac_exeext conftest.$ac_ext
  20297. cat >conftest.$ac_ext <<_ACEOF
  20298. /* confdefs.h. */
  20299. _ACEOF
  20300. cat confdefs.h >>conftest.$ac_ext
  20301. cat >>conftest.$ac_ext <<_ACEOF
  20302. /* end confdefs.h. */
  20303. #define _LARGEFILE_SOURCE 1
  20304. #include <stdio.h>
  20305. int
  20306. main ()
  20307. {
  20308. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20309. ;
  20310. return 0;
  20311. }
  20312. _ACEOF
  20313. rm -f conftest.$ac_objext conftest$ac_exeext
  20314. if { (ac_try="$ac_link"
  20315. case "(($ac_try" in
  20316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20317. *) ac_try_echo=$ac_try;;
  20318. esac
  20319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20320. (eval "$ac_link") 2>conftest.er1
  20321. ac_status=$?
  20322. grep -v '^ *+' conftest.er1 >conftest.err
  20323. rm -f conftest.er1
  20324. cat conftest.err >&5
  20325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20326. (exit $ac_status); } && {
  20327. test -z "$ac_c_werror_flag" ||
  20328. test ! -s conftest.err
  20329. } && test -s conftest$ac_exeext &&
  20330. $as_test_x conftest$ac_exeext; then
  20331. ac_cv_sys_largefile_source=1; break
  20332. else
  20333. echo "$as_me: failed program was:" >&5
  20334. sed 's/^/| /' conftest.$ac_ext >&5
  20335. fi
  20336. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20337. conftest$ac_exeext conftest.$ac_ext
  20338. ac_cv_sys_largefile_source=unknown
  20339. break
  20340. done
  20341. fi
  20342. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20343. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20344. case $ac_cv_sys_largefile_source in #(
  20345. no | unknown) ;;
  20346. *)
  20347. cat >>confdefs.h <<_ACEOF
  20348. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20349. _ACEOF
  20350. ;;
  20351. esac
  20352. rm -f conftest*
  20353. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20354. # in glibc 2.1.3, but that breaks too many other things.
  20355. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20356. if test $ac_cv_sys_largefile_source != unknown; then
  20357. cat >>confdefs.h <<\_ACEOF
  20358. #define HAVE_FSEEKO 1
  20359. _ACEOF
  20360. fi
  20361. { echo "$as_me:$LINENO: checking for mbstate_t" >&5
  20362. echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
  20363. if test "${ac_cv_type_mbstate_t+set}" = set; then
  20364. echo $ECHO_N "(cached) $ECHO_C" >&6
  20365. else
  20366. cat >conftest.$ac_ext <<_ACEOF
  20367. /* confdefs.h. */
  20368. _ACEOF
  20369. cat confdefs.h >>conftest.$ac_ext
  20370. cat >>conftest.$ac_ext <<_ACEOF
  20371. /* end confdefs.h. */
  20372. $ac_includes_default
  20373. # include <wchar.h>
  20374. int
  20375. main ()
  20376. {
  20377. mbstate_t x; return sizeof x;
  20378. ;
  20379. return 0;
  20380. }
  20381. _ACEOF
  20382. rm -f conftest.$ac_objext
  20383. if { (ac_try="$ac_compile"
  20384. case "(($ac_try" in
  20385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20386. *) ac_try_echo=$ac_try;;
  20387. esac
  20388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20389. (eval "$ac_compile") 2>conftest.er1
  20390. ac_status=$?
  20391. grep -v '^ *+' conftest.er1 >conftest.err
  20392. rm -f conftest.er1
  20393. cat conftest.err >&5
  20394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20395. (exit $ac_status); } && {
  20396. test -z "$ac_c_werror_flag" ||
  20397. test ! -s conftest.err
  20398. } && test -s conftest.$ac_objext; then
  20399. ac_cv_type_mbstate_t=yes
  20400. else
  20401. echo "$as_me: failed program was:" >&5
  20402. sed 's/^/| /' conftest.$ac_ext >&5
  20403. ac_cv_type_mbstate_t=no
  20404. fi
  20405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20406. fi
  20407. { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  20408. echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
  20409. if test $ac_cv_type_mbstate_t = yes; then
  20410. cat >>confdefs.h <<\_ACEOF
  20411. #define HAVE_MBSTATE_T 1
  20412. _ACEOF
  20413. else
  20414. cat >>confdefs.h <<\_ACEOF
  20415. #define mbstate_t int
  20416. _ACEOF
  20417. fi
  20418. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  20419. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  20420. if test "${ac_cv_type_uint8_t+set}" = set; then
  20421. echo $ECHO_N "(cached) $ECHO_C" >&6
  20422. else
  20423. cat >conftest.$ac_ext <<_ACEOF
  20424. /* confdefs.h. */
  20425. _ACEOF
  20426. cat confdefs.h >>conftest.$ac_ext
  20427. cat >>conftest.$ac_ext <<_ACEOF
  20428. /* end confdefs.h. */
  20429. $ac_includes_default
  20430. typedef uint8_t ac__type_new_;
  20431. int
  20432. main ()
  20433. {
  20434. if ((ac__type_new_ *) 0)
  20435. return 0;
  20436. if (sizeof (ac__type_new_))
  20437. return 0;
  20438. ;
  20439. return 0;
  20440. }
  20441. _ACEOF
  20442. rm -f conftest.$ac_objext
  20443. if { (ac_try="$ac_compile"
  20444. case "(($ac_try" in
  20445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20446. *) ac_try_echo=$ac_try;;
  20447. esac
  20448. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20449. (eval "$ac_compile") 2>conftest.er1
  20450. ac_status=$?
  20451. grep -v '^ *+' conftest.er1 >conftest.err
  20452. rm -f conftest.er1
  20453. cat conftest.err >&5
  20454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20455. (exit $ac_status); } && {
  20456. test -z "$ac_c_werror_flag" ||
  20457. test ! -s conftest.err
  20458. } && test -s conftest.$ac_objext; then
  20459. ac_cv_type_uint8_t=yes
  20460. else
  20461. echo "$as_me: failed program was:" >&5
  20462. sed 's/^/| /' conftest.$ac_ext >&5
  20463. ac_cv_type_uint8_t=no
  20464. fi
  20465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20466. fi
  20467. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  20468. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  20469. if test $ac_cv_type_uint8_t = yes; then
  20470. cat >>confdefs.h <<_ACEOF
  20471. #define HAVE_UINT8_T 1
  20472. _ACEOF
  20473. fi
  20474. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  20475. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  20476. if test "${ac_cv_type_uint16_t+set}" = set; then
  20477. echo $ECHO_N "(cached) $ECHO_C" >&6
  20478. else
  20479. cat >conftest.$ac_ext <<_ACEOF
  20480. /* confdefs.h. */
  20481. _ACEOF
  20482. cat confdefs.h >>conftest.$ac_ext
  20483. cat >>conftest.$ac_ext <<_ACEOF
  20484. /* end confdefs.h. */
  20485. $ac_includes_default
  20486. typedef uint16_t ac__type_new_;
  20487. int
  20488. main ()
  20489. {
  20490. if ((ac__type_new_ *) 0)
  20491. return 0;
  20492. if (sizeof (ac__type_new_))
  20493. return 0;
  20494. ;
  20495. return 0;
  20496. }
  20497. _ACEOF
  20498. rm -f conftest.$ac_objext
  20499. if { (ac_try="$ac_compile"
  20500. case "(($ac_try" in
  20501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20502. *) ac_try_echo=$ac_try;;
  20503. esac
  20504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20505. (eval "$ac_compile") 2>conftest.er1
  20506. ac_status=$?
  20507. grep -v '^ *+' conftest.er1 >conftest.err
  20508. rm -f conftest.er1
  20509. cat conftest.err >&5
  20510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20511. (exit $ac_status); } && {
  20512. test -z "$ac_c_werror_flag" ||
  20513. test ! -s conftest.err
  20514. } && test -s conftest.$ac_objext; then
  20515. ac_cv_type_uint16_t=yes
  20516. else
  20517. echo "$as_me: failed program was:" >&5
  20518. sed 's/^/| /' conftest.$ac_ext >&5
  20519. ac_cv_type_uint16_t=no
  20520. fi
  20521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20522. fi
  20523. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  20524. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  20525. if test $ac_cv_type_uint16_t = yes; then
  20526. cat >>confdefs.h <<_ACEOF
  20527. #define HAVE_UINT16_T 1
  20528. _ACEOF
  20529. fi
  20530. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  20531. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  20532. if test "${ac_cv_type_uint32_t+set}" = set; then
  20533. echo $ECHO_N "(cached) $ECHO_C" >&6
  20534. else
  20535. cat >conftest.$ac_ext <<_ACEOF
  20536. /* confdefs.h. */
  20537. _ACEOF
  20538. cat confdefs.h >>conftest.$ac_ext
  20539. cat >>conftest.$ac_ext <<_ACEOF
  20540. /* end confdefs.h. */
  20541. $ac_includes_default
  20542. typedef uint32_t ac__type_new_;
  20543. int
  20544. main ()
  20545. {
  20546. if ((ac__type_new_ *) 0)
  20547. return 0;
  20548. if (sizeof (ac__type_new_))
  20549. return 0;
  20550. ;
  20551. return 0;
  20552. }
  20553. _ACEOF
  20554. rm -f conftest.$ac_objext
  20555. if { (ac_try="$ac_compile"
  20556. case "(($ac_try" in
  20557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20558. *) ac_try_echo=$ac_try;;
  20559. esac
  20560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20561. (eval "$ac_compile") 2>conftest.er1
  20562. ac_status=$?
  20563. grep -v '^ *+' conftest.er1 >conftest.err
  20564. rm -f conftest.er1
  20565. cat conftest.err >&5
  20566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20567. (exit $ac_status); } && {
  20568. test -z "$ac_c_werror_flag" ||
  20569. test ! -s conftest.err
  20570. } && test -s conftest.$ac_objext; then
  20571. ac_cv_type_uint32_t=yes
  20572. else
  20573. echo "$as_me: failed program was:" >&5
  20574. sed 's/^/| /' conftest.$ac_ext >&5
  20575. ac_cv_type_uint32_t=no
  20576. fi
  20577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20578. fi
  20579. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  20580. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  20581. if test $ac_cv_type_uint32_t = yes; then
  20582. cat >>confdefs.h <<_ACEOF
  20583. #define HAVE_UINT32_T 1
  20584. _ACEOF
  20585. fi
  20586. { echo "$as_me:$LINENO: checking for int32_t" >&5
  20587. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  20588. if test "${ac_cv_type_int32_t+set}" = set; then
  20589. echo $ECHO_N "(cached) $ECHO_C" >&6
  20590. else
  20591. cat >conftest.$ac_ext <<_ACEOF
  20592. /* confdefs.h. */
  20593. _ACEOF
  20594. cat confdefs.h >>conftest.$ac_ext
  20595. cat >>conftest.$ac_ext <<_ACEOF
  20596. /* end confdefs.h. */
  20597. $ac_includes_default
  20598. typedef int32_t ac__type_new_;
  20599. int
  20600. main ()
  20601. {
  20602. if ((ac__type_new_ *) 0)
  20603. return 0;
  20604. if (sizeof (ac__type_new_))
  20605. return 0;
  20606. ;
  20607. return 0;
  20608. }
  20609. _ACEOF
  20610. rm -f conftest.$ac_objext
  20611. if { (ac_try="$ac_compile"
  20612. case "(($ac_try" in
  20613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20614. *) ac_try_echo=$ac_try;;
  20615. esac
  20616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20617. (eval "$ac_compile") 2>conftest.er1
  20618. ac_status=$?
  20619. grep -v '^ *+' conftest.er1 >conftest.err
  20620. rm -f conftest.er1
  20621. cat conftest.err >&5
  20622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20623. (exit $ac_status); } && {
  20624. test -z "$ac_c_werror_flag" ||
  20625. test ! -s conftest.err
  20626. } && test -s conftest.$ac_objext; then
  20627. ac_cv_type_int32_t=yes
  20628. else
  20629. echo "$as_me: failed program was:" >&5
  20630. sed 's/^/| /' conftest.$ac_ext >&5
  20631. ac_cv_type_int32_t=no
  20632. fi
  20633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20634. fi
  20635. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  20636. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  20637. if test $ac_cv_type_int32_t = yes; then
  20638. cat >>confdefs.h <<_ACEOF
  20639. #define HAVE_INT32_T 1
  20640. _ACEOF
  20641. fi
  20642. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  20643. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  20644. if test "${ac_cv_type_uint64_t+set}" = set; then
  20645. echo $ECHO_N "(cached) $ECHO_C" >&6
  20646. else
  20647. cat >conftest.$ac_ext <<_ACEOF
  20648. /* confdefs.h. */
  20649. _ACEOF
  20650. cat confdefs.h >>conftest.$ac_ext
  20651. cat >>conftest.$ac_ext <<_ACEOF
  20652. /* end confdefs.h. */
  20653. $ac_includes_default
  20654. typedef uint64_t ac__type_new_;
  20655. int
  20656. main ()
  20657. {
  20658. if ((ac__type_new_ *) 0)
  20659. return 0;
  20660. if (sizeof (ac__type_new_))
  20661. return 0;
  20662. ;
  20663. return 0;
  20664. }
  20665. _ACEOF
  20666. rm -f conftest.$ac_objext
  20667. if { (ac_try="$ac_compile"
  20668. case "(($ac_try" in
  20669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20670. *) ac_try_echo=$ac_try;;
  20671. esac
  20672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20673. (eval "$ac_compile") 2>conftest.er1
  20674. ac_status=$?
  20675. grep -v '^ *+' conftest.er1 >conftest.err
  20676. rm -f conftest.er1
  20677. cat conftest.err >&5
  20678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20679. (exit $ac_status); } && {
  20680. test -z "$ac_c_werror_flag" ||
  20681. test ! -s conftest.err
  20682. } && test -s conftest.$ac_objext; then
  20683. ac_cv_type_uint64_t=yes
  20684. else
  20685. echo "$as_me: failed program was:" >&5
  20686. sed 's/^/| /' conftest.$ac_ext >&5
  20687. ac_cv_type_uint64_t=no
  20688. fi
  20689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20690. fi
  20691. { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  20692. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  20693. if test $ac_cv_type_uint64_t = yes; then
  20694. cat >>confdefs.h <<_ACEOF
  20695. #define HAVE_UINT64_T 1
  20696. _ACEOF
  20697. fi
  20698. { echo "$as_me:$LINENO: checking for int64_t" >&5
  20699. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  20700. if test "${ac_cv_type_int64_t+set}" = set; then
  20701. echo $ECHO_N "(cached) $ECHO_C" >&6
  20702. else
  20703. cat >conftest.$ac_ext <<_ACEOF
  20704. /* confdefs.h. */
  20705. _ACEOF
  20706. cat confdefs.h >>conftest.$ac_ext
  20707. cat >>conftest.$ac_ext <<_ACEOF
  20708. /* end confdefs.h. */
  20709. $ac_includes_default
  20710. typedef int64_t ac__type_new_;
  20711. int
  20712. main ()
  20713. {
  20714. if ((ac__type_new_ *) 0)
  20715. return 0;
  20716. if (sizeof (ac__type_new_))
  20717. return 0;
  20718. ;
  20719. return 0;
  20720. }
  20721. _ACEOF
  20722. rm -f conftest.$ac_objext
  20723. if { (ac_try="$ac_compile"
  20724. case "(($ac_try" in
  20725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20726. *) ac_try_echo=$ac_try;;
  20727. esac
  20728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20729. (eval "$ac_compile") 2>conftest.er1
  20730. ac_status=$?
  20731. grep -v '^ *+' conftest.er1 >conftest.err
  20732. rm -f conftest.er1
  20733. cat conftest.err >&5
  20734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20735. (exit $ac_status); } && {
  20736. test -z "$ac_c_werror_flag" ||
  20737. test ! -s conftest.err
  20738. } && test -s conftest.$ac_objext; then
  20739. ac_cv_type_int64_t=yes
  20740. else
  20741. echo "$as_me: failed program was:" >&5
  20742. sed 's/^/| /' conftest.$ac_ext >&5
  20743. ac_cv_type_int64_t=no
  20744. fi
  20745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20746. fi
  20747. { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  20748. echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
  20749. if test $ac_cv_type_int64_t = yes; then
  20750. cat >>confdefs.h <<_ACEOF
  20751. #define HAVE_INT64_T 1
  20752. _ACEOF
  20753. fi
  20754. { echo "$as_me:$LINENO: checking for long long" >&5
  20755. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  20756. if test "${ac_cv_type_long_long+set}" = set; then
  20757. echo $ECHO_N "(cached) $ECHO_C" >&6
  20758. else
  20759. cat >conftest.$ac_ext <<_ACEOF
  20760. /* confdefs.h. */
  20761. _ACEOF
  20762. cat confdefs.h >>conftest.$ac_ext
  20763. cat >>conftest.$ac_ext <<_ACEOF
  20764. /* end confdefs.h. */
  20765. $ac_includes_default
  20766. typedef long long ac__type_new_;
  20767. int
  20768. main ()
  20769. {
  20770. if ((ac__type_new_ *) 0)
  20771. return 0;
  20772. if (sizeof (ac__type_new_))
  20773. return 0;
  20774. ;
  20775. return 0;
  20776. }
  20777. _ACEOF
  20778. rm -f conftest.$ac_objext
  20779. if { (ac_try="$ac_compile"
  20780. case "(($ac_try" in
  20781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20782. *) ac_try_echo=$ac_try;;
  20783. esac
  20784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20785. (eval "$ac_compile") 2>conftest.er1
  20786. ac_status=$?
  20787. grep -v '^ *+' conftest.er1 >conftest.err
  20788. rm -f conftest.er1
  20789. cat conftest.err >&5
  20790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20791. (exit $ac_status); } && {
  20792. test -z "$ac_c_werror_flag" ||
  20793. test ! -s conftest.err
  20794. } && test -s conftest.$ac_objext; then
  20795. ac_cv_type_long_long=yes
  20796. else
  20797. echo "$as_me: failed program was:" >&5
  20798. sed 's/^/| /' conftest.$ac_ext >&5
  20799. ac_cv_type_long_long=no
  20800. fi
  20801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20802. fi
  20803. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  20804. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  20805. # The cast to long int works around a bug in the HP C Compiler
  20806. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20807. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20808. # This bug is HP SR number 8606223364.
  20809. { echo "$as_me:$LINENO: checking size of long long" >&5
  20810. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  20811. if test "${ac_cv_sizeof_long_long+set}" = set; then
  20812. echo $ECHO_N "(cached) $ECHO_C" >&6
  20813. else
  20814. if test "$cross_compiling" = yes; then
  20815. # Depending upon the size, compute the lo and hi bounds.
  20816. cat >conftest.$ac_ext <<_ACEOF
  20817. /* confdefs.h. */
  20818. _ACEOF
  20819. cat confdefs.h >>conftest.$ac_ext
  20820. cat >>conftest.$ac_ext <<_ACEOF
  20821. /* end confdefs.h. */
  20822. $ac_includes_default
  20823. typedef long long ac__type_sizeof_;
  20824. int
  20825. main ()
  20826. {
  20827. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  20828. test_array [0] = 0
  20829. ;
  20830. return 0;
  20831. }
  20832. _ACEOF
  20833. rm -f conftest.$ac_objext
  20834. if { (ac_try="$ac_compile"
  20835. case "(($ac_try" in
  20836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20837. *) ac_try_echo=$ac_try;;
  20838. esac
  20839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20840. (eval "$ac_compile") 2>conftest.er1
  20841. ac_status=$?
  20842. grep -v '^ *+' conftest.er1 >conftest.err
  20843. rm -f conftest.er1
  20844. cat conftest.err >&5
  20845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20846. (exit $ac_status); } && {
  20847. test -z "$ac_c_werror_flag" ||
  20848. test ! -s conftest.err
  20849. } && test -s conftest.$ac_objext; then
  20850. ac_lo=0 ac_mid=0
  20851. while :; do
  20852. cat >conftest.$ac_ext <<_ACEOF
  20853. /* confdefs.h. */
  20854. _ACEOF
  20855. cat confdefs.h >>conftest.$ac_ext
  20856. cat >>conftest.$ac_ext <<_ACEOF
  20857. /* end confdefs.h. */
  20858. $ac_includes_default
  20859. typedef long long ac__type_sizeof_;
  20860. int
  20861. main ()
  20862. {
  20863. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20864. test_array [0] = 0
  20865. ;
  20866. return 0;
  20867. }
  20868. _ACEOF
  20869. rm -f conftest.$ac_objext
  20870. if { (ac_try="$ac_compile"
  20871. case "(($ac_try" in
  20872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20873. *) ac_try_echo=$ac_try;;
  20874. esac
  20875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20876. (eval "$ac_compile") 2>conftest.er1
  20877. ac_status=$?
  20878. grep -v '^ *+' conftest.er1 >conftest.err
  20879. rm -f conftest.er1
  20880. cat conftest.err >&5
  20881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20882. (exit $ac_status); } && {
  20883. test -z "$ac_c_werror_flag" ||
  20884. test ! -s conftest.err
  20885. } && test -s conftest.$ac_objext; then
  20886. ac_hi=$ac_mid; break
  20887. else
  20888. echo "$as_me: failed program was:" >&5
  20889. sed 's/^/| /' conftest.$ac_ext >&5
  20890. ac_lo=`expr $ac_mid + 1`
  20891. if test $ac_lo -le $ac_mid; then
  20892. ac_lo= ac_hi=
  20893. break
  20894. fi
  20895. ac_mid=`expr 2 '*' $ac_mid + 1`
  20896. fi
  20897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20898. done
  20899. else
  20900. echo "$as_me: failed program was:" >&5
  20901. sed 's/^/| /' conftest.$ac_ext >&5
  20902. cat >conftest.$ac_ext <<_ACEOF
  20903. /* confdefs.h. */
  20904. _ACEOF
  20905. cat confdefs.h >>conftest.$ac_ext
  20906. cat >>conftest.$ac_ext <<_ACEOF
  20907. /* end confdefs.h. */
  20908. $ac_includes_default
  20909. typedef long long ac__type_sizeof_;
  20910. int
  20911. main ()
  20912. {
  20913. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  20914. test_array [0] = 0
  20915. ;
  20916. return 0;
  20917. }
  20918. _ACEOF
  20919. rm -f conftest.$ac_objext
  20920. if { (ac_try="$ac_compile"
  20921. case "(($ac_try" in
  20922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20923. *) ac_try_echo=$ac_try;;
  20924. esac
  20925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20926. (eval "$ac_compile") 2>conftest.er1
  20927. ac_status=$?
  20928. grep -v '^ *+' conftest.er1 >conftest.err
  20929. rm -f conftest.er1
  20930. cat conftest.err >&5
  20931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20932. (exit $ac_status); } && {
  20933. test -z "$ac_c_werror_flag" ||
  20934. test ! -s conftest.err
  20935. } && test -s conftest.$ac_objext; then
  20936. ac_hi=-1 ac_mid=-1
  20937. while :; do
  20938. cat >conftest.$ac_ext <<_ACEOF
  20939. /* confdefs.h. */
  20940. _ACEOF
  20941. cat confdefs.h >>conftest.$ac_ext
  20942. cat >>conftest.$ac_ext <<_ACEOF
  20943. /* end confdefs.h. */
  20944. $ac_includes_default
  20945. typedef long long ac__type_sizeof_;
  20946. int
  20947. main ()
  20948. {
  20949. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  20950. test_array [0] = 0
  20951. ;
  20952. return 0;
  20953. }
  20954. _ACEOF
  20955. rm -f conftest.$ac_objext
  20956. if { (ac_try="$ac_compile"
  20957. case "(($ac_try" in
  20958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20959. *) ac_try_echo=$ac_try;;
  20960. esac
  20961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20962. (eval "$ac_compile") 2>conftest.er1
  20963. ac_status=$?
  20964. grep -v '^ *+' conftest.er1 >conftest.err
  20965. rm -f conftest.er1
  20966. cat conftest.err >&5
  20967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20968. (exit $ac_status); } && {
  20969. test -z "$ac_c_werror_flag" ||
  20970. test ! -s conftest.err
  20971. } && test -s conftest.$ac_objext; then
  20972. ac_lo=$ac_mid; break
  20973. else
  20974. echo "$as_me: failed program was:" >&5
  20975. sed 's/^/| /' conftest.$ac_ext >&5
  20976. ac_hi=`expr '(' $ac_mid ')' - 1`
  20977. if test $ac_mid -le $ac_hi; then
  20978. ac_lo= ac_hi=
  20979. break
  20980. fi
  20981. ac_mid=`expr 2 '*' $ac_mid`
  20982. fi
  20983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20984. done
  20985. else
  20986. echo "$as_me: failed program was:" >&5
  20987. sed 's/^/| /' conftest.$ac_ext >&5
  20988. ac_lo= ac_hi=
  20989. fi
  20990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20991. fi
  20992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20993. # Binary search between lo and hi bounds.
  20994. while test "x$ac_lo" != "x$ac_hi"; do
  20995. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  20996. cat >conftest.$ac_ext <<_ACEOF
  20997. /* confdefs.h. */
  20998. _ACEOF
  20999. cat confdefs.h >>conftest.$ac_ext
  21000. cat >>conftest.$ac_ext <<_ACEOF
  21001. /* end confdefs.h. */
  21002. $ac_includes_default
  21003. typedef long long ac__type_sizeof_;
  21004. int
  21005. main ()
  21006. {
  21007. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  21008. test_array [0] = 0
  21009. ;
  21010. return 0;
  21011. }
  21012. _ACEOF
  21013. rm -f conftest.$ac_objext
  21014. if { (ac_try="$ac_compile"
  21015. case "(($ac_try" in
  21016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21017. *) ac_try_echo=$ac_try;;
  21018. esac
  21019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21020. (eval "$ac_compile") 2>conftest.er1
  21021. ac_status=$?
  21022. grep -v '^ *+' conftest.er1 >conftest.err
  21023. rm -f conftest.er1
  21024. cat conftest.err >&5
  21025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21026. (exit $ac_status); } && {
  21027. test -z "$ac_c_werror_flag" ||
  21028. test ! -s conftest.err
  21029. } && test -s conftest.$ac_objext; then
  21030. ac_hi=$ac_mid
  21031. else
  21032. echo "$as_me: failed program was:" >&5
  21033. sed 's/^/| /' conftest.$ac_ext >&5
  21034. ac_lo=`expr '(' $ac_mid ')' + 1`
  21035. fi
  21036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21037. done
  21038. case $ac_lo in
  21039. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  21040. '') if test "$ac_cv_type_long_long" = yes; then
  21041. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  21042. See \`config.log' for more details." >&5
  21043. echo "$as_me: error: cannot compute sizeof (long long)
  21044. See \`config.log' for more details." >&2;}
  21045. { (exit 77); exit 77; }; }
  21046. else
  21047. ac_cv_sizeof_long_long=0
  21048. fi ;;
  21049. esac
  21050. else
  21051. cat >conftest.$ac_ext <<_ACEOF
  21052. /* confdefs.h. */
  21053. _ACEOF
  21054. cat confdefs.h >>conftest.$ac_ext
  21055. cat >>conftest.$ac_ext <<_ACEOF
  21056. /* end confdefs.h. */
  21057. $ac_includes_default
  21058. typedef long long ac__type_sizeof_;
  21059. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  21060. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  21061. #include <stdio.h>
  21062. #include <stdlib.h>
  21063. int
  21064. main ()
  21065. {
  21066. FILE *f = fopen ("conftest.val", "w");
  21067. if (! f)
  21068. return 1;
  21069. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  21070. {
  21071. long int i = longval ();
  21072. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  21073. return 1;
  21074. fprintf (f, "%ld\n", i);
  21075. }
  21076. else
  21077. {
  21078. unsigned long int i = ulongval ();
  21079. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  21080. return 1;
  21081. fprintf (f, "%lu\n", i);
  21082. }
  21083. return ferror (f) || fclose (f) != 0;
  21084. ;
  21085. return 0;
  21086. }
  21087. _ACEOF
  21088. rm -f conftest$ac_exeext
  21089. if { (ac_try="$ac_link"
  21090. case "(($ac_try" in
  21091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21092. *) ac_try_echo=$ac_try;;
  21093. esac
  21094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21095. (eval "$ac_link") 2>&5
  21096. ac_status=$?
  21097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21098. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21099. { (case "(($ac_try" in
  21100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21101. *) ac_try_echo=$ac_try;;
  21102. esac
  21103. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21104. (eval "$ac_try") 2>&5
  21105. ac_status=$?
  21106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21107. (exit $ac_status); }; }; then
  21108. ac_cv_sizeof_long_long=`cat conftest.val`
  21109. else
  21110. echo "$as_me: program exited with status $ac_status" >&5
  21111. echo "$as_me: failed program was:" >&5
  21112. sed 's/^/| /' conftest.$ac_ext >&5
  21113. ( exit $ac_status )
  21114. if test "$ac_cv_type_long_long" = yes; then
  21115. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  21116. See \`config.log' for more details." >&5
  21117. echo "$as_me: error: cannot compute sizeof (long long)
  21118. See \`config.log' for more details." >&2;}
  21119. { (exit 77); exit 77; }; }
  21120. else
  21121. ac_cv_sizeof_long_long=0
  21122. fi
  21123. fi
  21124. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21125. fi
  21126. rm -f conftest.val
  21127. fi
  21128. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  21129. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  21130. cat >>confdefs.h <<_ACEOF
  21131. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  21132. _ACEOF
  21133. { echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
  21134. echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
  21135. # Check whether --enable-warnings was given.
  21136. if test "${enable_warnings+set}" = set; then
  21137. enableval=$enable_warnings; if test "${enableval}" = no -o $GCC = no; then
  21138. { echo "$as_me:$LINENO: result: no" >&5
  21139. echo "${ECHO_T}no" >&6; }
  21140. WARNINGS=
  21141. else
  21142. { echo "$as_me:$LINENO: result: yes" >&5
  21143. echo "${ECHO_T}yes" >&6; }
  21144. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  21145. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  21146. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  21147. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  21148. fi
  21149. else
  21150. if test $GCC = no; then
  21151. WARNINGS=
  21152. { echo "$as_me:$LINENO: result: no" >&5
  21153. echo "${ECHO_T}no" >&6; }
  21154. else
  21155. { echo "$as_me:$LINENO: result: yes" >&5
  21156. echo "${ECHO_T}yes" >&6; }
  21157. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  21158. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  21159. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  21160. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  21161. fi
  21162. fi
  21163. for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
  21164. do
  21165. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21166. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21167. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21168. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21169. echo $ECHO_N "(cached) $ECHO_C" >&6
  21170. else
  21171. cat >conftest.$ac_ext <<_ACEOF
  21172. /* confdefs.h. */
  21173. _ACEOF
  21174. cat confdefs.h >>conftest.$ac_ext
  21175. cat >>conftest.$ac_ext <<_ACEOF
  21176. /* end confdefs.h. */
  21177. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21178. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21179. #define $ac_func innocuous_$ac_func
  21180. /* System header to define __stub macros and hopefully few prototypes,
  21181. which can conflict with char $ac_func (); below.
  21182. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21183. <limits.h> exists even on freestanding compilers. */
  21184. #ifdef __STDC__
  21185. # include <limits.h>
  21186. #else
  21187. # include <assert.h>
  21188. #endif
  21189. #undef $ac_func
  21190. /* Override any GCC internal prototype to avoid an error.
  21191. Use char because int might match the return type of a GCC
  21192. builtin and then its argument prototype would still apply. */
  21193. #ifdef __cplusplus
  21194. extern "C"
  21195. #endif
  21196. char $ac_func ();
  21197. /* The GNU C library defines this for functions which it implements
  21198. to always fail with ENOSYS. Some functions are actually named
  21199. something starting with __ and the normal name is an alias. */
  21200. #if defined __stub_$ac_func || defined __stub___$ac_func
  21201. choke me
  21202. #endif
  21203. int
  21204. main ()
  21205. {
  21206. return $ac_func ();
  21207. ;
  21208. return 0;
  21209. }
  21210. _ACEOF
  21211. rm -f conftest.$ac_objext conftest$ac_exeext
  21212. if { (ac_try="$ac_link"
  21213. case "(($ac_try" in
  21214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21215. *) ac_try_echo=$ac_try;;
  21216. esac
  21217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21218. (eval "$ac_link") 2>conftest.er1
  21219. ac_status=$?
  21220. grep -v '^ *+' conftest.er1 >conftest.err
  21221. rm -f conftest.er1
  21222. cat conftest.err >&5
  21223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21224. (exit $ac_status); } && {
  21225. test -z "$ac_c_werror_flag" ||
  21226. test ! -s conftest.err
  21227. } && test -s conftest$ac_exeext &&
  21228. $as_test_x conftest$ac_exeext; then
  21229. eval "$as_ac_var=yes"
  21230. else
  21231. echo "$as_me: failed program was:" >&5
  21232. sed 's/^/| /' conftest.$ac_ext >&5
  21233. eval "$as_ac_var=no"
  21234. fi
  21235. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21236. conftest$ac_exeext conftest.$ac_ext
  21237. fi
  21238. ac_res=`eval echo '${'$as_ac_var'}'`
  21239. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21240. echo "${ECHO_T}$ac_res" >&6; }
  21241. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21242. cat >>confdefs.h <<_ACEOF
  21243. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21244. _ACEOF
  21245. fi
  21246. done
  21247. for ac_func in getopt_long asprintf vasprintf
  21248. do
  21249. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21250. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21251. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21252. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21253. echo $ECHO_N "(cached) $ECHO_C" >&6
  21254. else
  21255. cat >conftest.$ac_ext <<_ACEOF
  21256. /* confdefs.h. */
  21257. _ACEOF
  21258. cat confdefs.h >>conftest.$ac_ext
  21259. cat >>conftest.$ac_ext <<_ACEOF
  21260. /* end confdefs.h. */
  21261. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21262. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21263. #define $ac_func innocuous_$ac_func
  21264. /* System header to define __stub macros and hopefully few prototypes,
  21265. which can conflict with char $ac_func (); below.
  21266. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21267. <limits.h> exists even on freestanding compilers. */
  21268. #ifdef __STDC__
  21269. # include <limits.h>
  21270. #else
  21271. # include <assert.h>
  21272. #endif
  21273. #undef $ac_func
  21274. /* Override any GCC internal prototype to avoid an error.
  21275. Use char because int might match the return type of a GCC
  21276. builtin and then its argument prototype would still apply. */
  21277. #ifdef __cplusplus
  21278. extern "C"
  21279. #endif
  21280. char $ac_func ();
  21281. /* The GNU C library defines this for functions which it implements
  21282. to always fail with ENOSYS. Some functions are actually named
  21283. something starting with __ and the normal name is an alias. */
  21284. #if defined __stub_$ac_func || defined __stub___$ac_func
  21285. choke me
  21286. #endif
  21287. int
  21288. main ()
  21289. {
  21290. return $ac_func ();
  21291. ;
  21292. return 0;
  21293. }
  21294. _ACEOF
  21295. rm -f conftest.$ac_objext conftest$ac_exeext
  21296. if { (ac_try="$ac_link"
  21297. case "(($ac_try" in
  21298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21299. *) ac_try_echo=$ac_try;;
  21300. esac
  21301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21302. (eval "$ac_link") 2>conftest.er1
  21303. ac_status=$?
  21304. grep -v '^ *+' conftest.er1 >conftest.err
  21305. rm -f conftest.er1
  21306. cat conftest.err >&5
  21307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21308. (exit $ac_status); } && {
  21309. test -z "$ac_c_werror_flag" ||
  21310. test ! -s conftest.err
  21311. } && test -s conftest$ac_exeext &&
  21312. $as_test_x conftest$ac_exeext; then
  21313. eval "$as_ac_var=yes"
  21314. else
  21315. echo "$as_me: failed program was:" >&5
  21316. sed 's/^/| /' conftest.$ac_ext >&5
  21317. eval "$as_ac_var=no"
  21318. fi
  21319. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21320. conftest$ac_exeext conftest.$ac_ext
  21321. fi
  21322. ac_res=`eval echo '${'$as_ac_var'}'`
  21323. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21324. echo "${ECHO_T}$ac_res" >&6; }
  21325. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21326. cat >>confdefs.h <<_ACEOF
  21327. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21328. _ACEOF
  21329. else
  21330. case " $LIBOBJS " in
  21331. *" $ac_func.$ac_objext "* ) ;;
  21332. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  21333. ;;
  21334. esac
  21335. fi
  21336. done
  21337. { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  21338. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
  21339. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  21340. echo $ECHO_N "(cached) $ECHO_C" >&6
  21341. else
  21342. ac_check_lib_save_LIBS=$LIBS
  21343. LIBS="-lz $LIBS"
  21344. cat >conftest.$ac_ext <<_ACEOF
  21345. /* confdefs.h. */
  21346. _ACEOF
  21347. cat confdefs.h >>conftest.$ac_ext
  21348. cat >>conftest.$ac_ext <<_ACEOF
  21349. /* end confdefs.h. */
  21350. /* Override any GCC internal prototype to avoid an error.
  21351. Use char because int might match the return type of a GCC
  21352. builtin and then its argument prototype would still apply. */
  21353. #ifdef __cplusplus
  21354. extern "C"
  21355. #endif
  21356. char gzopen ();
  21357. int
  21358. main ()
  21359. {
  21360. return gzopen ();
  21361. ;
  21362. return 0;
  21363. }
  21364. _ACEOF
  21365. rm -f conftest.$ac_objext conftest$ac_exeext
  21366. if { (ac_try="$ac_link"
  21367. case "(($ac_try" in
  21368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21369. *) ac_try_echo=$ac_try;;
  21370. esac
  21371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21372. (eval "$ac_link") 2>conftest.er1
  21373. ac_status=$?
  21374. grep -v '^ *+' conftest.er1 >conftest.err
  21375. rm -f conftest.er1
  21376. cat conftest.err >&5
  21377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21378. (exit $ac_status); } && {
  21379. test -z "$ac_c_werror_flag" ||
  21380. test ! -s conftest.err
  21381. } && test -s conftest$ac_exeext &&
  21382. $as_test_x conftest$ac_exeext; then
  21383. ac_cv_lib_z_gzopen=yes
  21384. else
  21385. echo "$as_me: failed program was:" >&5
  21386. sed 's/^/| /' conftest.$ac_ext >&5
  21387. ac_cv_lib_z_gzopen=no
  21388. fi
  21389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21390. conftest$ac_exeext conftest.$ac_ext
  21391. LIBS=$ac_check_lib_save_LIBS
  21392. fi
  21393. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  21394. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
  21395. if test $ac_cv_lib_z_gzopen = yes; then
  21396. cat >>confdefs.h <<_ACEOF
  21397. #define HAVE_LIBZ 1
  21398. _ACEOF
  21399. LIBS="-lz $LIBS"
  21400. fi
  21401. if test "$cross_compiling" = yes; then
  21402. IS_CROSS_COMPILE_TRUE=
  21403. IS_CROSS_COMPILE_FALSE='#'
  21404. else
  21405. IS_CROSS_COMPILE_TRUE='#'
  21406. IS_CROSS_COMPILE_FALSE=
  21407. fi
  21408. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  21409. cat >confcache <<\_ACEOF
  21410. # This file is a shell script that caches the results of configure
  21411. # tests run on this system so they can be shared between configure
  21412. # scripts and configure runs, see configure's option --config-cache.
  21413. # It is not useful on other systems. If it contains results you don't
  21414. # want to keep, you may remove or edit it.
  21415. #
  21416. # config.status only pays attention to the cache file if you give it
  21417. # the --recheck option to rerun configure.
  21418. #
  21419. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21420. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21421. # following values.
  21422. _ACEOF
  21423. # The following way of writing the cache mishandles newlines in values,
  21424. # but we know of no workaround that is simple, portable, and efficient.
  21425. # So, we kill variables containing newlines.
  21426. # Ultrix sh set writes to stderr and can't be redirected directly,
  21427. # and sets the high bit in the cache file unless we assign to the vars.
  21428. (
  21429. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21430. eval ac_val=\$$ac_var
  21431. case $ac_val in #(
  21432. *${as_nl}*)
  21433. case $ac_var in #(
  21434. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  21435. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  21436. esac
  21437. case $ac_var in #(
  21438. _ | IFS | as_nl) ;; #(
  21439. *) $as_unset $ac_var ;;
  21440. esac ;;
  21441. esac
  21442. done
  21443. (set) 2>&1 |
  21444. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21445. *${as_nl}ac_space=\ *)
  21446. # `set' does not quote correctly, so add quotes (double-quote
  21447. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21448. sed -n \
  21449. "s/'/'\\\\''/g;
  21450. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21451. ;; #(
  21452. *)
  21453. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21454. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21455. ;;
  21456. esac |
  21457. sort
  21458. ) |
  21459. sed '
  21460. /^ac_cv_env_/b end
  21461. t clear
  21462. :clear
  21463. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21464. t end
  21465. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21466. :end' >>confcache
  21467. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21468. if test -w "$cache_file"; then
  21469. test "x$cache_file" != "x/dev/null" &&
  21470. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21471. echo "$as_me: updating cache $cache_file" >&6;}
  21472. cat confcache >$cache_file
  21473. else
  21474. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21475. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21476. fi
  21477. fi
  21478. rm -f confcache
  21479. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21480. # Let make expand exec_prefix.
  21481. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21482. DEFS=-DHAVE_CONFIG_H
  21483. ac_libobjs=
  21484. ac_ltlibobjs=
  21485. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21486. # 1. Remove the extension, and $U if already installed.
  21487. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21488. ac_i=`echo "$ac_i" | sed "$ac_script"`
  21489. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21490. # will be set to the directory where LIBOBJS objects are built.
  21491. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21492. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21493. done
  21494. LIBOBJS=$ac_libobjs
  21495. LTLIBOBJS=$ac_ltlibobjs
  21496. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  21497. { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
  21498. Usually this means the macro was only invoked conditionally." >&5
  21499. echo "$as_me: error: conditional \"FSECT5\" was never defined.
  21500. Usually this means the macro was only invoked conditionally." >&2;}
  21501. { (exit 1); exit 1; }; }
  21502. fi
  21503. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21504. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21505. Usually this means the macro was only invoked conditionally." >&5
  21506. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21507. Usually this means the macro was only invoked conditionally." >&2;}
  21508. { (exit 1); exit 1; }; }
  21509. fi
  21510. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21511. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21512. Usually this means the macro was only invoked conditionally." >&5
  21513. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21514. Usually this means the macro was only invoked conditionally." >&2;}
  21515. { (exit 1); exit 1; }; }
  21516. fi
  21517. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21518. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21519. Usually this means the macro was only invoked conditionally." >&5
  21520. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21521. Usually this means the macro was only invoked conditionally." >&2;}
  21522. { (exit 1); exit 1; }; }
  21523. fi
  21524. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  21525. { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21526. Usually this means the macro was only invoked conditionally." >&5
  21527. echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21528. Usually this means the macro was only invoked conditionally." >&2;}
  21529. { (exit 1); exit 1; }; }
  21530. fi
  21531. : ${CONFIG_STATUS=./config.status}
  21532. ac_clean_files_save=$ac_clean_files
  21533. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21534. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21535. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21536. cat >$CONFIG_STATUS <<_ACEOF
  21537. #! $SHELL
  21538. # Generated by $as_me.
  21539. # Run this file to recreate the current configuration.
  21540. # Compiler output produced by configure, useful for debugging
  21541. # configure, is in config.log if it exists.
  21542. debug=false
  21543. ac_cs_recheck=false
  21544. ac_cs_silent=false
  21545. SHELL=\${CONFIG_SHELL-$SHELL}
  21546. _ACEOF
  21547. cat >>$CONFIG_STATUS <<\_ACEOF
  21548. ## --------------------- ##
  21549. ## M4sh Initialization. ##
  21550. ## --------------------- ##
  21551. # Be more Bourne compatible
  21552. DUALCASE=1; export DUALCASE # for MKS sh
  21553. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21554. emulate sh
  21555. NULLCMD=:
  21556. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21557. # is contrary to our usage. Disable this feature.
  21558. alias -g '${1+"$@"}'='"$@"'
  21559. setopt NO_GLOB_SUBST
  21560. else
  21561. case `(set -o) 2>/dev/null` in
  21562. *posix*) set -o posix ;;
  21563. esac
  21564. fi
  21565. # PATH needs CR
  21566. # Avoid depending upon Character Ranges.
  21567. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21568. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21569. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21570. as_cr_digits='0123456789'
  21571. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21572. # The user is always right.
  21573. if test "${PATH_SEPARATOR+set}" != set; then
  21574. echo "#! /bin/sh" >conf$$.sh
  21575. echo "exit 0" >>conf$$.sh
  21576. chmod +x conf$$.sh
  21577. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  21578. PATH_SEPARATOR=';'
  21579. else
  21580. PATH_SEPARATOR=:
  21581. fi
  21582. rm -f conf$$.sh
  21583. fi
  21584. # Support unset when possible.
  21585. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21586. as_unset=unset
  21587. else
  21588. as_unset=false
  21589. fi
  21590. # IFS
  21591. # We need space, tab and new line, in precisely that order. Quoting is
  21592. # there to prevent editors from complaining about space-tab.
  21593. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21594. # splitting by setting IFS to empty value.)
  21595. as_nl='
  21596. '
  21597. IFS=" "" $as_nl"
  21598. # Find who we are. Look in the path if we contain no directory separator.
  21599. case $0 in
  21600. *[\\/]* ) as_myself=$0 ;;
  21601. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21602. for as_dir in $PATH
  21603. do
  21604. IFS=$as_save_IFS
  21605. test -z "$as_dir" && as_dir=.
  21606. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21607. done
  21608. IFS=$as_save_IFS
  21609. ;;
  21610. esac
  21611. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21612. # in which case we are not to be found in the path.
  21613. if test "x$as_myself" = x; then
  21614. as_myself=$0
  21615. fi
  21616. if test ! -f "$as_myself"; then
  21617. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21618. { (exit 1); exit 1; }
  21619. fi
  21620. # Work around bugs in pre-3.0 UWIN ksh.
  21621. for as_var in ENV MAIL MAILPATH
  21622. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21623. done
  21624. PS1='$ '
  21625. PS2='> '
  21626. PS4='+ '
  21627. # NLS nuisances.
  21628. for as_var in \
  21629. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  21630. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  21631. LC_TELEPHONE LC_TIME
  21632. do
  21633. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  21634. eval $as_var=C; export $as_var
  21635. else
  21636. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21637. fi
  21638. done
  21639. # Required to use basename.
  21640. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21641. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21642. as_expr=expr
  21643. else
  21644. as_expr=false
  21645. fi
  21646. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21647. as_basename=basename
  21648. else
  21649. as_basename=false
  21650. fi
  21651. # Name of the executable.
  21652. as_me=`$as_basename -- "$0" ||
  21653. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21654. X"$0" : 'X\(//\)$' \| \
  21655. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21656. echo X/"$0" |
  21657. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21658. s//\1/
  21659. q
  21660. }
  21661. /^X\/\(\/\/\)$/{
  21662. s//\1/
  21663. q
  21664. }
  21665. /^X\/\(\/\).*/{
  21666. s//\1/
  21667. q
  21668. }
  21669. s/.*/./; q'`
  21670. # CDPATH.
  21671. $as_unset CDPATH
  21672. as_lineno_1=$LINENO
  21673. as_lineno_2=$LINENO
  21674. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21675. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21676. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21677. # uniformly replaced by the line number. The first 'sed' inserts a
  21678. # line-number line after each line using $LINENO; the second 'sed'
  21679. # does the real work. The second script uses 'N' to pair each
  21680. # line-number line with the line containing $LINENO, and appends
  21681. # trailing '-' during substitution so that $LINENO is not a special
  21682. # case at line end.
  21683. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21684. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21685. # E. McMahon (1931-1989) for sed's syntax. :-)
  21686. sed -n '
  21687. p
  21688. /[$]LINENO/=
  21689. ' <$as_myself |
  21690. sed '
  21691. s/[$]LINENO.*/&-/
  21692. t lineno
  21693. b
  21694. :lineno
  21695. N
  21696. :loop
  21697. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21698. t loop
  21699. s/-\n.*//
  21700. ' >$as_me.lineno &&
  21701. chmod +x "$as_me.lineno" ||
  21702. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21703. { (exit 1); exit 1; }; }
  21704. # Don't try to exec as it changes $[0], causing all sort of problems
  21705. # (the dirname of $[0] is not the place where we might find the
  21706. # original and so on. Autoconf is especially sensitive to this).
  21707. . "./$as_me.lineno"
  21708. # Exit status is that of the last command.
  21709. exit
  21710. }
  21711. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21712. as_dirname=dirname
  21713. else
  21714. as_dirname=false
  21715. fi
  21716. ECHO_C= ECHO_N= ECHO_T=
  21717. case `echo -n x` in
  21718. -n*)
  21719. case `echo 'x\c'` in
  21720. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21721. *) ECHO_C='\c';;
  21722. esac;;
  21723. *)
  21724. ECHO_N='-n';;
  21725. esac
  21726. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21727. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21728. as_expr=expr
  21729. else
  21730. as_expr=false
  21731. fi
  21732. rm -f conf$$ conf$$.exe conf$$.file
  21733. if test -d conf$$.dir; then
  21734. rm -f conf$$.dir/conf$$.file
  21735. else
  21736. rm -f conf$$.dir
  21737. mkdir conf$$.dir
  21738. fi
  21739. echo >conf$$.file
  21740. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21741. as_ln_s='ln -s'
  21742. # ... but there are two gotchas:
  21743. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21744. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21745. # In both cases, we have to default to `cp -p'.
  21746. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21747. as_ln_s='cp -p'
  21748. elif ln conf$$.file conf$$ 2>/dev/null; then
  21749. as_ln_s=ln
  21750. else
  21751. as_ln_s='cp -p'
  21752. fi
  21753. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21754. rmdir conf$$.dir 2>/dev/null
  21755. if mkdir -p . 2>/dev/null; then
  21756. as_mkdir_p=:
  21757. else
  21758. test -d ./-p && rmdir ./-p
  21759. as_mkdir_p=false
  21760. fi
  21761. if test -x / >/dev/null 2>&1; then
  21762. as_test_x='test -x'
  21763. else
  21764. if ls -dL / >/dev/null 2>&1; then
  21765. as_ls_L_option=L
  21766. else
  21767. as_ls_L_option=
  21768. fi
  21769. as_test_x='
  21770. eval sh -c '\''
  21771. if test -d "$1"; then
  21772. test -d "$1/.";
  21773. else
  21774. case $1 in
  21775. -*)set "./$1";;
  21776. esac;
  21777. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21778. ???[sx]*):;;*)false;;esac;fi
  21779. '\'' sh
  21780. '
  21781. fi
  21782. as_executable_p=$as_test_x
  21783. # Sed expression to map a string onto a valid CPP name.
  21784. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21785. # Sed expression to map a string onto a valid variable name.
  21786. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21787. exec 6>&1
  21788. # Save the log message, to keep $[0] and so on meaningful, and to
  21789. # report actual input values of CONFIG_FILES etc. instead of their
  21790. # values after options handling.
  21791. ac_log="
  21792. This file was extended by file $as_me 4.26, which was
  21793. generated by GNU Autoconf 2.61. Invocation command line was
  21794. CONFIG_FILES = $CONFIG_FILES
  21795. CONFIG_HEADERS = $CONFIG_HEADERS
  21796. CONFIG_LINKS = $CONFIG_LINKS
  21797. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21798. $ $0 $@
  21799. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21800. "
  21801. _ACEOF
  21802. cat >>$CONFIG_STATUS <<_ACEOF
  21803. # Files that config.status was made for.
  21804. config_files="$ac_config_files"
  21805. config_headers="$ac_config_headers"
  21806. config_commands="$ac_config_commands"
  21807. _ACEOF
  21808. cat >>$CONFIG_STATUS <<\_ACEOF
  21809. ac_cs_usage="\
  21810. \`$as_me' instantiates files from templates according to the
  21811. current configuration.
  21812. Usage: $0 [OPTIONS] [FILE]...
  21813. -h, --help print this help, then exit
  21814. -V, --version print version number and configuration settings, then exit
  21815. -q, --quiet do not print progress messages
  21816. -d, --debug don't remove temporary files
  21817. --recheck update $as_me by reconfiguring in the same conditions
  21818. --file=FILE[:TEMPLATE]
  21819. instantiate the configuration file FILE
  21820. --header=FILE[:TEMPLATE]
  21821. instantiate the configuration header FILE
  21822. Configuration files:
  21823. $config_files
  21824. Configuration headers:
  21825. $config_headers
  21826. Configuration commands:
  21827. $config_commands
  21828. Report bugs to <bug-autoconf@gnu.org>."
  21829. _ACEOF
  21830. cat >>$CONFIG_STATUS <<_ACEOF
  21831. ac_cs_version="\\
  21832. file config.status 4.26
  21833. configured by $0, generated by GNU Autoconf 2.61,
  21834. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21835. Copyright (C) 2006 Free Software Foundation, Inc.
  21836. This config.status script is free software; the Free Software Foundation
  21837. gives unlimited permission to copy, distribute and modify it."
  21838. ac_pwd='$ac_pwd'
  21839. srcdir='$srcdir'
  21840. INSTALL='$INSTALL'
  21841. MKDIR_P='$MKDIR_P'
  21842. _ACEOF
  21843. cat >>$CONFIG_STATUS <<\_ACEOF
  21844. # If no file are specified by the user, then we need to provide default
  21845. # value. By we need to know if files were specified by the user.
  21846. ac_need_defaults=:
  21847. while test $# != 0
  21848. do
  21849. case $1 in
  21850. --*=*)
  21851. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21852. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21853. ac_shift=:
  21854. ;;
  21855. *)
  21856. ac_option=$1
  21857. ac_optarg=$2
  21858. ac_shift=shift
  21859. ;;
  21860. esac
  21861. case $ac_option in
  21862. # Handling of the options.
  21863. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21864. ac_cs_recheck=: ;;
  21865. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21866. echo "$ac_cs_version"; exit ;;
  21867. --debug | --debu | --deb | --de | --d | -d )
  21868. debug=: ;;
  21869. --file | --fil | --fi | --f )
  21870. $ac_shift
  21871. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  21872. ac_need_defaults=false;;
  21873. --header | --heade | --head | --hea )
  21874. $ac_shift
  21875. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  21876. ac_need_defaults=false;;
  21877. --he | --h)
  21878. # Conflict between --help and --header
  21879. { echo "$as_me: error: ambiguous option: $1
  21880. Try \`$0 --help' for more information." >&2
  21881. { (exit 1); exit 1; }; };;
  21882. --help | --hel | -h )
  21883. echo "$ac_cs_usage"; exit ;;
  21884. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21885. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21886. ac_cs_silent=: ;;
  21887. # This is an error.
  21888. -*) { echo "$as_me: error: unrecognized option: $1
  21889. Try \`$0 --help' for more information." >&2
  21890. { (exit 1); exit 1; }; } ;;
  21891. *) ac_config_targets="$ac_config_targets $1"
  21892. ac_need_defaults=false ;;
  21893. esac
  21894. shift
  21895. done
  21896. ac_configure_extra_args=
  21897. if $ac_cs_silent; then
  21898. exec 6>/dev/null
  21899. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21900. fi
  21901. _ACEOF
  21902. cat >>$CONFIG_STATUS <<_ACEOF
  21903. if \$ac_cs_recheck; then
  21904. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  21905. CONFIG_SHELL=$SHELL
  21906. export CONFIG_SHELL
  21907. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21908. fi
  21909. _ACEOF
  21910. cat >>$CONFIG_STATUS <<\_ACEOF
  21911. exec 5>>config.log
  21912. {
  21913. echo
  21914. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21915. ## Running $as_me. ##
  21916. _ASBOX
  21917. echo "$ac_log"
  21918. } >&5
  21919. _ACEOF
  21920. cat >>$CONFIG_STATUS <<_ACEOF
  21921. #
  21922. # INIT-COMMANDS
  21923. #
  21924. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21925. _ACEOF
  21926. cat >>$CONFIG_STATUS <<\_ACEOF
  21927. # Handling of arguments.
  21928. for ac_config_target in $ac_config_targets
  21929. do
  21930. case $ac_config_target in
  21931. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21932. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21933. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21934. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21935. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  21936. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  21937. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21938. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  21939. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21940. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21941. { (exit 1); exit 1; }; };;
  21942. esac
  21943. done
  21944. # If the user did not use the arguments to specify the items to instantiate,
  21945. # then the envvar interface is used. Set only those that are not.
  21946. # We use the long form for the default assignment because of an extremely
  21947. # bizarre bug on SunOS 4.1.3.
  21948. if $ac_need_defaults; then
  21949. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21950. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21951. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21952. fi
  21953. # Have a temporary directory for convenience. Make it in the build tree
  21954. # simply because there is no reason against having it here, and in addition,
  21955. # creating and moving files from /tmp can sometimes cause problems.
  21956. # Hook for its removal unless debugging.
  21957. # Note that there is a small window in which the directory will not be cleaned:
  21958. # after its creation but before its name has been assigned to `$tmp'.
  21959. $debug ||
  21960. {
  21961. tmp=
  21962. trap 'exit_status=$?
  21963. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21964. ' 0
  21965. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21966. }
  21967. # Create a (secure) tmp directory for tmp files.
  21968. {
  21969. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21970. test -n "$tmp" && test -d "$tmp"
  21971. } ||
  21972. {
  21973. tmp=./conf$$-$RANDOM
  21974. (umask 077 && mkdir "$tmp")
  21975. } ||
  21976. {
  21977. echo "$me: cannot create a temporary directory in ." >&2
  21978. { (exit 1); exit 1; }
  21979. }
  21980. #
  21981. # Set up the sed scripts for CONFIG_FILES section.
  21982. #
  21983. # No need to generate the scripts if there are no CONFIG_FILES.
  21984. # This happens for instance when ./config.status config.h
  21985. if test -n "$CONFIG_FILES"; then
  21986. _ACEOF
  21987. ac_delim='%!_!# '
  21988. for ac_last_try in false false false false false :; do
  21989. cat >conf$$subs.sed <<_ACEOF
  21990. SHELL!$SHELL$ac_delim
  21991. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  21992. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  21993. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  21994. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  21995. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  21996. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  21997. exec_prefix!$exec_prefix$ac_delim
  21998. prefix!$prefix$ac_delim
  21999. program_transform_name!$program_transform_name$ac_delim
  22000. bindir!$bindir$ac_delim
  22001. sbindir!$sbindir$ac_delim
  22002. libexecdir!$libexecdir$ac_delim
  22003. datarootdir!$datarootdir$ac_delim
  22004. datadir!$datadir$ac_delim
  22005. sysconfdir!$sysconfdir$ac_delim
  22006. sharedstatedir!$sharedstatedir$ac_delim
  22007. localstatedir!$localstatedir$ac_delim
  22008. includedir!$includedir$ac_delim
  22009. oldincludedir!$oldincludedir$ac_delim
  22010. docdir!$docdir$ac_delim
  22011. infodir!$infodir$ac_delim
  22012. htmldir!$htmldir$ac_delim
  22013. dvidir!$dvidir$ac_delim
  22014. pdfdir!$pdfdir$ac_delim
  22015. psdir!$psdir$ac_delim
  22016. libdir!$libdir$ac_delim
  22017. localedir!$localedir$ac_delim
  22018. mandir!$mandir$ac_delim
  22019. DEFS!$DEFS$ac_delim
  22020. ECHO_C!$ECHO_C$ac_delim
  22021. ECHO_N!$ECHO_N$ac_delim
  22022. ECHO_T!$ECHO_T$ac_delim
  22023. LIBS!$LIBS$ac_delim
  22024. build_alias!$build_alias$ac_delim
  22025. host_alias!$host_alias$ac_delim
  22026. target_alias!$target_alias$ac_delim
  22027. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  22028. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  22029. INSTALL_DATA!$INSTALL_DATA$ac_delim
  22030. am__isrc!$am__isrc$ac_delim
  22031. CYGPATH_W!$CYGPATH_W$ac_delim
  22032. PACKAGE!$PACKAGE$ac_delim
  22033. VERSION!$VERSION$ac_delim
  22034. ACLOCAL!$ACLOCAL$ac_delim
  22035. AUTOCONF!$AUTOCONF$ac_delim
  22036. AUTOMAKE!$AUTOMAKE$ac_delim
  22037. AUTOHEADER!$AUTOHEADER$ac_delim
  22038. MAKEINFO!$MAKEINFO$ac_delim
  22039. install_sh!$install_sh$ac_delim
  22040. STRIP!$STRIP$ac_delim
  22041. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  22042. mkdir_p!$mkdir_p$ac_delim
  22043. AWK!$AWK$ac_delim
  22044. SET_MAKE!$SET_MAKE$ac_delim
  22045. am__leading_dot!$am__leading_dot$ac_delim
  22046. AMTAR!$AMTAR$ac_delim
  22047. am__tar!$am__tar$ac_delim
  22048. am__untar!$am__untar$ac_delim
  22049. fsect!$fsect$ac_delim
  22050. FSECT5_TRUE!$FSECT5_TRUE$ac_delim
  22051. FSECT5_FALSE!$FSECT5_FALSE$ac_delim
  22052. WARNINGS!$WARNINGS$ac_delim
  22053. CC!$CC$ac_delim
  22054. CFLAGS!$CFLAGS$ac_delim
  22055. LDFLAGS!$LDFLAGS$ac_delim
  22056. CPPFLAGS!$CPPFLAGS$ac_delim
  22057. ac_ct_CC!$ac_ct_CC$ac_delim
  22058. EXEEXT!$EXEEXT$ac_delim
  22059. OBJEXT!$OBJEXT$ac_delim
  22060. DEPDIR!$DEPDIR$ac_delim
  22061. am__include!$am__include$ac_delim
  22062. am__quote!$am__quote$ac_delim
  22063. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  22064. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  22065. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  22066. CCDEPMODE!$CCDEPMODE$ac_delim
  22067. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  22068. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  22069. LN_S!$LN_S$ac_delim
  22070. build!$build$ac_delim
  22071. build_cpu!$build_cpu$ac_delim
  22072. build_vendor!$build_vendor$ac_delim
  22073. build_os!$build_os$ac_delim
  22074. host!$host$ac_delim
  22075. host_cpu!$host_cpu$ac_delim
  22076. host_vendor!$host_vendor$ac_delim
  22077. host_os!$host_os$ac_delim
  22078. GREP!$GREP$ac_delim
  22079. EGREP!$EGREP$ac_delim
  22080. ECHO!$ECHO$ac_delim
  22081. AR!$AR$ac_delim
  22082. RANLIB!$RANLIB$ac_delim
  22083. CPP!$CPP$ac_delim
  22084. CXX!$CXX$ac_delim
  22085. CXXFLAGS!$CXXFLAGS$ac_delim
  22086. ac_ct_CXX!$ac_ct_CXX$ac_delim
  22087. _ACEOF
  22088. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  22089. break
  22090. elif $ac_last_try; then
  22091. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22092. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22093. { (exit 1); exit 1; }; }
  22094. else
  22095. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22096. fi
  22097. done
  22098. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  22099. if test -n "$ac_eof"; then
  22100. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  22101. ac_eof=`expr $ac_eof + 1`
  22102. fi
  22103. cat >>$CONFIG_STATUS <<_ACEOF
  22104. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  22105. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22106. _ACEOF
  22107. sed '
  22108. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  22109. s/^/s,@/; s/!/@,|#_!!_#|/
  22110. :n
  22111. t n
  22112. s/'"$ac_delim"'$/,g/; t
  22113. s/$/\\/; p
  22114. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  22115. ' >>$CONFIG_STATUS <conf$$subs.sed
  22116. rm -f conf$$subs.sed
  22117. cat >>$CONFIG_STATUS <<_ACEOF
  22118. CEOF$ac_eof
  22119. _ACEOF
  22120. ac_delim='%!_!# '
  22121. for ac_last_try in false false false false false :; do
  22122. cat >conf$$subs.sed <<_ACEOF
  22123. CXXDEPMODE!$CXXDEPMODE$ac_delim
  22124. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  22125. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  22126. CXXCPP!$CXXCPP$ac_delim
  22127. F77!$F77$ac_delim
  22128. FFLAGS!$FFLAGS$ac_delim
  22129. ac_ct_F77!$ac_ct_F77$ac_delim
  22130. LIBTOOL!$LIBTOOL$ac_delim
  22131. LIBOBJS!$LIBOBJS$ac_delim
  22132. IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
  22133. IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
  22134. LTLIBOBJS!$LTLIBOBJS$ac_delim
  22135. _ACEOF
  22136. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
  22137. break
  22138. elif $ac_last_try; then
  22139. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22140. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22141. { (exit 1); exit 1; }; }
  22142. else
  22143. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22144. fi
  22145. done
  22146. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  22147. if test -n "$ac_eof"; then
  22148. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  22149. ac_eof=`expr $ac_eof + 1`
  22150. fi
  22151. cat >>$CONFIG_STATUS <<_ACEOF
  22152. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  22153. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  22154. _ACEOF
  22155. sed '
  22156. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  22157. s/^/s,@/; s/!/@,|#_!!_#|/
  22158. :n
  22159. t n
  22160. s/'"$ac_delim"'$/,g/; t
  22161. s/$/\\/; p
  22162. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  22163. ' >>$CONFIG_STATUS <conf$$subs.sed
  22164. rm -f conf$$subs.sed
  22165. cat >>$CONFIG_STATUS <<_ACEOF
  22166. :end
  22167. s/|#_!!_#|//g
  22168. CEOF$ac_eof
  22169. _ACEOF
  22170. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22171. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22172. # trailing colons and then remove the whole line if VPATH becomes empty
  22173. # (actually we leave an empty line to preserve line numbers).
  22174. if test "x$srcdir" = x.; then
  22175. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22176. s/:*\$(srcdir):*/:/
  22177. s/:*\${srcdir}:*/:/
  22178. s/:*@srcdir@:*/:/
  22179. s/^\([^=]*=[ ]*\):*/\1/
  22180. s/:*$//
  22181. s/^[^=]*=[ ]*$//
  22182. }'
  22183. fi
  22184. cat >>$CONFIG_STATUS <<\_ACEOF
  22185. fi # test -n "$CONFIG_FILES"
  22186. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  22187. do
  22188. case $ac_tag in
  22189. :[FHLC]) ac_mode=$ac_tag; continue;;
  22190. esac
  22191. case $ac_mode$ac_tag in
  22192. :[FHL]*:*);;
  22193. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  22194. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  22195. { (exit 1); exit 1; }; };;
  22196. :[FH]-) ac_tag=-:-;;
  22197. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22198. esac
  22199. ac_save_IFS=$IFS
  22200. IFS=:
  22201. set x $ac_tag
  22202. IFS=$ac_save_IFS
  22203. shift
  22204. ac_file=$1
  22205. shift
  22206. case $ac_mode in
  22207. :L) ac_source=$1;;
  22208. :[FH])
  22209. ac_file_inputs=
  22210. for ac_f
  22211. do
  22212. case $ac_f in
  22213. -) ac_f="$tmp/stdin";;
  22214. *) # Look for the file first in the build tree, then in the source tree
  22215. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22216. # because $ac_f cannot contain `:'.
  22217. test -f "$ac_f" ||
  22218. case $ac_f in
  22219. [\\/$]*) false;;
  22220. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22221. esac ||
  22222. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  22223. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  22224. { (exit 1); exit 1; }; };;
  22225. esac
  22226. ac_file_inputs="$ac_file_inputs $ac_f"
  22227. done
  22228. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22229. # use $as_me), people would be surprised to read:
  22230. # /* config.h. Generated by config.status. */
  22231. configure_input="Generated from "`IFS=:
  22232. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  22233. if test x"$ac_file" != x-; then
  22234. configure_input="$ac_file. $configure_input"
  22235. { echo "$as_me:$LINENO: creating $ac_file" >&5
  22236. echo "$as_me: creating $ac_file" >&6;}
  22237. fi
  22238. case $ac_tag in
  22239. *:-:* | *:-) cat >"$tmp/stdin";;
  22240. esac
  22241. ;;
  22242. esac
  22243. ac_dir=`$as_dirname -- "$ac_file" ||
  22244. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22245. X"$ac_file" : 'X\(//\)[^/]' \| \
  22246. X"$ac_file" : 'X\(//\)$' \| \
  22247. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22248. echo X"$ac_file" |
  22249. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22250. s//\1/
  22251. q
  22252. }
  22253. /^X\(\/\/\)[^/].*/{
  22254. s//\1/
  22255. q
  22256. }
  22257. /^X\(\/\/\)$/{
  22258. s//\1/
  22259. q
  22260. }
  22261. /^X\(\/\).*/{
  22262. s//\1/
  22263. q
  22264. }
  22265. s/.*/./; q'`
  22266. { as_dir="$ac_dir"
  22267. case $as_dir in #(
  22268. -*) as_dir=./$as_dir;;
  22269. esac
  22270. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22271. as_dirs=
  22272. while :; do
  22273. case $as_dir in #(
  22274. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22275. *) as_qdir=$as_dir;;
  22276. esac
  22277. as_dirs="'$as_qdir' $as_dirs"
  22278. as_dir=`$as_dirname -- "$as_dir" ||
  22279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22280. X"$as_dir" : 'X\(//\)[^/]' \| \
  22281. X"$as_dir" : 'X\(//\)$' \| \
  22282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22283. echo X"$as_dir" |
  22284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22285. s//\1/
  22286. q
  22287. }
  22288. /^X\(\/\/\)[^/].*/{
  22289. s//\1/
  22290. q
  22291. }
  22292. /^X\(\/\/\)$/{
  22293. s//\1/
  22294. q
  22295. }
  22296. /^X\(\/\).*/{
  22297. s//\1/
  22298. q
  22299. }
  22300. s/.*/./; q'`
  22301. test -d "$as_dir" && break
  22302. done
  22303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22304. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22305. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22306. { (exit 1); exit 1; }; }; }
  22307. ac_builddir=.
  22308. case "$ac_dir" in
  22309. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22310. *)
  22311. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  22312. # A ".." for each directory in $ac_dir_suffix.
  22313. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  22314. case $ac_top_builddir_sub in
  22315. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22316. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22317. esac ;;
  22318. esac
  22319. ac_abs_top_builddir=$ac_pwd
  22320. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22321. # for backward compatibility:
  22322. ac_top_builddir=$ac_top_build_prefix
  22323. case $srcdir in
  22324. .) # We are building in place.
  22325. ac_srcdir=.
  22326. ac_top_srcdir=$ac_top_builddir_sub
  22327. ac_abs_top_srcdir=$ac_pwd ;;
  22328. [\\/]* | ?:[\\/]* ) # Absolute name.
  22329. ac_srcdir=$srcdir$ac_dir_suffix;
  22330. ac_top_srcdir=$srcdir
  22331. ac_abs_top_srcdir=$srcdir ;;
  22332. *) # Relative name.
  22333. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22334. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22335. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22336. esac
  22337. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22338. case $ac_mode in
  22339. :F)
  22340. #
  22341. # CONFIG_FILE
  22342. #
  22343. case $INSTALL in
  22344. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22345. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22346. esac
  22347. ac_MKDIR_P=$MKDIR_P
  22348. case $MKDIR_P in
  22349. [\\/$]* | ?:[\\/]* ) ;;
  22350. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22351. esac
  22352. _ACEOF
  22353. cat >>$CONFIG_STATUS <<\_ACEOF
  22354. # If the template does not know about datarootdir, expand it.
  22355. # FIXME: This hack should be removed a few years after 2.60.
  22356. ac_datarootdir_hack=; ac_datarootdir_seen=
  22357. case `sed -n '/datarootdir/ {
  22358. p
  22359. q
  22360. }
  22361. /@datadir@/p
  22362. /@docdir@/p
  22363. /@infodir@/p
  22364. /@localedir@/p
  22365. /@mandir@/p
  22366. ' $ac_file_inputs` in
  22367. *datarootdir*) ac_datarootdir_seen=yes;;
  22368. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22369. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22370. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22371. _ACEOF
  22372. cat >>$CONFIG_STATUS <<_ACEOF
  22373. ac_datarootdir_hack='
  22374. s&@datadir@&$datadir&g
  22375. s&@docdir@&$docdir&g
  22376. s&@infodir@&$infodir&g
  22377. s&@localedir@&$localedir&g
  22378. s&@mandir@&$mandir&g
  22379. s&\\\${datarootdir}&$datarootdir&g' ;;
  22380. esac
  22381. _ACEOF
  22382. # Neutralize VPATH when `$srcdir' = `.'.
  22383. # Shell code in configure.ac might set extrasub.
  22384. # FIXME: do we really want to maintain this feature?
  22385. cat >>$CONFIG_STATUS <<_ACEOF
  22386. sed "$ac_vpsub
  22387. $extrasub
  22388. _ACEOF
  22389. cat >>$CONFIG_STATUS <<\_ACEOF
  22390. :t
  22391. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22392. s&@configure_input@&$configure_input&;t t
  22393. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22394. s&@srcdir@&$ac_srcdir&;t t
  22395. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22396. s&@top_srcdir@&$ac_top_srcdir&;t t
  22397. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22398. s&@builddir@&$ac_builddir&;t t
  22399. s&@abs_builddir@&$ac_abs_builddir&;t t
  22400. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22401. s&@INSTALL@&$ac_INSTALL&;t t
  22402. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22403. $ac_datarootdir_hack
  22404. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  22405. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22406. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22407. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22408. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22409. which seems to be undefined. Please make sure it is defined." >&5
  22410. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22411. which seems to be undefined. Please make sure it is defined." >&2;}
  22412. rm -f "$tmp/stdin"
  22413. case $ac_file in
  22414. -) cat "$tmp/out"; rm -f "$tmp/out";;
  22415. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  22416. esac
  22417. ;;
  22418. :H)
  22419. #
  22420. # CONFIG_HEADER
  22421. #
  22422. _ACEOF
  22423. # Transform confdefs.h into a sed script `conftest.defines', that
  22424. # substitutes the proper values into config.h.in to produce config.h.
  22425. rm -f conftest.defines conftest.tail
  22426. # First, append a space to every undef/define line, to ease matching.
  22427. echo 's/$/ /' >conftest.defines
  22428. # Then, protect against being on the right side of a sed subst, or in
  22429. # an unquoted here document, in config.status. If some macros were
  22430. # called several times there might be several #defines for the same
  22431. # symbol, which is useless. But do not sort them, since the last
  22432. # AC_DEFINE must be honored.
  22433. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22434. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  22435. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  22436. # PARAMS is the parameter list in the macro definition--in most cases, it's
  22437. # just an empty string.
  22438. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  22439. ac_dB='\\)[ (].*,\\1define\\2'
  22440. ac_dC=' '
  22441. ac_dD=' ,'
  22442. uniq confdefs.h |
  22443. sed -n '
  22444. t rset
  22445. :rset
  22446. s/^[ ]*#[ ]*define[ ][ ]*//
  22447. t ok
  22448. d
  22449. :ok
  22450. s/[\\&,]/\\&/g
  22451. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  22452. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  22453. ' >>conftest.defines
  22454. # Remove the space that was appended to ease matching.
  22455. # Then replace #undef with comments. This is necessary, for
  22456. # example, in the case of _POSIX_SOURCE, which is predefined and required
  22457. # on some systems where configure will not decide to define it.
  22458. # (The regexp can be short, since the line contains either #define or #undef.)
  22459. echo 's/ $//
  22460. s,^[ #]*u.*,/* & */,' >>conftest.defines
  22461. # Break up conftest.defines:
  22462. ac_max_sed_lines=50
  22463. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  22464. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  22465. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  22466. # et cetera.
  22467. ac_in='$ac_file_inputs'
  22468. ac_out='"$tmp/out1"'
  22469. ac_nxt='"$tmp/out2"'
  22470. while :
  22471. do
  22472. # Write a here document:
  22473. cat >>$CONFIG_STATUS <<_ACEOF
  22474. # First, check the format of the line:
  22475. cat >"\$tmp/defines.sed" <<\\CEOF
  22476. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  22477. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  22478. b
  22479. :def
  22480. _ACEOF
  22481. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  22482. echo 'CEOF
  22483. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  22484. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  22485. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  22486. grep . conftest.tail >/dev/null || break
  22487. rm -f conftest.defines
  22488. mv conftest.tail conftest.defines
  22489. done
  22490. rm -f conftest.defines conftest.tail
  22491. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  22492. cat >>$CONFIG_STATUS <<\_ACEOF
  22493. if test x"$ac_file" != x-; then
  22494. echo "/* $configure_input */" >"$tmp/config.h"
  22495. cat "$ac_result" >>"$tmp/config.h"
  22496. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  22497. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22498. echo "$as_me: $ac_file is unchanged" >&6;}
  22499. else
  22500. rm -f $ac_file
  22501. mv "$tmp/config.h" $ac_file
  22502. fi
  22503. else
  22504. echo "/* $configure_input */"
  22505. cat "$ac_result"
  22506. fi
  22507. rm -f "$tmp/out12"
  22508. # Compute $ac_file's index in $config_headers.
  22509. _am_stamp_count=1
  22510. for _am_header in $config_headers :; do
  22511. case $_am_header in
  22512. $ac_file | $ac_file:* )
  22513. break ;;
  22514. * )
  22515. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22516. esac
  22517. done
  22518. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  22519. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22520. X$ac_file : 'X\(//\)[^/]' \| \
  22521. X$ac_file : 'X\(//\)$' \| \
  22522. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  22523. echo X$ac_file |
  22524. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22525. s//\1/
  22526. q
  22527. }
  22528. /^X\(\/\/\)[^/].*/{
  22529. s//\1/
  22530. q
  22531. }
  22532. /^X\(\/\/\)$/{
  22533. s//\1/
  22534. q
  22535. }
  22536. /^X\(\/\).*/{
  22537. s//\1/
  22538. q
  22539. }
  22540. s/.*/./; q'`/stamp-h$_am_stamp_count
  22541. ;;
  22542. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22543. echo "$as_me: executing $ac_file commands" >&6;}
  22544. ;;
  22545. esac
  22546. case $ac_file$ac_mode in
  22547. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  22548. # Strip MF so we end up with the name of the file.
  22549. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22550. # Check whether this is an Automake generated Makefile or not.
  22551. # We used to match only the files named `Makefile.in', but
  22552. # some people rename them; so instead we look at the file content.
  22553. # Grep'ing the first line is not enough: some people post-process
  22554. # each Makefile.in and add a new line on top of each file to say so.
  22555. # Grep'ing the whole file is not good either: AIX grep has a line
  22556. # limit of 2048, but all sed's we know have understand at least 4000.
  22557. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  22558. dirpart=`$as_dirname -- "$mf" ||
  22559. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22560. X"$mf" : 'X\(//\)[^/]' \| \
  22561. X"$mf" : 'X\(//\)$' \| \
  22562. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22563. echo X"$mf" |
  22564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22565. s//\1/
  22566. q
  22567. }
  22568. /^X\(\/\/\)[^/].*/{
  22569. s//\1/
  22570. q
  22571. }
  22572. /^X\(\/\/\)$/{
  22573. s//\1/
  22574. q
  22575. }
  22576. /^X\(\/\).*/{
  22577. s//\1/
  22578. q
  22579. }
  22580. s/.*/./; q'`
  22581. else
  22582. continue
  22583. fi
  22584. # Extract the definition of DEPDIR, am__include, and am__quote
  22585. # from the Makefile without running `make'.
  22586. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22587. test -z "$DEPDIR" && continue
  22588. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22589. test -z "am__include" && continue
  22590. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22591. # When using ansi2knr, U may be empty or an underscore; expand it
  22592. U=`sed -n 's/^U = //p' < "$mf"`
  22593. # Find all dependency output files, they are included files with
  22594. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22595. # simplest approach to changing $(DEPDIR) to its actual value in the
  22596. # expansion.
  22597. for file in `sed -n "
  22598. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22599. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22600. # Make sure the directory exists.
  22601. test -f "$dirpart/$file" && continue
  22602. fdir=`$as_dirname -- "$file" ||
  22603. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22604. X"$file" : 'X\(//\)[^/]' \| \
  22605. X"$file" : 'X\(//\)$' \| \
  22606. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22607. echo X"$file" |
  22608. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22609. s//\1/
  22610. q
  22611. }
  22612. /^X\(\/\/\)[^/].*/{
  22613. s//\1/
  22614. q
  22615. }
  22616. /^X\(\/\/\)$/{
  22617. s//\1/
  22618. q
  22619. }
  22620. /^X\(\/\).*/{
  22621. s//\1/
  22622. q
  22623. }
  22624. s/.*/./; q'`
  22625. { as_dir=$dirpart/$fdir
  22626. case $as_dir in #(
  22627. -*) as_dir=./$as_dir;;
  22628. esac
  22629. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22630. as_dirs=
  22631. while :; do
  22632. case $as_dir in #(
  22633. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22634. *) as_qdir=$as_dir;;
  22635. esac
  22636. as_dirs="'$as_qdir' $as_dirs"
  22637. as_dir=`$as_dirname -- "$as_dir" ||
  22638. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22639. X"$as_dir" : 'X\(//\)[^/]' \| \
  22640. X"$as_dir" : 'X\(//\)$' \| \
  22641. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22642. echo X"$as_dir" |
  22643. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22644. s//\1/
  22645. q
  22646. }
  22647. /^X\(\/\/\)[^/].*/{
  22648. s//\1/
  22649. q
  22650. }
  22651. /^X\(\/\/\)$/{
  22652. s//\1/
  22653. q
  22654. }
  22655. /^X\(\/\).*/{
  22656. s//\1/
  22657. q
  22658. }
  22659. s/.*/./; q'`
  22660. test -d "$as_dir" && break
  22661. done
  22662. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22663. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22664. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22665. { (exit 1); exit 1; }; }; }
  22666. # echo "creating $dirpart/$file"
  22667. echo '# dummy' > "$dirpart/$file"
  22668. done
  22669. done
  22670. ;;
  22671. esac
  22672. done # for ac_tag
  22673. { (exit 0); exit 0; }
  22674. _ACEOF
  22675. chmod +x $CONFIG_STATUS
  22676. ac_clean_files=$ac_clean_files_save
  22677. # configure is writing to config.log, and then calls config.status.
  22678. # config.status does its own redirection, appending to config.log.
  22679. # Unfortunately, on DOS this fails, as config.log is still kept open
  22680. # by configure, so config.status won't be able to write to it; its
  22681. # output is simply discarded. So we exec the FD to /dev/null,
  22682. # effectively closing config.log, so it can be properly (re)opened and
  22683. # appended to by config.status. When coming back to configure, we
  22684. # need to make the FD available again.
  22685. if test "$no_create" != yes; then
  22686. ac_cs_success=:
  22687. ac_config_status_args=
  22688. test "$silent" = yes &&
  22689. ac_config_status_args="$ac_config_status_args --quiet"
  22690. exec 5>/dev/null
  22691. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22692. exec 5>>config.log
  22693. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22694. # would make configure fail if this is the last instruction.
  22695. $ac_cs_success || { (exit 1); exit 1; }
  22696. fi