configure 770 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for file 4.24.
  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.24'
  632. PACKAGE_STRING='file 4.24'
  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. CC
  732. CFLAGS
  733. LDFLAGS
  734. CPPFLAGS
  735. ac_ct_CC
  736. EXEEXT
  737. OBJEXT
  738. DEPDIR
  739. am__include
  740. am__quote
  741. AMDEP_TRUE
  742. AMDEP_FALSE
  743. AMDEPBACKSLASH
  744. CCDEPMODE
  745. am__fastdepCC_TRUE
  746. am__fastdepCC_FALSE
  747. LN_S
  748. build
  749. build_cpu
  750. build_vendor
  751. build_os
  752. host
  753. host_cpu
  754. host_vendor
  755. host_os
  756. GREP
  757. EGREP
  758. ECHO
  759. AR
  760. RANLIB
  761. CPP
  762. CXX
  763. CXXFLAGS
  764. ac_ct_CXX
  765. CXXDEPMODE
  766. am__fastdepCXX_TRUE
  767. am__fastdepCXX_FALSE
  768. CXXCPP
  769. F77
  770. FFLAGS
  771. ac_ct_F77
  772. LIBTOOL
  773. LIBOBJS
  774. IS_CROSS_COMPILE_TRUE
  775. IS_CROSS_COMPILE_FALSE
  776. LTLIBOBJS'
  777. ac_subst_files=''
  778. ac_precious_vars='build_alias
  779. host_alias
  780. target_alias
  781. CC
  782. CFLAGS
  783. LDFLAGS
  784. LIBS
  785. CPPFLAGS
  786. CPP
  787. CXX
  788. CXXFLAGS
  789. CCC
  790. CXXCPP
  791. F77
  792. FFLAGS'
  793. # Initialize some variables set by options.
  794. ac_init_help=
  795. ac_init_version=false
  796. # The variables have the same names as the options, with
  797. # dashes changed to underlines.
  798. cache_file=/dev/null
  799. exec_prefix=NONE
  800. no_create=
  801. no_recursion=
  802. prefix=NONE
  803. program_prefix=NONE
  804. program_suffix=NONE
  805. program_transform_name=s,x,x,
  806. silent=
  807. site=
  808. srcdir=
  809. verbose=
  810. x_includes=NONE
  811. x_libraries=NONE
  812. # Installation directory options.
  813. # These are left unexpanded so users can "make install exec_prefix=/foo"
  814. # and all the variables that are supposed to be based on exec_prefix
  815. # by default will actually change.
  816. # Use braces instead of parens because sh, perl, etc. also accept them.
  817. # (The list follows the same order as the GNU Coding Standards.)
  818. bindir='${exec_prefix}/bin'
  819. sbindir='${exec_prefix}/sbin'
  820. libexecdir='${exec_prefix}/libexec'
  821. datarootdir='${prefix}/share'
  822. datadir='${datarootdir}'
  823. sysconfdir='${prefix}/etc'
  824. sharedstatedir='${prefix}/com'
  825. localstatedir='${prefix}/var'
  826. includedir='${prefix}/include'
  827. oldincludedir='/usr/include'
  828. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  829. infodir='${datarootdir}/info'
  830. htmldir='${docdir}'
  831. dvidir='${docdir}'
  832. pdfdir='${docdir}'
  833. psdir='${docdir}'
  834. libdir='${exec_prefix}/lib'
  835. localedir='${datarootdir}/locale'
  836. mandir='${datarootdir}/man'
  837. ac_prev=
  838. ac_dashdash=
  839. for ac_option
  840. do
  841. # If the previous option needs an argument, assign it.
  842. if test -n "$ac_prev"; then
  843. eval $ac_prev=\$ac_option
  844. ac_prev=
  845. continue
  846. fi
  847. case $ac_option in
  848. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  849. *) ac_optarg=yes ;;
  850. esac
  851. # Accept the important Cygnus configure options, so we can diagnose typos.
  852. case $ac_dashdash$ac_option in
  853. --)
  854. ac_dashdash=yes ;;
  855. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  856. ac_prev=bindir ;;
  857. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  858. bindir=$ac_optarg ;;
  859. -build | --build | --buil | --bui | --bu)
  860. ac_prev=build_alias ;;
  861. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  862. build_alias=$ac_optarg ;;
  863. -cache-file | --cache-file | --cache-fil | --cache-fi \
  864. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  865. ac_prev=cache_file ;;
  866. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  867. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  868. cache_file=$ac_optarg ;;
  869. --config-cache | -C)
  870. cache_file=config.cache ;;
  871. -datadir | --datadir | --datadi | --datad)
  872. ac_prev=datadir ;;
  873. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  874. datadir=$ac_optarg ;;
  875. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  876. | --dataroo | --dataro | --datar)
  877. ac_prev=datarootdir ;;
  878. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  879. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  880. datarootdir=$ac_optarg ;;
  881. -disable-* | --disable-*)
  882. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  883. # Reject names that are not valid shell variable names.
  884. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  885. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  886. { (exit 1); exit 1; }; }
  887. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  888. eval enable_$ac_feature=no ;;
  889. -docdir | --docdir | --docdi | --doc | --do)
  890. ac_prev=docdir ;;
  891. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  892. docdir=$ac_optarg ;;
  893. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  894. ac_prev=dvidir ;;
  895. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  896. dvidir=$ac_optarg ;;
  897. -enable-* | --enable-*)
  898. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  899. # Reject names that are not valid shell variable names.
  900. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  901. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  902. { (exit 1); exit 1; }; }
  903. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  904. eval enable_$ac_feature=\$ac_optarg ;;
  905. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  906. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  907. | --exec | --exe | --ex)
  908. ac_prev=exec_prefix ;;
  909. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  910. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  911. | --exec=* | --exe=* | --ex=*)
  912. exec_prefix=$ac_optarg ;;
  913. -gas | --gas | --ga | --g)
  914. # Obsolete; use --with-gas.
  915. with_gas=yes ;;
  916. -help | --help | --hel | --he | -h)
  917. ac_init_help=long ;;
  918. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  919. ac_init_help=recursive ;;
  920. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  921. ac_init_help=short ;;
  922. -host | --host | --hos | --ho)
  923. ac_prev=host_alias ;;
  924. -host=* | --host=* | --hos=* | --ho=*)
  925. host_alias=$ac_optarg ;;
  926. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  927. ac_prev=htmldir ;;
  928. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  929. | --ht=*)
  930. htmldir=$ac_optarg ;;
  931. -includedir | --includedir | --includedi | --included | --include \
  932. | --includ | --inclu | --incl | --inc)
  933. ac_prev=includedir ;;
  934. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  935. | --includ=* | --inclu=* | --incl=* | --inc=*)
  936. includedir=$ac_optarg ;;
  937. -infodir | --infodir | --infodi | --infod | --info | --inf)
  938. ac_prev=infodir ;;
  939. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  940. infodir=$ac_optarg ;;
  941. -libdir | --libdir | --libdi | --libd)
  942. ac_prev=libdir ;;
  943. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  944. libdir=$ac_optarg ;;
  945. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  946. | --libexe | --libex | --libe)
  947. ac_prev=libexecdir ;;
  948. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  949. | --libexe=* | --libex=* | --libe=*)
  950. libexecdir=$ac_optarg ;;
  951. -localedir | --localedir | --localedi | --localed | --locale)
  952. ac_prev=localedir ;;
  953. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  954. localedir=$ac_optarg ;;
  955. -localstatedir | --localstatedir | --localstatedi | --localstated \
  956. | --localstate | --localstat | --localsta | --localst | --locals)
  957. ac_prev=localstatedir ;;
  958. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  959. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  960. localstatedir=$ac_optarg ;;
  961. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  962. ac_prev=mandir ;;
  963. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  964. mandir=$ac_optarg ;;
  965. -nfp | --nfp | --nf)
  966. # Obsolete; use --without-fp.
  967. with_fp=no ;;
  968. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  969. | --no-cr | --no-c | -n)
  970. no_create=yes ;;
  971. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  972. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  973. no_recursion=yes ;;
  974. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  975. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  976. | --oldin | --oldi | --old | --ol | --o)
  977. ac_prev=oldincludedir ;;
  978. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  979. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  980. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  981. oldincludedir=$ac_optarg ;;
  982. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  983. ac_prev=prefix ;;
  984. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  985. prefix=$ac_optarg ;;
  986. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  987. | --program-pre | --program-pr | --program-p)
  988. ac_prev=program_prefix ;;
  989. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  990. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  991. program_prefix=$ac_optarg ;;
  992. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  993. | --program-suf | --program-su | --program-s)
  994. ac_prev=program_suffix ;;
  995. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  996. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  997. program_suffix=$ac_optarg ;;
  998. -program-transform-name | --program-transform-name \
  999. | --program-transform-nam | --program-transform-na \
  1000. | --program-transform-n | --program-transform- \
  1001. | --program-transform | --program-transfor \
  1002. | --program-transfo | --program-transf \
  1003. | --program-trans | --program-tran \
  1004. | --progr-tra | --program-tr | --program-t)
  1005. ac_prev=program_transform_name ;;
  1006. -program-transform-name=* | --program-transform-name=* \
  1007. | --program-transform-nam=* | --program-transform-na=* \
  1008. | --program-transform-n=* | --program-transform-=* \
  1009. | --program-transform=* | --program-transfor=* \
  1010. | --program-transfo=* | --program-transf=* \
  1011. | --program-trans=* | --program-tran=* \
  1012. | --progr-tra=* | --program-tr=* | --program-t=*)
  1013. program_transform_name=$ac_optarg ;;
  1014. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1015. ac_prev=pdfdir ;;
  1016. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1017. pdfdir=$ac_optarg ;;
  1018. -psdir | --psdir | --psdi | --psd | --ps)
  1019. ac_prev=psdir ;;
  1020. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1021. psdir=$ac_optarg ;;
  1022. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1023. | -silent | --silent | --silen | --sile | --sil)
  1024. silent=yes ;;
  1025. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1026. ac_prev=sbindir ;;
  1027. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1028. | --sbi=* | --sb=*)
  1029. sbindir=$ac_optarg ;;
  1030. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1031. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1032. | --sharedst | --shareds | --shared | --share | --shar \
  1033. | --sha | --sh)
  1034. ac_prev=sharedstatedir ;;
  1035. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1036. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1037. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1038. | --sha=* | --sh=*)
  1039. sharedstatedir=$ac_optarg ;;
  1040. -site | --site | --sit)
  1041. ac_prev=site ;;
  1042. -site=* | --site=* | --sit=*)
  1043. site=$ac_optarg ;;
  1044. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1045. ac_prev=srcdir ;;
  1046. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1047. srcdir=$ac_optarg ;;
  1048. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1049. | --syscon | --sysco | --sysc | --sys | --sy)
  1050. ac_prev=sysconfdir ;;
  1051. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1052. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1053. sysconfdir=$ac_optarg ;;
  1054. -target | --target | --targe | --targ | --tar | --ta | --t)
  1055. ac_prev=target_alias ;;
  1056. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1057. target_alias=$ac_optarg ;;
  1058. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1059. verbose=yes ;;
  1060. -version | --version | --versio | --versi | --vers | -V)
  1061. ac_init_version=: ;;
  1062. -with-* | --with-*)
  1063. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1066. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1067. { (exit 1); exit 1; }; }
  1068. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1069. eval with_$ac_package=\$ac_optarg ;;
  1070. -without-* | --without-*)
  1071. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1072. # Reject names that are not valid shell variable names.
  1073. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1074. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1075. { (exit 1); exit 1; }; }
  1076. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1077. eval with_$ac_package=no ;;
  1078. --x)
  1079. # Obsolete; use --with-x.
  1080. with_x=yes ;;
  1081. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1082. | --x-incl | --x-inc | --x-in | --x-i)
  1083. ac_prev=x_includes ;;
  1084. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1085. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1086. x_includes=$ac_optarg ;;
  1087. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1088. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1089. ac_prev=x_libraries ;;
  1090. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1091. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1092. x_libraries=$ac_optarg ;;
  1093. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1094. Try \`$0 --help' for more information." >&2
  1095. { (exit 1); exit 1; }; }
  1096. ;;
  1097. *=*)
  1098. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1101. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1102. { (exit 1); exit 1; }; }
  1103. eval $ac_envvar=\$ac_optarg
  1104. export $ac_envvar ;;
  1105. *)
  1106. # FIXME: should be removed in autoconf 3.0.
  1107. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1108. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1109. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1110. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1111. ;;
  1112. esac
  1113. done
  1114. if test -n "$ac_prev"; then
  1115. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1116. { echo "$as_me: error: missing argument to $ac_option" >&2
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. # Be sure to have absolute directory names.
  1120. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1121. datadir sysconfdir sharedstatedir localstatedir includedir \
  1122. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1123. libdir localedir mandir
  1124. do
  1125. eval ac_val=\$$ac_var
  1126. case $ac_val in
  1127. [\\/$]* | ?:[\\/]* ) continue;;
  1128. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1129. esac
  1130. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1131. { (exit 1); exit 1; }; }
  1132. done
  1133. # There might be people who depend on the old broken behavior: `$host'
  1134. # used to hold the argument of --host etc.
  1135. # FIXME: To remove some day.
  1136. build=$build_alias
  1137. host=$host_alias
  1138. target=$target_alias
  1139. # FIXME: To remove some day.
  1140. if test "x$host_alias" != x; then
  1141. if test "x$build_alias" = x; then
  1142. cross_compiling=maybe
  1143. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1144. If a cross compiler is detected then cross compile mode will be used." >&2
  1145. elif test "x$build_alias" != "x$host_alias"; then
  1146. cross_compiling=yes
  1147. fi
  1148. fi
  1149. ac_tool_prefix=
  1150. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1151. test "$silent" = yes && exec 6>/dev/null
  1152. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1153. ac_ls_di=`ls -di .` &&
  1154. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1155. { echo "$as_me: error: Working directory cannot be determined" >&2
  1156. { (exit 1); exit 1; }; }
  1157. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1158. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1159. { (exit 1); exit 1; }; }
  1160. # Find the source files, if location was not specified.
  1161. if test -z "$srcdir"; then
  1162. ac_srcdir_defaulted=yes
  1163. # Try the directory containing this script, then the parent directory.
  1164. ac_confdir=`$as_dirname -- "$0" ||
  1165. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1166. X"$0" : 'X\(//\)[^/]' \| \
  1167. X"$0" : 'X\(//\)$' \| \
  1168. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1169. echo X"$0" |
  1170. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1171. s//\1/
  1172. q
  1173. }
  1174. /^X\(\/\/\)[^/].*/{
  1175. s//\1/
  1176. q
  1177. }
  1178. /^X\(\/\/\)$/{
  1179. s//\1/
  1180. q
  1181. }
  1182. /^X\(\/\).*/{
  1183. s//\1/
  1184. q
  1185. }
  1186. s/.*/./; q'`
  1187. srcdir=$ac_confdir
  1188. if test ! -r "$srcdir/$ac_unique_file"; then
  1189. srcdir=..
  1190. fi
  1191. else
  1192. ac_srcdir_defaulted=no
  1193. fi
  1194. if test ! -r "$srcdir/$ac_unique_file"; then
  1195. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1196. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1197. { (exit 1); exit 1; }; }
  1198. fi
  1199. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1200. ac_abs_confdir=`(
  1201. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1202. { (exit 1); exit 1; }; }
  1203. pwd)`
  1204. # When building in place, set srcdir=.
  1205. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1206. srcdir=.
  1207. fi
  1208. # Remove unnecessary trailing slashes from srcdir.
  1209. # Double slashes in file names in object file debugging info
  1210. # mess up M-x gdb in Emacs.
  1211. case $srcdir in
  1212. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1213. esac
  1214. for ac_var in $ac_precious_vars; do
  1215. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1216. eval ac_env_${ac_var}_value=\$${ac_var}
  1217. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1218. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1219. done
  1220. #
  1221. # Report the --help message.
  1222. #
  1223. if test "$ac_init_help" = "long"; then
  1224. # Omit some internal or obsolete options to make the list less imposing.
  1225. # This message is too long to be a string in the A/UX 3.1 sh.
  1226. cat <<_ACEOF
  1227. \`configure' configures file 4.24 to adapt to many kinds of systems.
  1228. Usage: $0 [OPTION]... [VAR=VALUE]...
  1229. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1230. VAR=VALUE. See below for descriptions of some of the useful variables.
  1231. Defaults for the options are specified in brackets.
  1232. Configuration:
  1233. -h, --help display this help and exit
  1234. --help=short display options specific to this package
  1235. --help=recursive display the short help of all the included packages
  1236. -V, --version display version information and exit
  1237. -q, --quiet, --silent do not print \`checking...' messages
  1238. --cache-file=FILE cache test results in FILE [disabled]
  1239. -C, --config-cache alias for \`--cache-file=config.cache'
  1240. -n, --no-create do not create output files
  1241. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1242. Installation directories:
  1243. --prefix=PREFIX install architecture-independent files in PREFIX
  1244. [$ac_default_prefix]
  1245. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1246. [PREFIX]
  1247. By default, \`make install' will install all the files in
  1248. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1249. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1250. for instance \`--prefix=\$HOME'.
  1251. For better control, use the options below.
  1252. Fine tuning of the installation directories:
  1253. --bindir=DIR user executables [EPREFIX/bin]
  1254. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1255. --libexecdir=DIR program executables [EPREFIX/libexec]
  1256. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1257. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1258. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1259. --libdir=DIR object code libraries [EPREFIX/lib]
  1260. --includedir=DIR C header files [PREFIX/include]
  1261. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1262. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1263. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1264. --infodir=DIR info documentation [DATAROOTDIR/info]
  1265. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1266. --mandir=DIR man documentation [DATAROOTDIR/man]
  1267. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1268. --htmldir=DIR html documentation [DOCDIR]
  1269. --dvidir=DIR dvi documentation [DOCDIR]
  1270. --pdfdir=DIR pdf documentation [DOCDIR]
  1271. --psdir=DIR ps documentation [DOCDIR]
  1272. _ACEOF
  1273. cat <<\_ACEOF
  1274. Program names:
  1275. --program-prefix=PREFIX prepend PREFIX to installed program names
  1276. --program-suffix=SUFFIX append SUFFIX to installed program names
  1277. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1278. System types:
  1279. --build=BUILD configure for building on BUILD [guessed]
  1280. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1281. _ACEOF
  1282. fi
  1283. if test -n "$ac_init_help"; then
  1284. case $ac_init_help in
  1285. short | recursive ) echo "Configuration of file 4.24:";;
  1286. esac
  1287. cat <<\_ACEOF
  1288. Optional Features:
  1289. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1290. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1291. --disable-elf disable builtin ELF support
  1292. --disable-elf-core disable ELF core file support
  1293. --enable-fsect-man5 enable file formats in man section 5
  1294. --disable-dependency-tracking speeds up one-time build
  1295. --enable-dependency-tracking do not reject slow dependency extractors
  1296. --enable-shared[=PKGS] build shared libraries [default=yes]
  1297. --enable-static[=PKGS] build static libraries [default=yes]
  1298. --enable-fast-install[=PKGS]
  1299. optimize for fast installation [default=yes]
  1300. --disable-libtool-lock avoid locking (might break parallel builds)
  1301. --disable-largefile omit support for large files
  1302. Optional Packages:
  1303. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1304. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1305. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1306. --with-pic try to use only PIC/non-PIC objects [default=use
  1307. both]
  1308. --with-tags[=TAGS] include additional configurations [automatic]
  1309. Some influential environment variables:
  1310. CC C compiler command
  1311. CFLAGS C compiler flags
  1312. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1313. nonstandard directory <lib dir>
  1314. LIBS libraries to pass to the linker, e.g. -l<library>
  1315. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1316. you have headers in a nonstandard directory <include dir>
  1317. CPP C preprocessor
  1318. CXX C++ compiler command
  1319. CXXFLAGS C++ compiler flags
  1320. CXXCPP C++ preprocessor
  1321. F77 Fortran 77 compiler command
  1322. FFLAGS Fortran 77 compiler flags
  1323. Use these variables to override the choices made by `configure' or to help
  1324. it to find libraries and programs with nonstandard names/locations.
  1325. Report bugs to <christos@astron.com>.
  1326. _ACEOF
  1327. ac_status=$?
  1328. fi
  1329. if test "$ac_init_help" = "recursive"; then
  1330. # If there are subdirs, report their specific --help.
  1331. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332. test -d "$ac_dir" || continue
  1333. ac_builddir=.
  1334. case "$ac_dir" in
  1335. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *)
  1337. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1338. # A ".." for each directory in $ac_dir_suffix.
  1339. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1340. case $ac_top_builddir_sub in
  1341. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1343. esac ;;
  1344. esac
  1345. ac_abs_top_builddir=$ac_pwd
  1346. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1347. # for backward compatibility:
  1348. ac_top_builddir=$ac_top_build_prefix
  1349. case $srcdir in
  1350. .) # We are building in place.
  1351. ac_srcdir=.
  1352. ac_top_srcdir=$ac_top_builddir_sub
  1353. ac_abs_top_srcdir=$ac_pwd ;;
  1354. [\\/]* | ?:[\\/]* ) # Absolute name.
  1355. ac_srcdir=$srcdir$ac_dir_suffix;
  1356. ac_top_srcdir=$srcdir
  1357. ac_abs_top_srcdir=$srcdir ;;
  1358. *) # Relative name.
  1359. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1360. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1361. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1362. esac
  1363. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1364. cd "$ac_dir" || { ac_status=$?; continue; }
  1365. # Check for guested configure.
  1366. if test -f "$ac_srcdir/configure.gnu"; then
  1367. echo &&
  1368. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1369. elif test -f "$ac_srcdir/configure"; then
  1370. echo &&
  1371. $SHELL "$ac_srcdir/configure" --help=recursive
  1372. else
  1373. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1374. fi || ac_status=$?
  1375. cd "$ac_pwd" || { ac_status=$?; break; }
  1376. done
  1377. fi
  1378. test -n "$ac_init_help" && exit $ac_status
  1379. if $ac_init_version; then
  1380. cat <<\_ACEOF
  1381. file configure 4.24
  1382. generated by GNU Autoconf 2.61
  1383. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1384. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1385. This configure script is free software; the Free Software Foundation
  1386. gives unlimited permission to copy, distribute and modify it.
  1387. _ACEOF
  1388. exit
  1389. fi
  1390. cat >config.log <<_ACEOF
  1391. This file contains any messages produced by compilers while
  1392. running configure, to aid debugging if configure makes a mistake.
  1393. It was created by file $as_me 4.24, which was
  1394. generated by GNU Autoconf 2.61. Invocation command line was
  1395. $ $0 $@
  1396. _ACEOF
  1397. exec 5>>config.log
  1398. {
  1399. cat <<_ASUNAME
  1400. ## --------- ##
  1401. ## Platform. ##
  1402. ## --------- ##
  1403. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1404. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1405. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1406. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1407. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1408. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1409. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1410. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1411. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1412. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1413. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1414. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1415. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1416. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1417. _ASUNAME
  1418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1419. for as_dir in $PATH
  1420. do
  1421. IFS=$as_save_IFS
  1422. test -z "$as_dir" && as_dir=.
  1423. echo "PATH: $as_dir"
  1424. done
  1425. IFS=$as_save_IFS
  1426. } >&5
  1427. cat >&5 <<_ACEOF
  1428. ## ----------- ##
  1429. ## Core tests. ##
  1430. ## ----------- ##
  1431. _ACEOF
  1432. # Keep a trace of the command line.
  1433. # Strip out --no-create and --no-recursion so they do not pile up.
  1434. # Strip out --silent because we don't want to record it for future runs.
  1435. # Also quote any args containing shell meta-characters.
  1436. # Make two passes to allow for proper duplicate-argument suppression.
  1437. ac_configure_args=
  1438. ac_configure_args0=
  1439. ac_configure_args1=
  1440. ac_must_keep_next=false
  1441. for ac_pass in 1 2
  1442. do
  1443. for ac_arg
  1444. do
  1445. case $ac_arg in
  1446. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1447. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1448. | -silent | --silent | --silen | --sile | --sil)
  1449. continue ;;
  1450. *\'*)
  1451. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1452. esac
  1453. case $ac_pass in
  1454. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1455. 2)
  1456. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1457. if test $ac_must_keep_next = true; then
  1458. ac_must_keep_next=false # Got value, back to normal.
  1459. else
  1460. case $ac_arg in
  1461. *=* | --config-cache | -C | -disable-* | --disable-* \
  1462. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1463. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1464. | -with-* | --with-* | -without-* | --without-* | --x)
  1465. case "$ac_configure_args0 " in
  1466. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1467. esac
  1468. ;;
  1469. -* ) ac_must_keep_next=true ;;
  1470. esac
  1471. fi
  1472. ac_configure_args="$ac_configure_args '$ac_arg'"
  1473. ;;
  1474. esac
  1475. done
  1476. done
  1477. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1478. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1479. # When interrupted or exit'd, cleanup temporary files, and complete
  1480. # config.log. We remove comments because anyway the quotes in there
  1481. # would cause problems or look ugly.
  1482. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1483. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1484. trap 'exit_status=$?
  1485. # Save into config.log some information that might help in debugging.
  1486. {
  1487. echo
  1488. cat <<\_ASBOX
  1489. ## ---------------- ##
  1490. ## Cache variables. ##
  1491. ## ---------------- ##
  1492. _ASBOX
  1493. echo
  1494. # The following way of writing the cache mishandles newlines in values,
  1495. (
  1496. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1497. eval ac_val=\$$ac_var
  1498. case $ac_val in #(
  1499. *${as_nl}*)
  1500. case $ac_var in #(
  1501. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1502. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1503. esac
  1504. case $ac_var in #(
  1505. _ | IFS | as_nl) ;; #(
  1506. *) $as_unset $ac_var ;;
  1507. esac ;;
  1508. esac
  1509. done
  1510. (set) 2>&1 |
  1511. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1512. *${as_nl}ac_space=\ *)
  1513. sed -n \
  1514. "s/'\''/'\''\\\\'\'''\''/g;
  1515. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1516. ;; #(
  1517. *)
  1518. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1519. ;;
  1520. esac |
  1521. sort
  1522. )
  1523. echo
  1524. cat <<\_ASBOX
  1525. ## ----------------- ##
  1526. ## Output variables. ##
  1527. ## ----------------- ##
  1528. _ASBOX
  1529. echo
  1530. for ac_var in $ac_subst_vars
  1531. do
  1532. eval ac_val=\$$ac_var
  1533. case $ac_val in
  1534. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1535. esac
  1536. echo "$ac_var='\''$ac_val'\''"
  1537. done | sort
  1538. echo
  1539. if test -n "$ac_subst_files"; then
  1540. cat <<\_ASBOX
  1541. ## ------------------- ##
  1542. ## File substitutions. ##
  1543. ## ------------------- ##
  1544. _ASBOX
  1545. echo
  1546. for ac_var in $ac_subst_files
  1547. do
  1548. eval ac_val=\$$ac_var
  1549. case $ac_val in
  1550. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1551. esac
  1552. echo "$ac_var='\''$ac_val'\''"
  1553. done | sort
  1554. echo
  1555. fi
  1556. if test -s confdefs.h; then
  1557. cat <<\_ASBOX
  1558. ## ----------- ##
  1559. ## confdefs.h. ##
  1560. ## ----------- ##
  1561. _ASBOX
  1562. echo
  1563. cat confdefs.h
  1564. echo
  1565. fi
  1566. test "$ac_signal" != 0 &&
  1567. echo "$as_me: caught signal $ac_signal"
  1568. echo "$as_me: exit $exit_status"
  1569. } >&5
  1570. rm -f core *.core core.conftest.* &&
  1571. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1572. exit $exit_status
  1573. ' 0
  1574. for ac_signal in 1 2 13 15; do
  1575. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1576. done
  1577. ac_signal=0
  1578. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1579. rm -f -r conftest* confdefs.h
  1580. # Predefined preprocessor variables.
  1581. cat >>confdefs.h <<_ACEOF
  1582. #define PACKAGE_NAME "$PACKAGE_NAME"
  1583. _ACEOF
  1584. cat >>confdefs.h <<_ACEOF
  1585. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1586. _ACEOF
  1587. cat >>confdefs.h <<_ACEOF
  1588. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1589. _ACEOF
  1590. cat >>confdefs.h <<_ACEOF
  1591. #define PACKAGE_STRING "$PACKAGE_STRING"
  1592. _ACEOF
  1593. cat >>confdefs.h <<_ACEOF
  1594. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1595. _ACEOF
  1596. # Let the site file select an alternate cache file if it wants to.
  1597. # Prefer explicitly selected file to automatically selected ones.
  1598. if test -n "$CONFIG_SITE"; then
  1599. set x "$CONFIG_SITE"
  1600. elif test "x$prefix" != xNONE; then
  1601. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1602. else
  1603. set x "$ac_default_prefix/share/config.site" \
  1604. "$ac_default_prefix/etc/config.site"
  1605. fi
  1606. shift
  1607. for ac_site_file
  1608. do
  1609. if test -r "$ac_site_file"; then
  1610. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1611. echo "$as_me: loading site script $ac_site_file" >&6;}
  1612. sed 's/^/| /' "$ac_site_file" >&5
  1613. . "$ac_site_file"
  1614. fi
  1615. done
  1616. if test -r "$cache_file"; then
  1617. # Some versions of bash will fail to source /dev/null (special
  1618. # files actually), so we avoid doing that.
  1619. if test -f "$cache_file"; then
  1620. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1621. echo "$as_me: loading cache $cache_file" >&6;}
  1622. case $cache_file in
  1623. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1624. *) . "./$cache_file";;
  1625. esac
  1626. fi
  1627. else
  1628. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1629. echo "$as_me: creating cache $cache_file" >&6;}
  1630. >$cache_file
  1631. fi
  1632. # Check that the precious variables saved in the cache have kept the same
  1633. # value.
  1634. ac_cache_corrupted=false
  1635. for ac_var in $ac_precious_vars; do
  1636. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1637. eval ac_new_set=\$ac_env_${ac_var}_set
  1638. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1639. eval ac_new_val=\$ac_env_${ac_var}_value
  1640. case $ac_old_set,$ac_new_set in
  1641. set,)
  1642. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1643. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1644. ac_cache_corrupted=: ;;
  1645. ,set)
  1646. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1647. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1648. ac_cache_corrupted=: ;;
  1649. ,);;
  1650. *)
  1651. if test "x$ac_old_val" != "x$ac_new_val"; then
  1652. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1653. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1654. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1655. echo "$as_me: former value: $ac_old_val" >&2;}
  1656. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1657. echo "$as_me: current value: $ac_new_val" >&2;}
  1658. ac_cache_corrupted=:
  1659. fi;;
  1660. esac
  1661. # Pass precious variables to config.status.
  1662. if test "$ac_new_set" = set; then
  1663. case $ac_new_val in
  1664. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1665. *) ac_arg=$ac_var=$ac_new_val ;;
  1666. esac
  1667. case " $ac_configure_args " in
  1668. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1669. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1670. esac
  1671. fi
  1672. done
  1673. if $ac_cache_corrupted; then
  1674. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1675. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1676. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1677. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1678. { (exit 1); exit 1; }; }
  1679. fi
  1680. ac_ext=c
  1681. ac_cpp='$CPP $CPPFLAGS'
  1682. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1683. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1684. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1685. am__api_version='1.10'
  1686. ac_aux_dir=
  1687. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1688. if test -f "$ac_dir/install-sh"; then
  1689. ac_aux_dir=$ac_dir
  1690. ac_install_sh="$ac_aux_dir/install-sh -c"
  1691. break
  1692. elif test -f "$ac_dir/install.sh"; then
  1693. ac_aux_dir=$ac_dir
  1694. ac_install_sh="$ac_aux_dir/install.sh -c"
  1695. break
  1696. elif test -f "$ac_dir/shtool"; then
  1697. ac_aux_dir=$ac_dir
  1698. ac_install_sh="$ac_aux_dir/shtool install -c"
  1699. break
  1700. fi
  1701. done
  1702. if test -z "$ac_aux_dir"; then
  1703. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1704. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1705. { (exit 1); exit 1; }; }
  1706. fi
  1707. # These three variables are undocumented and unsupported,
  1708. # and are intended to be withdrawn in a future Autoconf release.
  1709. # They can cause serious problems if a builder's source tree is in a directory
  1710. # whose full name contains unusual characters.
  1711. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1712. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1713. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1714. # Find a good install program. We prefer a C program (faster),
  1715. # so one script is as good as another. But avoid the broken or
  1716. # incompatible versions:
  1717. # SysV /etc/install, /usr/sbin/install
  1718. # SunOS /usr/etc/install
  1719. # IRIX /sbin/install
  1720. # AIX /bin/install
  1721. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1725. # OS/2's system install, which has a completely different semantic
  1726. # ./install, which can be erroneously created by make from ./install.sh.
  1727. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1728. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1729. if test -z "$INSTALL"; then
  1730. if test "${ac_cv_path_install+set}" = set; then
  1731. echo $ECHO_N "(cached) $ECHO_C" >&6
  1732. else
  1733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1734. for as_dir in $PATH
  1735. do
  1736. IFS=$as_save_IFS
  1737. test -z "$as_dir" && as_dir=.
  1738. # Account for people who put trailing slashes in PATH elements.
  1739. case $as_dir/ in
  1740. ./ | .// | /cC/* | \
  1741. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1742. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1743. /usr/ucb/* ) ;;
  1744. *)
  1745. # OSF1 and SCO ODT 3.0 have their own names for install.
  1746. # Don't use installbsd from OSF since it installs stuff as root
  1747. # by default.
  1748. for ac_prog in ginstall scoinst install; do
  1749. for ac_exec_ext in '' $ac_executable_extensions; do
  1750. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1751. if test $ac_prog = install &&
  1752. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1753. # AIX install. It has an incompatible calling convention.
  1754. :
  1755. elif test $ac_prog = install &&
  1756. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1757. # program-specific install script used by HP pwplus--don't use.
  1758. :
  1759. else
  1760. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1761. break 3
  1762. fi
  1763. fi
  1764. done
  1765. done
  1766. ;;
  1767. esac
  1768. done
  1769. IFS=$as_save_IFS
  1770. fi
  1771. if test "${ac_cv_path_install+set}" = set; then
  1772. INSTALL=$ac_cv_path_install
  1773. else
  1774. # As a last resort, use the slow shell script. Don't cache a
  1775. # value for INSTALL within a source directory, because that will
  1776. # break other packages using the cache if that directory is
  1777. # removed, or if the value is a relative name.
  1778. INSTALL=$ac_install_sh
  1779. fi
  1780. fi
  1781. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1782. echo "${ECHO_T}$INSTALL" >&6; }
  1783. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1784. # It thinks the first close brace ends the variable substitution.
  1785. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1786. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1787. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1788. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1789. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1790. # Just in case
  1791. sleep 1
  1792. echo timestamp > conftest.file
  1793. # Do `set' in a subshell so we don't clobber the current shell's
  1794. # arguments. Must try -L first in case configure is actually a
  1795. # symlink; some systems play weird games with the mod time of symlinks
  1796. # (eg FreeBSD returns the mod time of the symlink's containing
  1797. # directory).
  1798. if (
  1799. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1800. if test "$*" = "X"; then
  1801. # -L didn't work.
  1802. set X `ls -t $srcdir/configure conftest.file`
  1803. fi
  1804. rm -f conftest.file
  1805. if test "$*" != "X $srcdir/configure conftest.file" \
  1806. && test "$*" != "X conftest.file $srcdir/configure"; then
  1807. # If neither matched, then we have a broken ls. This can happen
  1808. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1809. # broken ls alias from the environment. This has actually
  1810. # happened. Such a system could not be considered "sane".
  1811. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1812. alias in your environment" >&5
  1813. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1814. alias in your environment" >&2;}
  1815. { (exit 1); exit 1; }; }
  1816. fi
  1817. test "$2" = conftest.file
  1818. )
  1819. then
  1820. # Ok.
  1821. :
  1822. else
  1823. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1824. Check your system clock" >&5
  1825. echo "$as_me: error: newly created file is older than distributed files!
  1826. Check your system clock" >&2;}
  1827. { (exit 1); exit 1; }; }
  1828. fi
  1829. { echo "$as_me:$LINENO: result: yes" >&5
  1830. echo "${ECHO_T}yes" >&6; }
  1831. test "$program_prefix" != NONE &&
  1832. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1833. # Use a double $ so make ignores it.
  1834. test "$program_suffix" != NONE &&
  1835. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1836. # Double any \ or $. echo might interpret backslashes.
  1837. # By default was `s,x,x', remove it if useless.
  1838. cat <<\_ACEOF >conftest.sed
  1839. s/[\\$]/&&/g;s/;s,x,x,$//
  1840. _ACEOF
  1841. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1842. rm -f conftest.sed
  1843. # expand $ac_aux_dir to an absolute path
  1844. am_aux_dir=`cd $ac_aux_dir && pwd`
  1845. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1846. # Use eval to expand $SHELL
  1847. if eval "$MISSING --run true"; then
  1848. am_missing_run="$MISSING --run "
  1849. else
  1850. am_missing_run=
  1851. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1852. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1853. fi
  1854. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1855. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1856. if test -z "$MKDIR_P"; then
  1857. if test "${ac_cv_path_mkdir+set}" = set; then
  1858. echo $ECHO_N "(cached) $ECHO_C" >&6
  1859. else
  1860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1861. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1862. do
  1863. IFS=$as_save_IFS
  1864. test -z "$as_dir" && as_dir=.
  1865. for ac_prog in mkdir gmkdir; do
  1866. for ac_exec_ext in '' $ac_executable_extensions; do
  1867. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1868. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1869. 'mkdir (GNU coreutils) '* | \
  1870. 'mkdir (coreutils) '* | \
  1871. 'mkdir (fileutils) '4.1*)
  1872. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1873. break 3;;
  1874. esac
  1875. done
  1876. done
  1877. done
  1878. IFS=$as_save_IFS
  1879. fi
  1880. if test "${ac_cv_path_mkdir+set}" = set; then
  1881. MKDIR_P="$ac_cv_path_mkdir -p"
  1882. else
  1883. # As a last resort, use the slow shell script. Don't cache a
  1884. # value for MKDIR_P within a source directory, because that will
  1885. # break other packages using the cache if that directory is
  1886. # removed, or if the value is a relative name.
  1887. test -d ./--version && rmdir ./--version
  1888. MKDIR_P="$ac_install_sh -d"
  1889. fi
  1890. fi
  1891. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1892. echo "${ECHO_T}$MKDIR_P" >&6; }
  1893. mkdir_p="$MKDIR_P"
  1894. case $mkdir_p in
  1895. [\\/$]* | ?:[\\/]*) ;;
  1896. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1897. esac
  1898. for ac_prog in gawk mawk nawk awk
  1899. do
  1900. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1901. set dummy $ac_prog; ac_word=$2
  1902. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1903. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1904. if test "${ac_cv_prog_AWK+set}" = set; then
  1905. echo $ECHO_N "(cached) $ECHO_C" >&6
  1906. else
  1907. if test -n "$AWK"; then
  1908. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1909. else
  1910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1911. for as_dir in $PATH
  1912. do
  1913. IFS=$as_save_IFS
  1914. test -z "$as_dir" && as_dir=.
  1915. for ac_exec_ext in '' $ac_executable_extensions; do
  1916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1917. ac_cv_prog_AWK="$ac_prog"
  1918. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1919. break 2
  1920. fi
  1921. done
  1922. done
  1923. IFS=$as_save_IFS
  1924. fi
  1925. fi
  1926. AWK=$ac_cv_prog_AWK
  1927. if test -n "$AWK"; then
  1928. { echo "$as_me:$LINENO: result: $AWK" >&5
  1929. echo "${ECHO_T}$AWK" >&6; }
  1930. else
  1931. { echo "$as_me:$LINENO: result: no" >&5
  1932. echo "${ECHO_T}no" >&6; }
  1933. fi
  1934. test -n "$AWK" && break
  1935. done
  1936. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1937. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1938. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1939. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1940. echo $ECHO_N "(cached) $ECHO_C" >&6
  1941. else
  1942. cat >conftest.make <<\_ACEOF
  1943. SHELL = /bin/sh
  1944. all:
  1945. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1946. _ACEOF
  1947. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1948. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1949. *@@@%%%=?*=@@@%%%*)
  1950. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1951. *)
  1952. eval ac_cv_prog_make_${ac_make}_set=no;;
  1953. esac
  1954. rm -f conftest.make
  1955. fi
  1956. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1957. { echo "$as_me:$LINENO: result: yes" >&5
  1958. echo "${ECHO_T}yes" >&6; }
  1959. SET_MAKE=
  1960. else
  1961. { echo "$as_me:$LINENO: result: no" >&5
  1962. echo "${ECHO_T}no" >&6; }
  1963. SET_MAKE="MAKE=${MAKE-make}"
  1964. fi
  1965. rm -rf .tst 2>/dev/null
  1966. mkdir .tst 2>/dev/null
  1967. if test -d .tst; then
  1968. am__leading_dot=.
  1969. else
  1970. am__leading_dot=_
  1971. fi
  1972. rmdir .tst 2>/dev/null
  1973. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1974. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1975. # is not polluted with repeated "-I."
  1976. am__isrc=' -I$(srcdir)'
  1977. # test to see if srcdir already configured
  1978. if test -f $srcdir/config.status; then
  1979. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1980. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1981. { (exit 1); exit 1; }; }
  1982. fi
  1983. fi
  1984. # test whether we have cygpath
  1985. if test -z "$CYGPATH_W"; then
  1986. if (cygpath --version) >/dev/null 2>/dev/null; then
  1987. CYGPATH_W='cygpath -w'
  1988. else
  1989. CYGPATH_W=echo
  1990. fi
  1991. fi
  1992. # Define the identity of the package.
  1993. PACKAGE='file'
  1994. VERSION='4.24'
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE "$PACKAGE"
  1997. _ACEOF
  1998. cat >>confdefs.h <<_ACEOF
  1999. #define VERSION "$VERSION"
  2000. _ACEOF
  2001. # Some tools Automake needs.
  2002. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2003. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2004. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2005. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2006. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2007. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2008. # Installed binaries are usually stripped using `strip' when the user
  2009. # run `make install-strip'. However `strip' might not be the right
  2010. # tool to use in cross-compilation environments, therefore Automake
  2011. # will honor the `STRIP' environment variable to overrule this program.
  2012. if test "$cross_compiling" != no; then
  2013. if test -n "$ac_tool_prefix"; then
  2014. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2015. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2016. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2017. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2018. if test "${ac_cv_prog_STRIP+set}" = set; then
  2019. echo $ECHO_N "(cached) $ECHO_C" >&6
  2020. else
  2021. if test -n "$STRIP"; then
  2022. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2023. else
  2024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2025. for as_dir in $PATH
  2026. do
  2027. IFS=$as_save_IFS
  2028. test -z "$as_dir" && as_dir=.
  2029. for ac_exec_ext in '' $ac_executable_extensions; do
  2030. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2031. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2032. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2033. break 2
  2034. fi
  2035. done
  2036. done
  2037. IFS=$as_save_IFS
  2038. fi
  2039. fi
  2040. STRIP=$ac_cv_prog_STRIP
  2041. if test -n "$STRIP"; then
  2042. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2043. echo "${ECHO_T}$STRIP" >&6; }
  2044. else
  2045. { echo "$as_me:$LINENO: result: no" >&5
  2046. echo "${ECHO_T}no" >&6; }
  2047. fi
  2048. fi
  2049. if test -z "$ac_cv_prog_STRIP"; then
  2050. ac_ct_STRIP=$STRIP
  2051. # Extract the first word of "strip", so it can be a program name with args.
  2052. set dummy strip; ac_word=$2
  2053. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2054. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2055. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2056. echo $ECHO_N "(cached) $ECHO_C" >&6
  2057. else
  2058. if test -n "$ac_ct_STRIP"; then
  2059. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2060. else
  2061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2062. for as_dir in $PATH
  2063. do
  2064. IFS=$as_save_IFS
  2065. test -z "$as_dir" && as_dir=.
  2066. for ac_exec_ext in '' $ac_executable_extensions; do
  2067. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2068. ac_cv_prog_ac_ct_STRIP="strip"
  2069. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2070. break 2
  2071. fi
  2072. done
  2073. done
  2074. IFS=$as_save_IFS
  2075. fi
  2076. fi
  2077. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2078. if test -n "$ac_ct_STRIP"; then
  2079. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2080. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2081. else
  2082. { echo "$as_me:$LINENO: result: no" >&5
  2083. echo "${ECHO_T}no" >&6; }
  2084. fi
  2085. if test "x$ac_ct_STRIP" = x; then
  2086. STRIP=":"
  2087. else
  2088. case $cross_compiling:$ac_tool_warned in
  2089. yes:)
  2090. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2091. whose name does not start with the host triplet. If you think this
  2092. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2093. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2094. whose name does not start with the host triplet. If you think this
  2095. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2096. ac_tool_warned=yes ;;
  2097. esac
  2098. STRIP=$ac_ct_STRIP
  2099. fi
  2100. else
  2101. STRIP="$ac_cv_prog_STRIP"
  2102. fi
  2103. fi
  2104. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2105. # We need awk for the "check" target. The system "awk" is bad on
  2106. # some platforms.
  2107. # Always define AMTAR for backward compatibility.
  2108. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2109. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2110. ac_config_headers="$ac_config_headers config.h"
  2111. { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
  2112. echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
  2113. # Check whether --enable-elf was given.
  2114. if test "${enable_elf+set}" = set; then
  2115. enableval=$enable_elf; if test "${enableval}" = yes; then
  2116. { echo "$as_me:$LINENO: result: yes" >&5
  2117. echo "${ECHO_T}yes" >&6; }
  2118. cat >>confdefs.h <<\_ACEOF
  2119. #define BUILTIN_ELF 1
  2120. _ACEOF
  2121. else
  2122. { echo "$as_me:$LINENO: result: no" >&5
  2123. echo "${ECHO_T}no" >&6; }
  2124. fi
  2125. else
  2126. # enable by default
  2127. { echo "$as_me:$LINENO: result: yes" >&5
  2128. echo "${ECHO_T}yes" >&6; }
  2129. cat >>confdefs.h <<\_ACEOF
  2130. #define BUILTIN_ELF 1
  2131. _ACEOF
  2132. fi
  2133. { echo "$as_me:$LINENO: checking for ELF core file support" >&5
  2134. echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
  2135. # Check whether --enable-elf-core was given.
  2136. if test "${enable_elf_core+set}" = set; then
  2137. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2138. { echo "$as_me:$LINENO: result: yes" >&5
  2139. echo "${ECHO_T}yes" >&6; }
  2140. cat >>confdefs.h <<\_ACEOF
  2141. #define ELFCORE 1
  2142. _ACEOF
  2143. else
  2144. { echo "$as_me:$LINENO: result: no" >&5
  2145. echo "${ECHO_T}no" >&6; }
  2146. fi
  2147. else
  2148. # enable by default
  2149. { echo "$as_me:$LINENO: result: yes" >&5
  2150. echo "${ECHO_T}yes" >&6; }
  2151. cat >>confdefs.h <<\_ACEOF
  2152. #define ELFCORE 1
  2153. _ACEOF
  2154. fi
  2155. { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  2156. echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
  2157. # Check whether --enable-fsect-man5 was given.
  2158. if test "${enable_fsect_man5+set}" = set; then
  2159. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2160. { echo "$as_me:$LINENO: result: yes" >&5
  2161. echo "${ECHO_T}yes" >&6; }
  2162. fsect=5
  2163. else
  2164. { echo "$as_me:$LINENO: result: no" >&5
  2165. echo "${ECHO_T}no" >&6; }
  2166. fsect=4
  2167. fi
  2168. else
  2169. # disable by default
  2170. { echo "$as_me:$LINENO: result: no" >&5
  2171. echo "${ECHO_T}no" >&6; }
  2172. fsect=4
  2173. fi
  2174. if test x$fsect = x5; then
  2175. FSECT5_TRUE=
  2176. FSECT5_FALSE='#'
  2177. else
  2178. FSECT5_TRUE='#'
  2179. FSECT5_FALSE=
  2180. fi
  2181. cat >>confdefs.h <<\_ACEOF
  2182. #define _GNU_SOURCE 1
  2183. _ACEOF
  2184. ac_ext=c
  2185. ac_cpp='$CPP $CPPFLAGS'
  2186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2189. if test -n "$ac_tool_prefix"; then
  2190. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2191. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2192. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2193. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2194. if test "${ac_cv_prog_CC+set}" = set; then
  2195. echo $ECHO_N "(cached) $ECHO_C" >&6
  2196. else
  2197. if test -n "$CC"; then
  2198. ac_cv_prog_CC="$CC" # Let the user override the test.
  2199. else
  2200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2201. for as_dir in $PATH
  2202. do
  2203. IFS=$as_save_IFS
  2204. test -z "$as_dir" && as_dir=.
  2205. for ac_exec_ext in '' $ac_executable_extensions; do
  2206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2207. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2208. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2209. break 2
  2210. fi
  2211. done
  2212. done
  2213. IFS=$as_save_IFS
  2214. fi
  2215. fi
  2216. CC=$ac_cv_prog_CC
  2217. if test -n "$CC"; then
  2218. { echo "$as_me:$LINENO: result: $CC" >&5
  2219. echo "${ECHO_T}$CC" >&6; }
  2220. else
  2221. { echo "$as_me:$LINENO: result: no" >&5
  2222. echo "${ECHO_T}no" >&6; }
  2223. fi
  2224. fi
  2225. if test -z "$ac_cv_prog_CC"; then
  2226. ac_ct_CC=$CC
  2227. # Extract the first word of "gcc", so it can be a program name with args.
  2228. set dummy gcc; ac_word=$2
  2229. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2230. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2231. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2232. echo $ECHO_N "(cached) $ECHO_C" >&6
  2233. else
  2234. if test -n "$ac_ct_CC"; then
  2235. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2236. else
  2237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2238. for as_dir in $PATH
  2239. do
  2240. IFS=$as_save_IFS
  2241. test -z "$as_dir" && as_dir=.
  2242. for ac_exec_ext in '' $ac_executable_extensions; do
  2243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2244. ac_cv_prog_ac_ct_CC="gcc"
  2245. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2246. break 2
  2247. fi
  2248. done
  2249. done
  2250. IFS=$as_save_IFS
  2251. fi
  2252. fi
  2253. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2254. if test -n "$ac_ct_CC"; then
  2255. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2256. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2257. else
  2258. { echo "$as_me:$LINENO: result: no" >&5
  2259. echo "${ECHO_T}no" >&6; }
  2260. fi
  2261. if test "x$ac_ct_CC" = x; then
  2262. CC=""
  2263. else
  2264. case $cross_compiling:$ac_tool_warned in
  2265. yes:)
  2266. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2267. whose name does not start with the host triplet. If you think this
  2268. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2269. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2270. whose name does not start with the host triplet. If you think this
  2271. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2272. ac_tool_warned=yes ;;
  2273. esac
  2274. CC=$ac_ct_CC
  2275. fi
  2276. else
  2277. CC="$ac_cv_prog_CC"
  2278. fi
  2279. if test -z "$CC"; then
  2280. if test -n "$ac_tool_prefix"; then
  2281. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2282. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2283. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2284. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2285. if test "${ac_cv_prog_CC+set}" = set; then
  2286. echo $ECHO_N "(cached) $ECHO_C" >&6
  2287. else
  2288. if test -n "$CC"; then
  2289. ac_cv_prog_CC="$CC" # Let the user override the test.
  2290. else
  2291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2292. for as_dir in $PATH
  2293. do
  2294. IFS=$as_save_IFS
  2295. test -z "$as_dir" && as_dir=.
  2296. for ac_exec_ext in '' $ac_executable_extensions; do
  2297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2298. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2299. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2300. break 2
  2301. fi
  2302. done
  2303. done
  2304. IFS=$as_save_IFS
  2305. fi
  2306. fi
  2307. CC=$ac_cv_prog_CC
  2308. if test -n "$CC"; then
  2309. { echo "$as_me:$LINENO: result: $CC" >&5
  2310. echo "${ECHO_T}$CC" >&6; }
  2311. else
  2312. { echo "$as_me:$LINENO: result: no" >&5
  2313. echo "${ECHO_T}no" >&6; }
  2314. fi
  2315. fi
  2316. fi
  2317. if test -z "$CC"; then
  2318. # Extract the first word of "cc", so it can be a program name with args.
  2319. set dummy cc; ac_word=$2
  2320. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2322. if test "${ac_cv_prog_CC+set}" = set; then
  2323. echo $ECHO_N "(cached) $ECHO_C" >&6
  2324. else
  2325. if test -n "$CC"; then
  2326. ac_cv_prog_CC="$CC" # Let the user override the test.
  2327. else
  2328. ac_prog_rejected=no
  2329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2330. for as_dir in $PATH
  2331. do
  2332. IFS=$as_save_IFS
  2333. test -z "$as_dir" && as_dir=.
  2334. for ac_exec_ext in '' $ac_executable_extensions; do
  2335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2336. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2337. ac_prog_rejected=yes
  2338. continue
  2339. fi
  2340. ac_cv_prog_CC="cc"
  2341. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2342. break 2
  2343. fi
  2344. done
  2345. done
  2346. IFS=$as_save_IFS
  2347. if test $ac_prog_rejected = yes; then
  2348. # We found a bogon in the path, so make sure we never use it.
  2349. set dummy $ac_cv_prog_CC
  2350. shift
  2351. if test $# != 0; then
  2352. # We chose a different compiler from the bogus one.
  2353. # However, it has the same basename, so the bogon will be chosen
  2354. # first if we set CC to just the basename; use the full file name.
  2355. shift
  2356. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2357. fi
  2358. fi
  2359. fi
  2360. fi
  2361. CC=$ac_cv_prog_CC
  2362. if test -n "$CC"; then
  2363. { echo "$as_me:$LINENO: result: $CC" >&5
  2364. echo "${ECHO_T}$CC" >&6; }
  2365. else
  2366. { echo "$as_me:$LINENO: result: no" >&5
  2367. echo "${ECHO_T}no" >&6; }
  2368. fi
  2369. fi
  2370. if test -z "$CC"; then
  2371. if test -n "$ac_tool_prefix"; then
  2372. for ac_prog in cl.exe
  2373. do
  2374. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2375. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2376. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2377. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2378. if test "${ac_cv_prog_CC+set}" = set; then
  2379. echo $ECHO_N "(cached) $ECHO_C" >&6
  2380. else
  2381. if test -n "$CC"; then
  2382. ac_cv_prog_CC="$CC" # Let the user override the test.
  2383. else
  2384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2385. for as_dir in $PATH
  2386. do
  2387. IFS=$as_save_IFS
  2388. test -z "$as_dir" && as_dir=.
  2389. for ac_exec_ext in '' $ac_executable_extensions; do
  2390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2391. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2392. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2393. break 2
  2394. fi
  2395. done
  2396. done
  2397. IFS=$as_save_IFS
  2398. fi
  2399. fi
  2400. CC=$ac_cv_prog_CC
  2401. if test -n "$CC"; then
  2402. { echo "$as_me:$LINENO: result: $CC" >&5
  2403. echo "${ECHO_T}$CC" >&6; }
  2404. else
  2405. { echo "$as_me:$LINENO: result: no" >&5
  2406. echo "${ECHO_T}no" >&6; }
  2407. fi
  2408. test -n "$CC" && break
  2409. done
  2410. fi
  2411. if test -z "$CC"; then
  2412. ac_ct_CC=$CC
  2413. for ac_prog in cl.exe
  2414. do
  2415. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2416. set dummy $ac_prog; ac_word=$2
  2417. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2418. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2419. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2420. echo $ECHO_N "(cached) $ECHO_C" >&6
  2421. else
  2422. if test -n "$ac_ct_CC"; then
  2423. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2424. else
  2425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2426. for as_dir in $PATH
  2427. do
  2428. IFS=$as_save_IFS
  2429. test -z "$as_dir" && as_dir=.
  2430. for ac_exec_ext in '' $ac_executable_extensions; do
  2431. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2432. ac_cv_prog_ac_ct_CC="$ac_prog"
  2433. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2434. break 2
  2435. fi
  2436. done
  2437. done
  2438. IFS=$as_save_IFS
  2439. fi
  2440. fi
  2441. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2442. if test -n "$ac_ct_CC"; then
  2443. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2444. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2445. else
  2446. { echo "$as_me:$LINENO: result: no" >&5
  2447. echo "${ECHO_T}no" >&6; }
  2448. fi
  2449. test -n "$ac_ct_CC" && break
  2450. done
  2451. if test "x$ac_ct_CC" = x; then
  2452. CC=""
  2453. else
  2454. case $cross_compiling:$ac_tool_warned in
  2455. yes:)
  2456. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2457. whose name does not start with the host triplet. If you think this
  2458. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2459. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2460. whose name does not start with the host triplet. If you think this
  2461. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2462. ac_tool_warned=yes ;;
  2463. esac
  2464. CC=$ac_ct_CC
  2465. fi
  2466. fi
  2467. fi
  2468. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2469. See \`config.log' for more details." >&5
  2470. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2471. See \`config.log' for more details." >&2;}
  2472. { (exit 1); exit 1; }; }
  2473. # Provide some information about the compiler.
  2474. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2475. ac_compiler=`set X $ac_compile; echo $2`
  2476. { (ac_try="$ac_compiler --version >&5"
  2477. case "(($ac_try" in
  2478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2479. *) ac_try_echo=$ac_try;;
  2480. esac
  2481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2482. (eval "$ac_compiler --version >&5") 2>&5
  2483. ac_status=$?
  2484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2485. (exit $ac_status); }
  2486. { (ac_try="$ac_compiler -v >&5"
  2487. case "(($ac_try" in
  2488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2489. *) ac_try_echo=$ac_try;;
  2490. esac
  2491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2492. (eval "$ac_compiler -v >&5") 2>&5
  2493. ac_status=$?
  2494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2495. (exit $ac_status); }
  2496. { (ac_try="$ac_compiler -V >&5"
  2497. case "(($ac_try" in
  2498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2499. *) ac_try_echo=$ac_try;;
  2500. esac
  2501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2502. (eval "$ac_compiler -V >&5") 2>&5
  2503. ac_status=$?
  2504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2505. (exit $ac_status); }
  2506. cat >conftest.$ac_ext <<_ACEOF
  2507. /* confdefs.h. */
  2508. _ACEOF
  2509. cat confdefs.h >>conftest.$ac_ext
  2510. cat >>conftest.$ac_ext <<_ACEOF
  2511. /* end confdefs.h. */
  2512. int
  2513. main ()
  2514. {
  2515. ;
  2516. return 0;
  2517. }
  2518. _ACEOF
  2519. ac_clean_files_save=$ac_clean_files
  2520. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2521. # Try to create an executable without -o first, disregard a.out.
  2522. # It will help us diagnose broken compilers, and finding out an intuition
  2523. # of exeext.
  2524. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2525. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2526. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2527. #
  2528. # List of possible output files, starting from the most likely.
  2529. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2530. # only as a last resort. b.out is created by i960 compilers.
  2531. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2532. #
  2533. # The IRIX 6 linker writes into existing files which may not be
  2534. # executable, retaining their permissions. Remove them first so a
  2535. # subsequent execution test works.
  2536. ac_rmfiles=
  2537. for ac_file in $ac_files
  2538. do
  2539. case $ac_file in
  2540. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2541. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2542. esac
  2543. done
  2544. rm -f $ac_rmfiles
  2545. if { (ac_try="$ac_link_default"
  2546. case "(($ac_try" in
  2547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2548. *) ac_try_echo=$ac_try;;
  2549. esac
  2550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2551. (eval "$ac_link_default") 2>&5
  2552. ac_status=$?
  2553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2554. (exit $ac_status); }; then
  2555. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2556. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2557. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2558. # so that the user can short-circuit this test for compilers unknown to
  2559. # Autoconf.
  2560. for ac_file in $ac_files ''
  2561. do
  2562. test -f "$ac_file" || continue
  2563. case $ac_file in
  2564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2565. ;;
  2566. [ab].out )
  2567. # We found the default executable, but exeext='' is most
  2568. # certainly right.
  2569. break;;
  2570. *.* )
  2571. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2572. then :; else
  2573. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2574. fi
  2575. # We set ac_cv_exeext here because the later test for it is not
  2576. # safe: cross compilers may not add the suffix if given an `-o'
  2577. # argument, so we may need to know it at that point already.
  2578. # Even if this section looks crufty: it has the advantage of
  2579. # actually working.
  2580. break;;
  2581. * )
  2582. break;;
  2583. esac
  2584. done
  2585. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2586. else
  2587. ac_file=''
  2588. fi
  2589. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2590. echo "${ECHO_T}$ac_file" >&6; }
  2591. if test -z "$ac_file"; then
  2592. echo "$as_me: failed program was:" >&5
  2593. sed 's/^/| /' conftest.$ac_ext >&5
  2594. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2595. See \`config.log' for more details." >&5
  2596. echo "$as_me: error: C compiler cannot create executables
  2597. See \`config.log' for more details." >&2;}
  2598. { (exit 77); exit 77; }; }
  2599. fi
  2600. ac_exeext=$ac_cv_exeext
  2601. # Check that the compiler produces executables we can run. If not, either
  2602. # the compiler is broken, or we cross compile.
  2603. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2604. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2605. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2606. # If not cross compiling, check that we can run a simple program.
  2607. if test "$cross_compiling" != yes; then
  2608. if { ac_try='./$ac_file'
  2609. { (case "(($ac_try" in
  2610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2611. *) ac_try_echo=$ac_try;;
  2612. esac
  2613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2614. (eval "$ac_try") 2>&5
  2615. ac_status=$?
  2616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2617. (exit $ac_status); }; }; then
  2618. cross_compiling=no
  2619. else
  2620. if test "$cross_compiling" = maybe; then
  2621. cross_compiling=yes
  2622. else
  2623. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2624. If you meant to cross compile, use \`--host'.
  2625. See \`config.log' for more details." >&5
  2626. echo "$as_me: error: cannot run C compiled programs.
  2627. If you meant to cross compile, use \`--host'.
  2628. See \`config.log' for more details." >&2;}
  2629. { (exit 1); exit 1; }; }
  2630. fi
  2631. fi
  2632. fi
  2633. { echo "$as_me:$LINENO: result: yes" >&5
  2634. echo "${ECHO_T}yes" >&6; }
  2635. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2636. ac_clean_files=$ac_clean_files_save
  2637. # Check that the compiler produces executables we can run. If not, either
  2638. # the compiler is broken, or we cross compile.
  2639. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2640. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2641. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2642. echo "${ECHO_T}$cross_compiling" >&6; }
  2643. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2644. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2645. if { (ac_try="$ac_link"
  2646. case "(($ac_try" in
  2647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2648. *) ac_try_echo=$ac_try;;
  2649. esac
  2650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2651. (eval "$ac_link") 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; then
  2655. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2656. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2657. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2658. # `rm'.
  2659. for ac_file in conftest.exe conftest conftest.*; do
  2660. test -f "$ac_file" || continue
  2661. case $ac_file in
  2662. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2663. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2664. break;;
  2665. * ) break;;
  2666. esac
  2667. done
  2668. else
  2669. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2670. See \`config.log' for more details." >&5
  2671. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2672. See \`config.log' for more details." >&2;}
  2673. { (exit 1); exit 1; }; }
  2674. fi
  2675. rm -f conftest$ac_cv_exeext
  2676. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2677. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2678. rm -f conftest.$ac_ext
  2679. EXEEXT=$ac_cv_exeext
  2680. ac_exeext=$EXEEXT
  2681. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2682. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2683. if test "${ac_cv_objext+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. cat >conftest.$ac_ext <<_ACEOF
  2687. /* confdefs.h. */
  2688. _ACEOF
  2689. cat confdefs.h >>conftest.$ac_ext
  2690. cat >>conftest.$ac_ext <<_ACEOF
  2691. /* end confdefs.h. */
  2692. int
  2693. main ()
  2694. {
  2695. ;
  2696. return 0;
  2697. }
  2698. _ACEOF
  2699. rm -f conftest.o conftest.obj
  2700. if { (ac_try="$ac_compile"
  2701. case "(($ac_try" in
  2702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2703. *) ac_try_echo=$ac_try;;
  2704. esac
  2705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2706. (eval "$ac_compile") 2>&5
  2707. ac_status=$?
  2708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2709. (exit $ac_status); }; then
  2710. for ac_file in conftest.o conftest.obj conftest.*; do
  2711. test -f "$ac_file" || continue;
  2712. case $ac_file in
  2713. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2714. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2715. break;;
  2716. esac
  2717. done
  2718. else
  2719. echo "$as_me: failed program was:" >&5
  2720. sed 's/^/| /' conftest.$ac_ext >&5
  2721. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2722. See \`config.log' for more details." >&5
  2723. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2724. See \`config.log' for more details." >&2;}
  2725. { (exit 1); exit 1; }; }
  2726. fi
  2727. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2728. fi
  2729. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2730. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2731. OBJEXT=$ac_cv_objext
  2732. ac_objext=$OBJEXT
  2733. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2734. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2735. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2736. echo $ECHO_N "(cached) $ECHO_C" >&6
  2737. else
  2738. cat >conftest.$ac_ext <<_ACEOF
  2739. /* confdefs.h. */
  2740. _ACEOF
  2741. cat confdefs.h >>conftest.$ac_ext
  2742. cat >>conftest.$ac_ext <<_ACEOF
  2743. /* end confdefs.h. */
  2744. int
  2745. main ()
  2746. {
  2747. #ifndef __GNUC__
  2748. choke me
  2749. #endif
  2750. ;
  2751. return 0;
  2752. }
  2753. _ACEOF
  2754. rm -f conftest.$ac_objext
  2755. if { (ac_try="$ac_compile"
  2756. case "(($ac_try" in
  2757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2758. *) ac_try_echo=$ac_try;;
  2759. esac
  2760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2761. (eval "$ac_compile") 2>conftest.er1
  2762. ac_status=$?
  2763. grep -v '^ *+' conftest.er1 >conftest.err
  2764. rm -f conftest.er1
  2765. cat conftest.err >&5
  2766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2767. (exit $ac_status); } && {
  2768. test -z "$ac_c_werror_flag" ||
  2769. test ! -s conftest.err
  2770. } && test -s conftest.$ac_objext; then
  2771. ac_compiler_gnu=yes
  2772. else
  2773. echo "$as_me: failed program was:" >&5
  2774. sed 's/^/| /' conftest.$ac_ext >&5
  2775. ac_compiler_gnu=no
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2778. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2779. fi
  2780. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2781. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2782. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2783. ac_test_CFLAGS=${CFLAGS+set}
  2784. ac_save_CFLAGS=$CFLAGS
  2785. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2786. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2787. if test "${ac_cv_prog_cc_g+set}" = set; then
  2788. echo $ECHO_N "(cached) $ECHO_C" >&6
  2789. else
  2790. ac_save_c_werror_flag=$ac_c_werror_flag
  2791. ac_c_werror_flag=yes
  2792. ac_cv_prog_cc_g=no
  2793. CFLAGS="-g"
  2794. cat >conftest.$ac_ext <<_ACEOF
  2795. /* confdefs.h. */
  2796. _ACEOF
  2797. cat confdefs.h >>conftest.$ac_ext
  2798. cat >>conftest.$ac_ext <<_ACEOF
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. rm -f conftest.$ac_objext
  2808. if { (ac_try="$ac_compile"
  2809. case "(($ac_try" in
  2810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2811. *) ac_try_echo=$ac_try;;
  2812. esac
  2813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2814. (eval "$ac_compile") 2>conftest.er1
  2815. ac_status=$?
  2816. grep -v '^ *+' conftest.er1 >conftest.err
  2817. rm -f conftest.er1
  2818. cat conftest.err >&5
  2819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); } && {
  2821. test -z "$ac_c_werror_flag" ||
  2822. test ! -s conftest.err
  2823. } && test -s conftest.$ac_objext; then
  2824. ac_cv_prog_cc_g=yes
  2825. else
  2826. echo "$as_me: failed program was:" >&5
  2827. sed 's/^/| /' conftest.$ac_ext >&5
  2828. CFLAGS=""
  2829. cat >conftest.$ac_ext <<_ACEOF
  2830. /* confdefs.h. */
  2831. _ACEOF
  2832. cat confdefs.h >>conftest.$ac_ext
  2833. cat >>conftest.$ac_ext <<_ACEOF
  2834. /* end confdefs.h. */
  2835. int
  2836. main ()
  2837. {
  2838. ;
  2839. return 0;
  2840. }
  2841. _ACEOF
  2842. rm -f conftest.$ac_objext
  2843. if { (ac_try="$ac_compile"
  2844. case "(($ac_try" in
  2845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2846. *) ac_try_echo=$ac_try;;
  2847. esac
  2848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2849. (eval "$ac_compile") 2>conftest.er1
  2850. ac_status=$?
  2851. grep -v '^ *+' conftest.er1 >conftest.err
  2852. rm -f conftest.er1
  2853. cat conftest.err >&5
  2854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2855. (exit $ac_status); } && {
  2856. test -z "$ac_c_werror_flag" ||
  2857. test ! -s conftest.err
  2858. } && test -s conftest.$ac_objext; then
  2859. :
  2860. else
  2861. echo "$as_me: failed program was:" >&5
  2862. sed 's/^/| /' conftest.$ac_ext >&5
  2863. ac_c_werror_flag=$ac_save_c_werror_flag
  2864. CFLAGS="-g"
  2865. cat >conftest.$ac_ext <<_ACEOF
  2866. /* confdefs.h. */
  2867. _ACEOF
  2868. cat confdefs.h >>conftest.$ac_ext
  2869. cat >>conftest.$ac_ext <<_ACEOF
  2870. /* end confdefs.h. */
  2871. int
  2872. main ()
  2873. {
  2874. ;
  2875. return 0;
  2876. }
  2877. _ACEOF
  2878. rm -f conftest.$ac_objext
  2879. if { (ac_try="$ac_compile"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2885. (eval "$ac_compile") 2>conftest.er1
  2886. ac_status=$?
  2887. grep -v '^ *+' conftest.er1 >conftest.err
  2888. rm -f conftest.er1
  2889. cat conftest.err >&5
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); } && {
  2892. test -z "$ac_c_werror_flag" ||
  2893. test ! -s conftest.err
  2894. } && test -s conftest.$ac_objext; then
  2895. ac_cv_prog_cc_g=yes
  2896. else
  2897. echo "$as_me: failed program was:" >&5
  2898. sed 's/^/| /' conftest.$ac_ext >&5
  2899. fi
  2900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  2906. fi
  2907. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2908. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2909. if test "$ac_test_CFLAGS" = set; then
  2910. CFLAGS=$ac_save_CFLAGS
  2911. elif test $ac_cv_prog_cc_g = yes; then
  2912. if test "$GCC" = yes; then
  2913. CFLAGS="-g -O2"
  2914. else
  2915. CFLAGS="-g"
  2916. fi
  2917. else
  2918. if test "$GCC" = yes; then
  2919. CFLAGS="-O2"
  2920. else
  2921. CFLAGS=
  2922. fi
  2923. fi
  2924. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2925. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2926. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2927. echo $ECHO_N "(cached) $ECHO_C" >&6
  2928. else
  2929. ac_cv_prog_cc_c89=no
  2930. ac_save_CC=$CC
  2931. cat >conftest.$ac_ext <<_ACEOF
  2932. /* confdefs.h. */
  2933. _ACEOF
  2934. cat confdefs.h >>conftest.$ac_ext
  2935. cat >>conftest.$ac_ext <<_ACEOF
  2936. /* end confdefs.h. */
  2937. #include <stdarg.h>
  2938. #include <stdio.h>
  2939. #include <sys/types.h>
  2940. #include <sys/stat.h>
  2941. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2942. struct buf { int x; };
  2943. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2944. static char *e (p, i)
  2945. char **p;
  2946. int i;
  2947. {
  2948. return p[i];
  2949. }
  2950. static char *f (char * (*g) (char **, int), char **p, ...)
  2951. {
  2952. char *s;
  2953. va_list v;
  2954. va_start (v,p);
  2955. s = g (p, va_arg (v,int));
  2956. va_end (v);
  2957. return s;
  2958. }
  2959. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2960. function prototypes and stuff, but not '\xHH' hex character constants.
  2961. These don't provoke an error unfortunately, instead are silently treated
  2962. as 'x'. The following induces an error, until -std is added to get
  2963. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2964. array size at least. It's necessary to write '\x00'==0 to get something
  2965. that's true only with -std. */
  2966. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2967. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2968. inside strings and character constants. */
  2969. #define FOO(x) 'x'
  2970. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2971. int test (int i, double x);
  2972. struct s1 {int (*f) (int a);};
  2973. struct s2 {int (*f) (double a);};
  2974. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2975. int argc;
  2976. char **argv;
  2977. int
  2978. main ()
  2979. {
  2980. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2981. ;
  2982. return 0;
  2983. }
  2984. _ACEOF
  2985. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2986. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2987. do
  2988. CC="$ac_save_CC $ac_arg"
  2989. rm -f conftest.$ac_objext
  2990. if { (ac_try="$ac_compile"
  2991. case "(($ac_try" in
  2992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2993. *) ac_try_echo=$ac_try;;
  2994. esac
  2995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2996. (eval "$ac_compile") 2>conftest.er1
  2997. ac_status=$?
  2998. grep -v '^ *+' conftest.er1 >conftest.err
  2999. rm -f conftest.er1
  3000. cat conftest.err >&5
  3001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3002. (exit $ac_status); } && {
  3003. test -z "$ac_c_werror_flag" ||
  3004. test ! -s conftest.err
  3005. } && test -s conftest.$ac_objext; then
  3006. ac_cv_prog_cc_c89=$ac_arg
  3007. else
  3008. echo "$as_me: failed program was:" >&5
  3009. sed 's/^/| /' conftest.$ac_ext >&5
  3010. fi
  3011. rm -f core conftest.err conftest.$ac_objext
  3012. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3013. done
  3014. rm -f conftest.$ac_ext
  3015. CC=$ac_save_CC
  3016. fi
  3017. # AC_CACHE_VAL
  3018. case "x$ac_cv_prog_cc_c89" in
  3019. x)
  3020. { echo "$as_me:$LINENO: result: none needed" >&5
  3021. echo "${ECHO_T}none needed" >&6; } ;;
  3022. xno)
  3023. { echo "$as_me:$LINENO: result: unsupported" >&5
  3024. echo "${ECHO_T}unsupported" >&6; } ;;
  3025. *)
  3026. CC="$CC $ac_cv_prog_cc_c89"
  3027. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3028. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3029. esac
  3030. ac_ext=c
  3031. ac_cpp='$CPP $CPPFLAGS'
  3032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3035. DEPDIR="${am__leading_dot}deps"
  3036. ac_config_commands="$ac_config_commands depfiles"
  3037. am_make=${MAKE-make}
  3038. cat > confinc << 'END'
  3039. am__doit:
  3040. @echo done
  3041. .PHONY: am__doit
  3042. END
  3043. # If we don't find an include directive, just comment out the code.
  3044. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3045. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3046. am__include="#"
  3047. am__quote=
  3048. _am_result=none
  3049. # First try GNU make style include.
  3050. echo "include confinc" > confmf
  3051. # We grep out `Entering directory' and `Leaving directory'
  3052. # messages which can occur if `w' ends up in MAKEFLAGS.
  3053. # In particular we don't look at `^make:' because GNU make might
  3054. # be invoked under some other name (usually "gmake"), in which
  3055. # case it prints its new name instead of `make'.
  3056. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3057. am__include=include
  3058. am__quote=
  3059. _am_result=GNU
  3060. fi
  3061. # Now try BSD make style include.
  3062. if test "$am__include" = "#"; then
  3063. echo '.include "confinc"' > confmf
  3064. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3065. am__include=.include
  3066. am__quote="\""
  3067. _am_result=BSD
  3068. fi
  3069. fi
  3070. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3071. echo "${ECHO_T}$_am_result" >&6; }
  3072. rm -f confinc confmf
  3073. # Check whether --enable-dependency-tracking was given.
  3074. if test "${enable_dependency_tracking+set}" = set; then
  3075. enableval=$enable_dependency_tracking;
  3076. fi
  3077. if test "x$enable_dependency_tracking" != xno; then
  3078. am_depcomp="$ac_aux_dir/depcomp"
  3079. AMDEPBACKSLASH='\'
  3080. fi
  3081. if test "x$enable_dependency_tracking" != xno; then
  3082. AMDEP_TRUE=
  3083. AMDEP_FALSE='#'
  3084. else
  3085. AMDEP_TRUE='#'
  3086. AMDEP_FALSE=
  3087. fi
  3088. depcc="$CC" am_compiler_list=
  3089. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3090. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3091. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3092. echo $ECHO_N "(cached) $ECHO_C" >&6
  3093. else
  3094. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3095. # We make a subdir and do the tests there. Otherwise we can end up
  3096. # making bogus files that we don't know about and never remove. For
  3097. # instance it was reported that on HP-UX the gcc test will end up
  3098. # making a dummy file named `D' -- because `-MD' means `put the output
  3099. # in D'.
  3100. mkdir conftest.dir
  3101. # Copy depcomp to subdir because otherwise we won't find it if we're
  3102. # using a relative directory.
  3103. cp "$am_depcomp" conftest.dir
  3104. cd conftest.dir
  3105. # We will build objects and dependencies in a subdirectory because
  3106. # it helps to detect inapplicable dependency modes. For instance
  3107. # both Tru64's cc and ICC support -MD to output dependencies as a
  3108. # side effect of compilation, but ICC will put the dependencies in
  3109. # the current directory while Tru64 will put them in the object
  3110. # directory.
  3111. mkdir sub
  3112. am_cv_CC_dependencies_compiler_type=none
  3113. if test "$am_compiler_list" = ""; then
  3114. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3115. fi
  3116. for depmode in $am_compiler_list; do
  3117. # Setup a source with many dependencies, because some compilers
  3118. # like to wrap large dependency lists on column 80 (with \), and
  3119. # we should not choose a depcomp mode which is confused by this.
  3120. #
  3121. # We need to recreate these files for each test, as the compiler may
  3122. # overwrite some of them when testing with obscure command lines.
  3123. # This happens at least with the AIX C compiler.
  3124. : > sub/conftest.c
  3125. for i in 1 2 3 4 5 6; do
  3126. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3127. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3128. # Solaris 8's {/usr,}/bin/sh.
  3129. touch sub/conftst$i.h
  3130. done
  3131. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3132. case $depmode in
  3133. nosideeffect)
  3134. # after this tag, mechanisms are not by side-effect, so they'll
  3135. # only be used when explicitly requested
  3136. if test "x$enable_dependency_tracking" = xyes; then
  3137. continue
  3138. else
  3139. break
  3140. fi
  3141. ;;
  3142. none) break ;;
  3143. esac
  3144. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3145. # mode. It turns out that the SunPro C++ compiler does not properly
  3146. # handle `-M -o', and we need to detect this.
  3147. if depmode=$depmode \
  3148. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3149. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3150. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3151. >/dev/null 2>conftest.err &&
  3152. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3153. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3154. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3155. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3156. # icc doesn't choke on unknown options, it will just issue warnings
  3157. # or remarks (even with -Werror). So we grep stderr for any message
  3158. # that says an option was ignored or not supported.
  3159. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3160. # icc: Command line warning: ignoring option '-M'; no argument required
  3161. # The diagnosis changed in icc 8.0:
  3162. # icc: Command line remark: option '-MP' not supported
  3163. if (grep 'ignoring option' conftest.err ||
  3164. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3165. am_cv_CC_dependencies_compiler_type=$depmode
  3166. break
  3167. fi
  3168. fi
  3169. done
  3170. cd ..
  3171. rm -rf conftest.dir
  3172. else
  3173. am_cv_CC_dependencies_compiler_type=none
  3174. fi
  3175. fi
  3176. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3177. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3178. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3179. if
  3180. test "x$enable_dependency_tracking" != xno \
  3181. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3182. am__fastdepCC_TRUE=
  3183. am__fastdepCC_FALSE='#'
  3184. else
  3185. am__fastdepCC_TRUE='#'
  3186. am__fastdepCC_FALSE=
  3187. fi
  3188. # Find a good install program. We prefer a C program (faster),
  3189. # so one script is as good as another. But avoid the broken or
  3190. # incompatible versions:
  3191. # SysV /etc/install, /usr/sbin/install
  3192. # SunOS /usr/etc/install
  3193. # IRIX /sbin/install
  3194. # AIX /bin/install
  3195. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3196. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3197. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3198. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3199. # OS/2's system install, which has a completely different semantic
  3200. # ./install, which can be erroneously created by make from ./install.sh.
  3201. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3202. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3203. if test -z "$INSTALL"; then
  3204. if test "${ac_cv_path_install+set}" = set; then
  3205. echo $ECHO_N "(cached) $ECHO_C" >&6
  3206. else
  3207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3208. for as_dir in $PATH
  3209. do
  3210. IFS=$as_save_IFS
  3211. test -z "$as_dir" && as_dir=.
  3212. # Account for people who put trailing slashes in PATH elements.
  3213. case $as_dir/ in
  3214. ./ | .// | /cC/* | \
  3215. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3216. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3217. /usr/ucb/* ) ;;
  3218. *)
  3219. # OSF1 and SCO ODT 3.0 have their own names for install.
  3220. # Don't use installbsd from OSF since it installs stuff as root
  3221. # by default.
  3222. for ac_prog in ginstall scoinst install; do
  3223. for ac_exec_ext in '' $ac_executable_extensions; do
  3224. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3225. if test $ac_prog = install &&
  3226. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3227. # AIX install. It has an incompatible calling convention.
  3228. :
  3229. elif test $ac_prog = install &&
  3230. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3231. # program-specific install script used by HP pwplus--don't use.
  3232. :
  3233. else
  3234. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3235. break 3
  3236. fi
  3237. fi
  3238. done
  3239. done
  3240. ;;
  3241. esac
  3242. done
  3243. IFS=$as_save_IFS
  3244. fi
  3245. if test "${ac_cv_path_install+set}" = set; then
  3246. INSTALL=$ac_cv_path_install
  3247. else
  3248. # As a last resort, use the slow shell script. Don't cache a
  3249. # value for INSTALL within a source directory, because that will
  3250. # break other packages using the cache if that directory is
  3251. # removed, or if the value is a relative name.
  3252. INSTALL=$ac_install_sh
  3253. fi
  3254. fi
  3255. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3256. echo "${ECHO_T}$INSTALL" >&6; }
  3257. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3258. # It thinks the first close brace ends the variable substitution.
  3259. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3260. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3261. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3262. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3263. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3264. LN_S=$as_ln_s
  3265. if test "$LN_S" = "ln -s"; then
  3266. { echo "$as_me:$LINENO: result: yes" >&5
  3267. echo "${ECHO_T}yes" >&6; }
  3268. else
  3269. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3270. echo "${ECHO_T}no, using $LN_S" >&6; }
  3271. fi
  3272. # Check whether --enable-shared was given.
  3273. if test "${enable_shared+set}" = set; then
  3274. enableval=$enable_shared; p=${PACKAGE-default}
  3275. case $enableval in
  3276. yes) enable_shared=yes ;;
  3277. no) enable_shared=no ;;
  3278. *)
  3279. enable_shared=no
  3280. # Look at the argument we got. We use all the common list separators.
  3281. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3282. for pkg in $enableval; do
  3283. IFS="$lt_save_ifs"
  3284. if test "X$pkg" = "X$p"; then
  3285. enable_shared=yes
  3286. fi
  3287. done
  3288. IFS="$lt_save_ifs"
  3289. ;;
  3290. esac
  3291. else
  3292. enable_shared=yes
  3293. fi
  3294. # Check whether --enable-static was given.
  3295. if test "${enable_static+set}" = set; then
  3296. enableval=$enable_static; p=${PACKAGE-default}
  3297. case $enableval in
  3298. yes) enable_static=yes ;;
  3299. no) enable_static=no ;;
  3300. *)
  3301. enable_static=no
  3302. # Look at the argument we got. We use all the common list separators.
  3303. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3304. for pkg in $enableval; do
  3305. IFS="$lt_save_ifs"
  3306. if test "X$pkg" = "X$p"; then
  3307. enable_static=yes
  3308. fi
  3309. done
  3310. IFS="$lt_save_ifs"
  3311. ;;
  3312. esac
  3313. else
  3314. enable_static=yes
  3315. fi
  3316. # Check whether --enable-fast-install was given.
  3317. if test "${enable_fast_install+set}" = set; then
  3318. enableval=$enable_fast_install; p=${PACKAGE-default}
  3319. case $enableval in
  3320. yes) enable_fast_install=yes ;;
  3321. no) enable_fast_install=no ;;
  3322. *)
  3323. enable_fast_install=no
  3324. # Look at the argument we got. We use all the common list separators.
  3325. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3326. for pkg in $enableval; do
  3327. IFS="$lt_save_ifs"
  3328. if test "X$pkg" = "X$p"; then
  3329. enable_fast_install=yes
  3330. fi
  3331. done
  3332. IFS="$lt_save_ifs"
  3333. ;;
  3334. esac
  3335. else
  3336. enable_fast_install=yes
  3337. fi
  3338. # Make sure we can run config.sub.
  3339. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3340. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3341. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3342. { (exit 1); exit 1; }; }
  3343. { echo "$as_me:$LINENO: checking build system type" >&5
  3344. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3345. if test "${ac_cv_build+set}" = set; then
  3346. echo $ECHO_N "(cached) $ECHO_C" >&6
  3347. else
  3348. ac_build_alias=$build_alias
  3349. test "x$ac_build_alias" = x &&
  3350. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3351. test "x$ac_build_alias" = x &&
  3352. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3353. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3354. { (exit 1); exit 1; }; }
  3355. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3356. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3357. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3358. { (exit 1); exit 1; }; }
  3359. fi
  3360. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3361. echo "${ECHO_T}$ac_cv_build" >&6; }
  3362. case $ac_cv_build in
  3363. *-*-*) ;;
  3364. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3365. echo "$as_me: error: invalid value of canonical build" >&2;}
  3366. { (exit 1); exit 1; }; };;
  3367. esac
  3368. build=$ac_cv_build
  3369. ac_save_IFS=$IFS; IFS='-'
  3370. set x $ac_cv_build
  3371. shift
  3372. build_cpu=$1
  3373. build_vendor=$2
  3374. shift; shift
  3375. # Remember, the first character of IFS is used to create $*,
  3376. # except with old shells:
  3377. build_os=$*
  3378. IFS=$ac_save_IFS
  3379. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3380. { echo "$as_me:$LINENO: checking host system type" >&5
  3381. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3382. if test "${ac_cv_host+set}" = set; then
  3383. echo $ECHO_N "(cached) $ECHO_C" >&6
  3384. else
  3385. if test "x$host_alias" = x; then
  3386. ac_cv_host=$ac_cv_build
  3387. else
  3388. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3389. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3390. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3391. { (exit 1); exit 1; }; }
  3392. fi
  3393. fi
  3394. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3395. echo "${ECHO_T}$ac_cv_host" >&6; }
  3396. case $ac_cv_host in
  3397. *-*-*) ;;
  3398. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3399. echo "$as_me: error: invalid value of canonical host" >&2;}
  3400. { (exit 1); exit 1; }; };;
  3401. esac
  3402. host=$ac_cv_host
  3403. ac_save_IFS=$IFS; IFS='-'
  3404. set x $ac_cv_host
  3405. shift
  3406. host_cpu=$1
  3407. host_vendor=$2
  3408. shift; shift
  3409. # Remember, the first character of IFS is used to create $*,
  3410. # except with old shells:
  3411. host_os=$*
  3412. IFS=$ac_save_IFS
  3413. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3414. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3415. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3416. if test "${lt_cv_path_SED+set}" = set; then
  3417. echo $ECHO_N "(cached) $ECHO_C" >&6
  3418. else
  3419. # Loop through the user's path and test for sed and gsed.
  3420. # Then use that list of sed's as ones to test for truncation.
  3421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3422. for as_dir in $PATH
  3423. do
  3424. IFS=$as_save_IFS
  3425. test -z "$as_dir" && as_dir=.
  3426. for lt_ac_prog in sed gsed; do
  3427. for ac_exec_ext in '' $ac_executable_extensions; do
  3428. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3429. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3430. fi
  3431. done
  3432. done
  3433. done
  3434. lt_ac_max=0
  3435. lt_ac_count=0
  3436. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3437. # along with /bin/sed that truncates output.
  3438. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3439. test ! -f $lt_ac_sed && continue
  3440. cat /dev/null > conftest.in
  3441. lt_ac_count=0
  3442. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3443. # Check for GNU sed and select it if it is found.
  3444. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3445. lt_cv_path_SED=$lt_ac_sed
  3446. break
  3447. fi
  3448. while true; do
  3449. cat conftest.in conftest.in >conftest.tmp
  3450. mv conftest.tmp conftest.in
  3451. cp conftest.in conftest.nl
  3452. echo >>conftest.nl
  3453. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3454. cmp -s conftest.out conftest.nl || break
  3455. # 10000 chars as input seems more than enough
  3456. test $lt_ac_count -gt 10 && break
  3457. lt_ac_count=`expr $lt_ac_count + 1`
  3458. if test $lt_ac_count -gt $lt_ac_max; then
  3459. lt_ac_max=$lt_ac_count
  3460. lt_cv_path_SED=$lt_ac_sed
  3461. fi
  3462. done
  3463. done
  3464. fi
  3465. SED=$lt_cv_path_SED
  3466. { echo "$as_me:$LINENO: result: $SED" >&5
  3467. echo "${ECHO_T}$SED" >&6; }
  3468. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3469. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3470. if test "${ac_cv_path_GREP+set}" = set; then
  3471. echo $ECHO_N "(cached) $ECHO_C" >&6
  3472. else
  3473. # Extract the first word of "grep ggrep" to use in msg output
  3474. if test -z "$GREP"; then
  3475. set dummy grep ggrep; ac_prog_name=$2
  3476. if test "${ac_cv_path_GREP+set}" = set; then
  3477. echo $ECHO_N "(cached) $ECHO_C" >&6
  3478. else
  3479. ac_path_GREP_found=false
  3480. # Loop through the user's path and test for each of PROGNAME-LIST
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3483. do
  3484. IFS=$as_save_IFS
  3485. test -z "$as_dir" && as_dir=.
  3486. for ac_prog in grep ggrep; do
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3489. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3490. # Check for GNU ac_path_GREP and select it if it is found.
  3491. # Check for GNU $ac_path_GREP
  3492. case `"$ac_path_GREP" --version 2>&1` in
  3493. *GNU*)
  3494. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3495. *)
  3496. ac_count=0
  3497. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3498. while :
  3499. do
  3500. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3501. mv "conftest.tmp" "conftest.in"
  3502. cp "conftest.in" "conftest.nl"
  3503. echo 'GREP' >> "conftest.nl"
  3504. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3505. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3506. ac_count=`expr $ac_count + 1`
  3507. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3508. # Best one so far, save it but keep looking for a better one
  3509. ac_cv_path_GREP="$ac_path_GREP"
  3510. ac_path_GREP_max=$ac_count
  3511. fi
  3512. # 10*(2^10) chars as input seems more than enough
  3513. test $ac_count -gt 10 && break
  3514. done
  3515. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3516. esac
  3517. $ac_path_GREP_found && break 3
  3518. done
  3519. done
  3520. done
  3521. IFS=$as_save_IFS
  3522. fi
  3523. GREP="$ac_cv_path_GREP"
  3524. if test -z "$GREP"; then
  3525. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3526. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3527. { (exit 1); exit 1; }; }
  3528. fi
  3529. else
  3530. ac_cv_path_GREP=$GREP
  3531. fi
  3532. fi
  3533. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3534. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3535. GREP="$ac_cv_path_GREP"
  3536. { echo "$as_me:$LINENO: checking for egrep" >&5
  3537. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3538. if test "${ac_cv_path_EGREP+set}" = set; then
  3539. echo $ECHO_N "(cached) $ECHO_C" >&6
  3540. else
  3541. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3542. then ac_cv_path_EGREP="$GREP -E"
  3543. else
  3544. # Extract the first word of "egrep" to use in msg output
  3545. if test -z "$EGREP"; then
  3546. set dummy egrep; ac_prog_name=$2
  3547. if test "${ac_cv_path_EGREP+set}" = set; then
  3548. echo $ECHO_N "(cached) $ECHO_C" >&6
  3549. else
  3550. ac_path_EGREP_found=false
  3551. # Loop through the user's path and test for each of PROGNAME-LIST
  3552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3553. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3554. do
  3555. IFS=$as_save_IFS
  3556. test -z "$as_dir" && as_dir=.
  3557. for ac_prog in egrep; do
  3558. for ac_exec_ext in '' $ac_executable_extensions; do
  3559. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3560. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3561. # Check for GNU ac_path_EGREP and select it if it is found.
  3562. # Check for GNU $ac_path_EGREP
  3563. case `"$ac_path_EGREP" --version 2>&1` in
  3564. *GNU*)
  3565. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3566. *)
  3567. ac_count=0
  3568. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3569. while :
  3570. do
  3571. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3572. mv "conftest.tmp" "conftest.in"
  3573. cp "conftest.in" "conftest.nl"
  3574. echo 'EGREP' >> "conftest.nl"
  3575. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3576. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3577. ac_count=`expr $ac_count + 1`
  3578. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3579. # Best one so far, save it but keep looking for a better one
  3580. ac_cv_path_EGREP="$ac_path_EGREP"
  3581. ac_path_EGREP_max=$ac_count
  3582. fi
  3583. # 10*(2^10) chars as input seems more than enough
  3584. test $ac_count -gt 10 && break
  3585. done
  3586. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3587. esac
  3588. $ac_path_EGREP_found && break 3
  3589. done
  3590. done
  3591. done
  3592. IFS=$as_save_IFS
  3593. fi
  3594. EGREP="$ac_cv_path_EGREP"
  3595. if test -z "$EGREP"; then
  3596. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3597. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3598. { (exit 1); exit 1; }; }
  3599. fi
  3600. else
  3601. ac_cv_path_EGREP=$EGREP
  3602. fi
  3603. fi
  3604. fi
  3605. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3606. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3607. EGREP="$ac_cv_path_EGREP"
  3608. # Check whether --with-gnu-ld was given.
  3609. if test "${with_gnu_ld+set}" = set; then
  3610. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3611. else
  3612. with_gnu_ld=no
  3613. fi
  3614. ac_prog=ld
  3615. if test "$GCC" = yes; then
  3616. # Check if gcc -print-prog-name=ld gives a path.
  3617. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3618. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3619. case $host in
  3620. *-*-mingw*)
  3621. # gcc leaves a trailing carriage return which upsets mingw
  3622. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3623. *)
  3624. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3625. esac
  3626. case $ac_prog in
  3627. # Accept absolute paths.
  3628. [\\/]* | ?:[\\/]*)
  3629. re_direlt='/[^/][^/]*/\.\./'
  3630. # Canonicalize the pathname of ld
  3631. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3632. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3633. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3634. done
  3635. test -z "$LD" && LD="$ac_prog"
  3636. ;;
  3637. "")
  3638. # If it fails, then pretend we aren't using GCC.
  3639. ac_prog=ld
  3640. ;;
  3641. *)
  3642. # If it is relative, then search for the first ld in PATH.
  3643. with_gnu_ld=unknown
  3644. ;;
  3645. esac
  3646. elif test "$with_gnu_ld" = yes; then
  3647. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3648. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3649. else
  3650. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3651. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3652. fi
  3653. if test "${lt_cv_path_LD+set}" = set; then
  3654. echo $ECHO_N "(cached) $ECHO_C" >&6
  3655. else
  3656. if test -z "$LD"; then
  3657. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3658. for ac_dir in $PATH; do
  3659. IFS="$lt_save_ifs"
  3660. test -z "$ac_dir" && ac_dir=.
  3661. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3662. lt_cv_path_LD="$ac_dir/$ac_prog"
  3663. # Check to see if the program is GNU ld. I'd rather use --version,
  3664. # but apparently some GNU ld's only accept -v.
  3665. # Break only if it was the GNU/non-GNU ld that we prefer.
  3666. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3667. *GNU* | *'with BFD'*)
  3668. test "$with_gnu_ld" != no && break
  3669. ;;
  3670. *)
  3671. test "$with_gnu_ld" != yes && break
  3672. ;;
  3673. esac
  3674. fi
  3675. done
  3676. IFS="$lt_save_ifs"
  3677. else
  3678. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3679. fi
  3680. fi
  3681. LD="$lt_cv_path_LD"
  3682. if test -n "$LD"; then
  3683. { echo "$as_me:$LINENO: result: $LD" >&5
  3684. echo "${ECHO_T}$LD" >&6; }
  3685. else
  3686. { echo "$as_me:$LINENO: result: no" >&5
  3687. echo "${ECHO_T}no" >&6; }
  3688. fi
  3689. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3690. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3691. { (exit 1); exit 1; }; }
  3692. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3693. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3694. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3695. echo $ECHO_N "(cached) $ECHO_C" >&6
  3696. else
  3697. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3698. case `$LD -v 2>&1 </dev/null` in
  3699. *GNU* | *'with BFD'*)
  3700. lt_cv_prog_gnu_ld=yes
  3701. ;;
  3702. *)
  3703. lt_cv_prog_gnu_ld=no
  3704. ;;
  3705. esac
  3706. fi
  3707. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3708. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3709. with_gnu_ld=$lt_cv_prog_gnu_ld
  3710. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3711. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3712. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3713. echo $ECHO_N "(cached) $ECHO_C" >&6
  3714. else
  3715. lt_cv_ld_reload_flag='-r'
  3716. fi
  3717. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3718. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3719. reload_flag=$lt_cv_ld_reload_flag
  3720. case $reload_flag in
  3721. "" | " "*) ;;
  3722. *) reload_flag=" $reload_flag" ;;
  3723. esac
  3724. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3725. case $host_os in
  3726. darwin*)
  3727. if test "$GCC" = yes; then
  3728. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  3729. else
  3730. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3731. fi
  3732. ;;
  3733. esac
  3734. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3735. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3736. if test "${lt_cv_path_NM+set}" = set; then
  3737. echo $ECHO_N "(cached) $ECHO_C" >&6
  3738. else
  3739. if test -n "$NM"; then
  3740. # Let the user override the test.
  3741. lt_cv_path_NM="$NM"
  3742. else
  3743. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3744. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3745. IFS="$lt_save_ifs"
  3746. test -z "$ac_dir" && ac_dir=.
  3747. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3748. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3749. # Check to see if the nm accepts a BSD-compat flag.
  3750. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3751. # nm: unknown option "B" ignored
  3752. # Tru64's nm complains that /dev/null is an invalid object file
  3753. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3754. */dev/null* | *'Invalid file or object type'*)
  3755. lt_cv_path_NM="$tmp_nm -B"
  3756. break
  3757. ;;
  3758. *)
  3759. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3760. */dev/null*)
  3761. lt_cv_path_NM="$tmp_nm -p"
  3762. break
  3763. ;;
  3764. *)
  3765. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3766. continue # so that we can try to find one that supports BSD flags
  3767. ;;
  3768. esac
  3769. esac
  3770. fi
  3771. done
  3772. IFS="$lt_save_ifs"
  3773. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3774. fi
  3775. fi
  3776. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3777. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3778. NM="$lt_cv_path_NM"
  3779. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3780. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3781. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3782. echo $ECHO_N "(cached) $ECHO_C" >&6
  3783. else
  3784. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3785. lt_cv_file_magic_test_file=
  3786. lt_cv_deplibs_check_method='unknown'
  3787. # Need to set the preceding variable on all platforms that support
  3788. # interlibrary dependencies.
  3789. # 'none' -- dependencies not supported.
  3790. # `unknown' -- same as none, but documents that we really don't know.
  3791. # 'pass_all' -- all dependencies passed with no checks.
  3792. # 'test_compile' -- check by making test program.
  3793. # 'file_magic [[regex]]' -- check by looking for files in library path
  3794. # which responds to the $file_magic_cmd with a given extended regex.
  3795. # If you have `file' or equivalent on your system and you're not sure
  3796. # whether `pass_all' will *always* work, you probably want this one.
  3797. case $host_os in
  3798. aix4* | aix5*)
  3799. lt_cv_deplibs_check_method=pass_all
  3800. ;;
  3801. beos*)
  3802. lt_cv_deplibs_check_method=pass_all
  3803. ;;
  3804. bsdi[45]*)
  3805. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3806. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3807. lt_cv_file_magic_test_file=/shlib/libc.so
  3808. ;;
  3809. cygwin*)
  3810. # func_win32_libid is a shell function defined in ltmain.sh
  3811. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3812. lt_cv_file_magic_cmd='func_win32_libid'
  3813. ;;
  3814. mingw* | pw32*)
  3815. # Base MSYS/MinGW do not provide the 'file' command needed by
  3816. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3817. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3818. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3819. ;;
  3820. darwin* | rhapsody*)
  3821. lt_cv_deplibs_check_method=pass_all
  3822. ;;
  3823. freebsd* | kfreebsd*-gnu | dragonfly*)
  3824. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3825. case $host_cpu in
  3826. i*86 )
  3827. # Not sure whether the presence of OpenBSD here was a mistake.
  3828. # Let's accept both of them until this is cleared up.
  3829. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3830. lt_cv_file_magic_cmd=/usr/bin/file
  3831. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3832. ;;
  3833. esac
  3834. else
  3835. lt_cv_deplibs_check_method=pass_all
  3836. fi
  3837. ;;
  3838. gnu*)
  3839. lt_cv_deplibs_check_method=pass_all
  3840. ;;
  3841. hpux10.20* | hpux11*)
  3842. lt_cv_file_magic_cmd=/usr/bin/file
  3843. case "$host_cpu" in
  3844. ia64*)
  3845. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3846. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3847. ;;
  3848. hppa*64*)
  3849. 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]'
  3850. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3851. ;;
  3852. *)
  3853. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3854. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3855. ;;
  3856. esac
  3857. ;;
  3858. irix5* | irix6* | nonstopux*)
  3859. case $LD in
  3860. *-32|*"-32 ") libmagic=32-bit;;
  3861. *-n32|*"-n32 ") libmagic=N32;;
  3862. *-64|*"-64 ") libmagic=64-bit;;
  3863. *) libmagic=never-match;;
  3864. esac
  3865. lt_cv_deplibs_check_method=pass_all
  3866. ;;
  3867. # This must be Linux ELF.
  3868. linux*)
  3869. lt_cv_deplibs_check_method=pass_all
  3870. ;;
  3871. netbsd*)
  3872. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3873. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3874. else
  3875. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3876. fi
  3877. ;;
  3878. newos6*)
  3879. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3880. lt_cv_file_magic_cmd=/usr/bin/file
  3881. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3882. ;;
  3883. nto-qnx*)
  3884. lt_cv_deplibs_check_method=unknown
  3885. ;;
  3886. openbsd*)
  3887. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3888. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3889. else
  3890. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3891. fi
  3892. ;;
  3893. osf3* | osf4* | osf5*)
  3894. lt_cv_deplibs_check_method=pass_all
  3895. ;;
  3896. sco3.2v5*)
  3897. lt_cv_deplibs_check_method=pass_all
  3898. ;;
  3899. solaris*)
  3900. lt_cv_deplibs_check_method=pass_all
  3901. ;;
  3902. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3903. case $host_vendor in
  3904. motorola)
  3905. 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]'
  3906. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3907. ;;
  3908. ncr)
  3909. lt_cv_deplibs_check_method=pass_all
  3910. ;;
  3911. sequent)
  3912. lt_cv_file_magic_cmd='/bin/file'
  3913. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3914. ;;
  3915. sni)
  3916. lt_cv_file_magic_cmd='/bin/file'
  3917. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3918. lt_cv_file_magic_test_file=/lib/libc.so
  3919. ;;
  3920. siemens)
  3921. lt_cv_deplibs_check_method=pass_all
  3922. ;;
  3923. esac
  3924. ;;
  3925. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  3926. lt_cv_deplibs_check_method=pass_all
  3927. ;;
  3928. esac
  3929. fi
  3930. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3931. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  3932. file_magic_cmd=$lt_cv_file_magic_cmd
  3933. deplibs_check_method=$lt_cv_deplibs_check_method
  3934. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3935. # If no C compiler was specified, use CC.
  3936. LTCC=${LTCC-"$CC"}
  3937. # Allow CC to be a program name with arguments.
  3938. compiler=$CC
  3939. # Check whether --enable-libtool-lock was given.
  3940. if test "${enable_libtool_lock+set}" = set; then
  3941. enableval=$enable_libtool_lock;
  3942. fi
  3943. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3944. # Some flags need to be propagated to the compiler or linker for good
  3945. # libtool support.
  3946. case $host in
  3947. ia64-*-hpux*)
  3948. # Find out which ABI we are using.
  3949. echo 'int i;' > conftest.$ac_ext
  3950. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3951. (eval $ac_compile) 2>&5
  3952. ac_status=$?
  3953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3954. (exit $ac_status); }; then
  3955. case `/usr/bin/file conftest.$ac_objext` in
  3956. *ELF-32*)
  3957. HPUX_IA64_MODE="32"
  3958. ;;
  3959. *ELF-64*)
  3960. HPUX_IA64_MODE="64"
  3961. ;;
  3962. esac
  3963. fi
  3964. rm -rf conftest*
  3965. ;;
  3966. *-*-irix6*)
  3967. # Find out which ABI we are using.
  3968. echo '#line 4475 "configure"' > conftest.$ac_ext
  3969. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3970. (eval $ac_compile) 2>&5
  3971. ac_status=$?
  3972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3973. (exit $ac_status); }; then
  3974. if test "$lt_cv_prog_gnu_ld" = yes; then
  3975. case `/usr/bin/file conftest.$ac_objext` in
  3976. *32-bit*)
  3977. LD="${LD-ld} -melf32bsmip"
  3978. ;;
  3979. *N32*)
  3980. LD="${LD-ld} -melf32bmipn32"
  3981. ;;
  3982. *64-bit*)
  3983. LD="${LD-ld} -melf64bmip"
  3984. ;;
  3985. esac
  3986. else
  3987. case `/usr/bin/file conftest.$ac_objext` in
  3988. *32-bit*)
  3989. LD="${LD-ld} -32"
  3990. ;;
  3991. *N32*)
  3992. LD="${LD-ld} -n32"
  3993. ;;
  3994. *64-bit*)
  3995. LD="${LD-ld} -64"
  3996. ;;
  3997. esac
  3998. fi
  3999. fi
  4000. rm -rf conftest*
  4001. ;;
  4002. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4003. # Find out which ABI we are using.
  4004. echo 'int i;' > conftest.$ac_ext
  4005. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4006. (eval $ac_compile) 2>&5
  4007. ac_status=$?
  4008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4009. (exit $ac_status); }; then
  4010. case "`/usr/bin/file conftest.o`" in
  4011. *32-bit*)
  4012. case $host in
  4013. x86_64-*linux*)
  4014. LD="${LD-ld} -m elf_i386"
  4015. ;;
  4016. ppc64-*linux*|powerpc64-*linux*)
  4017. LD="${LD-ld} -m elf32ppclinux"
  4018. ;;
  4019. s390x-*linux*)
  4020. LD="${LD-ld} -m elf_s390"
  4021. ;;
  4022. sparc64-*linux*)
  4023. LD="${LD-ld} -m elf32_sparc"
  4024. ;;
  4025. esac
  4026. ;;
  4027. *64-bit*)
  4028. case $host in
  4029. x86_64-*linux*)
  4030. LD="${LD-ld} -m elf_x86_64"
  4031. ;;
  4032. ppc*-*linux*|powerpc*-*linux*)
  4033. LD="${LD-ld} -m elf64ppc"
  4034. ;;
  4035. s390*-*linux*)
  4036. LD="${LD-ld} -m elf64_s390"
  4037. ;;
  4038. sparc*-*linux*)
  4039. LD="${LD-ld} -m elf64_sparc"
  4040. ;;
  4041. esac
  4042. ;;
  4043. esac
  4044. fi
  4045. rm -rf conftest*
  4046. ;;
  4047. *-*-sco3.2v5*)
  4048. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4049. SAVE_CFLAGS="$CFLAGS"
  4050. CFLAGS="$CFLAGS -belf"
  4051. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4052. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4053. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4054. echo $ECHO_N "(cached) $ECHO_C" >&6
  4055. else
  4056. ac_ext=c
  4057. ac_cpp='$CPP $CPPFLAGS'
  4058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4061. cat >conftest.$ac_ext <<_ACEOF
  4062. /* confdefs.h. */
  4063. _ACEOF
  4064. cat confdefs.h >>conftest.$ac_ext
  4065. cat >>conftest.$ac_ext <<_ACEOF
  4066. /* end confdefs.h. */
  4067. int
  4068. main ()
  4069. {
  4070. ;
  4071. return 0;
  4072. }
  4073. _ACEOF
  4074. rm -f conftest.$ac_objext conftest$ac_exeext
  4075. if { (ac_try="$ac_link"
  4076. case "(($ac_try" in
  4077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4078. *) ac_try_echo=$ac_try;;
  4079. esac
  4080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4081. (eval "$ac_link") 2>conftest.er1
  4082. ac_status=$?
  4083. grep -v '^ *+' conftest.er1 >conftest.err
  4084. rm -f conftest.er1
  4085. cat conftest.err >&5
  4086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4087. (exit $ac_status); } && {
  4088. test -z "$ac_c_werror_flag" ||
  4089. test ! -s conftest.err
  4090. } && test -s conftest$ac_exeext &&
  4091. $as_test_x conftest$ac_exeext; then
  4092. lt_cv_cc_needs_belf=yes
  4093. else
  4094. echo "$as_me: failed program was:" >&5
  4095. sed 's/^/| /' conftest.$ac_ext >&5
  4096. lt_cv_cc_needs_belf=no
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4099. conftest$ac_exeext conftest.$ac_ext
  4100. ac_ext=c
  4101. ac_cpp='$CPP $CPPFLAGS'
  4102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4105. fi
  4106. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4107. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4108. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4109. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4110. CFLAGS="$SAVE_CFLAGS"
  4111. fi
  4112. ;;
  4113. esac
  4114. need_locks="$enable_libtool_lock"
  4115. ac_ext=c
  4116. ac_cpp='$CPP $CPPFLAGS'
  4117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4120. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4121. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4122. # On Suns, sometimes $CPP names a directory.
  4123. if test -n "$CPP" && test -d "$CPP"; then
  4124. CPP=
  4125. fi
  4126. if test -z "$CPP"; then
  4127. if test "${ac_cv_prog_CPP+set}" = set; then
  4128. echo $ECHO_N "(cached) $ECHO_C" >&6
  4129. else
  4130. # Double quotes because CPP needs to be expanded
  4131. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4132. do
  4133. ac_preproc_ok=false
  4134. for ac_c_preproc_warn_flag in '' yes
  4135. do
  4136. # Use a header file that comes with gcc, so configuring glibc
  4137. # with a fresh cross-compiler works.
  4138. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4139. # <limits.h> exists even on freestanding compilers.
  4140. # On the NeXT, cc -E runs the code through the compiler's parser,
  4141. # not just through cpp. "Syntax error" is here to catch this case.
  4142. cat >conftest.$ac_ext <<_ACEOF
  4143. /* confdefs.h. */
  4144. _ACEOF
  4145. cat confdefs.h >>conftest.$ac_ext
  4146. cat >>conftest.$ac_ext <<_ACEOF
  4147. /* end confdefs.h. */
  4148. #ifdef __STDC__
  4149. # include <limits.h>
  4150. #else
  4151. # include <assert.h>
  4152. #endif
  4153. Syntax error
  4154. _ACEOF
  4155. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4156. case "(($ac_try" in
  4157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4158. *) ac_try_echo=$ac_try;;
  4159. esac
  4160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4161. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4162. ac_status=$?
  4163. grep -v '^ *+' conftest.er1 >conftest.err
  4164. rm -f conftest.er1
  4165. cat conftest.err >&5
  4166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4167. (exit $ac_status); } >/dev/null && {
  4168. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4169. test ! -s conftest.err
  4170. }; then
  4171. :
  4172. else
  4173. echo "$as_me: failed program was:" >&5
  4174. sed 's/^/| /' conftest.$ac_ext >&5
  4175. # Broken: fails on valid input.
  4176. continue
  4177. fi
  4178. rm -f conftest.err conftest.$ac_ext
  4179. # OK, works on sane cases. Now check whether nonexistent headers
  4180. # can be detected and how.
  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. #include <ac_nonexistent.h>
  4188. _ACEOF
  4189. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4190. case "(($ac_try" in
  4191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4192. *) ac_try_echo=$ac_try;;
  4193. esac
  4194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4195. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4196. ac_status=$?
  4197. grep -v '^ *+' conftest.er1 >conftest.err
  4198. rm -f conftest.er1
  4199. cat conftest.err >&5
  4200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4201. (exit $ac_status); } >/dev/null && {
  4202. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4203. test ! -s conftest.err
  4204. }; then
  4205. # Broken: success on invalid input.
  4206. continue
  4207. else
  4208. echo "$as_me: failed program was:" >&5
  4209. sed 's/^/| /' conftest.$ac_ext >&5
  4210. # Passes both tests.
  4211. ac_preproc_ok=:
  4212. break
  4213. fi
  4214. rm -f conftest.err conftest.$ac_ext
  4215. done
  4216. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4217. rm -f conftest.err conftest.$ac_ext
  4218. if $ac_preproc_ok; then
  4219. break
  4220. fi
  4221. done
  4222. ac_cv_prog_CPP=$CPP
  4223. fi
  4224. CPP=$ac_cv_prog_CPP
  4225. else
  4226. ac_cv_prog_CPP=$CPP
  4227. fi
  4228. { echo "$as_me:$LINENO: result: $CPP" >&5
  4229. echo "${ECHO_T}$CPP" >&6; }
  4230. ac_preproc_ok=false
  4231. for ac_c_preproc_warn_flag in '' yes
  4232. do
  4233. # Use a header file that comes with gcc, so configuring glibc
  4234. # with a fresh cross-compiler works.
  4235. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4236. # <limits.h> exists even on freestanding compilers.
  4237. # On the NeXT, cc -E runs the code through the compiler's parser,
  4238. # not just through cpp. "Syntax error" is here to catch this case.
  4239. cat >conftest.$ac_ext <<_ACEOF
  4240. /* confdefs.h. */
  4241. _ACEOF
  4242. cat confdefs.h >>conftest.$ac_ext
  4243. cat >>conftest.$ac_ext <<_ACEOF
  4244. /* end confdefs.h. */
  4245. #ifdef __STDC__
  4246. # include <limits.h>
  4247. #else
  4248. # include <assert.h>
  4249. #endif
  4250. Syntax error
  4251. _ACEOF
  4252. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4253. case "(($ac_try" in
  4254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4255. *) ac_try_echo=$ac_try;;
  4256. esac
  4257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4258. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4259. ac_status=$?
  4260. grep -v '^ *+' conftest.er1 >conftest.err
  4261. rm -f conftest.er1
  4262. cat conftest.err >&5
  4263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4264. (exit $ac_status); } >/dev/null && {
  4265. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4266. test ! -s conftest.err
  4267. }; then
  4268. :
  4269. else
  4270. echo "$as_me: failed program was:" >&5
  4271. sed 's/^/| /' conftest.$ac_ext >&5
  4272. # Broken: fails on valid input.
  4273. continue
  4274. fi
  4275. rm -f conftest.err conftest.$ac_ext
  4276. # OK, works on sane cases. Now check whether nonexistent headers
  4277. # can be detected and how.
  4278. cat >conftest.$ac_ext <<_ACEOF
  4279. /* confdefs.h. */
  4280. _ACEOF
  4281. cat confdefs.h >>conftest.$ac_ext
  4282. cat >>conftest.$ac_ext <<_ACEOF
  4283. /* end confdefs.h. */
  4284. #include <ac_nonexistent.h>
  4285. _ACEOF
  4286. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4287. case "(($ac_try" in
  4288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4289. *) ac_try_echo=$ac_try;;
  4290. esac
  4291. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4292. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4293. ac_status=$?
  4294. grep -v '^ *+' conftest.er1 >conftest.err
  4295. rm -f conftest.er1
  4296. cat conftest.err >&5
  4297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4298. (exit $ac_status); } >/dev/null && {
  4299. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4300. test ! -s conftest.err
  4301. }; then
  4302. # Broken: success on invalid input.
  4303. continue
  4304. else
  4305. echo "$as_me: failed program was:" >&5
  4306. sed 's/^/| /' conftest.$ac_ext >&5
  4307. # Passes both tests.
  4308. ac_preproc_ok=:
  4309. break
  4310. fi
  4311. rm -f conftest.err conftest.$ac_ext
  4312. done
  4313. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4314. rm -f conftest.err conftest.$ac_ext
  4315. if $ac_preproc_ok; then
  4316. :
  4317. else
  4318. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4319. See \`config.log' for more details." >&5
  4320. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4321. See \`config.log' for more details." >&2;}
  4322. { (exit 1); exit 1; }; }
  4323. fi
  4324. ac_ext=c
  4325. ac_cpp='$CPP $CPPFLAGS'
  4326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4329. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4330. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4331. if test "${ac_cv_header_stdc+set}" = set; then
  4332. echo $ECHO_N "(cached) $ECHO_C" >&6
  4333. else
  4334. cat >conftest.$ac_ext <<_ACEOF
  4335. /* confdefs.h. */
  4336. _ACEOF
  4337. cat confdefs.h >>conftest.$ac_ext
  4338. cat >>conftest.$ac_ext <<_ACEOF
  4339. /* end confdefs.h. */
  4340. #include <stdlib.h>
  4341. #include <stdarg.h>
  4342. #include <string.h>
  4343. #include <float.h>
  4344. int
  4345. main ()
  4346. {
  4347. ;
  4348. return 0;
  4349. }
  4350. _ACEOF
  4351. rm -f conftest.$ac_objext
  4352. if { (ac_try="$ac_compile"
  4353. case "(($ac_try" in
  4354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4355. *) ac_try_echo=$ac_try;;
  4356. esac
  4357. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4358. (eval "$ac_compile") 2>conftest.er1
  4359. ac_status=$?
  4360. grep -v '^ *+' conftest.er1 >conftest.err
  4361. rm -f conftest.er1
  4362. cat conftest.err >&5
  4363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4364. (exit $ac_status); } && {
  4365. test -z "$ac_c_werror_flag" ||
  4366. test ! -s conftest.err
  4367. } && test -s conftest.$ac_objext; then
  4368. ac_cv_header_stdc=yes
  4369. else
  4370. echo "$as_me: failed program was:" >&5
  4371. sed 's/^/| /' conftest.$ac_ext >&5
  4372. ac_cv_header_stdc=no
  4373. fi
  4374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4375. if test $ac_cv_header_stdc = yes; then
  4376. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4377. cat >conftest.$ac_ext <<_ACEOF
  4378. /* confdefs.h. */
  4379. _ACEOF
  4380. cat confdefs.h >>conftest.$ac_ext
  4381. cat >>conftest.$ac_ext <<_ACEOF
  4382. /* end confdefs.h. */
  4383. #include <string.h>
  4384. _ACEOF
  4385. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4386. $EGREP "memchr" >/dev/null 2>&1; then
  4387. :
  4388. else
  4389. ac_cv_header_stdc=no
  4390. fi
  4391. rm -f conftest*
  4392. fi
  4393. if test $ac_cv_header_stdc = yes; then
  4394. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4395. cat >conftest.$ac_ext <<_ACEOF
  4396. /* confdefs.h. */
  4397. _ACEOF
  4398. cat confdefs.h >>conftest.$ac_ext
  4399. cat >>conftest.$ac_ext <<_ACEOF
  4400. /* end confdefs.h. */
  4401. #include <stdlib.h>
  4402. _ACEOF
  4403. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4404. $EGREP "free" >/dev/null 2>&1; then
  4405. :
  4406. else
  4407. ac_cv_header_stdc=no
  4408. fi
  4409. rm -f conftest*
  4410. fi
  4411. if test $ac_cv_header_stdc = yes; then
  4412. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4413. if test "$cross_compiling" = yes; then
  4414. :
  4415. else
  4416. cat >conftest.$ac_ext <<_ACEOF
  4417. /* confdefs.h. */
  4418. _ACEOF
  4419. cat confdefs.h >>conftest.$ac_ext
  4420. cat >>conftest.$ac_ext <<_ACEOF
  4421. /* end confdefs.h. */
  4422. #include <ctype.h>
  4423. #include <stdlib.h>
  4424. #if ((' ' & 0x0FF) == 0x020)
  4425. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4426. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4427. #else
  4428. # define ISLOWER(c) \
  4429. (('a' <= (c) && (c) <= 'i') \
  4430. || ('j' <= (c) && (c) <= 'r') \
  4431. || ('s' <= (c) && (c) <= 'z'))
  4432. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4433. #endif
  4434. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4435. int
  4436. main ()
  4437. {
  4438. int i;
  4439. for (i = 0; i < 256; i++)
  4440. if (XOR (islower (i), ISLOWER (i))
  4441. || toupper (i) != TOUPPER (i))
  4442. return 2;
  4443. return 0;
  4444. }
  4445. _ACEOF
  4446. rm -f conftest$ac_exeext
  4447. if { (ac_try="$ac_link"
  4448. case "(($ac_try" in
  4449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4450. *) ac_try_echo=$ac_try;;
  4451. esac
  4452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4453. (eval "$ac_link") 2>&5
  4454. ac_status=$?
  4455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4456. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4457. { (case "(($ac_try" in
  4458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4459. *) ac_try_echo=$ac_try;;
  4460. esac
  4461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4462. (eval "$ac_try") 2>&5
  4463. ac_status=$?
  4464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4465. (exit $ac_status); }; }; then
  4466. :
  4467. else
  4468. echo "$as_me: program exited with status $ac_status" >&5
  4469. echo "$as_me: failed program was:" >&5
  4470. sed 's/^/| /' conftest.$ac_ext >&5
  4471. ( exit $ac_status )
  4472. ac_cv_header_stdc=no
  4473. fi
  4474. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4475. fi
  4476. fi
  4477. fi
  4478. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4479. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4480. if test $ac_cv_header_stdc = yes; then
  4481. cat >>confdefs.h <<\_ACEOF
  4482. #define STDC_HEADERS 1
  4483. _ACEOF
  4484. fi
  4485. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4486. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4487. inttypes.h stdint.h unistd.h
  4488. do
  4489. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4490. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4491. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4492. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4493. echo $ECHO_N "(cached) $ECHO_C" >&6
  4494. else
  4495. cat >conftest.$ac_ext <<_ACEOF
  4496. /* confdefs.h. */
  4497. _ACEOF
  4498. cat confdefs.h >>conftest.$ac_ext
  4499. cat >>conftest.$ac_ext <<_ACEOF
  4500. /* end confdefs.h. */
  4501. $ac_includes_default
  4502. #include <$ac_header>
  4503. _ACEOF
  4504. rm -f conftest.$ac_objext
  4505. if { (ac_try="$ac_compile"
  4506. case "(($ac_try" in
  4507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4508. *) ac_try_echo=$ac_try;;
  4509. esac
  4510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4511. (eval "$ac_compile") 2>conftest.er1
  4512. ac_status=$?
  4513. grep -v '^ *+' conftest.er1 >conftest.err
  4514. rm -f conftest.er1
  4515. cat conftest.err >&5
  4516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517. (exit $ac_status); } && {
  4518. test -z "$ac_c_werror_flag" ||
  4519. test ! -s conftest.err
  4520. } && test -s conftest.$ac_objext; then
  4521. eval "$as_ac_Header=yes"
  4522. else
  4523. echo "$as_me: failed program was:" >&5
  4524. sed 's/^/| /' conftest.$ac_ext >&5
  4525. eval "$as_ac_Header=no"
  4526. fi
  4527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4528. fi
  4529. ac_res=`eval echo '${'$as_ac_Header'}'`
  4530. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4531. echo "${ECHO_T}$ac_res" >&6; }
  4532. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4533. cat >>confdefs.h <<_ACEOF
  4534. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4535. _ACEOF
  4536. fi
  4537. done
  4538. for ac_header in dlfcn.h
  4539. do
  4540. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4541. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4542. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4543. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4544. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4545. echo $ECHO_N "(cached) $ECHO_C" >&6
  4546. fi
  4547. ac_res=`eval echo '${'$as_ac_Header'}'`
  4548. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4549. echo "${ECHO_T}$ac_res" >&6; }
  4550. else
  4551. # Is the header compilable?
  4552. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4553. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4554. cat >conftest.$ac_ext <<_ACEOF
  4555. /* confdefs.h. */
  4556. _ACEOF
  4557. cat confdefs.h >>conftest.$ac_ext
  4558. cat >>conftest.$ac_ext <<_ACEOF
  4559. /* end confdefs.h. */
  4560. $ac_includes_default
  4561. #include <$ac_header>
  4562. _ACEOF
  4563. rm -f conftest.$ac_objext
  4564. if { (ac_try="$ac_compile"
  4565. case "(($ac_try" in
  4566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4567. *) ac_try_echo=$ac_try;;
  4568. esac
  4569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4570. (eval "$ac_compile") 2>conftest.er1
  4571. ac_status=$?
  4572. grep -v '^ *+' conftest.er1 >conftest.err
  4573. rm -f conftest.er1
  4574. cat conftest.err >&5
  4575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); } && {
  4577. test -z "$ac_c_werror_flag" ||
  4578. test ! -s conftest.err
  4579. } && test -s conftest.$ac_objext; then
  4580. ac_header_compiler=yes
  4581. else
  4582. echo "$as_me: failed program was:" >&5
  4583. sed 's/^/| /' conftest.$ac_ext >&5
  4584. ac_header_compiler=no
  4585. fi
  4586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4587. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4588. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4589. # Is the header present?
  4590. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4591. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4592. cat >conftest.$ac_ext <<_ACEOF
  4593. /* confdefs.h. */
  4594. _ACEOF
  4595. cat confdefs.h >>conftest.$ac_ext
  4596. cat >>conftest.$ac_ext <<_ACEOF
  4597. /* end confdefs.h. */
  4598. #include <$ac_header>
  4599. _ACEOF
  4600. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4601. case "(($ac_try" in
  4602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4603. *) ac_try_echo=$ac_try;;
  4604. esac
  4605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4606. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4607. ac_status=$?
  4608. grep -v '^ *+' conftest.er1 >conftest.err
  4609. rm -f conftest.er1
  4610. cat conftest.err >&5
  4611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4612. (exit $ac_status); } >/dev/null && {
  4613. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4614. test ! -s conftest.err
  4615. }; then
  4616. ac_header_preproc=yes
  4617. else
  4618. echo "$as_me: failed program was:" >&5
  4619. sed 's/^/| /' conftest.$ac_ext >&5
  4620. ac_header_preproc=no
  4621. fi
  4622. rm -f conftest.err conftest.$ac_ext
  4623. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4624. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4625. # So? What about this header?
  4626. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4627. yes:no: )
  4628. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4629. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4630. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4631. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4632. ac_header_preproc=yes
  4633. ;;
  4634. no:yes:* )
  4635. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4636. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4637. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4638. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4639. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4640. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4641. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4642. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4643. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4644. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4645. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4646. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4647. ( cat <<\_ASBOX
  4648. ## ---------------------------------- ##
  4649. ## Report this to christos@astron.com ##
  4650. ## ---------------------------------- ##
  4651. _ASBOX
  4652. ) | sed "s/^/$as_me: WARNING: /" >&2
  4653. ;;
  4654. esac
  4655. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4657. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4658. echo $ECHO_N "(cached) $ECHO_C" >&6
  4659. else
  4660. eval "$as_ac_Header=\$ac_header_preproc"
  4661. fi
  4662. ac_res=`eval echo '${'$as_ac_Header'}'`
  4663. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4664. echo "${ECHO_T}$ac_res" >&6; }
  4665. fi
  4666. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4667. cat >>confdefs.h <<_ACEOF
  4668. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4669. _ACEOF
  4670. fi
  4671. done
  4672. ac_ext=cpp
  4673. ac_cpp='$CXXCPP $CPPFLAGS'
  4674. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4675. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4676. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4677. if test -z "$CXX"; then
  4678. if test -n "$CCC"; then
  4679. CXX=$CCC
  4680. else
  4681. if test -n "$ac_tool_prefix"; then
  4682. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4683. do
  4684. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4685. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4686. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4687. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4688. if test "${ac_cv_prog_CXX+set}" = set; then
  4689. echo $ECHO_N "(cached) $ECHO_C" >&6
  4690. else
  4691. if test -n "$CXX"; then
  4692. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. test -z "$as_dir" && as_dir=.
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4701. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4702. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703. break 2
  4704. fi
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. fi
  4709. fi
  4710. CXX=$ac_cv_prog_CXX
  4711. if test -n "$CXX"; then
  4712. { echo "$as_me:$LINENO: result: $CXX" >&5
  4713. echo "${ECHO_T}$CXX" >&6; }
  4714. else
  4715. { echo "$as_me:$LINENO: result: no" >&5
  4716. echo "${ECHO_T}no" >&6; }
  4717. fi
  4718. test -n "$CXX" && break
  4719. done
  4720. fi
  4721. if test -z "$CXX"; then
  4722. ac_ct_CXX=$CXX
  4723. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4724. do
  4725. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4726. set dummy $ac_prog; ac_word=$2
  4727. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4728. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4729. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4730. echo $ECHO_N "(cached) $ECHO_C" >&6
  4731. else
  4732. if test -n "$ac_ct_CXX"; then
  4733. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4734. else
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_exec_ext in '' $ac_executable_extensions; do
  4741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4742. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4743. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4744. break 2
  4745. fi
  4746. done
  4747. done
  4748. IFS=$as_save_IFS
  4749. fi
  4750. fi
  4751. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4752. if test -n "$ac_ct_CXX"; then
  4753. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4754. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4755. else
  4756. { echo "$as_me:$LINENO: result: no" >&5
  4757. echo "${ECHO_T}no" >&6; }
  4758. fi
  4759. test -n "$ac_ct_CXX" && break
  4760. done
  4761. if test "x$ac_ct_CXX" = x; then
  4762. CXX="g++"
  4763. else
  4764. case $cross_compiling:$ac_tool_warned in
  4765. yes:)
  4766. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4767. whose name does not start with the host triplet. If you think this
  4768. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4769. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4770. whose name does not start with the host triplet. If you think this
  4771. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4772. ac_tool_warned=yes ;;
  4773. esac
  4774. CXX=$ac_ct_CXX
  4775. fi
  4776. fi
  4777. fi
  4778. fi
  4779. # Provide some information about the compiler.
  4780. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4781. ac_compiler=`set X $ac_compile; echo $2`
  4782. { (ac_try="$ac_compiler --version >&5"
  4783. case "(($ac_try" in
  4784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4785. *) ac_try_echo=$ac_try;;
  4786. esac
  4787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4788. (eval "$ac_compiler --version >&5") 2>&5
  4789. ac_status=$?
  4790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4791. (exit $ac_status); }
  4792. { (ac_try="$ac_compiler -v >&5"
  4793. case "(($ac_try" in
  4794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4795. *) ac_try_echo=$ac_try;;
  4796. esac
  4797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4798. (eval "$ac_compiler -v >&5") 2>&5
  4799. ac_status=$?
  4800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4801. (exit $ac_status); }
  4802. { (ac_try="$ac_compiler -V >&5"
  4803. case "(($ac_try" in
  4804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4805. *) ac_try_echo=$ac_try;;
  4806. esac
  4807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4808. (eval "$ac_compiler -V >&5") 2>&5
  4809. ac_status=$?
  4810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4811. (exit $ac_status); }
  4812. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4813. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4814. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4815. echo $ECHO_N "(cached) $ECHO_C" >&6
  4816. else
  4817. cat >conftest.$ac_ext <<_ACEOF
  4818. /* confdefs.h. */
  4819. _ACEOF
  4820. cat confdefs.h >>conftest.$ac_ext
  4821. cat >>conftest.$ac_ext <<_ACEOF
  4822. /* end confdefs.h. */
  4823. int
  4824. main ()
  4825. {
  4826. #ifndef __GNUC__
  4827. choke me
  4828. #endif
  4829. ;
  4830. return 0;
  4831. }
  4832. _ACEOF
  4833. rm -f conftest.$ac_objext
  4834. if { (ac_try="$ac_compile"
  4835. case "(($ac_try" in
  4836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4837. *) ac_try_echo=$ac_try;;
  4838. esac
  4839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4840. (eval "$ac_compile") 2>conftest.er1
  4841. ac_status=$?
  4842. grep -v '^ *+' conftest.er1 >conftest.err
  4843. rm -f conftest.er1
  4844. cat conftest.err >&5
  4845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4846. (exit $ac_status); } && {
  4847. test -z "$ac_cxx_werror_flag" ||
  4848. test ! -s conftest.err
  4849. } && test -s conftest.$ac_objext; then
  4850. ac_compiler_gnu=yes
  4851. else
  4852. echo "$as_me: failed program was:" >&5
  4853. sed 's/^/| /' conftest.$ac_ext >&5
  4854. ac_compiler_gnu=no
  4855. fi
  4856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4857. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4858. fi
  4859. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4860. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4861. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4862. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4863. ac_save_CXXFLAGS=$CXXFLAGS
  4864. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4865. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4866. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4867. echo $ECHO_N "(cached) $ECHO_C" >&6
  4868. else
  4869. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4870. ac_cxx_werror_flag=yes
  4871. ac_cv_prog_cxx_g=no
  4872. CXXFLAGS="-g"
  4873. cat >conftest.$ac_ext <<_ACEOF
  4874. /* confdefs.h. */
  4875. _ACEOF
  4876. cat confdefs.h >>conftest.$ac_ext
  4877. cat >>conftest.$ac_ext <<_ACEOF
  4878. /* end confdefs.h. */
  4879. int
  4880. main ()
  4881. {
  4882. ;
  4883. return 0;
  4884. }
  4885. _ACEOF
  4886. rm -f conftest.$ac_objext
  4887. if { (ac_try="$ac_compile"
  4888. case "(($ac_try" in
  4889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4890. *) ac_try_echo=$ac_try;;
  4891. esac
  4892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4893. (eval "$ac_compile") 2>conftest.er1
  4894. ac_status=$?
  4895. grep -v '^ *+' conftest.er1 >conftest.err
  4896. rm -f conftest.er1
  4897. cat conftest.err >&5
  4898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4899. (exit $ac_status); } && {
  4900. test -z "$ac_cxx_werror_flag" ||
  4901. test ! -s conftest.err
  4902. } && test -s conftest.$ac_objext; then
  4903. ac_cv_prog_cxx_g=yes
  4904. else
  4905. echo "$as_me: failed program was:" >&5
  4906. sed 's/^/| /' conftest.$ac_ext >&5
  4907. CXXFLAGS=""
  4908. cat >conftest.$ac_ext <<_ACEOF
  4909. /* confdefs.h. */
  4910. _ACEOF
  4911. cat confdefs.h >>conftest.$ac_ext
  4912. cat >>conftest.$ac_ext <<_ACEOF
  4913. /* end confdefs.h. */
  4914. int
  4915. main ()
  4916. {
  4917. ;
  4918. return 0;
  4919. }
  4920. _ACEOF
  4921. rm -f conftest.$ac_objext
  4922. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  4929. ac_status=$?
  4930. grep -v '^ *+' conftest.er1 >conftest.err
  4931. rm -f conftest.er1
  4932. cat conftest.err >&5
  4933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4934. (exit $ac_status); } && {
  4935. test -z "$ac_cxx_werror_flag" ||
  4936. test ! -s conftest.err
  4937. } && test -s conftest.$ac_objext; then
  4938. :
  4939. else
  4940. echo "$as_me: failed program was:" >&5
  4941. sed 's/^/| /' conftest.$ac_ext >&5
  4942. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4943. CXXFLAGS="-g"
  4944. cat >conftest.$ac_ext <<_ACEOF
  4945. /* confdefs.h. */
  4946. _ACEOF
  4947. cat confdefs.h >>conftest.$ac_ext
  4948. cat >>conftest.$ac_ext <<_ACEOF
  4949. /* end confdefs.h. */
  4950. int
  4951. main ()
  4952. {
  4953. ;
  4954. return 0;
  4955. }
  4956. _ACEOF
  4957. rm -f conftest.$ac_objext
  4958. if { (ac_try="$ac_compile"
  4959. case "(($ac_try" in
  4960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4961. *) ac_try_echo=$ac_try;;
  4962. esac
  4963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4964. (eval "$ac_compile") 2>conftest.er1
  4965. ac_status=$?
  4966. grep -v '^ *+' conftest.er1 >conftest.err
  4967. rm -f conftest.er1
  4968. cat conftest.err >&5
  4969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4970. (exit $ac_status); } && {
  4971. test -z "$ac_cxx_werror_flag" ||
  4972. test ! -s conftest.err
  4973. } && test -s conftest.$ac_objext; then
  4974. ac_cv_prog_cxx_g=yes
  4975. else
  4976. echo "$as_me: failed program was:" >&5
  4977. sed 's/^/| /' conftest.$ac_ext >&5
  4978. fi
  4979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4980. fi
  4981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4982. fi
  4983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4984. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4985. fi
  4986. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4987. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  4988. if test "$ac_test_CXXFLAGS" = set; then
  4989. CXXFLAGS=$ac_save_CXXFLAGS
  4990. elif test $ac_cv_prog_cxx_g = yes; then
  4991. if test "$GXX" = yes; then
  4992. CXXFLAGS="-g -O2"
  4993. else
  4994. CXXFLAGS="-g"
  4995. fi
  4996. else
  4997. if test "$GXX" = yes; then
  4998. CXXFLAGS="-O2"
  4999. else
  5000. CXXFLAGS=
  5001. fi
  5002. fi
  5003. ac_ext=cpp
  5004. ac_cpp='$CXXCPP $CPPFLAGS'
  5005. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5006. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5007. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5008. depcc="$CXX" am_compiler_list=
  5009. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5010. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5011. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5012. echo $ECHO_N "(cached) $ECHO_C" >&6
  5013. else
  5014. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5015. # We make a subdir and do the tests there. Otherwise we can end up
  5016. # making bogus files that we don't know about and never remove. For
  5017. # instance it was reported that on HP-UX the gcc test will end up
  5018. # making a dummy file named `D' -- because `-MD' means `put the output
  5019. # in D'.
  5020. mkdir conftest.dir
  5021. # Copy depcomp to subdir because otherwise we won't find it if we're
  5022. # using a relative directory.
  5023. cp "$am_depcomp" conftest.dir
  5024. cd conftest.dir
  5025. # We will build objects and dependencies in a subdirectory because
  5026. # it helps to detect inapplicable dependency modes. For instance
  5027. # both Tru64's cc and ICC support -MD to output dependencies as a
  5028. # side effect of compilation, but ICC will put the dependencies in
  5029. # the current directory while Tru64 will put them in the object
  5030. # directory.
  5031. mkdir sub
  5032. am_cv_CXX_dependencies_compiler_type=none
  5033. if test "$am_compiler_list" = ""; then
  5034. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5035. fi
  5036. for depmode in $am_compiler_list; do
  5037. # Setup a source with many dependencies, because some compilers
  5038. # like to wrap large dependency lists on column 80 (with \), and
  5039. # we should not choose a depcomp mode which is confused by this.
  5040. #
  5041. # We need to recreate these files for each test, as the compiler may
  5042. # overwrite some of them when testing with obscure command lines.
  5043. # This happens at least with the AIX C compiler.
  5044. : > sub/conftest.c
  5045. for i in 1 2 3 4 5 6; do
  5046. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5047. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5048. # Solaris 8's {/usr,}/bin/sh.
  5049. touch sub/conftst$i.h
  5050. done
  5051. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5052. case $depmode in
  5053. nosideeffect)
  5054. # after this tag, mechanisms are not by side-effect, so they'll
  5055. # only be used when explicitly requested
  5056. if test "x$enable_dependency_tracking" = xyes; then
  5057. continue
  5058. else
  5059. break
  5060. fi
  5061. ;;
  5062. none) break ;;
  5063. esac
  5064. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5065. # mode. It turns out that the SunPro C++ compiler does not properly
  5066. # handle `-M -o', and we need to detect this.
  5067. if depmode=$depmode \
  5068. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5069. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5070. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5071. >/dev/null 2>conftest.err &&
  5072. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5073. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5074. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5075. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5076. # icc doesn't choke on unknown options, it will just issue warnings
  5077. # or remarks (even with -Werror). So we grep stderr for any message
  5078. # that says an option was ignored or not supported.
  5079. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5080. # icc: Command line warning: ignoring option '-M'; no argument required
  5081. # The diagnosis changed in icc 8.0:
  5082. # icc: Command line remark: option '-MP' not supported
  5083. if (grep 'ignoring option' conftest.err ||
  5084. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5085. am_cv_CXX_dependencies_compiler_type=$depmode
  5086. break
  5087. fi
  5088. fi
  5089. done
  5090. cd ..
  5091. rm -rf conftest.dir
  5092. else
  5093. am_cv_CXX_dependencies_compiler_type=none
  5094. fi
  5095. fi
  5096. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5097. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5098. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5099. if
  5100. test "x$enable_dependency_tracking" != xno \
  5101. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5102. am__fastdepCXX_TRUE=
  5103. am__fastdepCXX_FALSE='#'
  5104. else
  5105. am__fastdepCXX_TRUE='#'
  5106. am__fastdepCXX_FALSE=
  5107. fi
  5108. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5109. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5110. (test "X$CXX" != "Xg++"))) ; then
  5111. ac_ext=cpp
  5112. ac_cpp='$CXXCPP $CPPFLAGS'
  5113. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5114. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5115. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5116. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5117. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5118. if test -z "$CXXCPP"; then
  5119. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5120. echo $ECHO_N "(cached) $ECHO_C" >&6
  5121. else
  5122. # Double quotes because CXXCPP needs to be expanded
  5123. for CXXCPP in "$CXX -E" "/lib/cpp"
  5124. do
  5125. ac_preproc_ok=false
  5126. for ac_cxx_preproc_warn_flag in '' yes
  5127. do
  5128. # Use a header file that comes with gcc, so configuring glibc
  5129. # with a fresh cross-compiler works.
  5130. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5131. # <limits.h> exists even on freestanding compilers.
  5132. # On the NeXT, cc -E runs the code through the compiler's parser,
  5133. # not just through cpp. "Syntax error" is here to catch this case.
  5134. cat >conftest.$ac_ext <<_ACEOF
  5135. /* confdefs.h. */
  5136. _ACEOF
  5137. cat confdefs.h >>conftest.$ac_ext
  5138. cat >>conftest.$ac_ext <<_ACEOF
  5139. /* end confdefs.h. */
  5140. #ifdef __STDC__
  5141. # include <limits.h>
  5142. #else
  5143. # include <assert.h>
  5144. #endif
  5145. Syntax error
  5146. _ACEOF
  5147. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5148. case "(($ac_try" in
  5149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5150. *) ac_try_echo=$ac_try;;
  5151. esac
  5152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5153. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5154. ac_status=$?
  5155. grep -v '^ *+' conftest.er1 >conftest.err
  5156. rm -f conftest.er1
  5157. cat conftest.err >&5
  5158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5159. (exit $ac_status); } >/dev/null && {
  5160. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5161. test ! -s conftest.err
  5162. }; then
  5163. :
  5164. else
  5165. echo "$as_me: failed program was:" >&5
  5166. sed 's/^/| /' conftest.$ac_ext >&5
  5167. # Broken: fails on valid input.
  5168. continue
  5169. fi
  5170. rm -f conftest.err conftest.$ac_ext
  5171. # OK, works on sane cases. Now check whether nonexistent headers
  5172. # can be detected and how.
  5173. cat >conftest.$ac_ext <<_ACEOF
  5174. /* confdefs.h. */
  5175. _ACEOF
  5176. cat confdefs.h >>conftest.$ac_ext
  5177. cat >>conftest.$ac_ext <<_ACEOF
  5178. /* end confdefs.h. */
  5179. #include <ac_nonexistent.h>
  5180. _ACEOF
  5181. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5182. case "(($ac_try" in
  5183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5184. *) ac_try_echo=$ac_try;;
  5185. esac
  5186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5187. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5188. ac_status=$?
  5189. grep -v '^ *+' conftest.er1 >conftest.err
  5190. rm -f conftest.er1
  5191. cat conftest.err >&5
  5192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5193. (exit $ac_status); } >/dev/null && {
  5194. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5195. test ! -s conftest.err
  5196. }; then
  5197. # Broken: success on invalid input.
  5198. continue
  5199. else
  5200. echo "$as_me: failed program was:" >&5
  5201. sed 's/^/| /' conftest.$ac_ext >&5
  5202. # Passes both tests.
  5203. ac_preproc_ok=:
  5204. break
  5205. fi
  5206. rm -f conftest.err conftest.$ac_ext
  5207. done
  5208. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5209. rm -f conftest.err conftest.$ac_ext
  5210. if $ac_preproc_ok; then
  5211. break
  5212. fi
  5213. done
  5214. ac_cv_prog_CXXCPP=$CXXCPP
  5215. fi
  5216. CXXCPP=$ac_cv_prog_CXXCPP
  5217. else
  5218. ac_cv_prog_CXXCPP=$CXXCPP
  5219. fi
  5220. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5221. echo "${ECHO_T}$CXXCPP" >&6; }
  5222. ac_preproc_ok=false
  5223. for ac_cxx_preproc_warn_flag in '' yes
  5224. do
  5225. # Use a header file that comes with gcc, so configuring glibc
  5226. # with a fresh cross-compiler works.
  5227. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5228. # <limits.h> exists even on freestanding compilers.
  5229. # On the NeXT, cc -E runs the code through the compiler's parser,
  5230. # not just through cpp. "Syntax error" is here to catch this case.
  5231. cat >conftest.$ac_ext <<_ACEOF
  5232. /* confdefs.h. */
  5233. _ACEOF
  5234. cat confdefs.h >>conftest.$ac_ext
  5235. cat >>conftest.$ac_ext <<_ACEOF
  5236. /* end confdefs.h. */
  5237. #ifdef __STDC__
  5238. # include <limits.h>
  5239. #else
  5240. # include <assert.h>
  5241. #endif
  5242. Syntax error
  5243. _ACEOF
  5244. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5245. case "(($ac_try" in
  5246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5247. *) ac_try_echo=$ac_try;;
  5248. esac
  5249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5250. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5251. ac_status=$?
  5252. grep -v '^ *+' conftest.er1 >conftest.err
  5253. rm -f conftest.er1
  5254. cat conftest.err >&5
  5255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5256. (exit $ac_status); } >/dev/null && {
  5257. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5258. test ! -s conftest.err
  5259. }; then
  5260. :
  5261. else
  5262. echo "$as_me: failed program was:" >&5
  5263. sed 's/^/| /' conftest.$ac_ext >&5
  5264. # Broken: fails on valid input.
  5265. continue
  5266. fi
  5267. rm -f conftest.err conftest.$ac_ext
  5268. # OK, works on sane cases. Now check whether nonexistent headers
  5269. # can be detected and how.
  5270. cat >conftest.$ac_ext <<_ACEOF
  5271. /* confdefs.h. */
  5272. _ACEOF
  5273. cat confdefs.h >>conftest.$ac_ext
  5274. cat >>conftest.$ac_ext <<_ACEOF
  5275. /* end confdefs.h. */
  5276. #include <ac_nonexistent.h>
  5277. _ACEOF
  5278. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5279. case "(($ac_try" in
  5280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5281. *) ac_try_echo=$ac_try;;
  5282. esac
  5283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5285. ac_status=$?
  5286. grep -v '^ *+' conftest.er1 >conftest.err
  5287. rm -f conftest.er1
  5288. cat conftest.err >&5
  5289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5290. (exit $ac_status); } >/dev/null && {
  5291. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5292. test ! -s conftest.err
  5293. }; then
  5294. # Broken: success on invalid input.
  5295. continue
  5296. else
  5297. echo "$as_me: failed program was:" >&5
  5298. sed 's/^/| /' conftest.$ac_ext >&5
  5299. # Passes both tests.
  5300. ac_preproc_ok=:
  5301. break
  5302. fi
  5303. rm -f conftest.err conftest.$ac_ext
  5304. done
  5305. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5306. rm -f conftest.err conftest.$ac_ext
  5307. if $ac_preproc_ok; then
  5308. :
  5309. else
  5310. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5311. See \`config.log' for more details." >&5
  5312. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5313. See \`config.log' for more details." >&2;}
  5314. { (exit 1); exit 1; }; }
  5315. fi
  5316. ac_ext=cpp
  5317. ac_cpp='$CXXCPP $CPPFLAGS'
  5318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5321. fi
  5322. ac_ext=f
  5323. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5324. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5325. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5326. if test -n "$ac_tool_prefix"; then
  5327. 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
  5328. do
  5329. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5330. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5331. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5332. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5333. if test "${ac_cv_prog_F77+set}" = set; then
  5334. echo $ECHO_N "(cached) $ECHO_C" >&6
  5335. else
  5336. if test -n "$F77"; then
  5337. ac_cv_prog_F77="$F77" # Let the user override the test.
  5338. else
  5339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5340. for as_dir in $PATH
  5341. do
  5342. IFS=$as_save_IFS
  5343. test -z "$as_dir" && as_dir=.
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5346. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5347. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5348. break 2
  5349. fi
  5350. done
  5351. done
  5352. IFS=$as_save_IFS
  5353. fi
  5354. fi
  5355. F77=$ac_cv_prog_F77
  5356. if test -n "$F77"; then
  5357. { echo "$as_me:$LINENO: result: $F77" >&5
  5358. echo "${ECHO_T}$F77" >&6; }
  5359. else
  5360. { echo "$as_me:$LINENO: result: no" >&5
  5361. echo "${ECHO_T}no" >&6; }
  5362. fi
  5363. test -n "$F77" && break
  5364. done
  5365. fi
  5366. if test -z "$F77"; then
  5367. ac_ct_F77=$F77
  5368. 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
  5369. do
  5370. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5371. set dummy $ac_prog; ac_word=$2
  5372. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5373. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5374. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5375. echo $ECHO_N "(cached) $ECHO_C" >&6
  5376. else
  5377. if test -n "$ac_ct_F77"; then
  5378. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5379. else
  5380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5381. for as_dir in $PATH
  5382. do
  5383. IFS=$as_save_IFS
  5384. test -z "$as_dir" && as_dir=.
  5385. for ac_exec_ext in '' $ac_executable_extensions; do
  5386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5387. ac_cv_prog_ac_ct_F77="$ac_prog"
  5388. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5389. break 2
  5390. fi
  5391. done
  5392. done
  5393. IFS=$as_save_IFS
  5394. fi
  5395. fi
  5396. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5397. if test -n "$ac_ct_F77"; then
  5398. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5399. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5400. else
  5401. { echo "$as_me:$LINENO: result: no" >&5
  5402. echo "${ECHO_T}no" >&6; }
  5403. fi
  5404. test -n "$ac_ct_F77" && break
  5405. done
  5406. if test "x$ac_ct_F77" = x; then
  5407. F77=""
  5408. else
  5409. case $cross_compiling:$ac_tool_warned in
  5410. yes:)
  5411. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5412. whose name does not start with the host triplet. If you think this
  5413. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5414. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5415. whose name does not start with the host triplet. If you think this
  5416. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5417. ac_tool_warned=yes ;;
  5418. esac
  5419. F77=$ac_ct_F77
  5420. fi
  5421. fi
  5422. # Provide some information about the compiler.
  5423. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5424. ac_compiler=`set X $ac_compile; echo $2`
  5425. { (ac_try="$ac_compiler --version >&5"
  5426. case "(($ac_try" in
  5427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5428. *) ac_try_echo=$ac_try;;
  5429. esac
  5430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5431. (eval "$ac_compiler --version >&5") 2>&5
  5432. ac_status=$?
  5433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5434. (exit $ac_status); }
  5435. { (ac_try="$ac_compiler -v >&5"
  5436. case "(($ac_try" in
  5437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5438. *) ac_try_echo=$ac_try;;
  5439. esac
  5440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5441. (eval "$ac_compiler -v >&5") 2>&5
  5442. ac_status=$?
  5443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5444. (exit $ac_status); }
  5445. { (ac_try="$ac_compiler -V >&5"
  5446. case "(($ac_try" in
  5447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5448. *) ac_try_echo=$ac_try;;
  5449. esac
  5450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5451. (eval "$ac_compiler -V >&5") 2>&5
  5452. ac_status=$?
  5453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5454. (exit $ac_status); }
  5455. rm -f a.out
  5456. # If we don't use `.F' as extension, the preprocessor is not run on the
  5457. # input file. (Note that this only needs to work for GNU compilers.)
  5458. ac_save_ext=$ac_ext
  5459. ac_ext=F
  5460. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5461. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5462. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5463. echo $ECHO_N "(cached) $ECHO_C" >&6
  5464. else
  5465. cat >conftest.$ac_ext <<_ACEOF
  5466. program main
  5467. #ifndef __GNUC__
  5468. choke me
  5469. #endif
  5470. end
  5471. _ACEOF
  5472. rm -f conftest.$ac_objext
  5473. if { (ac_try="$ac_compile"
  5474. case "(($ac_try" in
  5475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5476. *) ac_try_echo=$ac_try;;
  5477. esac
  5478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5479. (eval "$ac_compile") 2>conftest.er1
  5480. ac_status=$?
  5481. grep -v '^ *+' conftest.er1 >conftest.err
  5482. rm -f conftest.er1
  5483. cat conftest.err >&5
  5484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5485. (exit $ac_status); } && {
  5486. test -z "$ac_f77_werror_flag" ||
  5487. test ! -s conftest.err
  5488. } && test -s conftest.$ac_objext; then
  5489. ac_compiler_gnu=yes
  5490. else
  5491. echo "$as_me: failed program was:" >&5
  5492. sed 's/^/| /' conftest.$ac_ext >&5
  5493. ac_compiler_gnu=no
  5494. fi
  5495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5496. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5497. fi
  5498. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5499. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5500. ac_ext=$ac_save_ext
  5501. ac_test_FFLAGS=${FFLAGS+set}
  5502. ac_save_FFLAGS=$FFLAGS
  5503. FFLAGS=
  5504. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5505. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5506. if test "${ac_cv_prog_f77_g+set}" = set; then
  5507. echo $ECHO_N "(cached) $ECHO_C" >&6
  5508. else
  5509. FFLAGS=-g
  5510. cat >conftest.$ac_ext <<_ACEOF
  5511. program main
  5512. end
  5513. _ACEOF
  5514. rm -f conftest.$ac_objext
  5515. if { (ac_try="$ac_compile"
  5516. case "(($ac_try" in
  5517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5518. *) ac_try_echo=$ac_try;;
  5519. esac
  5520. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5521. (eval "$ac_compile") 2>conftest.er1
  5522. ac_status=$?
  5523. grep -v '^ *+' conftest.er1 >conftest.err
  5524. rm -f conftest.er1
  5525. cat conftest.err >&5
  5526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5527. (exit $ac_status); } && {
  5528. test -z "$ac_f77_werror_flag" ||
  5529. test ! -s conftest.err
  5530. } && test -s conftest.$ac_objext; then
  5531. ac_cv_prog_f77_g=yes
  5532. else
  5533. echo "$as_me: failed program was:" >&5
  5534. sed 's/^/| /' conftest.$ac_ext >&5
  5535. ac_cv_prog_f77_g=no
  5536. fi
  5537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5538. fi
  5539. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5540. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5541. if test "$ac_test_FFLAGS" = set; then
  5542. FFLAGS=$ac_save_FFLAGS
  5543. elif test $ac_cv_prog_f77_g = yes; then
  5544. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5545. FFLAGS="-g -O2"
  5546. else
  5547. FFLAGS="-g"
  5548. fi
  5549. else
  5550. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5551. FFLAGS="-O2"
  5552. else
  5553. FFLAGS=
  5554. fi
  5555. fi
  5556. G77=`test $ac_compiler_gnu = yes && echo yes`
  5557. ac_ext=c
  5558. ac_cpp='$CPP $CPPFLAGS'
  5559. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5560. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5561. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5562. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5563. # find the maximum length of command line arguments
  5564. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5565. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5566. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5567. echo $ECHO_N "(cached) $ECHO_C" >&6
  5568. else
  5569. i=0
  5570. teststring="ABCD"
  5571. case $build_os in
  5572. msdosdjgpp*)
  5573. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5574. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5575. # during glob expansion). Even if it were fixed, the result of this
  5576. # check would be larger than it should be.
  5577. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5578. ;;
  5579. gnu*)
  5580. # Under GNU Hurd, this test is not required because there is
  5581. # no limit to the length of command line arguments.
  5582. # Libtool will interpret -1 as no limit whatsoever
  5583. lt_cv_sys_max_cmd_len=-1;
  5584. ;;
  5585. cygwin* | mingw*)
  5586. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5587. # about 5 minutes as the teststring grows exponentially.
  5588. # Worse, since 9x/ME are not pre-emptively multitasking,
  5589. # you end up with a "frozen" computer, even though with patience
  5590. # the test eventually succeeds (with a max line length of 256k).
  5591. # Instead, let's just punt: use the minimum linelength reported by
  5592. # all of the supported platforms: 8192 (on NT/2K/XP).
  5593. lt_cv_sys_max_cmd_len=8192;
  5594. ;;
  5595. amigaos*)
  5596. # On AmigaOS with pdksh, this test takes hours, literally.
  5597. # So we just punt and use a minimum line length of 8192.
  5598. lt_cv_sys_max_cmd_len=8192;
  5599. ;;
  5600. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5601. # This has been around since 386BSD, at least. Likely further.
  5602. if test -x /sbin/sysctl; then
  5603. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5604. elif test -x /usr/sbin/sysctl; then
  5605. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5606. else
  5607. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  5608. fi
  5609. # And add a safety zone
  5610. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5611. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5612. ;;
  5613. osf*)
  5614. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5615. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5616. # nice to cause kernel panics so lets avoid the loop below.
  5617. # First set a reasonable default.
  5618. lt_cv_sys_max_cmd_len=16384
  5619. #
  5620. if test -x /sbin/sysconfig; then
  5621. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5622. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5623. esac
  5624. fi
  5625. ;;
  5626. *)
  5627. # If test is not a shell built-in, we'll probably end up computing a
  5628. # maximum length that is only half of the actual maximum length, but
  5629. # we can't tell.
  5630. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5631. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5632. = "XX$teststring") >/dev/null 2>&1 &&
  5633. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5634. lt_cv_sys_max_cmd_len=$new_result &&
  5635. test $i != 17 # 1/2 MB should be enough
  5636. do
  5637. i=`expr $i + 1`
  5638. teststring=$teststring$teststring
  5639. done
  5640. teststring=
  5641. # Add a significant safety factor because C++ compilers can tack on massive
  5642. # amounts of additional arguments before passing them to the linker.
  5643. # It appears as though 1/2 is a usable value.
  5644. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5645. ;;
  5646. esac
  5647. fi
  5648. if test -n $lt_cv_sys_max_cmd_len ; then
  5649. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5650. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5651. else
  5652. { echo "$as_me:$LINENO: result: none" >&5
  5653. echo "${ECHO_T}none" >&6; }
  5654. fi
  5655. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5656. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5657. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5658. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5659. echo $ECHO_N "(cached) $ECHO_C" >&6
  5660. else
  5661. # These are sane defaults that work on at least a few old systems.
  5662. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5663. # Character class describing NM global symbol codes.
  5664. symcode='[BCDEGRST]'
  5665. # Regexp to match symbols that can be accessed directly from C.
  5666. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5667. # Transform an extracted symbol line into a proper C declaration
  5668. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5669. # Transform an extracted symbol line into symbol name and symbol address
  5670. 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'"
  5671. # Define system-specific variables.
  5672. case $host_os in
  5673. aix*)
  5674. symcode='[BCDT]'
  5675. ;;
  5676. cygwin* | mingw* | pw32*)
  5677. symcode='[ABCDGISTW]'
  5678. ;;
  5679. hpux*) # Its linker distinguishes data from code symbols
  5680. if test "$host_cpu" = ia64; then
  5681. symcode='[ABCDEGRST]'
  5682. fi
  5683. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5684. 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'"
  5685. ;;
  5686. linux*)
  5687. if test "$host_cpu" = ia64; then
  5688. symcode='[ABCDGIRSTW]'
  5689. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5690. 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'"
  5691. fi
  5692. ;;
  5693. irix* | nonstopux*)
  5694. symcode='[BCDEGRST]'
  5695. ;;
  5696. osf*)
  5697. symcode='[BCDEGQRST]'
  5698. ;;
  5699. solaris* | sysv5*)
  5700. symcode='[BDRT]'
  5701. ;;
  5702. sysv4)
  5703. symcode='[DFNSTU]'
  5704. ;;
  5705. esac
  5706. # Handle CRLF in mingw tool chain
  5707. opt_cr=
  5708. case $build_os in
  5709. mingw*)
  5710. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5711. ;;
  5712. esac
  5713. # If we're using GNU nm, then use its standard symbol codes.
  5714. case `$NM -V 2>&1` in
  5715. *GNU* | *'with BFD'*)
  5716. symcode='[ABCDGIRSTW]' ;;
  5717. esac
  5718. # Try without a prefix undercore, then with it.
  5719. for ac_symprfx in "" "_"; do
  5720. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5721. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5722. # Write the raw and C identifiers.
  5723. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5724. # Check to see that the pipe works correctly.
  5725. pipe_works=no
  5726. rm -f conftest*
  5727. cat > conftest.$ac_ext <<EOF
  5728. #ifdef __cplusplus
  5729. extern "C" {
  5730. #endif
  5731. char nm_test_var;
  5732. void nm_test_func(){}
  5733. #ifdef __cplusplus
  5734. }
  5735. #endif
  5736. int main(){nm_test_var='a';nm_test_func();return(0);}
  5737. EOF
  5738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5739. (eval $ac_compile) 2>&5
  5740. ac_status=$?
  5741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5742. (exit $ac_status); }; then
  5743. # Now try to grab the symbols.
  5744. nlist=conftest.nm
  5745. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5746. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5747. ac_status=$?
  5748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5749. (exit $ac_status); } && test -s "$nlist"; then
  5750. # Try sorting and uniquifying the output.
  5751. if sort "$nlist" | uniq > "$nlist"T; then
  5752. mv -f "$nlist"T "$nlist"
  5753. else
  5754. rm -f "$nlist"T
  5755. fi
  5756. # Make sure that we snagged all the symbols we need.
  5757. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5758. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5759. cat <<EOF > conftest.$ac_ext
  5760. #ifdef __cplusplus
  5761. extern "C" {
  5762. #endif
  5763. EOF
  5764. # Now generate the symbol file.
  5765. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5766. cat <<EOF >> conftest.$ac_ext
  5767. #if defined (__STDC__) && __STDC__
  5768. # define lt_ptr_t void *
  5769. #else
  5770. # define lt_ptr_t char *
  5771. # define const
  5772. #endif
  5773. /* The mapping between symbol names and symbols. */
  5774. const struct {
  5775. const char *name;
  5776. lt_ptr_t address;
  5777. }
  5778. lt_preloaded_symbols[] =
  5779. {
  5780. EOF
  5781. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5782. cat <<\EOF >> conftest.$ac_ext
  5783. {0, (lt_ptr_t) 0}
  5784. };
  5785. #ifdef __cplusplus
  5786. }
  5787. #endif
  5788. EOF
  5789. # Now try linking the two files.
  5790. mv conftest.$ac_objext conftstm.$ac_objext
  5791. lt_save_LIBS="$LIBS"
  5792. lt_save_CFLAGS="$CFLAGS"
  5793. LIBS="conftstm.$ac_objext"
  5794. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5795. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5796. (eval $ac_link) 2>&5
  5797. ac_status=$?
  5798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5799. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5800. pipe_works=yes
  5801. fi
  5802. LIBS="$lt_save_LIBS"
  5803. CFLAGS="$lt_save_CFLAGS"
  5804. else
  5805. echo "cannot find nm_test_func in $nlist" >&5
  5806. fi
  5807. else
  5808. echo "cannot find nm_test_var in $nlist" >&5
  5809. fi
  5810. else
  5811. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5812. fi
  5813. else
  5814. echo "$progname: failed program was:" >&5
  5815. cat conftest.$ac_ext >&5
  5816. fi
  5817. rm -f conftest* conftst*
  5818. # Do not use the global_symbol_pipe unless it works.
  5819. if test "$pipe_works" = yes; then
  5820. break
  5821. else
  5822. lt_cv_sys_global_symbol_pipe=
  5823. fi
  5824. done
  5825. fi
  5826. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5827. lt_cv_sys_global_symbol_to_cdecl=
  5828. fi
  5829. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5830. { echo "$as_me:$LINENO: result: failed" >&5
  5831. echo "${ECHO_T}failed" >&6; }
  5832. else
  5833. { echo "$as_me:$LINENO: result: ok" >&5
  5834. echo "${ECHO_T}ok" >&6; }
  5835. fi
  5836. { echo "$as_me:$LINENO: checking for objdir" >&5
  5837. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5838. if test "${lt_cv_objdir+set}" = set; then
  5839. echo $ECHO_N "(cached) $ECHO_C" >&6
  5840. else
  5841. rm -f .libs 2>/dev/null
  5842. mkdir .libs 2>/dev/null
  5843. if test -d .libs; then
  5844. lt_cv_objdir=.libs
  5845. else
  5846. # MS-DOS does not allow filenames that begin with a dot.
  5847. lt_cv_objdir=_libs
  5848. fi
  5849. rmdir .libs 2>/dev/null
  5850. fi
  5851. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5852. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5853. objdir=$lt_cv_objdir
  5854. case $host_os in
  5855. aix3*)
  5856. # AIX sometimes has problems with the GCC collect2 program. For some
  5857. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5858. # vanish in a puff of smoke.
  5859. if test "X${COLLECT_NAMES+set}" != Xset; then
  5860. COLLECT_NAMES=
  5861. export COLLECT_NAMES
  5862. fi
  5863. ;;
  5864. esac
  5865. # Sed substitution that helps us do robust quoting. It backslashifies
  5866. # metacharacters that are still active within double-quoted strings.
  5867. Xsed='sed -e 1s/^X//'
  5868. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5869. # Same as above, but do not quote variable references.
  5870. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5871. # Sed substitution to delay expansion of an escaped shell variable in a
  5872. # double_quote_subst'ed string.
  5873. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5874. # Sed substitution to avoid accidental globbing in evaled expressions
  5875. no_glob_subst='s/\*/\\\*/g'
  5876. # Constants:
  5877. rm="rm -f"
  5878. # Global variables:
  5879. default_ofile=libtool
  5880. can_build_shared=yes
  5881. # All known linkers require a `.a' archive for static linking (except M$VC,
  5882. # which needs '.lib').
  5883. libext=a
  5884. ltmain="$ac_aux_dir/ltmain.sh"
  5885. ofile="$default_ofile"
  5886. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5887. if test -n "$ac_tool_prefix"; then
  5888. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5889. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5890. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5891. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5892. if test "${ac_cv_prog_AR+set}" = set; then
  5893. echo $ECHO_N "(cached) $ECHO_C" >&6
  5894. else
  5895. if test -n "$AR"; then
  5896. ac_cv_prog_AR="$AR" # Let the user override the test.
  5897. else
  5898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5899. for as_dir in $PATH
  5900. do
  5901. IFS=$as_save_IFS
  5902. test -z "$as_dir" && as_dir=.
  5903. for ac_exec_ext in '' $ac_executable_extensions; do
  5904. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5905. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5906. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5907. break 2
  5908. fi
  5909. done
  5910. done
  5911. IFS=$as_save_IFS
  5912. fi
  5913. fi
  5914. AR=$ac_cv_prog_AR
  5915. if test -n "$AR"; then
  5916. { echo "$as_me:$LINENO: result: $AR" >&5
  5917. echo "${ECHO_T}$AR" >&6; }
  5918. else
  5919. { echo "$as_me:$LINENO: result: no" >&5
  5920. echo "${ECHO_T}no" >&6; }
  5921. fi
  5922. fi
  5923. if test -z "$ac_cv_prog_AR"; then
  5924. ac_ct_AR=$AR
  5925. # Extract the first word of "ar", so it can be a program name with args.
  5926. set dummy ar; ac_word=$2
  5927. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5928. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5929. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5930. echo $ECHO_N "(cached) $ECHO_C" >&6
  5931. else
  5932. if test -n "$ac_ct_AR"; then
  5933. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5934. else
  5935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5936. for as_dir in $PATH
  5937. do
  5938. IFS=$as_save_IFS
  5939. test -z "$as_dir" && as_dir=.
  5940. for ac_exec_ext in '' $ac_executable_extensions; do
  5941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5942. ac_cv_prog_ac_ct_AR="ar"
  5943. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5944. break 2
  5945. fi
  5946. done
  5947. done
  5948. IFS=$as_save_IFS
  5949. fi
  5950. fi
  5951. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5952. if test -n "$ac_ct_AR"; then
  5953. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5954. echo "${ECHO_T}$ac_ct_AR" >&6; }
  5955. else
  5956. { echo "$as_me:$LINENO: result: no" >&5
  5957. echo "${ECHO_T}no" >&6; }
  5958. fi
  5959. if test "x$ac_ct_AR" = x; then
  5960. AR="false"
  5961. else
  5962. case $cross_compiling:$ac_tool_warned in
  5963. yes:)
  5964. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5965. whose name does not start with the host triplet. If you think this
  5966. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5967. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5968. whose name does not start with the host triplet. If you think this
  5969. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5970. ac_tool_warned=yes ;;
  5971. esac
  5972. AR=$ac_ct_AR
  5973. fi
  5974. else
  5975. AR="$ac_cv_prog_AR"
  5976. fi
  5977. if test -n "$ac_tool_prefix"; then
  5978. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5979. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5980. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5981. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5982. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5983. echo $ECHO_N "(cached) $ECHO_C" >&6
  5984. else
  5985. if test -n "$RANLIB"; then
  5986. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5987. else
  5988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5989. for as_dir in $PATH
  5990. do
  5991. IFS=$as_save_IFS
  5992. test -z "$as_dir" && as_dir=.
  5993. for ac_exec_ext in '' $ac_executable_extensions; do
  5994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5995. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5996. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5997. break 2
  5998. fi
  5999. done
  6000. done
  6001. IFS=$as_save_IFS
  6002. fi
  6003. fi
  6004. RANLIB=$ac_cv_prog_RANLIB
  6005. if test -n "$RANLIB"; then
  6006. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6007. echo "${ECHO_T}$RANLIB" >&6; }
  6008. else
  6009. { echo "$as_me:$LINENO: result: no" >&5
  6010. echo "${ECHO_T}no" >&6; }
  6011. fi
  6012. fi
  6013. if test -z "$ac_cv_prog_RANLIB"; then
  6014. ac_ct_RANLIB=$RANLIB
  6015. # Extract the first word of "ranlib", so it can be a program name with args.
  6016. set dummy ranlib; ac_word=$2
  6017. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6018. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6019. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6020. echo $ECHO_N "(cached) $ECHO_C" >&6
  6021. else
  6022. if test -n "$ac_ct_RANLIB"; then
  6023. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6024. else
  6025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6026. for as_dir in $PATH
  6027. do
  6028. IFS=$as_save_IFS
  6029. test -z "$as_dir" && as_dir=.
  6030. for ac_exec_ext in '' $ac_executable_extensions; do
  6031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6032. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6033. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6034. break 2
  6035. fi
  6036. done
  6037. done
  6038. IFS=$as_save_IFS
  6039. fi
  6040. fi
  6041. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6042. if test -n "$ac_ct_RANLIB"; then
  6043. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6044. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6045. else
  6046. { echo "$as_me:$LINENO: result: no" >&5
  6047. echo "${ECHO_T}no" >&6; }
  6048. fi
  6049. if test "x$ac_ct_RANLIB" = x; then
  6050. RANLIB=":"
  6051. else
  6052. case $cross_compiling:$ac_tool_warned in
  6053. yes:)
  6054. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6055. whose name does not start with the host triplet. If you think this
  6056. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6057. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6058. whose name does not start with the host triplet. If you think this
  6059. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6060. ac_tool_warned=yes ;;
  6061. esac
  6062. RANLIB=$ac_ct_RANLIB
  6063. fi
  6064. else
  6065. RANLIB="$ac_cv_prog_RANLIB"
  6066. fi
  6067. if test -n "$ac_tool_prefix"; then
  6068. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6069. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6070. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6071. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6072. if test "${ac_cv_prog_STRIP+set}" = set; then
  6073. echo $ECHO_N "(cached) $ECHO_C" >&6
  6074. else
  6075. if test -n "$STRIP"; then
  6076. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6077. else
  6078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6079. for as_dir in $PATH
  6080. do
  6081. IFS=$as_save_IFS
  6082. test -z "$as_dir" && as_dir=.
  6083. for ac_exec_ext in '' $ac_executable_extensions; do
  6084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6085. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6086. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6087. break 2
  6088. fi
  6089. done
  6090. done
  6091. IFS=$as_save_IFS
  6092. fi
  6093. fi
  6094. STRIP=$ac_cv_prog_STRIP
  6095. if test -n "$STRIP"; then
  6096. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6097. echo "${ECHO_T}$STRIP" >&6; }
  6098. else
  6099. { echo "$as_me:$LINENO: result: no" >&5
  6100. echo "${ECHO_T}no" >&6; }
  6101. fi
  6102. fi
  6103. if test -z "$ac_cv_prog_STRIP"; then
  6104. ac_ct_STRIP=$STRIP
  6105. # Extract the first word of "strip", so it can be a program name with args.
  6106. set dummy strip; ac_word=$2
  6107. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6108. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6109. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6110. echo $ECHO_N "(cached) $ECHO_C" >&6
  6111. else
  6112. if test -n "$ac_ct_STRIP"; then
  6113. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6114. else
  6115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6116. for as_dir in $PATH
  6117. do
  6118. IFS=$as_save_IFS
  6119. test -z "$as_dir" && as_dir=.
  6120. for ac_exec_ext in '' $ac_executable_extensions; do
  6121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6122. ac_cv_prog_ac_ct_STRIP="strip"
  6123. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6124. break 2
  6125. fi
  6126. done
  6127. done
  6128. IFS=$as_save_IFS
  6129. fi
  6130. fi
  6131. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6132. if test -n "$ac_ct_STRIP"; then
  6133. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6134. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6135. else
  6136. { echo "$as_me:$LINENO: result: no" >&5
  6137. echo "${ECHO_T}no" >&6; }
  6138. fi
  6139. if test "x$ac_ct_STRIP" = x; then
  6140. STRIP=":"
  6141. else
  6142. case $cross_compiling:$ac_tool_warned in
  6143. yes:)
  6144. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6145. whose name does not start with the host triplet. If you think this
  6146. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6147. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6148. whose name does not start with the host triplet. If you think this
  6149. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6150. ac_tool_warned=yes ;;
  6151. esac
  6152. STRIP=$ac_ct_STRIP
  6153. fi
  6154. else
  6155. STRIP="$ac_cv_prog_STRIP"
  6156. fi
  6157. old_CC="$CC"
  6158. old_CFLAGS="$CFLAGS"
  6159. # Set sane defaults for various variables
  6160. test -z "$AR" && AR=ar
  6161. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6162. test -z "$AS" && AS=as
  6163. test -z "$CC" && CC=cc
  6164. test -z "$LTCC" && LTCC=$CC
  6165. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6166. test -z "$LD" && LD=ld
  6167. test -z "$LN_S" && LN_S="ln -s"
  6168. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6169. test -z "$NM" && NM=nm
  6170. test -z "$SED" && SED=sed
  6171. test -z "$OBJDUMP" && OBJDUMP=objdump
  6172. test -z "$RANLIB" && RANLIB=:
  6173. test -z "$STRIP" && STRIP=:
  6174. test -z "$ac_objext" && ac_objext=o
  6175. # Determine commands to create old-style static archives.
  6176. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6177. old_postinstall_cmds='chmod 644 $oldlib'
  6178. old_postuninstall_cmds=
  6179. if test -n "$RANLIB"; then
  6180. case $host_os in
  6181. openbsd*)
  6182. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6183. ;;
  6184. *)
  6185. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6186. ;;
  6187. esac
  6188. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6189. fi
  6190. for cc_temp in $compiler""; do
  6191. case $cc_temp in
  6192. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6193. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6194. \-*) ;;
  6195. *) break;;
  6196. esac
  6197. done
  6198. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6199. # Only perform the check for file, if the check method requires it
  6200. case $deplibs_check_method in
  6201. file_magic*)
  6202. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6203. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6204. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6205. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6206. echo $ECHO_N "(cached) $ECHO_C" >&6
  6207. else
  6208. case $MAGIC_CMD in
  6209. [\\/*] | ?:[\\/]*)
  6210. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6211. ;;
  6212. *)
  6213. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6214. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6215. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6216. for ac_dir in $ac_dummy; do
  6217. IFS="$lt_save_ifs"
  6218. test -z "$ac_dir" && ac_dir=.
  6219. if test -f $ac_dir/${ac_tool_prefix}file; then
  6220. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6221. if test -n "$file_magic_test_file"; then
  6222. case $deplibs_check_method in
  6223. "file_magic "*)
  6224. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6225. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6226. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6227. $EGREP "$file_magic_regex" > /dev/null; then
  6228. :
  6229. else
  6230. cat <<EOF 1>&2
  6231. *** Warning: the command libtool uses to detect shared libraries,
  6232. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6233. *** The result is that libtool may fail to recognize shared libraries
  6234. *** as such. This will affect the creation of libtool libraries that
  6235. *** depend on shared libraries, but programs linked with such libtool
  6236. *** libraries will work regardless of this problem. Nevertheless, you
  6237. *** may want to report the problem to your system manager and/or to
  6238. *** bug-libtool@gnu.org
  6239. EOF
  6240. fi ;;
  6241. esac
  6242. fi
  6243. break
  6244. fi
  6245. done
  6246. IFS="$lt_save_ifs"
  6247. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6248. ;;
  6249. esac
  6250. fi
  6251. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6252. if test -n "$MAGIC_CMD"; then
  6253. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6254. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6255. else
  6256. { echo "$as_me:$LINENO: result: no" >&5
  6257. echo "${ECHO_T}no" >&6; }
  6258. fi
  6259. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6260. if test -n "$ac_tool_prefix"; then
  6261. { echo "$as_me:$LINENO: checking for file" >&5
  6262. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6263. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6264. echo $ECHO_N "(cached) $ECHO_C" >&6
  6265. else
  6266. case $MAGIC_CMD in
  6267. [\\/*] | ?:[\\/]*)
  6268. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6269. ;;
  6270. *)
  6271. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6272. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6273. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6274. for ac_dir in $ac_dummy; do
  6275. IFS="$lt_save_ifs"
  6276. test -z "$ac_dir" && ac_dir=.
  6277. if test -f $ac_dir/file; then
  6278. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6279. if test -n "$file_magic_test_file"; then
  6280. case $deplibs_check_method in
  6281. "file_magic "*)
  6282. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6283. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6284. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6285. $EGREP "$file_magic_regex" > /dev/null; then
  6286. :
  6287. else
  6288. cat <<EOF 1>&2
  6289. *** Warning: the command libtool uses to detect shared libraries,
  6290. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6291. *** The result is that libtool may fail to recognize shared libraries
  6292. *** as such. This will affect the creation of libtool libraries that
  6293. *** depend on shared libraries, but programs linked with such libtool
  6294. *** libraries will work regardless of this problem. Nevertheless, you
  6295. *** may want to report the problem to your system manager and/or to
  6296. *** bug-libtool@gnu.org
  6297. EOF
  6298. fi ;;
  6299. esac
  6300. fi
  6301. break
  6302. fi
  6303. done
  6304. IFS="$lt_save_ifs"
  6305. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6306. ;;
  6307. esac
  6308. fi
  6309. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6310. if test -n "$MAGIC_CMD"; then
  6311. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6312. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6313. else
  6314. { echo "$as_me:$LINENO: result: no" >&5
  6315. echo "${ECHO_T}no" >&6; }
  6316. fi
  6317. else
  6318. MAGIC_CMD=:
  6319. fi
  6320. fi
  6321. fi
  6322. ;;
  6323. esac
  6324. enable_dlopen=no
  6325. enable_win32_dll=no
  6326. # Check whether --enable-libtool-lock was given.
  6327. if test "${enable_libtool_lock+set}" = set; then
  6328. enableval=$enable_libtool_lock;
  6329. fi
  6330. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6331. # Check whether --with-pic was given.
  6332. if test "${with_pic+set}" = set; then
  6333. withval=$with_pic; pic_mode="$withval"
  6334. else
  6335. pic_mode=default
  6336. fi
  6337. test -z "$pic_mode" && pic_mode=default
  6338. # Use C for the default configuration in the libtool script
  6339. tagname=
  6340. lt_save_CC="$CC"
  6341. ac_ext=c
  6342. ac_cpp='$CPP $CPPFLAGS'
  6343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6346. # Source file extension for C test sources.
  6347. ac_ext=c
  6348. # Object file extension for compiled C test sources.
  6349. objext=o
  6350. objext=$objext
  6351. # Code to be used in simple compile tests
  6352. lt_simple_compile_test_code="int some_variable = 0;\n"
  6353. # Code to be used in simple link tests
  6354. lt_simple_link_test_code='int main(){return(0);}\n'
  6355. # If no C compiler was specified, use CC.
  6356. LTCC=${LTCC-"$CC"}
  6357. # Allow CC to be a program name with arguments.
  6358. compiler=$CC
  6359. # save warnings/boilerplate of simple test code
  6360. ac_outfile=conftest.$ac_objext
  6361. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  6362. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6363. _lt_compiler_boilerplate=`cat conftest.err`
  6364. $rm conftest*
  6365. ac_outfile=conftest.$ac_objext
  6366. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  6367. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  6368. _lt_linker_boilerplate=`cat conftest.err`
  6369. $rm conftest*
  6370. #
  6371. # Check for any special shared library compilation flags.
  6372. #
  6373. lt_prog_cc_shlib=
  6374. if test "$GCC" = no; then
  6375. case $host_os in
  6376. sco3.2v5*)
  6377. lt_prog_cc_shlib='-belf'
  6378. ;;
  6379. esac
  6380. fi
  6381. if test -n "$lt_prog_cc_shlib"; then
  6382. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  6383. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  6384. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  6385. else
  6386. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6387. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6388. lt_cv_prog_cc_can_build_shared=no
  6389. fi
  6390. fi
  6391. #
  6392. # Check to make sure the static flag actually works.
  6393. #
  6394. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  6395. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
  6396. if test "${lt_prog_compiler_static_works+set}" = set; then
  6397. echo $ECHO_N "(cached) $ECHO_C" >&6
  6398. else
  6399. lt_prog_compiler_static_works=no
  6400. save_LDFLAGS="$LDFLAGS"
  6401. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  6402. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6403. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6404. # The compiler can only warn and ignore the option if not recognized
  6405. # So say no if there are warnings
  6406. if test -s conftest.err; then
  6407. # Append any errors to the config.log.
  6408. cat conftest.err 1>&5
  6409. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  6410. $SED '/^$/d' conftest.err >conftest.er2
  6411. if diff conftest.exp conftest.er2 >/dev/null; then
  6412. lt_prog_compiler_static_works=yes
  6413. fi
  6414. else
  6415. lt_prog_compiler_static_works=yes
  6416. fi
  6417. fi
  6418. $rm conftest*
  6419. LDFLAGS="$save_LDFLAGS"
  6420. fi
  6421. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6422. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6423. if test x"$lt_prog_compiler_static_works" = xyes; then
  6424. :
  6425. else
  6426. lt_prog_compiler_static=
  6427. fi
  6428. lt_prog_compiler_no_builtin_flag=
  6429. if test "$GCC" = yes; then
  6430. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6431. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6432. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6433. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6434. echo $ECHO_N "(cached) $ECHO_C" >&6
  6435. else
  6436. lt_cv_prog_compiler_rtti_exceptions=no
  6437. ac_outfile=conftest.$ac_objext
  6438. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6439. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6440. # Insert the option either (1) after the last *FLAGS variable, or
  6441. # (2) before a word containing "conftest.", or (3) at the end.
  6442. # Note that $ac_compile itself does not contain backslashes and begins
  6443. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6444. # The option is referenced via a variable to avoid confusing sed.
  6445. lt_compile=`echo "$ac_compile" | $SED \
  6446. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6447. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6448. -e 's:$: $lt_compiler_flag:'`
  6449. (eval echo "\"\$as_me:7221: $lt_compile\"" >&5)
  6450. (eval "$lt_compile" 2>conftest.err)
  6451. ac_status=$?
  6452. cat conftest.err >&5
  6453. echo "$as_me:7225: \$? = $ac_status" >&5
  6454. if (exit $ac_status) && test -s "$ac_outfile"; then
  6455. # The compiler can only warn and ignore the option if not recognized
  6456. # So say no if there are warnings other than the usual output.
  6457. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6458. $SED '/^$/d' conftest.err >conftest.er2
  6459. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6460. lt_cv_prog_compiler_rtti_exceptions=yes
  6461. fi
  6462. fi
  6463. $rm conftest*
  6464. fi
  6465. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6466. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6467. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6468. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6469. else
  6470. :
  6471. fi
  6472. fi
  6473. lt_prog_compiler_wl=
  6474. lt_prog_compiler_pic=
  6475. lt_prog_compiler_static=
  6476. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6477. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6478. if test "$GCC" = yes; then
  6479. lt_prog_compiler_wl='-Wl,'
  6480. lt_prog_compiler_static='-static'
  6481. case $host_os in
  6482. aix*)
  6483. # All AIX code is PIC.
  6484. if test "$host_cpu" = ia64; then
  6485. # AIX 5 now supports IA64 processor
  6486. lt_prog_compiler_static='-Bstatic'
  6487. fi
  6488. ;;
  6489. amigaos*)
  6490. # FIXME: we need at least 68020 code to build shared libraries, but
  6491. # adding the `-m68020' flag to GCC prevents building anything better,
  6492. # like `-m68040'.
  6493. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6494. ;;
  6495. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6496. # PIC is the default for these OSes.
  6497. ;;
  6498. mingw* | pw32* | os2*)
  6499. # This hack is so that the source file can tell whether it is being
  6500. # built for inclusion in a dll (and should export symbols for example).
  6501. lt_prog_compiler_pic='-DDLL_EXPORT'
  6502. ;;
  6503. darwin* | rhapsody*)
  6504. # PIC is the default on this platform
  6505. # Common symbols not allowed in MH_DYLIB files
  6506. lt_prog_compiler_pic='-fno-common'
  6507. ;;
  6508. msdosdjgpp*)
  6509. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6510. # on systems that don't support them.
  6511. lt_prog_compiler_can_build_shared=no
  6512. enable_shared=no
  6513. ;;
  6514. sysv4*MP*)
  6515. if test -d /usr/nec; then
  6516. lt_prog_compiler_pic=-Kconform_pic
  6517. fi
  6518. ;;
  6519. hpux*)
  6520. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6521. # not for PA HP-UX.
  6522. case "$host_cpu" in
  6523. hppa*64*|ia64*)
  6524. # +Z the default
  6525. ;;
  6526. *)
  6527. lt_prog_compiler_pic='-fPIC'
  6528. ;;
  6529. esac
  6530. ;;
  6531. *)
  6532. lt_prog_compiler_pic='-fPIC'
  6533. ;;
  6534. esac
  6535. else
  6536. # PORTME Check for flag to pass linker flags through the system compiler.
  6537. case $host_os in
  6538. aix*)
  6539. lt_prog_compiler_wl='-Wl,'
  6540. if test "$host_cpu" = ia64; then
  6541. # AIX 5 now supports IA64 processor
  6542. lt_prog_compiler_static='-Bstatic'
  6543. else
  6544. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6545. fi
  6546. ;;
  6547. darwin*)
  6548. # PIC is the default on this platform
  6549. # Common symbols not allowed in MH_DYLIB files
  6550. case $cc_basename in
  6551. xlc*)
  6552. lt_prog_compiler_pic='-qnocommon'
  6553. lt_prog_compiler_wl='-Wl,'
  6554. ;;
  6555. esac
  6556. ;;
  6557. mingw* | pw32* | os2*)
  6558. # This hack is so that the source file can tell whether it is being
  6559. # built for inclusion in a dll (and should export symbols for example).
  6560. lt_prog_compiler_pic='-DDLL_EXPORT'
  6561. ;;
  6562. hpux9* | hpux10* | hpux11*)
  6563. lt_prog_compiler_wl='-Wl,'
  6564. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6565. # not for PA HP-UX.
  6566. case "$host_cpu" in
  6567. hppa*64*|ia64*)
  6568. # +Z the default
  6569. ;;
  6570. *)
  6571. lt_prog_compiler_pic='+Z'
  6572. ;;
  6573. esac
  6574. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6575. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6576. ;;
  6577. irix5* | irix6* | nonstopux*)
  6578. lt_prog_compiler_wl='-Wl,'
  6579. # PIC (with -KPIC) is the default.
  6580. lt_prog_compiler_static='-non_shared'
  6581. ;;
  6582. newsos6)
  6583. lt_prog_compiler_pic='-KPIC'
  6584. lt_prog_compiler_static='-Bstatic'
  6585. ;;
  6586. linux*)
  6587. case $cc_basename in
  6588. icc* | ecc*)
  6589. lt_prog_compiler_wl='-Wl,'
  6590. lt_prog_compiler_pic='-KPIC'
  6591. lt_prog_compiler_static='-static'
  6592. ;;
  6593. pgcc* | pgf77* | pgf90*)
  6594. # Portland Group compilers (*not* the Pentium gcc compiler,
  6595. # which looks to be a dead project)
  6596. lt_prog_compiler_wl='-Wl,'
  6597. lt_prog_compiler_pic='-fpic'
  6598. lt_prog_compiler_static='-static'
  6599. ;;
  6600. ccc*)
  6601. lt_prog_compiler_wl='-Wl,'
  6602. # All Alpha code is PIC.
  6603. lt_prog_compiler_static='-non_shared'
  6604. ;;
  6605. esac
  6606. ;;
  6607. osf3* | osf4* | osf5*)
  6608. lt_prog_compiler_wl='-Wl,'
  6609. # All OSF/1 code is PIC.
  6610. lt_prog_compiler_static='-non_shared'
  6611. ;;
  6612. sco3.2v5*)
  6613. lt_prog_compiler_pic='-Kpic'
  6614. lt_prog_compiler_static='-dn'
  6615. ;;
  6616. solaris*)
  6617. lt_prog_compiler_pic='-KPIC'
  6618. lt_prog_compiler_static='-Bstatic'
  6619. case $cc_basename in
  6620. f77* | f90* | f95*)
  6621. lt_prog_compiler_wl='-Qoption ld ';;
  6622. *)
  6623. lt_prog_compiler_wl='-Wl,';;
  6624. esac
  6625. ;;
  6626. sunos4*)
  6627. lt_prog_compiler_wl='-Qoption ld '
  6628. lt_prog_compiler_pic='-PIC'
  6629. lt_prog_compiler_static='-Bstatic'
  6630. ;;
  6631. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6632. lt_prog_compiler_wl='-Wl,'
  6633. lt_prog_compiler_pic='-KPIC'
  6634. lt_prog_compiler_static='-Bstatic'
  6635. ;;
  6636. sysv4*MP*)
  6637. if test -d /usr/nec ;then
  6638. lt_prog_compiler_pic='-Kconform_pic'
  6639. lt_prog_compiler_static='-Bstatic'
  6640. fi
  6641. ;;
  6642. unicos*)
  6643. lt_prog_compiler_wl='-Wl,'
  6644. lt_prog_compiler_can_build_shared=no
  6645. ;;
  6646. uts4*)
  6647. lt_prog_compiler_pic='-pic'
  6648. lt_prog_compiler_static='-Bstatic'
  6649. ;;
  6650. *)
  6651. lt_prog_compiler_can_build_shared=no
  6652. ;;
  6653. esac
  6654. fi
  6655. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6656. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6657. #
  6658. # Check to make sure the PIC flag actually works.
  6659. #
  6660. if test -n "$lt_prog_compiler_pic"; then
  6661. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6662. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6663. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6664. echo $ECHO_N "(cached) $ECHO_C" >&6
  6665. else
  6666. lt_prog_compiler_pic_works=no
  6667. ac_outfile=conftest.$ac_objext
  6668. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6669. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6670. # Insert the option either (1) after the last *FLAGS variable, or
  6671. # (2) before a word containing "conftest.", or (3) at the end.
  6672. # Note that $ac_compile itself does not contain backslashes and begins
  6673. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6674. # The option is referenced via a variable to avoid confusing sed.
  6675. lt_compile=`echo "$ac_compile" | $SED \
  6676. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6677. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6678. -e 's:$: $lt_compiler_flag:'`
  6679. (eval echo "\"\$as_me:7483: $lt_compile\"" >&5)
  6680. (eval "$lt_compile" 2>conftest.err)
  6681. ac_status=$?
  6682. cat conftest.err >&5
  6683. echo "$as_me:7487: \$? = $ac_status" >&5
  6684. if (exit $ac_status) && test -s "$ac_outfile"; then
  6685. # The compiler can only warn and ignore the option if not recognized
  6686. # So say no if there are warnings other than the usual output.
  6687. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6688. $SED '/^$/d' conftest.err >conftest.er2
  6689. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6690. lt_prog_compiler_pic_works=yes
  6691. fi
  6692. fi
  6693. $rm conftest*
  6694. fi
  6695. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6696. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6697. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6698. case $lt_prog_compiler_pic in
  6699. "" | " "*) ;;
  6700. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6701. esac
  6702. else
  6703. lt_prog_compiler_pic=
  6704. lt_prog_compiler_can_build_shared=no
  6705. fi
  6706. fi
  6707. case "$host_os" in
  6708. # For platforms which do not support PIC, -DPIC is meaningless:
  6709. *djgpp*)
  6710. lt_prog_compiler_pic=
  6711. ;;
  6712. *)
  6713. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6714. ;;
  6715. esac
  6716. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6717. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6718. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6719. echo $ECHO_N "(cached) $ECHO_C" >&6
  6720. else
  6721. lt_cv_prog_compiler_c_o=no
  6722. $rm -r conftest 2>/dev/null
  6723. mkdir conftest
  6724. cd conftest
  6725. mkdir out
  6726. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6727. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6728. # Insert the option either (1) after the last *FLAGS variable, or
  6729. # (2) before a word containing "conftest.", or (3) at the end.
  6730. # Note that $ac_compile itself does not contain backslashes and begins
  6731. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6732. lt_compile=`echo "$ac_compile" | $SED \
  6733. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6734. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6735. -e 's:$: $lt_compiler_flag:'`
  6736. (eval echo "\"\$as_me:7545: $lt_compile\"" >&5)
  6737. (eval "$lt_compile" 2>out/conftest.err)
  6738. ac_status=$?
  6739. cat out/conftest.err >&5
  6740. echo "$as_me:7549: \$? = $ac_status" >&5
  6741. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6742. then
  6743. # The compiler can only warn and ignore the option if not recognized
  6744. # So say no if there are warnings
  6745. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  6746. $SED '/^$/d' out/conftest.err >out/conftest.er2
  6747. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6748. lt_cv_prog_compiler_c_o=yes
  6749. fi
  6750. fi
  6751. chmod u+w .
  6752. $rm conftest*
  6753. # SGI C++ compiler will create directory out/ii_files/ for
  6754. # template instantiation
  6755. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6756. $rm out/* && rmdir out
  6757. cd ..
  6758. rmdir conftest
  6759. $rm conftest*
  6760. fi
  6761. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6762. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6763. hard_links="nottested"
  6764. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6765. # do not overwrite the value of need_locks provided by the user
  6766. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6767. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6768. hard_links=yes
  6769. $rm conftest*
  6770. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6771. touch conftest.a
  6772. ln conftest.a conftest.b 2>&5 || hard_links=no
  6773. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6774. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6775. echo "${ECHO_T}$hard_links" >&6; }
  6776. if test "$hard_links" = no; then
  6777. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6778. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6779. need_locks=warn
  6780. fi
  6781. else
  6782. need_locks=no
  6783. fi
  6784. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6785. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6786. runpath_var=
  6787. allow_undefined_flag=
  6788. enable_shared_with_static_runtimes=no
  6789. archive_cmds=
  6790. archive_expsym_cmds=
  6791. old_archive_From_new_cmds=
  6792. old_archive_from_expsyms_cmds=
  6793. export_dynamic_flag_spec=
  6794. whole_archive_flag_spec=
  6795. thread_safe_flag_spec=
  6796. hardcode_libdir_flag_spec=
  6797. hardcode_libdir_flag_spec_ld=
  6798. hardcode_libdir_separator=
  6799. hardcode_direct=no
  6800. hardcode_minus_L=no
  6801. hardcode_shlibpath_var=unsupported
  6802. link_all_deplibs=unknown
  6803. hardcode_automatic=no
  6804. module_cmds=
  6805. module_expsym_cmds=
  6806. always_export_symbols=no
  6807. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6808. # include_expsyms should be a list of space-separated symbols to be *always*
  6809. # included in the symbol list
  6810. include_expsyms=
  6811. # exclude_expsyms can be an extended regexp of symbols to exclude
  6812. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6813. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6814. # as well as any symbol that contains `d'.
  6815. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6816. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6817. # platforms (ab)use it in PIC code, but their linkers get confused if
  6818. # the symbol is explicitly referenced. Since portable code cannot
  6819. # rely on this symbol name, it's probably fine to never include it in
  6820. # preloaded symbol tables.
  6821. extract_expsyms_cmds=
  6822. # Just being paranoid about ensuring that cc_basename is set.
  6823. for cc_temp in $compiler""; do
  6824. case $cc_temp in
  6825. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6826. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6827. \-*) ;;
  6828. *) break;;
  6829. esac
  6830. done
  6831. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6832. case $host_os in
  6833. cygwin* | mingw* | pw32*)
  6834. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6835. # When not using gcc, we currently assume that we are using
  6836. # Microsoft Visual C++.
  6837. if test "$GCC" != yes; then
  6838. with_gnu_ld=no
  6839. fi
  6840. ;;
  6841. openbsd*)
  6842. with_gnu_ld=no
  6843. ;;
  6844. esac
  6845. ld_shlibs=yes
  6846. if test "$with_gnu_ld" = yes; then
  6847. # If archive_cmds runs LD, not CC, wlarc should be empty
  6848. wlarc='${wl}'
  6849. # Set some defaults for GNU ld with shared library support. These
  6850. # are reset later if shared libraries are not supported. Putting them
  6851. # here allows them to be overridden if necessary.
  6852. runpath_var=LD_RUN_PATH
  6853. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6854. export_dynamic_flag_spec='${wl}--export-dynamic'
  6855. # ancient GNU ld didn't support --whole-archive et. al.
  6856. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6857. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6858. else
  6859. whole_archive_flag_spec=
  6860. fi
  6861. supports_anon_versioning=no
  6862. case `$LD -v 2>/dev/null` in
  6863. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6864. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6865. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6866. *\ 2.11.*) ;; # other 2.11 versions
  6867. *) supports_anon_versioning=yes ;;
  6868. esac
  6869. # See if GNU ld supports shared libraries.
  6870. case $host_os in
  6871. aix3* | aix4* | aix5*)
  6872. # On AIX/PPC, the GNU linker is very broken
  6873. if test "$host_cpu" != ia64; then
  6874. ld_shlibs=no
  6875. cat <<EOF 1>&2
  6876. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6877. *** to be unable to reliably create shared libraries on AIX.
  6878. *** Therefore, libtool is disabling shared libraries support. If you
  6879. *** really care for shared libraries, you may want to modify your PATH
  6880. *** so that a non-GNU linker is found, and then restart.
  6881. EOF
  6882. fi
  6883. ;;
  6884. amigaos*)
  6885. 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)'
  6886. hardcode_libdir_flag_spec='-L$libdir'
  6887. hardcode_minus_L=yes
  6888. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6889. # that the semantics of dynamic libraries on AmigaOS, at least up
  6890. # to version 4, is to share data among multiple programs linked
  6891. # with the same dynamic library. Since this doesn't match the
  6892. # behavior of shared libraries on other platforms, we can't use
  6893. # them.
  6894. ld_shlibs=no
  6895. ;;
  6896. beos*)
  6897. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6898. allow_undefined_flag=unsupported
  6899. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6900. # support --undefined. This deserves some investigation. FIXME
  6901. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6902. else
  6903. ld_shlibs=no
  6904. fi
  6905. ;;
  6906. cygwin* | mingw* | pw32*)
  6907. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6908. # as there is no search path for DLLs.
  6909. hardcode_libdir_flag_spec='-L$libdir'
  6910. allow_undefined_flag=unsupported
  6911. always_export_symbols=no
  6912. enable_shared_with_static_runtimes=yes
  6913. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6914. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6915. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6916. # If the export-symbols file already is a .def file (1st line
  6917. # is EXPORTS), use it as is; otherwise, prepend...
  6918. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6919. cp $export_symbols $output_objdir/$soname.def;
  6920. else
  6921. echo EXPORTS > $output_objdir/$soname.def;
  6922. cat $export_symbols >> $output_objdir/$soname.def;
  6923. fi~
  6924. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6925. else
  6926. ld_shlibs=no
  6927. fi
  6928. ;;
  6929. linux*)
  6930. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6931. tmp_addflag=
  6932. case $cc_basename,$host_cpu in
  6933. pgcc*) # Portland Group C compiler
  6934. 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'
  6935. tmp_addflag=' $pic_flag'
  6936. ;;
  6937. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  6938. 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'
  6939. tmp_addflag=' $pic_flag -Mnomain' ;;
  6940. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6941. tmp_addflag=' -i_dynamic' ;;
  6942. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6943. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6944. ifc* | ifort*) # Intel Fortran compiler
  6945. tmp_addflag=' -nofor_main' ;;
  6946. esac
  6947. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6948. if test $supports_anon_versioning = yes; then
  6949. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6950. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6951. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6952. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6953. fi
  6954. else
  6955. ld_shlibs=no
  6956. fi
  6957. ;;
  6958. netbsd*)
  6959. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6960. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6961. wlarc=
  6962. else
  6963. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6964. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6965. fi
  6966. ;;
  6967. solaris* | sysv5*)
  6968. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6969. ld_shlibs=no
  6970. cat <<EOF 1>&2
  6971. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6972. *** create shared libraries on Solaris systems. Therefore, libtool
  6973. *** is disabling shared libraries support. We urge you to upgrade GNU
  6974. *** binutils to release 2.9.1 or newer. Another option is to modify
  6975. *** your PATH or compiler configuration so that the native linker is
  6976. *** used, and then restart.
  6977. EOF
  6978. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6979. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6980. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6981. else
  6982. ld_shlibs=no
  6983. fi
  6984. ;;
  6985. sunos4*)
  6986. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6987. wlarc=
  6988. hardcode_direct=yes
  6989. hardcode_shlibpath_var=no
  6990. ;;
  6991. *)
  6992. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6993. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6994. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6995. else
  6996. ld_shlibs=no
  6997. fi
  6998. ;;
  6999. esac
  7000. if test "$ld_shlibs" = no; then
  7001. runpath_var=
  7002. hardcode_libdir_flag_spec=
  7003. export_dynamic_flag_spec=
  7004. whole_archive_flag_spec=
  7005. fi
  7006. else
  7007. # PORTME fill in a description of your system's linker (not GNU ld)
  7008. case $host_os in
  7009. aix3*)
  7010. allow_undefined_flag=unsupported
  7011. always_export_symbols=yes
  7012. 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'
  7013. # Note: this linker hardcodes the directories in LIBPATH if there
  7014. # are no directories specified by -L.
  7015. hardcode_minus_L=yes
  7016. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7017. # Neither direct hardcoding nor static linking is supported with a
  7018. # broken collect2.
  7019. hardcode_direct=unsupported
  7020. fi
  7021. ;;
  7022. aix4* | aix5*)
  7023. if test "$host_cpu" = ia64; then
  7024. # On IA64, the linker does run time linking by default, so we don't
  7025. # have to do anything special.
  7026. aix_use_runtimelinking=no
  7027. exp_sym_flag='-Bexport'
  7028. no_entry_flag=""
  7029. else
  7030. # If we're using GNU nm, then we don't want the "-C" option.
  7031. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7032. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7033. 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'
  7034. else
  7035. 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'
  7036. fi
  7037. aix_use_runtimelinking=no
  7038. # Test if we are trying to use run time linking or normal
  7039. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7040. # need to do runtime linking.
  7041. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7042. for ld_flag in $LDFLAGS; do
  7043. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7044. aix_use_runtimelinking=yes
  7045. break
  7046. fi
  7047. done
  7048. esac
  7049. exp_sym_flag='-bexport'
  7050. no_entry_flag='-bnoentry'
  7051. fi
  7052. # When large executables or shared objects are built, AIX ld can
  7053. # have problems creating the table of contents. If linking a library
  7054. # or program results in "error TOC overflow" add -mminimal-toc to
  7055. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7056. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7057. archive_cmds=''
  7058. hardcode_direct=yes
  7059. hardcode_libdir_separator=':'
  7060. link_all_deplibs=yes
  7061. if test "$GCC" = yes; then
  7062. case $host_os in aix4.[012]|aix4.[012].*)
  7063. # We only want to do this on AIX 4.2 and lower, the check
  7064. # below for broken collect2 doesn't work under 4.3+
  7065. collect2name=`${CC} -print-prog-name=collect2`
  7066. if test -f "$collect2name" && \
  7067. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7068. then
  7069. # We have reworked collect2
  7070. hardcode_direct=yes
  7071. else
  7072. # We have old collect2
  7073. hardcode_direct=unsupported
  7074. # It fails to find uninstalled libraries when the uninstalled
  7075. # path is not listed in the libpath. Setting hardcode_minus_L
  7076. # to unsupported forces relinking
  7077. hardcode_minus_L=yes
  7078. hardcode_libdir_flag_spec='-L$libdir'
  7079. hardcode_libdir_separator=
  7080. fi
  7081. esac
  7082. shared_flag='-shared'
  7083. if test "$aix_use_runtimelinking" = yes; then
  7084. shared_flag="$shared_flag "'${wl}-G'
  7085. fi
  7086. else
  7087. # not using gcc
  7088. if test "$host_cpu" = ia64; then
  7089. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7090. # chokes on -Wl,-G. The following line is correct:
  7091. shared_flag='-G'
  7092. else
  7093. if test "$aix_use_runtimelinking" = yes; then
  7094. shared_flag='${wl}-G'
  7095. else
  7096. shared_flag='${wl}-bM:SRE'
  7097. fi
  7098. fi
  7099. fi
  7100. # It seems that -bexpall does not export symbols beginning with
  7101. # underscore (_), so it is better to generate a list of symbols to export.
  7102. always_export_symbols=yes
  7103. if test "$aix_use_runtimelinking" = yes; then
  7104. # Warning - without using the other runtime loading flags (-brtl),
  7105. # -berok will link without error, but may produce a broken library.
  7106. allow_undefined_flag='-berok'
  7107. # Determine the default libpath from the value encoded in an empty executable.
  7108. cat >conftest.$ac_ext <<_ACEOF
  7109. /* confdefs.h. */
  7110. _ACEOF
  7111. cat confdefs.h >>conftest.$ac_ext
  7112. cat >>conftest.$ac_ext <<_ACEOF
  7113. /* end confdefs.h. */
  7114. int
  7115. main ()
  7116. {
  7117. ;
  7118. return 0;
  7119. }
  7120. _ACEOF
  7121. rm -f conftest.$ac_objext conftest$ac_exeext
  7122. if { (ac_try="$ac_link"
  7123. case "(($ac_try" in
  7124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7125. *) ac_try_echo=$ac_try;;
  7126. esac
  7127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7128. (eval "$ac_link") 2>conftest.er1
  7129. ac_status=$?
  7130. grep -v '^ *+' conftest.er1 >conftest.err
  7131. rm -f conftest.er1
  7132. cat conftest.err >&5
  7133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7134. (exit $ac_status); } && {
  7135. test -z "$ac_c_werror_flag" ||
  7136. test ! -s conftest.err
  7137. } && test -s conftest$ac_exeext &&
  7138. $as_test_x conftest$ac_exeext; then
  7139. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7140. }'`
  7141. # Check for a 64-bit object if we didn't find anything.
  7142. 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; }
  7143. }'`; fi
  7144. else
  7145. echo "$as_me: failed program was:" >&5
  7146. sed 's/^/| /' conftest.$ac_ext >&5
  7147. fi
  7148. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7149. conftest$ac_exeext conftest.$ac_ext
  7150. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7151. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7152. 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"
  7153. else
  7154. if test "$host_cpu" = ia64; then
  7155. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7156. allow_undefined_flag="-z nodefs"
  7157. 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"
  7158. else
  7159. # Determine the default libpath from the value encoded in an empty executable.
  7160. cat >conftest.$ac_ext <<_ACEOF
  7161. /* confdefs.h. */
  7162. _ACEOF
  7163. cat confdefs.h >>conftest.$ac_ext
  7164. cat >>conftest.$ac_ext <<_ACEOF
  7165. /* end confdefs.h. */
  7166. int
  7167. main ()
  7168. {
  7169. ;
  7170. return 0;
  7171. }
  7172. _ACEOF
  7173. rm -f conftest.$ac_objext conftest$ac_exeext
  7174. if { (ac_try="$ac_link"
  7175. case "(($ac_try" in
  7176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7177. *) ac_try_echo=$ac_try;;
  7178. esac
  7179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7180. (eval "$ac_link") 2>conftest.er1
  7181. ac_status=$?
  7182. grep -v '^ *+' conftest.er1 >conftest.err
  7183. rm -f conftest.er1
  7184. cat conftest.err >&5
  7185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7186. (exit $ac_status); } && {
  7187. test -z "$ac_c_werror_flag" ||
  7188. test ! -s conftest.err
  7189. } && test -s conftest$ac_exeext &&
  7190. $as_test_x conftest$ac_exeext; then
  7191. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7192. }'`
  7193. # Check for a 64-bit object if we didn't find anything.
  7194. 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; }
  7195. }'`; fi
  7196. else
  7197. echo "$as_me: failed program was:" >&5
  7198. sed 's/^/| /' conftest.$ac_ext >&5
  7199. fi
  7200. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7201. conftest$ac_exeext conftest.$ac_ext
  7202. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7203. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7204. # Warning - without using the other run time loading flags,
  7205. # -berok will link without error, but may produce a broken library.
  7206. no_undefined_flag=' ${wl}-bernotok'
  7207. allow_undefined_flag=' ${wl}-berok'
  7208. # -bexpall does not export symbols beginning with underscore (_)
  7209. always_export_symbols=yes
  7210. # Exported symbols can be pulled into shared objects from archives
  7211. whole_archive_flag_spec=' '
  7212. archive_cmds_need_lc=yes
  7213. # This is similar to how AIX traditionally builds it's shared libraries.
  7214. 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'
  7215. fi
  7216. fi
  7217. ;;
  7218. amigaos*)
  7219. 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)'
  7220. hardcode_libdir_flag_spec='-L$libdir'
  7221. hardcode_minus_L=yes
  7222. # see comment about different semantics on the GNU ld section
  7223. ld_shlibs=no
  7224. ;;
  7225. bsdi[45]*)
  7226. export_dynamic_flag_spec=-rdynamic
  7227. ;;
  7228. cygwin* | mingw* | pw32*)
  7229. # When not using gcc, we currently assume that we are using
  7230. # Microsoft Visual C++.
  7231. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7232. # no search path for DLLs.
  7233. hardcode_libdir_flag_spec=' '
  7234. allow_undefined_flag=unsupported
  7235. # Tell ltmain to make .lib files, not .a files.
  7236. libext=lib
  7237. # Tell ltmain to make .dll files, not .so files.
  7238. shrext_cmds=".dll"
  7239. # FIXME: Setting linknames here is a bad hack.
  7240. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7241. # The linker will automatically build a .lib file if we build a DLL.
  7242. old_archive_From_new_cmds='true'
  7243. # FIXME: Should let the user specify the lib program.
  7244. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7245. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7246. enable_shared_with_static_runtimes=yes
  7247. ;;
  7248. darwin* | rhapsody*)
  7249. case "$host_os" in
  7250. rhapsody* | darwin1.[012])
  7251. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7252. ;;
  7253. *) # Darwin 1.3 on
  7254. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7255. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7256. else
  7257. case ${MACOSX_DEPLOYMENT_TARGET} in
  7258. 10.[012])
  7259. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7260. ;;
  7261. 10.*)
  7262. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7263. ;;
  7264. esac
  7265. fi
  7266. ;;
  7267. esac
  7268. archive_cmds_need_lc=no
  7269. hardcode_direct=no
  7270. hardcode_automatic=yes
  7271. hardcode_shlibpath_var=unsupported
  7272. whole_archive_flag_spec=''
  7273. link_all_deplibs=yes
  7274. if test "$GCC" = yes ; then
  7275. output_verbose_link_cmd='echo'
  7276. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7277. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7278. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7279. 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}'
  7280. 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}'
  7281. else
  7282. case $cc_basename in
  7283. xlc*)
  7284. output_verbose_link_cmd='echo'
  7285. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7286. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7287. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7288. 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}'
  7289. 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}'
  7290. ;;
  7291. *)
  7292. ld_shlibs=no
  7293. ;;
  7294. esac
  7295. fi
  7296. ;;
  7297. dgux*)
  7298. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7299. hardcode_libdir_flag_spec='-L$libdir'
  7300. hardcode_shlibpath_var=no
  7301. ;;
  7302. freebsd1*)
  7303. ld_shlibs=no
  7304. ;;
  7305. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7306. # support. Future versions do this automatically, but an explicit c++rt0.o
  7307. # does not break anything, and helps significantly (at the cost of a little
  7308. # extra space).
  7309. freebsd2.2*)
  7310. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7311. hardcode_libdir_flag_spec='-R$libdir'
  7312. hardcode_direct=yes
  7313. hardcode_shlibpath_var=no
  7314. ;;
  7315. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7316. freebsd2*)
  7317. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7318. hardcode_direct=yes
  7319. hardcode_minus_L=yes
  7320. hardcode_shlibpath_var=no
  7321. ;;
  7322. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7323. freebsd* | kfreebsd*-gnu | dragonfly*)
  7324. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7325. hardcode_libdir_flag_spec='-R$libdir'
  7326. hardcode_direct=yes
  7327. hardcode_shlibpath_var=no
  7328. ;;
  7329. hpux9*)
  7330. if test "$GCC" = yes; then
  7331. 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'
  7332. else
  7333. 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'
  7334. fi
  7335. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7336. hardcode_libdir_separator=:
  7337. hardcode_direct=yes
  7338. # hardcode_minus_L: Not really in the search PATH,
  7339. # but as the default location of the library.
  7340. hardcode_minus_L=yes
  7341. export_dynamic_flag_spec='${wl}-E'
  7342. ;;
  7343. hpux10* | hpux11*)
  7344. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7345. case "$host_cpu" in
  7346. hppa*64*|ia64*)
  7347. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7348. ;;
  7349. *)
  7350. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7351. ;;
  7352. esac
  7353. else
  7354. case "$host_cpu" in
  7355. hppa*64*|ia64*)
  7356. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7357. ;;
  7358. *)
  7359. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7360. ;;
  7361. esac
  7362. fi
  7363. if test "$with_gnu_ld" = no; then
  7364. case "$host_cpu" in
  7365. hppa*64*)
  7366. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7367. hardcode_libdir_flag_spec_ld='+b $libdir'
  7368. hardcode_libdir_separator=:
  7369. hardcode_direct=no
  7370. hardcode_shlibpath_var=no
  7371. ;;
  7372. ia64*)
  7373. hardcode_libdir_flag_spec='-L$libdir'
  7374. hardcode_direct=no
  7375. hardcode_shlibpath_var=no
  7376. # hardcode_minus_L: Not really in the search PATH,
  7377. # but as the default location of the library.
  7378. hardcode_minus_L=yes
  7379. ;;
  7380. *)
  7381. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7382. hardcode_libdir_separator=:
  7383. hardcode_direct=yes
  7384. export_dynamic_flag_spec='${wl}-E'
  7385. # hardcode_minus_L: Not really in the search PATH,
  7386. # but as the default location of the library.
  7387. hardcode_minus_L=yes
  7388. ;;
  7389. esac
  7390. fi
  7391. ;;
  7392. irix5* | irix6* | nonstopux*)
  7393. if test "$GCC" = yes; then
  7394. 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'
  7395. else
  7396. 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'
  7397. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7398. fi
  7399. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7400. hardcode_libdir_separator=:
  7401. link_all_deplibs=yes
  7402. ;;
  7403. netbsd*)
  7404. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7405. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7406. else
  7407. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7408. fi
  7409. hardcode_libdir_flag_spec='-R$libdir'
  7410. hardcode_direct=yes
  7411. hardcode_shlibpath_var=no
  7412. ;;
  7413. newsos6)
  7414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7415. hardcode_direct=yes
  7416. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7417. hardcode_libdir_separator=:
  7418. hardcode_shlibpath_var=no
  7419. ;;
  7420. openbsd*)
  7421. hardcode_direct=yes
  7422. hardcode_shlibpath_var=no
  7423. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7424. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7425. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7426. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7427. export_dynamic_flag_spec='${wl}-E'
  7428. else
  7429. case $host_os in
  7430. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7431. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7432. hardcode_libdir_flag_spec='-R$libdir'
  7433. ;;
  7434. *)
  7435. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7436. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7437. ;;
  7438. esac
  7439. fi
  7440. ;;
  7441. os2*)
  7442. hardcode_libdir_flag_spec='-L$libdir'
  7443. hardcode_minus_L=yes
  7444. allow_undefined_flag=unsupported
  7445. 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'
  7446. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7447. ;;
  7448. osf3*)
  7449. if test "$GCC" = yes; then
  7450. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7451. 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'
  7452. else
  7453. allow_undefined_flag=' -expect_unresolved \*'
  7454. 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'
  7455. fi
  7456. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7457. hardcode_libdir_separator=:
  7458. ;;
  7459. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7460. if test "$GCC" = yes; then
  7461. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7462. 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'
  7463. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7464. else
  7465. allow_undefined_flag=' -expect_unresolved \*'
  7466. 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'
  7467. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7468. $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'
  7469. # Both c and cxx compiler support -rpath directly
  7470. hardcode_libdir_flag_spec='-rpath $libdir'
  7471. fi
  7472. hardcode_libdir_separator=:
  7473. ;;
  7474. sco3.2v5*)
  7475. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7476. hardcode_shlibpath_var=no
  7477. export_dynamic_flag_spec='${wl}-Bexport'
  7478. runpath_var=LD_RUN_PATH
  7479. hardcode_runpath_var=yes
  7480. ;;
  7481. solaris*)
  7482. no_undefined_flag=' -z text'
  7483. if test "$GCC" = yes; then
  7484. wlarc='${wl}'
  7485. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7486. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7487. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7488. else
  7489. wlarc=''
  7490. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7491. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7492. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7493. fi
  7494. hardcode_libdir_flag_spec='-R$libdir'
  7495. hardcode_shlibpath_var=no
  7496. case $host_os in
  7497. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7498. *)
  7499. # The compiler driver will combine linker options so we
  7500. # cannot just pass the convience library names through
  7501. # without $wl, iff we do not link with $LD.
  7502. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7503. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7504. case $wlarc in
  7505. '')
  7506. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7507. *)
  7508. 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' ;;
  7509. esac ;;
  7510. esac
  7511. link_all_deplibs=yes
  7512. ;;
  7513. sunos4*)
  7514. if test "x$host_vendor" = xsequent; then
  7515. # Use $CC to link under sequent, because it throws in some extra .o
  7516. # files that make .init and .fini sections work.
  7517. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7518. else
  7519. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7520. fi
  7521. hardcode_libdir_flag_spec='-L$libdir'
  7522. hardcode_direct=yes
  7523. hardcode_minus_L=yes
  7524. hardcode_shlibpath_var=no
  7525. ;;
  7526. sysv4)
  7527. case $host_vendor in
  7528. sni)
  7529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7530. hardcode_direct=yes # is this really true???
  7531. ;;
  7532. siemens)
  7533. ## LD is ld it makes a PLAMLIB
  7534. ## CC just makes a GrossModule.
  7535. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7536. reload_cmds='$CC -r -o $output$reload_objs'
  7537. hardcode_direct=no
  7538. ;;
  7539. motorola)
  7540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7541. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7542. ;;
  7543. esac
  7544. runpath_var='LD_RUN_PATH'
  7545. hardcode_shlibpath_var=no
  7546. ;;
  7547. sysv4.3*)
  7548. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7549. hardcode_shlibpath_var=no
  7550. export_dynamic_flag_spec='-Bexport'
  7551. ;;
  7552. sysv4*MP*)
  7553. if test -d /usr/nec; then
  7554. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7555. hardcode_shlibpath_var=no
  7556. runpath_var=LD_RUN_PATH
  7557. hardcode_runpath_var=yes
  7558. ld_shlibs=yes
  7559. fi
  7560. ;;
  7561. sysv4.2uw2*)
  7562. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7563. hardcode_direct=yes
  7564. hardcode_minus_L=no
  7565. hardcode_shlibpath_var=no
  7566. hardcode_runpath_var=yes
  7567. runpath_var=LD_RUN_PATH
  7568. ;;
  7569. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  7570. no_undefined_flag='${wl}-z ${wl}text'
  7571. if test "$GCC" = yes; then
  7572. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7573. else
  7574. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7575. fi
  7576. runpath_var='LD_RUN_PATH'
  7577. hardcode_shlibpath_var=no
  7578. ;;
  7579. sysv5*)
  7580. no_undefined_flag=' -z text'
  7581. # $CC -shared without GNU ld will not create a library from C++
  7582. # object files and a static libstdc++, better avoid it by now
  7583. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7584. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7585. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7586. hardcode_libdir_flag_spec=
  7587. hardcode_shlibpath_var=no
  7588. runpath_var='LD_RUN_PATH'
  7589. ;;
  7590. uts4*)
  7591. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7592. hardcode_libdir_flag_spec='-L$libdir'
  7593. hardcode_shlibpath_var=no
  7594. ;;
  7595. *)
  7596. ld_shlibs=no
  7597. ;;
  7598. esac
  7599. fi
  7600. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7601. echo "${ECHO_T}$ld_shlibs" >&6; }
  7602. test "$ld_shlibs" = no && can_build_shared=no
  7603. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7604. if test "$GCC" = yes; then
  7605. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7606. fi
  7607. #
  7608. # Do we need to explicitly link libc?
  7609. #
  7610. case "x$archive_cmds_need_lc" in
  7611. x|xyes)
  7612. # Assume -lc should be added
  7613. archive_cmds_need_lc=yes
  7614. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7615. case $archive_cmds in
  7616. *'~'*)
  7617. # FIXME: we may have to deal with multi-command sequences.
  7618. ;;
  7619. '$CC '*)
  7620. # Test whether the compiler implicitly links with -lc since on some
  7621. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7622. # to ld, don't add -lc before -lgcc.
  7623. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7624. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7625. $rm conftest*
  7626. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7627. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7628. (eval $ac_compile) 2>&5
  7629. ac_status=$?
  7630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7631. (exit $ac_status); } 2>conftest.err; then
  7632. soname=conftest
  7633. lib=conftest
  7634. libobjs=conftest.$ac_objext
  7635. deplibs=
  7636. wl=$lt_prog_compiler_wl
  7637. compiler_flags=-v
  7638. linker_flags=-v
  7639. verstring=
  7640. output_objdir=.
  7641. libname=conftest
  7642. lt_save_allow_undefined_flag=$allow_undefined_flag
  7643. allow_undefined_flag=
  7644. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7645. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7646. ac_status=$?
  7647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7648. (exit $ac_status); }
  7649. then
  7650. archive_cmds_need_lc=no
  7651. else
  7652. archive_cmds_need_lc=yes
  7653. fi
  7654. allow_undefined_flag=$lt_save_allow_undefined_flag
  7655. else
  7656. cat conftest.err 1>&5
  7657. fi
  7658. $rm conftest*
  7659. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7660. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7661. ;;
  7662. esac
  7663. fi
  7664. ;;
  7665. esac
  7666. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7667. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7668. library_names_spec=
  7669. libname_spec='lib$name'
  7670. soname_spec=
  7671. shrext_cmds=".so"
  7672. postinstall_cmds=
  7673. postuninstall_cmds=
  7674. finish_cmds=
  7675. finish_eval=
  7676. shlibpath_var=
  7677. shlibpath_overrides_runpath=unknown
  7678. version_type=none
  7679. dynamic_linker="$host_os ld.so"
  7680. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7681. if test "$GCC" = yes; then
  7682. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7683. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7684. # if the path contains ";" then we assume it to be the separator
  7685. # otherwise default to the standard path separator (i.e. ":") - it is
  7686. # assumed that no part of a normal pathname contains ";" but that should
  7687. # okay in the real world where ";" in dirpaths is itself problematic.
  7688. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7689. else
  7690. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7691. fi
  7692. else
  7693. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7694. fi
  7695. need_lib_prefix=unknown
  7696. hardcode_into_libs=no
  7697. # when you set need_version to no, make sure it does not cause -set_version
  7698. # flags to be left without arguments
  7699. need_version=unknown
  7700. case $host_os in
  7701. aix3*)
  7702. version_type=linux
  7703. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7704. shlibpath_var=LIBPATH
  7705. # AIX 3 has no versioning support, so we append a major version to the name.
  7706. soname_spec='${libname}${release}${shared_ext}$major'
  7707. ;;
  7708. aix4* | aix5*)
  7709. version_type=linux
  7710. need_lib_prefix=no
  7711. need_version=no
  7712. hardcode_into_libs=yes
  7713. if test "$host_cpu" = ia64; then
  7714. # AIX 5 supports IA64
  7715. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7716. shlibpath_var=LD_LIBRARY_PATH
  7717. else
  7718. # With GCC up to 2.95.x, collect2 would create an import file
  7719. # for dependence libraries. The import file would start with
  7720. # the line `#! .'. This would cause the generated library to
  7721. # depend on `.', always an invalid library. This was fixed in
  7722. # development snapshots of GCC prior to 3.0.
  7723. case $host_os in
  7724. aix4 | aix4.[01] | aix4.[01].*)
  7725. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7726. echo ' yes '
  7727. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7728. :
  7729. else
  7730. can_build_shared=no
  7731. fi
  7732. ;;
  7733. esac
  7734. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7735. # soname into executable. Probably we can add versioning support to
  7736. # collect2, so additional links can be useful in future.
  7737. if test "$aix_use_runtimelinking" = yes; then
  7738. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7739. # instead of lib<name>.a to let people know that these are not
  7740. # typical AIX shared libraries.
  7741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7742. else
  7743. # We preserve .a as extension for shared libraries through AIX4.2
  7744. # and later when we are not doing run time linking.
  7745. library_names_spec='${libname}${release}.a $libname.a'
  7746. soname_spec='${libname}${release}${shared_ext}$major'
  7747. fi
  7748. shlibpath_var=LIBPATH
  7749. fi
  7750. ;;
  7751. amigaos*)
  7752. library_names_spec='$libname.ixlibrary $libname.a'
  7753. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7754. 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'
  7755. ;;
  7756. beos*)
  7757. library_names_spec='${libname}${shared_ext}'
  7758. dynamic_linker="$host_os ld.so"
  7759. shlibpath_var=LIBRARY_PATH
  7760. ;;
  7761. bsdi[45]*)
  7762. version_type=linux
  7763. need_version=no
  7764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7765. soname_spec='${libname}${release}${shared_ext}$major'
  7766. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7767. shlibpath_var=LD_LIBRARY_PATH
  7768. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7769. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7770. # the default ld.so.conf also contains /usr/contrib/lib and
  7771. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7772. # libtool to hard-code these into programs
  7773. ;;
  7774. cygwin* | mingw* | pw32*)
  7775. version_type=windows
  7776. shrext_cmds=".dll"
  7777. need_version=no
  7778. need_lib_prefix=no
  7779. case $GCC,$host_os in
  7780. yes,cygwin* | yes,mingw* | yes,pw32*)
  7781. library_names_spec='$libname.dll.a'
  7782. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7783. postinstall_cmds='base_file=`basename \${file}`~
  7784. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7785. dldir=$destdir/`dirname \$dlpath`~
  7786. test -d \$dldir || mkdir -p \$dldir~
  7787. $install_prog $dir/$dlname \$dldir/$dlname'
  7788. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7789. dlpath=$dir/\$dldll~
  7790. $rm \$dlpath'
  7791. shlibpath_overrides_runpath=yes
  7792. case $host_os in
  7793. cygwin*)
  7794. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7795. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7796. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7797. ;;
  7798. mingw*)
  7799. # MinGW DLLs use traditional 'lib' prefix
  7800. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7801. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7802. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7803. # It is most probably a Windows format PATH printed by
  7804. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7805. # path with ; separators, and with drive letters. We can handle the
  7806. # drive letters (cygwin fileutils understands them), so leave them,
  7807. # especially as we might pass files found there to a mingw objdump,
  7808. # which wouldn't understand a cygwinified path. Ahh.
  7809. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7810. else
  7811. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7812. fi
  7813. ;;
  7814. pw32*)
  7815. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7816. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7817. ;;
  7818. esac
  7819. ;;
  7820. *)
  7821. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7822. ;;
  7823. esac
  7824. dynamic_linker='Win32 ld.exe'
  7825. # FIXME: first we should search . and the directory the executable is in
  7826. shlibpath_var=PATH
  7827. ;;
  7828. darwin* | rhapsody*)
  7829. dynamic_linker="$host_os dyld"
  7830. version_type=darwin
  7831. need_lib_prefix=no
  7832. need_version=no
  7833. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7834. soname_spec='${libname}${release}${major}$shared_ext'
  7835. shlibpath_overrides_runpath=yes
  7836. shlibpath_var=DYLD_LIBRARY_PATH
  7837. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  7838. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7839. if test "$GCC" = yes; then
  7840. 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"`
  7841. else
  7842. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7843. fi
  7844. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7845. ;;
  7846. dgux*)
  7847. version_type=linux
  7848. need_lib_prefix=no
  7849. need_version=no
  7850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7851. soname_spec='${libname}${release}${shared_ext}$major'
  7852. shlibpath_var=LD_LIBRARY_PATH
  7853. ;;
  7854. freebsd1*)
  7855. dynamic_linker=no
  7856. ;;
  7857. kfreebsd*-gnu)
  7858. version_type=linux
  7859. need_lib_prefix=no
  7860. need_version=no
  7861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7862. soname_spec='${libname}${release}${shared_ext}$major'
  7863. shlibpath_var=LD_LIBRARY_PATH
  7864. shlibpath_overrides_runpath=no
  7865. hardcode_into_libs=yes
  7866. dynamic_linker='GNU ld.so'
  7867. ;;
  7868. freebsd* | dragonfly*)
  7869. # DragonFly does not have aout. When/if they implement a new
  7870. # versioning mechanism, adjust this.
  7871. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7872. version_type=freebsd-$objformat
  7873. case $version_type in
  7874. freebsd-elf*)
  7875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7876. need_version=no
  7877. need_lib_prefix=no
  7878. ;;
  7879. freebsd-*)
  7880. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7881. need_version=yes
  7882. ;;
  7883. esac
  7884. shlibpath_var=LD_LIBRARY_PATH
  7885. case $host_os in
  7886. freebsd2*)
  7887. shlibpath_overrides_runpath=yes
  7888. ;;
  7889. freebsd3.[01]* | freebsdelf3.[01]*)
  7890. shlibpath_overrides_runpath=yes
  7891. hardcode_into_libs=yes
  7892. ;;
  7893. *) # from 3.2 on
  7894. shlibpath_overrides_runpath=no
  7895. hardcode_into_libs=yes
  7896. ;;
  7897. esac
  7898. ;;
  7899. gnu*)
  7900. version_type=linux
  7901. need_lib_prefix=no
  7902. need_version=no
  7903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7904. soname_spec='${libname}${release}${shared_ext}$major'
  7905. shlibpath_var=LD_LIBRARY_PATH
  7906. hardcode_into_libs=yes
  7907. ;;
  7908. hpux9* | hpux10* | hpux11*)
  7909. # Give a soname corresponding to the major version so that dld.sl refuses to
  7910. # link against other versions.
  7911. version_type=sunos
  7912. need_lib_prefix=no
  7913. need_version=no
  7914. case "$host_cpu" in
  7915. ia64*)
  7916. shrext_cmds='.so'
  7917. hardcode_into_libs=yes
  7918. dynamic_linker="$host_os dld.so"
  7919. shlibpath_var=LD_LIBRARY_PATH
  7920. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7922. soname_spec='${libname}${release}${shared_ext}$major'
  7923. if test "X$HPUX_IA64_MODE" = X32; then
  7924. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7925. else
  7926. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7927. fi
  7928. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7929. ;;
  7930. hppa*64*)
  7931. shrext_cmds='.sl'
  7932. hardcode_into_libs=yes
  7933. dynamic_linker="$host_os dld.sl"
  7934. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7935. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7937. soname_spec='${libname}${release}${shared_ext}$major'
  7938. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7939. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7940. ;;
  7941. *)
  7942. shrext_cmds='.sl'
  7943. dynamic_linker="$host_os dld.sl"
  7944. shlibpath_var=SHLIB_PATH
  7945. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7947. soname_spec='${libname}${release}${shared_ext}$major'
  7948. ;;
  7949. esac
  7950. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7951. postinstall_cmds='chmod 555 $lib'
  7952. ;;
  7953. irix5* | irix6* | nonstopux*)
  7954. case $host_os in
  7955. nonstopux*) version_type=nonstopux ;;
  7956. *)
  7957. if test "$lt_cv_prog_gnu_ld" = yes; then
  7958. version_type=linux
  7959. else
  7960. version_type=irix
  7961. fi ;;
  7962. esac
  7963. need_lib_prefix=no
  7964. need_version=no
  7965. soname_spec='${libname}${release}${shared_ext}$major'
  7966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7967. case $host_os in
  7968. irix5* | nonstopux*)
  7969. libsuff= shlibsuff=
  7970. ;;
  7971. *)
  7972. case $LD in # libtool.m4 will add one of these switches to LD
  7973. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7974. libsuff= shlibsuff= libmagic=32-bit;;
  7975. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7976. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7977. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7978. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7979. *) libsuff= shlibsuff= libmagic=never-match;;
  7980. esac
  7981. ;;
  7982. esac
  7983. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7984. shlibpath_overrides_runpath=no
  7985. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7986. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7987. hardcode_into_libs=yes
  7988. ;;
  7989. # No shared lib support for Linux oldld, aout, or coff.
  7990. linux*oldld* | linux*aout* | linux*coff*)
  7991. dynamic_linker=no
  7992. ;;
  7993. # This must be Linux ELF.
  7994. linux*)
  7995. version_type=linux
  7996. need_lib_prefix=no
  7997. need_version=no
  7998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7999. soname_spec='${libname}${release}${shared_ext}$major'
  8000. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8001. shlibpath_var=LD_LIBRARY_PATH
  8002. shlibpath_overrides_runpath=no
  8003. # This implies no fast_install, which is unacceptable.
  8004. # Some rework will be needed to allow for fast_install
  8005. # before this can be enabled.
  8006. hardcode_into_libs=yes
  8007. # Append ld.so.conf contents to the search path
  8008. if test -f /etc/ld.so.conf; then
  8009. 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' ' '`
  8010. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8011. fi
  8012. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8013. # powerpc, because MkLinux only supported shared libraries with the
  8014. # GNU dynamic linker. Since this was broken with cross compilers,
  8015. # most powerpc-linux boxes support dynamic linking these days and
  8016. # people can always --disable-shared, the test was removed, and we
  8017. # assume the GNU/Linux dynamic linker is in use.
  8018. dynamic_linker='GNU/Linux ld.so'
  8019. ;;
  8020. knetbsd*-gnu)
  8021. version_type=linux
  8022. need_lib_prefix=no
  8023. need_version=no
  8024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8025. soname_spec='${libname}${release}${shared_ext}$major'
  8026. shlibpath_var=LD_LIBRARY_PATH
  8027. shlibpath_overrides_runpath=no
  8028. hardcode_into_libs=yes
  8029. dynamic_linker='GNU ld.so'
  8030. ;;
  8031. netbsd*)
  8032. version_type=sunos
  8033. need_lib_prefix=no
  8034. need_version=no
  8035. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8037. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8038. dynamic_linker='NetBSD (a.out) ld.so'
  8039. else
  8040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8041. soname_spec='${libname}${release}${shared_ext}$major'
  8042. dynamic_linker='NetBSD ld.elf_so'
  8043. fi
  8044. shlibpath_var=LD_LIBRARY_PATH
  8045. shlibpath_overrides_runpath=yes
  8046. hardcode_into_libs=yes
  8047. ;;
  8048. newsos6)
  8049. version_type=linux
  8050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8051. shlibpath_var=LD_LIBRARY_PATH
  8052. shlibpath_overrides_runpath=yes
  8053. ;;
  8054. nto-qnx*)
  8055. version_type=linux
  8056. need_lib_prefix=no
  8057. need_version=no
  8058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8059. soname_spec='${libname}${release}${shared_ext}$major'
  8060. shlibpath_var=LD_LIBRARY_PATH
  8061. shlibpath_overrides_runpath=yes
  8062. ;;
  8063. openbsd*)
  8064. version_type=sunos
  8065. need_lib_prefix=no
  8066. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8067. case $host_os in
  8068. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8069. *) need_version=no ;;
  8070. esac
  8071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8072. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8073. shlibpath_var=LD_LIBRARY_PATH
  8074. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8075. case $host_os in
  8076. openbsd2.[89] | openbsd2.[89].*)
  8077. shlibpath_overrides_runpath=no
  8078. ;;
  8079. *)
  8080. shlibpath_overrides_runpath=yes
  8081. ;;
  8082. esac
  8083. else
  8084. shlibpath_overrides_runpath=yes
  8085. fi
  8086. ;;
  8087. os2*)
  8088. libname_spec='$name'
  8089. shrext_cmds=".dll"
  8090. need_lib_prefix=no
  8091. library_names_spec='$libname${shared_ext} $libname.a'
  8092. dynamic_linker='OS/2 ld.exe'
  8093. shlibpath_var=LIBPATH
  8094. ;;
  8095. osf3* | osf4* | osf5*)
  8096. version_type=osf
  8097. need_lib_prefix=no
  8098. need_version=no
  8099. soname_spec='${libname}${release}${shared_ext}$major'
  8100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8101. shlibpath_var=LD_LIBRARY_PATH
  8102. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8103. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8104. ;;
  8105. sco3.2v5*)
  8106. version_type=osf
  8107. soname_spec='${libname}${release}${shared_ext}$major'
  8108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8109. shlibpath_var=LD_LIBRARY_PATH
  8110. ;;
  8111. solaris*)
  8112. version_type=linux
  8113. need_lib_prefix=no
  8114. need_version=no
  8115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8116. soname_spec='${libname}${release}${shared_ext}$major'
  8117. shlibpath_var=LD_LIBRARY_PATH
  8118. shlibpath_overrides_runpath=yes
  8119. hardcode_into_libs=yes
  8120. # ldd complains unless libraries are executable
  8121. postinstall_cmds='chmod +x $lib'
  8122. ;;
  8123. sunos4*)
  8124. version_type=sunos
  8125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8126. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8127. shlibpath_var=LD_LIBRARY_PATH
  8128. shlibpath_overrides_runpath=yes
  8129. if test "$with_gnu_ld" = yes; then
  8130. need_lib_prefix=no
  8131. fi
  8132. need_version=yes
  8133. ;;
  8134. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8135. version_type=linux
  8136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8137. soname_spec='${libname}${release}${shared_ext}$major'
  8138. shlibpath_var=LD_LIBRARY_PATH
  8139. case $host_vendor in
  8140. sni)
  8141. shlibpath_overrides_runpath=no
  8142. need_lib_prefix=no
  8143. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8144. runpath_var=LD_RUN_PATH
  8145. ;;
  8146. siemens)
  8147. need_lib_prefix=no
  8148. ;;
  8149. motorola)
  8150. need_lib_prefix=no
  8151. need_version=no
  8152. shlibpath_overrides_runpath=no
  8153. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8154. ;;
  8155. esac
  8156. ;;
  8157. sysv4*MP*)
  8158. if test -d /usr/nec ;then
  8159. version_type=linux
  8160. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8161. soname_spec='$libname${shared_ext}.$major'
  8162. shlibpath_var=LD_LIBRARY_PATH
  8163. fi
  8164. ;;
  8165. uts4*)
  8166. version_type=linux
  8167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8168. soname_spec='${libname}${release}${shared_ext}$major'
  8169. shlibpath_var=LD_LIBRARY_PATH
  8170. ;;
  8171. *)
  8172. dynamic_linker=no
  8173. ;;
  8174. esac
  8175. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8176. echo "${ECHO_T}$dynamic_linker" >&6; }
  8177. test "$dynamic_linker" = no && can_build_shared=no
  8178. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8179. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8180. hardcode_action=
  8181. if test -n "$hardcode_libdir_flag_spec" || \
  8182. test -n "$runpath_var" || \
  8183. test "X$hardcode_automatic" = "Xyes" ; then
  8184. # We can hardcode non-existant directories.
  8185. if test "$hardcode_direct" != no &&
  8186. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8187. # have to relink, otherwise we might link with an installed library
  8188. # when we should be linking with a yet-to-be-installed one
  8189. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8190. test "$hardcode_minus_L" != no; then
  8191. # Linking always hardcodes the temporary library directory.
  8192. hardcode_action=relink
  8193. else
  8194. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8195. hardcode_action=immediate
  8196. fi
  8197. else
  8198. # We cannot hardcode anything, or else we can only hardcode existing
  8199. # directories.
  8200. hardcode_action=unsupported
  8201. fi
  8202. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8203. echo "${ECHO_T}$hardcode_action" >&6; }
  8204. if test "$hardcode_action" = relink; then
  8205. # Fast installation is not supported
  8206. enable_fast_install=no
  8207. elif test "$shlibpath_overrides_runpath" = yes ||
  8208. test "$enable_shared" = no; then
  8209. # Fast installation is not necessary
  8210. enable_fast_install=needless
  8211. fi
  8212. striplib=
  8213. old_striplib=
  8214. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8215. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8216. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8217. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8218. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8219. { echo "$as_me:$LINENO: result: yes" >&5
  8220. echo "${ECHO_T}yes" >&6; }
  8221. else
  8222. # FIXME - insert some real tests, host_os isn't really good enough
  8223. case $host_os in
  8224. darwin*)
  8225. if test -n "$STRIP" ; then
  8226. striplib="$STRIP -x"
  8227. { echo "$as_me:$LINENO: result: yes" >&5
  8228. echo "${ECHO_T}yes" >&6; }
  8229. else
  8230. { echo "$as_me:$LINENO: result: no" >&5
  8231. echo "${ECHO_T}no" >&6; }
  8232. fi
  8233. ;;
  8234. *)
  8235. { echo "$as_me:$LINENO: result: no" >&5
  8236. echo "${ECHO_T}no" >&6; }
  8237. ;;
  8238. esac
  8239. fi
  8240. if test "x$enable_dlopen" != xyes; then
  8241. enable_dlopen=unknown
  8242. enable_dlopen_self=unknown
  8243. enable_dlopen_self_static=unknown
  8244. else
  8245. lt_cv_dlopen=no
  8246. lt_cv_dlopen_libs=
  8247. case $host_os in
  8248. beos*)
  8249. lt_cv_dlopen="load_add_on"
  8250. lt_cv_dlopen_libs=
  8251. lt_cv_dlopen_self=yes
  8252. ;;
  8253. mingw* | pw32*)
  8254. lt_cv_dlopen="LoadLibrary"
  8255. lt_cv_dlopen_libs=
  8256. ;;
  8257. cygwin*)
  8258. lt_cv_dlopen="dlopen"
  8259. lt_cv_dlopen_libs=
  8260. ;;
  8261. darwin*)
  8262. # if libdl is installed we need to link against it
  8263. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8264. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8265. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8266. echo $ECHO_N "(cached) $ECHO_C" >&6
  8267. else
  8268. ac_check_lib_save_LIBS=$LIBS
  8269. LIBS="-ldl $LIBS"
  8270. cat >conftest.$ac_ext <<_ACEOF
  8271. /* confdefs.h. */
  8272. _ACEOF
  8273. cat confdefs.h >>conftest.$ac_ext
  8274. cat >>conftest.$ac_ext <<_ACEOF
  8275. /* end confdefs.h. */
  8276. /* Override any GCC internal prototype to avoid an error.
  8277. Use char because int might match the return type of a GCC
  8278. builtin and then its argument prototype would still apply. */
  8279. #ifdef __cplusplus
  8280. extern "C"
  8281. #endif
  8282. char dlopen ();
  8283. int
  8284. main ()
  8285. {
  8286. return dlopen ();
  8287. ;
  8288. return 0;
  8289. }
  8290. _ACEOF
  8291. rm -f conftest.$ac_objext conftest$ac_exeext
  8292. if { (ac_try="$ac_link"
  8293. case "(($ac_try" in
  8294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8295. *) ac_try_echo=$ac_try;;
  8296. esac
  8297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8298. (eval "$ac_link") 2>conftest.er1
  8299. ac_status=$?
  8300. grep -v '^ *+' conftest.er1 >conftest.err
  8301. rm -f conftest.er1
  8302. cat conftest.err >&5
  8303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8304. (exit $ac_status); } && {
  8305. test -z "$ac_c_werror_flag" ||
  8306. test ! -s conftest.err
  8307. } && test -s conftest$ac_exeext &&
  8308. $as_test_x conftest$ac_exeext; then
  8309. ac_cv_lib_dl_dlopen=yes
  8310. else
  8311. echo "$as_me: failed program was:" >&5
  8312. sed 's/^/| /' conftest.$ac_ext >&5
  8313. ac_cv_lib_dl_dlopen=no
  8314. fi
  8315. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8316. conftest$ac_exeext conftest.$ac_ext
  8317. LIBS=$ac_check_lib_save_LIBS
  8318. fi
  8319. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8320. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8321. if test $ac_cv_lib_dl_dlopen = yes; then
  8322. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8323. else
  8324. lt_cv_dlopen="dyld"
  8325. lt_cv_dlopen_libs=
  8326. lt_cv_dlopen_self=yes
  8327. fi
  8328. ;;
  8329. *)
  8330. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8331. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8332. if test "${ac_cv_func_shl_load+set}" = set; then
  8333. echo $ECHO_N "(cached) $ECHO_C" >&6
  8334. else
  8335. cat >conftest.$ac_ext <<_ACEOF
  8336. /* confdefs.h. */
  8337. _ACEOF
  8338. cat confdefs.h >>conftest.$ac_ext
  8339. cat >>conftest.$ac_ext <<_ACEOF
  8340. /* end confdefs.h. */
  8341. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8342. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8343. #define shl_load innocuous_shl_load
  8344. /* System header to define __stub macros and hopefully few prototypes,
  8345. which can conflict with char shl_load (); below.
  8346. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8347. <limits.h> exists even on freestanding compilers. */
  8348. #ifdef __STDC__
  8349. # include <limits.h>
  8350. #else
  8351. # include <assert.h>
  8352. #endif
  8353. #undef shl_load
  8354. /* Override any GCC internal prototype to avoid an error.
  8355. Use char because int might match the return type of a GCC
  8356. builtin and then its argument prototype would still apply. */
  8357. #ifdef __cplusplus
  8358. extern "C"
  8359. #endif
  8360. char shl_load ();
  8361. /* The GNU C library defines this for functions which it implements
  8362. to always fail with ENOSYS. Some functions are actually named
  8363. something starting with __ and the normal name is an alias. */
  8364. #if defined __stub_shl_load || defined __stub___shl_load
  8365. choke me
  8366. #endif
  8367. int
  8368. main ()
  8369. {
  8370. return shl_load ();
  8371. ;
  8372. return 0;
  8373. }
  8374. _ACEOF
  8375. rm -f conftest.$ac_objext conftest$ac_exeext
  8376. if { (ac_try="$ac_link"
  8377. case "(($ac_try" in
  8378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8379. *) ac_try_echo=$ac_try;;
  8380. esac
  8381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8382. (eval "$ac_link") 2>conftest.er1
  8383. ac_status=$?
  8384. grep -v '^ *+' conftest.er1 >conftest.err
  8385. rm -f conftest.er1
  8386. cat conftest.err >&5
  8387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8388. (exit $ac_status); } && {
  8389. test -z "$ac_c_werror_flag" ||
  8390. test ! -s conftest.err
  8391. } && test -s conftest$ac_exeext &&
  8392. $as_test_x conftest$ac_exeext; then
  8393. ac_cv_func_shl_load=yes
  8394. else
  8395. echo "$as_me: failed program was:" >&5
  8396. sed 's/^/| /' conftest.$ac_ext >&5
  8397. ac_cv_func_shl_load=no
  8398. fi
  8399. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8400. conftest$ac_exeext conftest.$ac_ext
  8401. fi
  8402. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8403. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8404. if test $ac_cv_func_shl_load = yes; then
  8405. lt_cv_dlopen="shl_load"
  8406. else
  8407. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8408. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8409. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8410. echo $ECHO_N "(cached) $ECHO_C" >&6
  8411. else
  8412. ac_check_lib_save_LIBS=$LIBS
  8413. LIBS="-ldld $LIBS"
  8414. cat >conftest.$ac_ext <<_ACEOF
  8415. /* confdefs.h. */
  8416. _ACEOF
  8417. cat confdefs.h >>conftest.$ac_ext
  8418. cat >>conftest.$ac_ext <<_ACEOF
  8419. /* end confdefs.h. */
  8420. /* Override any GCC internal prototype to avoid an error.
  8421. Use char because int might match the return type of a GCC
  8422. builtin and then its argument prototype would still apply. */
  8423. #ifdef __cplusplus
  8424. extern "C"
  8425. #endif
  8426. char shl_load ();
  8427. int
  8428. main ()
  8429. {
  8430. return shl_load ();
  8431. ;
  8432. return 0;
  8433. }
  8434. _ACEOF
  8435. rm -f conftest.$ac_objext conftest$ac_exeext
  8436. if { (ac_try="$ac_link"
  8437. case "(($ac_try" in
  8438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8439. *) ac_try_echo=$ac_try;;
  8440. esac
  8441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8442. (eval "$ac_link") 2>conftest.er1
  8443. ac_status=$?
  8444. grep -v '^ *+' conftest.er1 >conftest.err
  8445. rm -f conftest.er1
  8446. cat conftest.err >&5
  8447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8448. (exit $ac_status); } && {
  8449. test -z "$ac_c_werror_flag" ||
  8450. test ! -s conftest.err
  8451. } && test -s conftest$ac_exeext &&
  8452. $as_test_x conftest$ac_exeext; then
  8453. ac_cv_lib_dld_shl_load=yes
  8454. else
  8455. echo "$as_me: failed program was:" >&5
  8456. sed 's/^/| /' conftest.$ac_ext >&5
  8457. ac_cv_lib_dld_shl_load=no
  8458. fi
  8459. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8460. conftest$ac_exeext conftest.$ac_ext
  8461. LIBS=$ac_check_lib_save_LIBS
  8462. fi
  8463. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8464. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8465. if test $ac_cv_lib_dld_shl_load = yes; then
  8466. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8467. else
  8468. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8469. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8470. if test "${ac_cv_func_dlopen+set}" = set; then
  8471. echo $ECHO_N "(cached) $ECHO_C" >&6
  8472. else
  8473. cat >conftest.$ac_ext <<_ACEOF
  8474. /* confdefs.h. */
  8475. _ACEOF
  8476. cat confdefs.h >>conftest.$ac_ext
  8477. cat >>conftest.$ac_ext <<_ACEOF
  8478. /* end confdefs.h. */
  8479. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8480. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8481. #define dlopen innocuous_dlopen
  8482. /* System header to define __stub macros and hopefully few prototypes,
  8483. which can conflict with char dlopen (); below.
  8484. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8485. <limits.h> exists even on freestanding compilers. */
  8486. #ifdef __STDC__
  8487. # include <limits.h>
  8488. #else
  8489. # include <assert.h>
  8490. #endif
  8491. #undef dlopen
  8492. /* Override any GCC internal prototype to avoid an error.
  8493. Use char because int might match the return type of a GCC
  8494. builtin and then its argument prototype would still apply. */
  8495. #ifdef __cplusplus
  8496. extern "C"
  8497. #endif
  8498. char dlopen ();
  8499. /* The GNU C library defines this for functions which it implements
  8500. to always fail with ENOSYS. Some functions are actually named
  8501. something starting with __ and the normal name is an alias. */
  8502. #if defined __stub_dlopen || defined __stub___dlopen
  8503. choke me
  8504. #endif
  8505. int
  8506. main ()
  8507. {
  8508. return dlopen ();
  8509. ;
  8510. return 0;
  8511. }
  8512. _ACEOF
  8513. rm -f conftest.$ac_objext conftest$ac_exeext
  8514. if { (ac_try="$ac_link"
  8515. case "(($ac_try" in
  8516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8517. *) ac_try_echo=$ac_try;;
  8518. esac
  8519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8520. (eval "$ac_link") 2>conftest.er1
  8521. ac_status=$?
  8522. grep -v '^ *+' conftest.er1 >conftest.err
  8523. rm -f conftest.er1
  8524. cat conftest.err >&5
  8525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8526. (exit $ac_status); } && {
  8527. test -z "$ac_c_werror_flag" ||
  8528. test ! -s conftest.err
  8529. } && test -s conftest$ac_exeext &&
  8530. $as_test_x conftest$ac_exeext; then
  8531. ac_cv_func_dlopen=yes
  8532. else
  8533. echo "$as_me: failed program was:" >&5
  8534. sed 's/^/| /' conftest.$ac_ext >&5
  8535. ac_cv_func_dlopen=no
  8536. fi
  8537. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8538. conftest$ac_exeext conftest.$ac_ext
  8539. fi
  8540. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8541. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8542. if test $ac_cv_func_dlopen = yes; then
  8543. lt_cv_dlopen="dlopen"
  8544. else
  8545. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8546. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8547. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8548. echo $ECHO_N "(cached) $ECHO_C" >&6
  8549. else
  8550. ac_check_lib_save_LIBS=$LIBS
  8551. LIBS="-ldl $LIBS"
  8552. cat >conftest.$ac_ext <<_ACEOF
  8553. /* confdefs.h. */
  8554. _ACEOF
  8555. cat confdefs.h >>conftest.$ac_ext
  8556. cat >>conftest.$ac_ext <<_ACEOF
  8557. /* end confdefs.h. */
  8558. /* Override any GCC internal prototype to avoid an error.
  8559. Use char because int might match the return type of a GCC
  8560. builtin and then its argument prototype would still apply. */
  8561. #ifdef __cplusplus
  8562. extern "C"
  8563. #endif
  8564. char dlopen ();
  8565. int
  8566. main ()
  8567. {
  8568. return dlopen ();
  8569. ;
  8570. return 0;
  8571. }
  8572. _ACEOF
  8573. rm -f conftest.$ac_objext conftest$ac_exeext
  8574. if { (ac_try="$ac_link"
  8575. case "(($ac_try" in
  8576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8577. *) ac_try_echo=$ac_try;;
  8578. esac
  8579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8580. (eval "$ac_link") 2>conftest.er1
  8581. ac_status=$?
  8582. grep -v '^ *+' conftest.er1 >conftest.err
  8583. rm -f conftest.er1
  8584. cat conftest.err >&5
  8585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8586. (exit $ac_status); } && {
  8587. test -z "$ac_c_werror_flag" ||
  8588. test ! -s conftest.err
  8589. } && test -s conftest$ac_exeext &&
  8590. $as_test_x conftest$ac_exeext; then
  8591. ac_cv_lib_dl_dlopen=yes
  8592. else
  8593. echo "$as_me: failed program was:" >&5
  8594. sed 's/^/| /' conftest.$ac_ext >&5
  8595. ac_cv_lib_dl_dlopen=no
  8596. fi
  8597. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8598. conftest$ac_exeext conftest.$ac_ext
  8599. LIBS=$ac_check_lib_save_LIBS
  8600. fi
  8601. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8602. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8603. if test $ac_cv_lib_dl_dlopen = yes; then
  8604. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8605. else
  8606. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8607. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8608. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8609. echo $ECHO_N "(cached) $ECHO_C" >&6
  8610. else
  8611. ac_check_lib_save_LIBS=$LIBS
  8612. LIBS="-lsvld $LIBS"
  8613. cat >conftest.$ac_ext <<_ACEOF
  8614. /* confdefs.h. */
  8615. _ACEOF
  8616. cat confdefs.h >>conftest.$ac_ext
  8617. cat >>conftest.$ac_ext <<_ACEOF
  8618. /* end confdefs.h. */
  8619. /* Override any GCC internal prototype to avoid an error.
  8620. Use char because int might match the return type of a GCC
  8621. builtin and then its argument prototype would still apply. */
  8622. #ifdef __cplusplus
  8623. extern "C"
  8624. #endif
  8625. char dlopen ();
  8626. int
  8627. main ()
  8628. {
  8629. return dlopen ();
  8630. ;
  8631. return 0;
  8632. }
  8633. _ACEOF
  8634. rm -f conftest.$ac_objext conftest$ac_exeext
  8635. if { (ac_try="$ac_link"
  8636. case "(($ac_try" in
  8637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8638. *) ac_try_echo=$ac_try;;
  8639. esac
  8640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8641. (eval "$ac_link") 2>conftest.er1
  8642. ac_status=$?
  8643. grep -v '^ *+' conftest.er1 >conftest.err
  8644. rm -f conftest.er1
  8645. cat conftest.err >&5
  8646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8647. (exit $ac_status); } && {
  8648. test -z "$ac_c_werror_flag" ||
  8649. test ! -s conftest.err
  8650. } && test -s conftest$ac_exeext &&
  8651. $as_test_x conftest$ac_exeext; then
  8652. ac_cv_lib_svld_dlopen=yes
  8653. else
  8654. echo "$as_me: failed program was:" >&5
  8655. sed 's/^/| /' conftest.$ac_ext >&5
  8656. ac_cv_lib_svld_dlopen=no
  8657. fi
  8658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8659. conftest$ac_exeext conftest.$ac_ext
  8660. LIBS=$ac_check_lib_save_LIBS
  8661. fi
  8662. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8663. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8664. if test $ac_cv_lib_svld_dlopen = yes; then
  8665. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8666. else
  8667. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8668. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8669. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8670. echo $ECHO_N "(cached) $ECHO_C" >&6
  8671. else
  8672. ac_check_lib_save_LIBS=$LIBS
  8673. LIBS="-ldld $LIBS"
  8674. cat >conftest.$ac_ext <<_ACEOF
  8675. /* confdefs.h. */
  8676. _ACEOF
  8677. cat confdefs.h >>conftest.$ac_ext
  8678. cat >>conftest.$ac_ext <<_ACEOF
  8679. /* end confdefs.h. */
  8680. /* Override any GCC internal prototype to avoid an error.
  8681. Use char because int might match the return type of a GCC
  8682. builtin and then its argument prototype would still apply. */
  8683. #ifdef __cplusplus
  8684. extern "C"
  8685. #endif
  8686. char dld_link ();
  8687. int
  8688. main ()
  8689. {
  8690. return dld_link ();
  8691. ;
  8692. return 0;
  8693. }
  8694. _ACEOF
  8695. rm -f conftest.$ac_objext conftest$ac_exeext
  8696. if { (ac_try="$ac_link"
  8697. case "(($ac_try" in
  8698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8699. *) ac_try_echo=$ac_try;;
  8700. esac
  8701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8702. (eval "$ac_link") 2>conftest.er1
  8703. ac_status=$?
  8704. grep -v '^ *+' conftest.er1 >conftest.err
  8705. rm -f conftest.er1
  8706. cat conftest.err >&5
  8707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8708. (exit $ac_status); } && {
  8709. test -z "$ac_c_werror_flag" ||
  8710. test ! -s conftest.err
  8711. } && test -s conftest$ac_exeext &&
  8712. $as_test_x conftest$ac_exeext; then
  8713. ac_cv_lib_dld_dld_link=yes
  8714. else
  8715. echo "$as_me: failed program was:" >&5
  8716. sed 's/^/| /' conftest.$ac_ext >&5
  8717. ac_cv_lib_dld_dld_link=no
  8718. fi
  8719. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8720. conftest$ac_exeext conftest.$ac_ext
  8721. LIBS=$ac_check_lib_save_LIBS
  8722. fi
  8723. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8724. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8725. if test $ac_cv_lib_dld_dld_link = yes; then
  8726. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8727. fi
  8728. fi
  8729. fi
  8730. fi
  8731. fi
  8732. fi
  8733. ;;
  8734. esac
  8735. if test "x$lt_cv_dlopen" != xno; then
  8736. enable_dlopen=yes
  8737. else
  8738. enable_dlopen=no
  8739. fi
  8740. case $lt_cv_dlopen in
  8741. dlopen)
  8742. save_CPPFLAGS="$CPPFLAGS"
  8743. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8744. save_LDFLAGS="$LDFLAGS"
  8745. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8746. save_LIBS="$LIBS"
  8747. LIBS="$lt_cv_dlopen_libs $LIBS"
  8748. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8749. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8750. if test "${lt_cv_dlopen_self+set}" = set; then
  8751. echo $ECHO_N "(cached) $ECHO_C" >&6
  8752. else
  8753. if test "$cross_compiling" = yes; then :
  8754. lt_cv_dlopen_self=cross
  8755. else
  8756. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8757. lt_status=$lt_dlunknown
  8758. cat > conftest.$ac_ext <<EOF
  8759. #line 9748 "configure"
  8760. #include "confdefs.h"
  8761. #if HAVE_DLFCN_H
  8762. #include <dlfcn.h>
  8763. #endif
  8764. #include <stdio.h>
  8765. #ifdef RTLD_GLOBAL
  8766. # define LT_DLGLOBAL RTLD_GLOBAL
  8767. #else
  8768. # ifdef DL_GLOBAL
  8769. # define LT_DLGLOBAL DL_GLOBAL
  8770. # else
  8771. # define LT_DLGLOBAL 0
  8772. # endif
  8773. #endif
  8774. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8775. find out it does not work in some platform. */
  8776. #ifndef LT_DLLAZY_OR_NOW
  8777. # ifdef RTLD_LAZY
  8778. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8779. # else
  8780. # ifdef DL_LAZY
  8781. # define LT_DLLAZY_OR_NOW DL_LAZY
  8782. # else
  8783. # ifdef RTLD_NOW
  8784. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8785. # else
  8786. # ifdef DL_NOW
  8787. # define LT_DLLAZY_OR_NOW DL_NOW
  8788. # else
  8789. # define LT_DLLAZY_OR_NOW 0
  8790. # endif
  8791. # endif
  8792. # endif
  8793. # endif
  8794. #endif
  8795. #ifdef __cplusplus
  8796. extern "C" void exit (int);
  8797. #endif
  8798. void fnord() { int i=42;}
  8799. int main ()
  8800. {
  8801. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8802. int status = $lt_dlunknown;
  8803. if (self)
  8804. {
  8805. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8806. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8807. /* dlclose (self); */
  8808. }
  8809. exit (status);
  8810. }
  8811. EOF
  8812. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8813. (eval $ac_link) 2>&5
  8814. ac_status=$?
  8815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8816. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8817. (./conftest; exit; ) 2>/dev/null
  8818. lt_status=$?
  8819. case x$lt_status in
  8820. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8821. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8822. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  8823. esac
  8824. else :
  8825. # compilation failed
  8826. lt_cv_dlopen_self=no
  8827. fi
  8828. fi
  8829. rm -fr conftest*
  8830. fi
  8831. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8832. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8833. if test "x$lt_cv_dlopen_self" = xyes; then
  8834. LDFLAGS="$LDFLAGS $link_static_flag"
  8835. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8836. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8837. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8838. echo $ECHO_N "(cached) $ECHO_C" >&6
  8839. else
  8840. if test "$cross_compiling" = yes; then :
  8841. lt_cv_dlopen_self_static=cross
  8842. else
  8843. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8844. lt_status=$lt_dlunknown
  8845. cat > conftest.$ac_ext <<EOF
  8846. #line 9846 "configure"
  8847. #include "confdefs.h"
  8848. #if HAVE_DLFCN_H
  8849. #include <dlfcn.h>
  8850. #endif
  8851. #include <stdio.h>
  8852. #ifdef RTLD_GLOBAL
  8853. # define LT_DLGLOBAL RTLD_GLOBAL
  8854. #else
  8855. # ifdef DL_GLOBAL
  8856. # define LT_DLGLOBAL DL_GLOBAL
  8857. # else
  8858. # define LT_DLGLOBAL 0
  8859. # endif
  8860. #endif
  8861. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8862. find out it does not work in some platform. */
  8863. #ifndef LT_DLLAZY_OR_NOW
  8864. # ifdef RTLD_LAZY
  8865. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8866. # else
  8867. # ifdef DL_LAZY
  8868. # define LT_DLLAZY_OR_NOW DL_LAZY
  8869. # else
  8870. # ifdef RTLD_NOW
  8871. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8872. # else
  8873. # ifdef DL_NOW
  8874. # define LT_DLLAZY_OR_NOW DL_NOW
  8875. # else
  8876. # define LT_DLLAZY_OR_NOW 0
  8877. # endif
  8878. # endif
  8879. # endif
  8880. # endif
  8881. #endif
  8882. #ifdef __cplusplus
  8883. extern "C" void exit (int);
  8884. #endif
  8885. void fnord() { int i=42;}
  8886. int main ()
  8887. {
  8888. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8889. int status = $lt_dlunknown;
  8890. if (self)
  8891. {
  8892. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8893. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8894. /* dlclose (self); */
  8895. }
  8896. exit (status);
  8897. }
  8898. EOF
  8899. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8900. (eval $ac_link) 2>&5
  8901. ac_status=$?
  8902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8903. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8904. (./conftest; exit; ) 2>/dev/null
  8905. lt_status=$?
  8906. case x$lt_status in
  8907. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8908. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8909. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  8910. esac
  8911. else :
  8912. # compilation failed
  8913. lt_cv_dlopen_self_static=no
  8914. fi
  8915. fi
  8916. rm -fr conftest*
  8917. fi
  8918. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8919. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  8920. fi
  8921. CPPFLAGS="$save_CPPFLAGS"
  8922. LDFLAGS="$save_LDFLAGS"
  8923. LIBS="$save_LIBS"
  8924. ;;
  8925. esac
  8926. case $lt_cv_dlopen_self in
  8927. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8928. *) enable_dlopen_self=unknown ;;
  8929. esac
  8930. case $lt_cv_dlopen_self_static in
  8931. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8932. *) enable_dlopen_self_static=unknown ;;
  8933. esac
  8934. fi
  8935. # Report which librarie types wil actually be built
  8936. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8937. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  8938. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8939. echo "${ECHO_T}$can_build_shared" >&6; }
  8940. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8941. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  8942. test "$can_build_shared" = "no" && enable_shared=no
  8943. # On AIX, shared libraries and static libraries use the same namespace, and
  8944. # are all built from PIC.
  8945. case "$host_os" in
  8946. aix3*)
  8947. test "$enable_shared" = yes && enable_static=no
  8948. if test -n "$RANLIB"; then
  8949. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8950. postinstall_cmds='$RANLIB $lib'
  8951. fi
  8952. ;;
  8953. aix4* | aix5*)
  8954. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8955. test "$enable_shared" = yes && enable_static=no
  8956. fi
  8957. ;;
  8958. esac
  8959. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  8960. echo "${ECHO_T}$enable_shared" >&6; }
  8961. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8962. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  8963. # Make sure either enable_shared or enable_static is yes.
  8964. test "$enable_shared" = yes || enable_static=yes
  8965. { echo "$as_me:$LINENO: result: $enable_static" >&5
  8966. echo "${ECHO_T}$enable_static" >&6; }
  8967. # The else clause should only fire when bootstrapping the
  8968. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8969. # with your package, and you will get complaints that there are
  8970. # no rules to generate ltmain.sh.
  8971. if test -f "$ltmain"; then
  8972. # See if we are running on zsh, and set the options which allow our commands through
  8973. # without removal of \ escapes.
  8974. if test -n "${ZSH_VERSION+set}" ; then
  8975. setopt NO_GLOB_SUBST
  8976. fi
  8977. # Now quote all the things that may contain metacharacters while being
  8978. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8979. # variables and quote the copies for generation of the libtool script.
  8980. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  8981. SED SHELL STRIP \
  8982. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8983. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8984. deplibs_check_method reload_flag reload_cmds need_locks \
  8985. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8986. lt_cv_sys_global_symbol_to_c_name_address \
  8987. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8988. old_postinstall_cmds old_postuninstall_cmds \
  8989. compiler \
  8990. CC \
  8991. LD \
  8992. lt_prog_compiler_wl \
  8993. lt_prog_compiler_pic \
  8994. lt_prog_compiler_static \
  8995. lt_prog_compiler_no_builtin_flag \
  8996. export_dynamic_flag_spec \
  8997. thread_safe_flag_spec \
  8998. whole_archive_flag_spec \
  8999. enable_shared_with_static_runtimes \
  9000. old_archive_cmds \
  9001. old_archive_from_new_cmds \
  9002. predep_objects \
  9003. postdep_objects \
  9004. predeps \
  9005. postdeps \
  9006. compiler_lib_search_path \
  9007. archive_cmds \
  9008. archive_expsym_cmds \
  9009. postinstall_cmds \
  9010. postuninstall_cmds \
  9011. old_archive_from_expsyms_cmds \
  9012. allow_undefined_flag \
  9013. no_undefined_flag \
  9014. export_symbols_cmds \
  9015. hardcode_libdir_flag_spec \
  9016. hardcode_libdir_flag_spec_ld \
  9017. hardcode_libdir_separator \
  9018. hardcode_automatic \
  9019. module_cmds \
  9020. module_expsym_cmds \
  9021. lt_cv_prog_compiler_c_o \
  9022. exclude_expsyms \
  9023. include_expsyms; do
  9024. case $var in
  9025. old_archive_cmds | \
  9026. old_archive_from_new_cmds | \
  9027. archive_cmds | \
  9028. archive_expsym_cmds | \
  9029. module_cmds | \
  9030. module_expsym_cmds | \
  9031. old_archive_from_expsyms_cmds | \
  9032. export_symbols_cmds | \
  9033. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9034. postinstall_cmds | postuninstall_cmds | \
  9035. old_postinstall_cmds | old_postuninstall_cmds | \
  9036. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9037. # Double-quote double-evaled strings.
  9038. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9039. ;;
  9040. *)
  9041. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9042. ;;
  9043. esac
  9044. done
  9045. case $lt_echo in
  9046. *'\$0 --fallback-echo"')
  9047. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9048. ;;
  9049. esac
  9050. cfgfile="${ofile}T"
  9051. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9052. $rm -f "$cfgfile"
  9053. { echo "$as_me:$LINENO: creating $ofile" >&5
  9054. echo "$as_me: creating $ofile" >&6;}
  9055. cat <<__EOF__ >> "$cfgfile"
  9056. #! $SHELL
  9057. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9058. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9059. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9060. #
  9061. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9062. # Free Software Foundation, Inc.
  9063. #
  9064. # This file is part of GNU Libtool:
  9065. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9066. #
  9067. # This program is free software; you can redistribute it and/or modify
  9068. # it under the terms of the GNU General Public License as published by
  9069. # the Free Software Foundation; either version 2 of the License, or
  9070. # (at your option) any later version.
  9071. #
  9072. # This program is distributed in the hope that it will be useful, but
  9073. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9074. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9075. # General Public License for more details.
  9076. #
  9077. # You should have received a copy of the GNU General Public License
  9078. # along with this program; if not, write to the Free Software
  9079. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9080. #
  9081. # As a special exception to the GNU General Public License, if you
  9082. # distribute this file as part of a program that contains a
  9083. # configuration script generated by Autoconf, you may include it under
  9084. # the same distribution terms that you use for the rest of that program.
  9085. # A sed program that does not truncate output.
  9086. SED=$lt_SED
  9087. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9088. Xsed="$SED -e 1s/^X//"
  9089. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9090. # if CDPATH is set.
  9091. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9092. # The names of the tagged configurations supported by this script.
  9093. available_tags=
  9094. # ### BEGIN LIBTOOL CONFIG
  9095. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9096. # Shell to use when invoking shell scripts.
  9097. SHELL=$lt_SHELL
  9098. # Whether or not to build shared libraries.
  9099. build_libtool_libs=$enable_shared
  9100. # Whether or not to build static libraries.
  9101. build_old_libs=$enable_static
  9102. # Whether or not to add -lc for building shared libraries.
  9103. build_libtool_need_lc=$archive_cmds_need_lc
  9104. # Whether or not to disallow shared libs when runtime libs are static
  9105. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9106. # Whether or not to optimize for fast installation.
  9107. fast_install=$enable_fast_install
  9108. # The host system.
  9109. host_alias=$host_alias
  9110. host=$host
  9111. host_os=$host_os
  9112. # The build system.
  9113. build_alias=$build_alias
  9114. build=$build
  9115. build_os=$build_os
  9116. # An echo program that does not interpret backslashes.
  9117. echo=$lt_echo
  9118. # The archiver.
  9119. AR=$lt_AR
  9120. AR_FLAGS=$lt_AR_FLAGS
  9121. # A C compiler.
  9122. LTCC=$lt_LTCC
  9123. # A language-specific compiler.
  9124. CC=$lt_compiler
  9125. # Is the compiler the GNU C compiler?
  9126. with_gcc=$GCC
  9127. # An ERE matcher.
  9128. EGREP=$lt_EGREP
  9129. # The linker used to build libraries.
  9130. LD=$lt_LD
  9131. # Whether we need hard or soft links.
  9132. LN_S=$lt_LN_S
  9133. # A BSD-compatible nm program.
  9134. NM=$lt_NM
  9135. # A symbol stripping program
  9136. STRIP=$lt_STRIP
  9137. # Used to examine libraries when file_magic_cmd begins "file"
  9138. MAGIC_CMD=$MAGIC_CMD
  9139. # Used on cygwin: DLL creation program.
  9140. DLLTOOL="$DLLTOOL"
  9141. # Used on cygwin: object dumper.
  9142. OBJDUMP="$OBJDUMP"
  9143. # Used on cygwin: assembler.
  9144. AS="$AS"
  9145. # The name of the directory that contains temporary libtool files.
  9146. objdir=$objdir
  9147. # How to create reloadable object files.
  9148. reload_flag=$lt_reload_flag
  9149. reload_cmds=$lt_reload_cmds
  9150. # How to pass a linker flag through the compiler.
  9151. wl=$lt_lt_prog_compiler_wl
  9152. # Object file suffix (normally "o").
  9153. objext="$ac_objext"
  9154. # Old archive suffix (normally "a").
  9155. libext="$libext"
  9156. # Shared library suffix (normally ".so").
  9157. shrext_cmds='$shrext_cmds'
  9158. # Executable file suffix (normally "").
  9159. exeext="$exeext"
  9160. # Additional compiler flags for building library objects.
  9161. pic_flag=$lt_lt_prog_compiler_pic
  9162. pic_mode=$pic_mode
  9163. # What is the maximum length of a command?
  9164. max_cmd_len=$lt_cv_sys_max_cmd_len
  9165. # Does compiler simultaneously support -c and -o options?
  9166. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9167. # Must we lock files when doing compilation?
  9168. need_locks=$lt_need_locks
  9169. # Do we need the lib prefix for modules?
  9170. need_lib_prefix=$need_lib_prefix
  9171. # Do we need a version for libraries?
  9172. need_version=$need_version
  9173. # Whether dlopen is supported.
  9174. dlopen_support=$enable_dlopen
  9175. # Whether dlopen of programs is supported.
  9176. dlopen_self=$enable_dlopen_self
  9177. # Whether dlopen of statically linked programs is supported.
  9178. dlopen_self_static=$enable_dlopen_self_static
  9179. # Compiler flag to prevent dynamic linking.
  9180. link_static_flag=$lt_lt_prog_compiler_static
  9181. # Compiler flag to turn off builtin functions.
  9182. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9183. # Compiler flag to allow reflexive dlopens.
  9184. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9185. # Compiler flag to generate shared objects directly from archives.
  9186. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9187. # Compiler flag to generate thread-safe objects.
  9188. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9189. # Library versioning type.
  9190. version_type=$version_type
  9191. # Format of library name prefix.
  9192. libname_spec=$lt_libname_spec
  9193. # List of archive names. First name is the real one, the rest are links.
  9194. # The last name is the one that the linker finds with -lNAME.
  9195. library_names_spec=$lt_library_names_spec
  9196. # The coded name of the library, if different from the real name.
  9197. soname_spec=$lt_soname_spec
  9198. # Commands used to build and install an old-style archive.
  9199. RANLIB=$lt_RANLIB
  9200. old_archive_cmds=$lt_old_archive_cmds
  9201. old_postinstall_cmds=$lt_old_postinstall_cmds
  9202. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9203. # Create an old-style archive from a shared archive.
  9204. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9205. # Create a temporary old-style archive to link instead of a shared archive.
  9206. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9207. # Commands used to build and install a shared archive.
  9208. archive_cmds=$lt_archive_cmds
  9209. archive_expsym_cmds=$lt_archive_expsym_cmds
  9210. postinstall_cmds=$lt_postinstall_cmds
  9211. postuninstall_cmds=$lt_postuninstall_cmds
  9212. # Commands used to build a loadable module (assumed same as above if empty)
  9213. module_cmds=$lt_module_cmds
  9214. module_expsym_cmds=$lt_module_expsym_cmds
  9215. # Commands to strip libraries.
  9216. old_striplib=$lt_old_striplib
  9217. striplib=$lt_striplib
  9218. # Dependencies to place before the objects being linked to create a
  9219. # shared library.
  9220. predep_objects=$lt_predep_objects
  9221. # Dependencies to place after the objects being linked to create a
  9222. # shared library.
  9223. postdep_objects=$lt_postdep_objects
  9224. # Dependencies to place before the objects being linked to create a
  9225. # shared library.
  9226. predeps=$lt_predeps
  9227. # Dependencies to place after the objects being linked to create a
  9228. # shared library.
  9229. postdeps=$lt_postdeps
  9230. # The library search path used internally by the compiler when linking
  9231. # a shared library.
  9232. compiler_lib_search_path=$lt_compiler_lib_search_path
  9233. # Method to check whether dependent libraries are shared objects.
  9234. deplibs_check_method=$lt_deplibs_check_method
  9235. # Command to use when deplibs_check_method == file_magic.
  9236. file_magic_cmd=$lt_file_magic_cmd
  9237. # Flag that allows shared libraries with undefined symbols to be built.
  9238. allow_undefined_flag=$lt_allow_undefined_flag
  9239. # Flag that forces no undefined symbols.
  9240. no_undefined_flag=$lt_no_undefined_flag
  9241. # Commands used to finish a libtool library installation in a directory.
  9242. finish_cmds=$lt_finish_cmds
  9243. # Same as above, but a single script fragment to be evaled but not shown.
  9244. finish_eval=$lt_finish_eval
  9245. # Take the output of nm and produce a listing of raw symbols and C names.
  9246. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9247. # Transform the output of nm in a proper C declaration
  9248. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9249. # Transform the output of nm in a C name address pair
  9250. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9251. # This is the shared library runtime path variable.
  9252. runpath_var=$runpath_var
  9253. # This is the shared library path variable.
  9254. shlibpath_var=$shlibpath_var
  9255. # Is shlibpath searched before the hard-coded library search path?
  9256. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9257. # How to hardcode a shared library path into an executable.
  9258. hardcode_action=$hardcode_action
  9259. # Whether we should hardcode library paths into libraries.
  9260. hardcode_into_libs=$hardcode_into_libs
  9261. # Flag to hardcode \$libdir into a binary during linking.
  9262. # This must work even if \$libdir does not exist.
  9263. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9264. # If ld is used when linking, flag to hardcode \$libdir into
  9265. # a binary during linking. This must work even if \$libdir does
  9266. # not exist.
  9267. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9268. # Whether we need a single -rpath flag with a separated argument.
  9269. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9270. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9271. # resulting binary.
  9272. hardcode_direct=$hardcode_direct
  9273. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9274. # resulting binary.
  9275. hardcode_minus_L=$hardcode_minus_L
  9276. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9277. # the resulting binary.
  9278. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9279. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9280. # and all subsequent libraries and executables linked against it.
  9281. hardcode_automatic=$hardcode_automatic
  9282. # Variables whose values should be saved in libtool wrapper scripts and
  9283. # restored at relink time.
  9284. variables_saved_for_relink="$variables_saved_for_relink"
  9285. # Whether libtool must link a program against all its dependency libraries.
  9286. link_all_deplibs=$link_all_deplibs
  9287. # Compile-time system search path for libraries
  9288. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9289. # Run-time system search path for libraries
  9290. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9291. # Fix the shell variable \$srcfile for the compiler.
  9292. fix_srcfile_path="$fix_srcfile_path"
  9293. # Set to yes if exported symbols are required.
  9294. always_export_symbols=$always_export_symbols
  9295. # The commands to list exported symbols.
  9296. export_symbols_cmds=$lt_export_symbols_cmds
  9297. # The commands to extract the exported symbol list from a shared archive.
  9298. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9299. # Symbols that should not be listed in the preloaded symbols.
  9300. exclude_expsyms=$lt_exclude_expsyms
  9301. # Symbols that must always be exported.
  9302. include_expsyms=$lt_include_expsyms
  9303. # ### END LIBTOOL CONFIG
  9304. __EOF__
  9305. case $host_os in
  9306. aix3*)
  9307. cat <<\EOF >> "$cfgfile"
  9308. # AIX sometimes has problems with the GCC collect2 program. For some
  9309. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9310. # vanish in a puff of smoke.
  9311. if test "X${COLLECT_NAMES+set}" != Xset; then
  9312. COLLECT_NAMES=
  9313. export COLLECT_NAMES
  9314. fi
  9315. EOF
  9316. ;;
  9317. esac
  9318. # We use sed instead of cat because bash on DJGPP gets confused if
  9319. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9320. # text mode, it properly converts lines to CR/LF. This bash problem
  9321. # is reportedly fixed, but why not run on old versions too?
  9322. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9323. mv -f "$cfgfile" "$ofile" || \
  9324. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9325. chmod +x "$ofile"
  9326. else
  9327. # If there is no Makefile yet, we rely on a make rule to execute
  9328. # `config.status --recheck' to rerun these tests and create the
  9329. # libtool script then.
  9330. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9331. if test -f "$ltmain_in"; then
  9332. test -f Makefile && make "$ltmain"
  9333. fi
  9334. fi
  9335. ac_ext=c
  9336. ac_cpp='$CPP $CPPFLAGS'
  9337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9340. CC="$lt_save_CC"
  9341. # Check whether --with-tags was given.
  9342. if test "${with_tags+set}" = set; then
  9343. withval=$with_tags; tagnames="$withval"
  9344. fi
  9345. if test -f "$ltmain" && test -n "$tagnames"; then
  9346. if test ! -f "${ofile}"; then
  9347. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9348. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9349. fi
  9350. if test -z "$LTCC"; then
  9351. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9352. if test -z "$LTCC"; then
  9353. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9354. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9355. else
  9356. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9357. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9358. fi
  9359. fi
  9360. # Extract list of available tagged configurations in $ofile.
  9361. # Note that this assumes the entire list is on one line.
  9362. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9363. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9364. for tagname in $tagnames; do
  9365. IFS="$lt_save_ifs"
  9366. # Check whether tagname contains only valid characters
  9367. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9368. "") ;;
  9369. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9370. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9371. { (exit 1); exit 1; }; }
  9372. ;;
  9373. esac
  9374. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9375. then
  9376. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9377. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9378. { (exit 1); exit 1; }; }
  9379. fi
  9380. # Update the list of available tags.
  9381. if test -n "$tagname"; then
  9382. echo appending configuration tag \"$tagname\" to $ofile
  9383. case $tagname in
  9384. CXX)
  9385. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9386. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9387. (test "X$CXX" != "Xg++"))) ; then
  9388. ac_ext=cpp
  9389. ac_cpp='$CXXCPP $CPPFLAGS'
  9390. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9391. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9392. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9393. archive_cmds_need_lc_CXX=no
  9394. allow_undefined_flag_CXX=
  9395. always_export_symbols_CXX=no
  9396. archive_expsym_cmds_CXX=
  9397. export_dynamic_flag_spec_CXX=
  9398. hardcode_direct_CXX=no
  9399. hardcode_libdir_flag_spec_CXX=
  9400. hardcode_libdir_flag_spec_ld_CXX=
  9401. hardcode_libdir_separator_CXX=
  9402. hardcode_minus_L_CXX=no
  9403. hardcode_automatic_CXX=no
  9404. module_cmds_CXX=
  9405. module_expsym_cmds_CXX=
  9406. link_all_deplibs_CXX=unknown
  9407. old_archive_cmds_CXX=$old_archive_cmds
  9408. no_undefined_flag_CXX=
  9409. whole_archive_flag_spec_CXX=
  9410. enable_shared_with_static_runtimes_CXX=no
  9411. # Dependencies to place before and after the object being linked:
  9412. predep_objects_CXX=
  9413. postdep_objects_CXX=
  9414. predeps_CXX=
  9415. postdeps_CXX=
  9416. compiler_lib_search_path_CXX=
  9417. # Source file extension for C++ test sources.
  9418. ac_ext=cc
  9419. # Object file extension for compiled C++ test sources.
  9420. objext=o
  9421. objext_CXX=$objext
  9422. # Code to be used in simple compile tests
  9423. lt_simple_compile_test_code="int some_variable = 0;\n"
  9424. # Code to be used in simple link tests
  9425. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  9426. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9427. # If no C compiler was specified, use CC.
  9428. LTCC=${LTCC-"$CC"}
  9429. # Allow CC to be a program name with arguments.
  9430. compiler=$CC
  9431. # save warnings/boilerplate of simple test code
  9432. ac_outfile=conftest.$ac_objext
  9433. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9434. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9435. _lt_compiler_boilerplate=`cat conftest.err`
  9436. $rm conftest*
  9437. ac_outfile=conftest.$ac_objext
  9438. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9439. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9440. _lt_linker_boilerplate=`cat conftest.err`
  9441. $rm conftest*
  9442. # Allow CC to be a program name with arguments.
  9443. lt_save_CC=$CC
  9444. lt_save_LD=$LD
  9445. lt_save_GCC=$GCC
  9446. GCC=$GXX
  9447. lt_save_with_gnu_ld=$with_gnu_ld
  9448. lt_save_path_LD=$lt_cv_path_LD
  9449. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9450. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9451. else
  9452. unset lt_cv_prog_gnu_ld
  9453. fi
  9454. if test -n "${lt_cv_path_LDCXX+set}"; then
  9455. lt_cv_path_LD=$lt_cv_path_LDCXX
  9456. else
  9457. unset lt_cv_path_LD
  9458. fi
  9459. test -z "${LDCXX+set}" || LD=$LDCXX
  9460. CC=${CXX-"c++"}
  9461. compiler=$CC
  9462. compiler_CXX=$CC
  9463. for cc_temp in $compiler""; do
  9464. case $cc_temp in
  9465. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9466. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9467. \-*) ;;
  9468. *) break;;
  9469. esac
  9470. done
  9471. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9472. # We don't want -fno-exception wen compiling C++ code, so set the
  9473. # no_builtin_flag separately
  9474. if test "$GXX" = yes; then
  9475. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9476. else
  9477. lt_prog_compiler_no_builtin_flag_CXX=
  9478. fi
  9479. if test "$GXX" = yes; then
  9480. # Set up default GNU C++ configuration
  9481. # Check whether --with-gnu-ld was given.
  9482. if test "${with_gnu_ld+set}" = set; then
  9483. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9484. else
  9485. with_gnu_ld=no
  9486. fi
  9487. ac_prog=ld
  9488. if test "$GCC" = yes; then
  9489. # Check if gcc -print-prog-name=ld gives a path.
  9490. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9491. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9492. case $host in
  9493. *-*-mingw*)
  9494. # gcc leaves a trailing carriage return which upsets mingw
  9495. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9496. *)
  9497. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9498. esac
  9499. case $ac_prog in
  9500. # Accept absolute paths.
  9501. [\\/]* | ?:[\\/]*)
  9502. re_direlt='/[^/][^/]*/\.\./'
  9503. # Canonicalize the pathname of ld
  9504. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9505. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9506. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9507. done
  9508. test -z "$LD" && LD="$ac_prog"
  9509. ;;
  9510. "")
  9511. # If it fails, then pretend we aren't using GCC.
  9512. ac_prog=ld
  9513. ;;
  9514. *)
  9515. # If it is relative, then search for the first ld in PATH.
  9516. with_gnu_ld=unknown
  9517. ;;
  9518. esac
  9519. elif test "$with_gnu_ld" = yes; then
  9520. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9521. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9522. else
  9523. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9524. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9525. fi
  9526. if test "${lt_cv_path_LD+set}" = set; then
  9527. echo $ECHO_N "(cached) $ECHO_C" >&6
  9528. else
  9529. if test -z "$LD"; then
  9530. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9531. for ac_dir in $PATH; do
  9532. IFS="$lt_save_ifs"
  9533. test -z "$ac_dir" && ac_dir=.
  9534. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9535. lt_cv_path_LD="$ac_dir/$ac_prog"
  9536. # Check to see if the program is GNU ld. I'd rather use --version,
  9537. # but apparently some GNU ld's only accept -v.
  9538. # Break only if it was the GNU/non-GNU ld that we prefer.
  9539. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9540. *GNU* | *'with BFD'*)
  9541. test "$with_gnu_ld" != no && break
  9542. ;;
  9543. *)
  9544. test "$with_gnu_ld" != yes && break
  9545. ;;
  9546. esac
  9547. fi
  9548. done
  9549. IFS="$lt_save_ifs"
  9550. else
  9551. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9552. fi
  9553. fi
  9554. LD="$lt_cv_path_LD"
  9555. if test -n "$LD"; then
  9556. { echo "$as_me:$LINENO: result: $LD" >&5
  9557. echo "${ECHO_T}$LD" >&6; }
  9558. else
  9559. { echo "$as_me:$LINENO: result: no" >&5
  9560. echo "${ECHO_T}no" >&6; }
  9561. fi
  9562. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9563. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9564. { (exit 1); exit 1; }; }
  9565. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9566. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9567. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9568. echo $ECHO_N "(cached) $ECHO_C" >&6
  9569. else
  9570. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9571. case `$LD -v 2>&1 </dev/null` in
  9572. *GNU* | *'with BFD'*)
  9573. lt_cv_prog_gnu_ld=yes
  9574. ;;
  9575. *)
  9576. lt_cv_prog_gnu_ld=no
  9577. ;;
  9578. esac
  9579. fi
  9580. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9581. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9582. with_gnu_ld=$lt_cv_prog_gnu_ld
  9583. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9584. # archiving commands below assume that GNU ld is being used.
  9585. if test "$with_gnu_ld" = yes; then
  9586. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9587. 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'
  9588. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9589. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9590. # If archive_cmds runs LD, not CC, wlarc should be empty
  9591. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9592. # investigate it a little bit more. (MM)
  9593. wlarc='${wl}'
  9594. # ancient GNU ld didn't support --whole-archive et. al.
  9595. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9596. grep 'no-whole-archive' > /dev/null; then
  9597. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9598. else
  9599. whole_archive_flag_spec_CXX=
  9600. fi
  9601. else
  9602. with_gnu_ld=no
  9603. wlarc=
  9604. # A generic and very simple default shared library creation
  9605. # command for GNU C++ for the case where it uses the native
  9606. # linker, instead of GNU ld. If possible, this setting should
  9607. # overridden to take advantage of the native linker features on
  9608. # the platform it is being used on.
  9609. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9610. fi
  9611. # Commands to make compiler produce verbose output that lists
  9612. # what "hidden" libraries, object files and flags are used when
  9613. # linking a shared library.
  9614. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9615. else
  9616. GXX=no
  9617. with_gnu_ld=no
  9618. wlarc=
  9619. fi
  9620. # PORTME: fill in a description of your system's C++ link characteristics
  9621. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9622. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9623. ld_shlibs_CXX=yes
  9624. case $host_os in
  9625. aix3*)
  9626. # FIXME: insert proper C++ library support
  9627. ld_shlibs_CXX=no
  9628. ;;
  9629. aix4* | aix5*)
  9630. if test "$host_cpu" = ia64; then
  9631. # On IA64, the linker does run time linking by default, so we don't
  9632. # have to do anything special.
  9633. aix_use_runtimelinking=no
  9634. exp_sym_flag='-Bexport'
  9635. no_entry_flag=""
  9636. else
  9637. aix_use_runtimelinking=no
  9638. # Test if we are trying to use run time linking or normal
  9639. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9640. # need to do runtime linking.
  9641. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9642. for ld_flag in $LDFLAGS; do
  9643. case $ld_flag in
  9644. *-brtl*)
  9645. aix_use_runtimelinking=yes
  9646. break
  9647. ;;
  9648. esac
  9649. done
  9650. esac
  9651. exp_sym_flag='-bexport'
  9652. no_entry_flag='-bnoentry'
  9653. fi
  9654. # When large executables or shared objects are built, AIX ld can
  9655. # have problems creating the table of contents. If linking a library
  9656. # or program results in "error TOC overflow" add -mminimal-toc to
  9657. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9658. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9659. archive_cmds_CXX=''
  9660. hardcode_direct_CXX=yes
  9661. hardcode_libdir_separator_CXX=':'
  9662. link_all_deplibs_CXX=yes
  9663. if test "$GXX" = yes; then
  9664. case $host_os in aix4.[012]|aix4.[012].*)
  9665. # We only want to do this on AIX 4.2 and lower, the check
  9666. # below for broken collect2 doesn't work under 4.3+
  9667. collect2name=`${CC} -print-prog-name=collect2`
  9668. if test -f "$collect2name" && \
  9669. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9670. then
  9671. # We have reworked collect2
  9672. hardcode_direct_CXX=yes
  9673. else
  9674. # We have old collect2
  9675. hardcode_direct_CXX=unsupported
  9676. # It fails to find uninstalled libraries when the uninstalled
  9677. # path is not listed in the libpath. Setting hardcode_minus_L
  9678. # to unsupported forces relinking
  9679. hardcode_minus_L_CXX=yes
  9680. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9681. hardcode_libdir_separator_CXX=
  9682. fi
  9683. esac
  9684. shared_flag='-shared'
  9685. if test "$aix_use_runtimelinking" = yes; then
  9686. shared_flag="$shared_flag "'${wl}-G'
  9687. fi
  9688. else
  9689. # not using gcc
  9690. if test "$host_cpu" = ia64; then
  9691. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9692. # chokes on -Wl,-G. The following line is correct:
  9693. shared_flag='-G'
  9694. else
  9695. if test "$aix_use_runtimelinking" = yes; then
  9696. shared_flag='${wl}-G'
  9697. else
  9698. shared_flag='${wl}-bM:SRE'
  9699. fi
  9700. fi
  9701. fi
  9702. # It seems that -bexpall does not export symbols beginning with
  9703. # underscore (_), so it is better to generate a list of symbols to export.
  9704. always_export_symbols_CXX=yes
  9705. if test "$aix_use_runtimelinking" = yes; then
  9706. # Warning - without using the other runtime loading flags (-brtl),
  9707. # -berok will link without error, but may produce a broken library.
  9708. allow_undefined_flag_CXX='-berok'
  9709. # Determine the default libpath from the value encoded in an empty executable.
  9710. cat >conftest.$ac_ext <<_ACEOF
  9711. /* confdefs.h. */
  9712. _ACEOF
  9713. cat confdefs.h >>conftest.$ac_ext
  9714. cat >>conftest.$ac_ext <<_ACEOF
  9715. /* end confdefs.h. */
  9716. int
  9717. main ()
  9718. {
  9719. ;
  9720. return 0;
  9721. }
  9722. _ACEOF
  9723. rm -f conftest.$ac_objext conftest$ac_exeext
  9724. if { (ac_try="$ac_link"
  9725. case "(($ac_try" in
  9726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9727. *) ac_try_echo=$ac_try;;
  9728. esac
  9729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9730. (eval "$ac_link") 2>conftest.er1
  9731. ac_status=$?
  9732. grep -v '^ *+' conftest.er1 >conftest.err
  9733. rm -f conftest.er1
  9734. cat conftest.err >&5
  9735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9736. (exit $ac_status); } && {
  9737. test -z "$ac_cxx_werror_flag" ||
  9738. test ! -s conftest.err
  9739. } && test -s conftest$ac_exeext &&
  9740. $as_test_x conftest$ac_exeext; then
  9741. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9742. }'`
  9743. # Check for a 64-bit object if we didn't find anything.
  9744. 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; }
  9745. }'`; fi
  9746. else
  9747. echo "$as_me: failed program was:" >&5
  9748. sed 's/^/| /' conftest.$ac_ext >&5
  9749. fi
  9750. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9751. conftest$ac_exeext conftest.$ac_ext
  9752. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9753. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9754. 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"
  9755. else
  9756. if test "$host_cpu" = ia64; then
  9757. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9758. allow_undefined_flag_CXX="-z nodefs"
  9759. 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"
  9760. else
  9761. # Determine the default libpath from the value encoded in an empty executable.
  9762. cat >conftest.$ac_ext <<_ACEOF
  9763. /* confdefs.h. */
  9764. _ACEOF
  9765. cat confdefs.h >>conftest.$ac_ext
  9766. cat >>conftest.$ac_ext <<_ACEOF
  9767. /* end confdefs.h. */
  9768. int
  9769. main ()
  9770. {
  9771. ;
  9772. return 0;
  9773. }
  9774. _ACEOF
  9775. rm -f conftest.$ac_objext conftest$ac_exeext
  9776. if { (ac_try="$ac_link"
  9777. case "(($ac_try" in
  9778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9779. *) ac_try_echo=$ac_try;;
  9780. esac
  9781. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9782. (eval "$ac_link") 2>conftest.er1
  9783. ac_status=$?
  9784. grep -v '^ *+' conftest.er1 >conftest.err
  9785. rm -f conftest.er1
  9786. cat conftest.err >&5
  9787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9788. (exit $ac_status); } && {
  9789. test -z "$ac_cxx_werror_flag" ||
  9790. test ! -s conftest.err
  9791. } && test -s conftest$ac_exeext &&
  9792. $as_test_x conftest$ac_exeext; then
  9793. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9794. }'`
  9795. # Check for a 64-bit object if we didn't find anything.
  9796. 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; }
  9797. }'`; fi
  9798. else
  9799. echo "$as_me: failed program was:" >&5
  9800. sed 's/^/| /' conftest.$ac_ext >&5
  9801. fi
  9802. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9803. conftest$ac_exeext conftest.$ac_ext
  9804. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9805. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9806. # Warning - without using the other run time loading flags,
  9807. # -berok will link without error, but may produce a broken library.
  9808. no_undefined_flag_CXX=' ${wl}-bernotok'
  9809. allow_undefined_flag_CXX=' ${wl}-berok'
  9810. # -bexpall does not export symbols beginning with underscore (_)
  9811. always_export_symbols_CXX=yes
  9812. # Exported symbols can be pulled into shared objects from archives
  9813. whole_archive_flag_spec_CXX=' '
  9814. archive_cmds_need_lc_CXX=yes
  9815. # This is similar to how AIX traditionally builds it's shared libraries.
  9816. 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'
  9817. fi
  9818. fi
  9819. ;;
  9820. chorus*)
  9821. case $cc_basename in
  9822. *)
  9823. # FIXME: insert proper C++ library support
  9824. ld_shlibs_CXX=no
  9825. ;;
  9826. esac
  9827. ;;
  9828. cygwin* | mingw* | pw32*)
  9829. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9830. # as there is no search path for DLLs.
  9831. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9832. allow_undefined_flag_CXX=unsupported
  9833. always_export_symbols_CXX=no
  9834. enable_shared_with_static_runtimes_CXX=yes
  9835. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9836. 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'
  9837. # If the export-symbols file already is a .def file (1st line
  9838. # is EXPORTS), use it as is; otherwise, prepend...
  9839. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9840. cp $export_symbols $output_objdir/$soname.def;
  9841. else
  9842. echo EXPORTS > $output_objdir/$soname.def;
  9843. cat $export_symbols >> $output_objdir/$soname.def;
  9844. fi~
  9845. $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'
  9846. else
  9847. ld_shlibs_CXX=no
  9848. fi
  9849. ;;
  9850. darwin* | rhapsody*)
  9851. case "$host_os" in
  9852. rhapsody* | darwin1.[012])
  9853. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9854. ;;
  9855. *) # Darwin 1.3 on
  9856. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9857. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9858. else
  9859. case ${MACOSX_DEPLOYMENT_TARGET} in
  9860. 10.[012])
  9861. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9862. ;;
  9863. 10.*)
  9864. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9865. ;;
  9866. esac
  9867. fi
  9868. ;;
  9869. esac
  9870. archive_cmds_need_lc_CXX=no
  9871. hardcode_direct_CXX=no
  9872. hardcode_automatic_CXX=yes
  9873. hardcode_shlibpath_var_CXX=unsupported
  9874. whole_archive_flag_spec_CXX=''
  9875. link_all_deplibs_CXX=yes
  9876. if test "$GXX" = yes ; then
  9877. lt_int_apple_cc_single_mod=no
  9878. output_verbose_link_cmd='echo'
  9879. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9880. lt_int_apple_cc_single_mod=yes
  9881. fi
  9882. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9883. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9884. else
  9885. 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'
  9886. fi
  9887. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9888. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9889. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9890. 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}'
  9891. else
  9892. 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}'
  9893. fi
  9894. 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}'
  9895. else
  9896. case $cc_basename in
  9897. xlc*)
  9898. output_verbose_link_cmd='echo'
  9899. 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'
  9900. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9901. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9902. 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}'
  9903. 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}'
  9904. ;;
  9905. *)
  9906. ld_shlibs_CXX=no
  9907. ;;
  9908. esac
  9909. fi
  9910. ;;
  9911. dgux*)
  9912. case $cc_basename in
  9913. ec++*)
  9914. # FIXME: insert proper C++ library support
  9915. ld_shlibs_CXX=no
  9916. ;;
  9917. ghcx*)
  9918. # Green Hills C++ Compiler
  9919. # FIXME: insert proper C++ library support
  9920. ld_shlibs_CXX=no
  9921. ;;
  9922. *)
  9923. # FIXME: insert proper C++ library support
  9924. ld_shlibs_CXX=no
  9925. ;;
  9926. esac
  9927. ;;
  9928. freebsd[12]*)
  9929. # C++ shared libraries reported to be fairly broken before switch to ELF
  9930. ld_shlibs_CXX=no
  9931. ;;
  9932. freebsd-elf*)
  9933. archive_cmds_need_lc_CXX=no
  9934. ;;
  9935. freebsd* | kfreebsd*-gnu | dragonfly*)
  9936. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9937. # conventions
  9938. ld_shlibs_CXX=yes
  9939. ;;
  9940. gnu*)
  9941. ;;
  9942. hpux9*)
  9943. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9944. hardcode_libdir_separator_CXX=:
  9945. export_dynamic_flag_spec_CXX='${wl}-E'
  9946. hardcode_direct_CXX=yes
  9947. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9948. # but as the default
  9949. # location of the library.
  9950. case $cc_basename in
  9951. CC*)
  9952. # FIXME: insert proper C++ library support
  9953. ld_shlibs_CXX=no
  9954. ;;
  9955. aCC*)
  9956. 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'
  9957. # Commands to make compiler produce verbose output that lists
  9958. # what "hidden" libraries, object files and flags are used when
  9959. # linking a shared library.
  9960. #
  9961. # There doesn't appear to be a way to prevent this compiler from
  9962. # explicitly linking system object files so we need to strip them
  9963. # from the output so that they don't get included in the library
  9964. # dependencies.
  9965. 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'
  9966. ;;
  9967. *)
  9968. if test "$GXX" = yes; then
  9969. 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'
  9970. else
  9971. # FIXME: insert proper C++ library support
  9972. ld_shlibs_CXX=no
  9973. fi
  9974. ;;
  9975. esac
  9976. ;;
  9977. hpux10*|hpux11*)
  9978. if test $with_gnu_ld = no; then
  9979. case "$host_cpu" in
  9980. hppa*64*)
  9981. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9982. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9983. hardcode_libdir_separator_CXX=:
  9984. ;;
  9985. ia64*)
  9986. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9987. ;;
  9988. *)
  9989. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9990. hardcode_libdir_separator_CXX=:
  9991. export_dynamic_flag_spec_CXX='${wl}-E'
  9992. ;;
  9993. esac
  9994. fi
  9995. case "$host_cpu" in
  9996. hppa*64*)
  9997. hardcode_direct_CXX=no
  9998. hardcode_shlibpath_var_CXX=no
  9999. ;;
  10000. ia64*)
  10001. hardcode_direct_CXX=no
  10002. hardcode_shlibpath_var_CXX=no
  10003. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10004. # but as the default
  10005. # location of the library.
  10006. ;;
  10007. *)
  10008. hardcode_direct_CXX=yes
  10009. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10010. # but as the default
  10011. # location of the library.
  10012. ;;
  10013. esac
  10014. case $cc_basename in
  10015. CC*)
  10016. # FIXME: insert proper C++ library support
  10017. ld_shlibs_CXX=no
  10018. ;;
  10019. aCC*)
  10020. case "$host_cpu" in
  10021. hppa*64*|ia64*)
  10022. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10023. ;;
  10024. *)
  10025. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10026. ;;
  10027. esac
  10028. # Commands to make compiler produce verbose output that lists
  10029. # what "hidden" libraries, object files and flags are used when
  10030. # linking a shared library.
  10031. #
  10032. # There doesn't appear to be a way to prevent this compiler from
  10033. # explicitly linking system object files so we need to strip them
  10034. # from the output so that they don't get included in the library
  10035. # dependencies.
  10036. 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'
  10037. ;;
  10038. *)
  10039. if test "$GXX" = yes; then
  10040. if test $with_gnu_ld = no; then
  10041. case "$host_cpu" in
  10042. ia64*|hppa*64*)
  10043. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10044. ;;
  10045. *)
  10046. 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'
  10047. ;;
  10048. esac
  10049. fi
  10050. else
  10051. # FIXME: insert proper C++ library support
  10052. ld_shlibs_CXX=no
  10053. fi
  10054. ;;
  10055. esac
  10056. ;;
  10057. irix5* | irix6*)
  10058. case $cc_basename in
  10059. CC*)
  10060. # SGI C++
  10061. 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'
  10062. # Archives containing C++ object files must be created using
  10063. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10064. # necessary to make sure instantiated templates are included
  10065. # in the archive.
  10066. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10067. ;;
  10068. *)
  10069. if test "$GXX" = yes; then
  10070. if test "$with_gnu_ld" = no; then
  10071. 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'
  10072. else
  10073. 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'
  10074. fi
  10075. fi
  10076. link_all_deplibs_CXX=yes
  10077. ;;
  10078. esac
  10079. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10080. hardcode_libdir_separator_CXX=:
  10081. ;;
  10082. linux*)
  10083. case $cc_basename in
  10084. KCC*)
  10085. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10086. # KCC will only create a shared library if the output file
  10087. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10088. # to its proper name (with version) after linking.
  10089. 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'
  10090. 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'
  10091. # Commands to make compiler produce verbose output that lists
  10092. # what "hidden" libraries, object files and flags are used when
  10093. # linking a shared library.
  10094. #
  10095. # There doesn't appear to be a way to prevent this compiler from
  10096. # explicitly linking system object files so we need to strip them
  10097. # from the output so that they don't get included in the library
  10098. # dependencies.
  10099. 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'
  10100. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10101. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10102. # Archives containing C++ object files must be created using
  10103. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10104. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10105. ;;
  10106. icpc*)
  10107. # Intel C++
  10108. with_gnu_ld=yes
  10109. # version 8.0 and above of icpc choke on multiply defined symbols
  10110. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10111. # earlier do not add the objects themselves.
  10112. case `$CC -V 2>&1` in
  10113. *"Version 7."*)
  10114. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10115. 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'
  10116. ;;
  10117. *) # Version 8.0 or newer
  10118. tmp_idyn=
  10119. case $host_cpu in
  10120. ia64*) tmp_idyn=' -i_dynamic';;
  10121. esac
  10122. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10123. 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'
  10124. ;;
  10125. esac
  10126. archive_cmds_need_lc_CXX=no
  10127. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10128. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10129. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10130. ;;
  10131. pgCC*)
  10132. # Portland Group C++ compiler
  10133. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10134. 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'
  10135. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10136. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10137. 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'
  10138. ;;
  10139. cxx*)
  10140. # Compaq C++
  10141. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10142. 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'
  10143. runpath_var=LD_RUN_PATH
  10144. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10145. hardcode_libdir_separator_CXX=:
  10146. # Commands to make compiler produce verbose output that lists
  10147. # what "hidden" libraries, object files and flags are used when
  10148. # linking a shared library.
  10149. #
  10150. # There doesn't appear to be a way to prevent this compiler from
  10151. # explicitly linking system object files so we need to strip them
  10152. # from the output so that they don't get included in the library
  10153. # dependencies.
  10154. 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'
  10155. ;;
  10156. esac
  10157. ;;
  10158. lynxos*)
  10159. # FIXME: insert proper C++ library support
  10160. ld_shlibs_CXX=no
  10161. ;;
  10162. m88k*)
  10163. # FIXME: insert proper C++ library support
  10164. ld_shlibs_CXX=no
  10165. ;;
  10166. mvs*)
  10167. case $cc_basename in
  10168. cxx*)
  10169. # FIXME: insert proper C++ library support
  10170. ld_shlibs_CXX=no
  10171. ;;
  10172. *)
  10173. # FIXME: insert proper C++ library support
  10174. ld_shlibs_CXX=no
  10175. ;;
  10176. esac
  10177. ;;
  10178. netbsd*)
  10179. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10180. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10181. wlarc=
  10182. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10183. hardcode_direct_CXX=yes
  10184. hardcode_shlibpath_var_CXX=no
  10185. fi
  10186. # Workaround some broken pre-1.5 toolchains
  10187. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10188. ;;
  10189. openbsd2*)
  10190. # C++ shared libraries are fairly broken
  10191. ld_shlibs_CXX=no
  10192. ;;
  10193. openbsd*)
  10194. hardcode_direct_CXX=yes
  10195. hardcode_shlibpath_var_CXX=no
  10196. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10197. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10198. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10199. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10200. export_dynamic_flag_spec_CXX='${wl}-E'
  10201. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10202. fi
  10203. output_verbose_link_cmd='echo'
  10204. ;;
  10205. osf3*)
  10206. case $cc_basename in
  10207. KCC*)
  10208. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10209. # KCC will only create a shared library if the output file
  10210. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10211. # to its proper name (with version) after linking.
  10212. 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'
  10213. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10214. hardcode_libdir_separator_CXX=:
  10215. # Archives containing C++ object files must be created using
  10216. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10217. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10218. ;;
  10219. RCC*)
  10220. # Rational C++ 2.4.1
  10221. # FIXME: insert proper C++ library support
  10222. ld_shlibs_CXX=no
  10223. ;;
  10224. cxx*)
  10225. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10226. 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'
  10227. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10228. hardcode_libdir_separator_CXX=:
  10229. # Commands to make compiler produce verbose output that lists
  10230. # what "hidden" libraries, object files and flags are used when
  10231. # linking a shared library.
  10232. #
  10233. # There doesn't appear to be a way to prevent this compiler from
  10234. # explicitly linking system object files so we need to strip them
  10235. # from the output so that they don't get included in the library
  10236. # dependencies.
  10237. 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'
  10238. ;;
  10239. *)
  10240. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10241. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10242. 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'
  10243. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10244. hardcode_libdir_separator_CXX=:
  10245. # Commands to make compiler produce verbose output that lists
  10246. # what "hidden" libraries, object files and flags are used when
  10247. # linking a shared library.
  10248. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10249. else
  10250. # FIXME: insert proper C++ library support
  10251. ld_shlibs_CXX=no
  10252. fi
  10253. ;;
  10254. esac
  10255. ;;
  10256. osf4* | osf5*)
  10257. case $cc_basename in
  10258. KCC*)
  10259. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10260. # KCC will only create a shared library if the output file
  10261. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10262. # to its proper name (with version) after linking.
  10263. 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'
  10264. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10265. hardcode_libdir_separator_CXX=:
  10266. # Archives containing C++ object files must be created using
  10267. # the KAI C++ compiler.
  10268. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10269. ;;
  10270. RCC*)
  10271. # Rational C++ 2.4.1
  10272. # FIXME: insert proper C++ library support
  10273. ld_shlibs_CXX=no
  10274. ;;
  10275. cxx*)
  10276. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10277. 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'
  10278. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10279. echo "-hidden">> $lib.exp~
  10280. $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~
  10281. $rm $lib.exp'
  10282. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10283. hardcode_libdir_separator_CXX=:
  10284. # Commands to make compiler produce verbose output that lists
  10285. # what "hidden" libraries, object files and flags are used when
  10286. # linking a shared library.
  10287. #
  10288. # There doesn't appear to be a way to prevent this compiler from
  10289. # explicitly linking system object files so we need to strip them
  10290. # from the output so that they don't get included in the library
  10291. # dependencies.
  10292. 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'
  10293. ;;
  10294. *)
  10295. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10296. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10297. 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'
  10298. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10299. hardcode_libdir_separator_CXX=:
  10300. # Commands to make compiler produce verbose output that lists
  10301. # what "hidden" libraries, object files and flags are used when
  10302. # linking a shared library.
  10303. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10304. else
  10305. # FIXME: insert proper C++ library support
  10306. ld_shlibs_CXX=no
  10307. fi
  10308. ;;
  10309. esac
  10310. ;;
  10311. psos*)
  10312. # FIXME: insert proper C++ library support
  10313. ld_shlibs_CXX=no
  10314. ;;
  10315. sco*)
  10316. archive_cmds_need_lc_CXX=no
  10317. case $cc_basename in
  10318. CC*)
  10319. # FIXME: insert proper C++ library support
  10320. ld_shlibs_CXX=no
  10321. ;;
  10322. *)
  10323. # FIXME: insert proper C++ library support
  10324. ld_shlibs_CXX=no
  10325. ;;
  10326. esac
  10327. ;;
  10328. sunos4*)
  10329. case $cc_basename in
  10330. CC*)
  10331. # Sun C++ 4.x
  10332. # FIXME: insert proper C++ library support
  10333. ld_shlibs_CXX=no
  10334. ;;
  10335. lcc*)
  10336. # Lucid
  10337. # FIXME: insert proper C++ library support
  10338. ld_shlibs_CXX=no
  10339. ;;
  10340. *)
  10341. # FIXME: insert proper C++ library support
  10342. ld_shlibs_CXX=no
  10343. ;;
  10344. esac
  10345. ;;
  10346. solaris*)
  10347. case $cc_basename in
  10348. CC*)
  10349. # Sun C++ 4.2, 5.x and Centerline C++
  10350. no_undefined_flag_CXX=' -zdefs'
  10351. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10352. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10353. $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'
  10354. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10355. hardcode_shlibpath_var_CXX=no
  10356. case $host_os in
  10357. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10358. *)
  10359. # The C++ compiler is used as linker so we must use $wl
  10360. # flag to pass the commands to the underlying system
  10361. # linker. We must also pass each convience library through
  10362. # to the system linker between allextract/defaultextract.
  10363. # The C++ compiler will combine linker options so we
  10364. # cannot just pass the convience library names through
  10365. # without $wl.
  10366. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10367. 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'
  10368. ;;
  10369. esac
  10370. link_all_deplibs_CXX=yes
  10371. # Commands to make compiler produce verbose output that lists
  10372. # what "hidden" libraries, object files and flags are used when
  10373. # linking a shared library.
  10374. #
  10375. # There doesn't appear to be a way to prevent this compiler from
  10376. # explicitly linking system object files so we need to strip them
  10377. # from the output so that they don't get included in the library
  10378. # dependencies.
  10379. 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'
  10380. # Archives containing C++ object files must be created using
  10381. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10382. # necessary to make sure instantiated templates are included
  10383. # in the archive.
  10384. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10385. ;;
  10386. gcx*)
  10387. # Green Hills C++ Compiler
  10388. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10389. # The C++ compiler must be used to create the archive.
  10390. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10391. ;;
  10392. *)
  10393. # GNU C++ compiler with Solaris linker
  10394. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10395. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10396. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10397. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10398. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10399. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10400. # Commands to make compiler produce verbose output that lists
  10401. # what "hidden" libraries, object files and flags are used when
  10402. # linking a shared library.
  10403. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10404. else
  10405. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10406. # platform.
  10407. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10408. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10409. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10410. # Commands to make compiler produce verbose output that lists
  10411. # what "hidden" libraries, object files and flags are used when
  10412. # linking a shared library.
  10413. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10414. fi
  10415. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10416. fi
  10417. ;;
  10418. esac
  10419. ;;
  10420. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10421. archive_cmds_need_lc_CXX=no
  10422. ;;
  10423. tandem*)
  10424. case $cc_basename in
  10425. NCC*)
  10426. # NonStop-UX NCC 3.20
  10427. # FIXME: insert proper C++ library support
  10428. ld_shlibs_CXX=no
  10429. ;;
  10430. *)
  10431. # FIXME: insert proper C++ library support
  10432. ld_shlibs_CXX=no
  10433. ;;
  10434. esac
  10435. ;;
  10436. vxworks*)
  10437. # FIXME: insert proper C++ library support
  10438. ld_shlibs_CXX=no
  10439. ;;
  10440. *)
  10441. # FIXME: insert proper C++ library support
  10442. ld_shlibs_CXX=no
  10443. ;;
  10444. esac
  10445. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10446. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10447. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10448. GCC_CXX="$GXX"
  10449. LD_CXX="$LD"
  10450. cat > conftest.$ac_ext <<EOF
  10451. class Foo
  10452. {
  10453. public:
  10454. Foo (void) { a = 0; }
  10455. private:
  10456. int a;
  10457. };
  10458. EOF
  10459. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10460. (eval $ac_compile) 2>&5
  10461. ac_status=$?
  10462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10463. (exit $ac_status); }; then
  10464. # Parse the compiler output and extract the necessary
  10465. # objects, libraries and library flags.
  10466. # Sentinel used to keep track of whether or not we are before
  10467. # the conftest object file.
  10468. pre_test_object_deps_done=no
  10469. # The `*' in the case matches for architectures that use `case' in
  10470. # $output_verbose_cmd can trigger glob expansion during the loop
  10471. # eval without this substitution.
  10472. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10473. for p in `eval $output_verbose_link_cmd`; do
  10474. case $p in
  10475. -L* | -R* | -l*)
  10476. # Some compilers place space between "-{L,R}" and the path.
  10477. # Remove the space.
  10478. if test $p = "-L" \
  10479. || test $p = "-R"; then
  10480. prev=$p
  10481. continue
  10482. else
  10483. prev=
  10484. fi
  10485. if test "$pre_test_object_deps_done" = no; then
  10486. case $p in
  10487. -L* | -R*)
  10488. # Internal compiler library paths should come after those
  10489. # provided the user. The postdeps already come after the
  10490. # user supplied libs so there is no need to process them.
  10491. if test -z "$compiler_lib_search_path_CXX"; then
  10492. compiler_lib_search_path_CXX="${prev}${p}"
  10493. else
  10494. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10495. fi
  10496. ;;
  10497. # The "-l" case would never come before the object being
  10498. # linked, so don't bother handling this case.
  10499. esac
  10500. else
  10501. if test -z "$postdeps_CXX"; then
  10502. postdeps_CXX="${prev}${p}"
  10503. else
  10504. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10505. fi
  10506. fi
  10507. ;;
  10508. *.$objext)
  10509. # This assumes that the test object file only shows up
  10510. # once in the compiler output.
  10511. if test "$p" = "conftest.$objext"; then
  10512. pre_test_object_deps_done=yes
  10513. continue
  10514. fi
  10515. if test "$pre_test_object_deps_done" = no; then
  10516. if test -z "$predep_objects_CXX"; then
  10517. predep_objects_CXX="$p"
  10518. else
  10519. predep_objects_CXX="$predep_objects_CXX $p"
  10520. fi
  10521. else
  10522. if test -z "$postdep_objects_CXX"; then
  10523. postdep_objects_CXX="$p"
  10524. else
  10525. postdep_objects_CXX="$postdep_objects_CXX $p"
  10526. fi
  10527. fi
  10528. ;;
  10529. *) ;; # Ignore the rest.
  10530. esac
  10531. done
  10532. # Clean up.
  10533. rm -f a.out a.exe
  10534. else
  10535. echo "libtool.m4: error: problem compiling CXX test program"
  10536. fi
  10537. $rm -f confest.$objext
  10538. case " $postdeps_CXX " in
  10539. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10540. esac
  10541. lt_prog_compiler_wl_CXX=
  10542. lt_prog_compiler_pic_CXX=
  10543. lt_prog_compiler_static_CXX=
  10544. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10545. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10546. # C++ specific cases for pic, static, wl, etc.
  10547. if test "$GXX" = yes; then
  10548. lt_prog_compiler_wl_CXX='-Wl,'
  10549. lt_prog_compiler_static_CXX='-static'
  10550. case $host_os in
  10551. aix*)
  10552. # All AIX code is PIC.
  10553. if test "$host_cpu" = ia64; then
  10554. # AIX 5 now supports IA64 processor
  10555. lt_prog_compiler_static_CXX='-Bstatic'
  10556. fi
  10557. ;;
  10558. amigaos*)
  10559. # FIXME: we need at least 68020 code to build shared libraries, but
  10560. # adding the `-m68020' flag to GCC prevents building anything better,
  10561. # like `-m68040'.
  10562. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10563. ;;
  10564. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10565. # PIC is the default for these OSes.
  10566. ;;
  10567. mingw* | os2* | pw32*)
  10568. # This hack is so that the source file can tell whether it is being
  10569. # built for inclusion in a dll (and should export symbols for example).
  10570. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10571. ;;
  10572. darwin* | rhapsody*)
  10573. # PIC is the default on this platform
  10574. # Common symbols not allowed in MH_DYLIB files
  10575. lt_prog_compiler_pic_CXX='-fno-common'
  10576. ;;
  10577. *djgpp*)
  10578. # DJGPP does not support shared libraries at all
  10579. lt_prog_compiler_pic_CXX=
  10580. ;;
  10581. sysv4*MP*)
  10582. if test -d /usr/nec; then
  10583. lt_prog_compiler_pic_CXX=-Kconform_pic
  10584. fi
  10585. ;;
  10586. hpux*)
  10587. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10588. # not for PA HP-UX.
  10589. case "$host_cpu" in
  10590. hppa*64*|ia64*)
  10591. ;;
  10592. *)
  10593. lt_prog_compiler_pic_CXX='-fPIC'
  10594. ;;
  10595. esac
  10596. ;;
  10597. *)
  10598. lt_prog_compiler_pic_CXX='-fPIC'
  10599. ;;
  10600. esac
  10601. else
  10602. case $host_os in
  10603. aix4* | aix5*)
  10604. # All AIX code is PIC.
  10605. if test "$host_cpu" = ia64; then
  10606. # AIX 5 now supports IA64 processor
  10607. lt_prog_compiler_static_CXX='-Bstatic'
  10608. else
  10609. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10610. fi
  10611. ;;
  10612. chorus*)
  10613. case $cc_basename in
  10614. cxch68*)
  10615. # Green Hills C++ Compiler
  10616. # _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"
  10617. ;;
  10618. esac
  10619. ;;
  10620. darwin*)
  10621. # PIC is the default on this platform
  10622. # Common symbols not allowed in MH_DYLIB files
  10623. case $cc_basename in
  10624. xlc*)
  10625. lt_prog_compiler_pic_CXX='-qnocommon'
  10626. lt_prog_compiler_wl_CXX='-Wl,'
  10627. ;;
  10628. esac
  10629. ;;
  10630. dgux*)
  10631. case $cc_basename in
  10632. ec++*)
  10633. lt_prog_compiler_pic_CXX='-KPIC'
  10634. ;;
  10635. ghcx*)
  10636. # Green Hills C++ Compiler
  10637. lt_prog_compiler_pic_CXX='-pic'
  10638. ;;
  10639. *)
  10640. ;;
  10641. esac
  10642. ;;
  10643. freebsd* | kfreebsd*-gnu | dragonfly*)
  10644. # FreeBSD uses GNU C++
  10645. ;;
  10646. hpux9* | hpux10* | hpux11*)
  10647. case $cc_basename in
  10648. CC*)
  10649. lt_prog_compiler_wl_CXX='-Wl,'
  10650. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10651. if test "$host_cpu" != ia64; then
  10652. lt_prog_compiler_pic_CXX='+Z'
  10653. fi
  10654. ;;
  10655. aCC*)
  10656. lt_prog_compiler_wl_CXX='-Wl,'
  10657. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10658. case "$host_cpu" in
  10659. hppa*64*|ia64*)
  10660. # +Z the default
  10661. ;;
  10662. *)
  10663. lt_prog_compiler_pic_CXX='+Z'
  10664. ;;
  10665. esac
  10666. ;;
  10667. *)
  10668. ;;
  10669. esac
  10670. ;;
  10671. irix5* | irix6* | nonstopux*)
  10672. case $cc_basename in
  10673. CC*)
  10674. lt_prog_compiler_wl_CXX='-Wl,'
  10675. lt_prog_compiler_static_CXX='-non_shared'
  10676. # CC pic flag -KPIC is the default.
  10677. ;;
  10678. *)
  10679. ;;
  10680. esac
  10681. ;;
  10682. linux*)
  10683. case $cc_basename in
  10684. KCC*)
  10685. # KAI C++ Compiler
  10686. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10687. lt_prog_compiler_pic_CXX='-fPIC'
  10688. ;;
  10689. icpc* | ecpc*)
  10690. # Intel C++
  10691. lt_prog_compiler_wl_CXX='-Wl,'
  10692. lt_prog_compiler_pic_CXX='-KPIC'
  10693. lt_prog_compiler_static_CXX='-static'
  10694. ;;
  10695. pgCC*)
  10696. # Portland Group C++ compiler.
  10697. lt_prog_compiler_wl_CXX='-Wl,'
  10698. lt_prog_compiler_pic_CXX='-fpic'
  10699. lt_prog_compiler_static_CXX='-static'
  10700. ;;
  10701. cxx*)
  10702. # Compaq C++
  10703. # Make sure the PIC flag is empty. It appears that all Alpha
  10704. # Linux and Compaq Tru64 Unix objects are PIC.
  10705. lt_prog_compiler_pic_CXX=
  10706. lt_prog_compiler_static_CXX='-non_shared'
  10707. ;;
  10708. *)
  10709. ;;
  10710. esac
  10711. ;;
  10712. lynxos*)
  10713. ;;
  10714. m88k*)
  10715. ;;
  10716. mvs*)
  10717. case $cc_basename in
  10718. cxx*)
  10719. lt_prog_compiler_pic_CXX='-W c,exportall'
  10720. ;;
  10721. *)
  10722. ;;
  10723. esac
  10724. ;;
  10725. netbsd*)
  10726. ;;
  10727. osf3* | osf4* | osf5*)
  10728. case $cc_basename in
  10729. KCC*)
  10730. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10731. ;;
  10732. RCC*)
  10733. # Rational C++ 2.4.1
  10734. lt_prog_compiler_pic_CXX='-pic'
  10735. ;;
  10736. cxx*)
  10737. # Digital/Compaq C++
  10738. lt_prog_compiler_wl_CXX='-Wl,'
  10739. # Make sure the PIC flag is empty. It appears that all Alpha
  10740. # Linux and Compaq Tru64 Unix objects are PIC.
  10741. lt_prog_compiler_pic_CXX=
  10742. lt_prog_compiler_static_CXX='-non_shared'
  10743. ;;
  10744. *)
  10745. ;;
  10746. esac
  10747. ;;
  10748. psos*)
  10749. ;;
  10750. sco*)
  10751. case $cc_basename in
  10752. CC*)
  10753. lt_prog_compiler_pic_CXX='-fPIC'
  10754. ;;
  10755. *)
  10756. ;;
  10757. esac
  10758. ;;
  10759. solaris*)
  10760. case $cc_basename in
  10761. CC*)
  10762. # Sun C++ 4.2, 5.x and Centerline C++
  10763. lt_prog_compiler_pic_CXX='-KPIC'
  10764. lt_prog_compiler_static_CXX='-Bstatic'
  10765. lt_prog_compiler_wl_CXX='-Qoption ld '
  10766. ;;
  10767. gcx*)
  10768. # Green Hills C++ Compiler
  10769. lt_prog_compiler_pic_CXX='-PIC'
  10770. ;;
  10771. *)
  10772. ;;
  10773. esac
  10774. ;;
  10775. sunos4*)
  10776. case $cc_basename in
  10777. CC*)
  10778. # Sun C++ 4.x
  10779. lt_prog_compiler_pic_CXX='-pic'
  10780. lt_prog_compiler_static_CXX='-Bstatic'
  10781. ;;
  10782. lcc*)
  10783. # Lucid
  10784. lt_prog_compiler_pic_CXX='-pic'
  10785. ;;
  10786. *)
  10787. ;;
  10788. esac
  10789. ;;
  10790. tandem*)
  10791. case $cc_basename in
  10792. NCC*)
  10793. # NonStop-UX NCC 3.20
  10794. lt_prog_compiler_pic_CXX='-KPIC'
  10795. ;;
  10796. *)
  10797. ;;
  10798. esac
  10799. ;;
  10800. unixware*)
  10801. ;;
  10802. vxworks*)
  10803. ;;
  10804. *)
  10805. lt_prog_compiler_can_build_shared_CXX=no
  10806. ;;
  10807. esac
  10808. fi
  10809. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10810. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  10811. #
  10812. # Check to make sure the PIC flag actually works.
  10813. #
  10814. if test -n "$lt_prog_compiler_pic_CXX"; then
  10815. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10816. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  10817. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10818. echo $ECHO_N "(cached) $ECHO_C" >&6
  10819. else
  10820. lt_prog_compiler_pic_works_CXX=no
  10821. ac_outfile=conftest.$ac_objext
  10822. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10823. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10824. # Insert the option either (1) after the last *FLAGS variable, or
  10825. # (2) before a word containing "conftest.", or (3) at the end.
  10826. # Note that $ac_compile itself does not contain backslashes and begins
  10827. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10828. # The option is referenced via a variable to avoid confusing sed.
  10829. lt_compile=`echo "$ac_compile" | $SED \
  10830. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10831. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10832. -e 's:$: $lt_compiler_flag:'`
  10833. (eval echo "\"\$as_me:12090: $lt_compile\"" >&5)
  10834. (eval "$lt_compile" 2>conftest.err)
  10835. ac_status=$?
  10836. cat conftest.err >&5
  10837. echo "$as_me:12094: \$? = $ac_status" >&5
  10838. if (exit $ac_status) && test -s "$ac_outfile"; then
  10839. # The compiler can only warn and ignore the option if not recognized
  10840. # So say no if there are warnings other than the usual output.
  10841. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  10842. $SED '/^$/d' conftest.err >conftest.er2
  10843. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  10844. lt_prog_compiler_pic_works_CXX=yes
  10845. fi
  10846. fi
  10847. $rm conftest*
  10848. fi
  10849. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10850. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  10851. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10852. case $lt_prog_compiler_pic_CXX in
  10853. "" | " "*) ;;
  10854. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10855. esac
  10856. else
  10857. lt_prog_compiler_pic_CXX=
  10858. lt_prog_compiler_can_build_shared_CXX=no
  10859. fi
  10860. fi
  10861. case "$host_os" in
  10862. # For platforms which do not support PIC, -DPIC is meaningless:
  10863. *djgpp*)
  10864. lt_prog_compiler_pic_CXX=
  10865. ;;
  10866. *)
  10867. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10868. ;;
  10869. esac
  10870. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10871. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  10872. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10873. echo $ECHO_N "(cached) $ECHO_C" >&6
  10874. else
  10875. lt_cv_prog_compiler_c_o_CXX=no
  10876. $rm -r conftest 2>/dev/null
  10877. mkdir conftest
  10878. cd conftest
  10879. mkdir out
  10880. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10881. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10882. # Insert the option either (1) after the last *FLAGS variable, or
  10883. # (2) before a word containing "conftest.", or (3) at the end.
  10884. # Note that $ac_compile itself does not contain backslashes and begins
  10885. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10886. lt_compile=`echo "$ac_compile" | $SED \
  10887. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10888. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10889. -e 's:$: $lt_compiler_flag:'`
  10890. (eval echo "\"\$as_me:12152: $lt_compile\"" >&5)
  10891. (eval "$lt_compile" 2>out/conftest.err)
  10892. ac_status=$?
  10893. cat out/conftest.err >&5
  10894. echo "$as_me:12156: \$? = $ac_status" >&5
  10895. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10896. then
  10897. # The compiler can only warn and ignore the option if not recognized
  10898. # So say no if there are warnings
  10899. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  10900. $SED '/^$/d' out/conftest.err >out/conftest.er2
  10901. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10902. lt_cv_prog_compiler_c_o_CXX=yes
  10903. fi
  10904. fi
  10905. chmod u+w .
  10906. $rm conftest*
  10907. # SGI C++ compiler will create directory out/ii_files/ for
  10908. # template instantiation
  10909. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10910. $rm out/* && rmdir out
  10911. cd ..
  10912. rmdir conftest
  10913. $rm conftest*
  10914. fi
  10915. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10916. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  10917. hard_links="nottested"
  10918. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10919. # do not overwrite the value of need_locks provided by the user
  10920. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10921. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  10922. hard_links=yes
  10923. $rm conftest*
  10924. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10925. touch conftest.a
  10926. ln conftest.a conftest.b 2>&5 || hard_links=no
  10927. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10928. { echo "$as_me:$LINENO: result: $hard_links" >&5
  10929. echo "${ECHO_T}$hard_links" >&6; }
  10930. if test "$hard_links" = no; then
  10931. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10932. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10933. need_locks=warn
  10934. fi
  10935. else
  10936. need_locks=no
  10937. fi
  10938. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10939. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10940. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10941. case $host_os in
  10942. aix4* | aix5*)
  10943. # If we're using GNU nm, then we don't want the "-C" option.
  10944. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10945. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10946. 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'
  10947. else
  10948. 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'
  10949. fi
  10950. ;;
  10951. pw32*)
  10952. export_symbols_cmds_CXX="$ltdll_cmds"
  10953. ;;
  10954. cygwin* | mingw*)
  10955. 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'
  10956. ;;
  10957. *)
  10958. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10959. ;;
  10960. esac
  10961. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10962. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10963. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10964. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10965. if test "$GCC" = yes; then
  10966. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10967. fi
  10968. #
  10969. # Do we need to explicitly link libc?
  10970. #
  10971. case "x$archive_cmds_need_lc_CXX" in
  10972. x|xyes)
  10973. # Assume -lc should be added
  10974. archive_cmds_need_lc_CXX=yes
  10975. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10976. case $archive_cmds_CXX in
  10977. *'~'*)
  10978. # FIXME: we may have to deal with multi-command sequences.
  10979. ;;
  10980. '$CC '*)
  10981. # Test whether the compiler implicitly links with -lc since on some
  10982. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10983. # to ld, don't add -lc before -lgcc.
  10984. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10985. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  10986. $rm conftest*
  10987. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10989. (eval $ac_compile) 2>&5
  10990. ac_status=$?
  10991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10992. (exit $ac_status); } 2>conftest.err; then
  10993. soname=conftest
  10994. lib=conftest
  10995. libobjs=conftest.$ac_objext
  10996. deplibs=
  10997. wl=$lt_prog_compiler_wl_CXX
  10998. compiler_flags=-v
  10999. linker_flags=-v
  11000. verstring=
  11001. output_objdir=.
  11002. libname=conftest
  11003. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11004. allow_undefined_flag_CXX=
  11005. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11006. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11007. ac_status=$?
  11008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11009. (exit $ac_status); }
  11010. then
  11011. archive_cmds_need_lc_CXX=no
  11012. else
  11013. archive_cmds_need_lc_CXX=yes
  11014. fi
  11015. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11016. else
  11017. cat conftest.err 1>&5
  11018. fi
  11019. $rm conftest*
  11020. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11021. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11022. ;;
  11023. esac
  11024. fi
  11025. ;;
  11026. esac
  11027. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11028. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11029. library_names_spec=
  11030. libname_spec='lib$name'
  11031. soname_spec=
  11032. shrext_cmds=".so"
  11033. postinstall_cmds=
  11034. postuninstall_cmds=
  11035. finish_cmds=
  11036. finish_eval=
  11037. shlibpath_var=
  11038. shlibpath_overrides_runpath=unknown
  11039. version_type=none
  11040. dynamic_linker="$host_os ld.so"
  11041. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11042. if test "$GCC" = yes; then
  11043. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11044. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11045. # if the path contains ";" then we assume it to be the separator
  11046. # otherwise default to the standard path separator (i.e. ":") - it is
  11047. # assumed that no part of a normal pathname contains ";" but that should
  11048. # okay in the real world where ";" in dirpaths is itself problematic.
  11049. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11050. else
  11051. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11052. fi
  11053. else
  11054. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11055. fi
  11056. need_lib_prefix=unknown
  11057. hardcode_into_libs=no
  11058. # when you set need_version to no, make sure it does not cause -set_version
  11059. # flags to be left without arguments
  11060. need_version=unknown
  11061. case $host_os in
  11062. aix3*)
  11063. version_type=linux
  11064. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11065. shlibpath_var=LIBPATH
  11066. # AIX 3 has no versioning support, so we append a major version to the name.
  11067. soname_spec='${libname}${release}${shared_ext}$major'
  11068. ;;
  11069. aix4* | aix5*)
  11070. version_type=linux
  11071. need_lib_prefix=no
  11072. need_version=no
  11073. hardcode_into_libs=yes
  11074. if test "$host_cpu" = ia64; then
  11075. # AIX 5 supports IA64
  11076. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11077. shlibpath_var=LD_LIBRARY_PATH
  11078. else
  11079. # With GCC up to 2.95.x, collect2 would create an import file
  11080. # for dependence libraries. The import file would start with
  11081. # the line `#! .'. This would cause the generated library to
  11082. # depend on `.', always an invalid library. This was fixed in
  11083. # development snapshots of GCC prior to 3.0.
  11084. case $host_os in
  11085. aix4 | aix4.[01] | aix4.[01].*)
  11086. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11087. echo ' yes '
  11088. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11089. :
  11090. else
  11091. can_build_shared=no
  11092. fi
  11093. ;;
  11094. esac
  11095. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11096. # soname into executable. Probably we can add versioning support to
  11097. # collect2, so additional links can be useful in future.
  11098. if test "$aix_use_runtimelinking" = yes; then
  11099. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11100. # instead of lib<name>.a to let people know that these are not
  11101. # typical AIX shared libraries.
  11102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11103. else
  11104. # We preserve .a as extension for shared libraries through AIX4.2
  11105. # and later when we are not doing run time linking.
  11106. library_names_spec='${libname}${release}.a $libname.a'
  11107. soname_spec='${libname}${release}${shared_ext}$major'
  11108. fi
  11109. shlibpath_var=LIBPATH
  11110. fi
  11111. ;;
  11112. amigaos*)
  11113. library_names_spec='$libname.ixlibrary $libname.a'
  11114. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11115. 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'
  11116. ;;
  11117. beos*)
  11118. library_names_spec='${libname}${shared_ext}'
  11119. dynamic_linker="$host_os ld.so"
  11120. shlibpath_var=LIBRARY_PATH
  11121. ;;
  11122. bsdi[45]*)
  11123. version_type=linux
  11124. need_version=no
  11125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11126. soname_spec='${libname}${release}${shared_ext}$major'
  11127. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11128. shlibpath_var=LD_LIBRARY_PATH
  11129. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11130. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11131. # the default ld.so.conf also contains /usr/contrib/lib and
  11132. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11133. # libtool to hard-code these into programs
  11134. ;;
  11135. cygwin* | mingw* | pw32*)
  11136. version_type=windows
  11137. shrext_cmds=".dll"
  11138. need_version=no
  11139. need_lib_prefix=no
  11140. case $GCC,$host_os in
  11141. yes,cygwin* | yes,mingw* | yes,pw32*)
  11142. library_names_spec='$libname.dll.a'
  11143. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11144. postinstall_cmds='base_file=`basename \${file}`~
  11145. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11146. dldir=$destdir/`dirname \$dlpath`~
  11147. test -d \$dldir || mkdir -p \$dldir~
  11148. $install_prog $dir/$dlname \$dldir/$dlname'
  11149. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11150. dlpath=$dir/\$dldll~
  11151. $rm \$dlpath'
  11152. shlibpath_overrides_runpath=yes
  11153. case $host_os in
  11154. cygwin*)
  11155. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11156. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11157. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11158. ;;
  11159. mingw*)
  11160. # MinGW DLLs use traditional 'lib' prefix
  11161. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11162. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11163. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11164. # It is most probably a Windows format PATH printed by
  11165. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11166. # path with ; separators, and with drive letters. We can handle the
  11167. # drive letters (cygwin fileutils understands them), so leave them,
  11168. # especially as we might pass files found there to a mingw objdump,
  11169. # which wouldn't understand a cygwinified path. Ahh.
  11170. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11171. else
  11172. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11173. fi
  11174. ;;
  11175. pw32*)
  11176. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11177. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11178. ;;
  11179. esac
  11180. ;;
  11181. *)
  11182. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11183. ;;
  11184. esac
  11185. dynamic_linker='Win32 ld.exe'
  11186. # FIXME: first we should search . and the directory the executable is in
  11187. shlibpath_var=PATH
  11188. ;;
  11189. darwin* | rhapsody*)
  11190. dynamic_linker="$host_os dyld"
  11191. version_type=darwin
  11192. need_lib_prefix=no
  11193. need_version=no
  11194. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11195. soname_spec='${libname}${release}${major}$shared_ext'
  11196. shlibpath_overrides_runpath=yes
  11197. shlibpath_var=DYLD_LIBRARY_PATH
  11198. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  11199. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11200. if test "$GCC" = yes; then
  11201. 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"`
  11202. else
  11203. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11204. fi
  11205. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11206. ;;
  11207. dgux*)
  11208. version_type=linux
  11209. need_lib_prefix=no
  11210. need_version=no
  11211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11212. soname_spec='${libname}${release}${shared_ext}$major'
  11213. shlibpath_var=LD_LIBRARY_PATH
  11214. ;;
  11215. freebsd1*)
  11216. dynamic_linker=no
  11217. ;;
  11218. kfreebsd*-gnu)
  11219. version_type=linux
  11220. need_lib_prefix=no
  11221. need_version=no
  11222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11223. soname_spec='${libname}${release}${shared_ext}$major'
  11224. shlibpath_var=LD_LIBRARY_PATH
  11225. shlibpath_overrides_runpath=no
  11226. hardcode_into_libs=yes
  11227. dynamic_linker='GNU ld.so'
  11228. ;;
  11229. freebsd* | dragonfly*)
  11230. # DragonFly does not have aout. When/if they implement a new
  11231. # versioning mechanism, adjust this.
  11232. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11233. version_type=freebsd-$objformat
  11234. case $version_type in
  11235. freebsd-elf*)
  11236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11237. need_version=no
  11238. need_lib_prefix=no
  11239. ;;
  11240. freebsd-*)
  11241. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11242. need_version=yes
  11243. ;;
  11244. esac
  11245. shlibpath_var=LD_LIBRARY_PATH
  11246. case $host_os in
  11247. freebsd2*)
  11248. shlibpath_overrides_runpath=yes
  11249. ;;
  11250. freebsd3.[01]* | freebsdelf3.[01]*)
  11251. shlibpath_overrides_runpath=yes
  11252. hardcode_into_libs=yes
  11253. ;;
  11254. *) # from 3.2 on
  11255. shlibpath_overrides_runpath=no
  11256. hardcode_into_libs=yes
  11257. ;;
  11258. esac
  11259. ;;
  11260. gnu*)
  11261. version_type=linux
  11262. need_lib_prefix=no
  11263. need_version=no
  11264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11265. soname_spec='${libname}${release}${shared_ext}$major'
  11266. shlibpath_var=LD_LIBRARY_PATH
  11267. hardcode_into_libs=yes
  11268. ;;
  11269. hpux9* | hpux10* | hpux11*)
  11270. # Give a soname corresponding to the major version so that dld.sl refuses to
  11271. # link against other versions.
  11272. version_type=sunos
  11273. need_lib_prefix=no
  11274. need_version=no
  11275. case "$host_cpu" in
  11276. ia64*)
  11277. shrext_cmds='.so'
  11278. hardcode_into_libs=yes
  11279. dynamic_linker="$host_os dld.so"
  11280. shlibpath_var=LD_LIBRARY_PATH
  11281. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11283. soname_spec='${libname}${release}${shared_ext}$major'
  11284. if test "X$HPUX_IA64_MODE" = X32; then
  11285. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11286. else
  11287. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11288. fi
  11289. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11290. ;;
  11291. hppa*64*)
  11292. shrext_cmds='.sl'
  11293. hardcode_into_libs=yes
  11294. dynamic_linker="$host_os dld.sl"
  11295. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11296. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11298. soname_spec='${libname}${release}${shared_ext}$major'
  11299. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11300. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11301. ;;
  11302. *)
  11303. shrext_cmds='.sl'
  11304. dynamic_linker="$host_os dld.sl"
  11305. shlibpath_var=SHLIB_PATH
  11306. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11308. soname_spec='${libname}${release}${shared_ext}$major'
  11309. ;;
  11310. esac
  11311. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11312. postinstall_cmds='chmod 555 $lib'
  11313. ;;
  11314. irix5* | irix6* | nonstopux*)
  11315. case $host_os in
  11316. nonstopux*) version_type=nonstopux ;;
  11317. *)
  11318. if test "$lt_cv_prog_gnu_ld" = yes; then
  11319. version_type=linux
  11320. else
  11321. version_type=irix
  11322. fi ;;
  11323. esac
  11324. need_lib_prefix=no
  11325. need_version=no
  11326. soname_spec='${libname}${release}${shared_ext}$major'
  11327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11328. case $host_os in
  11329. irix5* | nonstopux*)
  11330. libsuff= shlibsuff=
  11331. ;;
  11332. *)
  11333. case $LD in # libtool.m4 will add one of these switches to LD
  11334. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11335. libsuff= shlibsuff= libmagic=32-bit;;
  11336. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11337. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11338. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11339. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11340. *) libsuff= shlibsuff= libmagic=never-match;;
  11341. esac
  11342. ;;
  11343. esac
  11344. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11345. shlibpath_overrides_runpath=no
  11346. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11347. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11348. hardcode_into_libs=yes
  11349. ;;
  11350. # No shared lib support for Linux oldld, aout, or coff.
  11351. linux*oldld* | linux*aout* | linux*coff*)
  11352. dynamic_linker=no
  11353. ;;
  11354. # This must be Linux ELF.
  11355. linux*)
  11356. version_type=linux
  11357. need_lib_prefix=no
  11358. need_version=no
  11359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11360. soname_spec='${libname}${release}${shared_ext}$major'
  11361. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11362. shlibpath_var=LD_LIBRARY_PATH
  11363. shlibpath_overrides_runpath=no
  11364. # This implies no fast_install, which is unacceptable.
  11365. # Some rework will be needed to allow for fast_install
  11366. # before this can be enabled.
  11367. hardcode_into_libs=yes
  11368. # Append ld.so.conf contents to the search path
  11369. if test -f /etc/ld.so.conf; then
  11370. 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' ' '`
  11371. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11372. fi
  11373. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11374. # powerpc, because MkLinux only supported shared libraries with the
  11375. # GNU dynamic linker. Since this was broken with cross compilers,
  11376. # most powerpc-linux boxes support dynamic linking these days and
  11377. # people can always --disable-shared, the test was removed, and we
  11378. # assume the GNU/Linux dynamic linker is in use.
  11379. dynamic_linker='GNU/Linux ld.so'
  11380. ;;
  11381. knetbsd*-gnu)
  11382. version_type=linux
  11383. need_lib_prefix=no
  11384. need_version=no
  11385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11386. soname_spec='${libname}${release}${shared_ext}$major'
  11387. shlibpath_var=LD_LIBRARY_PATH
  11388. shlibpath_overrides_runpath=no
  11389. hardcode_into_libs=yes
  11390. dynamic_linker='GNU ld.so'
  11391. ;;
  11392. netbsd*)
  11393. version_type=sunos
  11394. need_lib_prefix=no
  11395. need_version=no
  11396. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11398. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11399. dynamic_linker='NetBSD (a.out) ld.so'
  11400. else
  11401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11402. soname_spec='${libname}${release}${shared_ext}$major'
  11403. dynamic_linker='NetBSD ld.elf_so'
  11404. fi
  11405. shlibpath_var=LD_LIBRARY_PATH
  11406. shlibpath_overrides_runpath=yes
  11407. hardcode_into_libs=yes
  11408. ;;
  11409. newsos6)
  11410. version_type=linux
  11411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11412. shlibpath_var=LD_LIBRARY_PATH
  11413. shlibpath_overrides_runpath=yes
  11414. ;;
  11415. nto-qnx*)
  11416. version_type=linux
  11417. need_lib_prefix=no
  11418. need_version=no
  11419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11420. soname_spec='${libname}${release}${shared_ext}$major'
  11421. shlibpath_var=LD_LIBRARY_PATH
  11422. shlibpath_overrides_runpath=yes
  11423. ;;
  11424. openbsd*)
  11425. version_type=sunos
  11426. need_lib_prefix=no
  11427. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11428. case $host_os in
  11429. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11430. *) need_version=no ;;
  11431. esac
  11432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11433. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11434. shlibpath_var=LD_LIBRARY_PATH
  11435. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11436. case $host_os in
  11437. openbsd2.[89] | openbsd2.[89].*)
  11438. shlibpath_overrides_runpath=no
  11439. ;;
  11440. *)
  11441. shlibpath_overrides_runpath=yes
  11442. ;;
  11443. esac
  11444. else
  11445. shlibpath_overrides_runpath=yes
  11446. fi
  11447. ;;
  11448. os2*)
  11449. libname_spec='$name'
  11450. shrext_cmds=".dll"
  11451. need_lib_prefix=no
  11452. library_names_spec='$libname${shared_ext} $libname.a'
  11453. dynamic_linker='OS/2 ld.exe'
  11454. shlibpath_var=LIBPATH
  11455. ;;
  11456. osf3* | osf4* | osf5*)
  11457. version_type=osf
  11458. need_lib_prefix=no
  11459. need_version=no
  11460. soname_spec='${libname}${release}${shared_ext}$major'
  11461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11462. shlibpath_var=LD_LIBRARY_PATH
  11463. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11464. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11465. ;;
  11466. sco3.2v5*)
  11467. version_type=osf
  11468. soname_spec='${libname}${release}${shared_ext}$major'
  11469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11470. shlibpath_var=LD_LIBRARY_PATH
  11471. ;;
  11472. solaris*)
  11473. version_type=linux
  11474. need_lib_prefix=no
  11475. need_version=no
  11476. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11477. soname_spec='${libname}${release}${shared_ext}$major'
  11478. shlibpath_var=LD_LIBRARY_PATH
  11479. shlibpath_overrides_runpath=yes
  11480. hardcode_into_libs=yes
  11481. # ldd complains unless libraries are executable
  11482. postinstall_cmds='chmod +x $lib'
  11483. ;;
  11484. sunos4*)
  11485. version_type=sunos
  11486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11487. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11488. shlibpath_var=LD_LIBRARY_PATH
  11489. shlibpath_overrides_runpath=yes
  11490. if test "$with_gnu_ld" = yes; then
  11491. need_lib_prefix=no
  11492. fi
  11493. need_version=yes
  11494. ;;
  11495. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11496. version_type=linux
  11497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11498. soname_spec='${libname}${release}${shared_ext}$major'
  11499. shlibpath_var=LD_LIBRARY_PATH
  11500. case $host_vendor in
  11501. sni)
  11502. shlibpath_overrides_runpath=no
  11503. need_lib_prefix=no
  11504. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11505. runpath_var=LD_RUN_PATH
  11506. ;;
  11507. siemens)
  11508. need_lib_prefix=no
  11509. ;;
  11510. motorola)
  11511. need_lib_prefix=no
  11512. need_version=no
  11513. shlibpath_overrides_runpath=no
  11514. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11515. ;;
  11516. esac
  11517. ;;
  11518. sysv4*MP*)
  11519. if test -d /usr/nec ;then
  11520. version_type=linux
  11521. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11522. soname_spec='$libname${shared_ext}.$major'
  11523. shlibpath_var=LD_LIBRARY_PATH
  11524. fi
  11525. ;;
  11526. uts4*)
  11527. version_type=linux
  11528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11529. soname_spec='${libname}${release}${shared_ext}$major'
  11530. shlibpath_var=LD_LIBRARY_PATH
  11531. ;;
  11532. *)
  11533. dynamic_linker=no
  11534. ;;
  11535. esac
  11536. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11537. echo "${ECHO_T}$dynamic_linker" >&6; }
  11538. test "$dynamic_linker" = no && can_build_shared=no
  11539. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11540. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11541. hardcode_action_CXX=
  11542. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11543. test -n "$runpath_var_CXX" || \
  11544. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11545. # We can hardcode non-existant directories.
  11546. if test "$hardcode_direct_CXX" != no &&
  11547. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11548. # have to relink, otherwise we might link with an installed library
  11549. # when we should be linking with a yet-to-be-installed one
  11550. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11551. test "$hardcode_minus_L_CXX" != no; then
  11552. # Linking always hardcodes the temporary library directory.
  11553. hardcode_action_CXX=relink
  11554. else
  11555. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11556. hardcode_action_CXX=immediate
  11557. fi
  11558. else
  11559. # We cannot hardcode anything, or else we can only hardcode existing
  11560. # directories.
  11561. hardcode_action_CXX=unsupported
  11562. fi
  11563. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11564. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11565. if test "$hardcode_action_CXX" = relink; then
  11566. # Fast installation is not supported
  11567. enable_fast_install=no
  11568. elif test "$shlibpath_overrides_runpath" = yes ||
  11569. test "$enable_shared" = no; then
  11570. # Fast installation is not necessary
  11571. enable_fast_install=needless
  11572. fi
  11573. striplib=
  11574. old_striplib=
  11575. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11576. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  11577. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11578. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11579. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11580. { echo "$as_me:$LINENO: result: yes" >&5
  11581. echo "${ECHO_T}yes" >&6; }
  11582. else
  11583. # FIXME - insert some real tests, host_os isn't really good enough
  11584. case $host_os in
  11585. darwin*)
  11586. if test -n "$STRIP" ; then
  11587. striplib="$STRIP -x"
  11588. { echo "$as_me:$LINENO: result: yes" >&5
  11589. echo "${ECHO_T}yes" >&6; }
  11590. else
  11591. { echo "$as_me:$LINENO: result: no" >&5
  11592. echo "${ECHO_T}no" >&6; }
  11593. fi
  11594. ;;
  11595. *)
  11596. { echo "$as_me:$LINENO: result: no" >&5
  11597. echo "${ECHO_T}no" >&6; }
  11598. ;;
  11599. esac
  11600. fi
  11601. if test "x$enable_dlopen" != xyes; then
  11602. enable_dlopen=unknown
  11603. enable_dlopen_self=unknown
  11604. enable_dlopen_self_static=unknown
  11605. else
  11606. lt_cv_dlopen=no
  11607. lt_cv_dlopen_libs=
  11608. case $host_os in
  11609. beos*)
  11610. lt_cv_dlopen="load_add_on"
  11611. lt_cv_dlopen_libs=
  11612. lt_cv_dlopen_self=yes
  11613. ;;
  11614. mingw* | pw32*)
  11615. lt_cv_dlopen="LoadLibrary"
  11616. lt_cv_dlopen_libs=
  11617. ;;
  11618. cygwin*)
  11619. lt_cv_dlopen="dlopen"
  11620. lt_cv_dlopen_libs=
  11621. ;;
  11622. darwin*)
  11623. # if libdl is installed we need to link against it
  11624. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11625. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11626. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11627. echo $ECHO_N "(cached) $ECHO_C" >&6
  11628. else
  11629. ac_check_lib_save_LIBS=$LIBS
  11630. LIBS="-ldl $LIBS"
  11631. cat >conftest.$ac_ext <<_ACEOF
  11632. /* confdefs.h. */
  11633. _ACEOF
  11634. cat confdefs.h >>conftest.$ac_ext
  11635. cat >>conftest.$ac_ext <<_ACEOF
  11636. /* end confdefs.h. */
  11637. /* Override any GCC internal prototype to avoid an error.
  11638. Use char because int might match the return type of a GCC
  11639. builtin and then its argument prototype would still apply. */
  11640. #ifdef __cplusplus
  11641. extern "C"
  11642. #endif
  11643. char dlopen ();
  11644. int
  11645. main ()
  11646. {
  11647. return dlopen ();
  11648. ;
  11649. return 0;
  11650. }
  11651. _ACEOF
  11652. rm -f conftest.$ac_objext conftest$ac_exeext
  11653. if { (ac_try="$ac_link"
  11654. case "(($ac_try" in
  11655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11656. *) ac_try_echo=$ac_try;;
  11657. esac
  11658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11659. (eval "$ac_link") 2>conftest.er1
  11660. ac_status=$?
  11661. grep -v '^ *+' conftest.er1 >conftest.err
  11662. rm -f conftest.er1
  11663. cat conftest.err >&5
  11664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11665. (exit $ac_status); } && {
  11666. test -z "$ac_cxx_werror_flag" ||
  11667. test ! -s conftest.err
  11668. } && test -s conftest$ac_exeext &&
  11669. $as_test_x conftest$ac_exeext; then
  11670. ac_cv_lib_dl_dlopen=yes
  11671. else
  11672. echo "$as_me: failed program was:" >&5
  11673. sed 's/^/| /' conftest.$ac_ext >&5
  11674. ac_cv_lib_dl_dlopen=no
  11675. fi
  11676. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11677. conftest$ac_exeext conftest.$ac_ext
  11678. LIBS=$ac_check_lib_save_LIBS
  11679. fi
  11680. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11681. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11682. if test $ac_cv_lib_dl_dlopen = yes; then
  11683. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11684. else
  11685. lt_cv_dlopen="dyld"
  11686. lt_cv_dlopen_libs=
  11687. lt_cv_dlopen_self=yes
  11688. fi
  11689. ;;
  11690. *)
  11691. { echo "$as_me:$LINENO: checking for shl_load" >&5
  11692. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  11693. if test "${ac_cv_func_shl_load+set}" = set; then
  11694. echo $ECHO_N "(cached) $ECHO_C" >&6
  11695. else
  11696. cat >conftest.$ac_ext <<_ACEOF
  11697. /* confdefs.h. */
  11698. _ACEOF
  11699. cat confdefs.h >>conftest.$ac_ext
  11700. cat >>conftest.$ac_ext <<_ACEOF
  11701. /* end confdefs.h. */
  11702. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11703. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11704. #define shl_load innocuous_shl_load
  11705. /* System header to define __stub macros and hopefully few prototypes,
  11706. which can conflict with char shl_load (); below.
  11707. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11708. <limits.h> exists even on freestanding compilers. */
  11709. #ifdef __STDC__
  11710. # include <limits.h>
  11711. #else
  11712. # include <assert.h>
  11713. #endif
  11714. #undef shl_load
  11715. /* Override any GCC internal prototype to avoid an error.
  11716. Use char because int might match the return type of a GCC
  11717. builtin and then its argument prototype would still apply. */
  11718. #ifdef __cplusplus
  11719. extern "C"
  11720. #endif
  11721. char shl_load ();
  11722. /* The GNU C library defines this for functions which it implements
  11723. to always fail with ENOSYS. Some functions are actually named
  11724. something starting with __ and the normal name is an alias. */
  11725. #if defined __stub_shl_load || defined __stub___shl_load
  11726. choke me
  11727. #endif
  11728. int
  11729. main ()
  11730. {
  11731. return shl_load ();
  11732. ;
  11733. return 0;
  11734. }
  11735. _ACEOF
  11736. rm -f conftest.$ac_objext conftest$ac_exeext
  11737. if { (ac_try="$ac_link"
  11738. case "(($ac_try" in
  11739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11740. *) ac_try_echo=$ac_try;;
  11741. esac
  11742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11743. (eval "$ac_link") 2>conftest.er1
  11744. ac_status=$?
  11745. grep -v '^ *+' conftest.er1 >conftest.err
  11746. rm -f conftest.er1
  11747. cat conftest.err >&5
  11748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11749. (exit $ac_status); } && {
  11750. test -z "$ac_cxx_werror_flag" ||
  11751. test ! -s conftest.err
  11752. } && test -s conftest$ac_exeext &&
  11753. $as_test_x conftest$ac_exeext; then
  11754. ac_cv_func_shl_load=yes
  11755. else
  11756. echo "$as_me: failed program was:" >&5
  11757. sed 's/^/| /' conftest.$ac_ext >&5
  11758. ac_cv_func_shl_load=no
  11759. fi
  11760. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11761. conftest$ac_exeext conftest.$ac_ext
  11762. fi
  11763. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11764. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  11765. if test $ac_cv_func_shl_load = yes; then
  11766. lt_cv_dlopen="shl_load"
  11767. else
  11768. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11769. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  11770. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11771. echo $ECHO_N "(cached) $ECHO_C" >&6
  11772. else
  11773. ac_check_lib_save_LIBS=$LIBS
  11774. LIBS="-ldld $LIBS"
  11775. cat >conftest.$ac_ext <<_ACEOF
  11776. /* confdefs.h. */
  11777. _ACEOF
  11778. cat confdefs.h >>conftest.$ac_ext
  11779. cat >>conftest.$ac_ext <<_ACEOF
  11780. /* end confdefs.h. */
  11781. /* Override any GCC internal prototype to avoid an error.
  11782. Use char because int might match the return type of a GCC
  11783. builtin and then its argument prototype would still apply. */
  11784. #ifdef __cplusplus
  11785. extern "C"
  11786. #endif
  11787. char shl_load ();
  11788. int
  11789. main ()
  11790. {
  11791. return shl_load ();
  11792. ;
  11793. return 0;
  11794. }
  11795. _ACEOF
  11796. rm -f conftest.$ac_objext conftest$ac_exeext
  11797. if { (ac_try="$ac_link"
  11798. case "(($ac_try" in
  11799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11800. *) ac_try_echo=$ac_try;;
  11801. esac
  11802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11803. (eval "$ac_link") 2>conftest.er1
  11804. ac_status=$?
  11805. grep -v '^ *+' conftest.er1 >conftest.err
  11806. rm -f conftest.er1
  11807. cat conftest.err >&5
  11808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11809. (exit $ac_status); } && {
  11810. test -z "$ac_cxx_werror_flag" ||
  11811. test ! -s conftest.err
  11812. } && test -s conftest$ac_exeext &&
  11813. $as_test_x conftest$ac_exeext; then
  11814. ac_cv_lib_dld_shl_load=yes
  11815. else
  11816. echo "$as_me: failed program was:" >&5
  11817. sed 's/^/| /' conftest.$ac_ext >&5
  11818. ac_cv_lib_dld_shl_load=no
  11819. fi
  11820. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11821. conftest$ac_exeext conftest.$ac_ext
  11822. LIBS=$ac_check_lib_save_LIBS
  11823. fi
  11824. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11825. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  11826. if test $ac_cv_lib_dld_shl_load = yes; then
  11827. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  11828. else
  11829. { echo "$as_me:$LINENO: checking for dlopen" >&5
  11830. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  11831. if test "${ac_cv_func_dlopen+set}" = set; then
  11832. echo $ECHO_N "(cached) $ECHO_C" >&6
  11833. else
  11834. cat >conftest.$ac_ext <<_ACEOF
  11835. /* confdefs.h. */
  11836. _ACEOF
  11837. cat confdefs.h >>conftest.$ac_ext
  11838. cat >>conftest.$ac_ext <<_ACEOF
  11839. /* end confdefs.h. */
  11840. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11841. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11842. #define dlopen innocuous_dlopen
  11843. /* System header to define __stub macros and hopefully few prototypes,
  11844. which can conflict with char dlopen (); below.
  11845. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11846. <limits.h> exists even on freestanding compilers. */
  11847. #ifdef __STDC__
  11848. # include <limits.h>
  11849. #else
  11850. # include <assert.h>
  11851. #endif
  11852. #undef dlopen
  11853. /* Override any GCC internal prototype to avoid an error.
  11854. Use char because int might match the return type of a GCC
  11855. builtin and then its argument prototype would still apply. */
  11856. #ifdef __cplusplus
  11857. extern "C"
  11858. #endif
  11859. char dlopen ();
  11860. /* The GNU C library defines this for functions which it implements
  11861. to always fail with ENOSYS. Some functions are actually named
  11862. something starting with __ and the normal name is an alias. */
  11863. #if defined __stub_dlopen || defined __stub___dlopen
  11864. choke me
  11865. #endif
  11866. int
  11867. main ()
  11868. {
  11869. return dlopen ();
  11870. ;
  11871. return 0;
  11872. }
  11873. _ACEOF
  11874. rm -f conftest.$ac_objext conftest$ac_exeext
  11875. if { (ac_try="$ac_link"
  11876. case "(($ac_try" in
  11877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11878. *) ac_try_echo=$ac_try;;
  11879. esac
  11880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11881. (eval "$ac_link") 2>conftest.er1
  11882. ac_status=$?
  11883. grep -v '^ *+' conftest.er1 >conftest.err
  11884. rm -f conftest.er1
  11885. cat conftest.err >&5
  11886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11887. (exit $ac_status); } && {
  11888. test -z "$ac_cxx_werror_flag" ||
  11889. test ! -s conftest.err
  11890. } && test -s conftest$ac_exeext &&
  11891. $as_test_x conftest$ac_exeext; then
  11892. ac_cv_func_dlopen=yes
  11893. else
  11894. echo "$as_me: failed program was:" >&5
  11895. sed 's/^/| /' conftest.$ac_ext >&5
  11896. ac_cv_func_dlopen=no
  11897. fi
  11898. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11899. conftest$ac_exeext conftest.$ac_ext
  11900. fi
  11901. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  11902. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  11903. if test $ac_cv_func_dlopen = yes; then
  11904. lt_cv_dlopen="dlopen"
  11905. else
  11906. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11907. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11908. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11909. echo $ECHO_N "(cached) $ECHO_C" >&6
  11910. else
  11911. ac_check_lib_save_LIBS=$LIBS
  11912. LIBS="-ldl $LIBS"
  11913. cat >conftest.$ac_ext <<_ACEOF
  11914. /* confdefs.h. */
  11915. _ACEOF
  11916. cat confdefs.h >>conftest.$ac_ext
  11917. cat >>conftest.$ac_ext <<_ACEOF
  11918. /* end confdefs.h. */
  11919. /* Override any GCC internal prototype to avoid an error.
  11920. Use char because int might match the return type of a GCC
  11921. builtin and then its argument prototype would still apply. */
  11922. #ifdef __cplusplus
  11923. extern "C"
  11924. #endif
  11925. char dlopen ();
  11926. int
  11927. main ()
  11928. {
  11929. return dlopen ();
  11930. ;
  11931. return 0;
  11932. }
  11933. _ACEOF
  11934. rm -f conftest.$ac_objext conftest$ac_exeext
  11935. if { (ac_try="$ac_link"
  11936. case "(($ac_try" in
  11937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11938. *) ac_try_echo=$ac_try;;
  11939. esac
  11940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11941. (eval "$ac_link") 2>conftest.er1
  11942. ac_status=$?
  11943. grep -v '^ *+' conftest.er1 >conftest.err
  11944. rm -f conftest.er1
  11945. cat conftest.err >&5
  11946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11947. (exit $ac_status); } && {
  11948. test -z "$ac_cxx_werror_flag" ||
  11949. test ! -s conftest.err
  11950. } && test -s conftest$ac_exeext &&
  11951. $as_test_x conftest$ac_exeext; then
  11952. ac_cv_lib_dl_dlopen=yes
  11953. else
  11954. echo "$as_me: failed program was:" >&5
  11955. sed 's/^/| /' conftest.$ac_ext >&5
  11956. ac_cv_lib_dl_dlopen=no
  11957. fi
  11958. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11959. conftest$ac_exeext conftest.$ac_ext
  11960. LIBS=$ac_check_lib_save_LIBS
  11961. fi
  11962. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11963. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11964. if test $ac_cv_lib_dl_dlopen = yes; then
  11965. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11966. else
  11967. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  11968. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  11969. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  11970. echo $ECHO_N "(cached) $ECHO_C" >&6
  11971. else
  11972. ac_check_lib_save_LIBS=$LIBS
  11973. LIBS="-lsvld $LIBS"
  11974. cat >conftest.$ac_ext <<_ACEOF
  11975. /* confdefs.h. */
  11976. _ACEOF
  11977. cat confdefs.h >>conftest.$ac_ext
  11978. cat >>conftest.$ac_ext <<_ACEOF
  11979. /* end confdefs.h. */
  11980. /* Override any GCC internal prototype to avoid an error.
  11981. Use char because int might match the return type of a GCC
  11982. builtin and then its argument prototype would still apply. */
  11983. #ifdef __cplusplus
  11984. extern "C"
  11985. #endif
  11986. char dlopen ();
  11987. int
  11988. main ()
  11989. {
  11990. return dlopen ();
  11991. ;
  11992. return 0;
  11993. }
  11994. _ACEOF
  11995. rm -f conftest.$ac_objext conftest$ac_exeext
  11996. if { (ac_try="$ac_link"
  11997. case "(($ac_try" in
  11998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11999. *) ac_try_echo=$ac_try;;
  12000. esac
  12001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12002. (eval "$ac_link") 2>conftest.er1
  12003. ac_status=$?
  12004. grep -v '^ *+' conftest.er1 >conftest.err
  12005. rm -f conftest.er1
  12006. cat conftest.err >&5
  12007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12008. (exit $ac_status); } && {
  12009. test -z "$ac_cxx_werror_flag" ||
  12010. test ! -s conftest.err
  12011. } && test -s conftest$ac_exeext &&
  12012. $as_test_x conftest$ac_exeext; then
  12013. ac_cv_lib_svld_dlopen=yes
  12014. else
  12015. echo "$as_me: failed program was:" >&5
  12016. sed 's/^/| /' conftest.$ac_ext >&5
  12017. ac_cv_lib_svld_dlopen=no
  12018. fi
  12019. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12020. conftest$ac_exeext conftest.$ac_ext
  12021. LIBS=$ac_check_lib_save_LIBS
  12022. fi
  12023. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12024. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  12025. if test $ac_cv_lib_svld_dlopen = yes; then
  12026. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12027. else
  12028. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12029. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  12030. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12031. echo $ECHO_N "(cached) $ECHO_C" >&6
  12032. else
  12033. ac_check_lib_save_LIBS=$LIBS
  12034. LIBS="-ldld $LIBS"
  12035. cat >conftest.$ac_ext <<_ACEOF
  12036. /* confdefs.h. */
  12037. _ACEOF
  12038. cat confdefs.h >>conftest.$ac_ext
  12039. cat >>conftest.$ac_ext <<_ACEOF
  12040. /* end confdefs.h. */
  12041. /* Override any GCC internal prototype to avoid an error.
  12042. Use char because int might match the return type of a GCC
  12043. builtin and then its argument prototype would still apply. */
  12044. #ifdef __cplusplus
  12045. extern "C"
  12046. #endif
  12047. char dld_link ();
  12048. int
  12049. main ()
  12050. {
  12051. return dld_link ();
  12052. ;
  12053. return 0;
  12054. }
  12055. _ACEOF
  12056. rm -f conftest.$ac_objext conftest$ac_exeext
  12057. if { (ac_try="$ac_link"
  12058. case "(($ac_try" in
  12059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12060. *) ac_try_echo=$ac_try;;
  12061. esac
  12062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12063. (eval "$ac_link") 2>conftest.er1
  12064. ac_status=$?
  12065. grep -v '^ *+' conftest.er1 >conftest.err
  12066. rm -f conftest.er1
  12067. cat conftest.err >&5
  12068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12069. (exit $ac_status); } && {
  12070. test -z "$ac_cxx_werror_flag" ||
  12071. test ! -s conftest.err
  12072. } && test -s conftest$ac_exeext &&
  12073. $as_test_x conftest$ac_exeext; then
  12074. ac_cv_lib_dld_dld_link=yes
  12075. else
  12076. echo "$as_me: failed program was:" >&5
  12077. sed 's/^/| /' conftest.$ac_ext >&5
  12078. ac_cv_lib_dld_dld_link=no
  12079. fi
  12080. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12081. conftest$ac_exeext conftest.$ac_ext
  12082. LIBS=$ac_check_lib_save_LIBS
  12083. fi
  12084. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12085. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  12086. if test $ac_cv_lib_dld_dld_link = yes; then
  12087. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12088. fi
  12089. fi
  12090. fi
  12091. fi
  12092. fi
  12093. fi
  12094. ;;
  12095. esac
  12096. if test "x$lt_cv_dlopen" != xno; then
  12097. enable_dlopen=yes
  12098. else
  12099. enable_dlopen=no
  12100. fi
  12101. case $lt_cv_dlopen in
  12102. dlopen)
  12103. save_CPPFLAGS="$CPPFLAGS"
  12104. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12105. save_LDFLAGS="$LDFLAGS"
  12106. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12107. save_LIBS="$LIBS"
  12108. LIBS="$lt_cv_dlopen_libs $LIBS"
  12109. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12110. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  12111. if test "${lt_cv_dlopen_self+set}" = set; then
  12112. echo $ECHO_N "(cached) $ECHO_C" >&6
  12113. else
  12114. if test "$cross_compiling" = yes; then :
  12115. lt_cv_dlopen_self=cross
  12116. else
  12117. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12118. lt_status=$lt_dlunknown
  12119. cat > conftest.$ac_ext <<EOF
  12120. #line 13488 "configure"
  12121. #include "confdefs.h"
  12122. #if HAVE_DLFCN_H
  12123. #include <dlfcn.h>
  12124. #endif
  12125. #include <stdio.h>
  12126. #ifdef RTLD_GLOBAL
  12127. # define LT_DLGLOBAL RTLD_GLOBAL
  12128. #else
  12129. # ifdef DL_GLOBAL
  12130. # define LT_DLGLOBAL DL_GLOBAL
  12131. # else
  12132. # define LT_DLGLOBAL 0
  12133. # endif
  12134. #endif
  12135. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12136. find out it does not work in some platform. */
  12137. #ifndef LT_DLLAZY_OR_NOW
  12138. # ifdef RTLD_LAZY
  12139. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12140. # else
  12141. # ifdef DL_LAZY
  12142. # define LT_DLLAZY_OR_NOW DL_LAZY
  12143. # else
  12144. # ifdef RTLD_NOW
  12145. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12146. # else
  12147. # ifdef DL_NOW
  12148. # define LT_DLLAZY_OR_NOW DL_NOW
  12149. # else
  12150. # define LT_DLLAZY_OR_NOW 0
  12151. # endif
  12152. # endif
  12153. # endif
  12154. # endif
  12155. #endif
  12156. #ifdef __cplusplus
  12157. extern "C" void exit (int);
  12158. #endif
  12159. void fnord() { int i=42;}
  12160. int main ()
  12161. {
  12162. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12163. int status = $lt_dlunknown;
  12164. if (self)
  12165. {
  12166. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12167. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12168. /* dlclose (self); */
  12169. }
  12170. exit (status);
  12171. }
  12172. EOF
  12173. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12174. (eval $ac_link) 2>&5
  12175. ac_status=$?
  12176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12177. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12178. (./conftest; exit; ) 2>/dev/null
  12179. lt_status=$?
  12180. case x$lt_status in
  12181. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12182. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12183. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12184. esac
  12185. else :
  12186. # compilation failed
  12187. lt_cv_dlopen_self=no
  12188. fi
  12189. fi
  12190. rm -fr conftest*
  12191. fi
  12192. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12193. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  12194. if test "x$lt_cv_dlopen_self" = xyes; then
  12195. LDFLAGS="$LDFLAGS $link_static_flag"
  12196. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12197. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  12198. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12199. echo $ECHO_N "(cached) $ECHO_C" >&6
  12200. else
  12201. if test "$cross_compiling" = yes; then :
  12202. lt_cv_dlopen_self_static=cross
  12203. else
  12204. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12205. lt_status=$lt_dlunknown
  12206. cat > conftest.$ac_ext <<EOF
  12207. #line 13586 "configure"
  12208. #include "confdefs.h"
  12209. #if HAVE_DLFCN_H
  12210. #include <dlfcn.h>
  12211. #endif
  12212. #include <stdio.h>
  12213. #ifdef RTLD_GLOBAL
  12214. # define LT_DLGLOBAL RTLD_GLOBAL
  12215. #else
  12216. # ifdef DL_GLOBAL
  12217. # define LT_DLGLOBAL DL_GLOBAL
  12218. # else
  12219. # define LT_DLGLOBAL 0
  12220. # endif
  12221. #endif
  12222. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12223. find out it does not work in some platform. */
  12224. #ifndef LT_DLLAZY_OR_NOW
  12225. # ifdef RTLD_LAZY
  12226. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12227. # else
  12228. # ifdef DL_LAZY
  12229. # define LT_DLLAZY_OR_NOW DL_LAZY
  12230. # else
  12231. # ifdef RTLD_NOW
  12232. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12233. # else
  12234. # ifdef DL_NOW
  12235. # define LT_DLLAZY_OR_NOW DL_NOW
  12236. # else
  12237. # define LT_DLLAZY_OR_NOW 0
  12238. # endif
  12239. # endif
  12240. # endif
  12241. # endif
  12242. #endif
  12243. #ifdef __cplusplus
  12244. extern "C" void exit (int);
  12245. #endif
  12246. void fnord() { int i=42;}
  12247. int main ()
  12248. {
  12249. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12250. int status = $lt_dlunknown;
  12251. if (self)
  12252. {
  12253. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12254. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12255. /* dlclose (self); */
  12256. }
  12257. exit (status);
  12258. }
  12259. EOF
  12260. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12261. (eval $ac_link) 2>&5
  12262. ac_status=$?
  12263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12264. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12265. (./conftest; exit; ) 2>/dev/null
  12266. lt_status=$?
  12267. case x$lt_status in
  12268. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12269. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12270. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12271. esac
  12272. else :
  12273. # compilation failed
  12274. lt_cv_dlopen_self_static=no
  12275. fi
  12276. fi
  12277. rm -fr conftest*
  12278. fi
  12279. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12280. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  12281. fi
  12282. CPPFLAGS="$save_CPPFLAGS"
  12283. LDFLAGS="$save_LDFLAGS"
  12284. LIBS="$save_LIBS"
  12285. ;;
  12286. esac
  12287. case $lt_cv_dlopen_self in
  12288. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12289. *) enable_dlopen_self=unknown ;;
  12290. esac
  12291. case $lt_cv_dlopen_self_static in
  12292. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12293. *) enable_dlopen_self_static=unknown ;;
  12294. esac
  12295. fi
  12296. # The else clause should only fire when bootstrapping the
  12297. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12298. # with your package, and you will get complaints that there are
  12299. # no rules to generate ltmain.sh.
  12300. if test -f "$ltmain"; then
  12301. # See if we are running on zsh, and set the options which allow our commands through
  12302. # without removal of \ escapes.
  12303. if test -n "${ZSH_VERSION+set}" ; then
  12304. setopt NO_GLOB_SUBST
  12305. fi
  12306. # Now quote all the things that may contain metacharacters while being
  12307. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12308. # variables and quote the copies for generation of the libtool script.
  12309. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12310. SED SHELL STRIP \
  12311. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12312. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12313. deplibs_check_method reload_flag reload_cmds need_locks \
  12314. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12315. lt_cv_sys_global_symbol_to_c_name_address \
  12316. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12317. old_postinstall_cmds old_postuninstall_cmds \
  12318. compiler_CXX \
  12319. CC_CXX \
  12320. LD_CXX \
  12321. lt_prog_compiler_wl_CXX \
  12322. lt_prog_compiler_pic_CXX \
  12323. lt_prog_compiler_static_CXX \
  12324. lt_prog_compiler_no_builtin_flag_CXX \
  12325. export_dynamic_flag_spec_CXX \
  12326. thread_safe_flag_spec_CXX \
  12327. whole_archive_flag_spec_CXX \
  12328. enable_shared_with_static_runtimes_CXX \
  12329. old_archive_cmds_CXX \
  12330. old_archive_from_new_cmds_CXX \
  12331. predep_objects_CXX \
  12332. postdep_objects_CXX \
  12333. predeps_CXX \
  12334. postdeps_CXX \
  12335. compiler_lib_search_path_CXX \
  12336. archive_cmds_CXX \
  12337. archive_expsym_cmds_CXX \
  12338. postinstall_cmds_CXX \
  12339. postuninstall_cmds_CXX \
  12340. old_archive_from_expsyms_cmds_CXX \
  12341. allow_undefined_flag_CXX \
  12342. no_undefined_flag_CXX \
  12343. export_symbols_cmds_CXX \
  12344. hardcode_libdir_flag_spec_CXX \
  12345. hardcode_libdir_flag_spec_ld_CXX \
  12346. hardcode_libdir_separator_CXX \
  12347. hardcode_automatic_CXX \
  12348. module_cmds_CXX \
  12349. module_expsym_cmds_CXX \
  12350. lt_cv_prog_compiler_c_o_CXX \
  12351. exclude_expsyms_CXX \
  12352. include_expsyms_CXX; do
  12353. case $var in
  12354. old_archive_cmds_CXX | \
  12355. old_archive_from_new_cmds_CXX | \
  12356. archive_cmds_CXX | \
  12357. archive_expsym_cmds_CXX | \
  12358. module_cmds_CXX | \
  12359. module_expsym_cmds_CXX | \
  12360. old_archive_from_expsyms_cmds_CXX | \
  12361. export_symbols_cmds_CXX | \
  12362. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12363. postinstall_cmds | postuninstall_cmds | \
  12364. old_postinstall_cmds | old_postuninstall_cmds | \
  12365. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12366. # Double-quote double-evaled strings.
  12367. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12368. ;;
  12369. *)
  12370. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12371. ;;
  12372. esac
  12373. done
  12374. case $lt_echo in
  12375. *'\$0 --fallback-echo"')
  12376. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12377. ;;
  12378. esac
  12379. cfgfile="$ofile"
  12380. cat <<__EOF__ >> "$cfgfile"
  12381. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12382. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12383. # Shell to use when invoking shell scripts.
  12384. SHELL=$lt_SHELL
  12385. # Whether or not to build shared libraries.
  12386. build_libtool_libs=$enable_shared
  12387. # Whether or not to build static libraries.
  12388. build_old_libs=$enable_static
  12389. # Whether or not to add -lc for building shared libraries.
  12390. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12391. # Whether or not to disallow shared libs when runtime libs are static
  12392. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12393. # Whether or not to optimize for fast installation.
  12394. fast_install=$enable_fast_install
  12395. # The host system.
  12396. host_alias=$host_alias
  12397. host=$host
  12398. host_os=$host_os
  12399. # The build system.
  12400. build_alias=$build_alias
  12401. build=$build
  12402. build_os=$build_os
  12403. # An echo program that does not interpret backslashes.
  12404. echo=$lt_echo
  12405. # The archiver.
  12406. AR=$lt_AR
  12407. AR_FLAGS=$lt_AR_FLAGS
  12408. # A C compiler.
  12409. LTCC=$lt_LTCC
  12410. # A language-specific compiler.
  12411. CC=$lt_compiler_CXX
  12412. # Is the compiler the GNU C compiler?
  12413. with_gcc=$GCC_CXX
  12414. # An ERE matcher.
  12415. EGREP=$lt_EGREP
  12416. # The linker used to build libraries.
  12417. LD=$lt_LD_CXX
  12418. # Whether we need hard or soft links.
  12419. LN_S=$lt_LN_S
  12420. # A BSD-compatible nm program.
  12421. NM=$lt_NM
  12422. # A symbol stripping program
  12423. STRIP=$lt_STRIP
  12424. # Used to examine libraries when file_magic_cmd begins "file"
  12425. MAGIC_CMD=$MAGIC_CMD
  12426. # Used on cygwin: DLL creation program.
  12427. DLLTOOL="$DLLTOOL"
  12428. # Used on cygwin: object dumper.
  12429. OBJDUMP="$OBJDUMP"
  12430. # Used on cygwin: assembler.
  12431. AS="$AS"
  12432. # The name of the directory that contains temporary libtool files.
  12433. objdir=$objdir
  12434. # How to create reloadable object files.
  12435. reload_flag=$lt_reload_flag
  12436. reload_cmds=$lt_reload_cmds
  12437. # How to pass a linker flag through the compiler.
  12438. wl=$lt_lt_prog_compiler_wl_CXX
  12439. # Object file suffix (normally "o").
  12440. objext="$ac_objext"
  12441. # Old archive suffix (normally "a").
  12442. libext="$libext"
  12443. # Shared library suffix (normally ".so").
  12444. shrext_cmds='$shrext_cmds'
  12445. # Executable file suffix (normally "").
  12446. exeext="$exeext"
  12447. # Additional compiler flags for building library objects.
  12448. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12449. pic_mode=$pic_mode
  12450. # What is the maximum length of a command?
  12451. max_cmd_len=$lt_cv_sys_max_cmd_len
  12452. # Does compiler simultaneously support -c and -o options?
  12453. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12454. # Must we lock files when doing compilation?
  12455. need_locks=$lt_need_locks
  12456. # Do we need the lib prefix for modules?
  12457. need_lib_prefix=$need_lib_prefix
  12458. # Do we need a version for libraries?
  12459. need_version=$need_version
  12460. # Whether dlopen is supported.
  12461. dlopen_support=$enable_dlopen
  12462. # Whether dlopen of programs is supported.
  12463. dlopen_self=$enable_dlopen_self
  12464. # Whether dlopen of statically linked programs is supported.
  12465. dlopen_self_static=$enable_dlopen_self_static
  12466. # Compiler flag to prevent dynamic linking.
  12467. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12468. # Compiler flag to turn off builtin functions.
  12469. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12470. # Compiler flag to allow reflexive dlopens.
  12471. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12472. # Compiler flag to generate shared objects directly from archives.
  12473. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12474. # Compiler flag to generate thread-safe objects.
  12475. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12476. # Library versioning type.
  12477. version_type=$version_type
  12478. # Format of library name prefix.
  12479. libname_spec=$lt_libname_spec
  12480. # List of archive names. First name is the real one, the rest are links.
  12481. # The last name is the one that the linker finds with -lNAME.
  12482. library_names_spec=$lt_library_names_spec
  12483. # The coded name of the library, if different from the real name.
  12484. soname_spec=$lt_soname_spec
  12485. # Commands used to build and install an old-style archive.
  12486. RANLIB=$lt_RANLIB
  12487. old_archive_cmds=$lt_old_archive_cmds_CXX
  12488. old_postinstall_cmds=$lt_old_postinstall_cmds
  12489. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12490. # Create an old-style archive from a shared archive.
  12491. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12492. # Create a temporary old-style archive to link instead of a shared archive.
  12493. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12494. # Commands used to build and install a shared archive.
  12495. archive_cmds=$lt_archive_cmds_CXX
  12496. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12497. postinstall_cmds=$lt_postinstall_cmds
  12498. postuninstall_cmds=$lt_postuninstall_cmds
  12499. # Commands used to build a loadable module (assumed same as above if empty)
  12500. module_cmds=$lt_module_cmds_CXX
  12501. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12502. # Commands to strip libraries.
  12503. old_striplib=$lt_old_striplib
  12504. striplib=$lt_striplib
  12505. # Dependencies to place before the objects being linked to create a
  12506. # shared library.
  12507. predep_objects=$lt_predep_objects_CXX
  12508. # Dependencies to place after the objects being linked to create a
  12509. # shared library.
  12510. postdep_objects=$lt_postdep_objects_CXX
  12511. # Dependencies to place before the objects being linked to create a
  12512. # shared library.
  12513. predeps=$lt_predeps_CXX
  12514. # Dependencies to place after the objects being linked to create a
  12515. # shared library.
  12516. postdeps=$lt_postdeps_CXX
  12517. # The library search path used internally by the compiler when linking
  12518. # a shared library.
  12519. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12520. # Method to check whether dependent libraries are shared objects.
  12521. deplibs_check_method=$lt_deplibs_check_method
  12522. # Command to use when deplibs_check_method == file_magic.
  12523. file_magic_cmd=$lt_file_magic_cmd
  12524. # Flag that allows shared libraries with undefined symbols to be built.
  12525. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12526. # Flag that forces no undefined symbols.
  12527. no_undefined_flag=$lt_no_undefined_flag_CXX
  12528. # Commands used to finish a libtool library installation in a directory.
  12529. finish_cmds=$lt_finish_cmds
  12530. # Same as above, but a single script fragment to be evaled but not shown.
  12531. finish_eval=$lt_finish_eval
  12532. # Take the output of nm and produce a listing of raw symbols and C names.
  12533. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12534. # Transform the output of nm in a proper C declaration
  12535. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12536. # Transform the output of nm in a C name address pair
  12537. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12538. # This is the shared library runtime path variable.
  12539. runpath_var=$runpath_var
  12540. # This is the shared library path variable.
  12541. shlibpath_var=$shlibpath_var
  12542. # Is shlibpath searched before the hard-coded library search path?
  12543. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12544. # How to hardcode a shared library path into an executable.
  12545. hardcode_action=$hardcode_action_CXX
  12546. # Whether we should hardcode library paths into libraries.
  12547. hardcode_into_libs=$hardcode_into_libs
  12548. # Flag to hardcode \$libdir into a binary during linking.
  12549. # This must work even if \$libdir does not exist.
  12550. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12551. # If ld is used when linking, flag to hardcode \$libdir into
  12552. # a binary during linking. This must work even if \$libdir does
  12553. # not exist.
  12554. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12555. # Whether we need a single -rpath flag with a separated argument.
  12556. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12557. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12558. # resulting binary.
  12559. hardcode_direct=$hardcode_direct_CXX
  12560. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12561. # resulting binary.
  12562. hardcode_minus_L=$hardcode_minus_L_CXX
  12563. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12564. # the resulting binary.
  12565. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12566. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12567. # and all subsequent libraries and executables linked against it.
  12568. hardcode_automatic=$hardcode_automatic_CXX
  12569. # Variables whose values should be saved in libtool wrapper scripts and
  12570. # restored at relink time.
  12571. variables_saved_for_relink="$variables_saved_for_relink"
  12572. # Whether libtool must link a program against all its dependency libraries.
  12573. link_all_deplibs=$link_all_deplibs_CXX
  12574. # Compile-time system search path for libraries
  12575. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12576. # Run-time system search path for libraries
  12577. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12578. # Fix the shell variable \$srcfile for the compiler.
  12579. fix_srcfile_path="$fix_srcfile_path_CXX"
  12580. # Set to yes if exported symbols are required.
  12581. always_export_symbols=$always_export_symbols_CXX
  12582. # The commands to list exported symbols.
  12583. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12584. # The commands to extract the exported symbol list from a shared archive.
  12585. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12586. # Symbols that should not be listed in the preloaded symbols.
  12587. exclude_expsyms=$lt_exclude_expsyms_CXX
  12588. # Symbols that must always be exported.
  12589. include_expsyms=$lt_include_expsyms_CXX
  12590. # ### END LIBTOOL TAG CONFIG: $tagname
  12591. __EOF__
  12592. else
  12593. # If there is no Makefile yet, we rely on a make rule to execute
  12594. # `config.status --recheck' to rerun these tests and create the
  12595. # libtool script then.
  12596. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12597. if test -f "$ltmain_in"; then
  12598. test -f Makefile && make "$ltmain"
  12599. fi
  12600. fi
  12601. ac_ext=c
  12602. ac_cpp='$CPP $CPPFLAGS'
  12603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12606. CC=$lt_save_CC
  12607. LDCXX=$LD
  12608. LD=$lt_save_LD
  12609. GCC=$lt_save_GCC
  12610. with_gnu_ldcxx=$with_gnu_ld
  12611. with_gnu_ld=$lt_save_with_gnu_ld
  12612. lt_cv_path_LDCXX=$lt_cv_path_LD
  12613. lt_cv_path_LD=$lt_save_path_LD
  12614. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12615. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12616. else
  12617. tagname=""
  12618. fi
  12619. ;;
  12620. F77)
  12621. if test -n "$F77" && test "X$F77" != "Xno"; then
  12622. ac_ext=f
  12623. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12624. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12625. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12626. archive_cmds_need_lc_F77=no
  12627. allow_undefined_flag_F77=
  12628. always_export_symbols_F77=no
  12629. archive_expsym_cmds_F77=
  12630. export_dynamic_flag_spec_F77=
  12631. hardcode_direct_F77=no
  12632. hardcode_libdir_flag_spec_F77=
  12633. hardcode_libdir_flag_spec_ld_F77=
  12634. hardcode_libdir_separator_F77=
  12635. hardcode_minus_L_F77=no
  12636. hardcode_automatic_F77=no
  12637. module_cmds_F77=
  12638. module_expsym_cmds_F77=
  12639. link_all_deplibs_F77=unknown
  12640. old_archive_cmds_F77=$old_archive_cmds
  12641. no_undefined_flag_F77=
  12642. whole_archive_flag_spec_F77=
  12643. enable_shared_with_static_runtimes_F77=no
  12644. # Source file extension for f77 test sources.
  12645. ac_ext=f
  12646. # Object file extension for compiled f77 test sources.
  12647. objext=o
  12648. objext_F77=$objext
  12649. # Code to be used in simple compile tests
  12650. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12651. # Code to be used in simple link tests
  12652. lt_simple_link_test_code=" program t\n end\n"
  12653. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12654. # If no C compiler was specified, use CC.
  12655. LTCC=${LTCC-"$CC"}
  12656. # Allow CC to be a program name with arguments.
  12657. compiler=$CC
  12658. # save warnings/boilerplate of simple test code
  12659. ac_outfile=conftest.$ac_objext
  12660. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12661. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12662. _lt_compiler_boilerplate=`cat conftest.err`
  12663. $rm conftest*
  12664. ac_outfile=conftest.$ac_objext
  12665. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12666. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  12667. _lt_linker_boilerplate=`cat conftest.err`
  12668. $rm conftest*
  12669. # Allow CC to be a program name with arguments.
  12670. lt_save_CC="$CC"
  12671. CC=${F77-"f77"}
  12672. compiler=$CC
  12673. compiler_F77=$CC
  12674. for cc_temp in $compiler""; do
  12675. case $cc_temp in
  12676. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12677. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12678. \-*) ;;
  12679. *) break;;
  12680. esac
  12681. done
  12682. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12683. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12684. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12685. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12686. echo "${ECHO_T}$can_build_shared" >&6; }
  12687. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12688. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12689. test "$can_build_shared" = "no" && enable_shared=no
  12690. # On AIX, shared libraries and static libraries use the same namespace, and
  12691. # are all built from PIC.
  12692. case "$host_os" in
  12693. aix3*)
  12694. test "$enable_shared" = yes && enable_static=no
  12695. if test -n "$RANLIB"; then
  12696. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12697. postinstall_cmds='$RANLIB $lib'
  12698. fi
  12699. ;;
  12700. aix4* | aix5*)
  12701. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12702. test "$enable_shared" = yes && enable_static=no
  12703. fi
  12704. ;;
  12705. esac
  12706. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12707. echo "${ECHO_T}$enable_shared" >&6; }
  12708. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12709. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12710. # Make sure either enable_shared or enable_static is yes.
  12711. test "$enable_shared" = yes || enable_static=yes
  12712. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12713. echo "${ECHO_T}$enable_static" >&6; }
  12714. test "$ld_shlibs_F77" = no && can_build_shared=no
  12715. GCC_F77="$G77"
  12716. LD_F77="$LD"
  12717. lt_prog_compiler_wl_F77=
  12718. lt_prog_compiler_pic_F77=
  12719. lt_prog_compiler_static_F77=
  12720. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12721. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12722. if test "$GCC" = yes; then
  12723. lt_prog_compiler_wl_F77='-Wl,'
  12724. lt_prog_compiler_static_F77='-static'
  12725. case $host_os in
  12726. aix*)
  12727. # All AIX code is PIC.
  12728. if test "$host_cpu" = ia64; then
  12729. # AIX 5 now supports IA64 processor
  12730. lt_prog_compiler_static_F77='-Bstatic'
  12731. fi
  12732. ;;
  12733. amigaos*)
  12734. # FIXME: we need at least 68020 code to build shared libraries, but
  12735. # adding the `-m68020' flag to GCC prevents building anything better,
  12736. # like `-m68040'.
  12737. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12738. ;;
  12739. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12740. # PIC is the default for these OSes.
  12741. ;;
  12742. mingw* | pw32* | os2*)
  12743. # This hack is so that the source file can tell whether it is being
  12744. # built for inclusion in a dll (and should export symbols for example).
  12745. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12746. ;;
  12747. darwin* | rhapsody*)
  12748. # PIC is the default on this platform
  12749. # Common symbols not allowed in MH_DYLIB files
  12750. lt_prog_compiler_pic_F77='-fno-common'
  12751. ;;
  12752. msdosdjgpp*)
  12753. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12754. # on systems that don't support them.
  12755. lt_prog_compiler_can_build_shared_F77=no
  12756. enable_shared=no
  12757. ;;
  12758. sysv4*MP*)
  12759. if test -d /usr/nec; then
  12760. lt_prog_compiler_pic_F77=-Kconform_pic
  12761. fi
  12762. ;;
  12763. hpux*)
  12764. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12765. # not for PA HP-UX.
  12766. case "$host_cpu" in
  12767. hppa*64*|ia64*)
  12768. # +Z the default
  12769. ;;
  12770. *)
  12771. lt_prog_compiler_pic_F77='-fPIC'
  12772. ;;
  12773. esac
  12774. ;;
  12775. *)
  12776. lt_prog_compiler_pic_F77='-fPIC'
  12777. ;;
  12778. esac
  12779. else
  12780. # PORTME Check for flag to pass linker flags through the system compiler.
  12781. case $host_os in
  12782. aix*)
  12783. lt_prog_compiler_wl_F77='-Wl,'
  12784. if test "$host_cpu" = ia64; then
  12785. # AIX 5 now supports IA64 processor
  12786. lt_prog_compiler_static_F77='-Bstatic'
  12787. else
  12788. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12789. fi
  12790. ;;
  12791. darwin*)
  12792. # PIC is the default on this platform
  12793. # Common symbols not allowed in MH_DYLIB files
  12794. case $cc_basename in
  12795. xlc*)
  12796. lt_prog_compiler_pic_F77='-qnocommon'
  12797. lt_prog_compiler_wl_F77='-Wl,'
  12798. ;;
  12799. esac
  12800. ;;
  12801. mingw* | pw32* | os2*)
  12802. # This hack is so that the source file can tell whether it is being
  12803. # built for inclusion in a dll (and should export symbols for example).
  12804. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12805. ;;
  12806. hpux9* | hpux10* | hpux11*)
  12807. lt_prog_compiler_wl_F77='-Wl,'
  12808. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12809. # not for PA HP-UX.
  12810. case "$host_cpu" in
  12811. hppa*64*|ia64*)
  12812. # +Z the default
  12813. ;;
  12814. *)
  12815. lt_prog_compiler_pic_F77='+Z'
  12816. ;;
  12817. esac
  12818. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12819. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12820. ;;
  12821. irix5* | irix6* | nonstopux*)
  12822. lt_prog_compiler_wl_F77='-Wl,'
  12823. # PIC (with -KPIC) is the default.
  12824. lt_prog_compiler_static_F77='-non_shared'
  12825. ;;
  12826. newsos6)
  12827. lt_prog_compiler_pic_F77='-KPIC'
  12828. lt_prog_compiler_static_F77='-Bstatic'
  12829. ;;
  12830. linux*)
  12831. case $cc_basename in
  12832. icc* | ecc*)
  12833. lt_prog_compiler_wl_F77='-Wl,'
  12834. lt_prog_compiler_pic_F77='-KPIC'
  12835. lt_prog_compiler_static_F77='-static'
  12836. ;;
  12837. pgcc* | pgf77* | pgf90*)
  12838. # Portland Group compilers (*not* the Pentium gcc compiler,
  12839. # which looks to be a dead project)
  12840. lt_prog_compiler_wl_F77='-Wl,'
  12841. lt_prog_compiler_pic_F77='-fpic'
  12842. lt_prog_compiler_static_F77='-static'
  12843. ;;
  12844. ccc*)
  12845. lt_prog_compiler_wl_F77='-Wl,'
  12846. # All Alpha code is PIC.
  12847. lt_prog_compiler_static_F77='-non_shared'
  12848. ;;
  12849. esac
  12850. ;;
  12851. osf3* | osf4* | osf5*)
  12852. lt_prog_compiler_wl_F77='-Wl,'
  12853. # All OSF/1 code is PIC.
  12854. lt_prog_compiler_static_F77='-non_shared'
  12855. ;;
  12856. sco3.2v5*)
  12857. lt_prog_compiler_pic_F77='-Kpic'
  12858. lt_prog_compiler_static_F77='-dn'
  12859. ;;
  12860. solaris*)
  12861. lt_prog_compiler_pic_F77='-KPIC'
  12862. lt_prog_compiler_static_F77='-Bstatic'
  12863. case $cc_basename in
  12864. f77* | f90* | f95*)
  12865. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12866. *)
  12867. lt_prog_compiler_wl_F77='-Wl,';;
  12868. esac
  12869. ;;
  12870. sunos4*)
  12871. lt_prog_compiler_wl_F77='-Qoption ld '
  12872. lt_prog_compiler_pic_F77='-PIC'
  12873. lt_prog_compiler_static_F77='-Bstatic'
  12874. ;;
  12875. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12876. lt_prog_compiler_wl_F77='-Wl,'
  12877. lt_prog_compiler_pic_F77='-KPIC'
  12878. lt_prog_compiler_static_F77='-Bstatic'
  12879. ;;
  12880. sysv4*MP*)
  12881. if test -d /usr/nec ;then
  12882. lt_prog_compiler_pic_F77='-Kconform_pic'
  12883. lt_prog_compiler_static_F77='-Bstatic'
  12884. fi
  12885. ;;
  12886. unicos*)
  12887. lt_prog_compiler_wl_F77='-Wl,'
  12888. lt_prog_compiler_can_build_shared_F77=no
  12889. ;;
  12890. uts4*)
  12891. lt_prog_compiler_pic_F77='-pic'
  12892. lt_prog_compiler_static_F77='-Bstatic'
  12893. ;;
  12894. *)
  12895. lt_prog_compiler_can_build_shared_F77=no
  12896. ;;
  12897. esac
  12898. fi
  12899. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12900. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12901. #
  12902. # Check to make sure the PIC flag actually works.
  12903. #
  12904. if test -n "$lt_prog_compiler_pic_F77"; then
  12905. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12906. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12907. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12908. echo $ECHO_N "(cached) $ECHO_C" >&6
  12909. else
  12910. lt_prog_compiler_pic_works_F77=no
  12911. ac_outfile=conftest.$ac_objext
  12912. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12913. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12914. # Insert the option either (1) after the last *FLAGS variable, or
  12915. # (2) before a word containing "conftest.", or (3) at the end.
  12916. # Note that $ac_compile itself does not contain backslashes and begins
  12917. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12918. # The option is referenced via a variable to avoid confusing sed.
  12919. lt_compile=`echo "$ac_compile" | $SED \
  12920. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12921. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12922. -e 's:$: $lt_compiler_flag:'`
  12923. (eval echo "\"\$as_me:14471: $lt_compile\"" >&5)
  12924. (eval "$lt_compile" 2>conftest.err)
  12925. ac_status=$?
  12926. cat conftest.err >&5
  12927. echo "$as_me:14475: \$? = $ac_status" >&5
  12928. if (exit $ac_status) && test -s "$ac_outfile"; then
  12929. # The compiler can only warn and ignore the option if not recognized
  12930. # So say no if there are warnings other than the usual output.
  12931. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  12932. $SED '/^$/d' conftest.err >conftest.er2
  12933. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  12934. lt_prog_compiler_pic_works_F77=yes
  12935. fi
  12936. fi
  12937. $rm conftest*
  12938. fi
  12939. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12940. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12941. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12942. case $lt_prog_compiler_pic_F77 in
  12943. "" | " "*) ;;
  12944. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12945. esac
  12946. else
  12947. lt_prog_compiler_pic_F77=
  12948. lt_prog_compiler_can_build_shared_F77=no
  12949. fi
  12950. fi
  12951. case "$host_os" in
  12952. # For platforms which do not support PIC, -DPIC is meaningless:
  12953. *djgpp*)
  12954. lt_prog_compiler_pic_F77=
  12955. ;;
  12956. *)
  12957. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12958. ;;
  12959. esac
  12960. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12961. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12962. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12963. echo $ECHO_N "(cached) $ECHO_C" >&6
  12964. else
  12965. lt_cv_prog_compiler_c_o_F77=no
  12966. $rm -r conftest 2>/dev/null
  12967. mkdir conftest
  12968. cd conftest
  12969. mkdir out
  12970. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12971. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12972. # Insert the option either (1) after the last *FLAGS variable, or
  12973. # (2) before a word containing "conftest.", or (3) at the end.
  12974. # Note that $ac_compile itself does not contain backslashes and begins
  12975. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12976. lt_compile=`echo "$ac_compile" | $SED \
  12977. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12978. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12979. -e 's:$: $lt_compiler_flag:'`
  12980. (eval echo "\"\$as_me:14533: $lt_compile\"" >&5)
  12981. (eval "$lt_compile" 2>out/conftest.err)
  12982. ac_status=$?
  12983. cat out/conftest.err >&5
  12984. echo "$as_me:14537: \$? = $ac_status" >&5
  12985. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12986. then
  12987. # The compiler can only warn and ignore the option if not recognized
  12988. # So say no if there are warnings
  12989. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  12990. $SED '/^$/d' out/conftest.err >out/conftest.er2
  12991. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12992. lt_cv_prog_compiler_c_o_F77=yes
  12993. fi
  12994. fi
  12995. chmod u+w .
  12996. $rm conftest*
  12997. # SGI C++ compiler will create directory out/ii_files/ for
  12998. # template instantiation
  12999. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13000. $rm out/* && rmdir out
  13001. cd ..
  13002. rmdir conftest
  13003. $rm conftest*
  13004. fi
  13005. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13006. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13007. hard_links="nottested"
  13008. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13009. # do not overwrite the value of need_locks provided by the user
  13010. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13011. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13012. hard_links=yes
  13013. $rm conftest*
  13014. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13015. touch conftest.a
  13016. ln conftest.a conftest.b 2>&5 || hard_links=no
  13017. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13018. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13019. echo "${ECHO_T}$hard_links" >&6; }
  13020. if test "$hard_links" = no; then
  13021. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13022. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13023. need_locks=warn
  13024. fi
  13025. else
  13026. need_locks=no
  13027. fi
  13028. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13029. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13030. runpath_var=
  13031. allow_undefined_flag_F77=
  13032. enable_shared_with_static_runtimes_F77=no
  13033. archive_cmds_F77=
  13034. archive_expsym_cmds_F77=
  13035. old_archive_From_new_cmds_F77=
  13036. old_archive_from_expsyms_cmds_F77=
  13037. export_dynamic_flag_spec_F77=
  13038. whole_archive_flag_spec_F77=
  13039. thread_safe_flag_spec_F77=
  13040. hardcode_libdir_flag_spec_F77=
  13041. hardcode_libdir_flag_spec_ld_F77=
  13042. hardcode_libdir_separator_F77=
  13043. hardcode_direct_F77=no
  13044. hardcode_minus_L_F77=no
  13045. hardcode_shlibpath_var_F77=unsupported
  13046. link_all_deplibs_F77=unknown
  13047. hardcode_automatic_F77=no
  13048. module_cmds_F77=
  13049. module_expsym_cmds_F77=
  13050. always_export_symbols_F77=no
  13051. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13052. # include_expsyms should be a list of space-separated symbols to be *always*
  13053. # included in the symbol list
  13054. include_expsyms_F77=
  13055. # exclude_expsyms can be an extended regexp of symbols to exclude
  13056. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13057. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13058. # as well as any symbol that contains `d'.
  13059. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13060. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13061. # platforms (ab)use it in PIC code, but their linkers get confused if
  13062. # the symbol is explicitly referenced. Since portable code cannot
  13063. # rely on this symbol name, it's probably fine to never include it in
  13064. # preloaded symbol tables.
  13065. extract_expsyms_cmds=
  13066. # Just being paranoid about ensuring that cc_basename is set.
  13067. for cc_temp in $compiler""; do
  13068. case $cc_temp in
  13069. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13070. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13071. \-*) ;;
  13072. *) break;;
  13073. esac
  13074. done
  13075. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13076. case $host_os in
  13077. cygwin* | mingw* | pw32*)
  13078. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13079. # When not using gcc, we currently assume that we are using
  13080. # Microsoft Visual C++.
  13081. if test "$GCC" != yes; then
  13082. with_gnu_ld=no
  13083. fi
  13084. ;;
  13085. openbsd*)
  13086. with_gnu_ld=no
  13087. ;;
  13088. esac
  13089. ld_shlibs_F77=yes
  13090. if test "$with_gnu_ld" = yes; then
  13091. # If archive_cmds runs LD, not CC, wlarc should be empty
  13092. wlarc='${wl}'
  13093. # Set some defaults for GNU ld with shared library support. These
  13094. # are reset later if shared libraries are not supported. Putting them
  13095. # here allows them to be overridden if necessary.
  13096. runpath_var=LD_RUN_PATH
  13097. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13098. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13099. # ancient GNU ld didn't support --whole-archive et. al.
  13100. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13101. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13102. else
  13103. whole_archive_flag_spec_F77=
  13104. fi
  13105. supports_anon_versioning=no
  13106. case `$LD -v 2>/dev/null` in
  13107. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13108. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13109. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13110. *\ 2.11.*) ;; # other 2.11 versions
  13111. *) supports_anon_versioning=yes ;;
  13112. esac
  13113. # See if GNU ld supports shared libraries.
  13114. case $host_os in
  13115. aix3* | aix4* | aix5*)
  13116. # On AIX/PPC, the GNU linker is very broken
  13117. if test "$host_cpu" != ia64; then
  13118. ld_shlibs_F77=no
  13119. cat <<EOF 1>&2
  13120. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13121. *** to be unable to reliably create shared libraries on AIX.
  13122. *** Therefore, libtool is disabling shared libraries support. If you
  13123. *** really care for shared libraries, you may want to modify your PATH
  13124. *** so that a non-GNU linker is found, and then restart.
  13125. EOF
  13126. fi
  13127. ;;
  13128. amigaos*)
  13129. 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)'
  13130. hardcode_libdir_flag_spec_F77='-L$libdir'
  13131. hardcode_minus_L_F77=yes
  13132. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13133. # that the semantics of dynamic libraries on AmigaOS, at least up
  13134. # to version 4, is to share data among multiple programs linked
  13135. # with the same dynamic library. Since this doesn't match the
  13136. # behavior of shared libraries on other platforms, we can't use
  13137. # them.
  13138. ld_shlibs_F77=no
  13139. ;;
  13140. beos*)
  13141. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13142. allow_undefined_flag_F77=unsupported
  13143. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13144. # support --undefined. This deserves some investigation. FIXME
  13145. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13146. else
  13147. ld_shlibs_F77=no
  13148. fi
  13149. ;;
  13150. cygwin* | mingw* | pw32*)
  13151. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13152. # as there is no search path for DLLs.
  13153. hardcode_libdir_flag_spec_F77='-L$libdir'
  13154. allow_undefined_flag_F77=unsupported
  13155. always_export_symbols_F77=no
  13156. enable_shared_with_static_runtimes_F77=yes
  13157. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13158. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13159. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13160. # If the export-symbols file already is a .def file (1st line
  13161. # is EXPORTS), use it as is; otherwise, prepend...
  13162. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13163. cp $export_symbols $output_objdir/$soname.def;
  13164. else
  13165. echo EXPORTS > $output_objdir/$soname.def;
  13166. cat $export_symbols >> $output_objdir/$soname.def;
  13167. fi~
  13168. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13169. else
  13170. ld_shlibs_F77=no
  13171. fi
  13172. ;;
  13173. linux*)
  13174. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13175. tmp_addflag=
  13176. case $cc_basename,$host_cpu in
  13177. pgcc*) # Portland Group C compiler
  13178. 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'
  13179. tmp_addflag=' $pic_flag'
  13180. ;;
  13181. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  13182. 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'
  13183. tmp_addflag=' $pic_flag -Mnomain' ;;
  13184. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13185. tmp_addflag=' -i_dynamic' ;;
  13186. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13187. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13188. ifc* | ifort*) # Intel Fortran compiler
  13189. tmp_addflag=' -nofor_main' ;;
  13190. esac
  13191. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13192. if test $supports_anon_versioning = yes; then
  13193. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13194. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13195. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13196. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13197. fi
  13198. else
  13199. ld_shlibs_F77=no
  13200. fi
  13201. ;;
  13202. netbsd*)
  13203. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13204. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13205. wlarc=
  13206. else
  13207. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13208. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13209. fi
  13210. ;;
  13211. solaris* | sysv5*)
  13212. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13213. ld_shlibs_F77=no
  13214. cat <<EOF 1>&2
  13215. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13216. *** create shared libraries on Solaris systems. Therefore, libtool
  13217. *** is disabling shared libraries support. We urge you to upgrade GNU
  13218. *** binutils to release 2.9.1 or newer. Another option is to modify
  13219. *** your PATH or compiler configuration so that the native linker is
  13220. *** used, and then restart.
  13221. EOF
  13222. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13223. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13224. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13225. else
  13226. ld_shlibs_F77=no
  13227. fi
  13228. ;;
  13229. sunos4*)
  13230. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13231. wlarc=
  13232. hardcode_direct_F77=yes
  13233. hardcode_shlibpath_var_F77=no
  13234. ;;
  13235. *)
  13236. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13237. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13238. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13239. else
  13240. ld_shlibs_F77=no
  13241. fi
  13242. ;;
  13243. esac
  13244. if test "$ld_shlibs_F77" = no; then
  13245. runpath_var=
  13246. hardcode_libdir_flag_spec_F77=
  13247. export_dynamic_flag_spec_F77=
  13248. whole_archive_flag_spec_F77=
  13249. fi
  13250. else
  13251. # PORTME fill in a description of your system's linker (not GNU ld)
  13252. case $host_os in
  13253. aix3*)
  13254. allow_undefined_flag_F77=unsupported
  13255. always_export_symbols_F77=yes
  13256. 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'
  13257. # Note: this linker hardcodes the directories in LIBPATH if there
  13258. # are no directories specified by -L.
  13259. hardcode_minus_L_F77=yes
  13260. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13261. # Neither direct hardcoding nor static linking is supported with a
  13262. # broken collect2.
  13263. hardcode_direct_F77=unsupported
  13264. fi
  13265. ;;
  13266. aix4* | aix5*)
  13267. if test "$host_cpu" = ia64; then
  13268. # On IA64, the linker does run time linking by default, so we don't
  13269. # have to do anything special.
  13270. aix_use_runtimelinking=no
  13271. exp_sym_flag='-Bexport'
  13272. no_entry_flag=""
  13273. else
  13274. # If we're using GNU nm, then we don't want the "-C" option.
  13275. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13276. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13277. 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'
  13278. else
  13279. 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'
  13280. fi
  13281. aix_use_runtimelinking=no
  13282. # Test if we are trying to use run time linking or normal
  13283. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13284. # need to do runtime linking.
  13285. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13286. for ld_flag in $LDFLAGS; do
  13287. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13288. aix_use_runtimelinking=yes
  13289. break
  13290. fi
  13291. done
  13292. esac
  13293. exp_sym_flag='-bexport'
  13294. no_entry_flag='-bnoentry'
  13295. fi
  13296. # When large executables or shared objects are built, AIX ld can
  13297. # have problems creating the table of contents. If linking a library
  13298. # or program results in "error TOC overflow" add -mminimal-toc to
  13299. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13300. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13301. archive_cmds_F77=''
  13302. hardcode_direct_F77=yes
  13303. hardcode_libdir_separator_F77=':'
  13304. link_all_deplibs_F77=yes
  13305. if test "$GCC" = yes; then
  13306. case $host_os in aix4.[012]|aix4.[012].*)
  13307. # We only want to do this on AIX 4.2 and lower, the check
  13308. # below for broken collect2 doesn't work under 4.3+
  13309. collect2name=`${CC} -print-prog-name=collect2`
  13310. if test -f "$collect2name" && \
  13311. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13312. then
  13313. # We have reworked collect2
  13314. hardcode_direct_F77=yes
  13315. else
  13316. # We have old collect2
  13317. hardcode_direct_F77=unsupported
  13318. # It fails to find uninstalled libraries when the uninstalled
  13319. # path is not listed in the libpath. Setting hardcode_minus_L
  13320. # to unsupported forces relinking
  13321. hardcode_minus_L_F77=yes
  13322. hardcode_libdir_flag_spec_F77='-L$libdir'
  13323. hardcode_libdir_separator_F77=
  13324. fi
  13325. esac
  13326. shared_flag='-shared'
  13327. if test "$aix_use_runtimelinking" = yes; then
  13328. shared_flag="$shared_flag "'${wl}-G'
  13329. fi
  13330. else
  13331. # not using gcc
  13332. if test "$host_cpu" = ia64; then
  13333. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13334. # chokes on -Wl,-G. The following line is correct:
  13335. shared_flag='-G'
  13336. else
  13337. if test "$aix_use_runtimelinking" = yes; then
  13338. shared_flag='${wl}-G'
  13339. else
  13340. shared_flag='${wl}-bM:SRE'
  13341. fi
  13342. fi
  13343. fi
  13344. # It seems that -bexpall does not export symbols beginning with
  13345. # underscore (_), so it is better to generate a list of symbols to export.
  13346. always_export_symbols_F77=yes
  13347. if test "$aix_use_runtimelinking" = yes; then
  13348. # Warning - without using the other runtime loading flags (-brtl),
  13349. # -berok will link without error, but may produce a broken library.
  13350. allow_undefined_flag_F77='-berok'
  13351. # Determine the default libpath from the value encoded in an empty executable.
  13352. cat >conftest.$ac_ext <<_ACEOF
  13353. program main
  13354. end
  13355. _ACEOF
  13356. rm -f conftest.$ac_objext conftest$ac_exeext
  13357. if { (ac_try="$ac_link"
  13358. case "(($ac_try" in
  13359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13360. *) ac_try_echo=$ac_try;;
  13361. esac
  13362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13363. (eval "$ac_link") 2>conftest.er1
  13364. ac_status=$?
  13365. grep -v '^ *+' conftest.er1 >conftest.err
  13366. rm -f conftest.er1
  13367. cat conftest.err >&5
  13368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13369. (exit $ac_status); } && {
  13370. test -z "$ac_f77_werror_flag" ||
  13371. test ! -s conftest.err
  13372. } && test -s conftest$ac_exeext &&
  13373. $as_test_x conftest$ac_exeext; then
  13374. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13375. }'`
  13376. # Check for a 64-bit object if we didn't find anything.
  13377. 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; }
  13378. }'`; fi
  13379. else
  13380. echo "$as_me: failed program was:" >&5
  13381. sed 's/^/| /' conftest.$ac_ext >&5
  13382. fi
  13383. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13384. conftest$ac_exeext conftest.$ac_ext
  13385. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13386. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13387. 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"
  13388. else
  13389. if test "$host_cpu" = ia64; then
  13390. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13391. allow_undefined_flag_F77="-z nodefs"
  13392. 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"
  13393. else
  13394. # Determine the default libpath from the value encoded in an empty executable.
  13395. cat >conftest.$ac_ext <<_ACEOF
  13396. program main
  13397. end
  13398. _ACEOF
  13399. rm -f conftest.$ac_objext conftest$ac_exeext
  13400. if { (ac_try="$ac_link"
  13401. case "(($ac_try" in
  13402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13403. *) ac_try_echo=$ac_try;;
  13404. esac
  13405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13406. (eval "$ac_link") 2>conftest.er1
  13407. ac_status=$?
  13408. grep -v '^ *+' conftest.er1 >conftest.err
  13409. rm -f conftest.er1
  13410. cat conftest.err >&5
  13411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13412. (exit $ac_status); } && {
  13413. test -z "$ac_f77_werror_flag" ||
  13414. test ! -s conftest.err
  13415. } && test -s conftest$ac_exeext &&
  13416. $as_test_x conftest$ac_exeext; then
  13417. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13418. }'`
  13419. # Check for a 64-bit object if we didn't find anything.
  13420. 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; }
  13421. }'`; fi
  13422. else
  13423. echo "$as_me: failed program was:" >&5
  13424. sed 's/^/| /' conftest.$ac_ext >&5
  13425. fi
  13426. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13427. conftest$ac_exeext conftest.$ac_ext
  13428. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13429. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13430. # Warning - without using the other run time loading flags,
  13431. # -berok will link without error, but may produce a broken library.
  13432. no_undefined_flag_F77=' ${wl}-bernotok'
  13433. allow_undefined_flag_F77=' ${wl}-berok'
  13434. # -bexpall does not export symbols beginning with underscore (_)
  13435. always_export_symbols_F77=yes
  13436. # Exported symbols can be pulled into shared objects from archives
  13437. whole_archive_flag_spec_F77=' '
  13438. archive_cmds_need_lc_F77=yes
  13439. # This is similar to how AIX traditionally builds it's shared libraries.
  13440. 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'
  13441. fi
  13442. fi
  13443. ;;
  13444. amigaos*)
  13445. 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)'
  13446. hardcode_libdir_flag_spec_F77='-L$libdir'
  13447. hardcode_minus_L_F77=yes
  13448. # see comment about different semantics on the GNU ld section
  13449. ld_shlibs_F77=no
  13450. ;;
  13451. bsdi[45]*)
  13452. export_dynamic_flag_spec_F77=-rdynamic
  13453. ;;
  13454. cygwin* | mingw* | pw32*)
  13455. # When not using gcc, we currently assume that we are using
  13456. # Microsoft Visual C++.
  13457. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13458. # no search path for DLLs.
  13459. hardcode_libdir_flag_spec_F77=' '
  13460. allow_undefined_flag_F77=unsupported
  13461. # Tell ltmain to make .lib files, not .a files.
  13462. libext=lib
  13463. # Tell ltmain to make .dll files, not .so files.
  13464. shrext_cmds=".dll"
  13465. # FIXME: Setting linknames here is a bad hack.
  13466. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13467. # The linker will automatically build a .lib file if we build a DLL.
  13468. old_archive_From_new_cmds_F77='true'
  13469. # FIXME: Should let the user specify the lib program.
  13470. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13471. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13472. enable_shared_with_static_runtimes_F77=yes
  13473. ;;
  13474. darwin* | rhapsody*)
  13475. case "$host_os" in
  13476. rhapsody* | darwin1.[012])
  13477. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13478. ;;
  13479. *) # Darwin 1.3 on
  13480. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13481. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13482. else
  13483. case ${MACOSX_DEPLOYMENT_TARGET} in
  13484. 10.[012])
  13485. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13486. ;;
  13487. 10.*)
  13488. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13489. ;;
  13490. esac
  13491. fi
  13492. ;;
  13493. esac
  13494. archive_cmds_need_lc_F77=no
  13495. hardcode_direct_F77=no
  13496. hardcode_automatic_F77=yes
  13497. hardcode_shlibpath_var_F77=unsupported
  13498. whole_archive_flag_spec_F77=''
  13499. link_all_deplibs_F77=yes
  13500. if test "$GCC" = yes ; then
  13501. output_verbose_link_cmd='echo'
  13502. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13503. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13504. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13505. 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}'
  13506. 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}'
  13507. else
  13508. case $cc_basename in
  13509. xlc*)
  13510. output_verbose_link_cmd='echo'
  13511. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13512. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13513. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13514. 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}'
  13515. 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}'
  13516. ;;
  13517. *)
  13518. ld_shlibs_F77=no
  13519. ;;
  13520. esac
  13521. fi
  13522. ;;
  13523. dgux*)
  13524. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13525. hardcode_libdir_flag_spec_F77='-L$libdir'
  13526. hardcode_shlibpath_var_F77=no
  13527. ;;
  13528. freebsd1*)
  13529. ld_shlibs_F77=no
  13530. ;;
  13531. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13532. # support. Future versions do this automatically, but an explicit c++rt0.o
  13533. # does not break anything, and helps significantly (at the cost of a little
  13534. # extra space).
  13535. freebsd2.2*)
  13536. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13537. hardcode_libdir_flag_spec_F77='-R$libdir'
  13538. hardcode_direct_F77=yes
  13539. hardcode_shlibpath_var_F77=no
  13540. ;;
  13541. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13542. freebsd2*)
  13543. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13544. hardcode_direct_F77=yes
  13545. hardcode_minus_L_F77=yes
  13546. hardcode_shlibpath_var_F77=no
  13547. ;;
  13548. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13549. freebsd* | kfreebsd*-gnu | dragonfly*)
  13550. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13551. hardcode_libdir_flag_spec_F77='-R$libdir'
  13552. hardcode_direct_F77=yes
  13553. hardcode_shlibpath_var_F77=no
  13554. ;;
  13555. hpux9*)
  13556. if test "$GCC" = yes; then
  13557. 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'
  13558. else
  13559. 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'
  13560. fi
  13561. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13562. hardcode_libdir_separator_F77=:
  13563. hardcode_direct_F77=yes
  13564. # hardcode_minus_L: Not really in the search PATH,
  13565. # but as the default location of the library.
  13566. hardcode_minus_L_F77=yes
  13567. export_dynamic_flag_spec_F77='${wl}-E'
  13568. ;;
  13569. hpux10* | hpux11*)
  13570. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13571. case "$host_cpu" in
  13572. hppa*64*|ia64*)
  13573. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13574. ;;
  13575. *)
  13576. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13577. ;;
  13578. esac
  13579. else
  13580. case "$host_cpu" in
  13581. hppa*64*|ia64*)
  13582. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13583. ;;
  13584. *)
  13585. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13586. ;;
  13587. esac
  13588. fi
  13589. if test "$with_gnu_ld" = no; then
  13590. case "$host_cpu" in
  13591. hppa*64*)
  13592. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13593. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13594. hardcode_libdir_separator_F77=:
  13595. hardcode_direct_F77=no
  13596. hardcode_shlibpath_var_F77=no
  13597. ;;
  13598. ia64*)
  13599. hardcode_libdir_flag_spec_F77='-L$libdir'
  13600. hardcode_direct_F77=no
  13601. hardcode_shlibpath_var_F77=no
  13602. # hardcode_minus_L: Not really in the search PATH,
  13603. # but as the default location of the library.
  13604. hardcode_minus_L_F77=yes
  13605. ;;
  13606. *)
  13607. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13608. hardcode_libdir_separator_F77=:
  13609. hardcode_direct_F77=yes
  13610. export_dynamic_flag_spec_F77='${wl}-E'
  13611. # hardcode_minus_L: Not really in the search PATH,
  13612. # but as the default location of the library.
  13613. hardcode_minus_L_F77=yes
  13614. ;;
  13615. esac
  13616. fi
  13617. ;;
  13618. irix5* | irix6* | nonstopux*)
  13619. if test "$GCC" = yes; then
  13620. 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'
  13621. else
  13622. 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'
  13623. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13624. fi
  13625. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13626. hardcode_libdir_separator_F77=:
  13627. link_all_deplibs_F77=yes
  13628. ;;
  13629. netbsd*)
  13630. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13631. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13632. else
  13633. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13634. fi
  13635. hardcode_libdir_flag_spec_F77='-R$libdir'
  13636. hardcode_direct_F77=yes
  13637. hardcode_shlibpath_var_F77=no
  13638. ;;
  13639. newsos6)
  13640. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13641. hardcode_direct_F77=yes
  13642. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13643. hardcode_libdir_separator_F77=:
  13644. hardcode_shlibpath_var_F77=no
  13645. ;;
  13646. openbsd*)
  13647. hardcode_direct_F77=yes
  13648. hardcode_shlibpath_var_F77=no
  13649. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13650. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13651. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13652. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13653. export_dynamic_flag_spec_F77='${wl}-E'
  13654. else
  13655. case $host_os in
  13656. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13657. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13658. hardcode_libdir_flag_spec_F77='-R$libdir'
  13659. ;;
  13660. *)
  13661. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13662. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13663. ;;
  13664. esac
  13665. fi
  13666. ;;
  13667. os2*)
  13668. hardcode_libdir_flag_spec_F77='-L$libdir'
  13669. hardcode_minus_L_F77=yes
  13670. allow_undefined_flag_F77=unsupported
  13671. 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'
  13672. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13673. ;;
  13674. osf3*)
  13675. if test "$GCC" = yes; then
  13676. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13677. 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'
  13678. else
  13679. allow_undefined_flag_F77=' -expect_unresolved \*'
  13680. 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'
  13681. fi
  13682. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13683. hardcode_libdir_separator_F77=:
  13684. ;;
  13685. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13686. if test "$GCC" = yes; then
  13687. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13688. 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'
  13689. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13690. else
  13691. allow_undefined_flag_F77=' -expect_unresolved \*'
  13692. 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'
  13693. 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~
  13694. $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'
  13695. # Both c and cxx compiler support -rpath directly
  13696. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13697. fi
  13698. hardcode_libdir_separator_F77=:
  13699. ;;
  13700. sco3.2v5*)
  13701. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13702. hardcode_shlibpath_var_F77=no
  13703. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13704. runpath_var=LD_RUN_PATH
  13705. hardcode_runpath_var=yes
  13706. ;;
  13707. solaris*)
  13708. no_undefined_flag_F77=' -z text'
  13709. if test "$GCC" = yes; then
  13710. wlarc='${wl}'
  13711. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13712. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13713. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13714. else
  13715. wlarc=''
  13716. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13717. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13718. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13719. fi
  13720. hardcode_libdir_flag_spec_F77='-R$libdir'
  13721. hardcode_shlibpath_var_F77=no
  13722. case $host_os in
  13723. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13724. *)
  13725. # The compiler driver will combine linker options so we
  13726. # cannot just pass the convience library names through
  13727. # without $wl, iff we do not link with $LD.
  13728. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13729. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13730. case $wlarc in
  13731. '')
  13732. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13733. *)
  13734. 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' ;;
  13735. esac ;;
  13736. esac
  13737. link_all_deplibs_F77=yes
  13738. ;;
  13739. sunos4*)
  13740. if test "x$host_vendor" = xsequent; then
  13741. # Use $CC to link under sequent, because it throws in some extra .o
  13742. # files that make .init and .fini sections work.
  13743. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13744. else
  13745. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13746. fi
  13747. hardcode_libdir_flag_spec_F77='-L$libdir'
  13748. hardcode_direct_F77=yes
  13749. hardcode_minus_L_F77=yes
  13750. hardcode_shlibpath_var_F77=no
  13751. ;;
  13752. sysv4)
  13753. case $host_vendor in
  13754. sni)
  13755. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13756. hardcode_direct_F77=yes # is this really true???
  13757. ;;
  13758. siemens)
  13759. ## LD is ld it makes a PLAMLIB
  13760. ## CC just makes a GrossModule.
  13761. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13762. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13763. hardcode_direct_F77=no
  13764. ;;
  13765. motorola)
  13766. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13767. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13768. ;;
  13769. esac
  13770. runpath_var='LD_RUN_PATH'
  13771. hardcode_shlibpath_var_F77=no
  13772. ;;
  13773. sysv4.3*)
  13774. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13775. hardcode_shlibpath_var_F77=no
  13776. export_dynamic_flag_spec_F77='-Bexport'
  13777. ;;
  13778. sysv4*MP*)
  13779. if test -d /usr/nec; then
  13780. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13781. hardcode_shlibpath_var_F77=no
  13782. runpath_var=LD_RUN_PATH
  13783. hardcode_runpath_var=yes
  13784. ld_shlibs_F77=yes
  13785. fi
  13786. ;;
  13787. sysv4.2uw2*)
  13788. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13789. hardcode_direct_F77=yes
  13790. hardcode_minus_L_F77=no
  13791. hardcode_shlibpath_var_F77=no
  13792. hardcode_runpath_var=yes
  13793. runpath_var=LD_RUN_PATH
  13794. ;;
  13795. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13796. no_undefined_flag_F77='${wl}-z ${wl}text'
  13797. if test "$GCC" = yes; then
  13798. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13799. else
  13800. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13801. fi
  13802. runpath_var='LD_RUN_PATH'
  13803. hardcode_shlibpath_var_F77=no
  13804. ;;
  13805. sysv5*)
  13806. no_undefined_flag_F77=' -z text'
  13807. # $CC -shared without GNU ld will not create a library from C++
  13808. # object files and a static libstdc++, better avoid it by now
  13809. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13810. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13811. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13812. hardcode_libdir_flag_spec_F77=
  13813. hardcode_shlibpath_var_F77=no
  13814. runpath_var='LD_RUN_PATH'
  13815. ;;
  13816. uts4*)
  13817. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13818. hardcode_libdir_flag_spec_F77='-L$libdir'
  13819. hardcode_shlibpath_var_F77=no
  13820. ;;
  13821. *)
  13822. ld_shlibs_F77=no
  13823. ;;
  13824. esac
  13825. fi
  13826. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13827. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13828. test "$ld_shlibs_F77" = no && can_build_shared=no
  13829. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13830. if test "$GCC" = yes; then
  13831. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13832. fi
  13833. #
  13834. # Do we need to explicitly link libc?
  13835. #
  13836. case "x$archive_cmds_need_lc_F77" in
  13837. x|xyes)
  13838. # Assume -lc should be added
  13839. archive_cmds_need_lc_F77=yes
  13840. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13841. case $archive_cmds_F77 in
  13842. *'~'*)
  13843. # FIXME: we may have to deal with multi-command sequences.
  13844. ;;
  13845. '$CC '*)
  13846. # Test whether the compiler implicitly links with -lc since on some
  13847. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13848. # to ld, don't add -lc before -lgcc.
  13849. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13850. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13851. $rm conftest*
  13852. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13853. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13854. (eval $ac_compile) 2>&5
  13855. ac_status=$?
  13856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13857. (exit $ac_status); } 2>conftest.err; then
  13858. soname=conftest
  13859. lib=conftest
  13860. libobjs=conftest.$ac_objext
  13861. deplibs=
  13862. wl=$lt_prog_compiler_wl_F77
  13863. compiler_flags=-v
  13864. linker_flags=-v
  13865. verstring=
  13866. output_objdir=.
  13867. libname=conftest
  13868. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13869. allow_undefined_flag_F77=
  13870. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13871. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13872. ac_status=$?
  13873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13874. (exit $ac_status); }
  13875. then
  13876. archive_cmds_need_lc_F77=no
  13877. else
  13878. archive_cmds_need_lc_F77=yes
  13879. fi
  13880. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13881. else
  13882. cat conftest.err 1>&5
  13883. fi
  13884. $rm conftest*
  13885. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13886. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13887. ;;
  13888. esac
  13889. fi
  13890. ;;
  13891. esac
  13892. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13893. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13894. library_names_spec=
  13895. libname_spec='lib$name'
  13896. soname_spec=
  13897. shrext_cmds=".so"
  13898. postinstall_cmds=
  13899. postuninstall_cmds=
  13900. finish_cmds=
  13901. finish_eval=
  13902. shlibpath_var=
  13903. shlibpath_overrides_runpath=unknown
  13904. version_type=none
  13905. dynamic_linker="$host_os ld.so"
  13906. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13907. if test "$GCC" = yes; then
  13908. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13909. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13910. # if the path contains ";" then we assume it to be the separator
  13911. # otherwise default to the standard path separator (i.e. ":") - it is
  13912. # assumed that no part of a normal pathname contains ";" but that should
  13913. # okay in the real world where ";" in dirpaths is itself problematic.
  13914. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13915. else
  13916. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13917. fi
  13918. else
  13919. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13920. fi
  13921. need_lib_prefix=unknown
  13922. hardcode_into_libs=no
  13923. # when you set need_version to no, make sure it does not cause -set_version
  13924. # flags to be left without arguments
  13925. need_version=unknown
  13926. case $host_os in
  13927. aix3*)
  13928. version_type=linux
  13929. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13930. shlibpath_var=LIBPATH
  13931. # AIX 3 has no versioning support, so we append a major version to the name.
  13932. soname_spec='${libname}${release}${shared_ext}$major'
  13933. ;;
  13934. aix4* | aix5*)
  13935. version_type=linux
  13936. need_lib_prefix=no
  13937. need_version=no
  13938. hardcode_into_libs=yes
  13939. if test "$host_cpu" = ia64; then
  13940. # AIX 5 supports IA64
  13941. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13942. shlibpath_var=LD_LIBRARY_PATH
  13943. else
  13944. # With GCC up to 2.95.x, collect2 would create an import file
  13945. # for dependence libraries. The import file would start with
  13946. # the line `#! .'. This would cause the generated library to
  13947. # depend on `.', always an invalid library. This was fixed in
  13948. # development snapshots of GCC prior to 3.0.
  13949. case $host_os in
  13950. aix4 | aix4.[01] | aix4.[01].*)
  13951. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13952. echo ' yes '
  13953. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13954. :
  13955. else
  13956. can_build_shared=no
  13957. fi
  13958. ;;
  13959. esac
  13960. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13961. # soname into executable. Probably we can add versioning support to
  13962. # collect2, so additional links can be useful in future.
  13963. if test "$aix_use_runtimelinking" = yes; then
  13964. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13965. # instead of lib<name>.a to let people know that these are not
  13966. # typical AIX shared libraries.
  13967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13968. else
  13969. # We preserve .a as extension for shared libraries through AIX4.2
  13970. # and later when we are not doing run time linking.
  13971. library_names_spec='${libname}${release}.a $libname.a'
  13972. soname_spec='${libname}${release}${shared_ext}$major'
  13973. fi
  13974. shlibpath_var=LIBPATH
  13975. fi
  13976. ;;
  13977. amigaos*)
  13978. library_names_spec='$libname.ixlibrary $libname.a'
  13979. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13980. 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'
  13981. ;;
  13982. beos*)
  13983. library_names_spec='${libname}${shared_ext}'
  13984. dynamic_linker="$host_os ld.so"
  13985. shlibpath_var=LIBRARY_PATH
  13986. ;;
  13987. bsdi[45]*)
  13988. version_type=linux
  13989. need_version=no
  13990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13991. soname_spec='${libname}${release}${shared_ext}$major'
  13992. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13993. shlibpath_var=LD_LIBRARY_PATH
  13994. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13995. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13996. # the default ld.so.conf also contains /usr/contrib/lib and
  13997. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13998. # libtool to hard-code these into programs
  13999. ;;
  14000. cygwin* | mingw* | pw32*)
  14001. version_type=windows
  14002. shrext_cmds=".dll"
  14003. need_version=no
  14004. need_lib_prefix=no
  14005. case $GCC,$host_os in
  14006. yes,cygwin* | yes,mingw* | yes,pw32*)
  14007. library_names_spec='$libname.dll.a'
  14008. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14009. postinstall_cmds='base_file=`basename \${file}`~
  14010. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14011. dldir=$destdir/`dirname \$dlpath`~
  14012. test -d \$dldir || mkdir -p \$dldir~
  14013. $install_prog $dir/$dlname \$dldir/$dlname'
  14014. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14015. dlpath=$dir/\$dldll~
  14016. $rm \$dlpath'
  14017. shlibpath_overrides_runpath=yes
  14018. case $host_os in
  14019. cygwin*)
  14020. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14021. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14022. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14023. ;;
  14024. mingw*)
  14025. # MinGW DLLs use traditional 'lib' prefix
  14026. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14027. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14028. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14029. # It is most probably a Windows format PATH printed by
  14030. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14031. # path with ; separators, and with drive letters. We can handle the
  14032. # drive letters (cygwin fileutils understands them), so leave them,
  14033. # especially as we might pass files found there to a mingw objdump,
  14034. # which wouldn't understand a cygwinified path. Ahh.
  14035. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14036. else
  14037. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14038. fi
  14039. ;;
  14040. pw32*)
  14041. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14042. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14043. ;;
  14044. esac
  14045. ;;
  14046. *)
  14047. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14048. ;;
  14049. esac
  14050. dynamic_linker='Win32 ld.exe'
  14051. # FIXME: first we should search . and the directory the executable is in
  14052. shlibpath_var=PATH
  14053. ;;
  14054. darwin* | rhapsody*)
  14055. dynamic_linker="$host_os dyld"
  14056. version_type=darwin
  14057. need_lib_prefix=no
  14058. need_version=no
  14059. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14060. soname_spec='${libname}${release}${major}$shared_ext'
  14061. shlibpath_overrides_runpath=yes
  14062. shlibpath_var=DYLD_LIBRARY_PATH
  14063. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  14064. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14065. if test "$GCC" = yes; then
  14066. 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"`
  14067. else
  14068. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14069. fi
  14070. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14071. ;;
  14072. dgux*)
  14073. version_type=linux
  14074. need_lib_prefix=no
  14075. need_version=no
  14076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14077. soname_spec='${libname}${release}${shared_ext}$major'
  14078. shlibpath_var=LD_LIBRARY_PATH
  14079. ;;
  14080. freebsd1*)
  14081. dynamic_linker=no
  14082. ;;
  14083. kfreebsd*-gnu)
  14084. version_type=linux
  14085. need_lib_prefix=no
  14086. need_version=no
  14087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14088. soname_spec='${libname}${release}${shared_ext}$major'
  14089. shlibpath_var=LD_LIBRARY_PATH
  14090. shlibpath_overrides_runpath=no
  14091. hardcode_into_libs=yes
  14092. dynamic_linker='GNU ld.so'
  14093. ;;
  14094. freebsd* | dragonfly*)
  14095. # DragonFly does not have aout. When/if they implement a new
  14096. # versioning mechanism, adjust this.
  14097. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14098. version_type=freebsd-$objformat
  14099. case $version_type in
  14100. freebsd-elf*)
  14101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14102. need_version=no
  14103. need_lib_prefix=no
  14104. ;;
  14105. freebsd-*)
  14106. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14107. need_version=yes
  14108. ;;
  14109. esac
  14110. shlibpath_var=LD_LIBRARY_PATH
  14111. case $host_os in
  14112. freebsd2*)
  14113. shlibpath_overrides_runpath=yes
  14114. ;;
  14115. freebsd3.[01]* | freebsdelf3.[01]*)
  14116. shlibpath_overrides_runpath=yes
  14117. hardcode_into_libs=yes
  14118. ;;
  14119. *) # from 3.2 on
  14120. shlibpath_overrides_runpath=no
  14121. hardcode_into_libs=yes
  14122. ;;
  14123. esac
  14124. ;;
  14125. gnu*)
  14126. version_type=linux
  14127. need_lib_prefix=no
  14128. need_version=no
  14129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14130. soname_spec='${libname}${release}${shared_ext}$major'
  14131. shlibpath_var=LD_LIBRARY_PATH
  14132. hardcode_into_libs=yes
  14133. ;;
  14134. hpux9* | hpux10* | hpux11*)
  14135. # Give a soname corresponding to the major version so that dld.sl refuses to
  14136. # link against other versions.
  14137. version_type=sunos
  14138. need_lib_prefix=no
  14139. need_version=no
  14140. case "$host_cpu" in
  14141. ia64*)
  14142. shrext_cmds='.so'
  14143. hardcode_into_libs=yes
  14144. dynamic_linker="$host_os dld.so"
  14145. shlibpath_var=LD_LIBRARY_PATH
  14146. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14148. soname_spec='${libname}${release}${shared_ext}$major'
  14149. if test "X$HPUX_IA64_MODE" = X32; then
  14150. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14151. else
  14152. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14153. fi
  14154. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14155. ;;
  14156. hppa*64*)
  14157. shrext_cmds='.sl'
  14158. hardcode_into_libs=yes
  14159. dynamic_linker="$host_os dld.sl"
  14160. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14161. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14163. soname_spec='${libname}${release}${shared_ext}$major'
  14164. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14165. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14166. ;;
  14167. *)
  14168. shrext_cmds='.sl'
  14169. dynamic_linker="$host_os dld.sl"
  14170. shlibpath_var=SHLIB_PATH
  14171. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14173. soname_spec='${libname}${release}${shared_ext}$major'
  14174. ;;
  14175. esac
  14176. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14177. postinstall_cmds='chmod 555 $lib'
  14178. ;;
  14179. irix5* | irix6* | nonstopux*)
  14180. case $host_os in
  14181. nonstopux*) version_type=nonstopux ;;
  14182. *)
  14183. if test "$lt_cv_prog_gnu_ld" = yes; then
  14184. version_type=linux
  14185. else
  14186. version_type=irix
  14187. fi ;;
  14188. esac
  14189. need_lib_prefix=no
  14190. need_version=no
  14191. soname_spec='${libname}${release}${shared_ext}$major'
  14192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14193. case $host_os in
  14194. irix5* | nonstopux*)
  14195. libsuff= shlibsuff=
  14196. ;;
  14197. *)
  14198. case $LD in # libtool.m4 will add one of these switches to LD
  14199. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14200. libsuff= shlibsuff= libmagic=32-bit;;
  14201. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14202. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14203. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14204. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14205. *) libsuff= shlibsuff= libmagic=never-match;;
  14206. esac
  14207. ;;
  14208. esac
  14209. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14210. shlibpath_overrides_runpath=no
  14211. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14212. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14213. hardcode_into_libs=yes
  14214. ;;
  14215. # No shared lib support for Linux oldld, aout, or coff.
  14216. linux*oldld* | linux*aout* | linux*coff*)
  14217. dynamic_linker=no
  14218. ;;
  14219. # This must be Linux ELF.
  14220. linux*)
  14221. version_type=linux
  14222. need_lib_prefix=no
  14223. need_version=no
  14224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14225. soname_spec='${libname}${release}${shared_ext}$major'
  14226. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14227. shlibpath_var=LD_LIBRARY_PATH
  14228. shlibpath_overrides_runpath=no
  14229. # This implies no fast_install, which is unacceptable.
  14230. # Some rework will be needed to allow for fast_install
  14231. # before this can be enabled.
  14232. hardcode_into_libs=yes
  14233. # Append ld.so.conf contents to the search path
  14234. if test -f /etc/ld.so.conf; then
  14235. 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' ' '`
  14236. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14237. fi
  14238. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14239. # powerpc, because MkLinux only supported shared libraries with the
  14240. # GNU dynamic linker. Since this was broken with cross compilers,
  14241. # most powerpc-linux boxes support dynamic linking these days and
  14242. # people can always --disable-shared, the test was removed, and we
  14243. # assume the GNU/Linux dynamic linker is in use.
  14244. dynamic_linker='GNU/Linux ld.so'
  14245. ;;
  14246. knetbsd*-gnu)
  14247. version_type=linux
  14248. need_lib_prefix=no
  14249. need_version=no
  14250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14251. soname_spec='${libname}${release}${shared_ext}$major'
  14252. shlibpath_var=LD_LIBRARY_PATH
  14253. shlibpath_overrides_runpath=no
  14254. hardcode_into_libs=yes
  14255. dynamic_linker='GNU ld.so'
  14256. ;;
  14257. netbsd*)
  14258. version_type=sunos
  14259. need_lib_prefix=no
  14260. need_version=no
  14261. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14263. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14264. dynamic_linker='NetBSD (a.out) ld.so'
  14265. else
  14266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14267. soname_spec='${libname}${release}${shared_ext}$major'
  14268. dynamic_linker='NetBSD ld.elf_so'
  14269. fi
  14270. shlibpath_var=LD_LIBRARY_PATH
  14271. shlibpath_overrides_runpath=yes
  14272. hardcode_into_libs=yes
  14273. ;;
  14274. newsos6)
  14275. version_type=linux
  14276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14277. shlibpath_var=LD_LIBRARY_PATH
  14278. shlibpath_overrides_runpath=yes
  14279. ;;
  14280. nto-qnx*)
  14281. version_type=linux
  14282. need_lib_prefix=no
  14283. need_version=no
  14284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14285. soname_spec='${libname}${release}${shared_ext}$major'
  14286. shlibpath_var=LD_LIBRARY_PATH
  14287. shlibpath_overrides_runpath=yes
  14288. ;;
  14289. openbsd*)
  14290. version_type=sunos
  14291. need_lib_prefix=no
  14292. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14293. case $host_os in
  14294. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14295. *) need_version=no ;;
  14296. esac
  14297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14298. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14299. shlibpath_var=LD_LIBRARY_PATH
  14300. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14301. case $host_os in
  14302. openbsd2.[89] | openbsd2.[89].*)
  14303. shlibpath_overrides_runpath=no
  14304. ;;
  14305. *)
  14306. shlibpath_overrides_runpath=yes
  14307. ;;
  14308. esac
  14309. else
  14310. shlibpath_overrides_runpath=yes
  14311. fi
  14312. ;;
  14313. os2*)
  14314. libname_spec='$name'
  14315. shrext_cmds=".dll"
  14316. need_lib_prefix=no
  14317. library_names_spec='$libname${shared_ext} $libname.a'
  14318. dynamic_linker='OS/2 ld.exe'
  14319. shlibpath_var=LIBPATH
  14320. ;;
  14321. osf3* | osf4* | osf5*)
  14322. version_type=osf
  14323. need_lib_prefix=no
  14324. need_version=no
  14325. soname_spec='${libname}${release}${shared_ext}$major'
  14326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14327. shlibpath_var=LD_LIBRARY_PATH
  14328. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14329. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14330. ;;
  14331. sco3.2v5*)
  14332. version_type=osf
  14333. soname_spec='${libname}${release}${shared_ext}$major'
  14334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14335. shlibpath_var=LD_LIBRARY_PATH
  14336. ;;
  14337. solaris*)
  14338. version_type=linux
  14339. need_lib_prefix=no
  14340. need_version=no
  14341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14342. soname_spec='${libname}${release}${shared_ext}$major'
  14343. shlibpath_var=LD_LIBRARY_PATH
  14344. shlibpath_overrides_runpath=yes
  14345. hardcode_into_libs=yes
  14346. # ldd complains unless libraries are executable
  14347. postinstall_cmds='chmod +x $lib'
  14348. ;;
  14349. sunos4*)
  14350. version_type=sunos
  14351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14352. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14353. shlibpath_var=LD_LIBRARY_PATH
  14354. shlibpath_overrides_runpath=yes
  14355. if test "$with_gnu_ld" = yes; then
  14356. need_lib_prefix=no
  14357. fi
  14358. need_version=yes
  14359. ;;
  14360. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14361. version_type=linux
  14362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14363. soname_spec='${libname}${release}${shared_ext}$major'
  14364. shlibpath_var=LD_LIBRARY_PATH
  14365. case $host_vendor in
  14366. sni)
  14367. shlibpath_overrides_runpath=no
  14368. need_lib_prefix=no
  14369. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14370. runpath_var=LD_RUN_PATH
  14371. ;;
  14372. siemens)
  14373. need_lib_prefix=no
  14374. ;;
  14375. motorola)
  14376. need_lib_prefix=no
  14377. need_version=no
  14378. shlibpath_overrides_runpath=no
  14379. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14380. ;;
  14381. esac
  14382. ;;
  14383. sysv4*MP*)
  14384. if test -d /usr/nec ;then
  14385. version_type=linux
  14386. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14387. soname_spec='$libname${shared_ext}.$major'
  14388. shlibpath_var=LD_LIBRARY_PATH
  14389. fi
  14390. ;;
  14391. uts4*)
  14392. version_type=linux
  14393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14394. soname_spec='${libname}${release}${shared_ext}$major'
  14395. shlibpath_var=LD_LIBRARY_PATH
  14396. ;;
  14397. *)
  14398. dynamic_linker=no
  14399. ;;
  14400. esac
  14401. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14402. echo "${ECHO_T}$dynamic_linker" >&6; }
  14403. test "$dynamic_linker" = no && can_build_shared=no
  14404. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14405. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14406. hardcode_action_F77=
  14407. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14408. test -n "$runpath_var_F77" || \
  14409. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14410. # We can hardcode non-existant directories.
  14411. if test "$hardcode_direct_F77" != no &&
  14412. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14413. # have to relink, otherwise we might link with an installed library
  14414. # when we should be linking with a yet-to-be-installed one
  14415. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14416. test "$hardcode_minus_L_F77" != no; then
  14417. # Linking always hardcodes the temporary library directory.
  14418. hardcode_action_F77=relink
  14419. else
  14420. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14421. hardcode_action_F77=immediate
  14422. fi
  14423. else
  14424. # We cannot hardcode anything, or else we can only hardcode existing
  14425. # directories.
  14426. hardcode_action_F77=unsupported
  14427. fi
  14428. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14429. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14430. if test "$hardcode_action_F77" = relink; then
  14431. # Fast installation is not supported
  14432. enable_fast_install=no
  14433. elif test "$shlibpath_overrides_runpath" = yes ||
  14434. test "$enable_shared" = no; then
  14435. # Fast installation is not necessary
  14436. enable_fast_install=needless
  14437. fi
  14438. striplib=
  14439. old_striplib=
  14440. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  14441. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  14442. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  14443. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14444. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14445. { echo "$as_me:$LINENO: result: yes" >&5
  14446. echo "${ECHO_T}yes" >&6; }
  14447. else
  14448. # FIXME - insert some real tests, host_os isn't really good enough
  14449. case $host_os in
  14450. darwin*)
  14451. if test -n "$STRIP" ; then
  14452. striplib="$STRIP -x"
  14453. { echo "$as_me:$LINENO: result: yes" >&5
  14454. echo "${ECHO_T}yes" >&6; }
  14455. else
  14456. { echo "$as_me:$LINENO: result: no" >&5
  14457. echo "${ECHO_T}no" >&6; }
  14458. fi
  14459. ;;
  14460. *)
  14461. { echo "$as_me:$LINENO: result: no" >&5
  14462. echo "${ECHO_T}no" >&6; }
  14463. ;;
  14464. esac
  14465. fi
  14466. # The else clause should only fire when bootstrapping the
  14467. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14468. # with your package, and you will get complaints that there are
  14469. # no rules to generate ltmain.sh.
  14470. if test -f "$ltmain"; then
  14471. # See if we are running on zsh, and set the options which allow our commands through
  14472. # without removal of \ escapes.
  14473. if test -n "${ZSH_VERSION+set}" ; then
  14474. setopt NO_GLOB_SUBST
  14475. fi
  14476. # Now quote all the things that may contain metacharacters while being
  14477. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14478. # variables and quote the copies for generation of the libtool script.
  14479. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14480. SED SHELL STRIP \
  14481. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14482. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14483. deplibs_check_method reload_flag reload_cmds need_locks \
  14484. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14485. lt_cv_sys_global_symbol_to_c_name_address \
  14486. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14487. old_postinstall_cmds old_postuninstall_cmds \
  14488. compiler_F77 \
  14489. CC_F77 \
  14490. LD_F77 \
  14491. lt_prog_compiler_wl_F77 \
  14492. lt_prog_compiler_pic_F77 \
  14493. lt_prog_compiler_static_F77 \
  14494. lt_prog_compiler_no_builtin_flag_F77 \
  14495. export_dynamic_flag_spec_F77 \
  14496. thread_safe_flag_spec_F77 \
  14497. whole_archive_flag_spec_F77 \
  14498. enable_shared_with_static_runtimes_F77 \
  14499. old_archive_cmds_F77 \
  14500. old_archive_from_new_cmds_F77 \
  14501. predep_objects_F77 \
  14502. postdep_objects_F77 \
  14503. predeps_F77 \
  14504. postdeps_F77 \
  14505. compiler_lib_search_path_F77 \
  14506. archive_cmds_F77 \
  14507. archive_expsym_cmds_F77 \
  14508. postinstall_cmds_F77 \
  14509. postuninstall_cmds_F77 \
  14510. old_archive_from_expsyms_cmds_F77 \
  14511. allow_undefined_flag_F77 \
  14512. no_undefined_flag_F77 \
  14513. export_symbols_cmds_F77 \
  14514. hardcode_libdir_flag_spec_F77 \
  14515. hardcode_libdir_flag_spec_ld_F77 \
  14516. hardcode_libdir_separator_F77 \
  14517. hardcode_automatic_F77 \
  14518. module_cmds_F77 \
  14519. module_expsym_cmds_F77 \
  14520. lt_cv_prog_compiler_c_o_F77 \
  14521. exclude_expsyms_F77 \
  14522. include_expsyms_F77; do
  14523. case $var in
  14524. old_archive_cmds_F77 | \
  14525. old_archive_from_new_cmds_F77 | \
  14526. archive_cmds_F77 | \
  14527. archive_expsym_cmds_F77 | \
  14528. module_cmds_F77 | \
  14529. module_expsym_cmds_F77 | \
  14530. old_archive_from_expsyms_cmds_F77 | \
  14531. export_symbols_cmds_F77 | \
  14532. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14533. postinstall_cmds | postuninstall_cmds | \
  14534. old_postinstall_cmds | old_postuninstall_cmds | \
  14535. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14536. # Double-quote double-evaled strings.
  14537. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14538. ;;
  14539. *)
  14540. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14541. ;;
  14542. esac
  14543. done
  14544. case $lt_echo in
  14545. *'\$0 --fallback-echo"')
  14546. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14547. ;;
  14548. esac
  14549. cfgfile="$ofile"
  14550. cat <<__EOF__ >> "$cfgfile"
  14551. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14552. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14553. # Shell to use when invoking shell scripts.
  14554. SHELL=$lt_SHELL
  14555. # Whether or not to build shared libraries.
  14556. build_libtool_libs=$enable_shared
  14557. # Whether or not to build static libraries.
  14558. build_old_libs=$enable_static
  14559. # Whether or not to add -lc for building shared libraries.
  14560. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14561. # Whether or not to disallow shared libs when runtime libs are static
  14562. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14563. # Whether or not to optimize for fast installation.
  14564. fast_install=$enable_fast_install
  14565. # The host system.
  14566. host_alias=$host_alias
  14567. host=$host
  14568. host_os=$host_os
  14569. # The build system.
  14570. build_alias=$build_alias
  14571. build=$build
  14572. build_os=$build_os
  14573. # An echo program that does not interpret backslashes.
  14574. echo=$lt_echo
  14575. # The archiver.
  14576. AR=$lt_AR
  14577. AR_FLAGS=$lt_AR_FLAGS
  14578. # A C compiler.
  14579. LTCC=$lt_LTCC
  14580. # A language-specific compiler.
  14581. CC=$lt_compiler_F77
  14582. # Is the compiler the GNU C compiler?
  14583. with_gcc=$GCC_F77
  14584. # An ERE matcher.
  14585. EGREP=$lt_EGREP
  14586. # The linker used to build libraries.
  14587. LD=$lt_LD_F77
  14588. # Whether we need hard or soft links.
  14589. LN_S=$lt_LN_S
  14590. # A BSD-compatible nm program.
  14591. NM=$lt_NM
  14592. # A symbol stripping program
  14593. STRIP=$lt_STRIP
  14594. # Used to examine libraries when file_magic_cmd begins "file"
  14595. MAGIC_CMD=$MAGIC_CMD
  14596. # Used on cygwin: DLL creation program.
  14597. DLLTOOL="$DLLTOOL"
  14598. # Used on cygwin: object dumper.
  14599. OBJDUMP="$OBJDUMP"
  14600. # Used on cygwin: assembler.
  14601. AS="$AS"
  14602. # The name of the directory that contains temporary libtool files.
  14603. objdir=$objdir
  14604. # How to create reloadable object files.
  14605. reload_flag=$lt_reload_flag
  14606. reload_cmds=$lt_reload_cmds
  14607. # How to pass a linker flag through the compiler.
  14608. wl=$lt_lt_prog_compiler_wl_F77
  14609. # Object file suffix (normally "o").
  14610. objext="$ac_objext"
  14611. # Old archive suffix (normally "a").
  14612. libext="$libext"
  14613. # Shared library suffix (normally ".so").
  14614. shrext_cmds='$shrext_cmds'
  14615. # Executable file suffix (normally "").
  14616. exeext="$exeext"
  14617. # Additional compiler flags for building library objects.
  14618. pic_flag=$lt_lt_prog_compiler_pic_F77
  14619. pic_mode=$pic_mode
  14620. # What is the maximum length of a command?
  14621. max_cmd_len=$lt_cv_sys_max_cmd_len
  14622. # Does compiler simultaneously support -c and -o options?
  14623. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14624. # Must we lock files when doing compilation?
  14625. need_locks=$lt_need_locks
  14626. # Do we need the lib prefix for modules?
  14627. need_lib_prefix=$need_lib_prefix
  14628. # Do we need a version for libraries?
  14629. need_version=$need_version
  14630. # Whether dlopen is supported.
  14631. dlopen_support=$enable_dlopen
  14632. # Whether dlopen of programs is supported.
  14633. dlopen_self=$enable_dlopen_self
  14634. # Whether dlopen of statically linked programs is supported.
  14635. dlopen_self_static=$enable_dlopen_self_static
  14636. # Compiler flag to prevent dynamic linking.
  14637. link_static_flag=$lt_lt_prog_compiler_static_F77
  14638. # Compiler flag to turn off builtin functions.
  14639. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14640. # Compiler flag to allow reflexive dlopens.
  14641. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14642. # Compiler flag to generate shared objects directly from archives.
  14643. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14644. # Compiler flag to generate thread-safe objects.
  14645. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14646. # Library versioning type.
  14647. version_type=$version_type
  14648. # Format of library name prefix.
  14649. libname_spec=$lt_libname_spec
  14650. # List of archive names. First name is the real one, the rest are links.
  14651. # The last name is the one that the linker finds with -lNAME.
  14652. library_names_spec=$lt_library_names_spec
  14653. # The coded name of the library, if different from the real name.
  14654. soname_spec=$lt_soname_spec
  14655. # Commands used to build and install an old-style archive.
  14656. RANLIB=$lt_RANLIB
  14657. old_archive_cmds=$lt_old_archive_cmds_F77
  14658. old_postinstall_cmds=$lt_old_postinstall_cmds
  14659. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14660. # Create an old-style archive from a shared archive.
  14661. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14662. # Create a temporary old-style archive to link instead of a shared archive.
  14663. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14664. # Commands used to build and install a shared archive.
  14665. archive_cmds=$lt_archive_cmds_F77
  14666. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14667. postinstall_cmds=$lt_postinstall_cmds
  14668. postuninstall_cmds=$lt_postuninstall_cmds
  14669. # Commands used to build a loadable module (assumed same as above if empty)
  14670. module_cmds=$lt_module_cmds_F77
  14671. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14672. # Commands to strip libraries.
  14673. old_striplib=$lt_old_striplib
  14674. striplib=$lt_striplib
  14675. # Dependencies to place before the objects being linked to create a
  14676. # shared library.
  14677. predep_objects=$lt_predep_objects_F77
  14678. # Dependencies to place after the objects being linked to create a
  14679. # shared library.
  14680. postdep_objects=$lt_postdep_objects_F77
  14681. # Dependencies to place before the objects being linked to create a
  14682. # shared library.
  14683. predeps=$lt_predeps_F77
  14684. # Dependencies to place after the objects being linked to create a
  14685. # shared library.
  14686. postdeps=$lt_postdeps_F77
  14687. # The library search path used internally by the compiler when linking
  14688. # a shared library.
  14689. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14690. # Method to check whether dependent libraries are shared objects.
  14691. deplibs_check_method=$lt_deplibs_check_method
  14692. # Command to use when deplibs_check_method == file_magic.
  14693. file_magic_cmd=$lt_file_magic_cmd
  14694. # Flag that allows shared libraries with undefined symbols to be built.
  14695. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14696. # Flag that forces no undefined symbols.
  14697. no_undefined_flag=$lt_no_undefined_flag_F77
  14698. # Commands used to finish a libtool library installation in a directory.
  14699. finish_cmds=$lt_finish_cmds
  14700. # Same as above, but a single script fragment to be evaled but not shown.
  14701. finish_eval=$lt_finish_eval
  14702. # Take the output of nm and produce a listing of raw symbols and C names.
  14703. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14704. # Transform the output of nm in a proper C declaration
  14705. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14706. # Transform the output of nm in a C name address pair
  14707. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14708. # This is the shared library runtime path variable.
  14709. runpath_var=$runpath_var
  14710. # This is the shared library path variable.
  14711. shlibpath_var=$shlibpath_var
  14712. # Is shlibpath searched before the hard-coded library search path?
  14713. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14714. # How to hardcode a shared library path into an executable.
  14715. hardcode_action=$hardcode_action_F77
  14716. # Whether we should hardcode library paths into libraries.
  14717. hardcode_into_libs=$hardcode_into_libs
  14718. # Flag to hardcode \$libdir into a binary during linking.
  14719. # This must work even if \$libdir does not exist.
  14720. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14721. # If ld is used when linking, flag to hardcode \$libdir into
  14722. # a binary during linking. This must work even if \$libdir does
  14723. # not exist.
  14724. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14725. # Whether we need a single -rpath flag with a separated argument.
  14726. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14727. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14728. # resulting binary.
  14729. hardcode_direct=$hardcode_direct_F77
  14730. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14731. # resulting binary.
  14732. hardcode_minus_L=$hardcode_minus_L_F77
  14733. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14734. # the resulting binary.
  14735. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14736. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14737. # and all subsequent libraries and executables linked against it.
  14738. hardcode_automatic=$hardcode_automatic_F77
  14739. # Variables whose values should be saved in libtool wrapper scripts and
  14740. # restored at relink time.
  14741. variables_saved_for_relink="$variables_saved_for_relink"
  14742. # Whether libtool must link a program against all its dependency libraries.
  14743. link_all_deplibs=$link_all_deplibs_F77
  14744. # Compile-time system search path for libraries
  14745. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14746. # Run-time system search path for libraries
  14747. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14748. # Fix the shell variable \$srcfile for the compiler.
  14749. fix_srcfile_path="$fix_srcfile_path_F77"
  14750. # Set to yes if exported symbols are required.
  14751. always_export_symbols=$always_export_symbols_F77
  14752. # The commands to list exported symbols.
  14753. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14754. # The commands to extract the exported symbol list from a shared archive.
  14755. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14756. # Symbols that should not be listed in the preloaded symbols.
  14757. exclude_expsyms=$lt_exclude_expsyms_F77
  14758. # Symbols that must always be exported.
  14759. include_expsyms=$lt_include_expsyms_F77
  14760. # ### END LIBTOOL TAG CONFIG: $tagname
  14761. __EOF__
  14762. else
  14763. # If there is no Makefile yet, we rely on a make rule to execute
  14764. # `config.status --recheck' to rerun these tests and create the
  14765. # libtool script then.
  14766. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14767. if test -f "$ltmain_in"; then
  14768. test -f Makefile && make "$ltmain"
  14769. fi
  14770. fi
  14771. ac_ext=c
  14772. ac_cpp='$CPP $CPPFLAGS'
  14773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14776. CC="$lt_save_CC"
  14777. else
  14778. tagname=""
  14779. fi
  14780. ;;
  14781. GCJ)
  14782. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14783. # Source file extension for Java test sources.
  14784. ac_ext=java
  14785. # Object file extension for compiled Java test sources.
  14786. objext=o
  14787. objext_GCJ=$objext
  14788. # Code to be used in simple compile tests
  14789. lt_simple_compile_test_code="class foo {}\n"
  14790. # Code to be used in simple link tests
  14791. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14792. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14793. # If no C compiler was specified, use CC.
  14794. LTCC=${LTCC-"$CC"}
  14795. # Allow CC to be a program name with arguments.
  14796. compiler=$CC
  14797. # save warnings/boilerplate of simple test code
  14798. ac_outfile=conftest.$ac_objext
  14799. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14800. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14801. _lt_compiler_boilerplate=`cat conftest.err`
  14802. $rm conftest*
  14803. ac_outfile=conftest.$ac_objext
  14804. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14805. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14806. _lt_linker_boilerplate=`cat conftest.err`
  14807. $rm conftest*
  14808. # Allow CC to be a program name with arguments.
  14809. lt_save_CC="$CC"
  14810. CC=${GCJ-"gcj"}
  14811. compiler=$CC
  14812. compiler_GCJ=$CC
  14813. for cc_temp in $compiler""; do
  14814. case $cc_temp in
  14815. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14816. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14817. \-*) ;;
  14818. *) break;;
  14819. esac
  14820. done
  14821. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14822. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14823. archive_cmds_need_lc_GCJ=no
  14824. old_archive_cmds_GCJ=$old_archive_cmds
  14825. lt_prog_compiler_no_builtin_flag_GCJ=
  14826. if test "$GCC" = yes; then
  14827. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14828. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14829. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14830. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14831. echo $ECHO_N "(cached) $ECHO_C" >&6
  14832. else
  14833. lt_cv_prog_compiler_rtti_exceptions=no
  14834. ac_outfile=conftest.$ac_objext
  14835. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14836. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14837. # Insert the option either (1) after the last *FLAGS variable, or
  14838. # (2) before a word containing "conftest.", or (3) at the end.
  14839. # Note that $ac_compile itself does not contain backslashes and begins
  14840. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14841. # The option is referenced via a variable to avoid confusing sed.
  14842. lt_compile=`echo "$ac_compile" | $SED \
  14843. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14844. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14845. -e 's:$: $lt_compiler_flag:'`
  14846. (eval echo "\"\$as_me:16650: $lt_compile\"" >&5)
  14847. (eval "$lt_compile" 2>conftest.err)
  14848. ac_status=$?
  14849. cat conftest.err >&5
  14850. echo "$as_me:16654: \$? = $ac_status" >&5
  14851. if (exit $ac_status) && test -s "$ac_outfile"; then
  14852. # The compiler can only warn and ignore the option if not recognized
  14853. # So say no if there are warnings other than the usual output.
  14854. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  14855. $SED '/^$/d' conftest.err >conftest.er2
  14856. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  14857. lt_cv_prog_compiler_rtti_exceptions=yes
  14858. fi
  14859. fi
  14860. $rm conftest*
  14861. fi
  14862. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14863. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14864. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14865. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14866. else
  14867. :
  14868. fi
  14869. fi
  14870. lt_prog_compiler_wl_GCJ=
  14871. lt_prog_compiler_pic_GCJ=
  14872. lt_prog_compiler_static_GCJ=
  14873. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14874. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14875. if test "$GCC" = yes; then
  14876. lt_prog_compiler_wl_GCJ='-Wl,'
  14877. lt_prog_compiler_static_GCJ='-static'
  14878. case $host_os in
  14879. aix*)
  14880. # All AIX code is PIC.
  14881. if test "$host_cpu" = ia64; then
  14882. # AIX 5 now supports IA64 processor
  14883. lt_prog_compiler_static_GCJ='-Bstatic'
  14884. fi
  14885. ;;
  14886. amigaos*)
  14887. # FIXME: we need at least 68020 code to build shared libraries, but
  14888. # adding the `-m68020' flag to GCC prevents building anything better,
  14889. # like `-m68040'.
  14890. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14891. ;;
  14892. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14893. # PIC is the default for these OSes.
  14894. ;;
  14895. mingw* | pw32* | os2*)
  14896. # This hack is so that the source file can tell whether it is being
  14897. # built for inclusion in a dll (and should export symbols for example).
  14898. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14899. ;;
  14900. darwin* | rhapsody*)
  14901. # PIC is the default on this platform
  14902. # Common symbols not allowed in MH_DYLIB files
  14903. lt_prog_compiler_pic_GCJ='-fno-common'
  14904. ;;
  14905. msdosdjgpp*)
  14906. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14907. # on systems that don't support them.
  14908. lt_prog_compiler_can_build_shared_GCJ=no
  14909. enable_shared=no
  14910. ;;
  14911. sysv4*MP*)
  14912. if test -d /usr/nec; then
  14913. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14914. fi
  14915. ;;
  14916. hpux*)
  14917. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14918. # not for PA HP-UX.
  14919. case "$host_cpu" in
  14920. hppa*64*|ia64*)
  14921. # +Z the default
  14922. ;;
  14923. *)
  14924. lt_prog_compiler_pic_GCJ='-fPIC'
  14925. ;;
  14926. esac
  14927. ;;
  14928. *)
  14929. lt_prog_compiler_pic_GCJ='-fPIC'
  14930. ;;
  14931. esac
  14932. else
  14933. # PORTME Check for flag to pass linker flags through the system compiler.
  14934. case $host_os in
  14935. aix*)
  14936. lt_prog_compiler_wl_GCJ='-Wl,'
  14937. if test "$host_cpu" = ia64; then
  14938. # AIX 5 now supports IA64 processor
  14939. lt_prog_compiler_static_GCJ='-Bstatic'
  14940. else
  14941. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14942. fi
  14943. ;;
  14944. darwin*)
  14945. # PIC is the default on this platform
  14946. # Common symbols not allowed in MH_DYLIB files
  14947. case $cc_basename in
  14948. xlc*)
  14949. lt_prog_compiler_pic_GCJ='-qnocommon'
  14950. lt_prog_compiler_wl_GCJ='-Wl,'
  14951. ;;
  14952. esac
  14953. ;;
  14954. mingw* | pw32* | os2*)
  14955. # This hack is so that the source file can tell whether it is being
  14956. # built for inclusion in a dll (and should export symbols for example).
  14957. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14958. ;;
  14959. hpux9* | hpux10* | hpux11*)
  14960. lt_prog_compiler_wl_GCJ='-Wl,'
  14961. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14962. # not for PA HP-UX.
  14963. case "$host_cpu" in
  14964. hppa*64*|ia64*)
  14965. # +Z the default
  14966. ;;
  14967. *)
  14968. lt_prog_compiler_pic_GCJ='+Z'
  14969. ;;
  14970. esac
  14971. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14972. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14973. ;;
  14974. irix5* | irix6* | nonstopux*)
  14975. lt_prog_compiler_wl_GCJ='-Wl,'
  14976. # PIC (with -KPIC) is the default.
  14977. lt_prog_compiler_static_GCJ='-non_shared'
  14978. ;;
  14979. newsos6)
  14980. lt_prog_compiler_pic_GCJ='-KPIC'
  14981. lt_prog_compiler_static_GCJ='-Bstatic'
  14982. ;;
  14983. linux*)
  14984. case $cc_basename in
  14985. icc* | ecc*)
  14986. lt_prog_compiler_wl_GCJ='-Wl,'
  14987. lt_prog_compiler_pic_GCJ='-KPIC'
  14988. lt_prog_compiler_static_GCJ='-static'
  14989. ;;
  14990. pgcc* | pgf77* | pgf90*)
  14991. # Portland Group compilers (*not* the Pentium gcc compiler,
  14992. # which looks to be a dead project)
  14993. lt_prog_compiler_wl_GCJ='-Wl,'
  14994. lt_prog_compiler_pic_GCJ='-fpic'
  14995. lt_prog_compiler_static_GCJ='-static'
  14996. ;;
  14997. ccc*)
  14998. lt_prog_compiler_wl_GCJ='-Wl,'
  14999. # All Alpha code is PIC.
  15000. lt_prog_compiler_static_GCJ='-non_shared'
  15001. ;;
  15002. esac
  15003. ;;
  15004. osf3* | osf4* | osf5*)
  15005. lt_prog_compiler_wl_GCJ='-Wl,'
  15006. # All OSF/1 code is PIC.
  15007. lt_prog_compiler_static_GCJ='-non_shared'
  15008. ;;
  15009. sco3.2v5*)
  15010. lt_prog_compiler_pic_GCJ='-Kpic'
  15011. lt_prog_compiler_static_GCJ='-dn'
  15012. ;;
  15013. solaris*)
  15014. lt_prog_compiler_pic_GCJ='-KPIC'
  15015. lt_prog_compiler_static_GCJ='-Bstatic'
  15016. case $cc_basename in
  15017. f77* | f90* | f95*)
  15018. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15019. *)
  15020. lt_prog_compiler_wl_GCJ='-Wl,';;
  15021. esac
  15022. ;;
  15023. sunos4*)
  15024. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15025. lt_prog_compiler_pic_GCJ='-PIC'
  15026. lt_prog_compiler_static_GCJ='-Bstatic'
  15027. ;;
  15028. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15029. lt_prog_compiler_wl_GCJ='-Wl,'
  15030. lt_prog_compiler_pic_GCJ='-KPIC'
  15031. lt_prog_compiler_static_GCJ='-Bstatic'
  15032. ;;
  15033. sysv4*MP*)
  15034. if test -d /usr/nec ;then
  15035. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15036. lt_prog_compiler_static_GCJ='-Bstatic'
  15037. fi
  15038. ;;
  15039. unicos*)
  15040. lt_prog_compiler_wl_GCJ='-Wl,'
  15041. lt_prog_compiler_can_build_shared_GCJ=no
  15042. ;;
  15043. uts4*)
  15044. lt_prog_compiler_pic_GCJ='-pic'
  15045. lt_prog_compiler_static_GCJ='-Bstatic'
  15046. ;;
  15047. *)
  15048. lt_prog_compiler_can_build_shared_GCJ=no
  15049. ;;
  15050. esac
  15051. fi
  15052. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15053. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15054. #
  15055. # Check to make sure the PIC flag actually works.
  15056. #
  15057. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15058. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15059. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15060. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15061. echo $ECHO_N "(cached) $ECHO_C" >&6
  15062. else
  15063. lt_prog_compiler_pic_works_GCJ=no
  15064. ac_outfile=conftest.$ac_objext
  15065. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15066. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15067. # Insert the option either (1) after the last *FLAGS variable, or
  15068. # (2) before a word containing "conftest.", or (3) at the end.
  15069. # Note that $ac_compile itself does not contain backslashes and begins
  15070. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15071. # The option is referenced via a variable to avoid confusing sed.
  15072. lt_compile=`echo "$ac_compile" | $SED \
  15073. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15074. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15075. -e 's:$: $lt_compiler_flag:'`
  15076. (eval echo "\"\$as_me:16912: $lt_compile\"" >&5)
  15077. (eval "$lt_compile" 2>conftest.err)
  15078. ac_status=$?
  15079. cat conftest.err >&5
  15080. echo "$as_me:16916: \$? = $ac_status" >&5
  15081. if (exit $ac_status) && test -s "$ac_outfile"; then
  15082. # The compiler can only warn and ignore the option if not recognized
  15083. # So say no if there are warnings other than the usual output.
  15084. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  15085. $SED '/^$/d' conftest.err >conftest.er2
  15086. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  15087. lt_prog_compiler_pic_works_GCJ=yes
  15088. fi
  15089. fi
  15090. $rm conftest*
  15091. fi
  15092. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15093. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15094. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15095. case $lt_prog_compiler_pic_GCJ in
  15096. "" | " "*) ;;
  15097. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15098. esac
  15099. else
  15100. lt_prog_compiler_pic_GCJ=
  15101. lt_prog_compiler_can_build_shared_GCJ=no
  15102. fi
  15103. fi
  15104. case "$host_os" in
  15105. # For platforms which do not support PIC, -DPIC is meaningless:
  15106. *djgpp*)
  15107. lt_prog_compiler_pic_GCJ=
  15108. ;;
  15109. *)
  15110. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15111. ;;
  15112. esac
  15113. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15114. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15115. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15116. echo $ECHO_N "(cached) $ECHO_C" >&6
  15117. else
  15118. lt_cv_prog_compiler_c_o_GCJ=no
  15119. $rm -r conftest 2>/dev/null
  15120. mkdir conftest
  15121. cd conftest
  15122. mkdir out
  15123. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15124. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15125. # Insert the option either (1) after the last *FLAGS variable, or
  15126. # (2) before a word containing "conftest.", or (3) at the end.
  15127. # Note that $ac_compile itself does not contain backslashes and begins
  15128. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15129. lt_compile=`echo "$ac_compile" | $SED \
  15130. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15131. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15132. -e 's:$: $lt_compiler_flag:'`
  15133. (eval echo "\"\$as_me:16974: $lt_compile\"" >&5)
  15134. (eval "$lt_compile" 2>out/conftest.err)
  15135. ac_status=$?
  15136. cat out/conftest.err >&5
  15137. echo "$as_me:16978: \$? = $ac_status" >&5
  15138. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15139. then
  15140. # The compiler can only warn and ignore the option if not recognized
  15141. # So say no if there are warnings
  15142. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  15143. $SED '/^$/d' out/conftest.err >out/conftest.er2
  15144. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15145. lt_cv_prog_compiler_c_o_GCJ=yes
  15146. fi
  15147. fi
  15148. chmod u+w .
  15149. $rm conftest*
  15150. # SGI C++ compiler will create directory out/ii_files/ for
  15151. # template instantiation
  15152. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15153. $rm out/* && rmdir out
  15154. cd ..
  15155. rmdir conftest
  15156. $rm conftest*
  15157. fi
  15158. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15159. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15160. hard_links="nottested"
  15161. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15162. # do not overwrite the value of need_locks provided by the user
  15163. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15164. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15165. hard_links=yes
  15166. $rm conftest*
  15167. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15168. touch conftest.a
  15169. ln conftest.a conftest.b 2>&5 || hard_links=no
  15170. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15171. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15172. echo "${ECHO_T}$hard_links" >&6; }
  15173. if test "$hard_links" = no; then
  15174. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15175. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15176. need_locks=warn
  15177. fi
  15178. else
  15179. need_locks=no
  15180. fi
  15181. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15182. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15183. runpath_var=
  15184. allow_undefined_flag_GCJ=
  15185. enable_shared_with_static_runtimes_GCJ=no
  15186. archive_cmds_GCJ=
  15187. archive_expsym_cmds_GCJ=
  15188. old_archive_From_new_cmds_GCJ=
  15189. old_archive_from_expsyms_cmds_GCJ=
  15190. export_dynamic_flag_spec_GCJ=
  15191. whole_archive_flag_spec_GCJ=
  15192. thread_safe_flag_spec_GCJ=
  15193. hardcode_libdir_flag_spec_GCJ=
  15194. hardcode_libdir_flag_spec_ld_GCJ=
  15195. hardcode_libdir_separator_GCJ=
  15196. hardcode_direct_GCJ=no
  15197. hardcode_minus_L_GCJ=no
  15198. hardcode_shlibpath_var_GCJ=unsupported
  15199. link_all_deplibs_GCJ=unknown
  15200. hardcode_automatic_GCJ=no
  15201. module_cmds_GCJ=
  15202. module_expsym_cmds_GCJ=
  15203. always_export_symbols_GCJ=no
  15204. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15205. # include_expsyms should be a list of space-separated symbols to be *always*
  15206. # included in the symbol list
  15207. include_expsyms_GCJ=
  15208. # exclude_expsyms can be an extended regexp of symbols to exclude
  15209. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15210. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15211. # as well as any symbol that contains `d'.
  15212. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15213. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15214. # platforms (ab)use it in PIC code, but their linkers get confused if
  15215. # the symbol is explicitly referenced. Since portable code cannot
  15216. # rely on this symbol name, it's probably fine to never include it in
  15217. # preloaded symbol tables.
  15218. extract_expsyms_cmds=
  15219. # Just being paranoid about ensuring that cc_basename is set.
  15220. for cc_temp in $compiler""; do
  15221. case $cc_temp in
  15222. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15223. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15224. \-*) ;;
  15225. *) break;;
  15226. esac
  15227. done
  15228. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15229. case $host_os in
  15230. cygwin* | mingw* | pw32*)
  15231. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15232. # When not using gcc, we currently assume that we are using
  15233. # Microsoft Visual C++.
  15234. if test "$GCC" != yes; then
  15235. with_gnu_ld=no
  15236. fi
  15237. ;;
  15238. openbsd*)
  15239. with_gnu_ld=no
  15240. ;;
  15241. esac
  15242. ld_shlibs_GCJ=yes
  15243. if test "$with_gnu_ld" = yes; then
  15244. # If archive_cmds runs LD, not CC, wlarc should be empty
  15245. wlarc='${wl}'
  15246. # Set some defaults for GNU ld with shared library support. These
  15247. # are reset later if shared libraries are not supported. Putting them
  15248. # here allows them to be overridden if necessary.
  15249. runpath_var=LD_RUN_PATH
  15250. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15251. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15252. # ancient GNU ld didn't support --whole-archive et. al.
  15253. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15254. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15255. else
  15256. whole_archive_flag_spec_GCJ=
  15257. fi
  15258. supports_anon_versioning=no
  15259. case `$LD -v 2>/dev/null` in
  15260. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15261. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15262. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15263. *\ 2.11.*) ;; # other 2.11 versions
  15264. *) supports_anon_versioning=yes ;;
  15265. esac
  15266. # See if GNU ld supports shared libraries.
  15267. case $host_os in
  15268. aix3* | aix4* | aix5*)
  15269. # On AIX/PPC, the GNU linker is very broken
  15270. if test "$host_cpu" != ia64; then
  15271. ld_shlibs_GCJ=no
  15272. cat <<EOF 1>&2
  15273. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15274. *** to be unable to reliably create shared libraries on AIX.
  15275. *** Therefore, libtool is disabling shared libraries support. If you
  15276. *** really care for shared libraries, you may want to modify your PATH
  15277. *** so that a non-GNU linker is found, and then restart.
  15278. EOF
  15279. fi
  15280. ;;
  15281. amigaos*)
  15282. 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)'
  15283. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15284. hardcode_minus_L_GCJ=yes
  15285. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15286. # that the semantics of dynamic libraries on AmigaOS, at least up
  15287. # to version 4, is to share data among multiple programs linked
  15288. # with the same dynamic library. Since this doesn't match the
  15289. # behavior of shared libraries on other platforms, we can't use
  15290. # them.
  15291. ld_shlibs_GCJ=no
  15292. ;;
  15293. beos*)
  15294. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15295. allow_undefined_flag_GCJ=unsupported
  15296. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15297. # support --undefined. This deserves some investigation. FIXME
  15298. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15299. else
  15300. ld_shlibs_GCJ=no
  15301. fi
  15302. ;;
  15303. cygwin* | mingw* | pw32*)
  15304. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15305. # as there is no search path for DLLs.
  15306. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15307. allow_undefined_flag_GCJ=unsupported
  15308. always_export_symbols_GCJ=no
  15309. enable_shared_with_static_runtimes_GCJ=yes
  15310. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15311. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15312. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15313. # If the export-symbols file already is a .def file (1st line
  15314. # is EXPORTS), use it as is; otherwise, prepend...
  15315. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15316. cp $export_symbols $output_objdir/$soname.def;
  15317. else
  15318. echo EXPORTS > $output_objdir/$soname.def;
  15319. cat $export_symbols >> $output_objdir/$soname.def;
  15320. fi~
  15321. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15322. else
  15323. ld_shlibs_GCJ=no
  15324. fi
  15325. ;;
  15326. linux*)
  15327. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15328. tmp_addflag=
  15329. case $cc_basename,$host_cpu in
  15330. pgcc*) # Portland Group C compiler
  15331. 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'
  15332. tmp_addflag=' $pic_flag'
  15333. ;;
  15334. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  15335. 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'
  15336. tmp_addflag=' $pic_flag -Mnomain' ;;
  15337. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15338. tmp_addflag=' -i_dynamic' ;;
  15339. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15340. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15341. ifc* | ifort*) # Intel Fortran compiler
  15342. tmp_addflag=' -nofor_main' ;;
  15343. esac
  15344. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15345. if test $supports_anon_versioning = yes; then
  15346. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15347. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15348. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15349. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15350. fi
  15351. else
  15352. ld_shlibs_GCJ=no
  15353. fi
  15354. ;;
  15355. netbsd*)
  15356. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15357. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15358. wlarc=
  15359. else
  15360. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15361. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15362. fi
  15363. ;;
  15364. solaris* | sysv5*)
  15365. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15366. ld_shlibs_GCJ=no
  15367. cat <<EOF 1>&2
  15368. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15369. *** create shared libraries on Solaris systems. Therefore, libtool
  15370. *** is disabling shared libraries support. We urge you to upgrade GNU
  15371. *** binutils to release 2.9.1 or newer. Another option is to modify
  15372. *** your PATH or compiler configuration so that the native linker is
  15373. *** used, and then restart.
  15374. EOF
  15375. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15376. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15377. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15378. else
  15379. ld_shlibs_GCJ=no
  15380. fi
  15381. ;;
  15382. sunos4*)
  15383. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15384. wlarc=
  15385. hardcode_direct_GCJ=yes
  15386. hardcode_shlibpath_var_GCJ=no
  15387. ;;
  15388. *)
  15389. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15390. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15391. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15392. else
  15393. ld_shlibs_GCJ=no
  15394. fi
  15395. ;;
  15396. esac
  15397. if test "$ld_shlibs_GCJ" = no; then
  15398. runpath_var=
  15399. hardcode_libdir_flag_spec_GCJ=
  15400. export_dynamic_flag_spec_GCJ=
  15401. whole_archive_flag_spec_GCJ=
  15402. fi
  15403. else
  15404. # PORTME fill in a description of your system's linker (not GNU ld)
  15405. case $host_os in
  15406. aix3*)
  15407. allow_undefined_flag_GCJ=unsupported
  15408. always_export_symbols_GCJ=yes
  15409. 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'
  15410. # Note: this linker hardcodes the directories in LIBPATH if there
  15411. # are no directories specified by -L.
  15412. hardcode_minus_L_GCJ=yes
  15413. if test "$GCC" = yes && test -z "$link_static_flag"; then
  15414. # Neither direct hardcoding nor static linking is supported with a
  15415. # broken collect2.
  15416. hardcode_direct_GCJ=unsupported
  15417. fi
  15418. ;;
  15419. aix4* | aix5*)
  15420. if test "$host_cpu" = ia64; then
  15421. # On IA64, the linker does run time linking by default, so we don't
  15422. # have to do anything special.
  15423. aix_use_runtimelinking=no
  15424. exp_sym_flag='-Bexport'
  15425. no_entry_flag=""
  15426. else
  15427. # If we're using GNU nm, then we don't want the "-C" option.
  15428. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15429. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15430. 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'
  15431. else
  15432. 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'
  15433. fi
  15434. aix_use_runtimelinking=no
  15435. # Test if we are trying to use run time linking or normal
  15436. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15437. # need to do runtime linking.
  15438. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15439. for ld_flag in $LDFLAGS; do
  15440. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15441. aix_use_runtimelinking=yes
  15442. break
  15443. fi
  15444. done
  15445. esac
  15446. exp_sym_flag='-bexport'
  15447. no_entry_flag='-bnoentry'
  15448. fi
  15449. # When large executables or shared objects are built, AIX ld can
  15450. # have problems creating the table of contents. If linking a library
  15451. # or program results in "error TOC overflow" add -mminimal-toc to
  15452. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15453. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15454. archive_cmds_GCJ=''
  15455. hardcode_direct_GCJ=yes
  15456. hardcode_libdir_separator_GCJ=':'
  15457. link_all_deplibs_GCJ=yes
  15458. if test "$GCC" = yes; then
  15459. case $host_os in aix4.[012]|aix4.[012].*)
  15460. # We only want to do this on AIX 4.2 and lower, the check
  15461. # below for broken collect2 doesn't work under 4.3+
  15462. collect2name=`${CC} -print-prog-name=collect2`
  15463. if test -f "$collect2name" && \
  15464. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15465. then
  15466. # We have reworked collect2
  15467. hardcode_direct_GCJ=yes
  15468. else
  15469. # We have old collect2
  15470. hardcode_direct_GCJ=unsupported
  15471. # It fails to find uninstalled libraries when the uninstalled
  15472. # path is not listed in the libpath. Setting hardcode_minus_L
  15473. # to unsupported forces relinking
  15474. hardcode_minus_L_GCJ=yes
  15475. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15476. hardcode_libdir_separator_GCJ=
  15477. fi
  15478. esac
  15479. shared_flag='-shared'
  15480. if test "$aix_use_runtimelinking" = yes; then
  15481. shared_flag="$shared_flag "'${wl}-G'
  15482. fi
  15483. else
  15484. # not using gcc
  15485. if test "$host_cpu" = ia64; then
  15486. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15487. # chokes on -Wl,-G. The following line is correct:
  15488. shared_flag='-G'
  15489. else
  15490. if test "$aix_use_runtimelinking" = yes; then
  15491. shared_flag='${wl}-G'
  15492. else
  15493. shared_flag='${wl}-bM:SRE'
  15494. fi
  15495. fi
  15496. fi
  15497. # It seems that -bexpall does not export symbols beginning with
  15498. # underscore (_), so it is better to generate a list of symbols to export.
  15499. always_export_symbols_GCJ=yes
  15500. if test "$aix_use_runtimelinking" = yes; then
  15501. # Warning - without using the other runtime loading flags (-brtl),
  15502. # -berok will link without error, but may produce a broken library.
  15503. allow_undefined_flag_GCJ='-berok'
  15504. # Determine the default libpath from the value encoded in an empty executable.
  15505. cat >conftest.$ac_ext <<_ACEOF
  15506. /* confdefs.h. */
  15507. _ACEOF
  15508. cat confdefs.h >>conftest.$ac_ext
  15509. cat >>conftest.$ac_ext <<_ACEOF
  15510. /* end confdefs.h. */
  15511. int
  15512. main ()
  15513. {
  15514. ;
  15515. return 0;
  15516. }
  15517. _ACEOF
  15518. rm -f conftest.$ac_objext conftest$ac_exeext
  15519. if { (ac_try="$ac_link"
  15520. case "(($ac_try" in
  15521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15522. *) ac_try_echo=$ac_try;;
  15523. esac
  15524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15525. (eval "$ac_link") 2>conftest.er1
  15526. ac_status=$?
  15527. grep -v '^ *+' conftest.er1 >conftest.err
  15528. rm -f conftest.er1
  15529. cat conftest.err >&5
  15530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15531. (exit $ac_status); } && {
  15532. test -z "$ac_c_werror_flag" ||
  15533. test ! -s conftest.err
  15534. } && test -s conftest$ac_exeext &&
  15535. $as_test_x conftest$ac_exeext; then
  15536. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15537. }'`
  15538. # Check for a 64-bit object if we didn't find anything.
  15539. 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; }
  15540. }'`; fi
  15541. else
  15542. echo "$as_me: failed program was:" >&5
  15543. sed 's/^/| /' conftest.$ac_ext >&5
  15544. fi
  15545. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15546. conftest$ac_exeext conftest.$ac_ext
  15547. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15548. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15549. 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"
  15550. else
  15551. if test "$host_cpu" = ia64; then
  15552. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15553. allow_undefined_flag_GCJ="-z nodefs"
  15554. 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"
  15555. else
  15556. # Determine the default libpath from the value encoded in an empty executable.
  15557. cat >conftest.$ac_ext <<_ACEOF
  15558. /* confdefs.h. */
  15559. _ACEOF
  15560. cat confdefs.h >>conftest.$ac_ext
  15561. cat >>conftest.$ac_ext <<_ACEOF
  15562. /* end confdefs.h. */
  15563. int
  15564. main ()
  15565. {
  15566. ;
  15567. return 0;
  15568. }
  15569. _ACEOF
  15570. rm -f conftest.$ac_objext conftest$ac_exeext
  15571. if { (ac_try="$ac_link"
  15572. case "(($ac_try" in
  15573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15574. *) ac_try_echo=$ac_try;;
  15575. esac
  15576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15577. (eval "$ac_link") 2>conftest.er1
  15578. ac_status=$?
  15579. grep -v '^ *+' conftest.er1 >conftest.err
  15580. rm -f conftest.er1
  15581. cat conftest.err >&5
  15582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15583. (exit $ac_status); } && {
  15584. test -z "$ac_c_werror_flag" ||
  15585. test ! -s conftest.err
  15586. } && test -s conftest$ac_exeext &&
  15587. $as_test_x conftest$ac_exeext; then
  15588. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15589. }'`
  15590. # Check for a 64-bit object if we didn't find anything.
  15591. 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; }
  15592. }'`; fi
  15593. else
  15594. echo "$as_me: failed program was:" >&5
  15595. sed 's/^/| /' conftest.$ac_ext >&5
  15596. fi
  15597. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15598. conftest$ac_exeext conftest.$ac_ext
  15599. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15600. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15601. # Warning - without using the other run time loading flags,
  15602. # -berok will link without error, but may produce a broken library.
  15603. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15604. allow_undefined_flag_GCJ=' ${wl}-berok'
  15605. # -bexpall does not export symbols beginning with underscore (_)
  15606. always_export_symbols_GCJ=yes
  15607. # Exported symbols can be pulled into shared objects from archives
  15608. whole_archive_flag_spec_GCJ=' '
  15609. archive_cmds_need_lc_GCJ=yes
  15610. # This is similar to how AIX traditionally builds it's shared libraries.
  15611. 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'
  15612. fi
  15613. fi
  15614. ;;
  15615. amigaos*)
  15616. 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)'
  15617. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15618. hardcode_minus_L_GCJ=yes
  15619. # see comment about different semantics on the GNU ld section
  15620. ld_shlibs_GCJ=no
  15621. ;;
  15622. bsdi[45]*)
  15623. export_dynamic_flag_spec_GCJ=-rdynamic
  15624. ;;
  15625. cygwin* | mingw* | pw32*)
  15626. # When not using gcc, we currently assume that we are using
  15627. # Microsoft Visual C++.
  15628. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15629. # no search path for DLLs.
  15630. hardcode_libdir_flag_spec_GCJ=' '
  15631. allow_undefined_flag_GCJ=unsupported
  15632. # Tell ltmain to make .lib files, not .a files.
  15633. libext=lib
  15634. # Tell ltmain to make .dll files, not .so files.
  15635. shrext_cmds=".dll"
  15636. # FIXME: Setting linknames here is a bad hack.
  15637. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15638. # The linker will automatically build a .lib file if we build a DLL.
  15639. old_archive_From_new_cmds_GCJ='true'
  15640. # FIXME: Should let the user specify the lib program.
  15641. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15642. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15643. enable_shared_with_static_runtimes_GCJ=yes
  15644. ;;
  15645. darwin* | rhapsody*)
  15646. case "$host_os" in
  15647. rhapsody* | darwin1.[012])
  15648. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15649. ;;
  15650. *) # Darwin 1.3 on
  15651. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15652. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15653. else
  15654. case ${MACOSX_DEPLOYMENT_TARGET} in
  15655. 10.[012])
  15656. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15657. ;;
  15658. 10.*)
  15659. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15660. ;;
  15661. esac
  15662. fi
  15663. ;;
  15664. esac
  15665. archive_cmds_need_lc_GCJ=no
  15666. hardcode_direct_GCJ=no
  15667. hardcode_automatic_GCJ=yes
  15668. hardcode_shlibpath_var_GCJ=unsupported
  15669. whole_archive_flag_spec_GCJ=''
  15670. link_all_deplibs_GCJ=yes
  15671. if test "$GCC" = yes ; then
  15672. output_verbose_link_cmd='echo'
  15673. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15674. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15675. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15676. 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}'
  15677. 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}'
  15678. else
  15679. case $cc_basename in
  15680. xlc*)
  15681. output_verbose_link_cmd='echo'
  15682. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15683. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15684. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15685. 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}'
  15686. 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}'
  15687. ;;
  15688. *)
  15689. ld_shlibs_GCJ=no
  15690. ;;
  15691. esac
  15692. fi
  15693. ;;
  15694. dgux*)
  15695. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15696. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15697. hardcode_shlibpath_var_GCJ=no
  15698. ;;
  15699. freebsd1*)
  15700. ld_shlibs_GCJ=no
  15701. ;;
  15702. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15703. # support. Future versions do this automatically, but an explicit c++rt0.o
  15704. # does not break anything, and helps significantly (at the cost of a little
  15705. # extra space).
  15706. freebsd2.2*)
  15707. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15708. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15709. hardcode_direct_GCJ=yes
  15710. hardcode_shlibpath_var_GCJ=no
  15711. ;;
  15712. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15713. freebsd2*)
  15714. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15715. hardcode_direct_GCJ=yes
  15716. hardcode_minus_L_GCJ=yes
  15717. hardcode_shlibpath_var_GCJ=no
  15718. ;;
  15719. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15720. freebsd* | kfreebsd*-gnu | dragonfly*)
  15721. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15722. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15723. hardcode_direct_GCJ=yes
  15724. hardcode_shlibpath_var_GCJ=no
  15725. ;;
  15726. hpux9*)
  15727. if test "$GCC" = yes; then
  15728. 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'
  15729. else
  15730. 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'
  15731. fi
  15732. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15733. hardcode_libdir_separator_GCJ=:
  15734. hardcode_direct_GCJ=yes
  15735. # hardcode_minus_L: Not really in the search PATH,
  15736. # but as the default location of the library.
  15737. hardcode_minus_L_GCJ=yes
  15738. export_dynamic_flag_spec_GCJ='${wl}-E'
  15739. ;;
  15740. hpux10* | hpux11*)
  15741. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15742. case "$host_cpu" in
  15743. hppa*64*|ia64*)
  15744. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15745. ;;
  15746. *)
  15747. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15748. ;;
  15749. esac
  15750. else
  15751. case "$host_cpu" in
  15752. hppa*64*|ia64*)
  15753. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  15754. ;;
  15755. *)
  15756. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15757. ;;
  15758. esac
  15759. fi
  15760. if test "$with_gnu_ld" = no; then
  15761. case "$host_cpu" in
  15762. hppa*64*)
  15763. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15764. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15765. hardcode_libdir_separator_GCJ=:
  15766. hardcode_direct_GCJ=no
  15767. hardcode_shlibpath_var_GCJ=no
  15768. ;;
  15769. ia64*)
  15770. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15771. hardcode_direct_GCJ=no
  15772. hardcode_shlibpath_var_GCJ=no
  15773. # hardcode_minus_L: Not really in the search PATH,
  15774. # but as the default location of the library.
  15775. hardcode_minus_L_GCJ=yes
  15776. ;;
  15777. *)
  15778. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15779. hardcode_libdir_separator_GCJ=:
  15780. hardcode_direct_GCJ=yes
  15781. export_dynamic_flag_spec_GCJ='${wl}-E'
  15782. # hardcode_minus_L: Not really in the search PATH,
  15783. # but as the default location of the library.
  15784. hardcode_minus_L_GCJ=yes
  15785. ;;
  15786. esac
  15787. fi
  15788. ;;
  15789. irix5* | irix6* | nonstopux*)
  15790. if test "$GCC" = yes; then
  15791. 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'
  15792. else
  15793. 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'
  15794. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15795. fi
  15796. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15797. hardcode_libdir_separator_GCJ=:
  15798. link_all_deplibs_GCJ=yes
  15799. ;;
  15800. netbsd*)
  15801. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15802. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15803. else
  15804. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15805. fi
  15806. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15807. hardcode_direct_GCJ=yes
  15808. hardcode_shlibpath_var_GCJ=no
  15809. ;;
  15810. newsos6)
  15811. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15812. hardcode_direct_GCJ=yes
  15813. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15814. hardcode_libdir_separator_GCJ=:
  15815. hardcode_shlibpath_var_GCJ=no
  15816. ;;
  15817. openbsd*)
  15818. hardcode_direct_GCJ=yes
  15819. hardcode_shlibpath_var_GCJ=no
  15820. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15821. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15822. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15823. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15824. export_dynamic_flag_spec_GCJ='${wl}-E'
  15825. else
  15826. case $host_os in
  15827. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15828. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15829. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15830. ;;
  15831. *)
  15832. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15833. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15834. ;;
  15835. esac
  15836. fi
  15837. ;;
  15838. os2*)
  15839. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15840. hardcode_minus_L_GCJ=yes
  15841. allow_undefined_flag_GCJ=unsupported
  15842. 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'
  15843. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15844. ;;
  15845. osf3*)
  15846. if test "$GCC" = yes; then
  15847. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15848. 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'
  15849. else
  15850. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15851. 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'
  15852. fi
  15853. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15854. hardcode_libdir_separator_GCJ=:
  15855. ;;
  15856. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15857. if test "$GCC" = yes; then
  15858. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15859. 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'
  15860. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15861. else
  15862. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15863. 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'
  15864. 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~
  15865. $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'
  15866. # Both c and cxx compiler support -rpath directly
  15867. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15868. fi
  15869. hardcode_libdir_separator_GCJ=:
  15870. ;;
  15871. sco3.2v5*)
  15872. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15873. hardcode_shlibpath_var_GCJ=no
  15874. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15875. runpath_var=LD_RUN_PATH
  15876. hardcode_runpath_var=yes
  15877. ;;
  15878. solaris*)
  15879. no_undefined_flag_GCJ=' -z text'
  15880. if test "$GCC" = yes; then
  15881. wlarc='${wl}'
  15882. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15883. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15884. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15885. else
  15886. wlarc=''
  15887. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15888. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15889. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15890. fi
  15891. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15892. hardcode_shlibpath_var_GCJ=no
  15893. case $host_os in
  15894. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15895. *)
  15896. # The compiler driver will combine linker options so we
  15897. # cannot just pass the convience library names through
  15898. # without $wl, iff we do not link with $LD.
  15899. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15900. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15901. case $wlarc in
  15902. '')
  15903. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15904. *)
  15905. 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' ;;
  15906. esac ;;
  15907. esac
  15908. link_all_deplibs_GCJ=yes
  15909. ;;
  15910. sunos4*)
  15911. if test "x$host_vendor" = xsequent; then
  15912. # Use $CC to link under sequent, because it throws in some extra .o
  15913. # files that make .init and .fini sections work.
  15914. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15915. else
  15916. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15917. fi
  15918. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15919. hardcode_direct_GCJ=yes
  15920. hardcode_minus_L_GCJ=yes
  15921. hardcode_shlibpath_var_GCJ=no
  15922. ;;
  15923. sysv4)
  15924. case $host_vendor in
  15925. sni)
  15926. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15927. hardcode_direct_GCJ=yes # is this really true???
  15928. ;;
  15929. siemens)
  15930. ## LD is ld it makes a PLAMLIB
  15931. ## CC just makes a GrossModule.
  15932. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15933. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15934. hardcode_direct_GCJ=no
  15935. ;;
  15936. motorola)
  15937. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15938. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15939. ;;
  15940. esac
  15941. runpath_var='LD_RUN_PATH'
  15942. hardcode_shlibpath_var_GCJ=no
  15943. ;;
  15944. sysv4.3*)
  15945. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15946. hardcode_shlibpath_var_GCJ=no
  15947. export_dynamic_flag_spec_GCJ='-Bexport'
  15948. ;;
  15949. sysv4*MP*)
  15950. if test -d /usr/nec; then
  15951. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15952. hardcode_shlibpath_var_GCJ=no
  15953. runpath_var=LD_RUN_PATH
  15954. hardcode_runpath_var=yes
  15955. ld_shlibs_GCJ=yes
  15956. fi
  15957. ;;
  15958. sysv4.2uw2*)
  15959. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15960. hardcode_direct_GCJ=yes
  15961. hardcode_minus_L_GCJ=no
  15962. hardcode_shlibpath_var_GCJ=no
  15963. hardcode_runpath_var=yes
  15964. runpath_var=LD_RUN_PATH
  15965. ;;
  15966. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  15967. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  15968. if test "$GCC" = yes; then
  15969. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15970. else
  15971. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15972. fi
  15973. runpath_var='LD_RUN_PATH'
  15974. hardcode_shlibpath_var_GCJ=no
  15975. ;;
  15976. sysv5*)
  15977. no_undefined_flag_GCJ=' -z text'
  15978. # $CC -shared without GNU ld will not create a library from C++
  15979. # object files and a static libstdc++, better avoid it by now
  15980. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15981. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15982. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15983. hardcode_libdir_flag_spec_GCJ=
  15984. hardcode_shlibpath_var_GCJ=no
  15985. runpath_var='LD_RUN_PATH'
  15986. ;;
  15987. uts4*)
  15988. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15989. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15990. hardcode_shlibpath_var_GCJ=no
  15991. ;;
  15992. *)
  15993. ld_shlibs_GCJ=no
  15994. ;;
  15995. esac
  15996. fi
  15997. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15998. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  15999. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16000. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16001. if test "$GCC" = yes; then
  16002. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16003. fi
  16004. #
  16005. # Do we need to explicitly link libc?
  16006. #
  16007. case "x$archive_cmds_need_lc_GCJ" in
  16008. x|xyes)
  16009. # Assume -lc should be added
  16010. archive_cmds_need_lc_GCJ=yes
  16011. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16012. case $archive_cmds_GCJ in
  16013. *'~'*)
  16014. # FIXME: we may have to deal with multi-command sequences.
  16015. ;;
  16016. '$CC '*)
  16017. # Test whether the compiler implicitly links with -lc since on some
  16018. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16019. # to ld, don't add -lc before -lgcc.
  16020. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16021. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16022. $rm conftest*
  16023. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16024. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16025. (eval $ac_compile) 2>&5
  16026. ac_status=$?
  16027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16028. (exit $ac_status); } 2>conftest.err; then
  16029. soname=conftest
  16030. lib=conftest
  16031. libobjs=conftest.$ac_objext
  16032. deplibs=
  16033. wl=$lt_prog_compiler_wl_GCJ
  16034. compiler_flags=-v
  16035. linker_flags=-v
  16036. verstring=
  16037. output_objdir=.
  16038. libname=conftest
  16039. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16040. allow_undefined_flag_GCJ=
  16041. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16042. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16043. ac_status=$?
  16044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16045. (exit $ac_status); }
  16046. then
  16047. archive_cmds_need_lc_GCJ=no
  16048. else
  16049. archive_cmds_need_lc_GCJ=yes
  16050. fi
  16051. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16052. else
  16053. cat conftest.err 1>&5
  16054. fi
  16055. $rm conftest*
  16056. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16057. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16058. ;;
  16059. esac
  16060. fi
  16061. ;;
  16062. esac
  16063. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16064. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16065. library_names_spec=
  16066. libname_spec='lib$name'
  16067. soname_spec=
  16068. shrext_cmds=".so"
  16069. postinstall_cmds=
  16070. postuninstall_cmds=
  16071. finish_cmds=
  16072. finish_eval=
  16073. shlibpath_var=
  16074. shlibpath_overrides_runpath=unknown
  16075. version_type=none
  16076. dynamic_linker="$host_os ld.so"
  16077. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16078. if test "$GCC" = yes; then
  16079. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16080. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16081. # if the path contains ";" then we assume it to be the separator
  16082. # otherwise default to the standard path separator (i.e. ":") - it is
  16083. # assumed that no part of a normal pathname contains ";" but that should
  16084. # okay in the real world where ";" in dirpaths is itself problematic.
  16085. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16086. else
  16087. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16088. fi
  16089. else
  16090. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16091. fi
  16092. need_lib_prefix=unknown
  16093. hardcode_into_libs=no
  16094. # when you set need_version to no, make sure it does not cause -set_version
  16095. # flags to be left without arguments
  16096. need_version=unknown
  16097. case $host_os in
  16098. aix3*)
  16099. version_type=linux
  16100. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16101. shlibpath_var=LIBPATH
  16102. # AIX 3 has no versioning support, so we append a major version to the name.
  16103. soname_spec='${libname}${release}${shared_ext}$major'
  16104. ;;
  16105. aix4* | aix5*)
  16106. version_type=linux
  16107. need_lib_prefix=no
  16108. need_version=no
  16109. hardcode_into_libs=yes
  16110. if test "$host_cpu" = ia64; then
  16111. # AIX 5 supports IA64
  16112. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16113. shlibpath_var=LD_LIBRARY_PATH
  16114. else
  16115. # With GCC up to 2.95.x, collect2 would create an import file
  16116. # for dependence libraries. The import file would start with
  16117. # the line `#! .'. This would cause the generated library to
  16118. # depend on `.', always an invalid library. This was fixed in
  16119. # development snapshots of GCC prior to 3.0.
  16120. case $host_os in
  16121. aix4 | aix4.[01] | aix4.[01].*)
  16122. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16123. echo ' yes '
  16124. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16125. :
  16126. else
  16127. can_build_shared=no
  16128. fi
  16129. ;;
  16130. esac
  16131. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16132. # soname into executable. Probably we can add versioning support to
  16133. # collect2, so additional links can be useful in future.
  16134. if test "$aix_use_runtimelinking" = yes; then
  16135. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16136. # instead of lib<name>.a to let people know that these are not
  16137. # typical AIX shared libraries.
  16138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16139. else
  16140. # We preserve .a as extension for shared libraries through AIX4.2
  16141. # and later when we are not doing run time linking.
  16142. library_names_spec='${libname}${release}.a $libname.a'
  16143. soname_spec='${libname}${release}${shared_ext}$major'
  16144. fi
  16145. shlibpath_var=LIBPATH
  16146. fi
  16147. ;;
  16148. amigaos*)
  16149. library_names_spec='$libname.ixlibrary $libname.a'
  16150. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16151. 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'
  16152. ;;
  16153. beos*)
  16154. library_names_spec='${libname}${shared_ext}'
  16155. dynamic_linker="$host_os ld.so"
  16156. shlibpath_var=LIBRARY_PATH
  16157. ;;
  16158. bsdi[45]*)
  16159. version_type=linux
  16160. need_version=no
  16161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16162. soname_spec='${libname}${release}${shared_ext}$major'
  16163. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16164. shlibpath_var=LD_LIBRARY_PATH
  16165. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16166. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16167. # the default ld.so.conf also contains /usr/contrib/lib and
  16168. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16169. # libtool to hard-code these into programs
  16170. ;;
  16171. cygwin* | mingw* | pw32*)
  16172. version_type=windows
  16173. shrext_cmds=".dll"
  16174. need_version=no
  16175. need_lib_prefix=no
  16176. case $GCC,$host_os in
  16177. yes,cygwin* | yes,mingw* | yes,pw32*)
  16178. library_names_spec='$libname.dll.a'
  16179. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16180. postinstall_cmds='base_file=`basename \${file}`~
  16181. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16182. dldir=$destdir/`dirname \$dlpath`~
  16183. test -d \$dldir || mkdir -p \$dldir~
  16184. $install_prog $dir/$dlname \$dldir/$dlname'
  16185. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16186. dlpath=$dir/\$dldll~
  16187. $rm \$dlpath'
  16188. shlibpath_overrides_runpath=yes
  16189. case $host_os in
  16190. cygwin*)
  16191. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16192. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16193. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16194. ;;
  16195. mingw*)
  16196. # MinGW DLLs use traditional 'lib' prefix
  16197. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16198. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16199. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16200. # It is most probably a Windows format PATH printed by
  16201. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16202. # path with ; separators, and with drive letters. We can handle the
  16203. # drive letters (cygwin fileutils understands them), so leave them,
  16204. # especially as we might pass files found there to a mingw objdump,
  16205. # which wouldn't understand a cygwinified path. Ahh.
  16206. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16207. else
  16208. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16209. fi
  16210. ;;
  16211. pw32*)
  16212. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16213. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16214. ;;
  16215. esac
  16216. ;;
  16217. *)
  16218. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16219. ;;
  16220. esac
  16221. dynamic_linker='Win32 ld.exe'
  16222. # FIXME: first we should search . and the directory the executable is in
  16223. shlibpath_var=PATH
  16224. ;;
  16225. darwin* | rhapsody*)
  16226. dynamic_linker="$host_os dyld"
  16227. version_type=darwin
  16228. need_lib_prefix=no
  16229. need_version=no
  16230. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16231. soname_spec='${libname}${release}${major}$shared_ext'
  16232. shlibpath_overrides_runpath=yes
  16233. shlibpath_var=DYLD_LIBRARY_PATH
  16234. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  16235. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16236. if test "$GCC" = yes; then
  16237. 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"`
  16238. else
  16239. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16240. fi
  16241. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16242. ;;
  16243. dgux*)
  16244. version_type=linux
  16245. need_lib_prefix=no
  16246. need_version=no
  16247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16248. soname_spec='${libname}${release}${shared_ext}$major'
  16249. shlibpath_var=LD_LIBRARY_PATH
  16250. ;;
  16251. freebsd1*)
  16252. dynamic_linker=no
  16253. ;;
  16254. kfreebsd*-gnu)
  16255. version_type=linux
  16256. need_lib_prefix=no
  16257. need_version=no
  16258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16259. soname_spec='${libname}${release}${shared_ext}$major'
  16260. shlibpath_var=LD_LIBRARY_PATH
  16261. shlibpath_overrides_runpath=no
  16262. hardcode_into_libs=yes
  16263. dynamic_linker='GNU ld.so'
  16264. ;;
  16265. freebsd* | dragonfly*)
  16266. # DragonFly does not have aout. When/if they implement a new
  16267. # versioning mechanism, adjust this.
  16268. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  16269. version_type=freebsd-$objformat
  16270. case $version_type in
  16271. freebsd-elf*)
  16272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16273. need_version=no
  16274. need_lib_prefix=no
  16275. ;;
  16276. freebsd-*)
  16277. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16278. need_version=yes
  16279. ;;
  16280. esac
  16281. shlibpath_var=LD_LIBRARY_PATH
  16282. case $host_os in
  16283. freebsd2*)
  16284. shlibpath_overrides_runpath=yes
  16285. ;;
  16286. freebsd3.[01]* | freebsdelf3.[01]*)
  16287. shlibpath_overrides_runpath=yes
  16288. hardcode_into_libs=yes
  16289. ;;
  16290. *) # from 3.2 on
  16291. shlibpath_overrides_runpath=no
  16292. hardcode_into_libs=yes
  16293. ;;
  16294. esac
  16295. ;;
  16296. gnu*)
  16297. version_type=linux
  16298. need_lib_prefix=no
  16299. need_version=no
  16300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16301. soname_spec='${libname}${release}${shared_ext}$major'
  16302. shlibpath_var=LD_LIBRARY_PATH
  16303. hardcode_into_libs=yes
  16304. ;;
  16305. hpux9* | hpux10* | hpux11*)
  16306. # Give a soname corresponding to the major version so that dld.sl refuses to
  16307. # link against other versions.
  16308. version_type=sunos
  16309. need_lib_prefix=no
  16310. need_version=no
  16311. case "$host_cpu" in
  16312. ia64*)
  16313. shrext_cmds='.so'
  16314. hardcode_into_libs=yes
  16315. dynamic_linker="$host_os dld.so"
  16316. shlibpath_var=LD_LIBRARY_PATH
  16317. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16319. soname_spec='${libname}${release}${shared_ext}$major'
  16320. if test "X$HPUX_IA64_MODE" = X32; then
  16321. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16322. else
  16323. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16324. fi
  16325. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16326. ;;
  16327. hppa*64*)
  16328. shrext_cmds='.sl'
  16329. hardcode_into_libs=yes
  16330. dynamic_linker="$host_os dld.sl"
  16331. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16332. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16334. soname_spec='${libname}${release}${shared_ext}$major'
  16335. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16336. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16337. ;;
  16338. *)
  16339. shrext_cmds='.sl'
  16340. dynamic_linker="$host_os dld.sl"
  16341. shlibpath_var=SHLIB_PATH
  16342. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16344. soname_spec='${libname}${release}${shared_ext}$major'
  16345. ;;
  16346. esac
  16347. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16348. postinstall_cmds='chmod 555 $lib'
  16349. ;;
  16350. irix5* | irix6* | nonstopux*)
  16351. case $host_os in
  16352. nonstopux*) version_type=nonstopux ;;
  16353. *)
  16354. if test "$lt_cv_prog_gnu_ld" = yes; then
  16355. version_type=linux
  16356. else
  16357. version_type=irix
  16358. fi ;;
  16359. esac
  16360. need_lib_prefix=no
  16361. need_version=no
  16362. soname_spec='${libname}${release}${shared_ext}$major'
  16363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16364. case $host_os in
  16365. irix5* | nonstopux*)
  16366. libsuff= shlibsuff=
  16367. ;;
  16368. *)
  16369. case $LD in # libtool.m4 will add one of these switches to LD
  16370. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16371. libsuff= shlibsuff= libmagic=32-bit;;
  16372. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16373. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16374. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16375. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16376. *) libsuff= shlibsuff= libmagic=never-match;;
  16377. esac
  16378. ;;
  16379. esac
  16380. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16381. shlibpath_overrides_runpath=no
  16382. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16383. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16384. hardcode_into_libs=yes
  16385. ;;
  16386. # No shared lib support for Linux oldld, aout, or coff.
  16387. linux*oldld* | linux*aout* | linux*coff*)
  16388. dynamic_linker=no
  16389. ;;
  16390. # This must be Linux ELF.
  16391. linux*)
  16392. version_type=linux
  16393. need_lib_prefix=no
  16394. need_version=no
  16395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16396. soname_spec='${libname}${release}${shared_ext}$major'
  16397. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16398. shlibpath_var=LD_LIBRARY_PATH
  16399. shlibpath_overrides_runpath=no
  16400. # This implies no fast_install, which is unacceptable.
  16401. # Some rework will be needed to allow for fast_install
  16402. # before this can be enabled.
  16403. hardcode_into_libs=yes
  16404. # Append ld.so.conf contents to the search path
  16405. if test -f /etc/ld.so.conf; then
  16406. 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' ' '`
  16407. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16408. fi
  16409. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16410. # powerpc, because MkLinux only supported shared libraries with the
  16411. # GNU dynamic linker. Since this was broken with cross compilers,
  16412. # most powerpc-linux boxes support dynamic linking these days and
  16413. # people can always --disable-shared, the test was removed, and we
  16414. # assume the GNU/Linux dynamic linker is in use.
  16415. dynamic_linker='GNU/Linux ld.so'
  16416. ;;
  16417. knetbsd*-gnu)
  16418. version_type=linux
  16419. need_lib_prefix=no
  16420. need_version=no
  16421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16422. soname_spec='${libname}${release}${shared_ext}$major'
  16423. shlibpath_var=LD_LIBRARY_PATH
  16424. shlibpath_overrides_runpath=no
  16425. hardcode_into_libs=yes
  16426. dynamic_linker='GNU ld.so'
  16427. ;;
  16428. netbsd*)
  16429. version_type=sunos
  16430. need_lib_prefix=no
  16431. need_version=no
  16432. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16434. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16435. dynamic_linker='NetBSD (a.out) ld.so'
  16436. else
  16437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16438. soname_spec='${libname}${release}${shared_ext}$major'
  16439. dynamic_linker='NetBSD ld.elf_so'
  16440. fi
  16441. shlibpath_var=LD_LIBRARY_PATH
  16442. shlibpath_overrides_runpath=yes
  16443. hardcode_into_libs=yes
  16444. ;;
  16445. newsos6)
  16446. version_type=linux
  16447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16448. shlibpath_var=LD_LIBRARY_PATH
  16449. shlibpath_overrides_runpath=yes
  16450. ;;
  16451. nto-qnx*)
  16452. version_type=linux
  16453. need_lib_prefix=no
  16454. need_version=no
  16455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16456. soname_spec='${libname}${release}${shared_ext}$major'
  16457. shlibpath_var=LD_LIBRARY_PATH
  16458. shlibpath_overrides_runpath=yes
  16459. ;;
  16460. openbsd*)
  16461. version_type=sunos
  16462. need_lib_prefix=no
  16463. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16464. case $host_os in
  16465. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16466. *) need_version=no ;;
  16467. esac
  16468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16469. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16470. shlibpath_var=LD_LIBRARY_PATH
  16471. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16472. case $host_os in
  16473. openbsd2.[89] | openbsd2.[89].*)
  16474. shlibpath_overrides_runpath=no
  16475. ;;
  16476. *)
  16477. shlibpath_overrides_runpath=yes
  16478. ;;
  16479. esac
  16480. else
  16481. shlibpath_overrides_runpath=yes
  16482. fi
  16483. ;;
  16484. os2*)
  16485. libname_spec='$name'
  16486. shrext_cmds=".dll"
  16487. need_lib_prefix=no
  16488. library_names_spec='$libname${shared_ext} $libname.a'
  16489. dynamic_linker='OS/2 ld.exe'
  16490. shlibpath_var=LIBPATH
  16491. ;;
  16492. osf3* | osf4* | osf5*)
  16493. version_type=osf
  16494. need_lib_prefix=no
  16495. need_version=no
  16496. soname_spec='${libname}${release}${shared_ext}$major'
  16497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16498. shlibpath_var=LD_LIBRARY_PATH
  16499. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16500. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16501. ;;
  16502. sco3.2v5*)
  16503. version_type=osf
  16504. soname_spec='${libname}${release}${shared_ext}$major'
  16505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16506. shlibpath_var=LD_LIBRARY_PATH
  16507. ;;
  16508. solaris*)
  16509. version_type=linux
  16510. need_lib_prefix=no
  16511. need_version=no
  16512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16513. soname_spec='${libname}${release}${shared_ext}$major'
  16514. shlibpath_var=LD_LIBRARY_PATH
  16515. shlibpath_overrides_runpath=yes
  16516. hardcode_into_libs=yes
  16517. # ldd complains unless libraries are executable
  16518. postinstall_cmds='chmod +x $lib'
  16519. ;;
  16520. sunos4*)
  16521. version_type=sunos
  16522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16523. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16524. shlibpath_var=LD_LIBRARY_PATH
  16525. shlibpath_overrides_runpath=yes
  16526. if test "$with_gnu_ld" = yes; then
  16527. need_lib_prefix=no
  16528. fi
  16529. need_version=yes
  16530. ;;
  16531. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16532. version_type=linux
  16533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16534. soname_spec='${libname}${release}${shared_ext}$major'
  16535. shlibpath_var=LD_LIBRARY_PATH
  16536. case $host_vendor in
  16537. sni)
  16538. shlibpath_overrides_runpath=no
  16539. need_lib_prefix=no
  16540. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16541. runpath_var=LD_RUN_PATH
  16542. ;;
  16543. siemens)
  16544. need_lib_prefix=no
  16545. ;;
  16546. motorola)
  16547. need_lib_prefix=no
  16548. need_version=no
  16549. shlibpath_overrides_runpath=no
  16550. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16551. ;;
  16552. esac
  16553. ;;
  16554. sysv4*MP*)
  16555. if test -d /usr/nec ;then
  16556. version_type=linux
  16557. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16558. soname_spec='$libname${shared_ext}.$major'
  16559. shlibpath_var=LD_LIBRARY_PATH
  16560. fi
  16561. ;;
  16562. uts4*)
  16563. version_type=linux
  16564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16565. soname_spec='${libname}${release}${shared_ext}$major'
  16566. shlibpath_var=LD_LIBRARY_PATH
  16567. ;;
  16568. *)
  16569. dynamic_linker=no
  16570. ;;
  16571. esac
  16572. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16573. echo "${ECHO_T}$dynamic_linker" >&6; }
  16574. test "$dynamic_linker" = no && can_build_shared=no
  16575. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16576. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16577. hardcode_action_GCJ=
  16578. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16579. test -n "$runpath_var_GCJ" || \
  16580. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16581. # We can hardcode non-existant directories.
  16582. if test "$hardcode_direct_GCJ" != no &&
  16583. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16584. # have to relink, otherwise we might link with an installed library
  16585. # when we should be linking with a yet-to-be-installed one
  16586. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16587. test "$hardcode_minus_L_GCJ" != no; then
  16588. # Linking always hardcodes the temporary library directory.
  16589. hardcode_action_GCJ=relink
  16590. else
  16591. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16592. hardcode_action_GCJ=immediate
  16593. fi
  16594. else
  16595. # We cannot hardcode anything, or else we can only hardcode existing
  16596. # directories.
  16597. hardcode_action_GCJ=unsupported
  16598. fi
  16599. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16600. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16601. if test "$hardcode_action_GCJ" = relink; then
  16602. # Fast installation is not supported
  16603. enable_fast_install=no
  16604. elif test "$shlibpath_overrides_runpath" = yes ||
  16605. test "$enable_shared" = no; then
  16606. # Fast installation is not necessary
  16607. enable_fast_install=needless
  16608. fi
  16609. striplib=
  16610. old_striplib=
  16611. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16612. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  16613. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16614. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16615. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16616. { echo "$as_me:$LINENO: result: yes" >&5
  16617. echo "${ECHO_T}yes" >&6; }
  16618. else
  16619. # FIXME - insert some real tests, host_os isn't really good enough
  16620. case $host_os in
  16621. darwin*)
  16622. if test -n "$STRIP" ; then
  16623. striplib="$STRIP -x"
  16624. { echo "$as_me:$LINENO: result: yes" >&5
  16625. echo "${ECHO_T}yes" >&6; }
  16626. else
  16627. { echo "$as_me:$LINENO: result: no" >&5
  16628. echo "${ECHO_T}no" >&6; }
  16629. fi
  16630. ;;
  16631. *)
  16632. { echo "$as_me:$LINENO: result: no" >&5
  16633. echo "${ECHO_T}no" >&6; }
  16634. ;;
  16635. esac
  16636. fi
  16637. if test "x$enable_dlopen" != xyes; then
  16638. enable_dlopen=unknown
  16639. enable_dlopen_self=unknown
  16640. enable_dlopen_self_static=unknown
  16641. else
  16642. lt_cv_dlopen=no
  16643. lt_cv_dlopen_libs=
  16644. case $host_os in
  16645. beos*)
  16646. lt_cv_dlopen="load_add_on"
  16647. lt_cv_dlopen_libs=
  16648. lt_cv_dlopen_self=yes
  16649. ;;
  16650. mingw* | pw32*)
  16651. lt_cv_dlopen="LoadLibrary"
  16652. lt_cv_dlopen_libs=
  16653. ;;
  16654. cygwin*)
  16655. lt_cv_dlopen="dlopen"
  16656. lt_cv_dlopen_libs=
  16657. ;;
  16658. darwin*)
  16659. # if libdl is installed we need to link against it
  16660. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16661. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16662. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16663. echo $ECHO_N "(cached) $ECHO_C" >&6
  16664. else
  16665. ac_check_lib_save_LIBS=$LIBS
  16666. LIBS="-ldl $LIBS"
  16667. cat >conftest.$ac_ext <<_ACEOF
  16668. /* confdefs.h. */
  16669. _ACEOF
  16670. cat confdefs.h >>conftest.$ac_ext
  16671. cat >>conftest.$ac_ext <<_ACEOF
  16672. /* end confdefs.h. */
  16673. /* Override any GCC internal prototype to avoid an error.
  16674. Use char because int might match the return type of a GCC
  16675. builtin and then its argument prototype would still apply. */
  16676. #ifdef __cplusplus
  16677. extern "C"
  16678. #endif
  16679. char dlopen ();
  16680. int
  16681. main ()
  16682. {
  16683. return dlopen ();
  16684. ;
  16685. return 0;
  16686. }
  16687. _ACEOF
  16688. rm -f conftest.$ac_objext conftest$ac_exeext
  16689. if { (ac_try="$ac_link"
  16690. case "(($ac_try" in
  16691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16692. *) ac_try_echo=$ac_try;;
  16693. esac
  16694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16695. (eval "$ac_link") 2>conftest.er1
  16696. ac_status=$?
  16697. grep -v '^ *+' conftest.er1 >conftest.err
  16698. rm -f conftest.er1
  16699. cat conftest.err >&5
  16700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16701. (exit $ac_status); } && {
  16702. test -z "$ac_c_werror_flag" ||
  16703. test ! -s conftest.err
  16704. } && test -s conftest$ac_exeext &&
  16705. $as_test_x conftest$ac_exeext; then
  16706. ac_cv_lib_dl_dlopen=yes
  16707. else
  16708. echo "$as_me: failed program was:" >&5
  16709. sed 's/^/| /' conftest.$ac_ext >&5
  16710. ac_cv_lib_dl_dlopen=no
  16711. fi
  16712. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16713. conftest$ac_exeext conftest.$ac_ext
  16714. LIBS=$ac_check_lib_save_LIBS
  16715. fi
  16716. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16717. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  16718. if test $ac_cv_lib_dl_dlopen = yes; then
  16719. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16720. else
  16721. lt_cv_dlopen="dyld"
  16722. lt_cv_dlopen_libs=
  16723. lt_cv_dlopen_self=yes
  16724. fi
  16725. ;;
  16726. *)
  16727. { echo "$as_me:$LINENO: checking for shl_load" >&5
  16728. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  16729. if test "${ac_cv_func_shl_load+set}" = set; then
  16730. echo $ECHO_N "(cached) $ECHO_C" >&6
  16731. else
  16732. cat >conftest.$ac_ext <<_ACEOF
  16733. /* confdefs.h. */
  16734. _ACEOF
  16735. cat confdefs.h >>conftest.$ac_ext
  16736. cat >>conftest.$ac_ext <<_ACEOF
  16737. /* end confdefs.h. */
  16738. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  16739. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16740. #define shl_load innocuous_shl_load
  16741. /* System header to define __stub macros and hopefully few prototypes,
  16742. which can conflict with char shl_load (); below.
  16743. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16744. <limits.h> exists even on freestanding compilers. */
  16745. #ifdef __STDC__
  16746. # include <limits.h>
  16747. #else
  16748. # include <assert.h>
  16749. #endif
  16750. #undef shl_load
  16751. /* Override any GCC internal prototype to avoid an error.
  16752. Use char because int might match the return type of a GCC
  16753. builtin and then its argument prototype would still apply. */
  16754. #ifdef __cplusplus
  16755. extern "C"
  16756. #endif
  16757. char shl_load ();
  16758. /* The GNU C library defines this for functions which it implements
  16759. to always fail with ENOSYS. Some functions are actually named
  16760. something starting with __ and the normal name is an alias. */
  16761. #if defined __stub_shl_load || defined __stub___shl_load
  16762. choke me
  16763. #endif
  16764. int
  16765. main ()
  16766. {
  16767. return shl_load ();
  16768. ;
  16769. return 0;
  16770. }
  16771. _ACEOF
  16772. rm -f conftest.$ac_objext conftest$ac_exeext
  16773. if { (ac_try="$ac_link"
  16774. case "(($ac_try" in
  16775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16776. *) ac_try_echo=$ac_try;;
  16777. esac
  16778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16779. (eval "$ac_link") 2>conftest.er1
  16780. ac_status=$?
  16781. grep -v '^ *+' conftest.er1 >conftest.err
  16782. rm -f conftest.er1
  16783. cat conftest.err >&5
  16784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16785. (exit $ac_status); } && {
  16786. test -z "$ac_c_werror_flag" ||
  16787. test ! -s conftest.err
  16788. } && test -s conftest$ac_exeext &&
  16789. $as_test_x conftest$ac_exeext; then
  16790. ac_cv_func_shl_load=yes
  16791. else
  16792. echo "$as_me: failed program was:" >&5
  16793. sed 's/^/| /' conftest.$ac_ext >&5
  16794. ac_cv_func_shl_load=no
  16795. fi
  16796. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16797. conftest$ac_exeext conftest.$ac_ext
  16798. fi
  16799. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  16800. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  16801. if test $ac_cv_func_shl_load = yes; then
  16802. lt_cv_dlopen="shl_load"
  16803. else
  16804. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  16805. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  16806. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  16807. echo $ECHO_N "(cached) $ECHO_C" >&6
  16808. else
  16809. ac_check_lib_save_LIBS=$LIBS
  16810. LIBS="-ldld $LIBS"
  16811. cat >conftest.$ac_ext <<_ACEOF
  16812. /* confdefs.h. */
  16813. _ACEOF
  16814. cat confdefs.h >>conftest.$ac_ext
  16815. cat >>conftest.$ac_ext <<_ACEOF
  16816. /* end confdefs.h. */
  16817. /* Override any GCC internal prototype to avoid an error.
  16818. Use char because int might match the return type of a GCC
  16819. builtin and then its argument prototype would still apply. */
  16820. #ifdef __cplusplus
  16821. extern "C"
  16822. #endif
  16823. char shl_load ();
  16824. int
  16825. main ()
  16826. {
  16827. return shl_load ();
  16828. ;
  16829. return 0;
  16830. }
  16831. _ACEOF
  16832. rm -f conftest.$ac_objext conftest$ac_exeext
  16833. if { (ac_try="$ac_link"
  16834. case "(($ac_try" in
  16835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16836. *) ac_try_echo=$ac_try;;
  16837. esac
  16838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16839. (eval "$ac_link") 2>conftest.er1
  16840. ac_status=$?
  16841. grep -v '^ *+' conftest.er1 >conftest.err
  16842. rm -f conftest.er1
  16843. cat conftest.err >&5
  16844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16845. (exit $ac_status); } && {
  16846. test -z "$ac_c_werror_flag" ||
  16847. test ! -s conftest.err
  16848. } && test -s conftest$ac_exeext &&
  16849. $as_test_x conftest$ac_exeext; then
  16850. ac_cv_lib_dld_shl_load=yes
  16851. else
  16852. echo "$as_me: failed program was:" >&5
  16853. sed 's/^/| /' conftest.$ac_ext >&5
  16854. ac_cv_lib_dld_shl_load=no
  16855. fi
  16856. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16857. conftest$ac_exeext conftest.$ac_ext
  16858. LIBS=$ac_check_lib_save_LIBS
  16859. fi
  16860. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16861. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  16862. if test $ac_cv_lib_dld_shl_load = yes; then
  16863. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16864. else
  16865. { echo "$as_me:$LINENO: checking for dlopen" >&5
  16866. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  16867. if test "${ac_cv_func_dlopen+set}" = set; then
  16868. echo $ECHO_N "(cached) $ECHO_C" >&6
  16869. else
  16870. cat >conftest.$ac_ext <<_ACEOF
  16871. /* confdefs.h. */
  16872. _ACEOF
  16873. cat confdefs.h >>conftest.$ac_ext
  16874. cat >>conftest.$ac_ext <<_ACEOF
  16875. /* end confdefs.h. */
  16876. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16877. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16878. #define dlopen innocuous_dlopen
  16879. /* System header to define __stub macros and hopefully few prototypes,
  16880. which can conflict with char dlopen (); below.
  16881. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16882. <limits.h> exists even on freestanding compilers. */
  16883. #ifdef __STDC__
  16884. # include <limits.h>
  16885. #else
  16886. # include <assert.h>
  16887. #endif
  16888. #undef dlopen
  16889. /* Override any GCC internal prototype to avoid an error.
  16890. Use char because int might match the return type of a GCC
  16891. builtin and then its argument prototype would still apply. */
  16892. #ifdef __cplusplus
  16893. extern "C"
  16894. #endif
  16895. char dlopen ();
  16896. /* The GNU C library defines this for functions which it implements
  16897. to always fail with ENOSYS. Some functions are actually named
  16898. something starting with __ and the normal name is an alias. */
  16899. #if defined __stub_dlopen || defined __stub___dlopen
  16900. choke me
  16901. #endif
  16902. int
  16903. main ()
  16904. {
  16905. return dlopen ();
  16906. ;
  16907. return 0;
  16908. }
  16909. _ACEOF
  16910. rm -f conftest.$ac_objext conftest$ac_exeext
  16911. if { (ac_try="$ac_link"
  16912. case "(($ac_try" in
  16913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16914. *) ac_try_echo=$ac_try;;
  16915. esac
  16916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16917. (eval "$ac_link") 2>conftest.er1
  16918. ac_status=$?
  16919. grep -v '^ *+' conftest.er1 >conftest.err
  16920. rm -f conftest.er1
  16921. cat conftest.err >&5
  16922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16923. (exit $ac_status); } && {
  16924. test -z "$ac_c_werror_flag" ||
  16925. test ! -s conftest.err
  16926. } && test -s conftest$ac_exeext &&
  16927. $as_test_x conftest$ac_exeext; then
  16928. ac_cv_func_dlopen=yes
  16929. else
  16930. echo "$as_me: failed program was:" >&5
  16931. sed 's/^/| /' conftest.$ac_ext >&5
  16932. ac_cv_func_dlopen=no
  16933. fi
  16934. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16935. conftest$ac_exeext conftest.$ac_ext
  16936. fi
  16937. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  16938. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  16939. if test $ac_cv_func_dlopen = yes; then
  16940. lt_cv_dlopen="dlopen"
  16941. else
  16942. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16943. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16944. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16945. echo $ECHO_N "(cached) $ECHO_C" >&6
  16946. else
  16947. ac_check_lib_save_LIBS=$LIBS
  16948. LIBS="-ldl $LIBS"
  16949. cat >conftest.$ac_ext <<_ACEOF
  16950. /* confdefs.h. */
  16951. _ACEOF
  16952. cat confdefs.h >>conftest.$ac_ext
  16953. cat >>conftest.$ac_ext <<_ACEOF
  16954. /* end confdefs.h. */
  16955. /* Override any GCC internal prototype to avoid an error.
  16956. Use char because int might match the return type of a GCC
  16957. builtin and then its argument prototype would still apply. */
  16958. #ifdef __cplusplus
  16959. extern "C"
  16960. #endif
  16961. char dlopen ();
  16962. int
  16963. main ()
  16964. {
  16965. return dlopen ();
  16966. ;
  16967. return 0;
  16968. }
  16969. _ACEOF
  16970. rm -f conftest.$ac_objext conftest$ac_exeext
  16971. if { (ac_try="$ac_link"
  16972. case "(($ac_try" in
  16973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16974. *) ac_try_echo=$ac_try;;
  16975. esac
  16976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16977. (eval "$ac_link") 2>conftest.er1
  16978. ac_status=$?
  16979. grep -v '^ *+' conftest.er1 >conftest.err
  16980. rm -f conftest.er1
  16981. cat conftest.err >&5
  16982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16983. (exit $ac_status); } && {
  16984. test -z "$ac_c_werror_flag" ||
  16985. test ! -s conftest.err
  16986. } && test -s conftest$ac_exeext &&
  16987. $as_test_x conftest$ac_exeext; then
  16988. ac_cv_lib_dl_dlopen=yes
  16989. else
  16990. echo "$as_me: failed program was:" >&5
  16991. sed 's/^/| /' conftest.$ac_ext >&5
  16992. ac_cv_lib_dl_dlopen=no
  16993. fi
  16994. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16995. conftest$ac_exeext conftest.$ac_ext
  16996. LIBS=$ac_check_lib_save_LIBS
  16997. fi
  16998. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16999. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  17000. if test $ac_cv_lib_dl_dlopen = yes; then
  17001. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17002. else
  17003. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  17004. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  17005. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  17006. echo $ECHO_N "(cached) $ECHO_C" >&6
  17007. else
  17008. ac_check_lib_save_LIBS=$LIBS
  17009. LIBS="-lsvld $LIBS"
  17010. cat >conftest.$ac_ext <<_ACEOF
  17011. /* confdefs.h. */
  17012. _ACEOF
  17013. cat confdefs.h >>conftest.$ac_ext
  17014. cat >>conftest.$ac_ext <<_ACEOF
  17015. /* end confdefs.h. */
  17016. /* Override any GCC internal prototype to avoid an error.
  17017. Use char because int might match the return type of a GCC
  17018. builtin and then its argument prototype would still apply. */
  17019. #ifdef __cplusplus
  17020. extern "C"
  17021. #endif
  17022. char dlopen ();
  17023. int
  17024. main ()
  17025. {
  17026. return dlopen ();
  17027. ;
  17028. return 0;
  17029. }
  17030. _ACEOF
  17031. rm -f conftest.$ac_objext conftest$ac_exeext
  17032. if { (ac_try="$ac_link"
  17033. case "(($ac_try" in
  17034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17035. *) ac_try_echo=$ac_try;;
  17036. esac
  17037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17038. (eval "$ac_link") 2>conftest.er1
  17039. ac_status=$?
  17040. grep -v '^ *+' conftest.er1 >conftest.err
  17041. rm -f conftest.er1
  17042. cat conftest.err >&5
  17043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17044. (exit $ac_status); } && {
  17045. test -z "$ac_c_werror_flag" ||
  17046. test ! -s conftest.err
  17047. } && test -s conftest$ac_exeext &&
  17048. $as_test_x conftest$ac_exeext; then
  17049. ac_cv_lib_svld_dlopen=yes
  17050. else
  17051. echo "$as_me: failed program was:" >&5
  17052. sed 's/^/| /' conftest.$ac_ext >&5
  17053. ac_cv_lib_svld_dlopen=no
  17054. fi
  17055. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17056. conftest$ac_exeext conftest.$ac_ext
  17057. LIBS=$ac_check_lib_save_LIBS
  17058. fi
  17059. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  17060. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  17061. if test $ac_cv_lib_svld_dlopen = yes; then
  17062. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  17063. else
  17064. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  17065. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  17066. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  17067. echo $ECHO_N "(cached) $ECHO_C" >&6
  17068. else
  17069. ac_check_lib_save_LIBS=$LIBS
  17070. LIBS="-ldld $LIBS"
  17071. cat >conftest.$ac_ext <<_ACEOF
  17072. /* confdefs.h. */
  17073. _ACEOF
  17074. cat confdefs.h >>conftest.$ac_ext
  17075. cat >>conftest.$ac_ext <<_ACEOF
  17076. /* end confdefs.h. */
  17077. /* Override any GCC internal prototype to avoid an error.
  17078. Use char because int might match the return type of a GCC
  17079. builtin and then its argument prototype would still apply. */
  17080. #ifdef __cplusplus
  17081. extern "C"
  17082. #endif
  17083. char dld_link ();
  17084. int
  17085. main ()
  17086. {
  17087. return dld_link ();
  17088. ;
  17089. return 0;
  17090. }
  17091. _ACEOF
  17092. rm -f conftest.$ac_objext conftest$ac_exeext
  17093. if { (ac_try="$ac_link"
  17094. case "(($ac_try" in
  17095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17096. *) ac_try_echo=$ac_try;;
  17097. esac
  17098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17099. (eval "$ac_link") 2>conftest.er1
  17100. ac_status=$?
  17101. grep -v '^ *+' conftest.er1 >conftest.err
  17102. rm -f conftest.er1
  17103. cat conftest.err >&5
  17104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17105. (exit $ac_status); } && {
  17106. test -z "$ac_c_werror_flag" ||
  17107. test ! -s conftest.err
  17108. } && test -s conftest$ac_exeext &&
  17109. $as_test_x conftest$ac_exeext; then
  17110. ac_cv_lib_dld_dld_link=yes
  17111. else
  17112. echo "$as_me: failed program was:" >&5
  17113. sed 's/^/| /' conftest.$ac_ext >&5
  17114. ac_cv_lib_dld_dld_link=no
  17115. fi
  17116. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17117. conftest$ac_exeext conftest.$ac_ext
  17118. LIBS=$ac_check_lib_save_LIBS
  17119. fi
  17120. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17121. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  17122. if test $ac_cv_lib_dld_dld_link = yes; then
  17123. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17124. fi
  17125. fi
  17126. fi
  17127. fi
  17128. fi
  17129. fi
  17130. ;;
  17131. esac
  17132. if test "x$lt_cv_dlopen" != xno; then
  17133. enable_dlopen=yes
  17134. else
  17135. enable_dlopen=no
  17136. fi
  17137. case $lt_cv_dlopen in
  17138. dlopen)
  17139. save_CPPFLAGS="$CPPFLAGS"
  17140. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17141. save_LDFLAGS="$LDFLAGS"
  17142. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  17143. save_LIBS="$LIBS"
  17144. LIBS="$lt_cv_dlopen_libs $LIBS"
  17145. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  17146. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  17147. if test "${lt_cv_dlopen_self+set}" = set; then
  17148. echo $ECHO_N "(cached) $ECHO_C" >&6
  17149. else
  17150. if test "$cross_compiling" = yes; then :
  17151. lt_cv_dlopen_self=cross
  17152. else
  17153. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17154. lt_status=$lt_dlunknown
  17155. cat > conftest.$ac_ext <<EOF
  17156. #line 19177 "configure"
  17157. #include "confdefs.h"
  17158. #if HAVE_DLFCN_H
  17159. #include <dlfcn.h>
  17160. #endif
  17161. #include <stdio.h>
  17162. #ifdef RTLD_GLOBAL
  17163. # define LT_DLGLOBAL RTLD_GLOBAL
  17164. #else
  17165. # ifdef DL_GLOBAL
  17166. # define LT_DLGLOBAL DL_GLOBAL
  17167. # else
  17168. # define LT_DLGLOBAL 0
  17169. # endif
  17170. #endif
  17171. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17172. find out it does not work in some platform. */
  17173. #ifndef LT_DLLAZY_OR_NOW
  17174. # ifdef RTLD_LAZY
  17175. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17176. # else
  17177. # ifdef DL_LAZY
  17178. # define LT_DLLAZY_OR_NOW DL_LAZY
  17179. # else
  17180. # ifdef RTLD_NOW
  17181. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17182. # else
  17183. # ifdef DL_NOW
  17184. # define LT_DLLAZY_OR_NOW DL_NOW
  17185. # else
  17186. # define LT_DLLAZY_OR_NOW 0
  17187. # endif
  17188. # endif
  17189. # endif
  17190. # endif
  17191. #endif
  17192. #ifdef __cplusplus
  17193. extern "C" void exit (int);
  17194. #endif
  17195. void fnord() { int i=42;}
  17196. int main ()
  17197. {
  17198. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17199. int status = $lt_dlunknown;
  17200. if (self)
  17201. {
  17202. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17203. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17204. /* dlclose (self); */
  17205. }
  17206. exit (status);
  17207. }
  17208. EOF
  17209. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17210. (eval $ac_link) 2>&5
  17211. ac_status=$?
  17212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17213. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17214. (./conftest; exit; ) 2>/dev/null
  17215. lt_status=$?
  17216. case x$lt_status in
  17217. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17218. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17219. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  17220. esac
  17221. else :
  17222. # compilation failed
  17223. lt_cv_dlopen_self=no
  17224. fi
  17225. fi
  17226. rm -fr conftest*
  17227. fi
  17228. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  17229. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  17230. if test "x$lt_cv_dlopen_self" = xyes; then
  17231. LDFLAGS="$LDFLAGS $link_static_flag"
  17232. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  17233. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  17234. if test "${lt_cv_dlopen_self_static+set}" = set; then
  17235. echo $ECHO_N "(cached) $ECHO_C" >&6
  17236. else
  17237. if test "$cross_compiling" = yes; then :
  17238. lt_cv_dlopen_self_static=cross
  17239. else
  17240. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17241. lt_status=$lt_dlunknown
  17242. cat > conftest.$ac_ext <<EOF
  17243. #line 19275 "configure"
  17244. #include "confdefs.h"
  17245. #if HAVE_DLFCN_H
  17246. #include <dlfcn.h>
  17247. #endif
  17248. #include <stdio.h>
  17249. #ifdef RTLD_GLOBAL
  17250. # define LT_DLGLOBAL RTLD_GLOBAL
  17251. #else
  17252. # ifdef DL_GLOBAL
  17253. # define LT_DLGLOBAL DL_GLOBAL
  17254. # else
  17255. # define LT_DLGLOBAL 0
  17256. # endif
  17257. #endif
  17258. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17259. find out it does not work in some platform. */
  17260. #ifndef LT_DLLAZY_OR_NOW
  17261. # ifdef RTLD_LAZY
  17262. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17263. # else
  17264. # ifdef DL_LAZY
  17265. # define LT_DLLAZY_OR_NOW DL_LAZY
  17266. # else
  17267. # ifdef RTLD_NOW
  17268. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17269. # else
  17270. # ifdef DL_NOW
  17271. # define LT_DLLAZY_OR_NOW DL_NOW
  17272. # else
  17273. # define LT_DLLAZY_OR_NOW 0
  17274. # endif
  17275. # endif
  17276. # endif
  17277. # endif
  17278. #endif
  17279. #ifdef __cplusplus
  17280. extern "C" void exit (int);
  17281. #endif
  17282. void fnord() { int i=42;}
  17283. int main ()
  17284. {
  17285. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17286. int status = $lt_dlunknown;
  17287. if (self)
  17288. {
  17289. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17290. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17291. /* dlclose (self); */
  17292. }
  17293. exit (status);
  17294. }
  17295. EOF
  17296. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17297. (eval $ac_link) 2>&5
  17298. ac_status=$?
  17299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17300. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17301. (./conftest; exit; ) 2>/dev/null
  17302. lt_status=$?
  17303. case x$lt_status in
  17304. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17305. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17306. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  17307. esac
  17308. else :
  17309. # compilation failed
  17310. lt_cv_dlopen_self_static=no
  17311. fi
  17312. fi
  17313. rm -fr conftest*
  17314. fi
  17315. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  17316. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  17317. fi
  17318. CPPFLAGS="$save_CPPFLAGS"
  17319. LDFLAGS="$save_LDFLAGS"
  17320. LIBS="$save_LIBS"
  17321. ;;
  17322. esac
  17323. case $lt_cv_dlopen_self in
  17324. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17325. *) enable_dlopen_self=unknown ;;
  17326. esac
  17327. case $lt_cv_dlopen_self_static in
  17328. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17329. *) enable_dlopen_self_static=unknown ;;
  17330. esac
  17331. fi
  17332. # The else clause should only fire when bootstrapping the
  17333. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17334. # with your package, and you will get complaints that there are
  17335. # no rules to generate ltmain.sh.
  17336. if test -f "$ltmain"; then
  17337. # See if we are running on zsh, and set the options which allow our commands through
  17338. # without removal of \ escapes.
  17339. if test -n "${ZSH_VERSION+set}" ; then
  17340. setopt NO_GLOB_SUBST
  17341. fi
  17342. # Now quote all the things that may contain metacharacters while being
  17343. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17344. # variables and quote the copies for generation of the libtool script.
  17345. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17346. SED SHELL STRIP \
  17347. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17348. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17349. deplibs_check_method reload_flag reload_cmds need_locks \
  17350. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17351. lt_cv_sys_global_symbol_to_c_name_address \
  17352. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17353. old_postinstall_cmds old_postuninstall_cmds \
  17354. compiler_GCJ \
  17355. CC_GCJ \
  17356. LD_GCJ \
  17357. lt_prog_compiler_wl_GCJ \
  17358. lt_prog_compiler_pic_GCJ \
  17359. lt_prog_compiler_static_GCJ \
  17360. lt_prog_compiler_no_builtin_flag_GCJ \
  17361. export_dynamic_flag_spec_GCJ \
  17362. thread_safe_flag_spec_GCJ \
  17363. whole_archive_flag_spec_GCJ \
  17364. enable_shared_with_static_runtimes_GCJ \
  17365. old_archive_cmds_GCJ \
  17366. old_archive_from_new_cmds_GCJ \
  17367. predep_objects_GCJ \
  17368. postdep_objects_GCJ \
  17369. predeps_GCJ \
  17370. postdeps_GCJ \
  17371. compiler_lib_search_path_GCJ \
  17372. archive_cmds_GCJ \
  17373. archive_expsym_cmds_GCJ \
  17374. postinstall_cmds_GCJ \
  17375. postuninstall_cmds_GCJ \
  17376. old_archive_from_expsyms_cmds_GCJ \
  17377. allow_undefined_flag_GCJ \
  17378. no_undefined_flag_GCJ \
  17379. export_symbols_cmds_GCJ \
  17380. hardcode_libdir_flag_spec_GCJ \
  17381. hardcode_libdir_flag_spec_ld_GCJ \
  17382. hardcode_libdir_separator_GCJ \
  17383. hardcode_automatic_GCJ \
  17384. module_cmds_GCJ \
  17385. module_expsym_cmds_GCJ \
  17386. lt_cv_prog_compiler_c_o_GCJ \
  17387. exclude_expsyms_GCJ \
  17388. include_expsyms_GCJ; do
  17389. case $var in
  17390. old_archive_cmds_GCJ | \
  17391. old_archive_from_new_cmds_GCJ | \
  17392. archive_cmds_GCJ | \
  17393. archive_expsym_cmds_GCJ | \
  17394. module_cmds_GCJ | \
  17395. module_expsym_cmds_GCJ | \
  17396. old_archive_from_expsyms_cmds_GCJ | \
  17397. export_symbols_cmds_GCJ | \
  17398. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17399. postinstall_cmds | postuninstall_cmds | \
  17400. old_postinstall_cmds | old_postuninstall_cmds | \
  17401. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17402. # Double-quote double-evaled strings.
  17403. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17404. ;;
  17405. *)
  17406. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17407. ;;
  17408. esac
  17409. done
  17410. case $lt_echo in
  17411. *'\$0 --fallback-echo"')
  17412. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17413. ;;
  17414. esac
  17415. cfgfile="$ofile"
  17416. cat <<__EOF__ >> "$cfgfile"
  17417. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17418. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17419. # Shell to use when invoking shell scripts.
  17420. SHELL=$lt_SHELL
  17421. # Whether or not to build shared libraries.
  17422. build_libtool_libs=$enable_shared
  17423. # Whether or not to build static libraries.
  17424. build_old_libs=$enable_static
  17425. # Whether or not to add -lc for building shared libraries.
  17426. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17427. # Whether or not to disallow shared libs when runtime libs are static
  17428. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17429. # Whether or not to optimize for fast installation.
  17430. fast_install=$enable_fast_install
  17431. # The host system.
  17432. host_alias=$host_alias
  17433. host=$host
  17434. host_os=$host_os
  17435. # The build system.
  17436. build_alias=$build_alias
  17437. build=$build
  17438. build_os=$build_os
  17439. # An echo program that does not interpret backslashes.
  17440. echo=$lt_echo
  17441. # The archiver.
  17442. AR=$lt_AR
  17443. AR_FLAGS=$lt_AR_FLAGS
  17444. # A C compiler.
  17445. LTCC=$lt_LTCC
  17446. # A language-specific compiler.
  17447. CC=$lt_compiler_GCJ
  17448. # Is the compiler the GNU C compiler?
  17449. with_gcc=$GCC_GCJ
  17450. # An ERE matcher.
  17451. EGREP=$lt_EGREP
  17452. # The linker used to build libraries.
  17453. LD=$lt_LD_GCJ
  17454. # Whether we need hard or soft links.
  17455. LN_S=$lt_LN_S
  17456. # A BSD-compatible nm program.
  17457. NM=$lt_NM
  17458. # A symbol stripping program
  17459. STRIP=$lt_STRIP
  17460. # Used to examine libraries when file_magic_cmd begins "file"
  17461. MAGIC_CMD=$MAGIC_CMD
  17462. # Used on cygwin: DLL creation program.
  17463. DLLTOOL="$DLLTOOL"
  17464. # Used on cygwin: object dumper.
  17465. OBJDUMP="$OBJDUMP"
  17466. # Used on cygwin: assembler.
  17467. AS="$AS"
  17468. # The name of the directory that contains temporary libtool files.
  17469. objdir=$objdir
  17470. # How to create reloadable object files.
  17471. reload_flag=$lt_reload_flag
  17472. reload_cmds=$lt_reload_cmds
  17473. # How to pass a linker flag through the compiler.
  17474. wl=$lt_lt_prog_compiler_wl_GCJ
  17475. # Object file suffix (normally "o").
  17476. objext="$ac_objext"
  17477. # Old archive suffix (normally "a").
  17478. libext="$libext"
  17479. # Shared library suffix (normally ".so").
  17480. shrext_cmds='$shrext_cmds'
  17481. # Executable file suffix (normally "").
  17482. exeext="$exeext"
  17483. # Additional compiler flags for building library objects.
  17484. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17485. pic_mode=$pic_mode
  17486. # What is the maximum length of a command?
  17487. max_cmd_len=$lt_cv_sys_max_cmd_len
  17488. # Does compiler simultaneously support -c and -o options?
  17489. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17490. # Must we lock files when doing compilation?
  17491. need_locks=$lt_need_locks
  17492. # Do we need the lib prefix for modules?
  17493. need_lib_prefix=$need_lib_prefix
  17494. # Do we need a version for libraries?
  17495. need_version=$need_version
  17496. # Whether dlopen is supported.
  17497. dlopen_support=$enable_dlopen
  17498. # Whether dlopen of programs is supported.
  17499. dlopen_self=$enable_dlopen_self
  17500. # Whether dlopen of statically linked programs is supported.
  17501. dlopen_self_static=$enable_dlopen_self_static
  17502. # Compiler flag to prevent dynamic linking.
  17503. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17504. # Compiler flag to turn off builtin functions.
  17505. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17506. # Compiler flag to allow reflexive dlopens.
  17507. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17508. # Compiler flag to generate shared objects directly from archives.
  17509. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17510. # Compiler flag to generate thread-safe objects.
  17511. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17512. # Library versioning type.
  17513. version_type=$version_type
  17514. # Format of library name prefix.
  17515. libname_spec=$lt_libname_spec
  17516. # List of archive names. First name is the real one, the rest are links.
  17517. # The last name is the one that the linker finds with -lNAME.
  17518. library_names_spec=$lt_library_names_spec
  17519. # The coded name of the library, if different from the real name.
  17520. soname_spec=$lt_soname_spec
  17521. # Commands used to build and install an old-style archive.
  17522. RANLIB=$lt_RANLIB
  17523. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17524. old_postinstall_cmds=$lt_old_postinstall_cmds
  17525. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17526. # Create an old-style archive from a shared archive.
  17527. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17528. # Create a temporary old-style archive to link instead of a shared archive.
  17529. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17530. # Commands used to build and install a shared archive.
  17531. archive_cmds=$lt_archive_cmds_GCJ
  17532. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17533. postinstall_cmds=$lt_postinstall_cmds
  17534. postuninstall_cmds=$lt_postuninstall_cmds
  17535. # Commands used to build a loadable module (assumed same as above if empty)
  17536. module_cmds=$lt_module_cmds_GCJ
  17537. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17538. # Commands to strip libraries.
  17539. old_striplib=$lt_old_striplib
  17540. striplib=$lt_striplib
  17541. # Dependencies to place before the objects being linked to create a
  17542. # shared library.
  17543. predep_objects=$lt_predep_objects_GCJ
  17544. # Dependencies to place after the objects being linked to create a
  17545. # shared library.
  17546. postdep_objects=$lt_postdep_objects_GCJ
  17547. # Dependencies to place before the objects being linked to create a
  17548. # shared library.
  17549. predeps=$lt_predeps_GCJ
  17550. # Dependencies to place after the objects being linked to create a
  17551. # shared library.
  17552. postdeps=$lt_postdeps_GCJ
  17553. # The library search path used internally by the compiler when linking
  17554. # a shared library.
  17555. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17556. # Method to check whether dependent libraries are shared objects.
  17557. deplibs_check_method=$lt_deplibs_check_method
  17558. # Command to use when deplibs_check_method == file_magic.
  17559. file_magic_cmd=$lt_file_magic_cmd
  17560. # Flag that allows shared libraries with undefined symbols to be built.
  17561. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17562. # Flag that forces no undefined symbols.
  17563. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17564. # Commands used to finish a libtool library installation in a directory.
  17565. finish_cmds=$lt_finish_cmds
  17566. # Same as above, but a single script fragment to be evaled but not shown.
  17567. finish_eval=$lt_finish_eval
  17568. # Take the output of nm and produce a listing of raw symbols and C names.
  17569. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17570. # Transform the output of nm in a proper C declaration
  17571. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17572. # Transform the output of nm in a C name address pair
  17573. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17574. # This is the shared library runtime path variable.
  17575. runpath_var=$runpath_var
  17576. # This is the shared library path variable.
  17577. shlibpath_var=$shlibpath_var
  17578. # Is shlibpath searched before the hard-coded library search path?
  17579. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17580. # How to hardcode a shared library path into an executable.
  17581. hardcode_action=$hardcode_action_GCJ
  17582. # Whether we should hardcode library paths into libraries.
  17583. hardcode_into_libs=$hardcode_into_libs
  17584. # Flag to hardcode \$libdir into a binary during linking.
  17585. # This must work even if \$libdir does not exist.
  17586. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17587. # If ld is used when linking, flag to hardcode \$libdir into
  17588. # a binary during linking. This must work even if \$libdir does
  17589. # not exist.
  17590. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17591. # Whether we need a single -rpath flag with a separated argument.
  17592. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17593. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17594. # resulting binary.
  17595. hardcode_direct=$hardcode_direct_GCJ
  17596. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17597. # resulting binary.
  17598. hardcode_minus_L=$hardcode_minus_L_GCJ
  17599. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17600. # the resulting binary.
  17601. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17602. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17603. # and all subsequent libraries and executables linked against it.
  17604. hardcode_automatic=$hardcode_automatic_GCJ
  17605. # Variables whose values should be saved in libtool wrapper scripts and
  17606. # restored at relink time.
  17607. variables_saved_for_relink="$variables_saved_for_relink"
  17608. # Whether libtool must link a program against all its dependency libraries.
  17609. link_all_deplibs=$link_all_deplibs_GCJ
  17610. # Compile-time system search path for libraries
  17611. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17612. # Run-time system search path for libraries
  17613. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17614. # Fix the shell variable \$srcfile for the compiler.
  17615. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17616. # Set to yes if exported symbols are required.
  17617. always_export_symbols=$always_export_symbols_GCJ
  17618. # The commands to list exported symbols.
  17619. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17620. # The commands to extract the exported symbol list from a shared archive.
  17621. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17622. # Symbols that should not be listed in the preloaded symbols.
  17623. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17624. # Symbols that must always be exported.
  17625. include_expsyms=$lt_include_expsyms_GCJ
  17626. # ### END LIBTOOL TAG CONFIG: $tagname
  17627. __EOF__
  17628. else
  17629. # If there is no Makefile yet, we rely on a make rule to execute
  17630. # `config.status --recheck' to rerun these tests and create the
  17631. # libtool script then.
  17632. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17633. if test -f "$ltmain_in"; then
  17634. test -f Makefile && make "$ltmain"
  17635. fi
  17636. fi
  17637. ac_ext=c
  17638. ac_cpp='$CPP $CPPFLAGS'
  17639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17642. CC="$lt_save_CC"
  17643. else
  17644. tagname=""
  17645. fi
  17646. ;;
  17647. RC)
  17648. # Source file extension for RC test sources.
  17649. ac_ext=rc
  17650. # Object file extension for compiled RC test sources.
  17651. objext=o
  17652. objext_RC=$objext
  17653. # Code to be used in simple compile tests
  17654. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17655. # Code to be used in simple link tests
  17656. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17657. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17658. # If no C compiler was specified, use CC.
  17659. LTCC=${LTCC-"$CC"}
  17660. # Allow CC to be a program name with arguments.
  17661. compiler=$CC
  17662. # save warnings/boilerplate of simple test code
  17663. ac_outfile=conftest.$ac_objext
  17664. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17665. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17666. _lt_compiler_boilerplate=`cat conftest.err`
  17667. $rm conftest*
  17668. ac_outfile=conftest.$ac_objext
  17669. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17670. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  17671. _lt_linker_boilerplate=`cat conftest.err`
  17672. $rm conftest*
  17673. # Allow CC to be a program name with arguments.
  17674. lt_save_CC="$CC"
  17675. CC=${RC-"windres"}
  17676. compiler=$CC
  17677. compiler_RC=$CC
  17678. for cc_temp in $compiler""; do
  17679. case $cc_temp in
  17680. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17681. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17682. \-*) ;;
  17683. *) break;;
  17684. esac
  17685. done
  17686. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17687. lt_cv_prog_compiler_c_o_RC=yes
  17688. # The else clause should only fire when bootstrapping the
  17689. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17690. # with your package, and you will get complaints that there are
  17691. # no rules to generate ltmain.sh.
  17692. if test -f "$ltmain"; then
  17693. # See if we are running on zsh, and set the options which allow our commands through
  17694. # without removal of \ escapes.
  17695. if test -n "${ZSH_VERSION+set}" ; then
  17696. setopt NO_GLOB_SUBST
  17697. fi
  17698. # Now quote all the things that may contain metacharacters while being
  17699. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17700. # variables and quote the copies for generation of the libtool script.
  17701. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17702. SED SHELL STRIP \
  17703. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17704. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17705. deplibs_check_method reload_flag reload_cmds need_locks \
  17706. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17707. lt_cv_sys_global_symbol_to_c_name_address \
  17708. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17709. old_postinstall_cmds old_postuninstall_cmds \
  17710. compiler_RC \
  17711. CC_RC \
  17712. LD_RC \
  17713. lt_prog_compiler_wl_RC \
  17714. lt_prog_compiler_pic_RC \
  17715. lt_prog_compiler_static_RC \
  17716. lt_prog_compiler_no_builtin_flag_RC \
  17717. export_dynamic_flag_spec_RC \
  17718. thread_safe_flag_spec_RC \
  17719. whole_archive_flag_spec_RC \
  17720. enable_shared_with_static_runtimes_RC \
  17721. old_archive_cmds_RC \
  17722. old_archive_from_new_cmds_RC \
  17723. predep_objects_RC \
  17724. postdep_objects_RC \
  17725. predeps_RC \
  17726. postdeps_RC \
  17727. compiler_lib_search_path_RC \
  17728. archive_cmds_RC \
  17729. archive_expsym_cmds_RC \
  17730. postinstall_cmds_RC \
  17731. postuninstall_cmds_RC \
  17732. old_archive_from_expsyms_cmds_RC \
  17733. allow_undefined_flag_RC \
  17734. no_undefined_flag_RC \
  17735. export_symbols_cmds_RC \
  17736. hardcode_libdir_flag_spec_RC \
  17737. hardcode_libdir_flag_spec_ld_RC \
  17738. hardcode_libdir_separator_RC \
  17739. hardcode_automatic_RC \
  17740. module_cmds_RC \
  17741. module_expsym_cmds_RC \
  17742. lt_cv_prog_compiler_c_o_RC \
  17743. exclude_expsyms_RC \
  17744. include_expsyms_RC; do
  17745. case $var in
  17746. old_archive_cmds_RC | \
  17747. old_archive_from_new_cmds_RC | \
  17748. archive_cmds_RC | \
  17749. archive_expsym_cmds_RC | \
  17750. module_cmds_RC | \
  17751. module_expsym_cmds_RC | \
  17752. old_archive_from_expsyms_cmds_RC | \
  17753. export_symbols_cmds_RC | \
  17754. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17755. postinstall_cmds | postuninstall_cmds | \
  17756. old_postinstall_cmds | old_postuninstall_cmds | \
  17757. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17758. # Double-quote double-evaled strings.
  17759. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17760. ;;
  17761. *)
  17762. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17763. ;;
  17764. esac
  17765. done
  17766. case $lt_echo in
  17767. *'\$0 --fallback-echo"')
  17768. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17769. ;;
  17770. esac
  17771. cfgfile="$ofile"
  17772. cat <<__EOF__ >> "$cfgfile"
  17773. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17774. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17775. # Shell to use when invoking shell scripts.
  17776. SHELL=$lt_SHELL
  17777. # Whether or not to build shared libraries.
  17778. build_libtool_libs=$enable_shared
  17779. # Whether or not to build static libraries.
  17780. build_old_libs=$enable_static
  17781. # Whether or not to add -lc for building shared libraries.
  17782. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17783. # Whether or not to disallow shared libs when runtime libs are static
  17784. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17785. # Whether or not to optimize for fast installation.
  17786. fast_install=$enable_fast_install
  17787. # The host system.
  17788. host_alias=$host_alias
  17789. host=$host
  17790. host_os=$host_os
  17791. # The build system.
  17792. build_alias=$build_alias
  17793. build=$build
  17794. build_os=$build_os
  17795. # An echo program that does not interpret backslashes.
  17796. echo=$lt_echo
  17797. # The archiver.
  17798. AR=$lt_AR
  17799. AR_FLAGS=$lt_AR_FLAGS
  17800. # A C compiler.
  17801. LTCC=$lt_LTCC
  17802. # A language-specific compiler.
  17803. CC=$lt_compiler_RC
  17804. # Is the compiler the GNU C compiler?
  17805. with_gcc=$GCC_RC
  17806. # An ERE matcher.
  17807. EGREP=$lt_EGREP
  17808. # The linker used to build libraries.
  17809. LD=$lt_LD_RC
  17810. # Whether we need hard or soft links.
  17811. LN_S=$lt_LN_S
  17812. # A BSD-compatible nm program.
  17813. NM=$lt_NM
  17814. # A symbol stripping program
  17815. STRIP=$lt_STRIP
  17816. # Used to examine libraries when file_magic_cmd begins "file"
  17817. MAGIC_CMD=$MAGIC_CMD
  17818. # Used on cygwin: DLL creation program.
  17819. DLLTOOL="$DLLTOOL"
  17820. # Used on cygwin: object dumper.
  17821. OBJDUMP="$OBJDUMP"
  17822. # Used on cygwin: assembler.
  17823. AS="$AS"
  17824. # The name of the directory that contains temporary libtool files.
  17825. objdir=$objdir
  17826. # How to create reloadable object files.
  17827. reload_flag=$lt_reload_flag
  17828. reload_cmds=$lt_reload_cmds
  17829. # How to pass a linker flag through the compiler.
  17830. wl=$lt_lt_prog_compiler_wl_RC
  17831. # Object file suffix (normally "o").
  17832. objext="$ac_objext"
  17833. # Old archive suffix (normally "a").
  17834. libext="$libext"
  17835. # Shared library suffix (normally ".so").
  17836. shrext_cmds='$shrext_cmds'
  17837. # Executable file suffix (normally "").
  17838. exeext="$exeext"
  17839. # Additional compiler flags for building library objects.
  17840. pic_flag=$lt_lt_prog_compiler_pic_RC
  17841. pic_mode=$pic_mode
  17842. # What is the maximum length of a command?
  17843. max_cmd_len=$lt_cv_sys_max_cmd_len
  17844. # Does compiler simultaneously support -c and -o options?
  17845. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17846. # Must we lock files when doing compilation?
  17847. need_locks=$lt_need_locks
  17848. # Do we need the lib prefix for modules?
  17849. need_lib_prefix=$need_lib_prefix
  17850. # Do we need a version for libraries?
  17851. need_version=$need_version
  17852. # Whether dlopen is supported.
  17853. dlopen_support=$enable_dlopen
  17854. # Whether dlopen of programs is supported.
  17855. dlopen_self=$enable_dlopen_self
  17856. # Whether dlopen of statically linked programs is supported.
  17857. dlopen_self_static=$enable_dlopen_self_static
  17858. # Compiler flag to prevent dynamic linking.
  17859. link_static_flag=$lt_lt_prog_compiler_static_RC
  17860. # Compiler flag to turn off builtin functions.
  17861. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17862. # Compiler flag to allow reflexive dlopens.
  17863. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17864. # Compiler flag to generate shared objects directly from archives.
  17865. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17866. # Compiler flag to generate thread-safe objects.
  17867. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17868. # Library versioning type.
  17869. version_type=$version_type
  17870. # Format of library name prefix.
  17871. libname_spec=$lt_libname_spec
  17872. # List of archive names. First name is the real one, the rest are links.
  17873. # The last name is the one that the linker finds with -lNAME.
  17874. library_names_spec=$lt_library_names_spec
  17875. # The coded name of the library, if different from the real name.
  17876. soname_spec=$lt_soname_spec
  17877. # Commands used to build and install an old-style archive.
  17878. RANLIB=$lt_RANLIB
  17879. old_archive_cmds=$lt_old_archive_cmds_RC
  17880. old_postinstall_cmds=$lt_old_postinstall_cmds
  17881. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17882. # Create an old-style archive from a shared archive.
  17883. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17884. # Create a temporary old-style archive to link instead of a shared archive.
  17885. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17886. # Commands used to build and install a shared archive.
  17887. archive_cmds=$lt_archive_cmds_RC
  17888. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17889. postinstall_cmds=$lt_postinstall_cmds
  17890. postuninstall_cmds=$lt_postuninstall_cmds
  17891. # Commands used to build a loadable module (assumed same as above if empty)
  17892. module_cmds=$lt_module_cmds_RC
  17893. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17894. # Commands to strip libraries.
  17895. old_striplib=$lt_old_striplib
  17896. striplib=$lt_striplib
  17897. # Dependencies to place before the objects being linked to create a
  17898. # shared library.
  17899. predep_objects=$lt_predep_objects_RC
  17900. # Dependencies to place after the objects being linked to create a
  17901. # shared library.
  17902. postdep_objects=$lt_postdep_objects_RC
  17903. # Dependencies to place before the objects being linked to create a
  17904. # shared library.
  17905. predeps=$lt_predeps_RC
  17906. # Dependencies to place after the objects being linked to create a
  17907. # shared library.
  17908. postdeps=$lt_postdeps_RC
  17909. # The library search path used internally by the compiler when linking
  17910. # a shared library.
  17911. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17912. # Method to check whether dependent libraries are shared objects.
  17913. deplibs_check_method=$lt_deplibs_check_method
  17914. # Command to use when deplibs_check_method == file_magic.
  17915. file_magic_cmd=$lt_file_magic_cmd
  17916. # Flag that allows shared libraries with undefined symbols to be built.
  17917. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17918. # Flag that forces no undefined symbols.
  17919. no_undefined_flag=$lt_no_undefined_flag_RC
  17920. # Commands used to finish a libtool library installation in a directory.
  17921. finish_cmds=$lt_finish_cmds
  17922. # Same as above, but a single script fragment to be evaled but not shown.
  17923. finish_eval=$lt_finish_eval
  17924. # Take the output of nm and produce a listing of raw symbols and C names.
  17925. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17926. # Transform the output of nm in a proper C declaration
  17927. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17928. # Transform the output of nm in a C name address pair
  17929. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17930. # This is the shared library runtime path variable.
  17931. runpath_var=$runpath_var
  17932. # This is the shared library path variable.
  17933. shlibpath_var=$shlibpath_var
  17934. # Is shlibpath searched before the hard-coded library search path?
  17935. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17936. # How to hardcode a shared library path into an executable.
  17937. hardcode_action=$hardcode_action_RC
  17938. # Whether we should hardcode library paths into libraries.
  17939. hardcode_into_libs=$hardcode_into_libs
  17940. # Flag to hardcode \$libdir into a binary during linking.
  17941. # This must work even if \$libdir does not exist.
  17942. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17943. # If ld is used when linking, flag to hardcode \$libdir into
  17944. # a binary during linking. This must work even if \$libdir does
  17945. # not exist.
  17946. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17947. # Whether we need a single -rpath flag with a separated argument.
  17948. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17949. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17950. # resulting binary.
  17951. hardcode_direct=$hardcode_direct_RC
  17952. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17953. # resulting binary.
  17954. hardcode_minus_L=$hardcode_minus_L_RC
  17955. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17956. # the resulting binary.
  17957. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17958. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17959. # and all subsequent libraries and executables linked against it.
  17960. hardcode_automatic=$hardcode_automatic_RC
  17961. # Variables whose values should be saved in libtool wrapper scripts and
  17962. # restored at relink time.
  17963. variables_saved_for_relink="$variables_saved_for_relink"
  17964. # Whether libtool must link a program against all its dependency libraries.
  17965. link_all_deplibs=$link_all_deplibs_RC
  17966. # Compile-time system search path for libraries
  17967. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17968. # Run-time system search path for libraries
  17969. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17970. # Fix the shell variable \$srcfile for the compiler.
  17971. fix_srcfile_path="$fix_srcfile_path_RC"
  17972. # Set to yes if exported symbols are required.
  17973. always_export_symbols=$always_export_symbols_RC
  17974. # The commands to list exported symbols.
  17975. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17976. # The commands to extract the exported symbol list from a shared archive.
  17977. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17978. # Symbols that should not be listed in the preloaded symbols.
  17979. exclude_expsyms=$lt_exclude_expsyms_RC
  17980. # Symbols that must always be exported.
  17981. include_expsyms=$lt_include_expsyms_RC
  17982. # ### END LIBTOOL TAG CONFIG: $tagname
  17983. __EOF__
  17984. else
  17985. # If there is no Makefile yet, we rely on a make rule to execute
  17986. # `config.status --recheck' to rerun these tests and create the
  17987. # libtool script then.
  17988. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17989. if test -f "$ltmain_in"; then
  17990. test -f Makefile && make "$ltmain"
  17991. fi
  17992. fi
  17993. ac_ext=c
  17994. ac_cpp='$CPP $CPPFLAGS'
  17995. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17996. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17997. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17998. CC="$lt_save_CC"
  17999. ;;
  18000. *)
  18001. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18002. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18003. { (exit 1); exit 1; }; }
  18004. ;;
  18005. esac
  18006. # Append the new tag name to the list of available tags.
  18007. if test -n "$tagname" ; then
  18008. available_tags="$available_tags $tagname"
  18009. fi
  18010. fi
  18011. done
  18012. IFS="$lt_save_ifs"
  18013. # Now substitute the updated list of available tags.
  18014. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18015. mv "${ofile}T" "$ofile"
  18016. chmod +x "$ofile"
  18017. else
  18018. rm -f "${ofile}T"
  18019. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18020. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18021. { (exit 1); exit 1; }; }
  18022. fi
  18023. fi
  18024. # This can be used to rebuild libtool when needed
  18025. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18026. # Always use our own libtool.
  18027. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18028. # Prevent multiple expansion
  18029. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18030. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  18031. if test "${ac_cv_header_stdc+set}" = set; then
  18032. echo $ECHO_N "(cached) $ECHO_C" >&6
  18033. else
  18034. cat >conftest.$ac_ext <<_ACEOF
  18035. /* confdefs.h. */
  18036. _ACEOF
  18037. cat confdefs.h >>conftest.$ac_ext
  18038. cat >>conftest.$ac_ext <<_ACEOF
  18039. /* end confdefs.h. */
  18040. #include <stdlib.h>
  18041. #include <stdarg.h>
  18042. #include <string.h>
  18043. #include <float.h>
  18044. int
  18045. main ()
  18046. {
  18047. ;
  18048. return 0;
  18049. }
  18050. _ACEOF
  18051. rm -f conftest.$ac_objext
  18052. if { (ac_try="$ac_compile"
  18053. case "(($ac_try" in
  18054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18055. *) ac_try_echo=$ac_try;;
  18056. esac
  18057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18058. (eval "$ac_compile") 2>conftest.er1
  18059. ac_status=$?
  18060. grep -v '^ *+' conftest.er1 >conftest.err
  18061. rm -f conftest.er1
  18062. cat conftest.err >&5
  18063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18064. (exit $ac_status); } && {
  18065. test -z "$ac_c_werror_flag" ||
  18066. test ! -s conftest.err
  18067. } && test -s conftest.$ac_objext; then
  18068. ac_cv_header_stdc=yes
  18069. else
  18070. echo "$as_me: failed program was:" >&5
  18071. sed 's/^/| /' conftest.$ac_ext >&5
  18072. ac_cv_header_stdc=no
  18073. fi
  18074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18075. if test $ac_cv_header_stdc = yes; then
  18076. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18077. cat >conftest.$ac_ext <<_ACEOF
  18078. /* confdefs.h. */
  18079. _ACEOF
  18080. cat confdefs.h >>conftest.$ac_ext
  18081. cat >>conftest.$ac_ext <<_ACEOF
  18082. /* end confdefs.h. */
  18083. #include <string.h>
  18084. _ACEOF
  18085. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18086. $EGREP "memchr" >/dev/null 2>&1; then
  18087. :
  18088. else
  18089. ac_cv_header_stdc=no
  18090. fi
  18091. rm -f conftest*
  18092. fi
  18093. if test $ac_cv_header_stdc = yes; then
  18094. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18095. cat >conftest.$ac_ext <<_ACEOF
  18096. /* confdefs.h. */
  18097. _ACEOF
  18098. cat confdefs.h >>conftest.$ac_ext
  18099. cat >>conftest.$ac_ext <<_ACEOF
  18100. /* end confdefs.h. */
  18101. #include <stdlib.h>
  18102. _ACEOF
  18103. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18104. $EGREP "free" >/dev/null 2>&1; then
  18105. :
  18106. else
  18107. ac_cv_header_stdc=no
  18108. fi
  18109. rm -f conftest*
  18110. fi
  18111. if test $ac_cv_header_stdc = yes; then
  18112. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18113. if test "$cross_compiling" = yes; then
  18114. :
  18115. else
  18116. cat >conftest.$ac_ext <<_ACEOF
  18117. /* confdefs.h. */
  18118. _ACEOF
  18119. cat confdefs.h >>conftest.$ac_ext
  18120. cat >>conftest.$ac_ext <<_ACEOF
  18121. /* end confdefs.h. */
  18122. #include <ctype.h>
  18123. #include <stdlib.h>
  18124. #if ((' ' & 0x0FF) == 0x020)
  18125. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18126. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18127. #else
  18128. # define ISLOWER(c) \
  18129. (('a' <= (c) && (c) <= 'i') \
  18130. || ('j' <= (c) && (c) <= 'r') \
  18131. || ('s' <= (c) && (c) <= 'z'))
  18132. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18133. #endif
  18134. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18135. int
  18136. main ()
  18137. {
  18138. int i;
  18139. for (i = 0; i < 256; i++)
  18140. if (XOR (islower (i), ISLOWER (i))
  18141. || toupper (i) != TOUPPER (i))
  18142. return 2;
  18143. return 0;
  18144. }
  18145. _ACEOF
  18146. rm -f conftest$ac_exeext
  18147. if { (ac_try="$ac_link"
  18148. case "(($ac_try" in
  18149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18150. *) ac_try_echo=$ac_try;;
  18151. esac
  18152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18153. (eval "$ac_link") 2>&5
  18154. ac_status=$?
  18155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18156. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18157. { (case "(($ac_try" in
  18158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18159. *) ac_try_echo=$ac_try;;
  18160. esac
  18161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18162. (eval "$ac_try") 2>&5
  18163. ac_status=$?
  18164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18165. (exit $ac_status); }; }; then
  18166. :
  18167. else
  18168. echo "$as_me: program exited with status $ac_status" >&5
  18169. echo "$as_me: failed program was:" >&5
  18170. sed 's/^/| /' conftest.$ac_ext >&5
  18171. ( exit $ac_status )
  18172. ac_cv_header_stdc=no
  18173. fi
  18174. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18175. fi
  18176. fi
  18177. fi
  18178. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18179. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  18180. if test $ac_cv_header_stdc = yes; then
  18181. cat >>confdefs.h <<\_ACEOF
  18182. #define STDC_HEADERS 1
  18183. _ACEOF
  18184. fi
  18185. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  18186. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  18187. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  18188. echo $ECHO_N "(cached) $ECHO_C" >&6
  18189. else
  18190. cat >conftest.$ac_ext <<_ACEOF
  18191. /* confdefs.h. */
  18192. _ACEOF
  18193. cat confdefs.h >>conftest.$ac_ext
  18194. cat >>conftest.$ac_ext <<_ACEOF
  18195. /* end confdefs.h. */
  18196. #include <sys/types.h>
  18197. int
  18198. main ()
  18199. {
  18200. return makedev(0, 0);
  18201. ;
  18202. return 0;
  18203. }
  18204. _ACEOF
  18205. rm -f conftest.$ac_objext conftest$ac_exeext
  18206. if { (ac_try="$ac_link"
  18207. case "(($ac_try" in
  18208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18209. *) ac_try_echo=$ac_try;;
  18210. esac
  18211. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18212. (eval "$ac_link") 2>conftest.er1
  18213. ac_status=$?
  18214. grep -v '^ *+' conftest.er1 >conftest.err
  18215. rm -f conftest.er1
  18216. cat conftest.err >&5
  18217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18218. (exit $ac_status); } && {
  18219. test -z "$ac_c_werror_flag" ||
  18220. test ! -s conftest.err
  18221. } && test -s conftest$ac_exeext &&
  18222. $as_test_x conftest$ac_exeext; then
  18223. ac_cv_header_sys_types_h_makedev=yes
  18224. else
  18225. echo "$as_me: failed program was:" >&5
  18226. sed 's/^/| /' conftest.$ac_ext >&5
  18227. ac_cv_header_sys_types_h_makedev=no
  18228. fi
  18229. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18230. conftest$ac_exeext conftest.$ac_ext
  18231. fi
  18232. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  18233. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  18234. if test $ac_cv_header_sys_types_h_makedev = no; then
  18235. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18236. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18237. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18238. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18239. echo $ECHO_N "(cached) $ECHO_C" >&6
  18240. fi
  18241. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18242. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18243. else
  18244. # Is the header compilable?
  18245. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  18246. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  18247. cat >conftest.$ac_ext <<_ACEOF
  18248. /* confdefs.h. */
  18249. _ACEOF
  18250. cat confdefs.h >>conftest.$ac_ext
  18251. cat >>conftest.$ac_ext <<_ACEOF
  18252. /* end confdefs.h. */
  18253. $ac_includes_default
  18254. #include <sys/mkdev.h>
  18255. _ACEOF
  18256. rm -f conftest.$ac_objext
  18257. if { (ac_try="$ac_compile"
  18258. case "(($ac_try" in
  18259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18260. *) ac_try_echo=$ac_try;;
  18261. esac
  18262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18263. (eval "$ac_compile") 2>conftest.er1
  18264. ac_status=$?
  18265. grep -v '^ *+' conftest.er1 >conftest.err
  18266. rm -f conftest.er1
  18267. cat conftest.err >&5
  18268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18269. (exit $ac_status); } && {
  18270. test -z "$ac_c_werror_flag" ||
  18271. test ! -s conftest.err
  18272. } && test -s conftest.$ac_objext; then
  18273. ac_header_compiler=yes
  18274. else
  18275. echo "$as_me: failed program was:" >&5
  18276. sed 's/^/| /' conftest.$ac_ext >&5
  18277. ac_header_compiler=no
  18278. fi
  18279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18280. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18281. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18282. # Is the header present?
  18283. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  18284. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  18285. cat >conftest.$ac_ext <<_ACEOF
  18286. /* confdefs.h. */
  18287. _ACEOF
  18288. cat confdefs.h >>conftest.$ac_ext
  18289. cat >>conftest.$ac_ext <<_ACEOF
  18290. /* end confdefs.h. */
  18291. #include <sys/mkdev.h>
  18292. _ACEOF
  18293. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18294. case "(($ac_try" in
  18295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18296. *) ac_try_echo=$ac_try;;
  18297. esac
  18298. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18299. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18300. ac_status=$?
  18301. grep -v '^ *+' conftest.er1 >conftest.err
  18302. rm -f conftest.er1
  18303. cat conftest.err >&5
  18304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18305. (exit $ac_status); } >/dev/null && {
  18306. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18307. test ! -s conftest.err
  18308. }; then
  18309. ac_header_preproc=yes
  18310. else
  18311. echo "$as_me: failed program was:" >&5
  18312. sed 's/^/| /' conftest.$ac_ext >&5
  18313. ac_header_preproc=no
  18314. fi
  18315. rm -f conftest.err conftest.$ac_ext
  18316. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18317. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18318. # So? What about this header?
  18319. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18320. yes:no: )
  18321. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18322. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18323. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  18324. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  18325. ac_header_preproc=yes
  18326. ;;
  18327. no:yes:* )
  18328. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  18329. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  18330. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  18331. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  18332. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  18333. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  18334. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  18335. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18336. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  18337. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  18338. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  18339. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  18340. ( cat <<\_ASBOX
  18341. ## ---------------------------------- ##
  18342. ## Report this to christos@astron.com ##
  18343. ## ---------------------------------- ##
  18344. _ASBOX
  18345. ) | sed "s/^/$as_me: WARNING: /" >&2
  18346. ;;
  18347. esac
  18348. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18349. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18350. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18351. echo $ECHO_N "(cached) $ECHO_C" >&6
  18352. else
  18353. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  18354. fi
  18355. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18356. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18357. fi
  18358. if test $ac_cv_header_sys_mkdev_h = yes; then
  18359. cat >>confdefs.h <<\_ACEOF
  18360. #define MAJOR_IN_MKDEV 1
  18361. _ACEOF
  18362. fi
  18363. if test $ac_cv_header_sys_mkdev_h = no; then
  18364. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18365. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18366. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18367. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18368. echo $ECHO_N "(cached) $ECHO_C" >&6
  18369. fi
  18370. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18371. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18372. else
  18373. # Is the header compilable?
  18374. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  18375. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  18376. cat >conftest.$ac_ext <<_ACEOF
  18377. /* confdefs.h. */
  18378. _ACEOF
  18379. cat confdefs.h >>conftest.$ac_ext
  18380. cat >>conftest.$ac_ext <<_ACEOF
  18381. /* end confdefs.h. */
  18382. $ac_includes_default
  18383. #include <sys/sysmacros.h>
  18384. _ACEOF
  18385. rm -f conftest.$ac_objext
  18386. if { (ac_try="$ac_compile"
  18387. case "(($ac_try" in
  18388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18389. *) ac_try_echo=$ac_try;;
  18390. esac
  18391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18392. (eval "$ac_compile") 2>conftest.er1
  18393. ac_status=$?
  18394. grep -v '^ *+' conftest.er1 >conftest.err
  18395. rm -f conftest.er1
  18396. cat conftest.err >&5
  18397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18398. (exit $ac_status); } && {
  18399. test -z "$ac_c_werror_flag" ||
  18400. test ! -s conftest.err
  18401. } && test -s conftest.$ac_objext; then
  18402. ac_header_compiler=yes
  18403. else
  18404. echo "$as_me: failed program was:" >&5
  18405. sed 's/^/| /' conftest.$ac_ext >&5
  18406. ac_header_compiler=no
  18407. fi
  18408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18409. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18410. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18411. # Is the header present?
  18412. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18413. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  18414. cat >conftest.$ac_ext <<_ACEOF
  18415. /* confdefs.h. */
  18416. _ACEOF
  18417. cat confdefs.h >>conftest.$ac_ext
  18418. cat >>conftest.$ac_ext <<_ACEOF
  18419. /* end confdefs.h. */
  18420. #include <sys/sysmacros.h>
  18421. _ACEOF
  18422. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18423. case "(($ac_try" in
  18424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18425. *) ac_try_echo=$ac_try;;
  18426. esac
  18427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18428. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18429. ac_status=$?
  18430. grep -v '^ *+' conftest.er1 >conftest.err
  18431. rm -f conftest.er1
  18432. cat conftest.err >&5
  18433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18434. (exit $ac_status); } >/dev/null && {
  18435. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18436. test ! -s conftest.err
  18437. }; then
  18438. ac_header_preproc=yes
  18439. else
  18440. echo "$as_me: failed program was:" >&5
  18441. sed 's/^/| /' conftest.$ac_ext >&5
  18442. ac_header_preproc=no
  18443. fi
  18444. rm -f conftest.err conftest.$ac_ext
  18445. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18446. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18447. # So? What about this header?
  18448. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18449. yes:no: )
  18450. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18451. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18452. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18453. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18454. ac_header_preproc=yes
  18455. ;;
  18456. no:yes:* )
  18457. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18458. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18459. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18460. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18461. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18462. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18463. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18464. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18465. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18466. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18467. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18468. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18469. ( cat <<\_ASBOX
  18470. ## ---------------------------------- ##
  18471. ## Report this to christos@astron.com ##
  18472. ## ---------------------------------- ##
  18473. _ASBOX
  18474. ) | sed "s/^/$as_me: WARNING: /" >&2
  18475. ;;
  18476. esac
  18477. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18478. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18479. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18480. echo $ECHO_N "(cached) $ECHO_C" >&6
  18481. else
  18482. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18483. fi
  18484. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18485. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18486. fi
  18487. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18488. cat >>confdefs.h <<\_ACEOF
  18489. #define MAJOR_IN_SYSMACROS 1
  18490. _ACEOF
  18491. fi
  18492. fi
  18493. fi
  18494. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18495. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  18496. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  18497. echo $ECHO_N "(cached) $ECHO_C" >&6
  18498. else
  18499. cat >conftest.$ac_ext <<_ACEOF
  18500. /* confdefs.h. */
  18501. _ACEOF
  18502. cat confdefs.h >>conftest.$ac_ext
  18503. cat >>conftest.$ac_ext <<_ACEOF
  18504. /* end confdefs.h. */
  18505. #include <sys/types.h>
  18506. #include <sys/wait.h>
  18507. #ifndef WEXITSTATUS
  18508. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  18509. #endif
  18510. #ifndef WIFEXITED
  18511. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18512. #endif
  18513. int
  18514. main ()
  18515. {
  18516. int s;
  18517. wait (&s);
  18518. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18519. ;
  18520. return 0;
  18521. }
  18522. _ACEOF
  18523. rm -f conftest.$ac_objext
  18524. if { (ac_try="$ac_compile"
  18525. case "(($ac_try" in
  18526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18527. *) ac_try_echo=$ac_try;;
  18528. esac
  18529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18530. (eval "$ac_compile") 2>conftest.er1
  18531. ac_status=$?
  18532. grep -v '^ *+' conftest.er1 >conftest.err
  18533. rm -f conftest.er1
  18534. cat conftest.err >&5
  18535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18536. (exit $ac_status); } && {
  18537. test -z "$ac_c_werror_flag" ||
  18538. test ! -s conftest.err
  18539. } && test -s conftest.$ac_objext; then
  18540. ac_cv_header_sys_wait_h=yes
  18541. else
  18542. echo "$as_me: failed program was:" >&5
  18543. sed 's/^/| /' conftest.$ac_ext >&5
  18544. ac_cv_header_sys_wait_h=no
  18545. fi
  18546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18547. fi
  18548. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  18549. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  18550. if test $ac_cv_header_sys_wait_h = yes; then
  18551. cat >>confdefs.h <<\_ACEOF
  18552. #define HAVE_SYS_WAIT_H 1
  18553. _ACEOF
  18554. fi
  18555. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  18556. do
  18557. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18558. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18559. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18560. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18561. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18562. echo $ECHO_N "(cached) $ECHO_C" >&6
  18563. fi
  18564. ac_res=`eval echo '${'$as_ac_Header'}'`
  18565. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18566. echo "${ECHO_T}$ac_res" >&6; }
  18567. else
  18568. # Is the header compilable?
  18569. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18570. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18571. cat >conftest.$ac_ext <<_ACEOF
  18572. /* confdefs.h. */
  18573. _ACEOF
  18574. cat confdefs.h >>conftest.$ac_ext
  18575. cat >>conftest.$ac_ext <<_ACEOF
  18576. /* end confdefs.h. */
  18577. $ac_includes_default
  18578. #include <$ac_header>
  18579. _ACEOF
  18580. rm -f conftest.$ac_objext
  18581. if { (ac_try="$ac_compile"
  18582. case "(($ac_try" in
  18583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18584. *) ac_try_echo=$ac_try;;
  18585. esac
  18586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18587. (eval "$ac_compile") 2>conftest.er1
  18588. ac_status=$?
  18589. grep -v '^ *+' conftest.er1 >conftest.err
  18590. rm -f conftest.er1
  18591. cat conftest.err >&5
  18592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18593. (exit $ac_status); } && {
  18594. test -z "$ac_c_werror_flag" ||
  18595. test ! -s conftest.err
  18596. } && test -s conftest.$ac_objext; then
  18597. ac_header_compiler=yes
  18598. else
  18599. echo "$as_me: failed program was:" >&5
  18600. sed 's/^/| /' conftest.$ac_ext >&5
  18601. ac_header_compiler=no
  18602. fi
  18603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18604. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18605. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18606. # Is the header present?
  18607. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18608. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18609. cat >conftest.$ac_ext <<_ACEOF
  18610. /* confdefs.h. */
  18611. _ACEOF
  18612. cat confdefs.h >>conftest.$ac_ext
  18613. cat >>conftest.$ac_ext <<_ACEOF
  18614. /* end confdefs.h. */
  18615. #include <$ac_header>
  18616. _ACEOF
  18617. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18618. case "(($ac_try" in
  18619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18620. *) ac_try_echo=$ac_try;;
  18621. esac
  18622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18623. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18624. ac_status=$?
  18625. grep -v '^ *+' conftest.er1 >conftest.err
  18626. rm -f conftest.er1
  18627. cat conftest.err >&5
  18628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18629. (exit $ac_status); } >/dev/null && {
  18630. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18631. test ! -s conftest.err
  18632. }; then
  18633. ac_header_preproc=yes
  18634. else
  18635. echo "$as_me: failed program was:" >&5
  18636. sed 's/^/| /' conftest.$ac_ext >&5
  18637. ac_header_preproc=no
  18638. fi
  18639. rm -f conftest.err conftest.$ac_ext
  18640. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18641. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18642. # So? What about this header?
  18643. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18644. yes:no: )
  18645. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18646. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18647. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18648. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18649. ac_header_preproc=yes
  18650. ;;
  18651. no:yes:* )
  18652. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18653. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18654. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18655. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18656. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18657. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18658. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18659. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18660. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18661. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18662. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18663. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18664. ( cat <<\_ASBOX
  18665. ## ---------------------------------- ##
  18666. ## Report this to christos@astron.com ##
  18667. ## ---------------------------------- ##
  18668. _ASBOX
  18669. ) | sed "s/^/$as_me: WARNING: /" >&2
  18670. ;;
  18671. esac
  18672. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18673. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18674. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18675. echo $ECHO_N "(cached) $ECHO_C" >&6
  18676. else
  18677. eval "$as_ac_Header=\$ac_header_preproc"
  18678. fi
  18679. ac_res=`eval echo '${'$as_ac_Header'}'`
  18680. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18681. echo "${ECHO_T}$ac_res" >&6; }
  18682. fi
  18683. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18684. cat >>confdefs.h <<_ACEOF
  18685. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18686. _ACEOF
  18687. fi
  18688. done
  18689. for ac_header in utime.h wchar.h wctype.h limits.h
  18690. do
  18691. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18692. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18693. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18694. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18695. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18696. echo $ECHO_N "(cached) $ECHO_C" >&6
  18697. fi
  18698. ac_res=`eval echo '${'$as_ac_Header'}'`
  18699. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18700. echo "${ECHO_T}$ac_res" >&6; }
  18701. else
  18702. # Is the header compilable?
  18703. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18704. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18705. cat >conftest.$ac_ext <<_ACEOF
  18706. /* confdefs.h. */
  18707. _ACEOF
  18708. cat confdefs.h >>conftest.$ac_ext
  18709. cat >>conftest.$ac_ext <<_ACEOF
  18710. /* end confdefs.h. */
  18711. $ac_includes_default
  18712. #include <$ac_header>
  18713. _ACEOF
  18714. rm -f conftest.$ac_objext
  18715. if { (ac_try="$ac_compile"
  18716. case "(($ac_try" in
  18717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18718. *) ac_try_echo=$ac_try;;
  18719. esac
  18720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18721. (eval "$ac_compile") 2>conftest.er1
  18722. ac_status=$?
  18723. grep -v '^ *+' conftest.er1 >conftest.err
  18724. rm -f conftest.er1
  18725. cat conftest.err >&5
  18726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18727. (exit $ac_status); } && {
  18728. test -z "$ac_c_werror_flag" ||
  18729. test ! -s conftest.err
  18730. } && test -s conftest.$ac_objext; then
  18731. ac_header_compiler=yes
  18732. else
  18733. echo "$as_me: failed program was:" >&5
  18734. sed 's/^/| /' conftest.$ac_ext >&5
  18735. ac_header_compiler=no
  18736. fi
  18737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18738. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18739. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18740. # Is the header present?
  18741. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18742. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18743. cat >conftest.$ac_ext <<_ACEOF
  18744. /* confdefs.h. */
  18745. _ACEOF
  18746. cat confdefs.h >>conftest.$ac_ext
  18747. cat >>conftest.$ac_ext <<_ACEOF
  18748. /* end confdefs.h. */
  18749. #include <$ac_header>
  18750. _ACEOF
  18751. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18752. case "(($ac_try" in
  18753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18754. *) ac_try_echo=$ac_try;;
  18755. esac
  18756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18757. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18758. ac_status=$?
  18759. grep -v '^ *+' conftest.er1 >conftest.err
  18760. rm -f conftest.er1
  18761. cat conftest.err >&5
  18762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18763. (exit $ac_status); } >/dev/null && {
  18764. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18765. test ! -s conftest.err
  18766. }; then
  18767. ac_header_preproc=yes
  18768. else
  18769. echo "$as_me: failed program was:" >&5
  18770. sed 's/^/| /' conftest.$ac_ext >&5
  18771. ac_header_preproc=no
  18772. fi
  18773. rm -f conftest.err conftest.$ac_ext
  18774. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18775. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18776. # So? What about this header?
  18777. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18778. yes:no: )
  18779. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18780. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18781. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18782. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18783. ac_header_preproc=yes
  18784. ;;
  18785. no:yes:* )
  18786. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18787. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18788. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18789. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18790. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18791. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18792. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18793. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18794. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18795. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18796. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18797. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18798. ( cat <<\_ASBOX
  18799. ## ---------------------------------- ##
  18800. ## Report this to christos@astron.com ##
  18801. ## ---------------------------------- ##
  18802. _ASBOX
  18803. ) | sed "s/^/$as_me: WARNING: /" >&2
  18804. ;;
  18805. esac
  18806. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18807. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18808. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18809. echo $ECHO_N "(cached) $ECHO_C" >&6
  18810. else
  18811. eval "$as_ac_Header=\$ac_header_preproc"
  18812. fi
  18813. ac_res=`eval echo '${'$as_ac_Header'}'`
  18814. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18815. echo "${ECHO_T}$ac_res" >&6; }
  18816. fi
  18817. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18818. cat >>confdefs.h <<_ACEOF
  18819. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18820. _ACEOF
  18821. fi
  18822. done
  18823. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  18824. do
  18825. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18826. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18827. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18828. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18829. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18830. echo $ECHO_N "(cached) $ECHO_C" >&6
  18831. fi
  18832. ac_res=`eval echo '${'$as_ac_Header'}'`
  18833. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18834. echo "${ECHO_T}$ac_res" >&6; }
  18835. else
  18836. # Is the header compilable?
  18837. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18838. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18839. cat >conftest.$ac_ext <<_ACEOF
  18840. /* confdefs.h. */
  18841. _ACEOF
  18842. cat confdefs.h >>conftest.$ac_ext
  18843. cat >>conftest.$ac_ext <<_ACEOF
  18844. /* end confdefs.h. */
  18845. $ac_includes_default
  18846. #include <$ac_header>
  18847. _ACEOF
  18848. rm -f conftest.$ac_objext
  18849. if { (ac_try="$ac_compile"
  18850. case "(($ac_try" in
  18851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18852. *) ac_try_echo=$ac_try;;
  18853. esac
  18854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18855. (eval "$ac_compile") 2>conftest.er1
  18856. ac_status=$?
  18857. grep -v '^ *+' conftest.er1 >conftest.err
  18858. rm -f conftest.er1
  18859. cat conftest.err >&5
  18860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18861. (exit $ac_status); } && {
  18862. test -z "$ac_c_werror_flag" ||
  18863. test ! -s conftest.err
  18864. } && test -s conftest.$ac_objext; then
  18865. ac_header_compiler=yes
  18866. else
  18867. echo "$as_me: failed program was:" >&5
  18868. sed 's/^/| /' conftest.$ac_ext >&5
  18869. ac_header_compiler=no
  18870. fi
  18871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18872. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18873. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18874. # Is the header present?
  18875. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18876. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18877. cat >conftest.$ac_ext <<_ACEOF
  18878. /* confdefs.h. */
  18879. _ACEOF
  18880. cat confdefs.h >>conftest.$ac_ext
  18881. cat >>conftest.$ac_ext <<_ACEOF
  18882. /* end confdefs.h. */
  18883. #include <$ac_header>
  18884. _ACEOF
  18885. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18886. case "(($ac_try" in
  18887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18888. *) ac_try_echo=$ac_try;;
  18889. esac
  18890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18891. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18892. ac_status=$?
  18893. grep -v '^ *+' conftest.er1 >conftest.err
  18894. rm -f conftest.er1
  18895. cat conftest.err >&5
  18896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18897. (exit $ac_status); } >/dev/null && {
  18898. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18899. test ! -s conftest.err
  18900. }; then
  18901. ac_header_preproc=yes
  18902. else
  18903. echo "$as_me: failed program was:" >&5
  18904. sed 's/^/| /' conftest.$ac_ext >&5
  18905. ac_header_preproc=no
  18906. fi
  18907. rm -f conftest.err conftest.$ac_ext
  18908. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18909. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18910. # So? What about this header?
  18911. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18912. yes:no: )
  18913. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18914. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18915. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18916. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18917. ac_header_preproc=yes
  18918. ;;
  18919. no:yes:* )
  18920. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18921. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18922. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18923. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18924. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18925. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18926. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18927. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18928. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18929. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18930. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18931. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18932. ( cat <<\_ASBOX
  18933. ## ---------------------------------- ##
  18934. ## Report this to christos@astron.com ##
  18935. ## ---------------------------------- ##
  18936. _ASBOX
  18937. ) | sed "s/^/$as_me: WARNING: /" >&2
  18938. ;;
  18939. esac
  18940. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18941. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18942. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18943. echo $ECHO_N "(cached) $ECHO_C" >&6
  18944. else
  18945. eval "$as_ac_Header=\$ac_header_preproc"
  18946. fi
  18947. ac_res=`eval echo '${'$as_ac_Header'}'`
  18948. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18949. echo "${ECHO_T}$ac_res" >&6; }
  18950. fi
  18951. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18952. cat >>confdefs.h <<_ACEOF
  18953. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18954. _ACEOF
  18955. fi
  18956. done
  18957. for ac_header in zlib.h
  18958. do
  18959. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18960. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18961. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18962. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18963. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18964. echo $ECHO_N "(cached) $ECHO_C" >&6
  18965. fi
  18966. ac_res=`eval echo '${'$as_ac_Header'}'`
  18967. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18968. echo "${ECHO_T}$ac_res" >&6; }
  18969. else
  18970. # Is the header compilable?
  18971. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18972. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18973. cat >conftest.$ac_ext <<_ACEOF
  18974. /* confdefs.h. */
  18975. _ACEOF
  18976. cat confdefs.h >>conftest.$ac_ext
  18977. cat >>conftest.$ac_ext <<_ACEOF
  18978. /* end confdefs.h. */
  18979. $ac_includes_default
  18980. #include <$ac_header>
  18981. _ACEOF
  18982. rm -f conftest.$ac_objext
  18983. if { (ac_try="$ac_compile"
  18984. case "(($ac_try" in
  18985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18986. *) ac_try_echo=$ac_try;;
  18987. esac
  18988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18989. (eval "$ac_compile") 2>conftest.er1
  18990. ac_status=$?
  18991. grep -v '^ *+' conftest.er1 >conftest.err
  18992. rm -f conftest.er1
  18993. cat conftest.err >&5
  18994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18995. (exit $ac_status); } && {
  18996. test -z "$ac_c_werror_flag" ||
  18997. test ! -s conftest.err
  18998. } && test -s conftest.$ac_objext; then
  18999. ac_header_compiler=yes
  19000. else
  19001. echo "$as_me: failed program was:" >&5
  19002. sed 's/^/| /' conftest.$ac_ext >&5
  19003. ac_header_compiler=no
  19004. fi
  19005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19006. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19007. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19008. # Is the header present?
  19009. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19010. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19011. cat >conftest.$ac_ext <<_ACEOF
  19012. /* confdefs.h. */
  19013. _ACEOF
  19014. cat confdefs.h >>conftest.$ac_ext
  19015. cat >>conftest.$ac_ext <<_ACEOF
  19016. /* end confdefs.h. */
  19017. #include <$ac_header>
  19018. _ACEOF
  19019. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19020. case "(($ac_try" in
  19021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19022. *) ac_try_echo=$ac_try;;
  19023. esac
  19024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19025. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19026. ac_status=$?
  19027. grep -v '^ *+' conftest.er1 >conftest.err
  19028. rm -f conftest.er1
  19029. cat conftest.err >&5
  19030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19031. (exit $ac_status); } >/dev/null && {
  19032. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19033. test ! -s conftest.err
  19034. }; then
  19035. ac_header_preproc=yes
  19036. else
  19037. echo "$as_me: failed program was:" >&5
  19038. sed 's/^/| /' conftest.$ac_ext >&5
  19039. ac_header_preproc=no
  19040. fi
  19041. rm -f conftest.err conftest.$ac_ext
  19042. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19043. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19044. # So? What about this header?
  19045. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19046. yes:no: )
  19047. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19048. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19049. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19050. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19051. ac_header_preproc=yes
  19052. ;;
  19053. no:yes:* )
  19054. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19055. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19056. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19057. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19058. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19059. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19060. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19061. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19062. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19063. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19064. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19065. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19066. ( cat <<\_ASBOX
  19067. ## ---------------------------------- ##
  19068. ## Report this to christos@astron.com ##
  19069. ## ---------------------------------- ##
  19070. _ASBOX
  19071. ) | sed "s/^/$as_me: WARNING: /" >&2
  19072. ;;
  19073. esac
  19074. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19075. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19076. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19077. echo $ECHO_N "(cached) $ECHO_C" >&6
  19078. else
  19079. eval "$as_ac_Header=\$ac_header_preproc"
  19080. fi
  19081. ac_res=`eval echo '${'$as_ac_Header'}'`
  19082. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19083. echo "${ECHO_T}$ac_res" >&6; }
  19084. fi
  19085. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19086. cat >>confdefs.h <<_ACEOF
  19087. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19088. _ACEOF
  19089. fi
  19090. done
  19091. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19092. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19093. if test "${ac_cv_c_const+set}" = set; then
  19094. echo $ECHO_N "(cached) $ECHO_C" >&6
  19095. else
  19096. cat >conftest.$ac_ext <<_ACEOF
  19097. /* confdefs.h. */
  19098. _ACEOF
  19099. cat confdefs.h >>conftest.$ac_ext
  19100. cat >>conftest.$ac_ext <<_ACEOF
  19101. /* end confdefs.h. */
  19102. int
  19103. main ()
  19104. {
  19105. /* FIXME: Include the comments suggested by Paul. */
  19106. #ifndef __cplusplus
  19107. /* Ultrix mips cc rejects this. */
  19108. typedef int charset[2];
  19109. const charset cs;
  19110. /* SunOS 4.1.1 cc rejects this. */
  19111. char const *const *pcpcc;
  19112. char **ppc;
  19113. /* NEC SVR4.0.2 mips cc rejects this. */
  19114. struct point {int x, y;};
  19115. static struct point const zero = {0,0};
  19116. /* AIX XL C 1.02.0.0 rejects this.
  19117. It does not let you subtract one const X* pointer from another in
  19118. an arm of an if-expression whose if-part is not a constant
  19119. expression */
  19120. const char *g = "string";
  19121. pcpcc = &g + (g ? g-g : 0);
  19122. /* HPUX 7.0 cc rejects these. */
  19123. ++pcpcc;
  19124. ppc = (char**) pcpcc;
  19125. pcpcc = (char const *const *) ppc;
  19126. { /* SCO 3.2v4 cc rejects this. */
  19127. char *t;
  19128. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19129. *t++ = 0;
  19130. if (s) return 0;
  19131. }
  19132. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19133. int x[] = {25, 17};
  19134. const int *foo = &x[0];
  19135. ++foo;
  19136. }
  19137. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19138. typedef const int *iptr;
  19139. iptr p = 0;
  19140. ++p;
  19141. }
  19142. { /* AIX XL C 1.02.0.0 rejects this saying
  19143. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19144. struct s { int j; const int *ap[3]; };
  19145. struct s *b; b->j = 5;
  19146. }
  19147. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19148. const int foo = 10;
  19149. if (!foo) return 0;
  19150. }
  19151. return !cs[0] && !zero.x;
  19152. #endif
  19153. ;
  19154. return 0;
  19155. }
  19156. _ACEOF
  19157. rm -f conftest.$ac_objext
  19158. if { (ac_try="$ac_compile"
  19159. case "(($ac_try" in
  19160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19161. *) ac_try_echo=$ac_try;;
  19162. esac
  19163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19164. (eval "$ac_compile") 2>conftest.er1
  19165. ac_status=$?
  19166. grep -v '^ *+' conftest.er1 >conftest.err
  19167. rm -f conftest.er1
  19168. cat conftest.err >&5
  19169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19170. (exit $ac_status); } && {
  19171. test -z "$ac_c_werror_flag" ||
  19172. test ! -s conftest.err
  19173. } && test -s conftest.$ac_objext; then
  19174. ac_cv_c_const=yes
  19175. else
  19176. echo "$as_me: failed program was:" >&5
  19177. sed 's/^/| /' conftest.$ac_ext >&5
  19178. ac_cv_c_const=no
  19179. fi
  19180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19181. fi
  19182. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19183. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  19184. if test $ac_cv_c_const = no; then
  19185. cat >>confdefs.h <<\_ACEOF
  19186. #define const
  19187. _ACEOF
  19188. fi
  19189. { echo "$as_me:$LINENO: checking for off_t" >&5
  19190. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  19191. if test "${ac_cv_type_off_t+set}" = set; then
  19192. echo $ECHO_N "(cached) $ECHO_C" >&6
  19193. else
  19194. cat >conftest.$ac_ext <<_ACEOF
  19195. /* confdefs.h. */
  19196. _ACEOF
  19197. cat confdefs.h >>conftest.$ac_ext
  19198. cat >>conftest.$ac_ext <<_ACEOF
  19199. /* end confdefs.h. */
  19200. $ac_includes_default
  19201. typedef off_t ac__type_new_;
  19202. int
  19203. main ()
  19204. {
  19205. if ((ac__type_new_ *) 0)
  19206. return 0;
  19207. if (sizeof (ac__type_new_))
  19208. return 0;
  19209. ;
  19210. return 0;
  19211. }
  19212. _ACEOF
  19213. rm -f conftest.$ac_objext
  19214. if { (ac_try="$ac_compile"
  19215. case "(($ac_try" in
  19216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19217. *) ac_try_echo=$ac_try;;
  19218. esac
  19219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19220. (eval "$ac_compile") 2>conftest.er1
  19221. ac_status=$?
  19222. grep -v '^ *+' conftest.er1 >conftest.err
  19223. rm -f conftest.er1
  19224. cat conftest.err >&5
  19225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19226. (exit $ac_status); } && {
  19227. test -z "$ac_c_werror_flag" ||
  19228. test ! -s conftest.err
  19229. } && test -s conftest.$ac_objext; then
  19230. ac_cv_type_off_t=yes
  19231. else
  19232. echo "$as_me: failed program was:" >&5
  19233. sed 's/^/| /' conftest.$ac_ext >&5
  19234. ac_cv_type_off_t=no
  19235. fi
  19236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19237. fi
  19238. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  19239. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  19240. if test $ac_cv_type_off_t = yes; then
  19241. :
  19242. else
  19243. cat >>confdefs.h <<_ACEOF
  19244. #define off_t long int
  19245. _ACEOF
  19246. fi
  19247. { echo "$as_me:$LINENO: checking for size_t" >&5
  19248. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19249. if test "${ac_cv_type_size_t+set}" = set; then
  19250. echo $ECHO_N "(cached) $ECHO_C" >&6
  19251. else
  19252. cat >conftest.$ac_ext <<_ACEOF
  19253. /* confdefs.h. */
  19254. _ACEOF
  19255. cat confdefs.h >>conftest.$ac_ext
  19256. cat >>conftest.$ac_ext <<_ACEOF
  19257. /* end confdefs.h. */
  19258. $ac_includes_default
  19259. typedef size_t ac__type_new_;
  19260. int
  19261. main ()
  19262. {
  19263. if ((ac__type_new_ *) 0)
  19264. return 0;
  19265. if (sizeof (ac__type_new_))
  19266. return 0;
  19267. ;
  19268. return 0;
  19269. }
  19270. _ACEOF
  19271. rm -f conftest.$ac_objext
  19272. if { (ac_try="$ac_compile"
  19273. case "(($ac_try" in
  19274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19275. *) ac_try_echo=$ac_try;;
  19276. esac
  19277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19278. (eval "$ac_compile") 2>conftest.er1
  19279. ac_status=$?
  19280. grep -v '^ *+' conftest.er1 >conftest.err
  19281. rm -f conftest.er1
  19282. cat conftest.err >&5
  19283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19284. (exit $ac_status); } && {
  19285. test -z "$ac_c_werror_flag" ||
  19286. test ! -s conftest.err
  19287. } && test -s conftest.$ac_objext; then
  19288. ac_cv_type_size_t=yes
  19289. else
  19290. echo "$as_me: failed program was:" >&5
  19291. sed 's/^/| /' conftest.$ac_ext >&5
  19292. ac_cv_type_size_t=no
  19293. fi
  19294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19295. fi
  19296. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19297. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19298. if test $ac_cv_type_size_t = yes; then
  19299. :
  19300. else
  19301. cat >>confdefs.h <<_ACEOF
  19302. #define size_t unsigned int
  19303. _ACEOF
  19304. fi
  19305. { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  19306. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
  19307. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  19308. echo $ECHO_N "(cached) $ECHO_C" >&6
  19309. else
  19310. cat >conftest.$ac_ext <<_ACEOF
  19311. /* confdefs.h. */
  19312. _ACEOF
  19313. cat confdefs.h >>conftest.$ac_ext
  19314. cat >>conftest.$ac_ext <<_ACEOF
  19315. /* end confdefs.h. */
  19316. $ac_includes_default
  19317. int
  19318. main ()
  19319. {
  19320. static struct stat ac_aggr;
  19321. if (ac_aggr.st_rdev)
  19322. return 0;
  19323. ;
  19324. return 0;
  19325. }
  19326. _ACEOF
  19327. rm -f conftest.$ac_objext
  19328. if { (ac_try="$ac_compile"
  19329. case "(($ac_try" in
  19330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19331. *) ac_try_echo=$ac_try;;
  19332. esac
  19333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19334. (eval "$ac_compile") 2>conftest.er1
  19335. ac_status=$?
  19336. grep -v '^ *+' conftest.er1 >conftest.err
  19337. rm -f conftest.er1
  19338. cat conftest.err >&5
  19339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19340. (exit $ac_status); } && {
  19341. test -z "$ac_c_werror_flag" ||
  19342. test ! -s conftest.err
  19343. } && test -s conftest.$ac_objext; then
  19344. ac_cv_member_struct_stat_st_rdev=yes
  19345. else
  19346. echo "$as_me: failed program was:" >&5
  19347. sed 's/^/| /' conftest.$ac_ext >&5
  19348. cat >conftest.$ac_ext <<_ACEOF
  19349. /* confdefs.h. */
  19350. _ACEOF
  19351. cat confdefs.h >>conftest.$ac_ext
  19352. cat >>conftest.$ac_ext <<_ACEOF
  19353. /* end confdefs.h. */
  19354. $ac_includes_default
  19355. int
  19356. main ()
  19357. {
  19358. static struct stat ac_aggr;
  19359. if (sizeof ac_aggr.st_rdev)
  19360. return 0;
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. rm -f conftest.$ac_objext
  19366. if { (ac_try="$ac_compile"
  19367. case "(($ac_try" in
  19368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19369. *) ac_try_echo=$ac_try;;
  19370. esac
  19371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19372. (eval "$ac_compile") 2>conftest.er1
  19373. ac_status=$?
  19374. grep -v '^ *+' conftest.er1 >conftest.err
  19375. rm -f conftest.er1
  19376. cat conftest.err >&5
  19377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19378. (exit $ac_status); } && {
  19379. test -z "$ac_c_werror_flag" ||
  19380. test ! -s conftest.err
  19381. } && test -s conftest.$ac_objext; then
  19382. ac_cv_member_struct_stat_st_rdev=yes
  19383. else
  19384. echo "$as_me: failed program was:" >&5
  19385. sed 's/^/| /' conftest.$ac_ext >&5
  19386. ac_cv_member_struct_stat_st_rdev=no
  19387. fi
  19388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19389. fi
  19390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19391. fi
  19392. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  19393. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
  19394. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  19395. cat >>confdefs.h <<_ACEOF
  19396. #define HAVE_STRUCT_STAT_ST_RDEV 1
  19397. _ACEOF
  19398. fi
  19399. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  19400. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  19401. if test "${ac_cv_struct_tm+set}" = set; then
  19402. echo $ECHO_N "(cached) $ECHO_C" >&6
  19403. else
  19404. cat >conftest.$ac_ext <<_ACEOF
  19405. /* confdefs.h. */
  19406. _ACEOF
  19407. cat confdefs.h >>conftest.$ac_ext
  19408. cat >>conftest.$ac_ext <<_ACEOF
  19409. /* end confdefs.h. */
  19410. #include <sys/types.h>
  19411. #include <time.h>
  19412. int
  19413. main ()
  19414. {
  19415. struct tm tm;
  19416. int *p = &tm.tm_sec;
  19417. return !p;
  19418. ;
  19419. return 0;
  19420. }
  19421. _ACEOF
  19422. rm -f conftest.$ac_objext
  19423. if { (ac_try="$ac_compile"
  19424. case "(($ac_try" in
  19425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19426. *) ac_try_echo=$ac_try;;
  19427. esac
  19428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19429. (eval "$ac_compile") 2>conftest.er1
  19430. ac_status=$?
  19431. grep -v '^ *+' conftest.er1 >conftest.err
  19432. rm -f conftest.er1
  19433. cat conftest.err >&5
  19434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19435. (exit $ac_status); } && {
  19436. test -z "$ac_c_werror_flag" ||
  19437. test ! -s conftest.err
  19438. } && test -s conftest.$ac_objext; then
  19439. ac_cv_struct_tm=time.h
  19440. else
  19441. echo "$as_me: failed program was:" >&5
  19442. sed 's/^/| /' conftest.$ac_ext >&5
  19443. ac_cv_struct_tm=sys/time.h
  19444. fi
  19445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19446. fi
  19447. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  19448. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  19449. if test $ac_cv_struct_tm = sys/time.h; then
  19450. cat >>confdefs.h <<\_ACEOF
  19451. #define TM_IN_SYS_TIME 1
  19452. _ACEOF
  19453. fi
  19454. { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  19455. echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
  19456. if test "${ac_cv_struct_tm_zone+set}" = set; then
  19457. echo $ECHO_N "(cached) $ECHO_C" >&6
  19458. else
  19459. cat >conftest.$ac_ext <<_ACEOF
  19460. /* confdefs.h. */
  19461. _ACEOF
  19462. cat confdefs.h >>conftest.$ac_ext
  19463. cat >>conftest.$ac_ext <<_ACEOF
  19464. /* end confdefs.h. */
  19465. #include <sys/types.h>
  19466. #include <$ac_cv_struct_tm>
  19467. int
  19468. main ()
  19469. {
  19470. struct tm tm; tm.tm_zone;
  19471. ;
  19472. return 0;
  19473. }
  19474. _ACEOF
  19475. rm -f conftest.$ac_objext
  19476. if { (ac_try="$ac_compile"
  19477. case "(($ac_try" in
  19478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19479. *) ac_try_echo=$ac_try;;
  19480. esac
  19481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19482. (eval "$ac_compile") 2>conftest.er1
  19483. ac_status=$?
  19484. grep -v '^ *+' conftest.er1 >conftest.err
  19485. rm -f conftest.er1
  19486. cat conftest.err >&5
  19487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19488. (exit $ac_status); } && {
  19489. test -z "$ac_c_werror_flag" ||
  19490. test ! -s conftest.err
  19491. } && test -s conftest.$ac_objext; then
  19492. ac_cv_struct_tm_zone=yes
  19493. else
  19494. echo "$as_me: failed program was:" >&5
  19495. sed 's/^/| /' conftest.$ac_ext >&5
  19496. ac_cv_struct_tm_zone=no
  19497. fi
  19498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19499. fi
  19500. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  19501. echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
  19502. if test "$ac_cv_struct_tm_zone" = yes; then
  19503. cat >>confdefs.h <<\_ACEOF
  19504. #define HAVE_TM_ZONE 1
  19505. _ACEOF
  19506. fi
  19507. { echo "$as_me:$LINENO: checking for tzname" >&5
  19508. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  19509. if test "${ac_cv_var_tzname+set}" = set; then
  19510. echo $ECHO_N "(cached) $ECHO_C" >&6
  19511. else
  19512. cat >conftest.$ac_ext <<_ACEOF
  19513. /* confdefs.h. */
  19514. _ACEOF
  19515. cat confdefs.h >>conftest.$ac_ext
  19516. cat >>conftest.$ac_ext <<_ACEOF
  19517. /* end confdefs.h. */
  19518. #include <time.h>
  19519. #ifndef tzname /* For SGI. */
  19520. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  19521. #endif
  19522. int
  19523. main ()
  19524. {
  19525. atoi(*tzname);
  19526. ;
  19527. return 0;
  19528. }
  19529. _ACEOF
  19530. rm -f conftest.$ac_objext conftest$ac_exeext
  19531. if { (ac_try="$ac_link"
  19532. case "(($ac_try" in
  19533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19534. *) ac_try_echo=$ac_try;;
  19535. esac
  19536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19537. (eval "$ac_link") 2>conftest.er1
  19538. ac_status=$?
  19539. grep -v '^ *+' conftest.er1 >conftest.err
  19540. rm -f conftest.er1
  19541. cat conftest.err >&5
  19542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19543. (exit $ac_status); } && {
  19544. test -z "$ac_c_werror_flag" ||
  19545. test ! -s conftest.err
  19546. } && test -s conftest$ac_exeext &&
  19547. $as_test_x conftest$ac_exeext; then
  19548. ac_cv_var_tzname=yes
  19549. else
  19550. echo "$as_me: failed program was:" >&5
  19551. sed 's/^/| /' conftest.$ac_ext >&5
  19552. ac_cv_var_tzname=no
  19553. fi
  19554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19555. conftest$ac_exeext conftest.$ac_ext
  19556. fi
  19557. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  19558. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  19559. if test $ac_cv_var_tzname = yes; then
  19560. cat >>confdefs.h <<\_ACEOF
  19561. #define HAVE_TZNAME 1
  19562. _ACEOF
  19563. fi
  19564. { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
  19565. echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
  19566. if test "${ac_cv_struct_tm_isdst+set}" = set; then
  19567. echo $ECHO_N "(cached) $ECHO_C" >&6
  19568. else
  19569. cat >conftest.$ac_ext <<_ACEOF
  19570. /* confdefs.h. */
  19571. _ACEOF
  19572. cat confdefs.h >>conftest.$ac_ext
  19573. cat >>conftest.$ac_ext <<_ACEOF
  19574. /* end confdefs.h. */
  19575. #include <sys/types.h>
  19576. #include <$ac_cv_struct_tm>
  19577. int
  19578. main ()
  19579. {
  19580. struct tm tm; tm.tm_isdst;
  19581. ;
  19582. return 0;
  19583. }
  19584. _ACEOF
  19585. rm -f conftest.$ac_objext
  19586. if { (ac_try="$ac_compile"
  19587. case "(($ac_try" in
  19588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19589. *) ac_try_echo=$ac_try;;
  19590. esac
  19591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19592. (eval "$ac_compile") 2>conftest.er1
  19593. ac_status=$?
  19594. grep -v '^ *+' conftest.er1 >conftest.err
  19595. rm -f conftest.er1
  19596. cat conftest.err >&5
  19597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19598. (exit $ac_status); } && {
  19599. test -z "$ac_c_werror_flag" ||
  19600. test ! -s conftest.err
  19601. } && test -s conftest.$ac_objext; then
  19602. ac_cv_struct_tm_isdst=yes
  19603. else
  19604. echo "$as_me: failed program was:" >&5
  19605. sed 's/^/| /' conftest.$ac_ext >&5
  19606. ac_cv_struct_tm_isdst=no
  19607. fi
  19608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19609. fi
  19610. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
  19611. echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
  19612. if test "$ac_cv_struct_tm_isdst" = yes; then
  19613. cat >>confdefs.h <<\_ACEOF
  19614. #define HAVE_TM_ISDST 1
  19615. _ACEOF
  19616. fi
  19617. { echo "$as_me:$LINENO: checking for daylight" >&5
  19618. echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
  19619. if test "${ac_cv_var_daylight+set}" = set; then
  19620. echo $ECHO_N "(cached) $ECHO_C" >&6
  19621. else
  19622. cat >conftest.$ac_ext <<_ACEOF
  19623. /* confdefs.h. */
  19624. _ACEOF
  19625. cat confdefs.h >>conftest.$ac_ext
  19626. cat >>conftest.$ac_ext <<_ACEOF
  19627. /* end confdefs.h. */
  19628. #include <time.h>
  19629. #ifndef daylight /* In case IRIX #defines this, too */
  19630. extern int daylight;
  19631. #endif
  19632. int
  19633. main ()
  19634. {
  19635. atoi(daylight);
  19636. ;
  19637. return 0;
  19638. }
  19639. _ACEOF
  19640. rm -f conftest.$ac_objext conftest$ac_exeext
  19641. if { (ac_try="$ac_link"
  19642. case "(($ac_try" in
  19643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19644. *) ac_try_echo=$ac_try;;
  19645. esac
  19646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19647. (eval "$ac_link") 2>conftest.er1
  19648. ac_status=$?
  19649. grep -v '^ *+' conftest.er1 >conftest.err
  19650. rm -f conftest.er1
  19651. cat conftest.err >&5
  19652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19653. (exit $ac_status); } && {
  19654. test -z "$ac_c_werror_flag" ||
  19655. test ! -s conftest.err
  19656. } && test -s conftest$ac_exeext &&
  19657. $as_test_x conftest$ac_exeext; then
  19658. ac_cv_var_daylight=yes
  19659. else
  19660. echo "$as_me: failed program was:" >&5
  19661. sed 's/^/| /' conftest.$ac_ext >&5
  19662. ac_cv_var_daylight=no
  19663. fi
  19664. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19665. conftest$ac_exeext conftest.$ac_ext
  19666. fi
  19667. { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
  19668. echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
  19669. if test $ac_cv_var_daylight = yes; then
  19670. cat >>confdefs.h <<\_ACEOF
  19671. #define HAVE_DAYLIGHT 1
  19672. _ACEOF
  19673. fi
  19674. # Check whether --enable-largefile was given.
  19675. if test "${enable_largefile+set}" = set; then
  19676. enableval=$enable_largefile;
  19677. fi
  19678. if test "$enable_largefile" != no; then
  19679. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19680. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  19681. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19682. echo $ECHO_N "(cached) $ECHO_C" >&6
  19683. else
  19684. ac_cv_sys_largefile_CC=no
  19685. if test "$GCC" != yes; then
  19686. ac_save_CC=$CC
  19687. while :; do
  19688. # IRIX 6.2 and later do not support large files by default,
  19689. # so use the C compiler's -n32 option if that helps.
  19690. cat >conftest.$ac_ext <<_ACEOF
  19691. /* confdefs.h. */
  19692. _ACEOF
  19693. cat confdefs.h >>conftest.$ac_ext
  19694. cat >>conftest.$ac_ext <<_ACEOF
  19695. /* end confdefs.h. */
  19696. #include <sys/types.h>
  19697. /* Check that off_t can represent 2**63 - 1 correctly.
  19698. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19699. since some C++ compilers masquerading as C compilers
  19700. incorrectly reject 9223372036854775807. */
  19701. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19702. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19703. && LARGE_OFF_T % 2147483647 == 1)
  19704. ? 1 : -1];
  19705. int
  19706. main ()
  19707. {
  19708. ;
  19709. return 0;
  19710. }
  19711. _ACEOF
  19712. rm -f conftest.$ac_objext
  19713. if { (ac_try="$ac_compile"
  19714. case "(($ac_try" in
  19715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19716. *) ac_try_echo=$ac_try;;
  19717. esac
  19718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19719. (eval "$ac_compile") 2>conftest.er1
  19720. ac_status=$?
  19721. grep -v '^ *+' conftest.er1 >conftest.err
  19722. rm -f conftest.er1
  19723. cat conftest.err >&5
  19724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19725. (exit $ac_status); } && {
  19726. test -z "$ac_c_werror_flag" ||
  19727. test ! -s conftest.err
  19728. } && test -s conftest.$ac_objext; then
  19729. break
  19730. else
  19731. echo "$as_me: failed program was:" >&5
  19732. sed 's/^/| /' conftest.$ac_ext >&5
  19733. fi
  19734. rm -f core conftest.err conftest.$ac_objext
  19735. CC="$CC -n32"
  19736. rm -f conftest.$ac_objext
  19737. if { (ac_try="$ac_compile"
  19738. case "(($ac_try" in
  19739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19740. *) ac_try_echo=$ac_try;;
  19741. esac
  19742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19743. (eval "$ac_compile") 2>conftest.er1
  19744. ac_status=$?
  19745. grep -v '^ *+' conftest.er1 >conftest.err
  19746. rm -f conftest.er1
  19747. cat conftest.err >&5
  19748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19749. (exit $ac_status); } && {
  19750. test -z "$ac_c_werror_flag" ||
  19751. test ! -s conftest.err
  19752. } && test -s conftest.$ac_objext; then
  19753. ac_cv_sys_largefile_CC=' -n32'; break
  19754. else
  19755. echo "$as_me: failed program was:" >&5
  19756. sed 's/^/| /' conftest.$ac_ext >&5
  19757. fi
  19758. rm -f core conftest.err conftest.$ac_objext
  19759. break
  19760. done
  19761. CC=$ac_save_CC
  19762. rm -f conftest.$ac_ext
  19763. fi
  19764. fi
  19765. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  19766. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  19767. if test "$ac_cv_sys_largefile_CC" != no; then
  19768. CC=$CC$ac_cv_sys_largefile_CC
  19769. fi
  19770. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  19771. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  19772. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  19773. echo $ECHO_N "(cached) $ECHO_C" >&6
  19774. else
  19775. while :; do
  19776. cat >conftest.$ac_ext <<_ACEOF
  19777. /* confdefs.h. */
  19778. _ACEOF
  19779. cat confdefs.h >>conftest.$ac_ext
  19780. cat >>conftest.$ac_ext <<_ACEOF
  19781. /* end confdefs.h. */
  19782. #include <sys/types.h>
  19783. /* Check that off_t can represent 2**63 - 1 correctly.
  19784. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19785. since some C++ compilers masquerading as C compilers
  19786. incorrectly reject 9223372036854775807. */
  19787. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19788. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19789. && LARGE_OFF_T % 2147483647 == 1)
  19790. ? 1 : -1];
  19791. int
  19792. main ()
  19793. {
  19794. ;
  19795. return 0;
  19796. }
  19797. _ACEOF
  19798. rm -f conftest.$ac_objext
  19799. if { (ac_try="$ac_compile"
  19800. case "(($ac_try" in
  19801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19802. *) ac_try_echo=$ac_try;;
  19803. esac
  19804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19805. (eval "$ac_compile") 2>conftest.er1
  19806. ac_status=$?
  19807. grep -v '^ *+' conftest.er1 >conftest.err
  19808. rm -f conftest.er1
  19809. cat conftest.err >&5
  19810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19811. (exit $ac_status); } && {
  19812. test -z "$ac_c_werror_flag" ||
  19813. test ! -s conftest.err
  19814. } && test -s conftest.$ac_objext; then
  19815. ac_cv_sys_file_offset_bits=no; break
  19816. else
  19817. echo "$as_me: failed program was:" >&5
  19818. sed 's/^/| /' conftest.$ac_ext >&5
  19819. fi
  19820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19821. cat >conftest.$ac_ext <<_ACEOF
  19822. /* confdefs.h. */
  19823. _ACEOF
  19824. cat confdefs.h >>conftest.$ac_ext
  19825. cat >>conftest.$ac_ext <<_ACEOF
  19826. /* end confdefs.h. */
  19827. #define _FILE_OFFSET_BITS 64
  19828. #include <sys/types.h>
  19829. /* Check that off_t can represent 2**63 - 1 correctly.
  19830. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19831. since some C++ compilers masquerading as C compilers
  19832. incorrectly reject 9223372036854775807. */
  19833. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19834. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19835. && LARGE_OFF_T % 2147483647 == 1)
  19836. ? 1 : -1];
  19837. int
  19838. main ()
  19839. {
  19840. ;
  19841. return 0;
  19842. }
  19843. _ACEOF
  19844. rm -f conftest.$ac_objext
  19845. if { (ac_try="$ac_compile"
  19846. case "(($ac_try" in
  19847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19848. *) ac_try_echo=$ac_try;;
  19849. esac
  19850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19851. (eval "$ac_compile") 2>conftest.er1
  19852. ac_status=$?
  19853. grep -v '^ *+' conftest.er1 >conftest.err
  19854. rm -f conftest.er1
  19855. cat conftest.err >&5
  19856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19857. (exit $ac_status); } && {
  19858. test -z "$ac_c_werror_flag" ||
  19859. test ! -s conftest.err
  19860. } && test -s conftest.$ac_objext; then
  19861. ac_cv_sys_file_offset_bits=64; break
  19862. else
  19863. echo "$as_me: failed program was:" >&5
  19864. sed 's/^/| /' conftest.$ac_ext >&5
  19865. fi
  19866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19867. ac_cv_sys_file_offset_bits=unknown
  19868. break
  19869. done
  19870. fi
  19871. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  19872. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  19873. case $ac_cv_sys_file_offset_bits in #(
  19874. no | unknown) ;;
  19875. *)
  19876. cat >>confdefs.h <<_ACEOF
  19877. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  19878. _ACEOF
  19879. ;;
  19880. esac
  19881. rm -f conftest*
  19882. if test $ac_cv_sys_file_offset_bits = unknown; then
  19883. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  19884. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  19885. if test "${ac_cv_sys_large_files+set}" = set; then
  19886. echo $ECHO_N "(cached) $ECHO_C" >&6
  19887. else
  19888. while :; do
  19889. cat >conftest.$ac_ext <<_ACEOF
  19890. /* confdefs.h. */
  19891. _ACEOF
  19892. cat confdefs.h >>conftest.$ac_ext
  19893. cat >>conftest.$ac_ext <<_ACEOF
  19894. /* end confdefs.h. */
  19895. #include <sys/types.h>
  19896. /* Check that off_t can represent 2**63 - 1 correctly.
  19897. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19898. since some C++ compilers masquerading as C compilers
  19899. incorrectly reject 9223372036854775807. */
  19900. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19901. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19902. && LARGE_OFF_T % 2147483647 == 1)
  19903. ? 1 : -1];
  19904. int
  19905. main ()
  19906. {
  19907. ;
  19908. return 0;
  19909. }
  19910. _ACEOF
  19911. rm -f conftest.$ac_objext
  19912. if { (ac_try="$ac_compile"
  19913. case "(($ac_try" in
  19914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19915. *) ac_try_echo=$ac_try;;
  19916. esac
  19917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19918. (eval "$ac_compile") 2>conftest.er1
  19919. ac_status=$?
  19920. grep -v '^ *+' conftest.er1 >conftest.err
  19921. rm -f conftest.er1
  19922. cat conftest.err >&5
  19923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19924. (exit $ac_status); } && {
  19925. test -z "$ac_c_werror_flag" ||
  19926. test ! -s conftest.err
  19927. } && test -s conftest.$ac_objext; then
  19928. ac_cv_sys_large_files=no; break
  19929. else
  19930. echo "$as_me: failed program was:" >&5
  19931. sed 's/^/| /' conftest.$ac_ext >&5
  19932. fi
  19933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19934. cat >conftest.$ac_ext <<_ACEOF
  19935. /* confdefs.h. */
  19936. _ACEOF
  19937. cat confdefs.h >>conftest.$ac_ext
  19938. cat >>conftest.$ac_ext <<_ACEOF
  19939. /* end confdefs.h. */
  19940. #define _LARGE_FILES 1
  19941. #include <sys/types.h>
  19942. /* Check that off_t can represent 2**63 - 1 correctly.
  19943. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19944. since some C++ compilers masquerading as C compilers
  19945. incorrectly reject 9223372036854775807. */
  19946. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19947. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19948. && LARGE_OFF_T % 2147483647 == 1)
  19949. ? 1 : -1];
  19950. int
  19951. main ()
  19952. {
  19953. ;
  19954. return 0;
  19955. }
  19956. _ACEOF
  19957. rm -f conftest.$ac_objext
  19958. if { (ac_try="$ac_compile"
  19959. case "(($ac_try" in
  19960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19961. *) ac_try_echo=$ac_try;;
  19962. esac
  19963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19964. (eval "$ac_compile") 2>conftest.er1
  19965. ac_status=$?
  19966. grep -v '^ *+' conftest.er1 >conftest.err
  19967. rm -f conftest.er1
  19968. cat conftest.err >&5
  19969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19970. (exit $ac_status); } && {
  19971. test -z "$ac_c_werror_flag" ||
  19972. test ! -s conftest.err
  19973. } && test -s conftest.$ac_objext; then
  19974. ac_cv_sys_large_files=1; break
  19975. else
  19976. echo "$as_me: failed program was:" >&5
  19977. sed 's/^/| /' conftest.$ac_ext >&5
  19978. fi
  19979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19980. ac_cv_sys_large_files=unknown
  19981. break
  19982. done
  19983. fi
  19984. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  19985. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  19986. case $ac_cv_sys_large_files in #(
  19987. no | unknown) ;;
  19988. *)
  19989. cat >>confdefs.h <<_ACEOF
  19990. #define _LARGE_FILES $ac_cv_sys_large_files
  19991. _ACEOF
  19992. ;;
  19993. esac
  19994. rm -f conftest*
  19995. fi
  19996. fi
  19997. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  19998. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  19999. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20000. echo $ECHO_N "(cached) $ECHO_C" >&6
  20001. else
  20002. while :; do
  20003. cat >conftest.$ac_ext <<_ACEOF
  20004. /* confdefs.h. */
  20005. _ACEOF
  20006. cat confdefs.h >>conftest.$ac_ext
  20007. cat >>conftest.$ac_ext <<_ACEOF
  20008. /* end confdefs.h. */
  20009. #include <stdio.h>
  20010. int
  20011. main ()
  20012. {
  20013. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20014. ;
  20015. return 0;
  20016. }
  20017. _ACEOF
  20018. rm -f conftest.$ac_objext conftest$ac_exeext
  20019. if { (ac_try="$ac_link"
  20020. case "(($ac_try" in
  20021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20022. *) ac_try_echo=$ac_try;;
  20023. esac
  20024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20025. (eval "$ac_link") 2>conftest.er1
  20026. ac_status=$?
  20027. grep -v '^ *+' conftest.er1 >conftest.err
  20028. rm -f conftest.er1
  20029. cat conftest.err >&5
  20030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20031. (exit $ac_status); } && {
  20032. test -z "$ac_c_werror_flag" ||
  20033. test ! -s conftest.err
  20034. } && test -s conftest$ac_exeext &&
  20035. $as_test_x conftest$ac_exeext; then
  20036. ac_cv_sys_largefile_source=no; break
  20037. else
  20038. echo "$as_me: failed program was:" >&5
  20039. sed 's/^/| /' conftest.$ac_ext >&5
  20040. fi
  20041. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20042. conftest$ac_exeext conftest.$ac_ext
  20043. cat >conftest.$ac_ext <<_ACEOF
  20044. /* confdefs.h. */
  20045. _ACEOF
  20046. cat confdefs.h >>conftest.$ac_ext
  20047. cat >>conftest.$ac_ext <<_ACEOF
  20048. /* end confdefs.h. */
  20049. #define _LARGEFILE_SOURCE 1
  20050. #include <stdio.h>
  20051. int
  20052. main ()
  20053. {
  20054. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20055. ;
  20056. return 0;
  20057. }
  20058. _ACEOF
  20059. rm -f conftest.$ac_objext conftest$ac_exeext
  20060. if { (ac_try="$ac_link"
  20061. case "(($ac_try" in
  20062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20063. *) ac_try_echo=$ac_try;;
  20064. esac
  20065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20066. (eval "$ac_link") 2>conftest.er1
  20067. ac_status=$?
  20068. grep -v '^ *+' conftest.er1 >conftest.err
  20069. rm -f conftest.er1
  20070. cat conftest.err >&5
  20071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20072. (exit $ac_status); } && {
  20073. test -z "$ac_c_werror_flag" ||
  20074. test ! -s conftest.err
  20075. } && test -s conftest$ac_exeext &&
  20076. $as_test_x conftest$ac_exeext; then
  20077. ac_cv_sys_largefile_source=1; break
  20078. else
  20079. echo "$as_me: failed program was:" >&5
  20080. sed 's/^/| /' conftest.$ac_ext >&5
  20081. fi
  20082. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20083. conftest$ac_exeext conftest.$ac_ext
  20084. ac_cv_sys_largefile_source=unknown
  20085. break
  20086. done
  20087. fi
  20088. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20089. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20090. case $ac_cv_sys_largefile_source in #(
  20091. no | unknown) ;;
  20092. *)
  20093. cat >>confdefs.h <<_ACEOF
  20094. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20095. _ACEOF
  20096. ;;
  20097. esac
  20098. rm -f conftest*
  20099. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20100. # in glibc 2.1.3, but that breaks too many other things.
  20101. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20102. if test $ac_cv_sys_largefile_source != unknown; then
  20103. cat >>confdefs.h <<\_ACEOF
  20104. #define HAVE_FSEEKO 1
  20105. _ACEOF
  20106. fi
  20107. { echo "$as_me:$LINENO: checking for mbstate_t" >&5
  20108. echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
  20109. if test "${ac_cv_type_mbstate_t+set}" = set; then
  20110. echo $ECHO_N "(cached) $ECHO_C" >&6
  20111. else
  20112. cat >conftest.$ac_ext <<_ACEOF
  20113. /* confdefs.h. */
  20114. _ACEOF
  20115. cat confdefs.h >>conftest.$ac_ext
  20116. cat >>conftest.$ac_ext <<_ACEOF
  20117. /* end confdefs.h. */
  20118. $ac_includes_default
  20119. # include <wchar.h>
  20120. int
  20121. main ()
  20122. {
  20123. mbstate_t x; return sizeof x;
  20124. ;
  20125. return 0;
  20126. }
  20127. _ACEOF
  20128. rm -f conftest.$ac_objext
  20129. if { (ac_try="$ac_compile"
  20130. case "(($ac_try" in
  20131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20132. *) ac_try_echo=$ac_try;;
  20133. esac
  20134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20135. (eval "$ac_compile") 2>conftest.er1
  20136. ac_status=$?
  20137. grep -v '^ *+' conftest.er1 >conftest.err
  20138. rm -f conftest.er1
  20139. cat conftest.err >&5
  20140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20141. (exit $ac_status); } && {
  20142. test -z "$ac_c_werror_flag" ||
  20143. test ! -s conftest.err
  20144. } && test -s conftest.$ac_objext; then
  20145. ac_cv_type_mbstate_t=yes
  20146. else
  20147. echo "$as_me: failed program was:" >&5
  20148. sed 's/^/| /' conftest.$ac_ext >&5
  20149. ac_cv_type_mbstate_t=no
  20150. fi
  20151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20152. fi
  20153. { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  20154. echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
  20155. if test $ac_cv_type_mbstate_t = yes; then
  20156. cat >>confdefs.h <<\_ACEOF
  20157. #define HAVE_MBSTATE_T 1
  20158. _ACEOF
  20159. else
  20160. cat >>confdefs.h <<\_ACEOF
  20161. #define mbstate_t int
  20162. _ACEOF
  20163. fi
  20164. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  20165. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  20166. if test "${ac_cv_type_uint8_t+set}" = set; then
  20167. echo $ECHO_N "(cached) $ECHO_C" >&6
  20168. else
  20169. cat >conftest.$ac_ext <<_ACEOF
  20170. /* confdefs.h. */
  20171. _ACEOF
  20172. cat confdefs.h >>conftest.$ac_ext
  20173. cat >>conftest.$ac_ext <<_ACEOF
  20174. /* end confdefs.h. */
  20175. $ac_includes_default
  20176. typedef uint8_t ac__type_new_;
  20177. int
  20178. main ()
  20179. {
  20180. if ((ac__type_new_ *) 0)
  20181. return 0;
  20182. if (sizeof (ac__type_new_))
  20183. return 0;
  20184. ;
  20185. return 0;
  20186. }
  20187. _ACEOF
  20188. rm -f conftest.$ac_objext
  20189. if { (ac_try="$ac_compile"
  20190. case "(($ac_try" in
  20191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20192. *) ac_try_echo=$ac_try;;
  20193. esac
  20194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20195. (eval "$ac_compile") 2>conftest.er1
  20196. ac_status=$?
  20197. grep -v '^ *+' conftest.er1 >conftest.err
  20198. rm -f conftest.er1
  20199. cat conftest.err >&5
  20200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20201. (exit $ac_status); } && {
  20202. test -z "$ac_c_werror_flag" ||
  20203. test ! -s conftest.err
  20204. } && test -s conftest.$ac_objext; then
  20205. ac_cv_type_uint8_t=yes
  20206. else
  20207. echo "$as_me: failed program was:" >&5
  20208. sed 's/^/| /' conftest.$ac_ext >&5
  20209. ac_cv_type_uint8_t=no
  20210. fi
  20211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20212. fi
  20213. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  20214. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  20215. if test $ac_cv_type_uint8_t = yes; then
  20216. cat >>confdefs.h <<_ACEOF
  20217. #define HAVE_UINT8_T 1
  20218. _ACEOF
  20219. fi
  20220. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  20221. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  20222. if test "${ac_cv_type_uint16_t+set}" = set; then
  20223. echo $ECHO_N "(cached) $ECHO_C" >&6
  20224. else
  20225. cat >conftest.$ac_ext <<_ACEOF
  20226. /* confdefs.h. */
  20227. _ACEOF
  20228. cat confdefs.h >>conftest.$ac_ext
  20229. cat >>conftest.$ac_ext <<_ACEOF
  20230. /* end confdefs.h. */
  20231. $ac_includes_default
  20232. typedef uint16_t ac__type_new_;
  20233. int
  20234. main ()
  20235. {
  20236. if ((ac__type_new_ *) 0)
  20237. return 0;
  20238. if (sizeof (ac__type_new_))
  20239. return 0;
  20240. ;
  20241. return 0;
  20242. }
  20243. _ACEOF
  20244. rm -f conftest.$ac_objext
  20245. if { (ac_try="$ac_compile"
  20246. case "(($ac_try" in
  20247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20248. *) ac_try_echo=$ac_try;;
  20249. esac
  20250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20251. (eval "$ac_compile") 2>conftest.er1
  20252. ac_status=$?
  20253. grep -v '^ *+' conftest.er1 >conftest.err
  20254. rm -f conftest.er1
  20255. cat conftest.err >&5
  20256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20257. (exit $ac_status); } && {
  20258. test -z "$ac_c_werror_flag" ||
  20259. test ! -s conftest.err
  20260. } && test -s conftest.$ac_objext; then
  20261. ac_cv_type_uint16_t=yes
  20262. else
  20263. echo "$as_me: failed program was:" >&5
  20264. sed 's/^/| /' conftest.$ac_ext >&5
  20265. ac_cv_type_uint16_t=no
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20268. fi
  20269. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  20270. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  20271. if test $ac_cv_type_uint16_t = yes; then
  20272. cat >>confdefs.h <<_ACEOF
  20273. #define HAVE_UINT16_T 1
  20274. _ACEOF
  20275. fi
  20276. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  20277. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  20278. if test "${ac_cv_type_uint32_t+set}" = set; then
  20279. echo $ECHO_N "(cached) $ECHO_C" >&6
  20280. else
  20281. cat >conftest.$ac_ext <<_ACEOF
  20282. /* confdefs.h. */
  20283. _ACEOF
  20284. cat confdefs.h >>conftest.$ac_ext
  20285. cat >>conftest.$ac_ext <<_ACEOF
  20286. /* end confdefs.h. */
  20287. $ac_includes_default
  20288. typedef uint32_t ac__type_new_;
  20289. int
  20290. main ()
  20291. {
  20292. if ((ac__type_new_ *) 0)
  20293. return 0;
  20294. if (sizeof (ac__type_new_))
  20295. return 0;
  20296. ;
  20297. return 0;
  20298. }
  20299. _ACEOF
  20300. rm -f conftest.$ac_objext
  20301. if { (ac_try="$ac_compile"
  20302. case "(($ac_try" in
  20303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20304. *) ac_try_echo=$ac_try;;
  20305. esac
  20306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20307. (eval "$ac_compile") 2>conftest.er1
  20308. ac_status=$?
  20309. grep -v '^ *+' conftest.er1 >conftest.err
  20310. rm -f conftest.er1
  20311. cat conftest.err >&5
  20312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20313. (exit $ac_status); } && {
  20314. test -z "$ac_c_werror_flag" ||
  20315. test ! -s conftest.err
  20316. } && test -s conftest.$ac_objext; then
  20317. ac_cv_type_uint32_t=yes
  20318. else
  20319. echo "$as_me: failed program was:" >&5
  20320. sed 's/^/| /' conftest.$ac_ext >&5
  20321. ac_cv_type_uint32_t=no
  20322. fi
  20323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20324. fi
  20325. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  20326. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  20327. if test $ac_cv_type_uint32_t = yes; then
  20328. cat >>confdefs.h <<_ACEOF
  20329. #define HAVE_UINT32_T 1
  20330. _ACEOF
  20331. fi
  20332. { echo "$as_me:$LINENO: checking for int32_t" >&5
  20333. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  20334. if test "${ac_cv_type_int32_t+set}" = set; then
  20335. echo $ECHO_N "(cached) $ECHO_C" >&6
  20336. else
  20337. cat >conftest.$ac_ext <<_ACEOF
  20338. /* confdefs.h. */
  20339. _ACEOF
  20340. cat confdefs.h >>conftest.$ac_ext
  20341. cat >>conftest.$ac_ext <<_ACEOF
  20342. /* end confdefs.h. */
  20343. $ac_includes_default
  20344. typedef int32_t ac__type_new_;
  20345. int
  20346. main ()
  20347. {
  20348. if ((ac__type_new_ *) 0)
  20349. return 0;
  20350. if (sizeof (ac__type_new_))
  20351. return 0;
  20352. ;
  20353. return 0;
  20354. }
  20355. _ACEOF
  20356. rm -f conftest.$ac_objext
  20357. if { (ac_try="$ac_compile"
  20358. case "(($ac_try" in
  20359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20360. *) ac_try_echo=$ac_try;;
  20361. esac
  20362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20363. (eval "$ac_compile") 2>conftest.er1
  20364. ac_status=$?
  20365. grep -v '^ *+' conftest.er1 >conftest.err
  20366. rm -f conftest.er1
  20367. cat conftest.err >&5
  20368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20369. (exit $ac_status); } && {
  20370. test -z "$ac_c_werror_flag" ||
  20371. test ! -s conftest.err
  20372. } && test -s conftest.$ac_objext; then
  20373. ac_cv_type_int32_t=yes
  20374. else
  20375. echo "$as_me: failed program was:" >&5
  20376. sed 's/^/| /' conftest.$ac_ext >&5
  20377. ac_cv_type_int32_t=no
  20378. fi
  20379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20380. fi
  20381. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  20382. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  20383. if test $ac_cv_type_int32_t = yes; then
  20384. cat >>confdefs.h <<_ACEOF
  20385. #define HAVE_INT32_T 1
  20386. _ACEOF
  20387. fi
  20388. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  20389. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  20390. if test "${ac_cv_type_uint64_t+set}" = set; then
  20391. echo $ECHO_N "(cached) $ECHO_C" >&6
  20392. else
  20393. cat >conftest.$ac_ext <<_ACEOF
  20394. /* confdefs.h. */
  20395. _ACEOF
  20396. cat confdefs.h >>conftest.$ac_ext
  20397. cat >>conftest.$ac_ext <<_ACEOF
  20398. /* end confdefs.h. */
  20399. $ac_includes_default
  20400. typedef uint64_t ac__type_new_;
  20401. int
  20402. main ()
  20403. {
  20404. if ((ac__type_new_ *) 0)
  20405. return 0;
  20406. if (sizeof (ac__type_new_))
  20407. return 0;
  20408. ;
  20409. return 0;
  20410. }
  20411. _ACEOF
  20412. rm -f conftest.$ac_objext
  20413. if { (ac_try="$ac_compile"
  20414. case "(($ac_try" in
  20415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20416. *) ac_try_echo=$ac_try;;
  20417. esac
  20418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20419. (eval "$ac_compile") 2>conftest.er1
  20420. ac_status=$?
  20421. grep -v '^ *+' conftest.er1 >conftest.err
  20422. rm -f conftest.er1
  20423. cat conftest.err >&5
  20424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20425. (exit $ac_status); } && {
  20426. test -z "$ac_c_werror_flag" ||
  20427. test ! -s conftest.err
  20428. } && test -s conftest.$ac_objext; then
  20429. ac_cv_type_uint64_t=yes
  20430. else
  20431. echo "$as_me: failed program was:" >&5
  20432. sed 's/^/| /' conftest.$ac_ext >&5
  20433. ac_cv_type_uint64_t=no
  20434. fi
  20435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20436. fi
  20437. { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  20438. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  20439. if test $ac_cv_type_uint64_t = yes; then
  20440. cat >>confdefs.h <<_ACEOF
  20441. #define HAVE_UINT64_T 1
  20442. _ACEOF
  20443. fi
  20444. { echo "$as_me:$LINENO: checking for int64_t" >&5
  20445. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  20446. if test "${ac_cv_type_int64_t+set}" = set; then
  20447. echo $ECHO_N "(cached) $ECHO_C" >&6
  20448. else
  20449. cat >conftest.$ac_ext <<_ACEOF
  20450. /* confdefs.h. */
  20451. _ACEOF
  20452. cat confdefs.h >>conftest.$ac_ext
  20453. cat >>conftest.$ac_ext <<_ACEOF
  20454. /* end confdefs.h. */
  20455. $ac_includes_default
  20456. typedef int64_t ac__type_new_;
  20457. int
  20458. main ()
  20459. {
  20460. if ((ac__type_new_ *) 0)
  20461. return 0;
  20462. if (sizeof (ac__type_new_))
  20463. return 0;
  20464. ;
  20465. return 0;
  20466. }
  20467. _ACEOF
  20468. rm -f conftest.$ac_objext
  20469. if { (ac_try="$ac_compile"
  20470. case "(($ac_try" in
  20471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20472. *) ac_try_echo=$ac_try;;
  20473. esac
  20474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20475. (eval "$ac_compile") 2>conftest.er1
  20476. ac_status=$?
  20477. grep -v '^ *+' conftest.er1 >conftest.err
  20478. rm -f conftest.er1
  20479. cat conftest.err >&5
  20480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20481. (exit $ac_status); } && {
  20482. test -z "$ac_c_werror_flag" ||
  20483. test ! -s conftest.err
  20484. } && test -s conftest.$ac_objext; then
  20485. ac_cv_type_int64_t=yes
  20486. else
  20487. echo "$as_me: failed program was:" >&5
  20488. sed 's/^/| /' conftest.$ac_ext >&5
  20489. ac_cv_type_int64_t=no
  20490. fi
  20491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20492. fi
  20493. { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  20494. echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
  20495. if test $ac_cv_type_int64_t = yes; then
  20496. cat >>confdefs.h <<_ACEOF
  20497. #define HAVE_INT64_T 1
  20498. _ACEOF
  20499. fi
  20500. { echo "$as_me:$LINENO: checking for long long" >&5
  20501. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  20502. if test "${ac_cv_type_long_long+set}" = set; then
  20503. echo $ECHO_N "(cached) $ECHO_C" >&6
  20504. else
  20505. cat >conftest.$ac_ext <<_ACEOF
  20506. /* confdefs.h. */
  20507. _ACEOF
  20508. cat confdefs.h >>conftest.$ac_ext
  20509. cat >>conftest.$ac_ext <<_ACEOF
  20510. /* end confdefs.h. */
  20511. $ac_includes_default
  20512. typedef long long ac__type_new_;
  20513. int
  20514. main ()
  20515. {
  20516. if ((ac__type_new_ *) 0)
  20517. return 0;
  20518. if (sizeof (ac__type_new_))
  20519. return 0;
  20520. ;
  20521. return 0;
  20522. }
  20523. _ACEOF
  20524. rm -f conftest.$ac_objext
  20525. if { (ac_try="$ac_compile"
  20526. case "(($ac_try" in
  20527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20528. *) ac_try_echo=$ac_try;;
  20529. esac
  20530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20531. (eval "$ac_compile") 2>conftest.er1
  20532. ac_status=$?
  20533. grep -v '^ *+' conftest.er1 >conftest.err
  20534. rm -f conftest.er1
  20535. cat conftest.err >&5
  20536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20537. (exit $ac_status); } && {
  20538. test -z "$ac_c_werror_flag" ||
  20539. test ! -s conftest.err
  20540. } && test -s conftest.$ac_objext; then
  20541. ac_cv_type_long_long=yes
  20542. else
  20543. echo "$as_me: failed program was:" >&5
  20544. sed 's/^/| /' conftest.$ac_ext >&5
  20545. ac_cv_type_long_long=no
  20546. fi
  20547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20548. fi
  20549. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  20550. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  20551. # The cast to long int works around a bug in the HP C Compiler
  20552. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20553. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20554. # This bug is HP SR number 8606223364.
  20555. { echo "$as_me:$LINENO: checking size of long long" >&5
  20556. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  20557. if test "${ac_cv_sizeof_long_long+set}" = set; then
  20558. echo $ECHO_N "(cached) $ECHO_C" >&6
  20559. else
  20560. if test "$cross_compiling" = yes; then
  20561. # Depending upon the size, compute the lo and hi bounds.
  20562. cat >conftest.$ac_ext <<_ACEOF
  20563. /* confdefs.h. */
  20564. _ACEOF
  20565. cat confdefs.h >>conftest.$ac_ext
  20566. cat >>conftest.$ac_ext <<_ACEOF
  20567. /* end confdefs.h. */
  20568. $ac_includes_default
  20569. typedef long long ac__type_sizeof_;
  20570. int
  20571. main ()
  20572. {
  20573. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  20574. test_array [0] = 0
  20575. ;
  20576. return 0;
  20577. }
  20578. _ACEOF
  20579. rm -f conftest.$ac_objext
  20580. if { (ac_try="$ac_compile"
  20581. case "(($ac_try" in
  20582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20583. *) ac_try_echo=$ac_try;;
  20584. esac
  20585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20586. (eval "$ac_compile") 2>conftest.er1
  20587. ac_status=$?
  20588. grep -v '^ *+' conftest.er1 >conftest.err
  20589. rm -f conftest.er1
  20590. cat conftest.err >&5
  20591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20592. (exit $ac_status); } && {
  20593. test -z "$ac_c_werror_flag" ||
  20594. test ! -s conftest.err
  20595. } && test -s conftest.$ac_objext; then
  20596. ac_lo=0 ac_mid=0
  20597. while :; do
  20598. cat >conftest.$ac_ext <<_ACEOF
  20599. /* confdefs.h. */
  20600. _ACEOF
  20601. cat confdefs.h >>conftest.$ac_ext
  20602. cat >>conftest.$ac_ext <<_ACEOF
  20603. /* end confdefs.h. */
  20604. $ac_includes_default
  20605. typedef long long ac__type_sizeof_;
  20606. int
  20607. main ()
  20608. {
  20609. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20610. test_array [0] = 0
  20611. ;
  20612. return 0;
  20613. }
  20614. _ACEOF
  20615. rm -f conftest.$ac_objext
  20616. if { (ac_try="$ac_compile"
  20617. case "(($ac_try" in
  20618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20619. *) ac_try_echo=$ac_try;;
  20620. esac
  20621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20622. (eval "$ac_compile") 2>conftest.er1
  20623. ac_status=$?
  20624. grep -v '^ *+' conftest.er1 >conftest.err
  20625. rm -f conftest.er1
  20626. cat conftest.err >&5
  20627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20628. (exit $ac_status); } && {
  20629. test -z "$ac_c_werror_flag" ||
  20630. test ! -s conftest.err
  20631. } && test -s conftest.$ac_objext; then
  20632. ac_hi=$ac_mid; break
  20633. else
  20634. echo "$as_me: failed program was:" >&5
  20635. sed 's/^/| /' conftest.$ac_ext >&5
  20636. ac_lo=`expr $ac_mid + 1`
  20637. if test $ac_lo -le $ac_mid; then
  20638. ac_lo= ac_hi=
  20639. break
  20640. fi
  20641. ac_mid=`expr 2 '*' $ac_mid + 1`
  20642. fi
  20643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20644. done
  20645. else
  20646. echo "$as_me: failed program was:" >&5
  20647. sed 's/^/| /' conftest.$ac_ext >&5
  20648. cat >conftest.$ac_ext <<_ACEOF
  20649. /* confdefs.h. */
  20650. _ACEOF
  20651. cat confdefs.h >>conftest.$ac_ext
  20652. cat >>conftest.$ac_ext <<_ACEOF
  20653. /* end confdefs.h. */
  20654. $ac_includes_default
  20655. typedef long long ac__type_sizeof_;
  20656. int
  20657. main ()
  20658. {
  20659. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  20660. test_array [0] = 0
  20661. ;
  20662. return 0;
  20663. }
  20664. _ACEOF
  20665. rm -f conftest.$ac_objext
  20666. if { (ac_try="$ac_compile"
  20667. case "(($ac_try" in
  20668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20669. *) ac_try_echo=$ac_try;;
  20670. esac
  20671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20672. (eval "$ac_compile") 2>conftest.er1
  20673. ac_status=$?
  20674. grep -v '^ *+' conftest.er1 >conftest.err
  20675. rm -f conftest.er1
  20676. cat conftest.err >&5
  20677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20678. (exit $ac_status); } && {
  20679. test -z "$ac_c_werror_flag" ||
  20680. test ! -s conftest.err
  20681. } && test -s conftest.$ac_objext; then
  20682. ac_hi=-1 ac_mid=-1
  20683. while :; do
  20684. cat >conftest.$ac_ext <<_ACEOF
  20685. /* confdefs.h. */
  20686. _ACEOF
  20687. cat confdefs.h >>conftest.$ac_ext
  20688. cat >>conftest.$ac_ext <<_ACEOF
  20689. /* end confdefs.h. */
  20690. $ac_includes_default
  20691. typedef long long ac__type_sizeof_;
  20692. int
  20693. main ()
  20694. {
  20695. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  20696. test_array [0] = 0
  20697. ;
  20698. return 0;
  20699. }
  20700. _ACEOF
  20701. rm -f conftest.$ac_objext
  20702. if { (ac_try="$ac_compile"
  20703. case "(($ac_try" in
  20704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20705. *) ac_try_echo=$ac_try;;
  20706. esac
  20707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20708. (eval "$ac_compile") 2>conftest.er1
  20709. ac_status=$?
  20710. grep -v '^ *+' conftest.er1 >conftest.err
  20711. rm -f conftest.er1
  20712. cat conftest.err >&5
  20713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20714. (exit $ac_status); } && {
  20715. test -z "$ac_c_werror_flag" ||
  20716. test ! -s conftest.err
  20717. } && test -s conftest.$ac_objext; then
  20718. ac_lo=$ac_mid; break
  20719. else
  20720. echo "$as_me: failed program was:" >&5
  20721. sed 's/^/| /' conftest.$ac_ext >&5
  20722. ac_hi=`expr '(' $ac_mid ')' - 1`
  20723. if test $ac_mid -le $ac_hi; then
  20724. ac_lo= ac_hi=
  20725. break
  20726. fi
  20727. ac_mid=`expr 2 '*' $ac_mid`
  20728. fi
  20729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20730. done
  20731. else
  20732. echo "$as_me: failed program was:" >&5
  20733. sed 's/^/| /' conftest.$ac_ext >&5
  20734. ac_lo= ac_hi=
  20735. fi
  20736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20737. fi
  20738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20739. # Binary search between lo and hi bounds.
  20740. while test "x$ac_lo" != "x$ac_hi"; do
  20741. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  20742. cat >conftest.$ac_ext <<_ACEOF
  20743. /* confdefs.h. */
  20744. _ACEOF
  20745. cat confdefs.h >>conftest.$ac_ext
  20746. cat >>conftest.$ac_ext <<_ACEOF
  20747. /* end confdefs.h. */
  20748. $ac_includes_default
  20749. typedef long long ac__type_sizeof_;
  20750. int
  20751. main ()
  20752. {
  20753. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20754. test_array [0] = 0
  20755. ;
  20756. return 0;
  20757. }
  20758. _ACEOF
  20759. rm -f conftest.$ac_objext
  20760. if { (ac_try="$ac_compile"
  20761. case "(($ac_try" in
  20762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20763. *) ac_try_echo=$ac_try;;
  20764. esac
  20765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20766. (eval "$ac_compile") 2>conftest.er1
  20767. ac_status=$?
  20768. grep -v '^ *+' conftest.er1 >conftest.err
  20769. rm -f conftest.er1
  20770. cat conftest.err >&5
  20771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20772. (exit $ac_status); } && {
  20773. test -z "$ac_c_werror_flag" ||
  20774. test ! -s conftest.err
  20775. } && test -s conftest.$ac_objext; then
  20776. ac_hi=$ac_mid
  20777. else
  20778. echo "$as_me: failed program was:" >&5
  20779. sed 's/^/| /' conftest.$ac_ext >&5
  20780. ac_lo=`expr '(' $ac_mid ')' + 1`
  20781. fi
  20782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20783. done
  20784. case $ac_lo in
  20785. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  20786. '') if test "$ac_cv_type_long_long" = yes; then
  20787. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  20788. See \`config.log' for more details." >&5
  20789. echo "$as_me: error: cannot compute sizeof (long long)
  20790. See \`config.log' for more details." >&2;}
  20791. { (exit 77); exit 77; }; }
  20792. else
  20793. ac_cv_sizeof_long_long=0
  20794. fi ;;
  20795. esac
  20796. else
  20797. cat >conftest.$ac_ext <<_ACEOF
  20798. /* confdefs.h. */
  20799. _ACEOF
  20800. cat confdefs.h >>conftest.$ac_ext
  20801. cat >>conftest.$ac_ext <<_ACEOF
  20802. /* end confdefs.h. */
  20803. $ac_includes_default
  20804. typedef long long ac__type_sizeof_;
  20805. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20806. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20807. #include <stdio.h>
  20808. #include <stdlib.h>
  20809. int
  20810. main ()
  20811. {
  20812. FILE *f = fopen ("conftest.val", "w");
  20813. if (! f)
  20814. return 1;
  20815. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  20816. {
  20817. long int i = longval ();
  20818. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20819. return 1;
  20820. fprintf (f, "%ld\n", i);
  20821. }
  20822. else
  20823. {
  20824. unsigned long int i = ulongval ();
  20825. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20826. return 1;
  20827. fprintf (f, "%lu\n", i);
  20828. }
  20829. return ferror (f) || fclose (f) != 0;
  20830. ;
  20831. return 0;
  20832. }
  20833. _ACEOF
  20834. rm -f conftest$ac_exeext
  20835. if { (ac_try="$ac_link"
  20836. case "(($ac_try" in
  20837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20838. *) ac_try_echo=$ac_try;;
  20839. esac
  20840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20841. (eval "$ac_link") 2>&5
  20842. ac_status=$?
  20843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20844. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20845. { (case "(($ac_try" in
  20846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20847. *) ac_try_echo=$ac_try;;
  20848. esac
  20849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20850. (eval "$ac_try") 2>&5
  20851. ac_status=$?
  20852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20853. (exit $ac_status); }; }; then
  20854. ac_cv_sizeof_long_long=`cat conftest.val`
  20855. else
  20856. echo "$as_me: program exited with status $ac_status" >&5
  20857. echo "$as_me: failed program was:" >&5
  20858. sed 's/^/| /' conftest.$ac_ext >&5
  20859. ( exit $ac_status )
  20860. if test "$ac_cv_type_long_long" = yes; then
  20861. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  20862. See \`config.log' for more details." >&5
  20863. echo "$as_me: error: cannot compute sizeof (long long)
  20864. See \`config.log' for more details." >&2;}
  20865. { (exit 77); exit 77; }; }
  20866. else
  20867. ac_cv_sizeof_long_long=0
  20868. fi
  20869. fi
  20870. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20871. fi
  20872. rm -f conftest.val
  20873. fi
  20874. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  20875. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  20876. cat >>confdefs.h <<_ACEOF
  20877. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  20878. _ACEOF
  20879. for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
  20880. do
  20881. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20882. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  20883. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  20884. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20885. echo $ECHO_N "(cached) $ECHO_C" >&6
  20886. else
  20887. cat >conftest.$ac_ext <<_ACEOF
  20888. /* confdefs.h. */
  20889. _ACEOF
  20890. cat confdefs.h >>conftest.$ac_ext
  20891. cat >>conftest.$ac_ext <<_ACEOF
  20892. /* end confdefs.h. */
  20893. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20894. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20895. #define $ac_func innocuous_$ac_func
  20896. /* System header to define __stub macros and hopefully few prototypes,
  20897. which can conflict with char $ac_func (); below.
  20898. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20899. <limits.h> exists even on freestanding compilers. */
  20900. #ifdef __STDC__
  20901. # include <limits.h>
  20902. #else
  20903. # include <assert.h>
  20904. #endif
  20905. #undef $ac_func
  20906. /* Override any GCC internal prototype to avoid an error.
  20907. Use char because int might match the return type of a GCC
  20908. builtin and then its argument prototype would still apply. */
  20909. #ifdef __cplusplus
  20910. extern "C"
  20911. #endif
  20912. char $ac_func ();
  20913. /* The GNU C library defines this for functions which it implements
  20914. to always fail with ENOSYS. Some functions are actually named
  20915. something starting with __ and the normal name is an alias. */
  20916. #if defined __stub_$ac_func || defined __stub___$ac_func
  20917. choke me
  20918. #endif
  20919. int
  20920. main ()
  20921. {
  20922. return $ac_func ();
  20923. ;
  20924. return 0;
  20925. }
  20926. _ACEOF
  20927. rm -f conftest.$ac_objext conftest$ac_exeext
  20928. if { (ac_try="$ac_link"
  20929. case "(($ac_try" in
  20930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20931. *) ac_try_echo=$ac_try;;
  20932. esac
  20933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20934. (eval "$ac_link") 2>conftest.er1
  20935. ac_status=$?
  20936. grep -v '^ *+' conftest.er1 >conftest.err
  20937. rm -f conftest.er1
  20938. cat conftest.err >&5
  20939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20940. (exit $ac_status); } && {
  20941. test -z "$ac_c_werror_flag" ||
  20942. test ! -s conftest.err
  20943. } && test -s conftest$ac_exeext &&
  20944. $as_test_x conftest$ac_exeext; then
  20945. eval "$as_ac_var=yes"
  20946. else
  20947. echo "$as_me: failed program was:" >&5
  20948. sed 's/^/| /' conftest.$ac_ext >&5
  20949. eval "$as_ac_var=no"
  20950. fi
  20951. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20952. conftest$ac_exeext conftest.$ac_ext
  20953. fi
  20954. ac_res=`eval echo '${'$as_ac_var'}'`
  20955. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20956. echo "${ECHO_T}$ac_res" >&6; }
  20957. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20958. cat >>confdefs.h <<_ACEOF
  20959. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20960. _ACEOF
  20961. fi
  20962. done
  20963. for ac_func in getopt_long asprintf vasprintf
  20964. do
  20965. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20966. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  20967. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  20968. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20969. echo $ECHO_N "(cached) $ECHO_C" >&6
  20970. else
  20971. cat >conftest.$ac_ext <<_ACEOF
  20972. /* confdefs.h. */
  20973. _ACEOF
  20974. cat confdefs.h >>conftest.$ac_ext
  20975. cat >>conftest.$ac_ext <<_ACEOF
  20976. /* end confdefs.h. */
  20977. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20978. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20979. #define $ac_func innocuous_$ac_func
  20980. /* System header to define __stub macros and hopefully few prototypes,
  20981. which can conflict with char $ac_func (); below.
  20982. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20983. <limits.h> exists even on freestanding compilers. */
  20984. #ifdef __STDC__
  20985. # include <limits.h>
  20986. #else
  20987. # include <assert.h>
  20988. #endif
  20989. #undef $ac_func
  20990. /* Override any GCC internal prototype to avoid an error.
  20991. Use char because int might match the return type of a GCC
  20992. builtin and then its argument prototype would still apply. */
  20993. #ifdef __cplusplus
  20994. extern "C"
  20995. #endif
  20996. char $ac_func ();
  20997. /* The GNU C library defines this for functions which it implements
  20998. to always fail with ENOSYS. Some functions are actually named
  20999. something starting with __ and the normal name is an alias. */
  21000. #if defined __stub_$ac_func || defined __stub___$ac_func
  21001. choke me
  21002. #endif
  21003. int
  21004. main ()
  21005. {
  21006. return $ac_func ();
  21007. ;
  21008. return 0;
  21009. }
  21010. _ACEOF
  21011. rm -f conftest.$ac_objext conftest$ac_exeext
  21012. if { (ac_try="$ac_link"
  21013. case "(($ac_try" in
  21014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21015. *) ac_try_echo=$ac_try;;
  21016. esac
  21017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21018. (eval "$ac_link") 2>conftest.er1
  21019. ac_status=$?
  21020. grep -v '^ *+' conftest.er1 >conftest.err
  21021. rm -f conftest.er1
  21022. cat conftest.err >&5
  21023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21024. (exit $ac_status); } && {
  21025. test -z "$ac_c_werror_flag" ||
  21026. test ! -s conftest.err
  21027. } && test -s conftest$ac_exeext &&
  21028. $as_test_x conftest$ac_exeext; then
  21029. eval "$as_ac_var=yes"
  21030. else
  21031. echo "$as_me: failed program was:" >&5
  21032. sed 's/^/| /' conftest.$ac_ext >&5
  21033. eval "$as_ac_var=no"
  21034. fi
  21035. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21036. conftest$ac_exeext conftest.$ac_ext
  21037. fi
  21038. ac_res=`eval echo '${'$as_ac_var'}'`
  21039. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21040. echo "${ECHO_T}$ac_res" >&6; }
  21041. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21042. cat >>confdefs.h <<_ACEOF
  21043. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21044. _ACEOF
  21045. else
  21046. case " $LIBOBJS " in
  21047. *" $ac_func.$ac_objext "* ) ;;
  21048. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  21049. ;;
  21050. esac
  21051. fi
  21052. done
  21053. { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  21054. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
  21055. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  21056. echo $ECHO_N "(cached) $ECHO_C" >&6
  21057. else
  21058. ac_check_lib_save_LIBS=$LIBS
  21059. LIBS="-lz $LIBS"
  21060. cat >conftest.$ac_ext <<_ACEOF
  21061. /* confdefs.h. */
  21062. _ACEOF
  21063. cat confdefs.h >>conftest.$ac_ext
  21064. cat >>conftest.$ac_ext <<_ACEOF
  21065. /* end confdefs.h. */
  21066. /* Override any GCC internal prototype to avoid an error.
  21067. Use char because int might match the return type of a GCC
  21068. builtin and then its argument prototype would still apply. */
  21069. #ifdef __cplusplus
  21070. extern "C"
  21071. #endif
  21072. char gzopen ();
  21073. int
  21074. main ()
  21075. {
  21076. return gzopen ();
  21077. ;
  21078. return 0;
  21079. }
  21080. _ACEOF
  21081. rm -f conftest.$ac_objext conftest$ac_exeext
  21082. if { (ac_try="$ac_link"
  21083. case "(($ac_try" in
  21084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21085. *) ac_try_echo=$ac_try;;
  21086. esac
  21087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21088. (eval "$ac_link") 2>conftest.er1
  21089. ac_status=$?
  21090. grep -v '^ *+' conftest.er1 >conftest.err
  21091. rm -f conftest.er1
  21092. cat conftest.err >&5
  21093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21094. (exit $ac_status); } && {
  21095. test -z "$ac_c_werror_flag" ||
  21096. test ! -s conftest.err
  21097. } && test -s conftest$ac_exeext &&
  21098. $as_test_x conftest$ac_exeext; then
  21099. ac_cv_lib_z_gzopen=yes
  21100. else
  21101. echo "$as_me: failed program was:" >&5
  21102. sed 's/^/| /' conftest.$ac_ext >&5
  21103. ac_cv_lib_z_gzopen=no
  21104. fi
  21105. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21106. conftest$ac_exeext conftest.$ac_ext
  21107. LIBS=$ac_check_lib_save_LIBS
  21108. fi
  21109. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  21110. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
  21111. if test $ac_cv_lib_z_gzopen = yes; then
  21112. cat >>confdefs.h <<_ACEOF
  21113. #define HAVE_LIBZ 1
  21114. _ACEOF
  21115. LIBS="-lz $LIBS"
  21116. fi
  21117. if test "$cross_compiling" = yes; then
  21118. IS_CROSS_COMPILE_TRUE=
  21119. IS_CROSS_COMPILE_FALSE='#'
  21120. else
  21121. IS_CROSS_COMPILE_TRUE='#'
  21122. IS_CROSS_COMPILE_FALSE=
  21123. fi
  21124. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  21125. cat >confcache <<\_ACEOF
  21126. # This file is a shell script that caches the results of configure
  21127. # tests run on this system so they can be shared between configure
  21128. # scripts and configure runs, see configure's option --config-cache.
  21129. # It is not useful on other systems. If it contains results you don't
  21130. # want to keep, you may remove or edit it.
  21131. #
  21132. # config.status only pays attention to the cache file if you give it
  21133. # the --recheck option to rerun configure.
  21134. #
  21135. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21136. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21137. # following values.
  21138. _ACEOF
  21139. # The following way of writing the cache mishandles newlines in values,
  21140. # but we know of no workaround that is simple, portable, and efficient.
  21141. # So, we kill variables containing newlines.
  21142. # Ultrix sh set writes to stderr and can't be redirected directly,
  21143. # and sets the high bit in the cache file unless we assign to the vars.
  21144. (
  21145. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21146. eval ac_val=\$$ac_var
  21147. case $ac_val in #(
  21148. *${as_nl}*)
  21149. case $ac_var in #(
  21150. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  21151. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  21152. esac
  21153. case $ac_var in #(
  21154. _ | IFS | as_nl) ;; #(
  21155. *) $as_unset $ac_var ;;
  21156. esac ;;
  21157. esac
  21158. done
  21159. (set) 2>&1 |
  21160. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21161. *${as_nl}ac_space=\ *)
  21162. # `set' does not quote correctly, so add quotes (double-quote
  21163. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21164. sed -n \
  21165. "s/'/'\\\\''/g;
  21166. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21167. ;; #(
  21168. *)
  21169. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21170. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21171. ;;
  21172. esac |
  21173. sort
  21174. ) |
  21175. sed '
  21176. /^ac_cv_env_/b end
  21177. t clear
  21178. :clear
  21179. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21180. t end
  21181. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21182. :end' >>confcache
  21183. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21184. if test -w "$cache_file"; then
  21185. test "x$cache_file" != "x/dev/null" &&
  21186. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21187. echo "$as_me: updating cache $cache_file" >&6;}
  21188. cat confcache >$cache_file
  21189. else
  21190. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21191. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21192. fi
  21193. fi
  21194. rm -f confcache
  21195. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21196. # Let make expand exec_prefix.
  21197. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21198. DEFS=-DHAVE_CONFIG_H
  21199. ac_libobjs=
  21200. ac_ltlibobjs=
  21201. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21202. # 1. Remove the extension, and $U if already installed.
  21203. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21204. ac_i=`echo "$ac_i" | sed "$ac_script"`
  21205. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21206. # will be set to the directory where LIBOBJS objects are built.
  21207. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21208. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21209. done
  21210. LIBOBJS=$ac_libobjs
  21211. LTLIBOBJS=$ac_ltlibobjs
  21212. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  21213. { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
  21214. Usually this means the macro was only invoked conditionally." >&5
  21215. echo "$as_me: error: conditional \"FSECT5\" was never defined.
  21216. Usually this means the macro was only invoked conditionally." >&2;}
  21217. { (exit 1); exit 1; }; }
  21218. fi
  21219. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21220. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21221. Usually this means the macro was only invoked conditionally." >&5
  21222. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21223. Usually this means the macro was only invoked conditionally." >&2;}
  21224. { (exit 1); exit 1; }; }
  21225. fi
  21226. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21227. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21228. Usually this means the macro was only invoked conditionally." >&5
  21229. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21230. Usually this means the macro was only invoked conditionally." >&2;}
  21231. { (exit 1); exit 1; }; }
  21232. fi
  21233. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21234. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21235. Usually this means the macro was only invoked conditionally." >&5
  21236. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21237. Usually this means the macro was only invoked conditionally." >&2;}
  21238. { (exit 1); exit 1; }; }
  21239. fi
  21240. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  21241. { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21242. Usually this means the macro was only invoked conditionally." >&5
  21243. echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21244. Usually this means the macro was only invoked conditionally." >&2;}
  21245. { (exit 1); exit 1; }; }
  21246. fi
  21247. : ${CONFIG_STATUS=./config.status}
  21248. ac_clean_files_save=$ac_clean_files
  21249. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21250. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21251. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21252. cat >$CONFIG_STATUS <<_ACEOF
  21253. #! $SHELL
  21254. # Generated by $as_me.
  21255. # Run this file to recreate the current configuration.
  21256. # Compiler output produced by configure, useful for debugging
  21257. # configure, is in config.log if it exists.
  21258. debug=false
  21259. ac_cs_recheck=false
  21260. ac_cs_silent=false
  21261. SHELL=\${CONFIG_SHELL-$SHELL}
  21262. _ACEOF
  21263. cat >>$CONFIG_STATUS <<\_ACEOF
  21264. ## --------------------- ##
  21265. ## M4sh Initialization. ##
  21266. ## --------------------- ##
  21267. # Be more Bourne compatible
  21268. DUALCASE=1; export DUALCASE # for MKS sh
  21269. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21270. emulate sh
  21271. NULLCMD=:
  21272. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21273. # is contrary to our usage. Disable this feature.
  21274. alias -g '${1+"$@"}'='"$@"'
  21275. setopt NO_GLOB_SUBST
  21276. else
  21277. case `(set -o) 2>/dev/null` in
  21278. *posix*) set -o posix ;;
  21279. esac
  21280. fi
  21281. # PATH needs CR
  21282. # Avoid depending upon Character Ranges.
  21283. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21284. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21285. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21286. as_cr_digits='0123456789'
  21287. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21288. # The user is always right.
  21289. if test "${PATH_SEPARATOR+set}" != set; then
  21290. echo "#! /bin/sh" >conf$$.sh
  21291. echo "exit 0" >>conf$$.sh
  21292. chmod +x conf$$.sh
  21293. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  21294. PATH_SEPARATOR=';'
  21295. else
  21296. PATH_SEPARATOR=:
  21297. fi
  21298. rm -f conf$$.sh
  21299. fi
  21300. # Support unset when possible.
  21301. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21302. as_unset=unset
  21303. else
  21304. as_unset=false
  21305. fi
  21306. # IFS
  21307. # We need space, tab and new line, in precisely that order. Quoting is
  21308. # there to prevent editors from complaining about space-tab.
  21309. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21310. # splitting by setting IFS to empty value.)
  21311. as_nl='
  21312. '
  21313. IFS=" "" $as_nl"
  21314. # Find who we are. Look in the path if we contain no directory separator.
  21315. case $0 in
  21316. *[\\/]* ) as_myself=$0 ;;
  21317. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21318. for as_dir in $PATH
  21319. do
  21320. IFS=$as_save_IFS
  21321. test -z "$as_dir" && as_dir=.
  21322. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21323. done
  21324. IFS=$as_save_IFS
  21325. ;;
  21326. esac
  21327. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21328. # in which case we are not to be found in the path.
  21329. if test "x$as_myself" = x; then
  21330. as_myself=$0
  21331. fi
  21332. if test ! -f "$as_myself"; then
  21333. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21334. { (exit 1); exit 1; }
  21335. fi
  21336. # Work around bugs in pre-3.0 UWIN ksh.
  21337. for as_var in ENV MAIL MAILPATH
  21338. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21339. done
  21340. PS1='$ '
  21341. PS2='> '
  21342. PS4='+ '
  21343. # NLS nuisances.
  21344. for as_var in \
  21345. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  21346. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  21347. LC_TELEPHONE LC_TIME
  21348. do
  21349. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  21350. eval $as_var=C; export $as_var
  21351. else
  21352. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21353. fi
  21354. done
  21355. # Required to use basename.
  21356. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21357. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21358. as_expr=expr
  21359. else
  21360. as_expr=false
  21361. fi
  21362. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21363. as_basename=basename
  21364. else
  21365. as_basename=false
  21366. fi
  21367. # Name of the executable.
  21368. as_me=`$as_basename -- "$0" ||
  21369. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21370. X"$0" : 'X\(//\)$' \| \
  21371. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21372. echo X/"$0" |
  21373. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21374. s//\1/
  21375. q
  21376. }
  21377. /^X\/\(\/\/\)$/{
  21378. s//\1/
  21379. q
  21380. }
  21381. /^X\/\(\/\).*/{
  21382. s//\1/
  21383. q
  21384. }
  21385. s/.*/./; q'`
  21386. # CDPATH.
  21387. $as_unset CDPATH
  21388. as_lineno_1=$LINENO
  21389. as_lineno_2=$LINENO
  21390. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21391. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21392. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21393. # uniformly replaced by the line number. The first 'sed' inserts a
  21394. # line-number line after each line using $LINENO; the second 'sed'
  21395. # does the real work. The second script uses 'N' to pair each
  21396. # line-number line with the line containing $LINENO, and appends
  21397. # trailing '-' during substitution so that $LINENO is not a special
  21398. # case at line end.
  21399. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21400. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21401. # E. McMahon (1931-1989) for sed's syntax. :-)
  21402. sed -n '
  21403. p
  21404. /[$]LINENO/=
  21405. ' <$as_myself |
  21406. sed '
  21407. s/[$]LINENO.*/&-/
  21408. t lineno
  21409. b
  21410. :lineno
  21411. N
  21412. :loop
  21413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21414. t loop
  21415. s/-\n.*//
  21416. ' >$as_me.lineno &&
  21417. chmod +x "$as_me.lineno" ||
  21418. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21419. { (exit 1); exit 1; }; }
  21420. # Don't try to exec as it changes $[0], causing all sort of problems
  21421. # (the dirname of $[0] is not the place where we might find the
  21422. # original and so on. Autoconf is especially sensitive to this).
  21423. . "./$as_me.lineno"
  21424. # Exit status is that of the last command.
  21425. exit
  21426. }
  21427. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21428. as_dirname=dirname
  21429. else
  21430. as_dirname=false
  21431. fi
  21432. ECHO_C= ECHO_N= ECHO_T=
  21433. case `echo -n x` in
  21434. -n*)
  21435. case `echo 'x\c'` in
  21436. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21437. *) ECHO_C='\c';;
  21438. esac;;
  21439. *)
  21440. ECHO_N='-n';;
  21441. esac
  21442. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21443. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21444. as_expr=expr
  21445. else
  21446. as_expr=false
  21447. fi
  21448. rm -f conf$$ conf$$.exe conf$$.file
  21449. if test -d conf$$.dir; then
  21450. rm -f conf$$.dir/conf$$.file
  21451. else
  21452. rm -f conf$$.dir
  21453. mkdir conf$$.dir
  21454. fi
  21455. echo >conf$$.file
  21456. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21457. as_ln_s='ln -s'
  21458. # ... but there are two gotchas:
  21459. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21460. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21461. # In both cases, we have to default to `cp -p'.
  21462. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21463. as_ln_s='cp -p'
  21464. elif ln conf$$.file conf$$ 2>/dev/null; then
  21465. as_ln_s=ln
  21466. else
  21467. as_ln_s='cp -p'
  21468. fi
  21469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21470. rmdir conf$$.dir 2>/dev/null
  21471. if mkdir -p . 2>/dev/null; then
  21472. as_mkdir_p=:
  21473. else
  21474. test -d ./-p && rmdir ./-p
  21475. as_mkdir_p=false
  21476. fi
  21477. if test -x / >/dev/null 2>&1; then
  21478. as_test_x='test -x'
  21479. else
  21480. if ls -dL / >/dev/null 2>&1; then
  21481. as_ls_L_option=L
  21482. else
  21483. as_ls_L_option=
  21484. fi
  21485. as_test_x='
  21486. eval sh -c '\''
  21487. if test -d "$1"; then
  21488. test -d "$1/.";
  21489. else
  21490. case $1 in
  21491. -*)set "./$1";;
  21492. esac;
  21493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21494. ???[sx]*):;;*)false;;esac;fi
  21495. '\'' sh
  21496. '
  21497. fi
  21498. as_executable_p=$as_test_x
  21499. # Sed expression to map a string onto a valid CPP name.
  21500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21501. # Sed expression to map a string onto a valid variable name.
  21502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21503. exec 6>&1
  21504. # Save the log message, to keep $[0] and so on meaningful, and to
  21505. # report actual input values of CONFIG_FILES etc. instead of their
  21506. # values after options handling.
  21507. ac_log="
  21508. This file was extended by file $as_me 4.24, which was
  21509. generated by GNU Autoconf 2.61. Invocation command line was
  21510. CONFIG_FILES = $CONFIG_FILES
  21511. CONFIG_HEADERS = $CONFIG_HEADERS
  21512. CONFIG_LINKS = $CONFIG_LINKS
  21513. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21514. $ $0 $@
  21515. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21516. "
  21517. _ACEOF
  21518. cat >>$CONFIG_STATUS <<_ACEOF
  21519. # Files that config.status was made for.
  21520. config_files="$ac_config_files"
  21521. config_headers="$ac_config_headers"
  21522. config_commands="$ac_config_commands"
  21523. _ACEOF
  21524. cat >>$CONFIG_STATUS <<\_ACEOF
  21525. ac_cs_usage="\
  21526. \`$as_me' instantiates files from templates according to the
  21527. current configuration.
  21528. Usage: $0 [OPTIONS] [FILE]...
  21529. -h, --help print this help, then exit
  21530. -V, --version print version number and configuration settings, then exit
  21531. -q, --quiet do not print progress messages
  21532. -d, --debug don't remove temporary files
  21533. --recheck update $as_me by reconfiguring in the same conditions
  21534. --file=FILE[:TEMPLATE]
  21535. instantiate the configuration file FILE
  21536. --header=FILE[:TEMPLATE]
  21537. instantiate the configuration header FILE
  21538. Configuration files:
  21539. $config_files
  21540. Configuration headers:
  21541. $config_headers
  21542. Configuration commands:
  21543. $config_commands
  21544. Report bugs to <bug-autoconf@gnu.org>."
  21545. _ACEOF
  21546. cat >>$CONFIG_STATUS <<_ACEOF
  21547. ac_cs_version="\\
  21548. file config.status 4.24
  21549. configured by $0, generated by GNU Autoconf 2.61,
  21550. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21551. Copyright (C) 2006 Free Software Foundation, Inc.
  21552. This config.status script is free software; the Free Software Foundation
  21553. gives unlimited permission to copy, distribute and modify it."
  21554. ac_pwd='$ac_pwd'
  21555. srcdir='$srcdir'
  21556. INSTALL='$INSTALL'
  21557. MKDIR_P='$MKDIR_P'
  21558. _ACEOF
  21559. cat >>$CONFIG_STATUS <<\_ACEOF
  21560. # If no file are specified by the user, then we need to provide default
  21561. # value. By we need to know if files were specified by the user.
  21562. ac_need_defaults=:
  21563. while test $# != 0
  21564. do
  21565. case $1 in
  21566. --*=*)
  21567. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21568. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21569. ac_shift=:
  21570. ;;
  21571. *)
  21572. ac_option=$1
  21573. ac_optarg=$2
  21574. ac_shift=shift
  21575. ;;
  21576. esac
  21577. case $ac_option in
  21578. # Handling of the options.
  21579. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21580. ac_cs_recheck=: ;;
  21581. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21582. echo "$ac_cs_version"; exit ;;
  21583. --debug | --debu | --deb | --de | --d | -d )
  21584. debug=: ;;
  21585. --file | --fil | --fi | --f )
  21586. $ac_shift
  21587. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  21588. ac_need_defaults=false;;
  21589. --header | --heade | --head | --hea )
  21590. $ac_shift
  21591. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  21592. ac_need_defaults=false;;
  21593. --he | --h)
  21594. # Conflict between --help and --header
  21595. { echo "$as_me: error: ambiguous option: $1
  21596. Try \`$0 --help' for more information." >&2
  21597. { (exit 1); exit 1; }; };;
  21598. --help | --hel | -h )
  21599. echo "$ac_cs_usage"; exit ;;
  21600. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21601. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21602. ac_cs_silent=: ;;
  21603. # This is an error.
  21604. -*) { echo "$as_me: error: unrecognized option: $1
  21605. Try \`$0 --help' for more information." >&2
  21606. { (exit 1); exit 1; }; } ;;
  21607. *) ac_config_targets="$ac_config_targets $1"
  21608. ac_need_defaults=false ;;
  21609. esac
  21610. shift
  21611. done
  21612. ac_configure_extra_args=
  21613. if $ac_cs_silent; then
  21614. exec 6>/dev/null
  21615. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21616. fi
  21617. _ACEOF
  21618. cat >>$CONFIG_STATUS <<_ACEOF
  21619. if \$ac_cs_recheck; then
  21620. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  21621. CONFIG_SHELL=$SHELL
  21622. export CONFIG_SHELL
  21623. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21624. fi
  21625. _ACEOF
  21626. cat >>$CONFIG_STATUS <<\_ACEOF
  21627. exec 5>>config.log
  21628. {
  21629. echo
  21630. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21631. ## Running $as_me. ##
  21632. _ASBOX
  21633. echo "$ac_log"
  21634. } >&5
  21635. _ACEOF
  21636. cat >>$CONFIG_STATUS <<_ACEOF
  21637. #
  21638. # INIT-COMMANDS
  21639. #
  21640. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21641. _ACEOF
  21642. cat >>$CONFIG_STATUS <<\_ACEOF
  21643. # Handling of arguments.
  21644. for ac_config_target in $ac_config_targets
  21645. do
  21646. case $ac_config_target in
  21647. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21648. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21649. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21650. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21651. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  21652. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  21653. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21654. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  21655. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21656. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21657. { (exit 1); exit 1; }; };;
  21658. esac
  21659. done
  21660. # If the user did not use the arguments to specify the items to instantiate,
  21661. # then the envvar interface is used. Set only those that are not.
  21662. # We use the long form for the default assignment because of an extremely
  21663. # bizarre bug on SunOS 4.1.3.
  21664. if $ac_need_defaults; then
  21665. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21666. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21667. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21668. fi
  21669. # Have a temporary directory for convenience. Make it in the build tree
  21670. # simply because there is no reason against having it here, and in addition,
  21671. # creating and moving files from /tmp can sometimes cause problems.
  21672. # Hook for its removal unless debugging.
  21673. # Note that there is a small window in which the directory will not be cleaned:
  21674. # after its creation but before its name has been assigned to `$tmp'.
  21675. $debug ||
  21676. {
  21677. tmp=
  21678. trap 'exit_status=$?
  21679. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21680. ' 0
  21681. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21682. }
  21683. # Create a (secure) tmp directory for tmp files.
  21684. {
  21685. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21686. test -n "$tmp" && test -d "$tmp"
  21687. } ||
  21688. {
  21689. tmp=./conf$$-$RANDOM
  21690. (umask 077 && mkdir "$tmp")
  21691. } ||
  21692. {
  21693. echo "$me: cannot create a temporary directory in ." >&2
  21694. { (exit 1); exit 1; }
  21695. }
  21696. #
  21697. # Set up the sed scripts for CONFIG_FILES section.
  21698. #
  21699. # No need to generate the scripts if there are no CONFIG_FILES.
  21700. # This happens for instance when ./config.status config.h
  21701. if test -n "$CONFIG_FILES"; then
  21702. _ACEOF
  21703. ac_delim='%!_!# '
  21704. for ac_last_try in false false false false false :; do
  21705. cat >conf$$subs.sed <<_ACEOF
  21706. SHELL!$SHELL$ac_delim
  21707. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  21708. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  21709. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  21710. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  21711. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  21712. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  21713. exec_prefix!$exec_prefix$ac_delim
  21714. prefix!$prefix$ac_delim
  21715. program_transform_name!$program_transform_name$ac_delim
  21716. bindir!$bindir$ac_delim
  21717. sbindir!$sbindir$ac_delim
  21718. libexecdir!$libexecdir$ac_delim
  21719. datarootdir!$datarootdir$ac_delim
  21720. datadir!$datadir$ac_delim
  21721. sysconfdir!$sysconfdir$ac_delim
  21722. sharedstatedir!$sharedstatedir$ac_delim
  21723. localstatedir!$localstatedir$ac_delim
  21724. includedir!$includedir$ac_delim
  21725. oldincludedir!$oldincludedir$ac_delim
  21726. docdir!$docdir$ac_delim
  21727. infodir!$infodir$ac_delim
  21728. htmldir!$htmldir$ac_delim
  21729. dvidir!$dvidir$ac_delim
  21730. pdfdir!$pdfdir$ac_delim
  21731. psdir!$psdir$ac_delim
  21732. libdir!$libdir$ac_delim
  21733. localedir!$localedir$ac_delim
  21734. mandir!$mandir$ac_delim
  21735. DEFS!$DEFS$ac_delim
  21736. ECHO_C!$ECHO_C$ac_delim
  21737. ECHO_N!$ECHO_N$ac_delim
  21738. ECHO_T!$ECHO_T$ac_delim
  21739. LIBS!$LIBS$ac_delim
  21740. build_alias!$build_alias$ac_delim
  21741. host_alias!$host_alias$ac_delim
  21742. target_alias!$target_alias$ac_delim
  21743. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  21744. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  21745. INSTALL_DATA!$INSTALL_DATA$ac_delim
  21746. am__isrc!$am__isrc$ac_delim
  21747. CYGPATH_W!$CYGPATH_W$ac_delim
  21748. PACKAGE!$PACKAGE$ac_delim
  21749. VERSION!$VERSION$ac_delim
  21750. ACLOCAL!$ACLOCAL$ac_delim
  21751. AUTOCONF!$AUTOCONF$ac_delim
  21752. AUTOMAKE!$AUTOMAKE$ac_delim
  21753. AUTOHEADER!$AUTOHEADER$ac_delim
  21754. MAKEINFO!$MAKEINFO$ac_delim
  21755. install_sh!$install_sh$ac_delim
  21756. STRIP!$STRIP$ac_delim
  21757. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  21758. mkdir_p!$mkdir_p$ac_delim
  21759. AWK!$AWK$ac_delim
  21760. SET_MAKE!$SET_MAKE$ac_delim
  21761. am__leading_dot!$am__leading_dot$ac_delim
  21762. AMTAR!$AMTAR$ac_delim
  21763. am__tar!$am__tar$ac_delim
  21764. am__untar!$am__untar$ac_delim
  21765. fsect!$fsect$ac_delim
  21766. FSECT5_TRUE!$FSECT5_TRUE$ac_delim
  21767. FSECT5_FALSE!$FSECT5_FALSE$ac_delim
  21768. CC!$CC$ac_delim
  21769. CFLAGS!$CFLAGS$ac_delim
  21770. LDFLAGS!$LDFLAGS$ac_delim
  21771. CPPFLAGS!$CPPFLAGS$ac_delim
  21772. ac_ct_CC!$ac_ct_CC$ac_delim
  21773. EXEEXT!$EXEEXT$ac_delim
  21774. OBJEXT!$OBJEXT$ac_delim
  21775. DEPDIR!$DEPDIR$ac_delim
  21776. am__include!$am__include$ac_delim
  21777. am__quote!$am__quote$ac_delim
  21778. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  21779. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  21780. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  21781. CCDEPMODE!$CCDEPMODE$ac_delim
  21782. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  21783. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  21784. LN_S!$LN_S$ac_delim
  21785. build!$build$ac_delim
  21786. build_cpu!$build_cpu$ac_delim
  21787. build_vendor!$build_vendor$ac_delim
  21788. build_os!$build_os$ac_delim
  21789. host!$host$ac_delim
  21790. host_cpu!$host_cpu$ac_delim
  21791. host_vendor!$host_vendor$ac_delim
  21792. host_os!$host_os$ac_delim
  21793. GREP!$GREP$ac_delim
  21794. EGREP!$EGREP$ac_delim
  21795. ECHO!$ECHO$ac_delim
  21796. AR!$AR$ac_delim
  21797. RANLIB!$RANLIB$ac_delim
  21798. CPP!$CPP$ac_delim
  21799. CXX!$CXX$ac_delim
  21800. CXXFLAGS!$CXXFLAGS$ac_delim
  21801. ac_ct_CXX!$ac_ct_CXX$ac_delim
  21802. CXXDEPMODE!$CXXDEPMODE$ac_delim
  21803. _ACEOF
  21804. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  21805. break
  21806. elif $ac_last_try; then
  21807. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21808. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21809. { (exit 1); exit 1; }; }
  21810. else
  21811. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21812. fi
  21813. done
  21814. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21815. if test -n "$ac_eof"; then
  21816. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21817. ac_eof=`expr $ac_eof + 1`
  21818. fi
  21819. cat >>$CONFIG_STATUS <<_ACEOF
  21820. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  21821. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21822. _ACEOF
  21823. sed '
  21824. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21825. s/^/s,@/; s/!/@,|#_!!_#|/
  21826. :n
  21827. t n
  21828. s/'"$ac_delim"'$/,g/; t
  21829. s/$/\\/; p
  21830. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21831. ' >>$CONFIG_STATUS <conf$$subs.sed
  21832. rm -f conf$$subs.sed
  21833. cat >>$CONFIG_STATUS <<_ACEOF
  21834. CEOF$ac_eof
  21835. _ACEOF
  21836. ac_delim='%!_!# '
  21837. for ac_last_try in false false false false false :; do
  21838. cat >conf$$subs.sed <<_ACEOF
  21839. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  21840. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  21841. CXXCPP!$CXXCPP$ac_delim
  21842. F77!$F77$ac_delim
  21843. FFLAGS!$FFLAGS$ac_delim
  21844. ac_ct_F77!$ac_ct_F77$ac_delim
  21845. LIBTOOL!$LIBTOOL$ac_delim
  21846. LIBOBJS!$LIBOBJS$ac_delim
  21847. IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
  21848. IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
  21849. LTLIBOBJS!$LTLIBOBJS$ac_delim
  21850. _ACEOF
  21851. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
  21852. break
  21853. elif $ac_last_try; then
  21854. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21855. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21856. { (exit 1); exit 1; }; }
  21857. else
  21858. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21859. fi
  21860. done
  21861. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21862. if test -n "$ac_eof"; then
  21863. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21864. ac_eof=`expr $ac_eof + 1`
  21865. fi
  21866. cat >>$CONFIG_STATUS <<_ACEOF
  21867. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  21868. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  21869. _ACEOF
  21870. sed '
  21871. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21872. s/^/s,@/; s/!/@,|#_!!_#|/
  21873. :n
  21874. t n
  21875. s/'"$ac_delim"'$/,g/; t
  21876. s/$/\\/; p
  21877. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21878. ' >>$CONFIG_STATUS <conf$$subs.sed
  21879. rm -f conf$$subs.sed
  21880. cat >>$CONFIG_STATUS <<_ACEOF
  21881. :end
  21882. s/|#_!!_#|//g
  21883. CEOF$ac_eof
  21884. _ACEOF
  21885. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21886. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21887. # trailing colons and then remove the whole line if VPATH becomes empty
  21888. # (actually we leave an empty line to preserve line numbers).
  21889. if test "x$srcdir" = x.; then
  21890. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21891. s/:*\$(srcdir):*/:/
  21892. s/:*\${srcdir}:*/:/
  21893. s/:*@srcdir@:*/:/
  21894. s/^\([^=]*=[ ]*\):*/\1/
  21895. s/:*$//
  21896. s/^[^=]*=[ ]*$//
  21897. }'
  21898. fi
  21899. cat >>$CONFIG_STATUS <<\_ACEOF
  21900. fi # test -n "$CONFIG_FILES"
  21901. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  21902. do
  21903. case $ac_tag in
  21904. :[FHLC]) ac_mode=$ac_tag; continue;;
  21905. esac
  21906. case $ac_mode$ac_tag in
  21907. :[FHL]*:*);;
  21908. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  21909. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  21910. { (exit 1); exit 1; }; };;
  21911. :[FH]-) ac_tag=-:-;;
  21912. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21913. esac
  21914. ac_save_IFS=$IFS
  21915. IFS=:
  21916. set x $ac_tag
  21917. IFS=$ac_save_IFS
  21918. shift
  21919. ac_file=$1
  21920. shift
  21921. case $ac_mode in
  21922. :L) ac_source=$1;;
  21923. :[FH])
  21924. ac_file_inputs=
  21925. for ac_f
  21926. do
  21927. case $ac_f in
  21928. -) ac_f="$tmp/stdin";;
  21929. *) # Look for the file first in the build tree, then in the source tree
  21930. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21931. # because $ac_f cannot contain `:'.
  21932. test -f "$ac_f" ||
  21933. case $ac_f in
  21934. [\\/$]*) false;;
  21935. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21936. esac ||
  21937. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21938. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21939. { (exit 1); exit 1; }; };;
  21940. esac
  21941. ac_file_inputs="$ac_file_inputs $ac_f"
  21942. done
  21943. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21944. # use $as_me), people would be surprised to read:
  21945. # /* config.h. Generated by config.status. */
  21946. configure_input="Generated from "`IFS=:
  21947. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  21948. if test x"$ac_file" != x-; then
  21949. configure_input="$ac_file. $configure_input"
  21950. { echo "$as_me:$LINENO: creating $ac_file" >&5
  21951. echo "$as_me: creating $ac_file" >&6;}
  21952. fi
  21953. case $ac_tag in
  21954. *:-:* | *:-) cat >"$tmp/stdin";;
  21955. esac
  21956. ;;
  21957. esac
  21958. ac_dir=`$as_dirname -- "$ac_file" ||
  21959. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21960. X"$ac_file" : 'X\(//\)[^/]' \| \
  21961. X"$ac_file" : 'X\(//\)$' \| \
  21962. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21963. echo X"$ac_file" |
  21964. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21965. s//\1/
  21966. q
  21967. }
  21968. /^X\(\/\/\)[^/].*/{
  21969. s//\1/
  21970. q
  21971. }
  21972. /^X\(\/\/\)$/{
  21973. s//\1/
  21974. q
  21975. }
  21976. /^X\(\/\).*/{
  21977. s//\1/
  21978. q
  21979. }
  21980. s/.*/./; q'`
  21981. { as_dir="$ac_dir"
  21982. case $as_dir in #(
  21983. -*) as_dir=./$as_dir;;
  21984. esac
  21985. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21986. as_dirs=
  21987. while :; do
  21988. case $as_dir in #(
  21989. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21990. *) as_qdir=$as_dir;;
  21991. esac
  21992. as_dirs="'$as_qdir' $as_dirs"
  21993. as_dir=`$as_dirname -- "$as_dir" ||
  21994. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21995. X"$as_dir" : 'X\(//\)[^/]' \| \
  21996. X"$as_dir" : 'X\(//\)$' \| \
  21997. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21998. echo X"$as_dir" |
  21999. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22000. s//\1/
  22001. q
  22002. }
  22003. /^X\(\/\/\)[^/].*/{
  22004. s//\1/
  22005. q
  22006. }
  22007. /^X\(\/\/\)$/{
  22008. s//\1/
  22009. q
  22010. }
  22011. /^X\(\/\).*/{
  22012. s//\1/
  22013. q
  22014. }
  22015. s/.*/./; q'`
  22016. test -d "$as_dir" && break
  22017. done
  22018. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22019. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22020. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22021. { (exit 1); exit 1; }; }; }
  22022. ac_builddir=.
  22023. case "$ac_dir" in
  22024. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22025. *)
  22026. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  22027. # A ".." for each directory in $ac_dir_suffix.
  22028. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  22029. case $ac_top_builddir_sub in
  22030. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22031. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22032. esac ;;
  22033. esac
  22034. ac_abs_top_builddir=$ac_pwd
  22035. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22036. # for backward compatibility:
  22037. ac_top_builddir=$ac_top_build_prefix
  22038. case $srcdir in
  22039. .) # We are building in place.
  22040. ac_srcdir=.
  22041. ac_top_srcdir=$ac_top_builddir_sub
  22042. ac_abs_top_srcdir=$ac_pwd ;;
  22043. [\\/]* | ?:[\\/]* ) # Absolute name.
  22044. ac_srcdir=$srcdir$ac_dir_suffix;
  22045. ac_top_srcdir=$srcdir
  22046. ac_abs_top_srcdir=$srcdir ;;
  22047. *) # Relative name.
  22048. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22049. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22050. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22051. esac
  22052. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22053. case $ac_mode in
  22054. :F)
  22055. #
  22056. # CONFIG_FILE
  22057. #
  22058. case $INSTALL in
  22059. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22060. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22061. esac
  22062. ac_MKDIR_P=$MKDIR_P
  22063. case $MKDIR_P in
  22064. [\\/$]* | ?:[\\/]* ) ;;
  22065. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22066. esac
  22067. _ACEOF
  22068. cat >>$CONFIG_STATUS <<\_ACEOF
  22069. # If the template does not know about datarootdir, expand it.
  22070. # FIXME: This hack should be removed a few years after 2.60.
  22071. ac_datarootdir_hack=; ac_datarootdir_seen=
  22072. case `sed -n '/datarootdir/ {
  22073. p
  22074. q
  22075. }
  22076. /@datadir@/p
  22077. /@docdir@/p
  22078. /@infodir@/p
  22079. /@localedir@/p
  22080. /@mandir@/p
  22081. ' $ac_file_inputs` in
  22082. *datarootdir*) ac_datarootdir_seen=yes;;
  22083. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22084. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22085. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22086. _ACEOF
  22087. cat >>$CONFIG_STATUS <<_ACEOF
  22088. ac_datarootdir_hack='
  22089. s&@datadir@&$datadir&g
  22090. s&@docdir@&$docdir&g
  22091. s&@infodir@&$infodir&g
  22092. s&@localedir@&$localedir&g
  22093. s&@mandir@&$mandir&g
  22094. s&\\\${datarootdir}&$datarootdir&g' ;;
  22095. esac
  22096. _ACEOF
  22097. # Neutralize VPATH when `$srcdir' = `.'.
  22098. # Shell code in configure.ac might set extrasub.
  22099. # FIXME: do we really want to maintain this feature?
  22100. cat >>$CONFIG_STATUS <<_ACEOF
  22101. sed "$ac_vpsub
  22102. $extrasub
  22103. _ACEOF
  22104. cat >>$CONFIG_STATUS <<\_ACEOF
  22105. :t
  22106. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22107. s&@configure_input@&$configure_input&;t t
  22108. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22109. s&@srcdir@&$ac_srcdir&;t t
  22110. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22111. s&@top_srcdir@&$ac_top_srcdir&;t t
  22112. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22113. s&@builddir@&$ac_builddir&;t t
  22114. s&@abs_builddir@&$ac_abs_builddir&;t t
  22115. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22116. s&@INSTALL@&$ac_INSTALL&;t t
  22117. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22118. $ac_datarootdir_hack
  22119. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  22120. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22121. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22122. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22123. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22124. which seems to be undefined. Please make sure it is defined." >&5
  22125. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22126. which seems to be undefined. Please make sure it is defined." >&2;}
  22127. rm -f "$tmp/stdin"
  22128. case $ac_file in
  22129. -) cat "$tmp/out"; rm -f "$tmp/out";;
  22130. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  22131. esac
  22132. ;;
  22133. :H)
  22134. #
  22135. # CONFIG_HEADER
  22136. #
  22137. _ACEOF
  22138. # Transform confdefs.h into a sed script `conftest.defines', that
  22139. # substitutes the proper values into config.h.in to produce config.h.
  22140. rm -f conftest.defines conftest.tail
  22141. # First, append a space to every undef/define line, to ease matching.
  22142. echo 's/$/ /' >conftest.defines
  22143. # Then, protect against being on the right side of a sed subst, or in
  22144. # an unquoted here document, in config.status. If some macros were
  22145. # called several times there might be several #defines for the same
  22146. # symbol, which is useless. But do not sort them, since the last
  22147. # AC_DEFINE must be honored.
  22148. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22149. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  22150. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  22151. # PARAMS is the parameter list in the macro definition--in most cases, it's
  22152. # just an empty string.
  22153. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  22154. ac_dB='\\)[ (].*,\\1define\\2'
  22155. ac_dC=' '
  22156. ac_dD=' ,'
  22157. uniq confdefs.h |
  22158. sed -n '
  22159. t rset
  22160. :rset
  22161. s/^[ ]*#[ ]*define[ ][ ]*//
  22162. t ok
  22163. d
  22164. :ok
  22165. s/[\\&,]/\\&/g
  22166. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  22167. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  22168. ' >>conftest.defines
  22169. # Remove the space that was appended to ease matching.
  22170. # Then replace #undef with comments. This is necessary, for
  22171. # example, in the case of _POSIX_SOURCE, which is predefined and required
  22172. # on some systems where configure will not decide to define it.
  22173. # (The regexp can be short, since the line contains either #define or #undef.)
  22174. echo 's/ $//
  22175. s,^[ #]*u.*,/* & */,' >>conftest.defines
  22176. # Break up conftest.defines:
  22177. ac_max_sed_lines=50
  22178. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  22179. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  22180. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  22181. # et cetera.
  22182. ac_in='$ac_file_inputs'
  22183. ac_out='"$tmp/out1"'
  22184. ac_nxt='"$tmp/out2"'
  22185. while :
  22186. do
  22187. # Write a here document:
  22188. cat >>$CONFIG_STATUS <<_ACEOF
  22189. # First, check the format of the line:
  22190. cat >"\$tmp/defines.sed" <<\\CEOF
  22191. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  22192. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  22193. b
  22194. :def
  22195. _ACEOF
  22196. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  22197. echo 'CEOF
  22198. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  22199. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  22200. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  22201. grep . conftest.tail >/dev/null || break
  22202. rm -f conftest.defines
  22203. mv conftest.tail conftest.defines
  22204. done
  22205. rm -f conftest.defines conftest.tail
  22206. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  22207. cat >>$CONFIG_STATUS <<\_ACEOF
  22208. if test x"$ac_file" != x-; then
  22209. echo "/* $configure_input */" >"$tmp/config.h"
  22210. cat "$ac_result" >>"$tmp/config.h"
  22211. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  22212. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22213. echo "$as_me: $ac_file is unchanged" >&6;}
  22214. else
  22215. rm -f $ac_file
  22216. mv "$tmp/config.h" $ac_file
  22217. fi
  22218. else
  22219. echo "/* $configure_input */"
  22220. cat "$ac_result"
  22221. fi
  22222. rm -f "$tmp/out12"
  22223. # Compute $ac_file's index in $config_headers.
  22224. _am_stamp_count=1
  22225. for _am_header in $config_headers :; do
  22226. case $_am_header in
  22227. $ac_file | $ac_file:* )
  22228. break ;;
  22229. * )
  22230. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22231. esac
  22232. done
  22233. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  22234. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22235. X$ac_file : 'X\(//\)[^/]' \| \
  22236. X$ac_file : 'X\(//\)$' \| \
  22237. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  22238. echo X$ac_file |
  22239. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22240. s//\1/
  22241. q
  22242. }
  22243. /^X\(\/\/\)[^/].*/{
  22244. s//\1/
  22245. q
  22246. }
  22247. /^X\(\/\/\)$/{
  22248. s//\1/
  22249. q
  22250. }
  22251. /^X\(\/\).*/{
  22252. s//\1/
  22253. q
  22254. }
  22255. s/.*/./; q'`/stamp-h$_am_stamp_count
  22256. ;;
  22257. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22258. echo "$as_me: executing $ac_file commands" >&6;}
  22259. ;;
  22260. esac
  22261. case $ac_file$ac_mode in
  22262. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  22263. # Strip MF so we end up with the name of the file.
  22264. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22265. # Check whether this is an Automake generated Makefile or not.
  22266. # We used to match only the files named `Makefile.in', but
  22267. # some people rename them; so instead we look at the file content.
  22268. # Grep'ing the first line is not enough: some people post-process
  22269. # each Makefile.in and add a new line on top of each file to say so.
  22270. # Grep'ing the whole file is not good either: AIX grep has a line
  22271. # limit of 2048, but all sed's we know have understand at least 4000.
  22272. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  22273. dirpart=`$as_dirname -- "$mf" ||
  22274. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22275. X"$mf" : 'X\(//\)[^/]' \| \
  22276. X"$mf" : 'X\(//\)$' \| \
  22277. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22278. echo X"$mf" |
  22279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22280. s//\1/
  22281. q
  22282. }
  22283. /^X\(\/\/\)[^/].*/{
  22284. s//\1/
  22285. q
  22286. }
  22287. /^X\(\/\/\)$/{
  22288. s//\1/
  22289. q
  22290. }
  22291. /^X\(\/\).*/{
  22292. s//\1/
  22293. q
  22294. }
  22295. s/.*/./; q'`
  22296. else
  22297. continue
  22298. fi
  22299. # Extract the definition of DEPDIR, am__include, and am__quote
  22300. # from the Makefile without running `make'.
  22301. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22302. test -z "$DEPDIR" && continue
  22303. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22304. test -z "am__include" && continue
  22305. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22306. # When using ansi2knr, U may be empty or an underscore; expand it
  22307. U=`sed -n 's/^U = //p' < "$mf"`
  22308. # Find all dependency output files, they are included files with
  22309. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22310. # simplest approach to changing $(DEPDIR) to its actual value in the
  22311. # expansion.
  22312. for file in `sed -n "
  22313. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22314. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22315. # Make sure the directory exists.
  22316. test -f "$dirpart/$file" && continue
  22317. fdir=`$as_dirname -- "$file" ||
  22318. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22319. X"$file" : 'X\(//\)[^/]' \| \
  22320. X"$file" : 'X\(//\)$' \| \
  22321. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22322. echo X"$file" |
  22323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22324. s//\1/
  22325. q
  22326. }
  22327. /^X\(\/\/\)[^/].*/{
  22328. s//\1/
  22329. q
  22330. }
  22331. /^X\(\/\/\)$/{
  22332. s//\1/
  22333. q
  22334. }
  22335. /^X\(\/\).*/{
  22336. s//\1/
  22337. q
  22338. }
  22339. s/.*/./; q'`
  22340. { as_dir=$dirpart/$fdir
  22341. case $as_dir in #(
  22342. -*) as_dir=./$as_dir;;
  22343. esac
  22344. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22345. as_dirs=
  22346. while :; do
  22347. case $as_dir in #(
  22348. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22349. *) as_qdir=$as_dir;;
  22350. esac
  22351. as_dirs="'$as_qdir' $as_dirs"
  22352. as_dir=`$as_dirname -- "$as_dir" ||
  22353. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22354. X"$as_dir" : 'X\(//\)[^/]' \| \
  22355. X"$as_dir" : 'X\(//\)$' \| \
  22356. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22357. echo X"$as_dir" |
  22358. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22359. s//\1/
  22360. q
  22361. }
  22362. /^X\(\/\/\)[^/].*/{
  22363. s//\1/
  22364. q
  22365. }
  22366. /^X\(\/\/\)$/{
  22367. s//\1/
  22368. q
  22369. }
  22370. /^X\(\/\).*/{
  22371. s//\1/
  22372. q
  22373. }
  22374. s/.*/./; q'`
  22375. test -d "$as_dir" && break
  22376. done
  22377. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22378. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22379. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22380. { (exit 1); exit 1; }; }; }
  22381. # echo "creating $dirpart/$file"
  22382. echo '# dummy' > "$dirpart/$file"
  22383. done
  22384. done
  22385. ;;
  22386. esac
  22387. done # for ac_tag
  22388. { (exit 0); exit 0; }
  22389. _ACEOF
  22390. chmod +x $CONFIG_STATUS
  22391. ac_clean_files=$ac_clean_files_save
  22392. # configure is writing to config.log, and then calls config.status.
  22393. # config.status does its own redirection, appending to config.log.
  22394. # Unfortunately, on DOS this fails, as config.log is still kept open
  22395. # by configure, so config.status won't be able to write to it; its
  22396. # output is simply discarded. So we exec the FD to /dev/null,
  22397. # effectively closing config.log, so it can be properly (re)opened and
  22398. # appended to by config.status. When coming back to configure, we
  22399. # need to make the FD available again.
  22400. if test "$no_create" != yes; then
  22401. ac_cs_success=:
  22402. ac_config_status_args=
  22403. test "$silent" = yes &&
  22404. ac_config_status_args="$ac_config_status_args --quiet"
  22405. exec 5>/dev/null
  22406. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22407. exec 5>>config.log
  22408. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22409. # would make configure fail if this is the last instruction.
  22410. $ac_cs_success || { (exit 1); exit 1; }
  22411. fi