configure 835 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for fedora-ds 1.1.0a3.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Check that we are running under the correct shell.
  217. SHELL=${CONFIG_SHELL-/bin/sh}
  218. case X$ECHO in
  219. X*--fallback-echo)
  220. # Remove one level of quotation (which was required for Make).
  221. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  222. ;;
  223. esac
  224. echo=${ECHO-echo}
  225. if test "X$1" = X--no-reexec; then
  226. # Discard the --no-reexec flag, and continue.
  227. shift
  228. elif test "X$1" = X--fallback-echo; then
  229. # Avoid inline document here, it may be left over
  230. :
  231. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  232. # Yippee, $echo works!
  233. :
  234. else
  235. # Restart under the correct shell.
  236. exec $SHELL "$0" --no-reexec ${1+"$@"}
  237. fi
  238. if test "X$1" = X--fallback-echo; then
  239. # used as fallback echo
  240. shift
  241. cat <<EOF
  242. $*
  243. EOF
  244. exit 0
  245. fi
  246. # The HP-UX ksh and POSIX shell print the target directory to stdout
  247. # if CDPATH is set.
  248. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  249. if test -z "$ECHO"; then
  250. if test "X${echo_test_string+set}" != Xset; then
  251. # find a string as large as possible, as long as the shell can cope with it
  252. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  253. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  254. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  255. echo_test_string=`eval $cmd` &&
  256. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  257. then
  258. break
  259. fi
  260. done
  261. fi
  262. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  263. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  264. test "X$echo_testing_string" = "X$echo_test_string"; then
  265. :
  266. else
  267. # The Solaris, AIX, and Digital Unix default echo programs unquote
  268. # backslashes. This makes it impossible to quote backslashes using
  269. # echo "$something" | sed 's/\\/\\\\/g'
  270. #
  271. # So, first we look for a working echo in the user's PATH.
  272. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  273. for dir in $PATH /usr/ucb; do
  274. IFS="$lt_save_ifs"
  275. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  276. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  277. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  278. test "X$echo_testing_string" = "X$echo_test_string"; then
  279. echo="$dir/echo"
  280. break
  281. fi
  282. done
  283. IFS="$lt_save_ifs"
  284. if test "X$echo" = Xecho; then
  285. # We didn't find a better echo, so look for alternatives.
  286. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  287. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  288. test "X$echo_testing_string" = "X$echo_test_string"; then
  289. # This shell has a builtin print -r that does the trick.
  290. echo='print -r'
  291. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  292. test "X$CONFIG_SHELL" != X/bin/ksh; then
  293. # If we have ksh, try running configure again with it.
  294. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  295. export ORIGINAL_CONFIG_SHELL
  296. CONFIG_SHELL=/bin/ksh
  297. export CONFIG_SHELL
  298. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  299. else
  300. # Try using printf.
  301. echo='printf %s\n'
  302. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  303. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  304. test "X$echo_testing_string" = "X$echo_test_string"; then
  305. # Cool, printf works
  306. :
  307. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  308. test "X$echo_testing_string" = 'X\t' &&
  309. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  310. test "X$echo_testing_string" = "X$echo_test_string"; then
  311. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  312. export CONFIG_SHELL
  313. SHELL="$CONFIG_SHELL"
  314. export SHELL
  315. echo="$CONFIG_SHELL $0 --fallback-echo"
  316. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  317. test "X$echo_testing_string" = 'X\t' &&
  318. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  319. test "X$echo_testing_string" = "X$echo_test_string"; then
  320. echo="$CONFIG_SHELL $0 --fallback-echo"
  321. else
  322. # maybe with a smaller string...
  323. prev=:
  324. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  325. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  326. then
  327. break
  328. fi
  329. prev="$cmd"
  330. done
  331. if test "$prev" != 'sed 50q "$0"'; then
  332. echo_test_string=`eval $prev`
  333. export echo_test_string
  334. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  335. else
  336. # Oops. We lost completely, so just stick with echo.
  337. echo=echo
  338. fi
  339. fi
  340. fi
  341. fi
  342. fi
  343. fi
  344. # Copy echo and quote the copy suitably for passing to libtool from
  345. # the Makefile, instead of quoting the original, which is used later.
  346. ECHO=$echo
  347. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  348. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  349. fi
  350. tagnames=${tagnames+${tagnames},}CXX
  351. tagnames=${tagnames+${tagnames},}F77
  352. # Name of the host.
  353. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  354. # so uname gets run too.
  355. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  356. exec 6>&1
  357. #
  358. # Initializations.
  359. #
  360. ac_default_prefix=/usr/local
  361. ac_config_libobj_dir=.
  362. cross_compiling=no
  363. subdirs=
  364. MFLAGS=
  365. MAKEFLAGS=
  366. SHELL=${CONFIG_SHELL-/bin/sh}
  367. # Maximum number of lines to put in a shell here document.
  368. # This variable seems obsolete. It should probably be removed, and
  369. # only ac_max_sed_lines should be used.
  370. : ${ac_max_here_lines=38}
  371. # Identity of this package.
  372. PACKAGE_NAME='fedora-ds'
  373. PACKAGE_TARNAME='fedora-ds'
  374. PACKAGE_VERSION='1.1.0a3'
  375. PACKAGE_STRING='fedora-ds 1.1.0a3'
  376. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  377. # Factoring default headers for most tests.
  378. ac_includes_default="\
  379. #include <stdio.h>
  380. #if HAVE_SYS_TYPES_H
  381. # include <sys/types.h>
  382. #endif
  383. #if HAVE_SYS_STAT_H
  384. # include <sys/stat.h>
  385. #endif
  386. #if STDC_HEADERS
  387. # include <stdlib.h>
  388. # include <stddef.h>
  389. #else
  390. # if HAVE_STDLIB_H
  391. # include <stdlib.h>
  392. # endif
  393. #endif
  394. #if HAVE_STRING_H
  395. # if !STDC_HEADERS && HAVE_MEMORY_H
  396. # include <memory.h>
  397. # endif
  398. # include <string.h>
  399. #endif
  400. #if HAVE_STRINGS_H
  401. # include <strings.h>
  402. #endif
  403. #if HAVE_INTTYPES_H
  404. # include <inttypes.h>
  405. #else
  406. # if HAVE_STDINT_H
  407. # include <stdint.h>
  408. # endif
  409. #endif
  410. #if HAVE_UNISTD_H
  411. # include <unistd.h>
  412. #endif"
  413. ac_default_prefix=/opt/$PACKAGE_NAME
  414. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS debug_defs BUNDLE_TRUE BUNDLE_FALSE enable_pam_passthru_TRUE enable_pam_passthru_FALSE enable_dna_TRUE enable_dna_FALSE enable_ldapi_TRUE enable_ldapi_FALSE configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir instconfigdir WINNT_TRUE WINNT_FALSE LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib ldapsdk_libdir ldapsdk_bindir db_inc db_incdir db_lib db_libdir db_bindir db_libver sasl_inc sasl_lib sasl_libdir svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link LTLIBOBJS'
  415. ac_subst_files=''
  416. # Initialize some variables set by options.
  417. ac_init_help=
  418. ac_init_version=false
  419. # The variables have the same names as the options, with
  420. # dashes changed to underlines.
  421. cache_file=/dev/null
  422. exec_prefix=NONE
  423. no_create=
  424. no_recursion=
  425. prefix=NONE
  426. program_prefix=NONE
  427. program_suffix=NONE
  428. program_transform_name=s,x,x,
  429. silent=
  430. site=
  431. srcdir=
  432. verbose=
  433. x_includes=NONE
  434. x_libraries=NONE
  435. # Installation directory options.
  436. # These are left unexpanded so users can "make install exec_prefix=/foo"
  437. # and all the variables that are supposed to be based on exec_prefix
  438. # by default will actually change.
  439. # Use braces instead of parens because sh, perl, etc. also accept them.
  440. bindir='${exec_prefix}/bin'
  441. sbindir='${exec_prefix}/sbin'
  442. libexecdir='${exec_prefix}/libexec'
  443. datadir='${prefix}/share'
  444. sysconfdir='${prefix}/etc'
  445. sharedstatedir='${prefix}/com'
  446. localstatedir='${prefix}/var'
  447. libdir='${exec_prefix}/lib'
  448. includedir='${prefix}/include'
  449. oldincludedir='/usr/include'
  450. infodir='${prefix}/info'
  451. mandir='${prefix}/man'
  452. ac_prev=
  453. for ac_option
  454. do
  455. # If the previous option needs an argument, assign it.
  456. if test -n "$ac_prev"; then
  457. eval "$ac_prev=\$ac_option"
  458. ac_prev=
  459. continue
  460. fi
  461. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  462. # Accept the important Cygnus configure options, so we can diagnose typos.
  463. case $ac_option in
  464. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  465. ac_prev=bindir ;;
  466. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  467. bindir=$ac_optarg ;;
  468. -build | --build | --buil | --bui | --bu)
  469. ac_prev=build_alias ;;
  470. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  471. build_alias=$ac_optarg ;;
  472. -cache-file | --cache-file | --cache-fil | --cache-fi \
  473. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  474. ac_prev=cache_file ;;
  475. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  476. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  477. cache_file=$ac_optarg ;;
  478. --config-cache | -C)
  479. cache_file=config.cache ;;
  480. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  481. ac_prev=datadir ;;
  482. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  483. | --da=*)
  484. datadir=$ac_optarg ;;
  485. -disable-* | --disable-*)
  486. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. eval "enable_$ac_feature=no" ;;
  493. -enable-* | --enable-*)
  494. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  495. # Reject names that are not valid shell variable names.
  496. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  497. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  498. { (exit 1); exit 1; }; }
  499. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  500. case $ac_option in
  501. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  502. *) ac_optarg=yes ;;
  503. esac
  504. eval "enable_$ac_feature='$ac_optarg'" ;;
  505. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  506. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  507. | --exec | --exe | --ex)
  508. ac_prev=exec_prefix ;;
  509. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  510. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  511. | --exec=* | --exe=* | --ex=*)
  512. exec_prefix=$ac_optarg ;;
  513. -gas | --gas | --ga | --g)
  514. # Obsolete; use --with-gas.
  515. with_gas=yes ;;
  516. -help | --help | --hel | --he | -h)
  517. ac_init_help=long ;;
  518. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  519. ac_init_help=recursive ;;
  520. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  521. ac_init_help=short ;;
  522. -host | --host | --hos | --ho)
  523. ac_prev=host_alias ;;
  524. -host=* | --host=* | --hos=* | --ho=*)
  525. host_alias=$ac_optarg ;;
  526. -includedir | --includedir | --includedi | --included | --include \
  527. | --includ | --inclu | --incl | --inc)
  528. ac_prev=includedir ;;
  529. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  530. | --includ=* | --inclu=* | --incl=* | --inc=*)
  531. includedir=$ac_optarg ;;
  532. -infodir | --infodir | --infodi | --infod | --info | --inf)
  533. ac_prev=infodir ;;
  534. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  535. infodir=$ac_optarg ;;
  536. -libdir | --libdir | --libdi | --libd)
  537. ac_prev=libdir ;;
  538. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  539. libdir=$ac_optarg ;;
  540. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  541. | --libexe | --libex | --libe)
  542. ac_prev=libexecdir ;;
  543. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  544. | --libexe=* | --libex=* | --libe=*)
  545. libexecdir=$ac_optarg ;;
  546. -localstatedir | --localstatedir | --localstatedi | --localstated \
  547. | --localstate | --localstat | --localsta | --localst \
  548. | --locals | --local | --loca | --loc | --lo)
  549. ac_prev=localstatedir ;;
  550. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  551. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  552. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  553. localstatedir=$ac_optarg ;;
  554. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  555. ac_prev=mandir ;;
  556. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  557. mandir=$ac_optarg ;;
  558. -nfp | --nfp | --nf)
  559. # Obsolete; use --without-fp.
  560. with_fp=no ;;
  561. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  562. | --no-cr | --no-c | -n)
  563. no_create=yes ;;
  564. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  565. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  566. no_recursion=yes ;;
  567. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  568. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  569. | --oldin | --oldi | --old | --ol | --o)
  570. ac_prev=oldincludedir ;;
  571. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  572. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  573. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  574. oldincludedir=$ac_optarg ;;
  575. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  576. ac_prev=prefix ;;
  577. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  578. prefix=$ac_optarg ;;
  579. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  580. | --program-pre | --program-pr | --program-p)
  581. ac_prev=program_prefix ;;
  582. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  583. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  584. program_prefix=$ac_optarg ;;
  585. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  586. | --program-suf | --program-su | --program-s)
  587. ac_prev=program_suffix ;;
  588. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  589. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  590. program_suffix=$ac_optarg ;;
  591. -program-transform-name | --program-transform-name \
  592. | --program-transform-nam | --program-transform-na \
  593. | --program-transform-n | --program-transform- \
  594. | --program-transform | --program-transfor \
  595. | --program-transfo | --program-transf \
  596. | --program-trans | --program-tran \
  597. | --progr-tra | --program-tr | --program-t)
  598. ac_prev=program_transform_name ;;
  599. -program-transform-name=* | --program-transform-name=* \
  600. | --program-transform-nam=* | --program-transform-na=* \
  601. | --program-transform-n=* | --program-transform-=* \
  602. | --program-transform=* | --program-transfor=* \
  603. | --program-transfo=* | --program-transf=* \
  604. | --program-trans=* | --program-tran=* \
  605. | --progr-tra=* | --program-tr=* | --program-t=*)
  606. program_transform_name=$ac_optarg ;;
  607. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  608. | -silent | --silent | --silen | --sile | --sil)
  609. silent=yes ;;
  610. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  611. ac_prev=sbindir ;;
  612. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  613. | --sbi=* | --sb=*)
  614. sbindir=$ac_optarg ;;
  615. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  616. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  617. | --sharedst | --shareds | --shared | --share | --shar \
  618. | --sha | --sh)
  619. ac_prev=sharedstatedir ;;
  620. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  621. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  622. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  623. | --sha=* | --sh=*)
  624. sharedstatedir=$ac_optarg ;;
  625. -site | --site | --sit)
  626. ac_prev=site ;;
  627. -site=* | --site=* | --sit=*)
  628. site=$ac_optarg ;;
  629. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  630. ac_prev=srcdir ;;
  631. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  632. srcdir=$ac_optarg ;;
  633. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  634. | --syscon | --sysco | --sysc | --sys | --sy)
  635. ac_prev=sysconfdir ;;
  636. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  637. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  638. sysconfdir=$ac_optarg ;;
  639. -target | --target | --targe | --targ | --tar | --ta | --t)
  640. ac_prev=target_alias ;;
  641. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  642. target_alias=$ac_optarg ;;
  643. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  644. verbose=yes ;;
  645. -version | --version | --versio | --versi | --vers | -V)
  646. ac_init_version=: ;;
  647. -with-* | --with-*)
  648. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  649. # Reject names that are not valid shell variable names.
  650. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  651. { echo "$as_me: error: invalid package name: $ac_package" >&2
  652. { (exit 1); exit 1; }; }
  653. ac_package=`echo $ac_package| sed 's/-/_/g'`
  654. case $ac_option in
  655. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  656. *) ac_optarg=yes ;;
  657. esac
  658. eval "with_$ac_package='$ac_optarg'" ;;
  659. -without-* | --without-*)
  660. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  661. # Reject names that are not valid shell variable names.
  662. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  663. { echo "$as_me: error: invalid package name: $ac_package" >&2
  664. { (exit 1); exit 1; }; }
  665. ac_package=`echo $ac_package | sed 's/-/_/g'`
  666. eval "with_$ac_package=no" ;;
  667. --x)
  668. # Obsolete; use --with-x.
  669. with_x=yes ;;
  670. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  671. | --x-incl | --x-inc | --x-in | --x-i)
  672. ac_prev=x_includes ;;
  673. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  674. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  675. x_includes=$ac_optarg ;;
  676. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  677. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  678. ac_prev=x_libraries ;;
  679. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  680. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  681. x_libraries=$ac_optarg ;;
  682. -*) { echo "$as_me: error: unrecognized option: $ac_option
  683. Try \`$0 --help' for more information." >&2
  684. { (exit 1); exit 1; }; }
  685. ;;
  686. *=*)
  687. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  688. # Reject names that are not valid shell variable names.
  689. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  690. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  691. { (exit 1); exit 1; }; }
  692. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  693. eval "$ac_envvar='$ac_optarg'"
  694. export $ac_envvar ;;
  695. *)
  696. # FIXME: should be removed in autoconf 3.0.
  697. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  698. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  699. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  700. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  701. ;;
  702. esac
  703. done
  704. if test -n "$ac_prev"; then
  705. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  706. { echo "$as_me: error: missing argument to $ac_option" >&2
  707. { (exit 1); exit 1; }; }
  708. fi
  709. # Be sure to have absolute paths.
  710. for ac_var in exec_prefix prefix
  711. do
  712. eval ac_val=$`echo $ac_var`
  713. case $ac_val in
  714. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  715. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  716. { (exit 1); exit 1; }; };;
  717. esac
  718. done
  719. # Be sure to have absolute paths.
  720. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  721. localstatedir libdir includedir oldincludedir infodir mandir
  722. do
  723. eval ac_val=$`echo $ac_var`
  724. case $ac_val in
  725. [\\/$]* | ?:[\\/]* ) ;;
  726. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  727. { (exit 1); exit 1; }; };;
  728. esac
  729. done
  730. # There might be people who depend on the old broken behavior: `$host'
  731. # used to hold the argument of --host etc.
  732. # FIXME: To remove some day.
  733. build=$build_alias
  734. host=$host_alias
  735. target=$target_alias
  736. # FIXME: To remove some day.
  737. if test "x$host_alias" != x; then
  738. if test "x$build_alias" = x; then
  739. cross_compiling=maybe
  740. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  741. If a cross compiler is detected then cross compile mode will be used." >&2
  742. elif test "x$build_alias" != "x$host_alias"; then
  743. cross_compiling=yes
  744. fi
  745. fi
  746. ac_tool_prefix=
  747. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  748. test "$silent" = yes && exec 6>/dev/null
  749. # Find the source files, if location was not specified.
  750. if test -z "$srcdir"; then
  751. ac_srcdir_defaulted=yes
  752. # Try the directory containing this script, then its parent.
  753. ac_confdir=`(dirname "$0") 2>/dev/null ||
  754. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  755. X"$0" : 'X\(//\)[^/]' \| \
  756. X"$0" : 'X\(//\)$' \| \
  757. X"$0" : 'X\(/\)' \| \
  758. . : '\(.\)' 2>/dev/null ||
  759. echo X"$0" |
  760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  761. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  762. /^X\(\/\/\)$/{ s//\1/; q; }
  763. /^X\(\/\).*/{ s//\1/; q; }
  764. s/.*/./; q'`
  765. srcdir=$ac_confdir
  766. if test ! -r $srcdir/$ac_unique_file; then
  767. srcdir=..
  768. fi
  769. else
  770. ac_srcdir_defaulted=no
  771. fi
  772. if test ! -r $srcdir/$ac_unique_file; then
  773. if test "$ac_srcdir_defaulted" = yes; then
  774. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  775. { (exit 1); exit 1; }; }
  776. else
  777. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  778. { (exit 1); exit 1; }; }
  779. fi
  780. fi
  781. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  782. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  783. { (exit 1); exit 1; }; }
  784. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  785. ac_env_build_alias_set=${build_alias+set}
  786. ac_env_build_alias_value=$build_alias
  787. ac_cv_env_build_alias_set=${build_alias+set}
  788. ac_cv_env_build_alias_value=$build_alias
  789. ac_env_host_alias_set=${host_alias+set}
  790. ac_env_host_alias_value=$host_alias
  791. ac_cv_env_host_alias_set=${host_alias+set}
  792. ac_cv_env_host_alias_value=$host_alias
  793. ac_env_target_alias_set=${target_alias+set}
  794. ac_env_target_alias_value=$target_alias
  795. ac_cv_env_target_alias_set=${target_alias+set}
  796. ac_cv_env_target_alias_value=$target_alias
  797. ac_env_CXX_set=${CXX+set}
  798. ac_env_CXX_value=$CXX
  799. ac_cv_env_CXX_set=${CXX+set}
  800. ac_cv_env_CXX_value=$CXX
  801. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  802. ac_env_CXXFLAGS_value=$CXXFLAGS
  803. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  804. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  805. ac_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_env_LDFLAGS_value=$LDFLAGS
  807. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  808. ac_cv_env_LDFLAGS_value=$LDFLAGS
  809. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  812. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  813. ac_env_CC_set=${CC+set}
  814. ac_env_CC_value=$CC
  815. ac_cv_env_CC_set=${CC+set}
  816. ac_cv_env_CC_value=$CC
  817. ac_env_CFLAGS_set=${CFLAGS+set}
  818. ac_env_CFLAGS_value=$CFLAGS
  819. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  820. ac_cv_env_CFLAGS_value=$CFLAGS
  821. ac_env_CPP_set=${CPP+set}
  822. ac_env_CPP_value=$CPP
  823. ac_cv_env_CPP_set=${CPP+set}
  824. ac_cv_env_CPP_value=$CPP
  825. ac_env_CXXCPP_set=${CXXCPP+set}
  826. ac_env_CXXCPP_value=$CXXCPP
  827. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  828. ac_cv_env_CXXCPP_value=$CXXCPP
  829. ac_env_F77_set=${F77+set}
  830. ac_env_F77_value=$F77
  831. ac_cv_env_F77_set=${F77+set}
  832. ac_cv_env_F77_value=$F77
  833. ac_env_FFLAGS_set=${FFLAGS+set}
  834. ac_env_FFLAGS_value=$FFLAGS
  835. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  836. ac_cv_env_FFLAGS_value=$FFLAGS
  837. #
  838. # Report the --help message.
  839. #
  840. if test "$ac_init_help" = "long"; then
  841. # Omit some internal or obsolete options to make the list less imposing.
  842. # This message is too long to be a string in the A/UX 3.1 sh.
  843. cat <<_ACEOF
  844. \`configure' configures fedora-ds 1.1.0a3 to adapt to many kinds of systems.
  845. Usage: $0 [OPTION]... [VAR=VALUE]...
  846. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  847. VAR=VALUE. See below for descriptions of some of the useful variables.
  848. Defaults for the options are specified in brackets.
  849. Configuration:
  850. -h, --help display this help and exit
  851. --help=short display options specific to this package
  852. --help=recursive display the short help of all the included packages
  853. -V, --version display version information and exit
  854. -q, --quiet, --silent do not print \`checking...' messages
  855. --cache-file=FILE cache test results in FILE [disabled]
  856. -C, --config-cache alias for \`--cache-file=config.cache'
  857. -n, --no-create do not create output files
  858. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  859. _ACEOF
  860. cat <<_ACEOF
  861. Installation directories:
  862. --prefix=PREFIX install architecture-independent files in PREFIX
  863. [$ac_default_prefix]
  864. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  865. [PREFIX]
  866. By default, \`make install' will install all the files in
  867. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  868. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  869. for instance \`--prefix=\$HOME'.
  870. For better control, use the options below.
  871. Fine tuning of the installation directories:
  872. --bindir=DIR user executables [EPREFIX/bin]
  873. --sbindir=DIR system admin executables [EPREFIX/sbin]
  874. --libexecdir=DIR program executables [EPREFIX/libexec]
  875. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  876. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  877. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  878. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  879. --libdir=DIR object code libraries [EPREFIX/lib]
  880. --includedir=DIR C header files [PREFIX/include]
  881. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  882. --infodir=DIR info documentation [PREFIX/info]
  883. --mandir=DIR man documentation [PREFIX/man]
  884. _ACEOF
  885. cat <<\_ACEOF
  886. Program names:
  887. --program-prefix=PREFIX prepend PREFIX to installed program names
  888. --program-suffix=SUFFIX append SUFFIX to installed program names
  889. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  890. System types:
  891. --build=BUILD configure for building on BUILD [guessed]
  892. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. case $ac_init_help in
  897. short | recursive ) echo "Configuration of fedora-ds 1.1.0a3:";;
  898. esac
  899. cat <<\_ACEOF
  900. Optional Features:
  901. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  902. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  903. --enable-maintainer-mode enable make rules and dependencies not useful
  904. (and sometimes confusing) to the casual installer
  905. --disable-dependency-tracking speeds up one-time build
  906. --enable-dependency-tracking do not reject slow dependency extractors
  907. --enable-static[=PKGS]
  908. build static libraries [default=no]
  909. --enable-shared[=PKGS]
  910. build shared libraries [default=yes]
  911. --enable-fast-install[=PKGS]
  912. optimize for fast installation [default=yes]
  913. --disable-libtool-lock avoid locking (might break parallel builds)
  914. --enable-debug Enable debug features (default: no)
  915. --enable-bundle Enable bundled dependencies (default: no)
  916. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  917. yes)
  918. --enable-dna enable the Distributed Numeric Assignment (DNA)
  919. plugin (default: yes)
  920. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  921. (default: yes)
  922. Optional Packages:
  923. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  924. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  925. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  926. --with-pic try to use only PIC/non-PIC objects [default=use
  927. both]
  928. --with-tags[=TAGS]
  929. include additional configurations [automatic]
  930. --with-fhs Use FHS layout
  931. --with-fhs-opt Use FHS optional layout
  932. --with-instconfigdir=/path
  933. Base directory for instance specific writable
  934. configuration directories (default
  935. $sysconfdir/$PACKAGE_NAME)
  936. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  937. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  938. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  939. --with-nss=PATH Network Security Services (NSS) directory
  940. --with-nss-inc=PATH Network Security Services (NSS) include directory
  941. --with-nss-lib=PATH Network Security Services (NSS) library directory
  942. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  943. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  944. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  945. --with-db=PATH Berkeley DB directory
  946. --with-sasl=PATH Use sasl from supplied path
  947. --with-sasl-inc=PATH SASL include file directory
  948. --with-sasl-lib=PATH SASL library directory
  949. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  950. --with-svrcore-inc=PATH SVRCORE include file directory
  951. --with-svrcore-lib=PATH SVRCORE library directory
  952. --with-icu=PATH ICU directory
  953. --with-icu-inc=PATH ICU include directory
  954. --with-icu-lib=PATH ICU library directory
  955. --with-icu-bin=PATH ICU binary directory
  956. --with-netsnmp=PATH Net-SNMP directory
  957. --with-netsnmp-inc=PATH Net-SNMP include directory
  958. --with-netsnmp-lib=PATH Net-SNMP library directory
  959. Some influential environment variables:
  960. CXX C++ compiler command
  961. CXXFLAGS C++ compiler flags
  962. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  963. nonstandard directory <lib dir>
  964. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  965. headers in a nonstandard directory <include dir>
  966. CC C compiler command
  967. CFLAGS C compiler flags
  968. CPP C preprocessor
  969. CXXCPP C++ preprocessor
  970. F77 Fortran 77 compiler command
  971. FFLAGS Fortran 77 compiler flags
  972. Use these variables to override the choices made by `configure' or to help
  973. it to find libraries and programs with nonstandard names/locations.
  974. Report bugs to <http://bugzilla.redhat.com/>.
  975. _ACEOF
  976. fi
  977. if test "$ac_init_help" = "recursive"; then
  978. # If there are subdirs, report their specific --help.
  979. ac_popdir=`pwd`
  980. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  981. test -d $ac_dir || continue
  982. ac_builddir=.
  983. if test "$ac_dir" != .; then
  984. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  985. # A "../" for each directory in $ac_dir_suffix.
  986. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  987. else
  988. ac_dir_suffix= ac_top_builddir=
  989. fi
  990. case $srcdir in
  991. .) # No --srcdir option. We are building in place.
  992. ac_srcdir=.
  993. if test -z "$ac_top_builddir"; then
  994. ac_top_srcdir=.
  995. else
  996. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  997. fi ;;
  998. [\\/]* | ?:[\\/]* ) # Absolute path.
  999. ac_srcdir=$srcdir$ac_dir_suffix;
  1000. ac_top_srcdir=$srcdir ;;
  1001. *) # Relative path.
  1002. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1003. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1004. esac
  1005. # Do not use `cd foo && pwd` to compute absolute paths, because
  1006. # the directories may not exist.
  1007. case `pwd` in
  1008. .) ac_abs_builddir="$ac_dir";;
  1009. *)
  1010. case "$ac_dir" in
  1011. .) ac_abs_builddir=`pwd`;;
  1012. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1013. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1014. esac;;
  1015. esac
  1016. case $ac_abs_builddir in
  1017. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1018. *)
  1019. case ${ac_top_builddir}. in
  1020. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1021. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1022. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1023. esac;;
  1024. esac
  1025. case $ac_abs_builddir in
  1026. .) ac_abs_srcdir=$ac_srcdir;;
  1027. *)
  1028. case $ac_srcdir in
  1029. .) ac_abs_srcdir=$ac_abs_builddir;;
  1030. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1031. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1032. esac;;
  1033. esac
  1034. case $ac_abs_builddir in
  1035. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1036. *)
  1037. case $ac_top_srcdir in
  1038. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1039. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1040. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1041. esac;;
  1042. esac
  1043. cd $ac_dir
  1044. # Check for guested configure; otherwise get Cygnus style configure.
  1045. if test -f $ac_srcdir/configure.gnu; then
  1046. echo
  1047. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1048. elif test -f $ac_srcdir/configure; then
  1049. echo
  1050. $SHELL $ac_srcdir/configure --help=recursive
  1051. elif test -f $ac_srcdir/configure.ac ||
  1052. test -f $ac_srcdir/configure.in; then
  1053. echo
  1054. $ac_configure --help
  1055. else
  1056. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1057. fi
  1058. cd $ac_popdir
  1059. done
  1060. fi
  1061. test -n "$ac_init_help" && exit 0
  1062. if $ac_init_version; then
  1063. cat <<\_ACEOF
  1064. fedora-ds configure 1.1.0a3
  1065. generated by GNU Autoconf 2.59
  1066. Copyright (C) 2003 Free Software Foundation, Inc.
  1067. This configure script is free software; the Free Software Foundation
  1068. gives unlimited permission to copy, distribute and modify it.
  1069. _ACEOF
  1070. exit 0
  1071. fi
  1072. exec 5>config.log
  1073. cat >&5 <<_ACEOF
  1074. This file contains any messages produced by compilers while
  1075. running configure, to aid debugging if configure makes a mistake.
  1076. It was created by fedora-ds $as_me 1.1.0a3, which was
  1077. generated by GNU Autoconf 2.59. Invocation command line was
  1078. $ $0 $@
  1079. _ACEOF
  1080. {
  1081. cat <<_ASUNAME
  1082. ## --------- ##
  1083. ## Platform. ##
  1084. ## --------- ##
  1085. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1086. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1087. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1088. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1089. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1090. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1091. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1092. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1093. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1094. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1095. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1096. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1097. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1098. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1099. _ASUNAME
  1100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1101. for as_dir in $PATH
  1102. do
  1103. IFS=$as_save_IFS
  1104. test -z "$as_dir" && as_dir=.
  1105. echo "PATH: $as_dir"
  1106. done
  1107. } >&5
  1108. cat >&5 <<_ACEOF
  1109. ## ----------- ##
  1110. ## Core tests. ##
  1111. ## ----------- ##
  1112. _ACEOF
  1113. # Keep a trace of the command line.
  1114. # Strip out --no-create and --no-recursion so they do not pile up.
  1115. # Strip out --silent because we don't want to record it for future runs.
  1116. # Also quote any args containing shell meta-characters.
  1117. # Make two passes to allow for proper duplicate-argument suppression.
  1118. ac_configure_args=
  1119. ac_configure_args0=
  1120. ac_configure_args1=
  1121. ac_sep=
  1122. ac_must_keep_next=false
  1123. for ac_pass in 1 2
  1124. do
  1125. for ac_arg
  1126. do
  1127. case $ac_arg in
  1128. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1129. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1130. | -silent | --silent | --silen | --sile | --sil)
  1131. continue ;;
  1132. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1133. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1134. esac
  1135. case $ac_pass in
  1136. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1137. 2)
  1138. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1139. if test $ac_must_keep_next = true; then
  1140. ac_must_keep_next=false # Got value, back to normal.
  1141. else
  1142. case $ac_arg in
  1143. *=* | --config-cache | -C | -disable-* | --disable-* \
  1144. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1145. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1146. | -with-* | --with-* | -without-* | --without-* | --x)
  1147. case "$ac_configure_args0 " in
  1148. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1149. esac
  1150. ;;
  1151. -* ) ac_must_keep_next=true ;;
  1152. esac
  1153. fi
  1154. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1155. # Get rid of the leading space.
  1156. ac_sep=" "
  1157. ;;
  1158. esac
  1159. done
  1160. done
  1161. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1162. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1163. # When interrupted or exit'd, cleanup temporary files, and complete
  1164. # config.log. We remove comments because anyway the quotes in there
  1165. # would cause problems or look ugly.
  1166. # WARNING: Be sure not to use single quotes in there, as some shells,
  1167. # such as our DU 5.0 friend, will then `close' the trap.
  1168. trap 'exit_status=$?
  1169. # Save into config.log some information that might help in debugging.
  1170. {
  1171. echo
  1172. cat <<\_ASBOX
  1173. ## ---------------- ##
  1174. ## Cache variables. ##
  1175. ## ---------------- ##
  1176. _ASBOX
  1177. echo
  1178. # The following way of writing the cache mishandles newlines in values,
  1179. {
  1180. (set) 2>&1 |
  1181. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1182. *ac_space=\ *)
  1183. sed -n \
  1184. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1185. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1186. ;;
  1187. *)
  1188. sed -n \
  1189. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1190. ;;
  1191. esac;
  1192. }
  1193. echo
  1194. cat <<\_ASBOX
  1195. ## ----------------- ##
  1196. ## Output variables. ##
  1197. ## ----------------- ##
  1198. _ASBOX
  1199. echo
  1200. for ac_var in $ac_subst_vars
  1201. do
  1202. eval ac_val=$`echo $ac_var`
  1203. echo "$ac_var='"'"'$ac_val'"'"'"
  1204. done | sort
  1205. echo
  1206. if test -n "$ac_subst_files"; then
  1207. cat <<\_ASBOX
  1208. ## ------------- ##
  1209. ## Output files. ##
  1210. ## ------------- ##
  1211. _ASBOX
  1212. echo
  1213. for ac_var in $ac_subst_files
  1214. do
  1215. eval ac_val=$`echo $ac_var`
  1216. echo "$ac_var='"'"'$ac_val'"'"'"
  1217. done | sort
  1218. echo
  1219. fi
  1220. if test -s confdefs.h; then
  1221. cat <<\_ASBOX
  1222. ## ----------- ##
  1223. ## confdefs.h. ##
  1224. ## ----------- ##
  1225. _ASBOX
  1226. echo
  1227. sed "/^$/d" confdefs.h | sort
  1228. echo
  1229. fi
  1230. test "$ac_signal" != 0 &&
  1231. echo "$as_me: caught signal $ac_signal"
  1232. echo "$as_me: exit $exit_status"
  1233. } >&5
  1234. rm -f core *.core &&
  1235. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1236. exit $exit_status
  1237. ' 0
  1238. for ac_signal in 1 2 13 15; do
  1239. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1240. done
  1241. ac_signal=0
  1242. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1243. rm -rf conftest* confdefs.h
  1244. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1245. echo >confdefs.h
  1246. # Predefined preprocessor variables.
  1247. cat >>confdefs.h <<_ACEOF
  1248. #define PACKAGE_NAME "$PACKAGE_NAME"
  1249. _ACEOF
  1250. cat >>confdefs.h <<_ACEOF
  1251. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1252. _ACEOF
  1253. cat >>confdefs.h <<_ACEOF
  1254. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1255. _ACEOF
  1256. cat >>confdefs.h <<_ACEOF
  1257. #define PACKAGE_STRING "$PACKAGE_STRING"
  1258. _ACEOF
  1259. cat >>confdefs.h <<_ACEOF
  1260. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1261. _ACEOF
  1262. # Let the site file select an alternate cache file if it wants to.
  1263. # Prefer explicitly selected file to automatically selected ones.
  1264. if test -z "$CONFIG_SITE"; then
  1265. if test "x$prefix" != xNONE; then
  1266. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1267. else
  1268. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1269. fi
  1270. fi
  1271. for ac_site_file in $CONFIG_SITE; do
  1272. if test -r "$ac_site_file"; then
  1273. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1274. echo "$as_me: loading site script $ac_site_file" >&6;}
  1275. sed 's/^/| /' "$ac_site_file" >&5
  1276. . "$ac_site_file"
  1277. fi
  1278. done
  1279. if test -r "$cache_file"; then
  1280. # Some versions of bash will fail to source /dev/null (special
  1281. # files actually), so we avoid doing that.
  1282. if test -f "$cache_file"; then
  1283. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1284. echo "$as_me: loading cache $cache_file" >&6;}
  1285. case $cache_file in
  1286. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1287. *) . ./$cache_file;;
  1288. esac
  1289. fi
  1290. else
  1291. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1292. echo "$as_me: creating cache $cache_file" >&6;}
  1293. >$cache_file
  1294. fi
  1295. # Check that the precious variables saved in the cache have kept the same
  1296. # value.
  1297. ac_cache_corrupted=false
  1298. for ac_var in `(set) 2>&1 |
  1299. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1300. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1301. eval ac_new_set=\$ac_env_${ac_var}_set
  1302. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1303. eval ac_new_val="\$ac_env_${ac_var}_value"
  1304. case $ac_old_set,$ac_new_set in
  1305. set,)
  1306. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1307. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1308. ac_cache_corrupted=: ;;
  1309. ,set)
  1310. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1311. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1312. ac_cache_corrupted=: ;;
  1313. ,);;
  1314. *)
  1315. if test "x$ac_old_val" != "x$ac_new_val"; then
  1316. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1317. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1318. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1319. echo "$as_me: former value: $ac_old_val" >&2;}
  1320. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1321. echo "$as_me: current value: $ac_new_val" >&2;}
  1322. ac_cache_corrupted=:
  1323. fi;;
  1324. esac
  1325. # Pass precious variables to config.status.
  1326. if test "$ac_new_set" = set; then
  1327. case $ac_new_val in
  1328. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1329. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1330. *) ac_arg=$ac_var=$ac_new_val ;;
  1331. esac
  1332. case " $ac_configure_args " in
  1333. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1334. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1335. esac
  1336. fi
  1337. done
  1338. if $ac_cache_corrupted; then
  1339. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1340. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1341. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1342. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1343. { (exit 1); exit 1; }; }
  1344. fi
  1345. ac_ext=c
  1346. ac_cpp='$CPP $CPPFLAGS'
  1347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1350. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1351. ac_config_headers="$ac_config_headers config.h"
  1352. am__api_version="1.9"
  1353. ac_aux_dir=
  1354. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1355. if test -f $ac_dir/install-sh; then
  1356. ac_aux_dir=$ac_dir
  1357. ac_install_sh="$ac_aux_dir/install-sh -c"
  1358. break
  1359. elif test -f $ac_dir/install.sh; then
  1360. ac_aux_dir=$ac_dir
  1361. ac_install_sh="$ac_aux_dir/install.sh -c"
  1362. break
  1363. elif test -f $ac_dir/shtool; then
  1364. ac_aux_dir=$ac_dir
  1365. ac_install_sh="$ac_aux_dir/shtool install -c"
  1366. break
  1367. fi
  1368. done
  1369. if test -z "$ac_aux_dir"; then
  1370. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1371. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1372. { (exit 1); exit 1; }; }
  1373. fi
  1374. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1375. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1376. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1377. # Find a good install program. We prefer a C program (faster),
  1378. # so one script is as good as another. But avoid the broken or
  1379. # incompatible versions:
  1380. # SysV /etc/install, /usr/sbin/install
  1381. # SunOS /usr/etc/install
  1382. # IRIX /sbin/install
  1383. # AIX /bin/install
  1384. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1385. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1386. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1387. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1388. # OS/2's system install, which has a completely different semantic
  1389. # ./install, which can be erroneously created by make from ./install.sh.
  1390. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1391. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1392. if test -z "$INSTALL"; then
  1393. if test "${ac_cv_path_install+set}" = set; then
  1394. echo $ECHO_N "(cached) $ECHO_C" >&6
  1395. else
  1396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1397. for as_dir in $PATH
  1398. do
  1399. IFS=$as_save_IFS
  1400. test -z "$as_dir" && as_dir=.
  1401. # Account for people who put trailing slashes in PATH elements.
  1402. case $as_dir/ in
  1403. ./ | .// | /cC/* | \
  1404. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1405. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1406. /usr/ucb/* ) ;;
  1407. *)
  1408. # OSF1 and SCO ODT 3.0 have their own names for install.
  1409. # Don't use installbsd from OSF since it installs stuff as root
  1410. # by default.
  1411. for ac_prog in ginstall scoinst install; do
  1412. for ac_exec_ext in '' $ac_executable_extensions; do
  1413. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1414. if test $ac_prog = install &&
  1415. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1416. # AIX install. It has an incompatible calling convention.
  1417. :
  1418. elif test $ac_prog = install &&
  1419. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1420. # program-specific install script used by HP pwplus--don't use.
  1421. :
  1422. else
  1423. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1424. break 3
  1425. fi
  1426. fi
  1427. done
  1428. done
  1429. ;;
  1430. esac
  1431. done
  1432. fi
  1433. if test "${ac_cv_path_install+set}" = set; then
  1434. INSTALL=$ac_cv_path_install
  1435. else
  1436. # As a last resort, use the slow shell script. We don't cache a
  1437. # path for INSTALL within a source directory, because that will
  1438. # break other packages using the cache if that directory is
  1439. # removed, or if the path is relative.
  1440. INSTALL=$ac_install_sh
  1441. fi
  1442. fi
  1443. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1444. echo "${ECHO_T}$INSTALL" >&6
  1445. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1446. # It thinks the first close brace ends the variable substitution.
  1447. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1448. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1449. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1450. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1451. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1452. # Just in case
  1453. sleep 1
  1454. echo timestamp > conftest.file
  1455. # Do `set' in a subshell so we don't clobber the current shell's
  1456. # arguments. Must try -L first in case configure is actually a
  1457. # symlink; some systems play weird games with the mod time of symlinks
  1458. # (eg FreeBSD returns the mod time of the symlink's containing
  1459. # directory).
  1460. if (
  1461. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1462. if test "$*" = "X"; then
  1463. # -L didn't work.
  1464. set X `ls -t $srcdir/configure conftest.file`
  1465. fi
  1466. rm -f conftest.file
  1467. if test "$*" != "X $srcdir/configure conftest.file" \
  1468. && test "$*" != "X conftest.file $srcdir/configure"; then
  1469. # If neither matched, then we have a broken ls. This can happen
  1470. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1471. # broken ls alias from the environment. This has actually
  1472. # happened. Such a system could not be considered "sane".
  1473. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1474. alias in your environment" >&5
  1475. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1476. alias in your environment" >&2;}
  1477. { (exit 1); exit 1; }; }
  1478. fi
  1479. test "$2" = conftest.file
  1480. )
  1481. then
  1482. # Ok.
  1483. :
  1484. else
  1485. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1486. Check your system clock" >&5
  1487. echo "$as_me: error: newly created file is older than distributed files!
  1488. Check your system clock" >&2;}
  1489. { (exit 1); exit 1; }; }
  1490. fi
  1491. echo "$as_me:$LINENO: result: yes" >&5
  1492. echo "${ECHO_T}yes" >&6
  1493. test "$program_prefix" != NONE &&
  1494. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1495. # Use a double $ so make ignores it.
  1496. test "$program_suffix" != NONE &&
  1497. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1498. # Double any \ or $. echo might interpret backslashes.
  1499. # By default was `s,x,x', remove it if useless.
  1500. cat <<\_ACEOF >conftest.sed
  1501. s/[\\$]/&&/g;s/;s,x,x,$//
  1502. _ACEOF
  1503. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1504. rm conftest.sed
  1505. # expand $ac_aux_dir to an absolute path
  1506. am_aux_dir=`cd $ac_aux_dir && pwd`
  1507. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1508. # Use eval to expand $SHELL
  1509. if eval "$MISSING --run true"; then
  1510. am_missing_run="$MISSING --run "
  1511. else
  1512. am_missing_run=
  1513. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1514. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1515. fi
  1516. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1517. # We used to keeping the `.' as first argument, in order to
  1518. # allow $(mkdir_p) to be used without argument. As in
  1519. # $(mkdir_p) $(somedir)
  1520. # where $(somedir) is conditionally defined. However this is wrong
  1521. # for two reasons:
  1522. # 1. if the package is installed by a user who cannot write `.'
  1523. # make install will fail,
  1524. # 2. the above comment should most certainly read
  1525. # $(mkdir_p) $(DESTDIR)$(somedir)
  1526. # so it does not work when $(somedir) is undefined and
  1527. # $(DESTDIR) is not.
  1528. # To support the latter case, we have to write
  1529. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1530. # so the `.' trick is pointless.
  1531. mkdir_p='mkdir -p --'
  1532. else
  1533. # On NextStep and OpenStep, the `mkdir' command does not
  1534. # recognize any option. It will interpret all options as
  1535. # directories to create, and then abort because `.' already
  1536. # exists.
  1537. for d in ./-p ./--version;
  1538. do
  1539. test -d $d && rmdir $d
  1540. done
  1541. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1542. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1543. mkdir_p='$(mkinstalldirs)'
  1544. else
  1545. mkdir_p='$(install_sh) -d'
  1546. fi
  1547. fi
  1548. for ac_prog in gawk mawk nawk awk
  1549. do
  1550. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1551. set dummy $ac_prog; ac_word=$2
  1552. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1553. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1554. if test "${ac_cv_prog_AWK+set}" = set; then
  1555. echo $ECHO_N "(cached) $ECHO_C" >&6
  1556. else
  1557. if test -n "$AWK"; then
  1558. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1559. else
  1560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1561. for as_dir in $PATH
  1562. do
  1563. IFS=$as_save_IFS
  1564. test -z "$as_dir" && as_dir=.
  1565. for ac_exec_ext in '' $ac_executable_extensions; do
  1566. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1567. ac_cv_prog_AWK="$ac_prog"
  1568. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1569. break 2
  1570. fi
  1571. done
  1572. done
  1573. fi
  1574. fi
  1575. AWK=$ac_cv_prog_AWK
  1576. if test -n "$AWK"; then
  1577. echo "$as_me:$LINENO: result: $AWK" >&5
  1578. echo "${ECHO_T}$AWK" >&6
  1579. else
  1580. echo "$as_me:$LINENO: result: no" >&5
  1581. echo "${ECHO_T}no" >&6
  1582. fi
  1583. test -n "$AWK" && break
  1584. done
  1585. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1586. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1587. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1588. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1589. echo $ECHO_N "(cached) $ECHO_C" >&6
  1590. else
  1591. cat >conftest.make <<\_ACEOF
  1592. all:
  1593. @echo 'ac_maketemp="$(MAKE)"'
  1594. _ACEOF
  1595. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1596. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1597. if test -n "$ac_maketemp"; then
  1598. eval ac_cv_prog_make_${ac_make}_set=yes
  1599. else
  1600. eval ac_cv_prog_make_${ac_make}_set=no
  1601. fi
  1602. rm -f conftest.make
  1603. fi
  1604. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1605. echo "$as_me:$LINENO: result: yes" >&5
  1606. echo "${ECHO_T}yes" >&6
  1607. SET_MAKE=
  1608. else
  1609. echo "$as_me:$LINENO: result: no" >&5
  1610. echo "${ECHO_T}no" >&6
  1611. SET_MAKE="MAKE=${MAKE-make}"
  1612. fi
  1613. rm -rf .tst 2>/dev/null
  1614. mkdir .tst 2>/dev/null
  1615. if test -d .tst; then
  1616. am__leading_dot=.
  1617. else
  1618. am__leading_dot=_
  1619. fi
  1620. rmdir .tst 2>/dev/null
  1621. # test to see if srcdir already configured
  1622. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1623. test -f $srcdir/config.status; then
  1624. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1625. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1626. { (exit 1); exit 1; }; }
  1627. fi
  1628. # test whether we have cygpath
  1629. if test -z "$CYGPATH_W"; then
  1630. if (cygpath --version) >/dev/null 2>/dev/null; then
  1631. CYGPATH_W='cygpath -w'
  1632. else
  1633. CYGPATH_W=echo
  1634. fi
  1635. fi
  1636. # Define the identity of the package.
  1637. PACKAGE='fedora-ds'
  1638. VERSION='1.1.0a3'
  1639. cat >>confdefs.h <<_ACEOF
  1640. #define PACKAGE "$PACKAGE"
  1641. _ACEOF
  1642. cat >>confdefs.h <<_ACEOF
  1643. #define VERSION "$VERSION"
  1644. _ACEOF
  1645. # Some tools Automake needs.
  1646. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1647. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1648. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1649. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1650. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1651. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1652. # Installed binaries are usually stripped using `strip' when the user
  1653. # run `make install-strip'. However `strip' might not be the right
  1654. # tool to use in cross-compilation environments, therefore Automake
  1655. # will honor the `STRIP' environment variable to overrule this program.
  1656. if test "$cross_compiling" != no; then
  1657. if test -n "$ac_tool_prefix"; then
  1658. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1659. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1660. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1661. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1662. if test "${ac_cv_prog_STRIP+set}" = set; then
  1663. echo $ECHO_N "(cached) $ECHO_C" >&6
  1664. else
  1665. if test -n "$STRIP"; then
  1666. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1667. else
  1668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1669. for as_dir in $PATH
  1670. do
  1671. IFS=$as_save_IFS
  1672. test -z "$as_dir" && as_dir=.
  1673. for ac_exec_ext in '' $ac_executable_extensions; do
  1674. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1675. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1676. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1677. break 2
  1678. fi
  1679. done
  1680. done
  1681. fi
  1682. fi
  1683. STRIP=$ac_cv_prog_STRIP
  1684. if test -n "$STRIP"; then
  1685. echo "$as_me:$LINENO: result: $STRIP" >&5
  1686. echo "${ECHO_T}$STRIP" >&6
  1687. else
  1688. echo "$as_me:$LINENO: result: no" >&5
  1689. echo "${ECHO_T}no" >&6
  1690. fi
  1691. fi
  1692. if test -z "$ac_cv_prog_STRIP"; then
  1693. ac_ct_STRIP=$STRIP
  1694. # Extract the first word of "strip", so it can be a program name with args.
  1695. set dummy strip; ac_word=$2
  1696. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1697. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1698. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1699. echo $ECHO_N "(cached) $ECHO_C" >&6
  1700. else
  1701. if test -n "$ac_ct_STRIP"; then
  1702. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1703. else
  1704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1705. for as_dir in $PATH
  1706. do
  1707. IFS=$as_save_IFS
  1708. test -z "$as_dir" && as_dir=.
  1709. for ac_exec_ext in '' $ac_executable_extensions; do
  1710. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1711. ac_cv_prog_ac_ct_STRIP="strip"
  1712. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1713. break 2
  1714. fi
  1715. done
  1716. done
  1717. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1718. fi
  1719. fi
  1720. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1721. if test -n "$ac_ct_STRIP"; then
  1722. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1723. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1724. else
  1725. echo "$as_me:$LINENO: result: no" >&5
  1726. echo "${ECHO_T}no" >&6
  1727. fi
  1728. STRIP=$ac_ct_STRIP
  1729. else
  1730. STRIP="$ac_cv_prog_STRIP"
  1731. fi
  1732. fi
  1733. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1734. # We need awk for the "check" target. The system "awk" is bad on
  1735. # some platforms.
  1736. # Always define AMTAR for backward compatibility.
  1737. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1738. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1739. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1740. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1741. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1742. if test "${enable_maintainer_mode+set}" = set; then
  1743. enableval="$enable_maintainer_mode"
  1744. USE_MAINTAINER_MODE=$enableval
  1745. else
  1746. USE_MAINTAINER_MODE=no
  1747. fi;
  1748. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1749. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1750. if test $USE_MAINTAINER_MODE = yes; then
  1751. MAINTAINER_MODE_TRUE=
  1752. MAINTAINER_MODE_FALSE='#'
  1753. else
  1754. MAINTAINER_MODE_TRUE='#'
  1755. MAINTAINER_MODE_FALSE=
  1756. fi
  1757. MAINT=$MAINTAINER_MODE_TRUE
  1758. # Make sure we can run config.sub.
  1759. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1760. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1761. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1762. { (exit 1); exit 1; }; }
  1763. echo "$as_me:$LINENO: checking build system type" >&5
  1764. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1765. if test "${ac_cv_build+set}" = set; then
  1766. echo $ECHO_N "(cached) $ECHO_C" >&6
  1767. else
  1768. ac_cv_build_alias=$build_alias
  1769. test -z "$ac_cv_build_alias" &&
  1770. ac_cv_build_alias=`$ac_config_guess`
  1771. test -z "$ac_cv_build_alias" &&
  1772. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1773. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1774. { (exit 1); exit 1; }; }
  1775. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1776. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1777. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1778. { (exit 1); exit 1; }; }
  1779. fi
  1780. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1781. echo "${ECHO_T}$ac_cv_build" >&6
  1782. build=$ac_cv_build
  1783. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1784. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1785. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1786. echo "$as_me:$LINENO: checking host system type" >&5
  1787. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1788. if test "${ac_cv_host+set}" = set; then
  1789. echo $ECHO_N "(cached) $ECHO_C" >&6
  1790. else
  1791. ac_cv_host_alias=$host_alias
  1792. test -z "$ac_cv_host_alias" &&
  1793. ac_cv_host_alias=$ac_cv_build_alias
  1794. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1795. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1796. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1797. { (exit 1); exit 1; }; }
  1798. fi
  1799. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1800. echo "${ECHO_T}$ac_cv_host" >&6
  1801. host=$ac_cv_host
  1802. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1803. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1804. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1805. # Checks for programs.
  1806. ac_ext=cc
  1807. ac_cpp='$CXXCPP $CPPFLAGS'
  1808. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1809. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1810. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1811. if test -n "$ac_tool_prefix"; then
  1812. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1813. do
  1814. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1815. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1816. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1817. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1818. if test "${ac_cv_prog_CXX+set}" = set; then
  1819. echo $ECHO_N "(cached) $ECHO_C" >&6
  1820. else
  1821. if test -n "$CXX"; then
  1822. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1823. else
  1824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1825. for as_dir in $PATH
  1826. do
  1827. IFS=$as_save_IFS
  1828. test -z "$as_dir" && as_dir=.
  1829. for ac_exec_ext in '' $ac_executable_extensions; do
  1830. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1831. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1832. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1833. break 2
  1834. fi
  1835. done
  1836. done
  1837. fi
  1838. fi
  1839. CXX=$ac_cv_prog_CXX
  1840. if test -n "$CXX"; then
  1841. echo "$as_me:$LINENO: result: $CXX" >&5
  1842. echo "${ECHO_T}$CXX" >&6
  1843. else
  1844. echo "$as_me:$LINENO: result: no" >&5
  1845. echo "${ECHO_T}no" >&6
  1846. fi
  1847. test -n "$CXX" && break
  1848. done
  1849. fi
  1850. if test -z "$CXX"; then
  1851. ac_ct_CXX=$CXX
  1852. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1853. do
  1854. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1855. set dummy $ac_prog; ac_word=$2
  1856. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1857. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1858. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1859. echo $ECHO_N "(cached) $ECHO_C" >&6
  1860. else
  1861. if test -n "$ac_ct_CXX"; then
  1862. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1863. else
  1864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1865. for as_dir in $PATH
  1866. do
  1867. IFS=$as_save_IFS
  1868. test -z "$as_dir" && as_dir=.
  1869. for ac_exec_ext in '' $ac_executable_extensions; do
  1870. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1871. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1872. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1873. break 2
  1874. fi
  1875. done
  1876. done
  1877. fi
  1878. fi
  1879. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1880. if test -n "$ac_ct_CXX"; then
  1881. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1882. echo "${ECHO_T}$ac_ct_CXX" >&6
  1883. else
  1884. echo "$as_me:$LINENO: result: no" >&5
  1885. echo "${ECHO_T}no" >&6
  1886. fi
  1887. test -n "$ac_ct_CXX" && break
  1888. done
  1889. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1890. CXX=$ac_ct_CXX
  1891. fi
  1892. # Provide some information about the compiler.
  1893. echo "$as_me:$LINENO:" \
  1894. "checking for C++ compiler version" >&5
  1895. ac_compiler=`set X $ac_compile; echo $2`
  1896. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1897. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1898. ac_status=$?
  1899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1900. (exit $ac_status); }
  1901. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1902. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1903. ac_status=$?
  1904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1905. (exit $ac_status); }
  1906. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1907. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1908. ac_status=$?
  1909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1910. (exit $ac_status); }
  1911. cat >conftest.$ac_ext <<_ACEOF
  1912. /* confdefs.h. */
  1913. _ACEOF
  1914. cat confdefs.h >>conftest.$ac_ext
  1915. cat >>conftest.$ac_ext <<_ACEOF
  1916. /* end confdefs.h. */
  1917. int
  1918. main ()
  1919. {
  1920. ;
  1921. return 0;
  1922. }
  1923. _ACEOF
  1924. ac_clean_files_save=$ac_clean_files
  1925. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1926. # Try to create an executable without -o first, disregard a.out.
  1927. # It will help us diagnose broken compilers, and finding out an intuition
  1928. # of exeext.
  1929. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1930. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1931. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1932. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1933. (eval $ac_link_default) 2>&5
  1934. ac_status=$?
  1935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1936. (exit $ac_status); }; then
  1937. # Find the output, starting from the most likely. This scheme is
  1938. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1939. # resort.
  1940. # Be careful to initialize this variable, since it used to be cached.
  1941. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1942. ac_cv_exeext=
  1943. # b.out is created by i960 compilers.
  1944. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1945. do
  1946. test -f "$ac_file" || continue
  1947. case $ac_file in
  1948. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1949. ;;
  1950. conftest.$ac_ext )
  1951. # This is the source file.
  1952. ;;
  1953. [ab].out )
  1954. # We found the default executable, but exeext='' is most
  1955. # certainly right.
  1956. break;;
  1957. *.* )
  1958. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1959. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1960. # but it would be cool to find out if it's true. Does anybody
  1961. # maintain Libtool? --akim.
  1962. export ac_cv_exeext
  1963. break;;
  1964. * )
  1965. break;;
  1966. esac
  1967. done
  1968. else
  1969. echo "$as_me: failed program was:" >&5
  1970. sed 's/^/| /' conftest.$ac_ext >&5
  1971. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1972. See \`config.log' for more details." >&5
  1973. echo "$as_me: error: C++ compiler cannot create executables
  1974. See \`config.log' for more details." >&2;}
  1975. { (exit 77); exit 77; }; }
  1976. fi
  1977. ac_exeext=$ac_cv_exeext
  1978. echo "$as_me:$LINENO: result: $ac_file" >&5
  1979. echo "${ECHO_T}$ac_file" >&6
  1980. # Check the compiler produces executables we can run. If not, either
  1981. # the compiler is broken, or we cross compile.
  1982. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1983. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1984. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1985. # If not cross compiling, check that we can run a simple program.
  1986. if test "$cross_compiling" != yes; then
  1987. if { ac_try='./$ac_file'
  1988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1989. (eval $ac_try) 2>&5
  1990. ac_status=$?
  1991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1992. (exit $ac_status); }; }; then
  1993. cross_compiling=no
  1994. else
  1995. if test "$cross_compiling" = maybe; then
  1996. cross_compiling=yes
  1997. else
  1998. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1999. If you meant to cross compile, use \`--host'.
  2000. See \`config.log' for more details." >&5
  2001. echo "$as_me: error: cannot run C++ compiled programs.
  2002. If you meant to cross compile, use \`--host'.
  2003. See \`config.log' for more details." >&2;}
  2004. { (exit 1); exit 1; }; }
  2005. fi
  2006. fi
  2007. fi
  2008. echo "$as_me:$LINENO: result: yes" >&5
  2009. echo "${ECHO_T}yes" >&6
  2010. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2011. ac_clean_files=$ac_clean_files_save
  2012. # Check the compiler produces executables we can run. If not, either
  2013. # the compiler is broken, or we cross compile.
  2014. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2015. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2016. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2017. echo "${ECHO_T}$cross_compiling" >&6
  2018. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2019. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2020. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2021. (eval $ac_link) 2>&5
  2022. ac_status=$?
  2023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2024. (exit $ac_status); }; then
  2025. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2026. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2027. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2028. # `rm'.
  2029. for ac_file in conftest.exe conftest conftest.*; do
  2030. test -f "$ac_file" || continue
  2031. case $ac_file in
  2032. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2033. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2034. export ac_cv_exeext
  2035. break;;
  2036. * ) break;;
  2037. esac
  2038. done
  2039. else
  2040. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2041. See \`config.log' for more details." >&5
  2042. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2043. See \`config.log' for more details." >&2;}
  2044. { (exit 1); exit 1; }; }
  2045. fi
  2046. rm -f conftest$ac_cv_exeext
  2047. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2048. echo "${ECHO_T}$ac_cv_exeext" >&6
  2049. rm -f conftest.$ac_ext
  2050. EXEEXT=$ac_cv_exeext
  2051. ac_exeext=$EXEEXT
  2052. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2053. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2054. if test "${ac_cv_objext+set}" = set; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. cat >conftest.$ac_ext <<_ACEOF
  2058. /* confdefs.h. */
  2059. _ACEOF
  2060. cat confdefs.h >>conftest.$ac_ext
  2061. cat >>conftest.$ac_ext <<_ACEOF
  2062. /* end confdefs.h. */
  2063. int
  2064. main ()
  2065. {
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. rm -f conftest.o conftest.obj
  2071. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2072. (eval $ac_compile) 2>&5
  2073. ac_status=$?
  2074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2075. (exit $ac_status); }; then
  2076. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2077. case $ac_file in
  2078. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2079. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2080. break;;
  2081. esac
  2082. done
  2083. else
  2084. echo "$as_me: failed program was:" >&5
  2085. sed 's/^/| /' conftest.$ac_ext >&5
  2086. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2087. See \`config.log' for more details." >&5
  2088. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2089. See \`config.log' for more details." >&2;}
  2090. { (exit 1); exit 1; }; }
  2091. fi
  2092. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2093. fi
  2094. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2095. echo "${ECHO_T}$ac_cv_objext" >&6
  2096. OBJEXT=$ac_cv_objext
  2097. ac_objext=$OBJEXT
  2098. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2099. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2100. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2101. echo $ECHO_N "(cached) $ECHO_C" >&6
  2102. else
  2103. cat >conftest.$ac_ext <<_ACEOF
  2104. /* confdefs.h. */
  2105. _ACEOF
  2106. cat confdefs.h >>conftest.$ac_ext
  2107. cat >>conftest.$ac_ext <<_ACEOF
  2108. /* end confdefs.h. */
  2109. int
  2110. main ()
  2111. {
  2112. #ifndef __GNUC__
  2113. choke me
  2114. #endif
  2115. ;
  2116. return 0;
  2117. }
  2118. _ACEOF
  2119. rm -f conftest.$ac_objext
  2120. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2121. (eval $ac_compile) 2>conftest.er1
  2122. ac_status=$?
  2123. grep -v '^ *+' conftest.er1 >conftest.err
  2124. rm -f conftest.er1
  2125. cat conftest.err >&5
  2126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2127. (exit $ac_status); } &&
  2128. { ac_try='test -z "$ac_cxx_werror_flag"
  2129. || test ! -s conftest.err'
  2130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2131. (eval $ac_try) 2>&5
  2132. ac_status=$?
  2133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2134. (exit $ac_status); }; } &&
  2135. { ac_try='test -s conftest.$ac_objext'
  2136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2137. (eval $ac_try) 2>&5
  2138. ac_status=$?
  2139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2140. (exit $ac_status); }; }; then
  2141. ac_compiler_gnu=yes
  2142. else
  2143. echo "$as_me: failed program was:" >&5
  2144. sed 's/^/| /' conftest.$ac_ext >&5
  2145. ac_compiler_gnu=no
  2146. fi
  2147. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2148. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2149. fi
  2150. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2151. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2152. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2153. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2154. ac_save_CXXFLAGS=$CXXFLAGS
  2155. CXXFLAGS="-g"
  2156. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2157. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2158. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2159. echo $ECHO_N "(cached) $ECHO_C" >&6
  2160. else
  2161. cat >conftest.$ac_ext <<_ACEOF
  2162. /* confdefs.h. */
  2163. _ACEOF
  2164. cat confdefs.h >>conftest.$ac_ext
  2165. cat >>conftest.$ac_ext <<_ACEOF
  2166. /* end confdefs.h. */
  2167. int
  2168. main ()
  2169. {
  2170. ;
  2171. return 0;
  2172. }
  2173. _ACEOF
  2174. rm -f conftest.$ac_objext
  2175. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2176. (eval $ac_compile) 2>conftest.er1
  2177. ac_status=$?
  2178. grep -v '^ *+' conftest.er1 >conftest.err
  2179. rm -f conftest.er1
  2180. cat conftest.err >&5
  2181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2182. (exit $ac_status); } &&
  2183. { ac_try='test -z "$ac_cxx_werror_flag"
  2184. || test ! -s conftest.err'
  2185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2186. (eval $ac_try) 2>&5
  2187. ac_status=$?
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); }; } &&
  2190. { ac_try='test -s conftest.$ac_objext'
  2191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2192. (eval $ac_try) 2>&5
  2193. ac_status=$?
  2194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2195. (exit $ac_status); }; }; then
  2196. ac_cv_prog_cxx_g=yes
  2197. else
  2198. echo "$as_me: failed program was:" >&5
  2199. sed 's/^/| /' conftest.$ac_ext >&5
  2200. ac_cv_prog_cxx_g=no
  2201. fi
  2202. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2203. fi
  2204. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2205. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2206. if test "$ac_test_CXXFLAGS" = set; then
  2207. CXXFLAGS=$ac_save_CXXFLAGS
  2208. elif test $ac_cv_prog_cxx_g = yes; then
  2209. if test "$GXX" = yes; then
  2210. CXXFLAGS="-g -O2"
  2211. else
  2212. CXXFLAGS="-g"
  2213. fi
  2214. else
  2215. if test "$GXX" = yes; then
  2216. CXXFLAGS="-O2"
  2217. else
  2218. CXXFLAGS=
  2219. fi
  2220. fi
  2221. for ac_declaration in \
  2222. '' \
  2223. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2224. 'extern "C" void std::exit (int); using std::exit;' \
  2225. 'extern "C" void exit (int) throw ();' \
  2226. 'extern "C" void exit (int);' \
  2227. 'void exit (int);'
  2228. do
  2229. cat >conftest.$ac_ext <<_ACEOF
  2230. /* confdefs.h. */
  2231. _ACEOF
  2232. cat confdefs.h >>conftest.$ac_ext
  2233. cat >>conftest.$ac_ext <<_ACEOF
  2234. /* end confdefs.h. */
  2235. $ac_declaration
  2236. #include <stdlib.h>
  2237. int
  2238. main ()
  2239. {
  2240. exit (42);
  2241. ;
  2242. return 0;
  2243. }
  2244. _ACEOF
  2245. rm -f conftest.$ac_objext
  2246. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2247. (eval $ac_compile) 2>conftest.er1
  2248. ac_status=$?
  2249. grep -v '^ *+' conftest.er1 >conftest.err
  2250. rm -f conftest.er1
  2251. cat conftest.err >&5
  2252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2253. (exit $ac_status); } &&
  2254. { ac_try='test -z "$ac_cxx_werror_flag"
  2255. || test ! -s conftest.err'
  2256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2257. (eval $ac_try) 2>&5
  2258. ac_status=$?
  2259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2260. (exit $ac_status); }; } &&
  2261. { ac_try='test -s conftest.$ac_objext'
  2262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2263. (eval $ac_try) 2>&5
  2264. ac_status=$?
  2265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2266. (exit $ac_status); }; }; then
  2267. :
  2268. else
  2269. echo "$as_me: failed program was:" >&5
  2270. sed 's/^/| /' conftest.$ac_ext >&5
  2271. continue
  2272. fi
  2273. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2274. cat >conftest.$ac_ext <<_ACEOF
  2275. /* confdefs.h. */
  2276. _ACEOF
  2277. cat confdefs.h >>conftest.$ac_ext
  2278. cat >>conftest.$ac_ext <<_ACEOF
  2279. /* end confdefs.h. */
  2280. $ac_declaration
  2281. int
  2282. main ()
  2283. {
  2284. exit (42);
  2285. ;
  2286. return 0;
  2287. }
  2288. _ACEOF
  2289. rm -f conftest.$ac_objext
  2290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2291. (eval $ac_compile) 2>conftest.er1
  2292. ac_status=$?
  2293. grep -v '^ *+' conftest.er1 >conftest.err
  2294. rm -f conftest.er1
  2295. cat conftest.err >&5
  2296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2297. (exit $ac_status); } &&
  2298. { ac_try='test -z "$ac_cxx_werror_flag"
  2299. || test ! -s conftest.err'
  2300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2301. (eval $ac_try) 2>&5
  2302. ac_status=$?
  2303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2304. (exit $ac_status); }; } &&
  2305. { ac_try='test -s conftest.$ac_objext'
  2306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2307. (eval $ac_try) 2>&5
  2308. ac_status=$?
  2309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2310. (exit $ac_status); }; }; then
  2311. break
  2312. else
  2313. echo "$as_me: failed program was:" >&5
  2314. sed 's/^/| /' conftest.$ac_ext >&5
  2315. fi
  2316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. done
  2318. rm -f conftest*
  2319. if test -n "$ac_declaration"; then
  2320. echo '#ifdef __cplusplus' >>confdefs.h
  2321. echo $ac_declaration >>confdefs.h
  2322. echo '#endif' >>confdefs.h
  2323. fi
  2324. ac_ext=c
  2325. ac_cpp='$CPP $CPPFLAGS'
  2326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2329. DEPDIR="${am__leading_dot}deps"
  2330. ac_config_commands="$ac_config_commands depfiles"
  2331. am_make=${MAKE-make}
  2332. cat > confinc << 'END'
  2333. am__doit:
  2334. @echo done
  2335. .PHONY: am__doit
  2336. END
  2337. # If we don't find an include directive, just comment out the code.
  2338. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2339. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2340. am__include="#"
  2341. am__quote=
  2342. _am_result=none
  2343. # First try GNU make style include.
  2344. echo "include confinc" > confmf
  2345. # We grep out `Entering directory' and `Leaving directory'
  2346. # messages which can occur if `w' ends up in MAKEFLAGS.
  2347. # In particular we don't look at `^make:' because GNU make might
  2348. # be invoked under some other name (usually "gmake"), in which
  2349. # case it prints its new name instead of `make'.
  2350. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2351. am__include=include
  2352. am__quote=
  2353. _am_result=GNU
  2354. fi
  2355. # Now try BSD make style include.
  2356. if test "$am__include" = "#"; then
  2357. echo '.include "confinc"' > confmf
  2358. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2359. am__include=.include
  2360. am__quote="\""
  2361. _am_result=BSD
  2362. fi
  2363. fi
  2364. echo "$as_me:$LINENO: result: $_am_result" >&5
  2365. echo "${ECHO_T}$_am_result" >&6
  2366. rm -f confinc confmf
  2367. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2368. if test "${enable_dependency_tracking+set}" = set; then
  2369. enableval="$enable_dependency_tracking"
  2370. fi;
  2371. if test "x$enable_dependency_tracking" != xno; then
  2372. am_depcomp="$ac_aux_dir/depcomp"
  2373. AMDEPBACKSLASH='\'
  2374. fi
  2375. if test "x$enable_dependency_tracking" != xno; then
  2376. AMDEP_TRUE=
  2377. AMDEP_FALSE='#'
  2378. else
  2379. AMDEP_TRUE='#'
  2380. AMDEP_FALSE=
  2381. fi
  2382. depcc="$CXX" am_compiler_list=
  2383. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2384. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2385. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2386. echo $ECHO_N "(cached) $ECHO_C" >&6
  2387. else
  2388. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2389. # We make a subdir and do the tests there. Otherwise we can end up
  2390. # making bogus files that we don't know about and never remove. For
  2391. # instance it was reported that on HP-UX the gcc test will end up
  2392. # making a dummy file named `D' -- because `-MD' means `put the output
  2393. # in D'.
  2394. mkdir conftest.dir
  2395. # Copy depcomp to subdir because otherwise we won't find it if we're
  2396. # using a relative directory.
  2397. cp "$am_depcomp" conftest.dir
  2398. cd conftest.dir
  2399. # We will build objects and dependencies in a subdirectory because
  2400. # it helps to detect inapplicable dependency modes. For instance
  2401. # both Tru64's cc and ICC support -MD to output dependencies as a
  2402. # side effect of compilation, but ICC will put the dependencies in
  2403. # the current directory while Tru64 will put them in the object
  2404. # directory.
  2405. mkdir sub
  2406. am_cv_CXX_dependencies_compiler_type=none
  2407. if test "$am_compiler_list" = ""; then
  2408. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2409. fi
  2410. for depmode in $am_compiler_list; do
  2411. # Setup a source with many dependencies, because some compilers
  2412. # like to wrap large dependency lists on column 80 (with \), and
  2413. # we should not choose a depcomp mode which is confused by this.
  2414. #
  2415. # We need to recreate these files for each test, as the compiler may
  2416. # overwrite some of them when testing with obscure command lines.
  2417. # This happens at least with the AIX C compiler.
  2418. : > sub/conftest.c
  2419. for i in 1 2 3 4 5 6; do
  2420. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2421. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2422. # Solaris 8's {/usr,}/bin/sh.
  2423. touch sub/conftst$i.h
  2424. done
  2425. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2426. case $depmode in
  2427. nosideeffect)
  2428. # after this tag, mechanisms are not by side-effect, so they'll
  2429. # only be used when explicitly requested
  2430. if test "x$enable_dependency_tracking" = xyes; then
  2431. continue
  2432. else
  2433. break
  2434. fi
  2435. ;;
  2436. none) break ;;
  2437. esac
  2438. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2439. # mode. It turns out that the SunPro C++ compiler does not properly
  2440. # handle `-M -o', and we need to detect this.
  2441. if depmode=$depmode \
  2442. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2443. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2444. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2445. >/dev/null 2>conftest.err &&
  2446. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2447. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2448. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2449. # icc doesn't choke on unknown options, it will just issue warnings
  2450. # or remarks (even with -Werror). So we grep stderr for any message
  2451. # that says an option was ignored or not supported.
  2452. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2453. # icc: Command line warning: ignoring option '-M'; no argument required
  2454. # The diagnosis changed in icc 8.0:
  2455. # icc: Command line remark: option '-MP' not supported
  2456. if (grep 'ignoring option' conftest.err ||
  2457. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2458. am_cv_CXX_dependencies_compiler_type=$depmode
  2459. break
  2460. fi
  2461. fi
  2462. done
  2463. cd ..
  2464. rm -rf conftest.dir
  2465. else
  2466. am_cv_CXX_dependencies_compiler_type=none
  2467. fi
  2468. fi
  2469. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2470. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2471. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2472. if
  2473. test "x$enable_dependency_tracking" != xno \
  2474. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2475. am__fastdepCXX_TRUE=
  2476. am__fastdepCXX_FALSE='#'
  2477. else
  2478. am__fastdepCXX_TRUE='#'
  2479. am__fastdepCXX_FALSE=
  2480. fi
  2481. ac_ext=c
  2482. ac_cpp='$CPP $CPPFLAGS'
  2483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2486. if test -n "$ac_tool_prefix"; then
  2487. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2488. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2489. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2490. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2491. if test "${ac_cv_prog_CC+set}" = set; then
  2492. echo $ECHO_N "(cached) $ECHO_C" >&6
  2493. else
  2494. if test -n "$CC"; then
  2495. ac_cv_prog_CC="$CC" # Let the user override the test.
  2496. else
  2497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2498. for as_dir in $PATH
  2499. do
  2500. IFS=$as_save_IFS
  2501. test -z "$as_dir" && as_dir=.
  2502. for ac_exec_ext in '' $ac_executable_extensions; do
  2503. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2504. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2505. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2506. break 2
  2507. fi
  2508. done
  2509. done
  2510. fi
  2511. fi
  2512. CC=$ac_cv_prog_CC
  2513. if test -n "$CC"; then
  2514. echo "$as_me:$LINENO: result: $CC" >&5
  2515. echo "${ECHO_T}$CC" >&6
  2516. else
  2517. echo "$as_me:$LINENO: result: no" >&5
  2518. echo "${ECHO_T}no" >&6
  2519. fi
  2520. fi
  2521. if test -z "$ac_cv_prog_CC"; then
  2522. ac_ct_CC=$CC
  2523. # Extract the first word of "gcc", so it can be a program name with args.
  2524. set dummy gcc; ac_word=$2
  2525. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2526. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2527. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2528. echo $ECHO_N "(cached) $ECHO_C" >&6
  2529. else
  2530. if test -n "$ac_ct_CC"; then
  2531. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2532. else
  2533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2534. for as_dir in $PATH
  2535. do
  2536. IFS=$as_save_IFS
  2537. test -z "$as_dir" && as_dir=.
  2538. for ac_exec_ext in '' $ac_executable_extensions; do
  2539. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2540. ac_cv_prog_ac_ct_CC="gcc"
  2541. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2542. break 2
  2543. fi
  2544. done
  2545. done
  2546. fi
  2547. fi
  2548. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2549. if test -n "$ac_ct_CC"; then
  2550. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2551. echo "${ECHO_T}$ac_ct_CC" >&6
  2552. else
  2553. echo "$as_me:$LINENO: result: no" >&5
  2554. echo "${ECHO_T}no" >&6
  2555. fi
  2556. CC=$ac_ct_CC
  2557. else
  2558. CC="$ac_cv_prog_CC"
  2559. fi
  2560. if test -z "$CC"; then
  2561. if test -n "$ac_tool_prefix"; then
  2562. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2563. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2564. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2565. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2566. if test "${ac_cv_prog_CC+set}" = set; then
  2567. echo $ECHO_N "(cached) $ECHO_C" >&6
  2568. else
  2569. if test -n "$CC"; then
  2570. ac_cv_prog_CC="$CC" # Let the user override the test.
  2571. else
  2572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2573. for as_dir in $PATH
  2574. do
  2575. IFS=$as_save_IFS
  2576. test -z "$as_dir" && as_dir=.
  2577. for ac_exec_ext in '' $ac_executable_extensions; do
  2578. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2579. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2580. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2581. break 2
  2582. fi
  2583. done
  2584. done
  2585. fi
  2586. fi
  2587. CC=$ac_cv_prog_CC
  2588. if test -n "$CC"; then
  2589. echo "$as_me:$LINENO: result: $CC" >&5
  2590. echo "${ECHO_T}$CC" >&6
  2591. else
  2592. echo "$as_me:$LINENO: result: no" >&5
  2593. echo "${ECHO_T}no" >&6
  2594. fi
  2595. fi
  2596. if test -z "$ac_cv_prog_CC"; then
  2597. ac_ct_CC=$CC
  2598. # Extract the first word of "cc", so it can be a program name with args.
  2599. set dummy cc; ac_word=$2
  2600. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2601. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2602. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2603. echo $ECHO_N "(cached) $ECHO_C" >&6
  2604. else
  2605. if test -n "$ac_ct_CC"; then
  2606. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. test -z "$as_dir" && as_dir=.
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2615. ac_cv_prog_ac_ct_CC="cc"
  2616. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2617. break 2
  2618. fi
  2619. done
  2620. done
  2621. fi
  2622. fi
  2623. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2624. if test -n "$ac_ct_CC"; then
  2625. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2626. echo "${ECHO_T}$ac_ct_CC" >&6
  2627. else
  2628. echo "$as_me:$LINENO: result: no" >&5
  2629. echo "${ECHO_T}no" >&6
  2630. fi
  2631. CC=$ac_ct_CC
  2632. else
  2633. CC="$ac_cv_prog_CC"
  2634. fi
  2635. fi
  2636. if test -z "$CC"; then
  2637. # Extract the first word of "cc", so it can be a program name with args.
  2638. set dummy cc; ac_word=$2
  2639. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2640. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2641. if test "${ac_cv_prog_CC+set}" = set; then
  2642. echo $ECHO_N "(cached) $ECHO_C" >&6
  2643. else
  2644. if test -n "$CC"; then
  2645. ac_cv_prog_CC="$CC" # Let the user override the test.
  2646. else
  2647. ac_prog_rejected=no
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2655. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2656. ac_prog_rejected=yes
  2657. continue
  2658. fi
  2659. ac_cv_prog_CC="cc"
  2660. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. if test $ac_prog_rejected = yes; then
  2666. # We found a bogon in the path, so make sure we never use it.
  2667. set dummy $ac_cv_prog_CC
  2668. shift
  2669. if test $# != 0; then
  2670. # We chose a different compiler from the bogus one.
  2671. # However, it has the same basename, so the bogon will be chosen
  2672. # first if we set CC to just the basename; use the full file name.
  2673. shift
  2674. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2675. fi
  2676. fi
  2677. fi
  2678. fi
  2679. CC=$ac_cv_prog_CC
  2680. if test -n "$CC"; then
  2681. echo "$as_me:$LINENO: result: $CC" >&5
  2682. echo "${ECHO_T}$CC" >&6
  2683. else
  2684. echo "$as_me:$LINENO: result: no" >&5
  2685. echo "${ECHO_T}no" >&6
  2686. fi
  2687. fi
  2688. if test -z "$CC"; then
  2689. if test -n "$ac_tool_prefix"; then
  2690. for ac_prog in cl
  2691. do
  2692. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2693. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2694. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2695. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2696. if test "${ac_cv_prog_CC+set}" = set; then
  2697. echo $ECHO_N "(cached) $ECHO_C" >&6
  2698. else
  2699. if test -n "$CC"; then
  2700. ac_cv_prog_CC="$CC" # Let the user override the test.
  2701. else
  2702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2703. for as_dir in $PATH
  2704. do
  2705. IFS=$as_save_IFS
  2706. test -z "$as_dir" && as_dir=.
  2707. for ac_exec_ext in '' $ac_executable_extensions; do
  2708. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2709. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2710. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2711. break 2
  2712. fi
  2713. done
  2714. done
  2715. fi
  2716. fi
  2717. CC=$ac_cv_prog_CC
  2718. if test -n "$CC"; then
  2719. echo "$as_me:$LINENO: result: $CC" >&5
  2720. echo "${ECHO_T}$CC" >&6
  2721. else
  2722. echo "$as_me:$LINENO: result: no" >&5
  2723. echo "${ECHO_T}no" >&6
  2724. fi
  2725. test -n "$CC" && break
  2726. done
  2727. fi
  2728. if test -z "$CC"; then
  2729. ac_ct_CC=$CC
  2730. for ac_prog in cl
  2731. do
  2732. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2733. set dummy $ac_prog; ac_word=$2
  2734. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2735. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2736. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2737. echo $ECHO_N "(cached) $ECHO_C" >&6
  2738. else
  2739. if test -n "$ac_ct_CC"; then
  2740. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2741. else
  2742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2743. for as_dir in $PATH
  2744. do
  2745. IFS=$as_save_IFS
  2746. test -z "$as_dir" && as_dir=.
  2747. for ac_exec_ext in '' $ac_executable_extensions; do
  2748. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2749. ac_cv_prog_ac_ct_CC="$ac_prog"
  2750. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2751. break 2
  2752. fi
  2753. done
  2754. done
  2755. fi
  2756. fi
  2757. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2758. if test -n "$ac_ct_CC"; then
  2759. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2760. echo "${ECHO_T}$ac_ct_CC" >&6
  2761. else
  2762. echo "$as_me:$LINENO: result: no" >&5
  2763. echo "${ECHO_T}no" >&6
  2764. fi
  2765. test -n "$ac_ct_CC" && break
  2766. done
  2767. CC=$ac_ct_CC
  2768. fi
  2769. fi
  2770. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2771. See \`config.log' for more details." >&5
  2772. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2773. See \`config.log' for more details." >&2;}
  2774. { (exit 1); exit 1; }; }
  2775. # Provide some information about the compiler.
  2776. echo "$as_me:$LINENO:" \
  2777. "checking for C compiler version" >&5
  2778. ac_compiler=`set X $ac_compile; echo $2`
  2779. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2780. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2781. ac_status=$?
  2782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2783. (exit $ac_status); }
  2784. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2785. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2786. ac_status=$?
  2787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2788. (exit $ac_status); }
  2789. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2790. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2791. ac_status=$?
  2792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); }
  2794. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2795. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2796. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2797. echo $ECHO_N "(cached) $ECHO_C" >&6
  2798. else
  2799. cat >conftest.$ac_ext <<_ACEOF
  2800. /* confdefs.h. */
  2801. _ACEOF
  2802. cat confdefs.h >>conftest.$ac_ext
  2803. cat >>conftest.$ac_ext <<_ACEOF
  2804. /* end confdefs.h. */
  2805. int
  2806. main ()
  2807. {
  2808. #ifndef __GNUC__
  2809. choke me
  2810. #endif
  2811. ;
  2812. return 0;
  2813. }
  2814. _ACEOF
  2815. rm -f conftest.$ac_objext
  2816. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2817. (eval $ac_compile) 2>conftest.er1
  2818. ac_status=$?
  2819. grep -v '^ *+' conftest.er1 >conftest.err
  2820. rm -f conftest.er1
  2821. cat conftest.err >&5
  2822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2823. (exit $ac_status); } &&
  2824. { ac_try='test -z "$ac_c_werror_flag"
  2825. || test ! -s conftest.err'
  2826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2827. (eval $ac_try) 2>&5
  2828. ac_status=$?
  2829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2830. (exit $ac_status); }; } &&
  2831. { ac_try='test -s conftest.$ac_objext'
  2832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2833. (eval $ac_try) 2>&5
  2834. ac_status=$?
  2835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2836. (exit $ac_status); }; }; then
  2837. ac_compiler_gnu=yes
  2838. else
  2839. echo "$as_me: failed program was:" >&5
  2840. sed 's/^/| /' conftest.$ac_ext >&5
  2841. ac_compiler_gnu=no
  2842. fi
  2843. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2844. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2845. fi
  2846. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2847. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2848. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2849. ac_test_CFLAGS=${CFLAGS+set}
  2850. ac_save_CFLAGS=$CFLAGS
  2851. CFLAGS="-g"
  2852. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2853. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2854. if test "${ac_cv_prog_cc_g+set}" = set; then
  2855. echo $ECHO_N "(cached) $ECHO_C" >&6
  2856. else
  2857. cat >conftest.$ac_ext <<_ACEOF
  2858. /* confdefs.h. */
  2859. _ACEOF
  2860. cat confdefs.h >>conftest.$ac_ext
  2861. cat >>conftest.$ac_ext <<_ACEOF
  2862. /* end confdefs.h. */
  2863. int
  2864. main ()
  2865. {
  2866. ;
  2867. return 0;
  2868. }
  2869. _ACEOF
  2870. rm -f conftest.$ac_objext
  2871. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2872. (eval $ac_compile) 2>conftest.er1
  2873. ac_status=$?
  2874. grep -v '^ *+' conftest.er1 >conftest.err
  2875. rm -f conftest.er1
  2876. cat conftest.err >&5
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); } &&
  2879. { ac_try='test -z "$ac_c_werror_flag"
  2880. || test ! -s conftest.err'
  2881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2882. (eval $ac_try) 2>&5
  2883. ac_status=$?
  2884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2885. (exit $ac_status); }; } &&
  2886. { ac_try='test -s conftest.$ac_objext'
  2887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2888. (eval $ac_try) 2>&5
  2889. ac_status=$?
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); }; }; then
  2892. ac_cv_prog_cc_g=yes
  2893. else
  2894. echo "$as_me: failed program was:" >&5
  2895. sed 's/^/| /' conftest.$ac_ext >&5
  2896. ac_cv_prog_cc_g=no
  2897. fi
  2898. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2899. fi
  2900. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2901. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2902. if test "$ac_test_CFLAGS" = set; then
  2903. CFLAGS=$ac_save_CFLAGS
  2904. elif test $ac_cv_prog_cc_g = yes; then
  2905. if test "$GCC" = yes; then
  2906. CFLAGS="-g -O2"
  2907. else
  2908. CFLAGS="-g"
  2909. fi
  2910. else
  2911. if test "$GCC" = yes; then
  2912. CFLAGS="-O2"
  2913. else
  2914. CFLAGS=
  2915. fi
  2916. fi
  2917. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2918. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2919. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2920. echo $ECHO_N "(cached) $ECHO_C" >&6
  2921. else
  2922. ac_cv_prog_cc_stdc=no
  2923. ac_save_CC=$CC
  2924. cat >conftest.$ac_ext <<_ACEOF
  2925. /* confdefs.h. */
  2926. _ACEOF
  2927. cat confdefs.h >>conftest.$ac_ext
  2928. cat >>conftest.$ac_ext <<_ACEOF
  2929. /* end confdefs.h. */
  2930. #include <stdarg.h>
  2931. #include <stdio.h>
  2932. #include <sys/types.h>
  2933. #include <sys/stat.h>
  2934. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2935. struct buf { int x; };
  2936. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2937. static char *e (p, i)
  2938. char **p;
  2939. int i;
  2940. {
  2941. return p[i];
  2942. }
  2943. static char *f (char * (*g) (char **, int), char **p, ...)
  2944. {
  2945. char *s;
  2946. va_list v;
  2947. va_start (v,p);
  2948. s = g (p, va_arg (v,int));
  2949. va_end (v);
  2950. return s;
  2951. }
  2952. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2953. function prototypes and stuff, but not '\xHH' hex character constants.
  2954. These don't provoke an error unfortunately, instead are silently treated
  2955. as 'x'. The following induces an error, until -std1 is added to get
  2956. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2957. array size at least. It's necessary to write '\x00'==0 to get something
  2958. that's true only with -std1. */
  2959. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2960. int test (int i, double x);
  2961. struct s1 {int (*f) (int a);};
  2962. struct s2 {int (*f) (double a);};
  2963. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2964. int argc;
  2965. char **argv;
  2966. int
  2967. main ()
  2968. {
  2969. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2970. ;
  2971. return 0;
  2972. }
  2973. _ACEOF
  2974. # Don't try gcc -ansi; that turns off useful extensions and
  2975. # breaks some systems' header files.
  2976. # AIX -qlanglvl=ansi
  2977. # Ultrix and OSF/1 -std1
  2978. # HP-UX 10.20 and later -Ae
  2979. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2980. # SVR4 -Xc -D__EXTENSIONS__
  2981. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2982. do
  2983. CC="$ac_save_CC $ac_arg"
  2984. rm -f conftest.$ac_objext
  2985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2986. (eval $ac_compile) 2>conftest.er1
  2987. ac_status=$?
  2988. grep -v '^ *+' conftest.er1 >conftest.err
  2989. rm -f conftest.er1
  2990. cat conftest.err >&5
  2991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2992. (exit $ac_status); } &&
  2993. { ac_try='test -z "$ac_c_werror_flag"
  2994. || test ! -s conftest.err'
  2995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2996. (eval $ac_try) 2>&5
  2997. ac_status=$?
  2998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2999. (exit $ac_status); }; } &&
  3000. { ac_try='test -s conftest.$ac_objext'
  3001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3002. (eval $ac_try) 2>&5
  3003. ac_status=$?
  3004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3005. (exit $ac_status); }; }; then
  3006. ac_cv_prog_cc_stdc=$ac_arg
  3007. break
  3008. else
  3009. echo "$as_me: failed program was:" >&5
  3010. sed 's/^/| /' conftest.$ac_ext >&5
  3011. fi
  3012. rm -f conftest.err conftest.$ac_objext
  3013. done
  3014. rm -f conftest.$ac_ext conftest.$ac_objext
  3015. CC=$ac_save_CC
  3016. fi
  3017. case "x$ac_cv_prog_cc_stdc" in
  3018. x|xno)
  3019. echo "$as_me:$LINENO: result: none needed" >&5
  3020. echo "${ECHO_T}none needed" >&6 ;;
  3021. *)
  3022. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3023. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3024. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3025. esac
  3026. # Some people use a C++ compiler to compile C. Since we use `exit',
  3027. # in C++ we need to declare it. In case someone uses the same compiler
  3028. # for both compiling C and C++ we need to have the C++ compiler decide
  3029. # the declaration of exit, since it's the most demanding environment.
  3030. cat >conftest.$ac_ext <<_ACEOF
  3031. #ifndef __cplusplus
  3032. choke me
  3033. #endif
  3034. _ACEOF
  3035. rm -f conftest.$ac_objext
  3036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3037. (eval $ac_compile) 2>conftest.er1
  3038. ac_status=$?
  3039. grep -v '^ *+' conftest.er1 >conftest.err
  3040. rm -f conftest.er1
  3041. cat conftest.err >&5
  3042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3043. (exit $ac_status); } &&
  3044. { ac_try='test -z "$ac_c_werror_flag"
  3045. || test ! -s conftest.err'
  3046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3047. (eval $ac_try) 2>&5
  3048. ac_status=$?
  3049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3050. (exit $ac_status); }; } &&
  3051. { ac_try='test -s conftest.$ac_objext'
  3052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3053. (eval $ac_try) 2>&5
  3054. ac_status=$?
  3055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3056. (exit $ac_status); }; }; then
  3057. for ac_declaration in \
  3058. '' \
  3059. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3060. 'extern "C" void std::exit (int); using std::exit;' \
  3061. 'extern "C" void exit (int) throw ();' \
  3062. 'extern "C" void exit (int);' \
  3063. 'void exit (int);'
  3064. do
  3065. cat >conftest.$ac_ext <<_ACEOF
  3066. /* confdefs.h. */
  3067. _ACEOF
  3068. cat confdefs.h >>conftest.$ac_ext
  3069. cat >>conftest.$ac_ext <<_ACEOF
  3070. /* end confdefs.h. */
  3071. $ac_declaration
  3072. #include <stdlib.h>
  3073. int
  3074. main ()
  3075. {
  3076. exit (42);
  3077. ;
  3078. return 0;
  3079. }
  3080. _ACEOF
  3081. rm -f conftest.$ac_objext
  3082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3083. (eval $ac_compile) 2>conftest.er1
  3084. ac_status=$?
  3085. grep -v '^ *+' conftest.er1 >conftest.err
  3086. rm -f conftest.er1
  3087. cat conftest.err >&5
  3088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3089. (exit $ac_status); } &&
  3090. { ac_try='test -z "$ac_c_werror_flag"
  3091. || test ! -s conftest.err'
  3092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3093. (eval $ac_try) 2>&5
  3094. ac_status=$?
  3095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3096. (exit $ac_status); }; } &&
  3097. { ac_try='test -s conftest.$ac_objext'
  3098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3099. (eval $ac_try) 2>&5
  3100. ac_status=$?
  3101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3102. (exit $ac_status); }; }; then
  3103. :
  3104. else
  3105. echo "$as_me: failed program was:" >&5
  3106. sed 's/^/| /' conftest.$ac_ext >&5
  3107. continue
  3108. fi
  3109. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3110. cat >conftest.$ac_ext <<_ACEOF
  3111. /* confdefs.h. */
  3112. _ACEOF
  3113. cat confdefs.h >>conftest.$ac_ext
  3114. cat >>conftest.$ac_ext <<_ACEOF
  3115. /* end confdefs.h. */
  3116. $ac_declaration
  3117. int
  3118. main ()
  3119. {
  3120. exit (42);
  3121. ;
  3122. return 0;
  3123. }
  3124. _ACEOF
  3125. rm -f conftest.$ac_objext
  3126. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3127. (eval $ac_compile) 2>conftest.er1
  3128. ac_status=$?
  3129. grep -v '^ *+' conftest.er1 >conftest.err
  3130. rm -f conftest.er1
  3131. cat conftest.err >&5
  3132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3133. (exit $ac_status); } &&
  3134. { ac_try='test -z "$ac_c_werror_flag"
  3135. || test ! -s conftest.err'
  3136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3137. (eval $ac_try) 2>&5
  3138. ac_status=$?
  3139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3140. (exit $ac_status); }; } &&
  3141. { ac_try='test -s conftest.$ac_objext'
  3142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3143. (eval $ac_try) 2>&5
  3144. ac_status=$?
  3145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3146. (exit $ac_status); }; }; then
  3147. break
  3148. else
  3149. echo "$as_me: failed program was:" >&5
  3150. sed 's/^/| /' conftest.$ac_ext >&5
  3151. fi
  3152. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3153. done
  3154. rm -f conftest*
  3155. if test -n "$ac_declaration"; then
  3156. echo '#ifdef __cplusplus' >>confdefs.h
  3157. echo $ac_declaration >>confdefs.h
  3158. echo '#endif' >>confdefs.h
  3159. fi
  3160. else
  3161. echo "$as_me: failed program was:" >&5
  3162. sed 's/^/| /' conftest.$ac_ext >&5
  3163. fi
  3164. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3165. ac_ext=c
  3166. ac_cpp='$CPP $CPPFLAGS'
  3167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3170. depcc="$CC" am_compiler_list=
  3171. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3172. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3173. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3174. echo $ECHO_N "(cached) $ECHO_C" >&6
  3175. else
  3176. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3177. # We make a subdir and do the tests there. Otherwise we can end up
  3178. # making bogus files that we don't know about and never remove. For
  3179. # instance it was reported that on HP-UX the gcc test will end up
  3180. # making a dummy file named `D' -- because `-MD' means `put the output
  3181. # in D'.
  3182. mkdir conftest.dir
  3183. # Copy depcomp to subdir because otherwise we won't find it if we're
  3184. # using a relative directory.
  3185. cp "$am_depcomp" conftest.dir
  3186. cd conftest.dir
  3187. # We will build objects and dependencies in a subdirectory because
  3188. # it helps to detect inapplicable dependency modes. For instance
  3189. # both Tru64's cc and ICC support -MD to output dependencies as a
  3190. # side effect of compilation, but ICC will put the dependencies in
  3191. # the current directory while Tru64 will put them in the object
  3192. # directory.
  3193. mkdir sub
  3194. am_cv_CC_dependencies_compiler_type=none
  3195. if test "$am_compiler_list" = ""; then
  3196. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3197. fi
  3198. for depmode in $am_compiler_list; do
  3199. # Setup a source with many dependencies, because some compilers
  3200. # like to wrap large dependency lists on column 80 (with \), and
  3201. # we should not choose a depcomp mode which is confused by this.
  3202. #
  3203. # We need to recreate these files for each test, as the compiler may
  3204. # overwrite some of them when testing with obscure command lines.
  3205. # This happens at least with the AIX C compiler.
  3206. : > sub/conftest.c
  3207. for i in 1 2 3 4 5 6; do
  3208. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3209. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3210. # Solaris 8's {/usr,}/bin/sh.
  3211. touch sub/conftst$i.h
  3212. done
  3213. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3214. case $depmode in
  3215. nosideeffect)
  3216. # after this tag, mechanisms are not by side-effect, so they'll
  3217. # only be used when explicitly requested
  3218. if test "x$enable_dependency_tracking" = xyes; then
  3219. continue
  3220. else
  3221. break
  3222. fi
  3223. ;;
  3224. none) break ;;
  3225. esac
  3226. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3227. # mode. It turns out that the SunPro C++ compiler does not properly
  3228. # handle `-M -o', and we need to detect this.
  3229. if depmode=$depmode \
  3230. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3231. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3232. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3233. >/dev/null 2>conftest.err &&
  3234. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3235. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3236. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3237. # icc doesn't choke on unknown options, it will just issue warnings
  3238. # or remarks (even with -Werror). So we grep stderr for any message
  3239. # that says an option was ignored or not supported.
  3240. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3241. # icc: Command line warning: ignoring option '-M'; no argument required
  3242. # The diagnosis changed in icc 8.0:
  3243. # icc: Command line remark: option '-MP' not supported
  3244. if (grep 'ignoring option' conftest.err ||
  3245. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3246. am_cv_CC_dependencies_compiler_type=$depmode
  3247. break
  3248. fi
  3249. fi
  3250. done
  3251. cd ..
  3252. rm -rf conftest.dir
  3253. else
  3254. am_cv_CC_dependencies_compiler_type=none
  3255. fi
  3256. fi
  3257. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3258. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3259. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3260. if
  3261. test "x$enable_dependency_tracking" != xno \
  3262. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3263. am__fastdepCC_TRUE=
  3264. am__fastdepCC_FALSE='#'
  3265. else
  3266. am__fastdepCC_TRUE='#'
  3267. am__fastdepCC_FALSE=
  3268. fi
  3269. if test "x$CC" != xcc; then
  3270. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3271. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3272. else
  3273. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3274. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3275. fi
  3276. set dummy $CC; ac_cc=`echo $2 |
  3277. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3278. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3279. echo $ECHO_N "(cached) $ECHO_C" >&6
  3280. else
  3281. cat >conftest.$ac_ext <<_ACEOF
  3282. /* confdefs.h. */
  3283. _ACEOF
  3284. cat confdefs.h >>conftest.$ac_ext
  3285. cat >>conftest.$ac_ext <<_ACEOF
  3286. /* end confdefs.h. */
  3287. int
  3288. main ()
  3289. {
  3290. ;
  3291. return 0;
  3292. }
  3293. _ACEOF
  3294. # Make sure it works both with $CC and with simple cc.
  3295. # We do the test twice because some compilers refuse to overwrite an
  3296. # existing .o file with -o, though they will create one.
  3297. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3298. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3299. (eval $ac_try) 2>&5
  3300. ac_status=$?
  3301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3302. (exit $ac_status); } &&
  3303. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3304. (eval $ac_try) 2>&5
  3305. ac_status=$?
  3306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3307. (exit $ac_status); };
  3308. then
  3309. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3310. if test "x$CC" != xcc; then
  3311. # Test first that cc exists at all.
  3312. if { ac_try='cc -c conftest.$ac_ext >&5'
  3313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3314. (eval $ac_try) 2>&5
  3315. ac_status=$?
  3316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3317. (exit $ac_status); }; }; then
  3318. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3319. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3320. (eval $ac_try) 2>&5
  3321. ac_status=$?
  3322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3323. (exit $ac_status); } &&
  3324. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3325. (eval $ac_try) 2>&5
  3326. ac_status=$?
  3327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328. (exit $ac_status); };
  3329. then
  3330. # cc works too.
  3331. :
  3332. else
  3333. # cc exists but doesn't like -o.
  3334. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3335. fi
  3336. fi
  3337. fi
  3338. else
  3339. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3340. fi
  3341. rm -f conftest*
  3342. fi
  3343. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3344. echo "$as_me:$LINENO: result: yes" >&5
  3345. echo "${ECHO_T}yes" >&6
  3346. else
  3347. echo "$as_me:$LINENO: result: no" >&5
  3348. echo "${ECHO_T}no" >&6
  3349. cat >>confdefs.h <<\_ACEOF
  3350. #define NO_MINUS_C_MINUS_O 1
  3351. _ACEOF
  3352. fi
  3353. # FIXME: we rely on the cache variable name because
  3354. # there is no other way.
  3355. set dummy $CC
  3356. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3357. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3358. # Losing compiler, so override with the script.
  3359. # FIXME: It is wrong to rewrite CC.
  3360. # But if we don't then we get into trouble of one sort or another.
  3361. # A longer-term fix would be to have automake use am__CC in this case,
  3362. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3363. CC="$am_aux_dir/compile $CC"
  3364. fi
  3365. # disable static libs by default - we only use a couple
  3366. # Check whether --enable-static or --disable-static was given.
  3367. if test "${enable_static+set}" = set; then
  3368. enableval="$enable_static"
  3369. p=${PACKAGE-default}
  3370. case $enableval in
  3371. yes) enable_static=yes ;;
  3372. no) enable_static=no ;;
  3373. *)
  3374. enable_static=no
  3375. # Look at the argument we got. We use all the common list separators.
  3376. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3377. for pkg in $enableval; do
  3378. IFS="$lt_save_ifs"
  3379. if test "X$pkg" = "X$p"; then
  3380. enable_static=yes
  3381. fi
  3382. done
  3383. IFS="$lt_save_ifs"
  3384. ;;
  3385. esac
  3386. else
  3387. enable_static=no
  3388. fi;
  3389. # Check whether --enable-shared or --disable-shared was given.
  3390. if test "${enable_shared+set}" = set; then
  3391. enableval="$enable_shared"
  3392. p=${PACKAGE-default}
  3393. case $enableval in
  3394. yes) enable_shared=yes ;;
  3395. no) enable_shared=no ;;
  3396. *)
  3397. enable_shared=no
  3398. # Look at the argument we got. We use all the common list separators.
  3399. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3400. for pkg in $enableval; do
  3401. IFS="$lt_save_ifs"
  3402. if test "X$pkg" = "X$p"; then
  3403. enable_shared=yes
  3404. fi
  3405. done
  3406. IFS="$lt_save_ifs"
  3407. ;;
  3408. esac
  3409. else
  3410. enable_shared=yes
  3411. fi;
  3412. # Check whether --enable-fast-install or --disable-fast-install was given.
  3413. if test "${enable_fast_install+set}" = set; then
  3414. enableval="$enable_fast_install"
  3415. p=${PACKAGE-default}
  3416. case $enableval in
  3417. yes) enable_fast_install=yes ;;
  3418. no) enable_fast_install=no ;;
  3419. *)
  3420. enable_fast_install=no
  3421. # Look at the argument we got. We use all the common list separators.
  3422. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3423. for pkg in $enableval; do
  3424. IFS="$lt_save_ifs"
  3425. if test "X$pkg" = "X$p"; then
  3426. enable_fast_install=yes
  3427. fi
  3428. done
  3429. IFS="$lt_save_ifs"
  3430. ;;
  3431. esac
  3432. else
  3433. enable_fast_install=yes
  3434. fi;
  3435. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3436. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3437. if test "${lt_cv_path_SED+set}" = set; then
  3438. echo $ECHO_N "(cached) $ECHO_C" >&6
  3439. else
  3440. # Loop through the user's path and test for sed and gsed.
  3441. # Then use that list of sed's as ones to test for truncation.
  3442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3443. for as_dir in $PATH
  3444. do
  3445. IFS=$as_save_IFS
  3446. test -z "$as_dir" && as_dir=.
  3447. for lt_ac_prog in sed gsed; do
  3448. for ac_exec_ext in '' $ac_executable_extensions; do
  3449. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3450. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3451. fi
  3452. done
  3453. done
  3454. done
  3455. lt_ac_max=0
  3456. lt_ac_count=0
  3457. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3458. # along with /bin/sed that truncates output.
  3459. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3460. test ! -f $lt_ac_sed && continue
  3461. cat /dev/null > conftest.in
  3462. lt_ac_count=0
  3463. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3464. # Check for GNU sed and select it if it is found.
  3465. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3466. lt_cv_path_SED=$lt_ac_sed
  3467. break
  3468. fi
  3469. while true; do
  3470. cat conftest.in conftest.in >conftest.tmp
  3471. mv conftest.tmp conftest.in
  3472. cp conftest.in conftest.nl
  3473. echo >>conftest.nl
  3474. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3475. cmp -s conftest.out conftest.nl || break
  3476. # 10000 chars as input seems more than enough
  3477. test $lt_ac_count -gt 10 && break
  3478. lt_ac_count=`expr $lt_ac_count + 1`
  3479. if test $lt_ac_count -gt $lt_ac_max; then
  3480. lt_ac_max=$lt_ac_count
  3481. lt_cv_path_SED=$lt_ac_sed
  3482. fi
  3483. done
  3484. done
  3485. fi
  3486. SED=$lt_cv_path_SED
  3487. echo "$as_me:$LINENO: result: $SED" >&5
  3488. echo "${ECHO_T}$SED" >&6
  3489. echo "$as_me:$LINENO: checking for egrep" >&5
  3490. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3491. if test "${ac_cv_prog_egrep+set}" = set; then
  3492. echo $ECHO_N "(cached) $ECHO_C" >&6
  3493. else
  3494. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3495. then ac_cv_prog_egrep='grep -E'
  3496. else ac_cv_prog_egrep='egrep'
  3497. fi
  3498. fi
  3499. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3500. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3501. EGREP=$ac_cv_prog_egrep
  3502. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3503. if test "${with_gnu_ld+set}" = set; then
  3504. withval="$with_gnu_ld"
  3505. test "$withval" = no || with_gnu_ld=yes
  3506. else
  3507. with_gnu_ld=no
  3508. fi;
  3509. ac_prog=ld
  3510. if test "$GCC" = yes; then
  3511. # Check if gcc -print-prog-name=ld gives a path.
  3512. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3513. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3514. case $host in
  3515. *-*-mingw*)
  3516. # gcc leaves a trailing carriage return which upsets mingw
  3517. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3518. *)
  3519. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3520. esac
  3521. case $ac_prog in
  3522. # Accept absolute paths.
  3523. [\\/]* | ?:[\\/]*)
  3524. re_direlt='/[^/][^/]*/\.\./'
  3525. # Canonicalize the pathname of ld
  3526. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3527. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3528. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3529. done
  3530. test -z "$LD" && LD="$ac_prog"
  3531. ;;
  3532. "")
  3533. # If it fails, then pretend we aren't using GCC.
  3534. ac_prog=ld
  3535. ;;
  3536. *)
  3537. # If it is relative, then search for the first ld in PATH.
  3538. with_gnu_ld=unknown
  3539. ;;
  3540. esac
  3541. elif test "$with_gnu_ld" = yes; then
  3542. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3543. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3544. else
  3545. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3546. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3547. fi
  3548. if test "${lt_cv_path_LD+set}" = set; then
  3549. echo $ECHO_N "(cached) $ECHO_C" >&6
  3550. else
  3551. if test -z "$LD"; then
  3552. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3553. for ac_dir in $PATH; do
  3554. IFS="$lt_save_ifs"
  3555. test -z "$ac_dir" && ac_dir=.
  3556. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3557. lt_cv_path_LD="$ac_dir/$ac_prog"
  3558. # Check to see if the program is GNU ld. I'd rather use --version,
  3559. # but apparently some variants of GNU ld only accept -v.
  3560. # Break only if it was the GNU/non-GNU ld that we prefer.
  3561. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3562. *GNU* | *'with BFD'*)
  3563. test "$with_gnu_ld" != no && break
  3564. ;;
  3565. *)
  3566. test "$with_gnu_ld" != yes && break
  3567. ;;
  3568. esac
  3569. fi
  3570. done
  3571. IFS="$lt_save_ifs"
  3572. else
  3573. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3574. fi
  3575. fi
  3576. LD="$lt_cv_path_LD"
  3577. if test -n "$LD"; then
  3578. echo "$as_me:$LINENO: result: $LD" >&5
  3579. echo "${ECHO_T}$LD" >&6
  3580. else
  3581. echo "$as_me:$LINENO: result: no" >&5
  3582. echo "${ECHO_T}no" >&6
  3583. fi
  3584. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3585. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3586. { (exit 1); exit 1; }; }
  3587. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3588. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3589. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3590. echo $ECHO_N "(cached) $ECHO_C" >&6
  3591. else
  3592. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3593. case `$LD -v 2>&1 </dev/null` in
  3594. *GNU* | *'with BFD'*)
  3595. lt_cv_prog_gnu_ld=yes
  3596. ;;
  3597. *)
  3598. lt_cv_prog_gnu_ld=no
  3599. ;;
  3600. esac
  3601. fi
  3602. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3603. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3604. with_gnu_ld=$lt_cv_prog_gnu_ld
  3605. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3606. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3607. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3608. echo $ECHO_N "(cached) $ECHO_C" >&6
  3609. else
  3610. lt_cv_ld_reload_flag='-r'
  3611. fi
  3612. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3613. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3614. reload_flag=$lt_cv_ld_reload_flag
  3615. case $reload_flag in
  3616. "" | " "*) ;;
  3617. *) reload_flag=" $reload_flag" ;;
  3618. esac
  3619. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3620. case $host_os in
  3621. darwin*)
  3622. if test "$GCC" = yes; then
  3623. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3624. else
  3625. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3626. fi
  3627. ;;
  3628. esac
  3629. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3630. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3631. if test "${lt_cv_path_NM+set}" = set; then
  3632. echo $ECHO_N "(cached) $ECHO_C" >&6
  3633. else
  3634. if test -n "$NM"; then
  3635. # Let the user override the test.
  3636. lt_cv_path_NM="$NM"
  3637. else
  3638. lt_nm_to_check="${ac_tool_prefix}nm"
  3639. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3640. lt_nm_to_check="$lt_nm_to_check nm"
  3641. fi
  3642. for lt_tmp_nm in $lt_nm_to_check; do
  3643. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3644. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3645. IFS="$lt_save_ifs"
  3646. test -z "$ac_dir" && ac_dir=.
  3647. tmp_nm="$ac_dir/$lt_tmp_nm"
  3648. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3649. # Check to see if the nm accepts a BSD-compat flag.
  3650. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3651. # nm: unknown option "B" ignored
  3652. # Tru64's nm complains that /dev/null is an invalid object file
  3653. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3654. */dev/null* | *'Invalid file or object type'*)
  3655. lt_cv_path_NM="$tmp_nm -B"
  3656. break
  3657. ;;
  3658. *)
  3659. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3660. */dev/null*)
  3661. lt_cv_path_NM="$tmp_nm -p"
  3662. break
  3663. ;;
  3664. *)
  3665. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3666. continue # so that we can try to find one that supports BSD flags
  3667. ;;
  3668. esac
  3669. ;;
  3670. esac
  3671. fi
  3672. done
  3673. IFS="$lt_save_ifs"
  3674. done
  3675. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3676. fi
  3677. fi
  3678. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3679. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3680. NM="$lt_cv_path_NM"
  3681. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3682. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3683. LN_S=$as_ln_s
  3684. if test "$LN_S" = "ln -s"; then
  3685. echo "$as_me:$LINENO: result: yes" >&5
  3686. echo "${ECHO_T}yes" >&6
  3687. else
  3688. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3689. echo "${ECHO_T}no, using $LN_S" >&6
  3690. fi
  3691. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3692. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3693. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3694. echo $ECHO_N "(cached) $ECHO_C" >&6
  3695. else
  3696. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3697. lt_cv_file_magic_test_file=
  3698. lt_cv_deplibs_check_method='unknown'
  3699. # Need to set the preceding variable on all platforms that support
  3700. # interlibrary dependencies.
  3701. # 'none' -- dependencies not supported.
  3702. # `unknown' -- same as none, but documents that we really don't know.
  3703. # 'pass_all' -- all dependencies passed with no checks.
  3704. # 'test_compile' -- check by making test program.
  3705. # 'file_magic [[regex]]' -- check by looking for files in library path
  3706. # which responds to the $file_magic_cmd with a given extended regex.
  3707. # If you have `file' or equivalent on your system and you're not sure
  3708. # whether `pass_all' will *always* work, you probably want this one.
  3709. case $host_os in
  3710. aix4* | aix5*)
  3711. lt_cv_deplibs_check_method=pass_all
  3712. ;;
  3713. beos*)
  3714. lt_cv_deplibs_check_method=pass_all
  3715. ;;
  3716. bsdi[45]*)
  3717. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3718. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3719. lt_cv_file_magic_test_file=/shlib/libc.so
  3720. ;;
  3721. cygwin*)
  3722. # func_win32_libid is a shell function defined in ltmain.sh
  3723. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3724. lt_cv_file_magic_cmd='func_win32_libid'
  3725. ;;
  3726. mingw* | pw32*)
  3727. # Base MSYS/MinGW do not provide the 'file' command needed by
  3728. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3729. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3730. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3731. ;;
  3732. darwin* | rhapsody*)
  3733. lt_cv_deplibs_check_method=pass_all
  3734. ;;
  3735. freebsd* | kfreebsd*-gnu | dragonfly*)
  3736. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3737. case $host_cpu in
  3738. i*86 )
  3739. # Not sure whether the presence of OpenBSD here was a mistake.
  3740. # Let's accept both of them until this is cleared up.
  3741. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3742. lt_cv_file_magic_cmd=/usr/bin/file
  3743. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3744. ;;
  3745. esac
  3746. else
  3747. lt_cv_deplibs_check_method=pass_all
  3748. fi
  3749. ;;
  3750. gnu*)
  3751. lt_cv_deplibs_check_method=pass_all
  3752. ;;
  3753. hpux10.20* | hpux11*)
  3754. lt_cv_file_magic_cmd=/usr/bin/file
  3755. case $host_cpu in
  3756. ia64*)
  3757. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3758. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3759. ;;
  3760. hppa*64*)
  3761. 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]'
  3762. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3763. ;;
  3764. *)
  3765. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3766. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3767. ;;
  3768. esac
  3769. ;;
  3770. interix3*)
  3771. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3772. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3773. ;;
  3774. irix5* | irix6* | nonstopux*)
  3775. case $LD in
  3776. *-32|*"-32 ") libmagic=32-bit;;
  3777. *-n32|*"-n32 ") libmagic=N32;;
  3778. *-64|*"-64 ") libmagic=64-bit;;
  3779. *) libmagic=never-match;;
  3780. esac
  3781. lt_cv_deplibs_check_method=pass_all
  3782. ;;
  3783. # This must be Linux ELF.
  3784. linux*)
  3785. lt_cv_deplibs_check_method=pass_all
  3786. ;;
  3787. netbsd*)
  3788. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3789. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3790. else
  3791. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3792. fi
  3793. ;;
  3794. newos6*)
  3795. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3796. lt_cv_file_magic_cmd=/usr/bin/file
  3797. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3798. ;;
  3799. nto-qnx*)
  3800. lt_cv_deplibs_check_method=unknown
  3801. ;;
  3802. openbsd*)
  3803. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3804. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3805. else
  3806. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3807. fi
  3808. ;;
  3809. osf3* | osf4* | osf5*)
  3810. lt_cv_deplibs_check_method=pass_all
  3811. ;;
  3812. solaris*)
  3813. lt_cv_deplibs_check_method=pass_all
  3814. ;;
  3815. sysv4 | sysv4.3*)
  3816. case $host_vendor in
  3817. motorola)
  3818. 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]'
  3819. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3820. ;;
  3821. ncr)
  3822. lt_cv_deplibs_check_method=pass_all
  3823. ;;
  3824. sequent)
  3825. lt_cv_file_magic_cmd='/bin/file'
  3826. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3827. ;;
  3828. sni)
  3829. lt_cv_file_magic_cmd='/bin/file'
  3830. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3831. lt_cv_file_magic_test_file=/lib/libc.so
  3832. ;;
  3833. siemens)
  3834. lt_cv_deplibs_check_method=pass_all
  3835. ;;
  3836. pc)
  3837. lt_cv_deplibs_check_method=pass_all
  3838. ;;
  3839. esac
  3840. ;;
  3841. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3842. lt_cv_deplibs_check_method=pass_all
  3843. ;;
  3844. esac
  3845. fi
  3846. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3847. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3848. file_magic_cmd=$lt_cv_file_magic_cmd
  3849. deplibs_check_method=$lt_cv_deplibs_check_method
  3850. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3851. # If no C compiler was specified, use CC.
  3852. LTCC=${LTCC-"$CC"}
  3853. # If no C compiler flags were specified, use CFLAGS.
  3854. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3855. # Allow CC to be a program name with arguments.
  3856. compiler=$CC
  3857. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3858. if test "${enable_libtool_lock+set}" = set; then
  3859. enableval="$enable_libtool_lock"
  3860. fi;
  3861. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3862. # Some flags need to be propagated to the compiler or linker for good
  3863. # libtool support.
  3864. case $host in
  3865. ia64-*-hpux*)
  3866. # Find out which ABI we are using.
  3867. echo 'int i;' > conftest.$ac_ext
  3868. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3869. (eval $ac_compile) 2>&5
  3870. ac_status=$?
  3871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3872. (exit $ac_status); }; then
  3873. case `/usr/bin/file conftest.$ac_objext` in
  3874. *ELF-32*)
  3875. HPUX_IA64_MODE="32"
  3876. ;;
  3877. *ELF-64*)
  3878. HPUX_IA64_MODE="64"
  3879. ;;
  3880. esac
  3881. fi
  3882. rm -rf conftest*
  3883. ;;
  3884. *-*-irix6*)
  3885. # Find out which ABI we are using.
  3886. echo '#line 4310 "configure"' > conftest.$ac_ext
  3887. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3888. (eval $ac_compile) 2>&5
  3889. ac_status=$?
  3890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3891. (exit $ac_status); }; then
  3892. if test "$lt_cv_prog_gnu_ld" = yes; then
  3893. case `/usr/bin/file conftest.$ac_objext` in
  3894. *32-bit*)
  3895. LD="${LD-ld} -melf32bsmip"
  3896. ;;
  3897. *N32*)
  3898. LD="${LD-ld} -melf32bmipn32"
  3899. ;;
  3900. *64-bit*)
  3901. LD="${LD-ld} -melf64bmip"
  3902. ;;
  3903. esac
  3904. else
  3905. case `/usr/bin/file conftest.$ac_objext` in
  3906. *32-bit*)
  3907. LD="${LD-ld} -32"
  3908. ;;
  3909. *N32*)
  3910. LD="${LD-ld} -n32"
  3911. ;;
  3912. *64-bit*)
  3913. LD="${LD-ld} -64"
  3914. ;;
  3915. esac
  3916. fi
  3917. fi
  3918. rm -rf conftest*
  3919. ;;
  3920. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3921. # Find out which ABI we are using.
  3922. echo 'int i;' > conftest.$ac_ext
  3923. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3924. (eval $ac_compile) 2>&5
  3925. ac_status=$?
  3926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3927. (exit $ac_status); }; then
  3928. case `/usr/bin/file conftest.o` in
  3929. *32-bit*)
  3930. case $host in
  3931. x86_64-*linux*)
  3932. LD="${LD-ld} -m elf_i386"
  3933. ;;
  3934. ppc64-*linux*|powerpc64-*linux*)
  3935. LD="${LD-ld} -m elf32ppclinux"
  3936. ;;
  3937. s390x-*linux*)
  3938. LD="${LD-ld} -m elf_s390"
  3939. ;;
  3940. sparc64-*linux*)
  3941. LD="${LD-ld} -m elf32_sparc"
  3942. ;;
  3943. esac
  3944. ;;
  3945. *64-bit*)
  3946. case $host in
  3947. x86_64-*linux*)
  3948. LD="${LD-ld} -m elf_x86_64"
  3949. ;;
  3950. ppc*-*linux*|powerpc*-*linux*)
  3951. LD="${LD-ld} -m elf64ppc"
  3952. ;;
  3953. s390*-*linux*)
  3954. LD="${LD-ld} -m elf64_s390"
  3955. ;;
  3956. sparc*-*linux*)
  3957. LD="${LD-ld} -m elf64_sparc"
  3958. ;;
  3959. esac
  3960. ;;
  3961. esac
  3962. fi
  3963. rm -rf conftest*
  3964. ;;
  3965. *-*-sco3.2v5*)
  3966. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3967. SAVE_CFLAGS="$CFLAGS"
  3968. CFLAGS="$CFLAGS -belf"
  3969. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3970. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3971. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3972. echo $ECHO_N "(cached) $ECHO_C" >&6
  3973. else
  3974. ac_ext=c
  3975. ac_cpp='$CPP $CPPFLAGS'
  3976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3979. cat >conftest.$ac_ext <<_ACEOF
  3980. /* confdefs.h. */
  3981. _ACEOF
  3982. cat confdefs.h >>conftest.$ac_ext
  3983. cat >>conftest.$ac_ext <<_ACEOF
  3984. /* end confdefs.h. */
  3985. int
  3986. main ()
  3987. {
  3988. ;
  3989. return 0;
  3990. }
  3991. _ACEOF
  3992. rm -f conftest.$ac_objext conftest$ac_exeext
  3993. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3994. (eval $ac_link) 2>conftest.er1
  3995. ac_status=$?
  3996. grep -v '^ *+' conftest.er1 >conftest.err
  3997. rm -f conftest.er1
  3998. cat conftest.err >&5
  3999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4000. (exit $ac_status); } &&
  4001. { ac_try='test -z "$ac_c_werror_flag"
  4002. || test ! -s conftest.err'
  4003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4004. (eval $ac_try) 2>&5
  4005. ac_status=$?
  4006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4007. (exit $ac_status); }; } &&
  4008. { ac_try='test -s conftest$ac_exeext'
  4009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4010. (eval $ac_try) 2>&5
  4011. ac_status=$?
  4012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4013. (exit $ac_status); }; }; then
  4014. lt_cv_cc_needs_belf=yes
  4015. else
  4016. echo "$as_me: failed program was:" >&5
  4017. sed 's/^/| /' conftest.$ac_ext >&5
  4018. lt_cv_cc_needs_belf=no
  4019. fi
  4020. rm -f conftest.err conftest.$ac_objext \
  4021. conftest$ac_exeext conftest.$ac_ext
  4022. ac_ext=c
  4023. ac_cpp='$CPP $CPPFLAGS'
  4024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4027. fi
  4028. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4029. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4030. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4031. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4032. CFLAGS="$SAVE_CFLAGS"
  4033. fi
  4034. ;;
  4035. sparc*-*solaris*)
  4036. # Find out which ABI we are using.
  4037. echo 'int i;' > conftest.$ac_ext
  4038. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4039. (eval $ac_compile) 2>&5
  4040. ac_status=$?
  4041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4042. (exit $ac_status); }; then
  4043. case `/usr/bin/file conftest.o` in
  4044. *64-bit*)
  4045. case $lt_cv_prog_gnu_ld in
  4046. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4047. *) LD="${LD-ld} -64" ;;
  4048. esac
  4049. ;;
  4050. esac
  4051. fi
  4052. rm -rf conftest*
  4053. ;;
  4054. esac
  4055. need_locks="$enable_libtool_lock"
  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. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4062. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4063. # On Suns, sometimes $CPP names a directory.
  4064. if test -n "$CPP" && test -d "$CPP"; then
  4065. CPP=
  4066. fi
  4067. if test -z "$CPP"; then
  4068. if test "${ac_cv_prog_CPP+set}" = set; then
  4069. echo $ECHO_N "(cached) $ECHO_C" >&6
  4070. else
  4071. # Double quotes because CPP needs to be expanded
  4072. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4073. do
  4074. ac_preproc_ok=false
  4075. for ac_c_preproc_warn_flag in '' yes
  4076. do
  4077. # Use a header file that comes with gcc, so configuring glibc
  4078. # with a fresh cross-compiler works.
  4079. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4080. # <limits.h> exists even on freestanding compilers.
  4081. # On the NeXT, cc -E runs the code through the compiler's parser,
  4082. # not just through cpp. "Syntax error" is here to catch this case.
  4083. cat >conftest.$ac_ext <<_ACEOF
  4084. /* confdefs.h. */
  4085. _ACEOF
  4086. cat confdefs.h >>conftest.$ac_ext
  4087. cat >>conftest.$ac_ext <<_ACEOF
  4088. /* end confdefs.h. */
  4089. #ifdef __STDC__
  4090. # include <limits.h>
  4091. #else
  4092. # include <assert.h>
  4093. #endif
  4094. Syntax error
  4095. _ACEOF
  4096. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4097. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4098. ac_status=$?
  4099. grep -v '^ *+' conftest.er1 >conftest.err
  4100. rm -f conftest.er1
  4101. cat conftest.err >&5
  4102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. (exit $ac_status); } >/dev/null; then
  4104. if test -s conftest.err; then
  4105. ac_cpp_err=$ac_c_preproc_warn_flag
  4106. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4107. else
  4108. ac_cpp_err=
  4109. fi
  4110. else
  4111. ac_cpp_err=yes
  4112. fi
  4113. if test -z "$ac_cpp_err"; then
  4114. :
  4115. else
  4116. echo "$as_me: failed program was:" >&5
  4117. sed 's/^/| /' conftest.$ac_ext >&5
  4118. # Broken: fails on valid input.
  4119. continue
  4120. fi
  4121. rm -f conftest.err conftest.$ac_ext
  4122. # OK, works on sane cases. Now check whether non-existent headers
  4123. # can be detected and how.
  4124. cat >conftest.$ac_ext <<_ACEOF
  4125. /* confdefs.h. */
  4126. _ACEOF
  4127. cat confdefs.h >>conftest.$ac_ext
  4128. cat >>conftest.$ac_ext <<_ACEOF
  4129. /* end confdefs.h. */
  4130. #include <ac_nonexistent.h>
  4131. _ACEOF
  4132. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4133. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4134. ac_status=$?
  4135. grep -v '^ *+' conftest.er1 >conftest.err
  4136. rm -f conftest.er1
  4137. cat conftest.err >&5
  4138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4139. (exit $ac_status); } >/dev/null; then
  4140. if test -s conftest.err; then
  4141. ac_cpp_err=$ac_c_preproc_warn_flag
  4142. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4143. else
  4144. ac_cpp_err=
  4145. fi
  4146. else
  4147. ac_cpp_err=yes
  4148. fi
  4149. if test -z "$ac_cpp_err"; then
  4150. # Broken: success on invalid input.
  4151. continue
  4152. else
  4153. echo "$as_me: failed program was:" >&5
  4154. sed 's/^/| /' conftest.$ac_ext >&5
  4155. # Passes both tests.
  4156. ac_preproc_ok=:
  4157. break
  4158. fi
  4159. rm -f conftest.err conftest.$ac_ext
  4160. done
  4161. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4162. rm -f conftest.err conftest.$ac_ext
  4163. if $ac_preproc_ok; then
  4164. break
  4165. fi
  4166. done
  4167. ac_cv_prog_CPP=$CPP
  4168. fi
  4169. CPP=$ac_cv_prog_CPP
  4170. else
  4171. ac_cv_prog_CPP=$CPP
  4172. fi
  4173. echo "$as_me:$LINENO: result: $CPP" >&5
  4174. echo "${ECHO_T}$CPP" >&6
  4175. ac_preproc_ok=false
  4176. for ac_c_preproc_warn_flag in '' yes
  4177. do
  4178. # Use a header file that comes with gcc, so configuring glibc
  4179. # with a fresh cross-compiler works.
  4180. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4181. # <limits.h> exists even on freestanding compilers.
  4182. # On the NeXT, cc -E runs the code through the compiler's parser,
  4183. # not just through cpp. "Syntax error" is here to catch this case.
  4184. cat >conftest.$ac_ext <<_ACEOF
  4185. /* confdefs.h. */
  4186. _ACEOF
  4187. cat confdefs.h >>conftest.$ac_ext
  4188. cat >>conftest.$ac_ext <<_ACEOF
  4189. /* end confdefs.h. */
  4190. #ifdef __STDC__
  4191. # include <limits.h>
  4192. #else
  4193. # include <assert.h>
  4194. #endif
  4195. Syntax error
  4196. _ACEOF
  4197. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4198. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4199. ac_status=$?
  4200. grep -v '^ *+' conftest.er1 >conftest.err
  4201. rm -f conftest.er1
  4202. cat conftest.err >&5
  4203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4204. (exit $ac_status); } >/dev/null; then
  4205. if test -s conftest.err; then
  4206. ac_cpp_err=$ac_c_preproc_warn_flag
  4207. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4208. else
  4209. ac_cpp_err=
  4210. fi
  4211. else
  4212. ac_cpp_err=yes
  4213. fi
  4214. if test -z "$ac_cpp_err"; then
  4215. :
  4216. else
  4217. echo "$as_me: failed program was:" >&5
  4218. sed 's/^/| /' conftest.$ac_ext >&5
  4219. # Broken: fails on valid input.
  4220. continue
  4221. fi
  4222. rm -f conftest.err conftest.$ac_ext
  4223. # OK, works on sane cases. Now check whether non-existent headers
  4224. # can be detected and how.
  4225. cat >conftest.$ac_ext <<_ACEOF
  4226. /* confdefs.h. */
  4227. _ACEOF
  4228. cat confdefs.h >>conftest.$ac_ext
  4229. cat >>conftest.$ac_ext <<_ACEOF
  4230. /* end confdefs.h. */
  4231. #include <ac_nonexistent.h>
  4232. _ACEOF
  4233. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4234. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4235. ac_status=$?
  4236. grep -v '^ *+' conftest.er1 >conftest.err
  4237. rm -f conftest.er1
  4238. cat conftest.err >&5
  4239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4240. (exit $ac_status); } >/dev/null; then
  4241. if test -s conftest.err; then
  4242. ac_cpp_err=$ac_c_preproc_warn_flag
  4243. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4244. else
  4245. ac_cpp_err=
  4246. fi
  4247. else
  4248. ac_cpp_err=yes
  4249. fi
  4250. if test -z "$ac_cpp_err"; then
  4251. # Broken: success on invalid input.
  4252. continue
  4253. else
  4254. echo "$as_me: failed program was:" >&5
  4255. sed 's/^/| /' conftest.$ac_ext >&5
  4256. # Passes both tests.
  4257. ac_preproc_ok=:
  4258. break
  4259. fi
  4260. rm -f conftest.err conftest.$ac_ext
  4261. done
  4262. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4263. rm -f conftest.err conftest.$ac_ext
  4264. if $ac_preproc_ok; then
  4265. :
  4266. else
  4267. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4268. See \`config.log' for more details." >&5
  4269. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4270. See \`config.log' for more details." >&2;}
  4271. { (exit 1); exit 1; }; }
  4272. fi
  4273. ac_ext=c
  4274. ac_cpp='$CPP $CPPFLAGS'
  4275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4278. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4279. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4280. if test "${ac_cv_header_stdc+set}" = set; then
  4281. echo $ECHO_N "(cached) $ECHO_C" >&6
  4282. else
  4283. cat >conftest.$ac_ext <<_ACEOF
  4284. /* confdefs.h. */
  4285. _ACEOF
  4286. cat confdefs.h >>conftest.$ac_ext
  4287. cat >>conftest.$ac_ext <<_ACEOF
  4288. /* end confdefs.h. */
  4289. #include <stdlib.h>
  4290. #include <stdarg.h>
  4291. #include <string.h>
  4292. #include <float.h>
  4293. int
  4294. main ()
  4295. {
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. rm -f conftest.$ac_objext
  4301. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4302. (eval $ac_compile) 2>conftest.er1
  4303. ac_status=$?
  4304. grep -v '^ *+' conftest.er1 >conftest.err
  4305. rm -f conftest.er1
  4306. cat conftest.err >&5
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); } &&
  4309. { ac_try='test -z "$ac_c_werror_flag"
  4310. || test ! -s conftest.err'
  4311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4312. (eval $ac_try) 2>&5
  4313. ac_status=$?
  4314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4315. (exit $ac_status); }; } &&
  4316. { ac_try='test -s conftest.$ac_objext'
  4317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4318. (eval $ac_try) 2>&5
  4319. ac_status=$?
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); }; }; then
  4322. ac_cv_header_stdc=yes
  4323. else
  4324. echo "$as_me: failed program was:" >&5
  4325. sed 's/^/| /' conftest.$ac_ext >&5
  4326. ac_cv_header_stdc=no
  4327. fi
  4328. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4329. if test $ac_cv_header_stdc = yes; then
  4330. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4331. cat >conftest.$ac_ext <<_ACEOF
  4332. /* confdefs.h. */
  4333. _ACEOF
  4334. cat confdefs.h >>conftest.$ac_ext
  4335. cat >>conftest.$ac_ext <<_ACEOF
  4336. /* end confdefs.h. */
  4337. #include <string.h>
  4338. _ACEOF
  4339. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4340. $EGREP "memchr" >/dev/null 2>&1; then
  4341. :
  4342. else
  4343. ac_cv_header_stdc=no
  4344. fi
  4345. rm -f conftest*
  4346. fi
  4347. if test $ac_cv_header_stdc = yes; then
  4348. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4349. cat >conftest.$ac_ext <<_ACEOF
  4350. /* confdefs.h. */
  4351. _ACEOF
  4352. cat confdefs.h >>conftest.$ac_ext
  4353. cat >>conftest.$ac_ext <<_ACEOF
  4354. /* end confdefs.h. */
  4355. #include <stdlib.h>
  4356. _ACEOF
  4357. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4358. $EGREP "free" >/dev/null 2>&1; then
  4359. :
  4360. else
  4361. ac_cv_header_stdc=no
  4362. fi
  4363. rm -f conftest*
  4364. fi
  4365. if test $ac_cv_header_stdc = yes; then
  4366. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4367. if test "$cross_compiling" = yes; then
  4368. :
  4369. else
  4370. cat >conftest.$ac_ext <<_ACEOF
  4371. /* confdefs.h. */
  4372. _ACEOF
  4373. cat confdefs.h >>conftest.$ac_ext
  4374. cat >>conftest.$ac_ext <<_ACEOF
  4375. /* end confdefs.h. */
  4376. #include <ctype.h>
  4377. #if ((' ' & 0x0FF) == 0x020)
  4378. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4379. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4380. #else
  4381. # define ISLOWER(c) \
  4382. (('a' <= (c) && (c) <= 'i') \
  4383. || ('j' <= (c) && (c) <= 'r') \
  4384. || ('s' <= (c) && (c) <= 'z'))
  4385. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4386. #endif
  4387. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4388. int
  4389. main ()
  4390. {
  4391. int i;
  4392. for (i = 0; i < 256; i++)
  4393. if (XOR (islower (i), ISLOWER (i))
  4394. || toupper (i) != TOUPPER (i))
  4395. exit(2);
  4396. exit (0);
  4397. }
  4398. _ACEOF
  4399. rm -f conftest$ac_exeext
  4400. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4401. (eval $ac_link) 2>&5
  4402. ac_status=$?
  4403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4406. (eval $ac_try) 2>&5
  4407. ac_status=$?
  4408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4409. (exit $ac_status); }; }; then
  4410. :
  4411. else
  4412. echo "$as_me: program exited with status $ac_status" >&5
  4413. echo "$as_me: failed program was:" >&5
  4414. sed 's/^/| /' conftest.$ac_ext >&5
  4415. ( exit $ac_status )
  4416. ac_cv_header_stdc=no
  4417. fi
  4418. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4419. fi
  4420. fi
  4421. fi
  4422. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4423. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4424. if test $ac_cv_header_stdc = yes; then
  4425. cat >>confdefs.h <<\_ACEOF
  4426. #define STDC_HEADERS 1
  4427. _ACEOF
  4428. fi
  4429. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4430. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4431. inttypes.h stdint.h unistd.h
  4432. do
  4433. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4434. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4435. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4436. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4437. echo $ECHO_N "(cached) $ECHO_C" >&6
  4438. else
  4439. cat >conftest.$ac_ext <<_ACEOF
  4440. /* confdefs.h. */
  4441. _ACEOF
  4442. cat confdefs.h >>conftest.$ac_ext
  4443. cat >>conftest.$ac_ext <<_ACEOF
  4444. /* end confdefs.h. */
  4445. $ac_includes_default
  4446. #include <$ac_header>
  4447. _ACEOF
  4448. rm -f conftest.$ac_objext
  4449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4450. (eval $ac_compile) 2>conftest.er1
  4451. ac_status=$?
  4452. grep -v '^ *+' conftest.er1 >conftest.err
  4453. rm -f conftest.er1
  4454. cat conftest.err >&5
  4455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4456. (exit $ac_status); } &&
  4457. { ac_try='test -z "$ac_c_werror_flag"
  4458. || test ! -s conftest.err'
  4459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4460. (eval $ac_try) 2>&5
  4461. ac_status=$?
  4462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4463. (exit $ac_status); }; } &&
  4464. { ac_try='test -s conftest.$ac_objext'
  4465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4466. (eval $ac_try) 2>&5
  4467. ac_status=$?
  4468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4469. (exit $ac_status); }; }; then
  4470. eval "$as_ac_Header=yes"
  4471. else
  4472. echo "$as_me: failed program was:" >&5
  4473. sed 's/^/| /' conftest.$ac_ext >&5
  4474. eval "$as_ac_Header=no"
  4475. fi
  4476. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4477. fi
  4478. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4479. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4480. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4481. cat >>confdefs.h <<_ACEOF
  4482. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4483. _ACEOF
  4484. fi
  4485. done
  4486. for ac_header in dlfcn.h
  4487. do
  4488. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4489. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4490. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4491. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4492. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4493. echo $ECHO_N "(cached) $ECHO_C" >&6
  4494. fi
  4495. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4496. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4497. else
  4498. # Is the header compilable?
  4499. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4500. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4501. cat >conftest.$ac_ext <<_ACEOF
  4502. /* confdefs.h. */
  4503. _ACEOF
  4504. cat confdefs.h >>conftest.$ac_ext
  4505. cat >>conftest.$ac_ext <<_ACEOF
  4506. /* end confdefs.h. */
  4507. $ac_includes_default
  4508. #include <$ac_header>
  4509. _ACEOF
  4510. rm -f conftest.$ac_objext
  4511. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4512. (eval $ac_compile) 2>conftest.er1
  4513. ac_status=$?
  4514. grep -v '^ *+' conftest.er1 >conftest.err
  4515. rm -f conftest.er1
  4516. cat conftest.err >&5
  4517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4518. (exit $ac_status); } &&
  4519. { ac_try='test -z "$ac_c_werror_flag"
  4520. || test ! -s conftest.err'
  4521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4522. (eval $ac_try) 2>&5
  4523. ac_status=$?
  4524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4525. (exit $ac_status); }; } &&
  4526. { ac_try='test -s conftest.$ac_objext'
  4527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4528. (eval $ac_try) 2>&5
  4529. ac_status=$?
  4530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4531. (exit $ac_status); }; }; then
  4532. ac_header_compiler=yes
  4533. else
  4534. echo "$as_me: failed program was:" >&5
  4535. sed 's/^/| /' conftest.$ac_ext >&5
  4536. ac_header_compiler=no
  4537. fi
  4538. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4539. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4540. echo "${ECHO_T}$ac_header_compiler" >&6
  4541. # Is the header present?
  4542. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4543. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4544. cat >conftest.$ac_ext <<_ACEOF
  4545. /* confdefs.h. */
  4546. _ACEOF
  4547. cat confdefs.h >>conftest.$ac_ext
  4548. cat >>conftest.$ac_ext <<_ACEOF
  4549. /* end confdefs.h. */
  4550. #include <$ac_header>
  4551. _ACEOF
  4552. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4553. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4554. ac_status=$?
  4555. grep -v '^ *+' conftest.er1 >conftest.err
  4556. rm -f conftest.er1
  4557. cat conftest.err >&5
  4558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4559. (exit $ac_status); } >/dev/null; then
  4560. if test -s conftest.err; then
  4561. ac_cpp_err=$ac_c_preproc_warn_flag
  4562. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4563. else
  4564. ac_cpp_err=
  4565. fi
  4566. else
  4567. ac_cpp_err=yes
  4568. fi
  4569. if test -z "$ac_cpp_err"; then
  4570. ac_header_preproc=yes
  4571. else
  4572. echo "$as_me: failed program was:" >&5
  4573. sed 's/^/| /' conftest.$ac_ext >&5
  4574. ac_header_preproc=no
  4575. fi
  4576. rm -f conftest.err conftest.$ac_ext
  4577. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4578. echo "${ECHO_T}$ac_header_preproc" >&6
  4579. # So? What about this header?
  4580. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4581. yes:no: )
  4582. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4583. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4584. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4585. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4586. ac_header_preproc=yes
  4587. ;;
  4588. no:yes:* )
  4589. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4590. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4591. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4592. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4593. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4594. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4595. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4596. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4597. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4598. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4599. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4600. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4601. (
  4602. cat <<\_ASBOX
  4603. ## ------------------------------------------ ##
  4604. ## Report this to http://bugzilla.redhat.com/ ##
  4605. ## ------------------------------------------ ##
  4606. _ASBOX
  4607. ) |
  4608. sed "s/^/$as_me: WARNING: /" >&2
  4609. ;;
  4610. esac
  4611. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4612. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4613. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4614. echo $ECHO_N "(cached) $ECHO_C" >&6
  4615. else
  4616. eval "$as_ac_Header=\$ac_header_preproc"
  4617. fi
  4618. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4619. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4620. fi
  4621. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4622. cat >>confdefs.h <<_ACEOF
  4623. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4624. _ACEOF
  4625. fi
  4626. done
  4627. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4628. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4629. (test "X$CXX" != "Xg++"))) ; then
  4630. ac_ext=cc
  4631. ac_cpp='$CXXCPP $CPPFLAGS'
  4632. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4633. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4634. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4635. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4636. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4637. if test -z "$CXXCPP"; then
  4638. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4639. echo $ECHO_N "(cached) $ECHO_C" >&6
  4640. else
  4641. # Double quotes because CXXCPP needs to be expanded
  4642. for CXXCPP in "$CXX -E" "/lib/cpp"
  4643. do
  4644. ac_preproc_ok=false
  4645. for ac_cxx_preproc_warn_flag in '' yes
  4646. do
  4647. # Use a header file that comes with gcc, so configuring glibc
  4648. # with a fresh cross-compiler works.
  4649. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4650. # <limits.h> exists even on freestanding compilers.
  4651. # On the NeXT, cc -E runs the code through the compiler's parser,
  4652. # not just through cpp. "Syntax error" is here to catch this case.
  4653. cat >conftest.$ac_ext <<_ACEOF
  4654. /* confdefs.h. */
  4655. _ACEOF
  4656. cat confdefs.h >>conftest.$ac_ext
  4657. cat >>conftest.$ac_ext <<_ACEOF
  4658. /* end confdefs.h. */
  4659. #ifdef __STDC__
  4660. # include <limits.h>
  4661. #else
  4662. # include <assert.h>
  4663. #endif
  4664. Syntax error
  4665. _ACEOF
  4666. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4667. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4668. ac_status=$?
  4669. grep -v '^ *+' conftest.er1 >conftest.err
  4670. rm -f conftest.er1
  4671. cat conftest.err >&5
  4672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4673. (exit $ac_status); } >/dev/null; then
  4674. if test -s conftest.err; then
  4675. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4676. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4677. else
  4678. ac_cpp_err=
  4679. fi
  4680. else
  4681. ac_cpp_err=yes
  4682. fi
  4683. if test -z "$ac_cpp_err"; then
  4684. :
  4685. else
  4686. echo "$as_me: failed program was:" >&5
  4687. sed 's/^/| /' conftest.$ac_ext >&5
  4688. # Broken: fails on valid input.
  4689. continue
  4690. fi
  4691. rm -f conftest.err conftest.$ac_ext
  4692. # OK, works on sane cases. Now check whether non-existent headers
  4693. # can be detected and how.
  4694. cat >conftest.$ac_ext <<_ACEOF
  4695. /* confdefs.h. */
  4696. _ACEOF
  4697. cat confdefs.h >>conftest.$ac_ext
  4698. cat >>conftest.$ac_ext <<_ACEOF
  4699. /* end confdefs.h. */
  4700. #include <ac_nonexistent.h>
  4701. _ACEOF
  4702. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4703. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4704. ac_status=$?
  4705. grep -v '^ *+' conftest.er1 >conftest.err
  4706. rm -f conftest.er1
  4707. cat conftest.err >&5
  4708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4709. (exit $ac_status); } >/dev/null; then
  4710. if test -s conftest.err; then
  4711. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4712. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4713. else
  4714. ac_cpp_err=
  4715. fi
  4716. else
  4717. ac_cpp_err=yes
  4718. fi
  4719. if test -z "$ac_cpp_err"; then
  4720. # Broken: success on invalid input.
  4721. continue
  4722. else
  4723. echo "$as_me: failed program was:" >&5
  4724. sed 's/^/| /' conftest.$ac_ext >&5
  4725. # Passes both tests.
  4726. ac_preproc_ok=:
  4727. break
  4728. fi
  4729. rm -f conftest.err conftest.$ac_ext
  4730. done
  4731. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4732. rm -f conftest.err conftest.$ac_ext
  4733. if $ac_preproc_ok; then
  4734. break
  4735. fi
  4736. done
  4737. ac_cv_prog_CXXCPP=$CXXCPP
  4738. fi
  4739. CXXCPP=$ac_cv_prog_CXXCPP
  4740. else
  4741. ac_cv_prog_CXXCPP=$CXXCPP
  4742. fi
  4743. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4744. echo "${ECHO_T}$CXXCPP" >&6
  4745. ac_preproc_ok=false
  4746. for ac_cxx_preproc_warn_flag in '' yes
  4747. do
  4748. # Use a header file that comes with gcc, so configuring glibc
  4749. # with a fresh cross-compiler works.
  4750. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4751. # <limits.h> exists even on freestanding compilers.
  4752. # On the NeXT, cc -E runs the code through the compiler's parser,
  4753. # not just through cpp. "Syntax error" is here to catch this case.
  4754. cat >conftest.$ac_ext <<_ACEOF
  4755. /* confdefs.h. */
  4756. _ACEOF
  4757. cat confdefs.h >>conftest.$ac_ext
  4758. cat >>conftest.$ac_ext <<_ACEOF
  4759. /* end confdefs.h. */
  4760. #ifdef __STDC__
  4761. # include <limits.h>
  4762. #else
  4763. # include <assert.h>
  4764. #endif
  4765. Syntax error
  4766. _ACEOF
  4767. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4768. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4769. ac_status=$?
  4770. grep -v '^ *+' conftest.er1 >conftest.err
  4771. rm -f conftest.er1
  4772. cat conftest.err >&5
  4773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4774. (exit $ac_status); } >/dev/null; then
  4775. if test -s conftest.err; then
  4776. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4777. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4778. else
  4779. ac_cpp_err=
  4780. fi
  4781. else
  4782. ac_cpp_err=yes
  4783. fi
  4784. if test -z "$ac_cpp_err"; then
  4785. :
  4786. else
  4787. echo "$as_me: failed program was:" >&5
  4788. sed 's/^/| /' conftest.$ac_ext >&5
  4789. # Broken: fails on valid input.
  4790. continue
  4791. fi
  4792. rm -f conftest.err conftest.$ac_ext
  4793. # OK, works on sane cases. Now check whether non-existent headers
  4794. # can be detected and how.
  4795. cat >conftest.$ac_ext <<_ACEOF
  4796. /* confdefs.h. */
  4797. _ACEOF
  4798. cat confdefs.h >>conftest.$ac_ext
  4799. cat >>conftest.$ac_ext <<_ACEOF
  4800. /* end confdefs.h. */
  4801. #include <ac_nonexistent.h>
  4802. _ACEOF
  4803. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4804. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4805. ac_status=$?
  4806. grep -v '^ *+' conftest.er1 >conftest.err
  4807. rm -f conftest.er1
  4808. cat conftest.err >&5
  4809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4810. (exit $ac_status); } >/dev/null; then
  4811. if test -s conftest.err; then
  4812. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4813. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4814. else
  4815. ac_cpp_err=
  4816. fi
  4817. else
  4818. ac_cpp_err=yes
  4819. fi
  4820. if test -z "$ac_cpp_err"; then
  4821. # Broken: success on invalid input.
  4822. continue
  4823. else
  4824. echo "$as_me: failed program was:" >&5
  4825. sed 's/^/| /' conftest.$ac_ext >&5
  4826. # Passes both tests.
  4827. ac_preproc_ok=:
  4828. break
  4829. fi
  4830. rm -f conftest.err conftest.$ac_ext
  4831. done
  4832. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4833. rm -f conftest.err conftest.$ac_ext
  4834. if $ac_preproc_ok; then
  4835. :
  4836. else
  4837. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4838. See \`config.log' for more details." >&5
  4839. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4840. See \`config.log' for more details." >&2;}
  4841. { (exit 1); exit 1; }; }
  4842. fi
  4843. ac_ext=cc
  4844. ac_cpp='$CXXCPP $CPPFLAGS'
  4845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4848. fi
  4849. ac_ext=f
  4850. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4851. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4852. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4853. if test -n "$ac_tool_prefix"; then
  4854. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4855. do
  4856. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4857. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4858. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4859. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4860. if test "${ac_cv_prog_F77+set}" = set; then
  4861. echo $ECHO_N "(cached) $ECHO_C" >&6
  4862. else
  4863. if test -n "$F77"; then
  4864. ac_cv_prog_F77="$F77" # Let the user override the test.
  4865. else
  4866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4867. for as_dir in $PATH
  4868. do
  4869. IFS=$as_save_IFS
  4870. test -z "$as_dir" && as_dir=.
  4871. for ac_exec_ext in '' $ac_executable_extensions; do
  4872. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4873. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4874. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4875. break 2
  4876. fi
  4877. done
  4878. done
  4879. fi
  4880. fi
  4881. F77=$ac_cv_prog_F77
  4882. if test -n "$F77"; then
  4883. echo "$as_me:$LINENO: result: $F77" >&5
  4884. echo "${ECHO_T}$F77" >&6
  4885. else
  4886. echo "$as_me:$LINENO: result: no" >&5
  4887. echo "${ECHO_T}no" >&6
  4888. fi
  4889. test -n "$F77" && break
  4890. done
  4891. fi
  4892. if test -z "$F77"; then
  4893. ac_ct_F77=$F77
  4894. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4895. do
  4896. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4897. set dummy $ac_prog; ac_word=$2
  4898. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4899. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4900. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4901. echo $ECHO_N "(cached) $ECHO_C" >&6
  4902. else
  4903. if test -n "$ac_ct_F77"; then
  4904. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4905. else
  4906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4907. for as_dir in $PATH
  4908. do
  4909. IFS=$as_save_IFS
  4910. test -z "$as_dir" && as_dir=.
  4911. for ac_exec_ext in '' $ac_executable_extensions; do
  4912. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4913. ac_cv_prog_ac_ct_F77="$ac_prog"
  4914. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4915. break 2
  4916. fi
  4917. done
  4918. done
  4919. fi
  4920. fi
  4921. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4922. if test -n "$ac_ct_F77"; then
  4923. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4924. echo "${ECHO_T}$ac_ct_F77" >&6
  4925. else
  4926. echo "$as_me:$LINENO: result: no" >&5
  4927. echo "${ECHO_T}no" >&6
  4928. fi
  4929. test -n "$ac_ct_F77" && break
  4930. done
  4931. F77=$ac_ct_F77
  4932. fi
  4933. # Provide some information about the compiler.
  4934. echo "$as_me:5445:" \
  4935. "checking for Fortran 77 compiler version" >&5
  4936. ac_compiler=`set X $ac_compile; echo $2`
  4937. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4938. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4939. ac_status=$?
  4940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4941. (exit $ac_status); }
  4942. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4943. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4944. ac_status=$?
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); }
  4947. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4948. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4949. ac_status=$?
  4950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4951. (exit $ac_status); }
  4952. rm -f a.out
  4953. # If we don't use `.F' as extension, the preprocessor is not run on the
  4954. # input file. (Note that this only needs to work for GNU compilers.)
  4955. ac_save_ext=$ac_ext
  4956. ac_ext=F
  4957. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4958. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4959. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4960. echo $ECHO_N "(cached) $ECHO_C" >&6
  4961. else
  4962. cat >conftest.$ac_ext <<_ACEOF
  4963. program main
  4964. #ifndef __GNUC__
  4965. choke me
  4966. #endif
  4967. end
  4968. _ACEOF
  4969. rm -f conftest.$ac_objext
  4970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4971. (eval $ac_compile) 2>conftest.er1
  4972. ac_status=$?
  4973. grep -v '^ *+' conftest.er1 >conftest.err
  4974. rm -f conftest.er1
  4975. cat conftest.err >&5
  4976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4977. (exit $ac_status); } &&
  4978. { ac_try='test -z "$ac_f77_werror_flag"
  4979. || test ! -s conftest.err'
  4980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4981. (eval $ac_try) 2>&5
  4982. ac_status=$?
  4983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4984. (exit $ac_status); }; } &&
  4985. { ac_try='test -s conftest.$ac_objext'
  4986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4987. (eval $ac_try) 2>&5
  4988. ac_status=$?
  4989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4990. (exit $ac_status); }; }; then
  4991. ac_compiler_gnu=yes
  4992. else
  4993. echo "$as_me: failed program was:" >&5
  4994. sed 's/^/| /' conftest.$ac_ext >&5
  4995. ac_compiler_gnu=no
  4996. fi
  4997. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4998. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4999. fi
  5000. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5001. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5002. ac_ext=$ac_save_ext
  5003. ac_test_FFLAGS=${FFLAGS+set}
  5004. ac_save_FFLAGS=$FFLAGS
  5005. FFLAGS=
  5006. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5007. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5008. if test "${ac_cv_prog_f77_g+set}" = set; then
  5009. echo $ECHO_N "(cached) $ECHO_C" >&6
  5010. else
  5011. FFLAGS=-g
  5012. cat >conftest.$ac_ext <<_ACEOF
  5013. program main
  5014. end
  5015. _ACEOF
  5016. rm -f conftest.$ac_objext
  5017. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5018. (eval $ac_compile) 2>conftest.er1
  5019. ac_status=$?
  5020. grep -v '^ *+' conftest.er1 >conftest.err
  5021. rm -f conftest.er1
  5022. cat conftest.err >&5
  5023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. (exit $ac_status); } &&
  5025. { ac_try='test -z "$ac_f77_werror_flag"
  5026. || test ! -s conftest.err'
  5027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5028. (eval $ac_try) 2>&5
  5029. ac_status=$?
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); }; } &&
  5032. { ac_try='test -s conftest.$ac_objext'
  5033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5034. (eval $ac_try) 2>&5
  5035. ac_status=$?
  5036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5037. (exit $ac_status); }; }; then
  5038. ac_cv_prog_f77_g=yes
  5039. else
  5040. echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. ac_cv_prog_f77_g=no
  5043. fi
  5044. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5045. fi
  5046. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5047. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5048. if test "$ac_test_FFLAGS" = set; then
  5049. FFLAGS=$ac_save_FFLAGS
  5050. elif test $ac_cv_prog_f77_g = yes; then
  5051. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5052. FFLAGS="-g -O2"
  5053. else
  5054. FFLAGS="-g"
  5055. fi
  5056. else
  5057. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5058. FFLAGS="-O2"
  5059. else
  5060. FFLAGS=
  5061. fi
  5062. fi
  5063. G77=`test $ac_compiler_gnu = yes && echo yes`
  5064. ac_ext=c
  5065. ac_cpp='$CPP $CPPFLAGS'
  5066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5069. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5070. # find the maximum length of command line arguments
  5071. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5072. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5073. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5074. echo $ECHO_N "(cached) $ECHO_C" >&6
  5075. else
  5076. i=0
  5077. teststring="ABCD"
  5078. case $build_os in
  5079. msdosdjgpp*)
  5080. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5081. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5082. # during glob expansion). Even if it were fixed, the result of this
  5083. # check would be larger than it should be.
  5084. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5085. ;;
  5086. gnu*)
  5087. # Under GNU Hurd, this test is not required because there is
  5088. # no limit to the length of command line arguments.
  5089. # Libtool will interpret -1 as no limit whatsoever
  5090. lt_cv_sys_max_cmd_len=-1;
  5091. ;;
  5092. cygwin* | mingw*)
  5093. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5094. # about 5 minutes as the teststring grows exponentially.
  5095. # Worse, since 9x/ME are not pre-emptively multitasking,
  5096. # you end up with a "frozen" computer, even though with patience
  5097. # the test eventually succeeds (with a max line length of 256k).
  5098. # Instead, let's just punt: use the minimum linelength reported by
  5099. # all of the supported platforms: 8192 (on NT/2K/XP).
  5100. lt_cv_sys_max_cmd_len=8192;
  5101. ;;
  5102. amigaos*)
  5103. # On AmigaOS with pdksh, this test takes hours, literally.
  5104. # So we just punt and use a minimum line length of 8192.
  5105. lt_cv_sys_max_cmd_len=8192;
  5106. ;;
  5107. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5108. # This has been around since 386BSD, at least. Likely further.
  5109. if test -x /sbin/sysctl; then
  5110. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5111. elif test -x /usr/sbin/sysctl; then
  5112. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5113. else
  5114. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5115. fi
  5116. # And add a safety zone
  5117. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5118. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5119. ;;
  5120. interix*)
  5121. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5122. lt_cv_sys_max_cmd_len=196608
  5123. ;;
  5124. osf*)
  5125. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5126. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5127. # nice to cause kernel panics so lets avoid the loop below.
  5128. # First set a reasonable default.
  5129. lt_cv_sys_max_cmd_len=16384
  5130. #
  5131. if test -x /sbin/sysconfig; then
  5132. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5133. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5134. esac
  5135. fi
  5136. ;;
  5137. sco3.2v5*)
  5138. lt_cv_sys_max_cmd_len=102400
  5139. ;;
  5140. sysv5* | sco5v6* | sysv4.2uw2*)
  5141. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5142. if test -n "$kargmax"; then
  5143. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5144. else
  5145. lt_cv_sys_max_cmd_len=32768
  5146. fi
  5147. ;;
  5148. *)
  5149. # If test is not a shell built-in, we'll probably end up computing a
  5150. # maximum length that is only half of the actual maximum length, but
  5151. # we can't tell.
  5152. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5153. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5154. = "XX$teststring") >/dev/null 2>&1 &&
  5155. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5156. lt_cv_sys_max_cmd_len=$new_result &&
  5157. test $i != 17 # 1/2 MB should be enough
  5158. do
  5159. i=`expr $i + 1`
  5160. teststring=$teststring$teststring
  5161. done
  5162. teststring=
  5163. # Add a significant safety factor because C++ compilers can tack on massive
  5164. # amounts of additional arguments before passing them to the linker.
  5165. # It appears as though 1/2 is a usable value.
  5166. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5167. ;;
  5168. esac
  5169. fi
  5170. if test -n $lt_cv_sys_max_cmd_len ; then
  5171. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5172. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5173. else
  5174. echo "$as_me:$LINENO: result: none" >&5
  5175. echo "${ECHO_T}none" >&6
  5176. fi
  5177. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5178. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5179. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5180. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5181. echo $ECHO_N "(cached) $ECHO_C" >&6
  5182. else
  5183. # These are sane defaults that work on at least a few old systems.
  5184. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5185. # Character class describing NM global symbol codes.
  5186. symcode='[BCDEGRST]'
  5187. # Regexp to match symbols that can be accessed directly from C.
  5188. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5189. # Transform an extracted symbol line into a proper C declaration
  5190. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5191. # Transform an extracted symbol line into symbol name and symbol address
  5192. 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'"
  5193. # Define system-specific variables.
  5194. case $host_os in
  5195. aix*)
  5196. symcode='[BCDT]'
  5197. ;;
  5198. cygwin* | mingw* | pw32*)
  5199. symcode='[ABCDGISTW]'
  5200. ;;
  5201. hpux*) # Its linker distinguishes data from code symbols
  5202. if test "$host_cpu" = ia64; then
  5203. symcode='[ABCDEGRST]'
  5204. fi
  5205. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5206. 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'"
  5207. ;;
  5208. linux*)
  5209. if test "$host_cpu" = ia64; then
  5210. symcode='[ABCDGIRSTW]'
  5211. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5212. 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'"
  5213. fi
  5214. ;;
  5215. irix* | nonstopux*)
  5216. symcode='[BCDEGRST]'
  5217. ;;
  5218. osf*)
  5219. symcode='[BCDEGQRST]'
  5220. ;;
  5221. solaris*)
  5222. symcode='[BDRT]'
  5223. ;;
  5224. sco3.2v5*)
  5225. symcode='[DT]'
  5226. ;;
  5227. sysv4.2uw2*)
  5228. symcode='[DT]'
  5229. ;;
  5230. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5231. symcode='[ABDT]'
  5232. ;;
  5233. sysv4)
  5234. symcode='[DFNSTU]'
  5235. ;;
  5236. esac
  5237. # Handle CRLF in mingw tool chain
  5238. opt_cr=
  5239. case $build_os in
  5240. mingw*)
  5241. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5242. ;;
  5243. esac
  5244. # If we're using GNU nm, then use its standard symbol codes.
  5245. case `$NM -V 2>&1` in
  5246. *GNU* | *'with BFD'*)
  5247. symcode='[ABCDGIRSTW]' ;;
  5248. esac
  5249. # Try without a prefix undercore, then with it.
  5250. for ac_symprfx in "" "_"; do
  5251. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5252. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5253. # Write the raw and C identifiers.
  5254. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5255. # Check to see that the pipe works correctly.
  5256. pipe_works=no
  5257. rm -f conftest*
  5258. cat > conftest.$ac_ext <<EOF
  5259. #ifdef __cplusplus
  5260. extern "C" {
  5261. #endif
  5262. char nm_test_var;
  5263. void nm_test_func(){}
  5264. #ifdef __cplusplus
  5265. }
  5266. #endif
  5267. int main(){nm_test_var='a';nm_test_func();return(0);}
  5268. EOF
  5269. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5270. (eval $ac_compile) 2>&5
  5271. ac_status=$?
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); }; then
  5274. # Now try to grab the symbols.
  5275. nlist=conftest.nm
  5276. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5277. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5278. ac_status=$?
  5279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5280. (exit $ac_status); } && test -s "$nlist"; then
  5281. # Try sorting and uniquifying the output.
  5282. if sort "$nlist" | uniq > "$nlist"T; then
  5283. mv -f "$nlist"T "$nlist"
  5284. else
  5285. rm -f "$nlist"T
  5286. fi
  5287. # Make sure that we snagged all the symbols we need.
  5288. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5289. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5290. cat <<EOF > conftest.$ac_ext
  5291. #ifdef __cplusplus
  5292. extern "C" {
  5293. #endif
  5294. EOF
  5295. # Now generate the symbol file.
  5296. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5297. cat <<EOF >> conftest.$ac_ext
  5298. #if defined (__STDC__) && __STDC__
  5299. # define lt_ptr_t void *
  5300. #else
  5301. # define lt_ptr_t char *
  5302. # define const
  5303. #endif
  5304. /* The mapping between symbol names and symbols. */
  5305. const struct {
  5306. const char *name;
  5307. lt_ptr_t address;
  5308. }
  5309. lt_preloaded_symbols[] =
  5310. {
  5311. EOF
  5312. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5313. cat <<\EOF >> conftest.$ac_ext
  5314. {0, (lt_ptr_t) 0}
  5315. };
  5316. #ifdef __cplusplus
  5317. }
  5318. #endif
  5319. EOF
  5320. # Now try linking the two files.
  5321. mv conftest.$ac_objext conftstm.$ac_objext
  5322. lt_save_LIBS="$LIBS"
  5323. lt_save_CFLAGS="$CFLAGS"
  5324. LIBS="conftstm.$ac_objext"
  5325. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5326. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5327. (eval $ac_link) 2>&5
  5328. ac_status=$?
  5329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5330. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5331. pipe_works=yes
  5332. fi
  5333. LIBS="$lt_save_LIBS"
  5334. CFLAGS="$lt_save_CFLAGS"
  5335. else
  5336. echo "cannot find nm_test_func in $nlist" >&5
  5337. fi
  5338. else
  5339. echo "cannot find nm_test_var in $nlist" >&5
  5340. fi
  5341. else
  5342. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5343. fi
  5344. else
  5345. echo "$progname: failed program was:" >&5
  5346. cat conftest.$ac_ext >&5
  5347. fi
  5348. rm -f conftest* conftst*
  5349. # Do not use the global_symbol_pipe unless it works.
  5350. if test "$pipe_works" = yes; then
  5351. break
  5352. else
  5353. lt_cv_sys_global_symbol_pipe=
  5354. fi
  5355. done
  5356. fi
  5357. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5358. lt_cv_sys_global_symbol_to_cdecl=
  5359. fi
  5360. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5361. echo "$as_me:$LINENO: result: failed" >&5
  5362. echo "${ECHO_T}failed" >&6
  5363. else
  5364. echo "$as_me:$LINENO: result: ok" >&5
  5365. echo "${ECHO_T}ok" >&6
  5366. fi
  5367. echo "$as_me:$LINENO: checking for objdir" >&5
  5368. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5369. if test "${lt_cv_objdir+set}" = set; then
  5370. echo $ECHO_N "(cached) $ECHO_C" >&6
  5371. else
  5372. rm -f .libs 2>/dev/null
  5373. mkdir .libs 2>/dev/null
  5374. if test -d .libs; then
  5375. lt_cv_objdir=.libs
  5376. else
  5377. # MS-DOS does not allow filenames that begin with a dot.
  5378. lt_cv_objdir=_libs
  5379. fi
  5380. rmdir .libs 2>/dev/null
  5381. fi
  5382. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5383. echo "${ECHO_T}$lt_cv_objdir" >&6
  5384. objdir=$lt_cv_objdir
  5385. case $host_os in
  5386. aix3*)
  5387. # AIX sometimes has problems with the GCC collect2 program. For some
  5388. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5389. # vanish in a puff of smoke.
  5390. if test "X${COLLECT_NAMES+set}" != Xset; then
  5391. COLLECT_NAMES=
  5392. export COLLECT_NAMES
  5393. fi
  5394. ;;
  5395. esac
  5396. # Sed substitution that helps us do robust quoting. It backslashifies
  5397. # metacharacters that are still active within double-quoted strings.
  5398. Xsed='sed -e 1s/^X//'
  5399. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5400. # Same as above, but do not quote variable references.
  5401. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5402. # Sed substitution to delay expansion of an escaped shell variable in a
  5403. # double_quote_subst'ed string.
  5404. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5405. # Sed substitution to avoid accidental globbing in evaled expressions
  5406. no_glob_subst='s/\*/\\\*/g'
  5407. # Constants:
  5408. rm="rm -f"
  5409. # Global variables:
  5410. default_ofile=libtool
  5411. can_build_shared=yes
  5412. # All known linkers require a `.a' archive for static linking (except MSVC,
  5413. # which needs '.lib').
  5414. libext=a
  5415. ltmain="$ac_aux_dir/ltmain.sh"
  5416. ofile="$default_ofile"
  5417. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5418. if test -n "$ac_tool_prefix"; then
  5419. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5420. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5421. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5422. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5423. if test "${ac_cv_prog_AR+set}" = set; then
  5424. echo $ECHO_N "(cached) $ECHO_C" >&6
  5425. else
  5426. if test -n "$AR"; then
  5427. ac_cv_prog_AR="$AR" # Let the user override the test.
  5428. else
  5429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5430. for as_dir in $PATH
  5431. do
  5432. IFS=$as_save_IFS
  5433. test -z "$as_dir" && as_dir=.
  5434. for ac_exec_ext in '' $ac_executable_extensions; do
  5435. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5436. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5437. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5438. break 2
  5439. fi
  5440. done
  5441. done
  5442. fi
  5443. fi
  5444. AR=$ac_cv_prog_AR
  5445. if test -n "$AR"; then
  5446. echo "$as_me:$LINENO: result: $AR" >&5
  5447. echo "${ECHO_T}$AR" >&6
  5448. else
  5449. echo "$as_me:$LINENO: result: no" >&5
  5450. echo "${ECHO_T}no" >&6
  5451. fi
  5452. fi
  5453. if test -z "$ac_cv_prog_AR"; then
  5454. ac_ct_AR=$AR
  5455. # Extract the first word of "ar", so it can be a program name with args.
  5456. set dummy ar; ac_word=$2
  5457. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5458. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5459. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5460. echo $ECHO_N "(cached) $ECHO_C" >&6
  5461. else
  5462. if test -n "$ac_ct_AR"; then
  5463. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5464. else
  5465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5466. for as_dir in $PATH
  5467. do
  5468. IFS=$as_save_IFS
  5469. test -z "$as_dir" && as_dir=.
  5470. for ac_exec_ext in '' $ac_executable_extensions; do
  5471. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5472. ac_cv_prog_ac_ct_AR="ar"
  5473. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5474. break 2
  5475. fi
  5476. done
  5477. done
  5478. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5479. fi
  5480. fi
  5481. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5482. if test -n "$ac_ct_AR"; then
  5483. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5484. echo "${ECHO_T}$ac_ct_AR" >&6
  5485. else
  5486. echo "$as_me:$LINENO: result: no" >&5
  5487. echo "${ECHO_T}no" >&6
  5488. fi
  5489. AR=$ac_ct_AR
  5490. else
  5491. AR="$ac_cv_prog_AR"
  5492. fi
  5493. if test -n "$ac_tool_prefix"; then
  5494. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5495. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5496. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5497. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5498. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5499. echo $ECHO_N "(cached) $ECHO_C" >&6
  5500. else
  5501. if test -n "$RANLIB"; then
  5502. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5511. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5512. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. fi
  5518. fi
  5519. RANLIB=$ac_cv_prog_RANLIB
  5520. if test -n "$RANLIB"; then
  5521. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5522. echo "${ECHO_T}$RANLIB" >&6
  5523. else
  5524. echo "$as_me:$LINENO: result: no" >&5
  5525. echo "${ECHO_T}no" >&6
  5526. fi
  5527. fi
  5528. if test -z "$ac_cv_prog_RANLIB"; then
  5529. ac_ct_RANLIB=$RANLIB
  5530. # Extract the first word of "ranlib", so it can be a program name with args.
  5531. set dummy ranlib; ac_word=$2
  5532. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5533. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5534. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5535. echo $ECHO_N "(cached) $ECHO_C" >&6
  5536. else
  5537. if test -n "$ac_ct_RANLIB"; then
  5538. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5539. else
  5540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5541. for as_dir in $PATH
  5542. do
  5543. IFS=$as_save_IFS
  5544. test -z "$as_dir" && as_dir=.
  5545. for ac_exec_ext in '' $ac_executable_extensions; do
  5546. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5547. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5548. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5549. break 2
  5550. fi
  5551. done
  5552. done
  5553. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5554. fi
  5555. fi
  5556. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5557. if test -n "$ac_ct_RANLIB"; then
  5558. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5559. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5560. else
  5561. echo "$as_me:$LINENO: result: no" >&5
  5562. echo "${ECHO_T}no" >&6
  5563. fi
  5564. RANLIB=$ac_ct_RANLIB
  5565. else
  5566. RANLIB="$ac_cv_prog_RANLIB"
  5567. fi
  5568. if test -n "$ac_tool_prefix"; then
  5569. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5570. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5571. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5572. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5573. if test "${ac_cv_prog_STRIP+set}" = set; then
  5574. echo $ECHO_N "(cached) $ECHO_C" >&6
  5575. else
  5576. if test -n "$STRIP"; then
  5577. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5586. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5587. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. fi
  5593. fi
  5594. STRIP=$ac_cv_prog_STRIP
  5595. if test -n "$STRIP"; then
  5596. echo "$as_me:$LINENO: result: $STRIP" >&5
  5597. echo "${ECHO_T}$STRIP" >&6
  5598. else
  5599. echo "$as_me:$LINENO: result: no" >&5
  5600. echo "${ECHO_T}no" >&6
  5601. fi
  5602. fi
  5603. if test -z "$ac_cv_prog_STRIP"; then
  5604. ac_ct_STRIP=$STRIP
  5605. # Extract the first word of "strip", so it can be a program name with args.
  5606. set dummy strip; ac_word=$2
  5607. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5608. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5609. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5610. echo $ECHO_N "(cached) $ECHO_C" >&6
  5611. else
  5612. if test -n "$ac_ct_STRIP"; then
  5613. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5614. else
  5615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5616. for as_dir in $PATH
  5617. do
  5618. IFS=$as_save_IFS
  5619. test -z "$as_dir" && as_dir=.
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5622. ac_cv_prog_ac_ct_STRIP="strip"
  5623. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5629. fi
  5630. fi
  5631. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5632. if test -n "$ac_ct_STRIP"; then
  5633. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5634. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5635. else
  5636. echo "$as_me:$LINENO: result: no" >&5
  5637. echo "${ECHO_T}no" >&6
  5638. fi
  5639. STRIP=$ac_ct_STRIP
  5640. else
  5641. STRIP="$ac_cv_prog_STRIP"
  5642. fi
  5643. old_CC="$CC"
  5644. old_CFLAGS="$CFLAGS"
  5645. # Set sane defaults for various variables
  5646. test -z "$AR" && AR=ar
  5647. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5648. test -z "$AS" && AS=as
  5649. test -z "$CC" && CC=cc
  5650. test -z "$LTCC" && LTCC=$CC
  5651. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5652. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5653. test -z "$LD" && LD=ld
  5654. test -z "$LN_S" && LN_S="ln -s"
  5655. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5656. test -z "$NM" && NM=nm
  5657. test -z "$SED" && SED=sed
  5658. test -z "$OBJDUMP" && OBJDUMP=objdump
  5659. test -z "$RANLIB" && RANLIB=:
  5660. test -z "$STRIP" && STRIP=:
  5661. test -z "$ac_objext" && ac_objext=o
  5662. # Determine commands to create old-style static archives.
  5663. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5664. old_postinstall_cmds='chmod 644 $oldlib'
  5665. old_postuninstall_cmds=
  5666. if test -n "$RANLIB"; then
  5667. case $host_os in
  5668. openbsd*)
  5669. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5670. ;;
  5671. *)
  5672. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5673. ;;
  5674. esac
  5675. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5676. fi
  5677. for cc_temp in $compiler""; do
  5678. case $cc_temp in
  5679. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5680. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5681. \-*) ;;
  5682. *) break;;
  5683. esac
  5684. done
  5685. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5686. # Only perform the check for file, if the check method requires it
  5687. case $deplibs_check_method in
  5688. file_magic*)
  5689. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5690. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5691. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5692. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5693. echo $ECHO_N "(cached) $ECHO_C" >&6
  5694. else
  5695. case $MAGIC_CMD in
  5696. [\\/*] | ?:[\\/]*)
  5697. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5698. ;;
  5699. *)
  5700. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5701. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5702. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5703. for ac_dir in $ac_dummy; do
  5704. IFS="$lt_save_ifs"
  5705. test -z "$ac_dir" && ac_dir=.
  5706. if test -f $ac_dir/${ac_tool_prefix}file; then
  5707. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5708. if test -n "$file_magic_test_file"; then
  5709. case $deplibs_check_method in
  5710. "file_magic "*)
  5711. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5712. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5713. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5714. $EGREP "$file_magic_regex" > /dev/null; then
  5715. :
  5716. else
  5717. cat <<EOF 1>&2
  5718. *** Warning: the command libtool uses to detect shared libraries,
  5719. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5720. *** The result is that libtool may fail to recognize shared libraries
  5721. *** as such. This will affect the creation of libtool libraries that
  5722. *** depend on shared libraries, but programs linked with such libtool
  5723. *** libraries will work regardless of this problem. Nevertheless, you
  5724. *** may want to report the problem to your system manager and/or to
  5725. *** [email protected]
  5726. EOF
  5727. fi ;;
  5728. esac
  5729. fi
  5730. break
  5731. fi
  5732. done
  5733. IFS="$lt_save_ifs"
  5734. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5735. ;;
  5736. esac
  5737. fi
  5738. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5739. if test -n "$MAGIC_CMD"; then
  5740. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5741. echo "${ECHO_T}$MAGIC_CMD" >&6
  5742. else
  5743. echo "$as_me:$LINENO: result: no" >&5
  5744. echo "${ECHO_T}no" >&6
  5745. fi
  5746. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5747. if test -n "$ac_tool_prefix"; then
  5748. echo "$as_me:$LINENO: checking for file" >&5
  5749. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5750. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5751. echo $ECHO_N "(cached) $ECHO_C" >&6
  5752. else
  5753. case $MAGIC_CMD in
  5754. [\\/*] | ?:[\\/]*)
  5755. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5756. ;;
  5757. *)
  5758. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5759. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5760. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5761. for ac_dir in $ac_dummy; do
  5762. IFS="$lt_save_ifs"
  5763. test -z "$ac_dir" && ac_dir=.
  5764. if test -f $ac_dir/file; then
  5765. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5766. if test -n "$file_magic_test_file"; then
  5767. case $deplibs_check_method in
  5768. "file_magic "*)
  5769. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5770. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5771. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5772. $EGREP "$file_magic_regex" > /dev/null; then
  5773. :
  5774. else
  5775. cat <<EOF 1>&2
  5776. *** Warning: the command libtool uses to detect shared libraries,
  5777. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5778. *** The result is that libtool may fail to recognize shared libraries
  5779. *** as such. This will affect the creation of libtool libraries that
  5780. *** depend on shared libraries, but programs linked with such libtool
  5781. *** libraries will work regardless of this problem. Nevertheless, you
  5782. *** may want to report the problem to your system manager and/or to
  5783. *** [email protected]
  5784. EOF
  5785. fi ;;
  5786. esac
  5787. fi
  5788. break
  5789. fi
  5790. done
  5791. IFS="$lt_save_ifs"
  5792. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5793. ;;
  5794. esac
  5795. fi
  5796. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5797. if test -n "$MAGIC_CMD"; then
  5798. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5799. echo "${ECHO_T}$MAGIC_CMD" >&6
  5800. else
  5801. echo "$as_me:$LINENO: result: no" >&5
  5802. echo "${ECHO_T}no" >&6
  5803. fi
  5804. else
  5805. MAGIC_CMD=:
  5806. fi
  5807. fi
  5808. fi
  5809. ;;
  5810. esac
  5811. enable_dlopen=no
  5812. enable_win32_dll=no
  5813. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5814. if test "${enable_libtool_lock+set}" = set; then
  5815. enableval="$enable_libtool_lock"
  5816. fi;
  5817. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5818. # Check whether --with-pic or --without-pic was given.
  5819. if test "${with_pic+set}" = set; then
  5820. withval="$with_pic"
  5821. pic_mode="$withval"
  5822. else
  5823. pic_mode=default
  5824. fi;
  5825. test -z "$pic_mode" && pic_mode=default
  5826. # Use C for the default configuration in the libtool script
  5827. tagname=
  5828. lt_save_CC="$CC"
  5829. ac_ext=c
  5830. ac_cpp='$CPP $CPPFLAGS'
  5831. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5832. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5833. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5834. # Source file extension for C test sources.
  5835. ac_ext=c
  5836. # Object file extension for compiled C test sources.
  5837. objext=o
  5838. objext=$objext
  5839. # Code to be used in simple compile tests
  5840. lt_simple_compile_test_code="int some_variable = 0;\n"
  5841. # Code to be used in simple link tests
  5842. lt_simple_link_test_code='int main(){return(0);}\n'
  5843. # If no C compiler was specified, use CC.
  5844. LTCC=${LTCC-"$CC"}
  5845. # If no C compiler flags were specified, use CFLAGS.
  5846. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5847. # Allow CC to be a program name with arguments.
  5848. compiler=$CC
  5849. # save warnings/boilerplate of simple test code
  5850. ac_outfile=conftest.$ac_objext
  5851. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5852. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5853. _lt_compiler_boilerplate=`cat conftest.err`
  5854. $rm conftest*
  5855. ac_outfile=conftest.$ac_objext
  5856. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5857. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5858. _lt_linker_boilerplate=`cat conftest.err`
  5859. $rm conftest*
  5860. lt_prog_compiler_no_builtin_flag=
  5861. if test "$GCC" = yes; then
  5862. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5863. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5864. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5865. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5866. echo $ECHO_N "(cached) $ECHO_C" >&6
  5867. else
  5868. lt_cv_prog_compiler_rtti_exceptions=no
  5869. ac_outfile=conftest.$ac_objext
  5870. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5871. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5872. # Insert the option either (1) after the last *FLAGS variable, or
  5873. # (2) before a word containing "conftest.", or (3) at the end.
  5874. # Note that $ac_compile itself does not contain backslashes and begins
  5875. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5876. # The option is referenced via a variable to avoid confusing sed.
  5877. lt_compile=`echo "$ac_compile" | $SED \
  5878. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5879. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5880. -e 's:$: $lt_compiler_flag:'`
  5881. (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
  5882. (eval "$lt_compile" 2>conftest.err)
  5883. ac_status=$?
  5884. cat conftest.err >&5
  5885. echo "$as_me:6512: \$? = $ac_status" >&5
  5886. if (exit $ac_status) && test -s "$ac_outfile"; then
  5887. # The compiler can only warn and ignore the option if not recognized
  5888. # So say no if there are warnings other than the usual output.
  5889. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5890. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5891. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5892. lt_cv_prog_compiler_rtti_exceptions=yes
  5893. fi
  5894. fi
  5895. $rm conftest*
  5896. fi
  5897. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5898. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5899. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5900. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5901. else
  5902. :
  5903. fi
  5904. fi
  5905. lt_prog_compiler_wl=
  5906. lt_prog_compiler_pic=
  5907. lt_prog_compiler_static=
  5908. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5909. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5910. if test "$GCC" = yes; then
  5911. lt_prog_compiler_wl='-Wl,'
  5912. lt_prog_compiler_static='-static'
  5913. case $host_os in
  5914. aix*)
  5915. # All AIX code is PIC.
  5916. if test "$host_cpu" = ia64; then
  5917. # AIX 5 now supports IA64 processor
  5918. lt_prog_compiler_static='-Bstatic'
  5919. fi
  5920. ;;
  5921. amigaos*)
  5922. # FIXME: we need at least 68020 code to build shared libraries, but
  5923. # adding the `-m68020' flag to GCC prevents building anything better,
  5924. # like `-m68040'.
  5925. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5926. ;;
  5927. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5928. # PIC is the default for these OSes.
  5929. ;;
  5930. mingw* | pw32* | os2*)
  5931. # This hack is so that the source file can tell whether it is being
  5932. # built for inclusion in a dll (and should export symbols for example).
  5933. lt_prog_compiler_pic='-DDLL_EXPORT'
  5934. ;;
  5935. darwin* | rhapsody*)
  5936. # PIC is the default on this platform
  5937. # Common symbols not allowed in MH_DYLIB files
  5938. lt_prog_compiler_pic='-fno-common'
  5939. ;;
  5940. interix3*)
  5941. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5942. # Instead, we relocate shared libraries at runtime.
  5943. ;;
  5944. msdosdjgpp*)
  5945. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5946. # on systems that don't support them.
  5947. lt_prog_compiler_can_build_shared=no
  5948. enable_shared=no
  5949. ;;
  5950. sysv4*MP*)
  5951. if test -d /usr/nec; then
  5952. lt_prog_compiler_pic=-Kconform_pic
  5953. fi
  5954. ;;
  5955. hpux*)
  5956. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5957. # not for PA HP-UX.
  5958. case $host_cpu in
  5959. hppa*64*|ia64*)
  5960. # +Z the default
  5961. ;;
  5962. *)
  5963. lt_prog_compiler_pic='-fPIC'
  5964. ;;
  5965. esac
  5966. ;;
  5967. *)
  5968. lt_prog_compiler_pic='-fPIC'
  5969. ;;
  5970. esac
  5971. else
  5972. # PORTME Check for flag to pass linker flags through the system compiler.
  5973. case $host_os in
  5974. aix*)
  5975. lt_prog_compiler_wl='-Wl,'
  5976. if test "$host_cpu" = ia64; then
  5977. # AIX 5 now supports IA64 processor
  5978. lt_prog_compiler_static='-Bstatic'
  5979. else
  5980. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5981. fi
  5982. ;;
  5983. darwin*)
  5984. # PIC is the default on this platform
  5985. # Common symbols not allowed in MH_DYLIB files
  5986. case $cc_basename in
  5987. xlc*)
  5988. lt_prog_compiler_pic='-qnocommon'
  5989. lt_prog_compiler_wl='-Wl,'
  5990. ;;
  5991. esac
  5992. ;;
  5993. mingw* | pw32* | os2*)
  5994. # This hack is so that the source file can tell whether it is being
  5995. # built for inclusion in a dll (and should export symbols for example).
  5996. lt_prog_compiler_pic='-DDLL_EXPORT'
  5997. ;;
  5998. hpux9* | hpux10* | hpux11*)
  5999. lt_prog_compiler_wl='-Wl,'
  6000. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6001. # not for PA HP-UX.
  6002. case $host_cpu in
  6003. hppa*64*|ia64*)
  6004. # +Z the default
  6005. ;;
  6006. *)
  6007. lt_prog_compiler_pic='+Z'
  6008. ;;
  6009. esac
  6010. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6011. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6012. ;;
  6013. irix5* | irix6* | nonstopux*)
  6014. lt_prog_compiler_wl='-Wl,'
  6015. # PIC (with -KPIC) is the default.
  6016. lt_prog_compiler_static='-non_shared'
  6017. ;;
  6018. newsos6)
  6019. lt_prog_compiler_pic='-KPIC'
  6020. lt_prog_compiler_static='-Bstatic'
  6021. ;;
  6022. linux*)
  6023. case $cc_basename in
  6024. icc* | ecc*)
  6025. lt_prog_compiler_wl='-Wl,'
  6026. lt_prog_compiler_pic='-KPIC'
  6027. lt_prog_compiler_static='-static'
  6028. ;;
  6029. pgcc* | pgf77* | pgf90* | pgf95*)
  6030. # Portland Group compilers (*not* the Pentium gcc compiler,
  6031. # which looks to be a dead project)
  6032. lt_prog_compiler_wl='-Wl,'
  6033. lt_prog_compiler_pic='-fpic'
  6034. lt_prog_compiler_static='-Bstatic'
  6035. ;;
  6036. ccc*)
  6037. lt_prog_compiler_wl='-Wl,'
  6038. # All Alpha code is PIC.
  6039. lt_prog_compiler_static='-non_shared'
  6040. ;;
  6041. esac
  6042. ;;
  6043. osf3* | osf4* | osf5*)
  6044. lt_prog_compiler_wl='-Wl,'
  6045. # All OSF/1 code is PIC.
  6046. lt_prog_compiler_static='-non_shared'
  6047. ;;
  6048. solaris*)
  6049. lt_prog_compiler_pic='-KPIC'
  6050. lt_prog_compiler_static='-Bstatic'
  6051. case $cc_basename in
  6052. f77* | f90* | f95*)
  6053. lt_prog_compiler_wl='-Qoption ld ';;
  6054. *)
  6055. lt_prog_compiler_wl='-Wl,';;
  6056. esac
  6057. ;;
  6058. sunos4*)
  6059. lt_prog_compiler_wl='-Qoption ld '
  6060. lt_prog_compiler_pic='-PIC'
  6061. lt_prog_compiler_static='-Bstatic'
  6062. ;;
  6063. sysv4 | sysv4.2uw2* | sysv4.3*)
  6064. lt_prog_compiler_wl='-Wl,'
  6065. lt_prog_compiler_pic='-KPIC'
  6066. lt_prog_compiler_static='-Bstatic'
  6067. ;;
  6068. sysv4*MP*)
  6069. if test -d /usr/nec ;then
  6070. lt_prog_compiler_pic='-Kconform_pic'
  6071. lt_prog_compiler_static='-Bstatic'
  6072. fi
  6073. ;;
  6074. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6075. lt_prog_compiler_wl='-Wl,'
  6076. lt_prog_compiler_pic='-KPIC'
  6077. lt_prog_compiler_static='-Bstatic'
  6078. ;;
  6079. unicos*)
  6080. lt_prog_compiler_wl='-Wl,'
  6081. lt_prog_compiler_can_build_shared=no
  6082. ;;
  6083. uts4*)
  6084. lt_prog_compiler_pic='-pic'
  6085. lt_prog_compiler_static='-Bstatic'
  6086. ;;
  6087. *)
  6088. lt_prog_compiler_can_build_shared=no
  6089. ;;
  6090. esac
  6091. fi
  6092. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6093. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6094. #
  6095. # Check to make sure the PIC flag actually works.
  6096. #
  6097. if test -n "$lt_prog_compiler_pic"; then
  6098. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6099. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6100. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6101. echo $ECHO_N "(cached) $ECHO_C" >&6
  6102. else
  6103. lt_prog_compiler_pic_works=no
  6104. ac_outfile=conftest.$ac_objext
  6105. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6106. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6107. # Insert the option either (1) after the last *FLAGS variable, or
  6108. # (2) before a word containing "conftest.", or (3) at the end.
  6109. # Note that $ac_compile itself does not contain backslashes and begins
  6110. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6111. # The option is referenced via a variable to avoid confusing sed.
  6112. lt_compile=`echo "$ac_compile" | $SED \
  6113. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6114. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6115. -e 's:$: $lt_compiler_flag:'`
  6116. (eval echo "\"\$as_me:6776: $lt_compile\"" >&5)
  6117. (eval "$lt_compile" 2>conftest.err)
  6118. ac_status=$?
  6119. cat conftest.err >&5
  6120. echo "$as_me:6780: \$? = $ac_status" >&5
  6121. if (exit $ac_status) && test -s "$ac_outfile"; then
  6122. # The compiler can only warn and ignore the option if not recognized
  6123. # So say no if there are warnings other than the usual output.
  6124. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6125. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6126. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6127. lt_prog_compiler_pic_works=yes
  6128. fi
  6129. fi
  6130. $rm conftest*
  6131. fi
  6132. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6133. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6134. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6135. case $lt_prog_compiler_pic in
  6136. "" | " "*) ;;
  6137. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6138. esac
  6139. else
  6140. lt_prog_compiler_pic=
  6141. lt_prog_compiler_can_build_shared=no
  6142. fi
  6143. fi
  6144. case $host_os in
  6145. # For platforms which do not support PIC, -DPIC is meaningless:
  6146. *djgpp*)
  6147. lt_prog_compiler_pic=
  6148. ;;
  6149. *)
  6150. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6151. ;;
  6152. esac
  6153. #
  6154. # Check to make sure the static flag actually works.
  6155. #
  6156. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6157. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6158. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6159. if test "${lt_prog_compiler_static_works+set}" = set; then
  6160. echo $ECHO_N "(cached) $ECHO_C" >&6
  6161. else
  6162. lt_prog_compiler_static_works=no
  6163. save_LDFLAGS="$LDFLAGS"
  6164. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6165. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6166. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6167. # The linker can only warn and ignore the option if not recognized
  6168. # So say no if there are warnings
  6169. if test -s conftest.err; then
  6170. # Append any errors to the config.log.
  6171. cat conftest.err 1>&5
  6172. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6173. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6174. if diff conftest.exp conftest.er2 >/dev/null; then
  6175. lt_prog_compiler_static_works=yes
  6176. fi
  6177. else
  6178. lt_prog_compiler_static_works=yes
  6179. fi
  6180. fi
  6181. $rm conftest*
  6182. LDFLAGS="$save_LDFLAGS"
  6183. fi
  6184. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6185. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6186. if test x"$lt_prog_compiler_static_works" = xyes; then
  6187. :
  6188. else
  6189. lt_prog_compiler_static=
  6190. fi
  6191. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6192. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6193. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6194. echo $ECHO_N "(cached) $ECHO_C" >&6
  6195. else
  6196. lt_cv_prog_compiler_c_o=no
  6197. $rm -r conftest 2>/dev/null
  6198. mkdir conftest
  6199. cd conftest
  6200. mkdir out
  6201. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6202. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6203. # Insert the option either (1) after the last *FLAGS variable, or
  6204. # (2) before a word containing "conftest.", or (3) at the end.
  6205. # Note that $ac_compile itself does not contain backslashes and begins
  6206. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6207. lt_compile=`echo "$ac_compile" | $SED \
  6208. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6209. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6210. -e 's:$: $lt_compiler_flag:'`
  6211. (eval echo "\"\$as_me:6880: $lt_compile\"" >&5)
  6212. (eval "$lt_compile" 2>out/conftest.err)
  6213. ac_status=$?
  6214. cat out/conftest.err >&5
  6215. echo "$as_me:6884: \$? = $ac_status" >&5
  6216. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6217. then
  6218. # The compiler can only warn and ignore the option if not recognized
  6219. # So say no if there are warnings
  6220. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6221. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6222. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6223. lt_cv_prog_compiler_c_o=yes
  6224. fi
  6225. fi
  6226. chmod u+w . 2>&5
  6227. $rm conftest*
  6228. # SGI C++ compiler will create directory out/ii_files/ for
  6229. # template instantiation
  6230. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6231. $rm out/* && rmdir out
  6232. cd ..
  6233. rmdir conftest
  6234. $rm conftest*
  6235. fi
  6236. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6237. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6238. hard_links="nottested"
  6239. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6240. # do not overwrite the value of need_locks provided by the user
  6241. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6242. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6243. hard_links=yes
  6244. $rm conftest*
  6245. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6246. touch conftest.a
  6247. ln conftest.a conftest.b 2>&5 || hard_links=no
  6248. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6249. echo "$as_me:$LINENO: result: $hard_links" >&5
  6250. echo "${ECHO_T}$hard_links" >&6
  6251. if test "$hard_links" = no; then
  6252. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6253. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6254. need_locks=warn
  6255. fi
  6256. else
  6257. need_locks=no
  6258. fi
  6259. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6260. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6261. runpath_var=
  6262. allow_undefined_flag=
  6263. enable_shared_with_static_runtimes=no
  6264. archive_cmds=
  6265. archive_expsym_cmds=
  6266. old_archive_From_new_cmds=
  6267. old_archive_from_expsyms_cmds=
  6268. export_dynamic_flag_spec=
  6269. whole_archive_flag_spec=
  6270. thread_safe_flag_spec=
  6271. hardcode_libdir_flag_spec=
  6272. hardcode_libdir_flag_spec_ld=
  6273. hardcode_libdir_separator=
  6274. hardcode_direct=no
  6275. hardcode_minus_L=no
  6276. hardcode_shlibpath_var=unsupported
  6277. link_all_deplibs=unknown
  6278. hardcode_automatic=no
  6279. module_cmds=
  6280. module_expsym_cmds=
  6281. always_export_symbols=no
  6282. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6283. # include_expsyms should be a list of space-separated symbols to be *always*
  6284. # included in the symbol list
  6285. include_expsyms=
  6286. # exclude_expsyms can be an extended regexp of symbols to exclude
  6287. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6288. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6289. # as well as any symbol that contains `d'.
  6290. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6291. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6292. # platforms (ab)use it in PIC code, but their linkers get confused if
  6293. # the symbol is explicitly referenced. Since portable code cannot
  6294. # rely on this symbol name, it's probably fine to never include it in
  6295. # preloaded symbol tables.
  6296. extract_expsyms_cmds=
  6297. # Just being paranoid about ensuring that cc_basename is set.
  6298. for cc_temp in $compiler""; do
  6299. case $cc_temp in
  6300. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6301. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6302. \-*) ;;
  6303. *) break;;
  6304. esac
  6305. done
  6306. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6307. case $host_os in
  6308. cygwin* | mingw* | pw32*)
  6309. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6310. # When not using gcc, we currently assume that we are using
  6311. # Microsoft Visual C++.
  6312. if test "$GCC" != yes; then
  6313. with_gnu_ld=no
  6314. fi
  6315. ;;
  6316. interix*)
  6317. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6318. with_gnu_ld=yes
  6319. ;;
  6320. openbsd*)
  6321. with_gnu_ld=no
  6322. ;;
  6323. esac
  6324. ld_shlibs=yes
  6325. if test "$with_gnu_ld" = yes; then
  6326. # If archive_cmds runs LD, not CC, wlarc should be empty
  6327. wlarc='${wl}'
  6328. # Set some defaults for GNU ld with shared library support. These
  6329. # are reset later if shared libraries are not supported. Putting them
  6330. # here allows them to be overridden if necessary.
  6331. runpath_var=LD_RUN_PATH
  6332. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6333. export_dynamic_flag_spec='${wl}--export-dynamic'
  6334. # ancient GNU ld didn't support --whole-archive et. al.
  6335. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6336. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6337. else
  6338. whole_archive_flag_spec=
  6339. fi
  6340. supports_anon_versioning=no
  6341. case `$LD -v 2>/dev/null` in
  6342. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6343. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6344. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6345. *\ 2.11.*) ;; # other 2.11 versions
  6346. *) supports_anon_versioning=yes ;;
  6347. esac
  6348. # See if GNU ld supports shared libraries.
  6349. case $host_os in
  6350. aix3* | aix4* | aix5*)
  6351. # On AIX/PPC, the GNU linker is very broken
  6352. if test "$host_cpu" != ia64; then
  6353. ld_shlibs=no
  6354. cat <<EOF 1>&2
  6355. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6356. *** to be unable to reliably create shared libraries on AIX.
  6357. *** Therefore, libtool is disabling shared libraries support. If you
  6358. *** really care for shared libraries, you may want to modify your PATH
  6359. *** so that a non-GNU linker is found, and then restart.
  6360. EOF
  6361. fi
  6362. ;;
  6363. amigaos*)
  6364. 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)'
  6365. hardcode_libdir_flag_spec='-L$libdir'
  6366. hardcode_minus_L=yes
  6367. # Samuel A. Falvo II <[email protected]> reports
  6368. # that the semantics of dynamic libraries on AmigaOS, at least up
  6369. # to version 4, is to share data among multiple programs linked
  6370. # with the same dynamic library. Since this doesn't match the
  6371. # behavior of shared libraries on other platforms, we can't use
  6372. # them.
  6373. ld_shlibs=no
  6374. ;;
  6375. beos*)
  6376. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6377. allow_undefined_flag=unsupported
  6378. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6379. # support --undefined. This deserves some investigation. FIXME
  6380. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6381. else
  6382. ld_shlibs=no
  6383. fi
  6384. ;;
  6385. cygwin* | mingw* | pw32*)
  6386. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6387. # as there is no search path for DLLs.
  6388. hardcode_libdir_flag_spec='-L$libdir'
  6389. allow_undefined_flag=unsupported
  6390. always_export_symbols=no
  6391. enable_shared_with_static_runtimes=yes
  6392. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6393. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6394. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6395. # If the export-symbols file already is a .def file (1st line
  6396. # is EXPORTS), use it as is; otherwise, prepend...
  6397. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6398. cp $export_symbols $output_objdir/$soname.def;
  6399. else
  6400. echo EXPORTS > $output_objdir/$soname.def;
  6401. cat $export_symbols >> $output_objdir/$soname.def;
  6402. fi~
  6403. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6404. else
  6405. ld_shlibs=no
  6406. fi
  6407. ;;
  6408. interix3*)
  6409. hardcode_direct=no
  6410. hardcode_shlibpath_var=no
  6411. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6412. export_dynamic_flag_spec='${wl}-E'
  6413. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6414. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6415. # default) and relocated if they conflict, which is a slow very memory
  6416. # consuming and fragmenting process. To avoid this, we pick a random,
  6417. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6418. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6419. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6420. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6421. ;;
  6422. linux*)
  6423. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6424. tmp_addflag=
  6425. case $cc_basename,$host_cpu in
  6426. pgcc*) # Portland Group C compiler
  6427. 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'
  6428. tmp_addflag=' $pic_flag'
  6429. ;;
  6430. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6431. 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'
  6432. tmp_addflag=' $pic_flag -Mnomain' ;;
  6433. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6434. tmp_addflag=' -i_dynamic' ;;
  6435. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6436. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6437. ifc* | ifort*) # Intel Fortran compiler
  6438. tmp_addflag=' -nofor_main' ;;
  6439. esac
  6440. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6441. if test $supports_anon_versioning = yes; then
  6442. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6443. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6444. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6445. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6446. fi
  6447. else
  6448. ld_shlibs=no
  6449. fi
  6450. ;;
  6451. netbsd*)
  6452. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6453. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6454. wlarc=
  6455. else
  6456. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6457. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6458. fi
  6459. ;;
  6460. solaris*)
  6461. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6462. ld_shlibs=no
  6463. cat <<EOF 1>&2
  6464. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6465. *** create shared libraries on Solaris systems. Therefore, libtool
  6466. *** is disabling shared libraries support. We urge you to upgrade GNU
  6467. *** binutils to release 2.9.1 or newer. Another option is to modify
  6468. *** your PATH or compiler configuration so that the native linker is
  6469. *** used, and then restart.
  6470. EOF
  6471. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6472. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6473. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6474. else
  6475. ld_shlibs=no
  6476. fi
  6477. ;;
  6478. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6479. case `$LD -v 2>&1` in
  6480. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6481. ld_shlibs=no
  6482. cat <<_LT_EOF 1>&2
  6483. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6484. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6485. *** is disabling shared libraries support. We urge you to upgrade GNU
  6486. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6487. *** your PATH or compiler configuration so that the native linker is
  6488. *** used, and then restart.
  6489. _LT_EOF
  6490. ;;
  6491. *)
  6492. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6493. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6494. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6495. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6496. else
  6497. ld_shlibs=no
  6498. fi
  6499. ;;
  6500. esac
  6501. ;;
  6502. sunos4*)
  6503. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6504. wlarc=
  6505. hardcode_direct=yes
  6506. hardcode_shlibpath_var=no
  6507. ;;
  6508. *)
  6509. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6510. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6511. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6512. else
  6513. ld_shlibs=no
  6514. fi
  6515. ;;
  6516. esac
  6517. if test "$ld_shlibs" = no; then
  6518. runpath_var=
  6519. hardcode_libdir_flag_spec=
  6520. export_dynamic_flag_spec=
  6521. whole_archive_flag_spec=
  6522. fi
  6523. else
  6524. # PORTME fill in a description of your system's linker (not GNU ld)
  6525. case $host_os in
  6526. aix3*)
  6527. allow_undefined_flag=unsupported
  6528. always_export_symbols=yes
  6529. 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'
  6530. # Note: this linker hardcodes the directories in LIBPATH if there
  6531. # are no directories specified by -L.
  6532. hardcode_minus_L=yes
  6533. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6534. # Neither direct hardcoding nor static linking is supported with a
  6535. # broken collect2.
  6536. hardcode_direct=unsupported
  6537. fi
  6538. ;;
  6539. aix4* | aix5*)
  6540. if test "$host_cpu" = ia64; then
  6541. # On IA64, the linker does run time linking by default, so we don't
  6542. # have to do anything special.
  6543. aix_use_runtimelinking=no
  6544. exp_sym_flag='-Bexport'
  6545. no_entry_flag=""
  6546. else
  6547. # If we're using GNU nm, then we don't want the "-C" option.
  6548. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6549. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6550. 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'
  6551. else
  6552. 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'
  6553. fi
  6554. aix_use_runtimelinking=no
  6555. # Test if we are trying to use run time linking or normal
  6556. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6557. # need to do runtime linking.
  6558. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6559. for ld_flag in $LDFLAGS; do
  6560. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6561. aix_use_runtimelinking=yes
  6562. break
  6563. fi
  6564. done
  6565. ;;
  6566. esac
  6567. exp_sym_flag='-bexport'
  6568. no_entry_flag='-bnoentry'
  6569. fi
  6570. # When large executables or shared objects are built, AIX ld can
  6571. # have problems creating the table of contents. If linking a library
  6572. # or program results in "error TOC overflow" add -mminimal-toc to
  6573. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6574. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6575. archive_cmds=''
  6576. hardcode_direct=yes
  6577. hardcode_libdir_separator=':'
  6578. link_all_deplibs=yes
  6579. if test "$GCC" = yes; then
  6580. case $host_os in aix4.[012]|aix4.[012].*)
  6581. # We only want to do this on AIX 4.2 and lower, the check
  6582. # below for broken collect2 doesn't work under 4.3+
  6583. collect2name=`${CC} -print-prog-name=collect2`
  6584. if test -f "$collect2name" && \
  6585. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6586. then
  6587. # We have reworked collect2
  6588. hardcode_direct=yes
  6589. else
  6590. # We have old collect2
  6591. hardcode_direct=unsupported
  6592. # It fails to find uninstalled libraries when the uninstalled
  6593. # path is not listed in the libpath. Setting hardcode_minus_L
  6594. # to unsupported forces relinking
  6595. hardcode_minus_L=yes
  6596. hardcode_libdir_flag_spec='-L$libdir'
  6597. hardcode_libdir_separator=
  6598. fi
  6599. ;;
  6600. esac
  6601. shared_flag='-shared'
  6602. if test "$aix_use_runtimelinking" = yes; then
  6603. shared_flag="$shared_flag "'${wl}-G'
  6604. fi
  6605. else
  6606. # not using gcc
  6607. if test "$host_cpu" = ia64; then
  6608. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6609. # chokes on -Wl,-G. The following line is correct:
  6610. shared_flag='-G'
  6611. else
  6612. if test "$aix_use_runtimelinking" = yes; then
  6613. shared_flag='${wl}-G'
  6614. else
  6615. shared_flag='${wl}-bM:SRE'
  6616. fi
  6617. fi
  6618. fi
  6619. # It seems that -bexpall does not export symbols beginning with
  6620. # underscore (_), so it is better to generate a list of symbols to export.
  6621. always_export_symbols=yes
  6622. if test "$aix_use_runtimelinking" = yes; then
  6623. # Warning - without using the other runtime loading flags (-brtl),
  6624. # -berok will link without error, but may produce a broken library.
  6625. allow_undefined_flag='-berok'
  6626. # Determine the default libpath from the value encoded in an empty executable.
  6627. cat >conftest.$ac_ext <<_ACEOF
  6628. /* confdefs.h. */
  6629. _ACEOF
  6630. cat confdefs.h >>conftest.$ac_ext
  6631. cat >>conftest.$ac_ext <<_ACEOF
  6632. /* end confdefs.h. */
  6633. int
  6634. main ()
  6635. {
  6636. ;
  6637. return 0;
  6638. }
  6639. _ACEOF
  6640. rm -f conftest.$ac_objext conftest$ac_exeext
  6641. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6642. (eval $ac_link) 2>conftest.er1
  6643. ac_status=$?
  6644. grep -v '^ *+' conftest.er1 >conftest.err
  6645. rm -f conftest.er1
  6646. cat conftest.err >&5
  6647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6648. (exit $ac_status); } &&
  6649. { ac_try='test -z "$ac_c_werror_flag"
  6650. || test ! -s conftest.err'
  6651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6652. (eval $ac_try) 2>&5
  6653. ac_status=$?
  6654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6655. (exit $ac_status); }; } &&
  6656. { ac_try='test -s conftest$ac_exeext'
  6657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6658. (eval $ac_try) 2>&5
  6659. ac_status=$?
  6660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6661. (exit $ac_status); }; }; then
  6662. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6663. }'`
  6664. # Check for a 64-bit object if we didn't find anything.
  6665. 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; }
  6666. }'`; fi
  6667. else
  6668. echo "$as_me: failed program was:" >&5
  6669. sed 's/^/| /' conftest.$ac_ext >&5
  6670. fi
  6671. rm -f conftest.err conftest.$ac_objext \
  6672. conftest$ac_exeext conftest.$ac_ext
  6673. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6674. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6675. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6676. else
  6677. if test "$host_cpu" = ia64; then
  6678. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6679. allow_undefined_flag="-z nodefs"
  6680. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6681. else
  6682. # Determine the default libpath from the value encoded in an empty executable.
  6683. cat >conftest.$ac_ext <<_ACEOF
  6684. /* confdefs.h. */
  6685. _ACEOF
  6686. cat confdefs.h >>conftest.$ac_ext
  6687. cat >>conftest.$ac_ext <<_ACEOF
  6688. /* end confdefs.h. */
  6689. int
  6690. main ()
  6691. {
  6692. ;
  6693. return 0;
  6694. }
  6695. _ACEOF
  6696. rm -f conftest.$ac_objext conftest$ac_exeext
  6697. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6698. (eval $ac_link) 2>conftest.er1
  6699. ac_status=$?
  6700. grep -v '^ *+' conftest.er1 >conftest.err
  6701. rm -f conftest.er1
  6702. cat conftest.err >&5
  6703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6704. (exit $ac_status); } &&
  6705. { ac_try='test -z "$ac_c_werror_flag"
  6706. || test ! -s conftest.err'
  6707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6708. (eval $ac_try) 2>&5
  6709. ac_status=$?
  6710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6711. (exit $ac_status); }; } &&
  6712. { ac_try='test -s conftest$ac_exeext'
  6713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6714. (eval $ac_try) 2>&5
  6715. ac_status=$?
  6716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6717. (exit $ac_status); }; }; then
  6718. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6719. }'`
  6720. # Check for a 64-bit object if we didn't find anything.
  6721. 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; }
  6722. }'`; fi
  6723. else
  6724. echo "$as_me: failed program was:" >&5
  6725. sed 's/^/| /' conftest.$ac_ext >&5
  6726. fi
  6727. rm -f conftest.err conftest.$ac_objext \
  6728. conftest$ac_exeext conftest.$ac_ext
  6729. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6730. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6731. # Warning - without using the other run time loading flags,
  6732. # -berok will link without error, but may produce a broken library.
  6733. no_undefined_flag=' ${wl}-bernotok'
  6734. allow_undefined_flag=' ${wl}-berok'
  6735. # Exported symbols can be pulled into shared objects from archives
  6736. whole_archive_flag_spec='$convenience'
  6737. archive_cmds_need_lc=yes
  6738. # This is similar to how AIX traditionally builds its shared libraries.
  6739. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6740. fi
  6741. fi
  6742. ;;
  6743. amigaos*)
  6744. 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)'
  6745. hardcode_libdir_flag_spec='-L$libdir'
  6746. hardcode_minus_L=yes
  6747. # see comment about different semantics on the GNU ld section
  6748. ld_shlibs=no
  6749. ;;
  6750. bsdi[45]*)
  6751. export_dynamic_flag_spec=-rdynamic
  6752. ;;
  6753. cygwin* | mingw* | pw32*)
  6754. # When not using gcc, we currently assume that we are using
  6755. # Microsoft Visual C++.
  6756. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6757. # no search path for DLLs.
  6758. hardcode_libdir_flag_spec=' '
  6759. allow_undefined_flag=unsupported
  6760. # Tell ltmain to make .lib files, not .a files.
  6761. libext=lib
  6762. # Tell ltmain to make .dll files, not .so files.
  6763. shrext_cmds=".dll"
  6764. # FIXME: Setting linknames here is a bad hack.
  6765. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6766. # The linker will automatically build a .lib file if we build a DLL.
  6767. old_archive_From_new_cmds='true'
  6768. # FIXME: Should let the user specify the lib program.
  6769. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6770. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6771. enable_shared_with_static_runtimes=yes
  6772. ;;
  6773. darwin* | rhapsody*)
  6774. case $host_os in
  6775. rhapsody* | darwin1.[012])
  6776. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6777. ;;
  6778. *) # Darwin 1.3 on
  6779. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6780. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6781. else
  6782. case ${MACOSX_DEPLOYMENT_TARGET} in
  6783. 10.[012])
  6784. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6785. ;;
  6786. 10.*)
  6787. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6788. ;;
  6789. esac
  6790. fi
  6791. ;;
  6792. esac
  6793. archive_cmds_need_lc=no
  6794. hardcode_direct=no
  6795. hardcode_automatic=yes
  6796. hardcode_shlibpath_var=unsupported
  6797. whole_archive_flag_spec=''
  6798. link_all_deplibs=yes
  6799. if test "$GCC" = yes ; then
  6800. output_verbose_link_cmd='echo'
  6801. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6802. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6803. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6804. 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}'
  6805. 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}'
  6806. else
  6807. case $cc_basename in
  6808. xlc*)
  6809. output_verbose_link_cmd='echo'
  6810. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6811. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6812. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6813. 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}'
  6814. 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}'
  6815. ;;
  6816. *)
  6817. ld_shlibs=no
  6818. ;;
  6819. esac
  6820. fi
  6821. ;;
  6822. dgux*)
  6823. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6824. hardcode_libdir_flag_spec='-L$libdir'
  6825. hardcode_shlibpath_var=no
  6826. ;;
  6827. freebsd1*)
  6828. ld_shlibs=no
  6829. ;;
  6830. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6831. # support. Future versions do this automatically, but an explicit c++rt0.o
  6832. # does not break anything, and helps significantly (at the cost of a little
  6833. # extra space).
  6834. freebsd2.2*)
  6835. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6836. hardcode_libdir_flag_spec='-R$libdir'
  6837. hardcode_direct=yes
  6838. hardcode_shlibpath_var=no
  6839. ;;
  6840. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6841. freebsd2*)
  6842. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6843. hardcode_direct=yes
  6844. hardcode_minus_L=yes
  6845. hardcode_shlibpath_var=no
  6846. ;;
  6847. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6848. freebsd* | kfreebsd*-gnu | dragonfly*)
  6849. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6850. hardcode_libdir_flag_spec='-R$libdir'
  6851. hardcode_direct=yes
  6852. hardcode_shlibpath_var=no
  6853. ;;
  6854. hpux9*)
  6855. if test "$GCC" = yes; then
  6856. 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'
  6857. else
  6858. 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'
  6859. fi
  6860. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6861. hardcode_libdir_separator=:
  6862. hardcode_direct=yes
  6863. # hardcode_minus_L: Not really in the search PATH,
  6864. # but as the default location of the library.
  6865. hardcode_minus_L=yes
  6866. export_dynamic_flag_spec='${wl}-E'
  6867. ;;
  6868. hpux10*)
  6869. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6870. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6871. else
  6872. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6873. fi
  6874. if test "$with_gnu_ld" = no; then
  6875. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6876. hardcode_libdir_separator=:
  6877. hardcode_direct=yes
  6878. export_dynamic_flag_spec='${wl}-E'
  6879. # hardcode_minus_L: Not really in the search PATH,
  6880. # but as the default location of the library.
  6881. hardcode_minus_L=yes
  6882. fi
  6883. ;;
  6884. hpux11*)
  6885. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6886. case $host_cpu in
  6887. hppa*64*)
  6888. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6889. ;;
  6890. ia64*)
  6891. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6892. ;;
  6893. *)
  6894. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6895. ;;
  6896. esac
  6897. else
  6898. case $host_cpu in
  6899. hppa*64*)
  6900. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6901. ;;
  6902. ia64*)
  6903. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6904. ;;
  6905. *)
  6906. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6907. ;;
  6908. esac
  6909. fi
  6910. if test "$with_gnu_ld" = no; then
  6911. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6912. hardcode_libdir_separator=:
  6913. case $host_cpu in
  6914. hppa*64*|ia64*)
  6915. hardcode_libdir_flag_spec_ld='+b $libdir'
  6916. hardcode_direct=no
  6917. hardcode_shlibpath_var=no
  6918. ;;
  6919. *)
  6920. hardcode_direct=yes
  6921. export_dynamic_flag_spec='${wl}-E'
  6922. # hardcode_minus_L: Not really in the search PATH,
  6923. # but as the default location of the library.
  6924. hardcode_minus_L=yes
  6925. ;;
  6926. esac
  6927. fi
  6928. ;;
  6929. irix5* | irix6* | nonstopux*)
  6930. if test "$GCC" = yes; then
  6931. 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'
  6932. else
  6933. 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'
  6934. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6935. fi
  6936. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6937. hardcode_libdir_separator=:
  6938. link_all_deplibs=yes
  6939. ;;
  6940. netbsd*)
  6941. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6942. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6943. else
  6944. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6945. fi
  6946. hardcode_libdir_flag_spec='-R$libdir'
  6947. hardcode_direct=yes
  6948. hardcode_shlibpath_var=no
  6949. ;;
  6950. newsos6)
  6951. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6952. hardcode_direct=yes
  6953. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6954. hardcode_libdir_separator=:
  6955. hardcode_shlibpath_var=no
  6956. ;;
  6957. openbsd*)
  6958. hardcode_direct=yes
  6959. hardcode_shlibpath_var=no
  6960. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6961. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6962. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6963. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6964. export_dynamic_flag_spec='${wl}-E'
  6965. else
  6966. case $host_os in
  6967. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6968. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6969. hardcode_libdir_flag_spec='-R$libdir'
  6970. ;;
  6971. *)
  6972. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6973. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6974. ;;
  6975. esac
  6976. fi
  6977. ;;
  6978. os2*)
  6979. hardcode_libdir_flag_spec='-L$libdir'
  6980. hardcode_minus_L=yes
  6981. allow_undefined_flag=unsupported
  6982. 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'
  6983. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6984. ;;
  6985. osf3*)
  6986. if test "$GCC" = yes; then
  6987. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6988. 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'
  6989. else
  6990. allow_undefined_flag=' -expect_unresolved \*'
  6991. 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'
  6992. fi
  6993. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6994. hardcode_libdir_separator=:
  6995. ;;
  6996. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6997. if test "$GCC" = yes; then
  6998. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6999. 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'
  7000. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7001. else
  7002. allow_undefined_flag=' -expect_unresolved \*'
  7003. 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'
  7004. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7005. $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'
  7006. # Both c and cxx compiler support -rpath directly
  7007. hardcode_libdir_flag_spec='-rpath $libdir'
  7008. fi
  7009. hardcode_libdir_separator=:
  7010. ;;
  7011. solaris*)
  7012. no_undefined_flag=' -z text'
  7013. if test "$GCC" = yes; then
  7014. wlarc='${wl}'
  7015. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7016. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7017. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7018. else
  7019. wlarc=''
  7020. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7021. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7022. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7023. fi
  7024. hardcode_libdir_flag_spec='-R$libdir'
  7025. hardcode_shlibpath_var=no
  7026. case $host_os in
  7027. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7028. *)
  7029. # The compiler driver will combine linker options so we
  7030. # cannot just pass the convience library names through
  7031. # without $wl, iff we do not link with $LD.
  7032. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7033. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7034. case $wlarc in
  7035. '')
  7036. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7037. *)
  7038. 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' ;;
  7039. esac ;;
  7040. esac
  7041. link_all_deplibs=yes
  7042. ;;
  7043. sunos4*)
  7044. if test "x$host_vendor" = xsequent; then
  7045. # Use $CC to link under sequent, because it throws in some extra .o
  7046. # files that make .init and .fini sections work.
  7047. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7048. else
  7049. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7050. fi
  7051. hardcode_libdir_flag_spec='-L$libdir'
  7052. hardcode_direct=yes
  7053. hardcode_minus_L=yes
  7054. hardcode_shlibpath_var=no
  7055. ;;
  7056. sysv4)
  7057. case $host_vendor in
  7058. sni)
  7059. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7060. hardcode_direct=yes # is this really true???
  7061. ;;
  7062. siemens)
  7063. ## LD is ld it makes a PLAMLIB
  7064. ## CC just makes a GrossModule.
  7065. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7066. reload_cmds='$CC -r -o $output$reload_objs'
  7067. hardcode_direct=no
  7068. ;;
  7069. motorola)
  7070. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7071. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7072. ;;
  7073. esac
  7074. runpath_var='LD_RUN_PATH'
  7075. hardcode_shlibpath_var=no
  7076. ;;
  7077. sysv4.3*)
  7078. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7079. hardcode_shlibpath_var=no
  7080. export_dynamic_flag_spec='-Bexport'
  7081. ;;
  7082. sysv4*MP*)
  7083. if test -d /usr/nec; then
  7084. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7085. hardcode_shlibpath_var=no
  7086. runpath_var=LD_RUN_PATH
  7087. hardcode_runpath_var=yes
  7088. ld_shlibs=yes
  7089. fi
  7090. ;;
  7091. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7092. no_undefined_flag='${wl}-z,text'
  7093. archive_cmds_need_lc=no
  7094. hardcode_shlibpath_var=no
  7095. runpath_var='LD_RUN_PATH'
  7096. if test "$GCC" = yes; then
  7097. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7098. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7099. else
  7100. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7101. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7102. fi
  7103. ;;
  7104. sysv5* | sco3.2v5* | sco5v6*)
  7105. # Note: We can NOT use -z defs as we might desire, because we do not
  7106. # link with -lc, and that would cause any symbols used from libc to
  7107. # always be unresolved, which means just about no library would
  7108. # ever link correctly. If we're not using GNU ld we use -z text
  7109. # though, which does catch some bad symbols but isn't as heavy-handed
  7110. # as -z defs.
  7111. no_undefined_flag='${wl}-z,text'
  7112. allow_undefined_flag='${wl}-z,nodefs'
  7113. archive_cmds_need_lc=no
  7114. hardcode_shlibpath_var=no
  7115. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7116. hardcode_libdir_separator=':'
  7117. link_all_deplibs=yes
  7118. export_dynamic_flag_spec='${wl}-Bexport'
  7119. runpath_var='LD_RUN_PATH'
  7120. if test "$GCC" = yes; then
  7121. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7122. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7123. else
  7124. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7125. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7126. fi
  7127. ;;
  7128. uts4*)
  7129. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7130. hardcode_libdir_flag_spec='-L$libdir'
  7131. hardcode_shlibpath_var=no
  7132. ;;
  7133. *)
  7134. ld_shlibs=no
  7135. ;;
  7136. esac
  7137. fi
  7138. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7139. echo "${ECHO_T}$ld_shlibs" >&6
  7140. test "$ld_shlibs" = no && can_build_shared=no
  7141. #
  7142. # Do we need to explicitly link libc?
  7143. #
  7144. case "x$archive_cmds_need_lc" in
  7145. x|xyes)
  7146. # Assume -lc should be added
  7147. archive_cmds_need_lc=yes
  7148. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7149. case $archive_cmds in
  7150. *'~'*)
  7151. # FIXME: we may have to deal with multi-command sequences.
  7152. ;;
  7153. '$CC '*)
  7154. # Test whether the compiler implicitly links with -lc since on some
  7155. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7156. # to ld, don't add -lc before -lgcc.
  7157. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7158. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7159. $rm conftest*
  7160. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7161. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7162. (eval $ac_compile) 2>&5
  7163. ac_status=$?
  7164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7165. (exit $ac_status); } 2>conftest.err; then
  7166. soname=conftest
  7167. lib=conftest
  7168. libobjs=conftest.$ac_objext
  7169. deplibs=
  7170. wl=$lt_prog_compiler_wl
  7171. pic_flag=$lt_prog_compiler_pic
  7172. compiler_flags=-v
  7173. linker_flags=-v
  7174. verstring=
  7175. output_objdir=.
  7176. libname=conftest
  7177. lt_save_allow_undefined_flag=$allow_undefined_flag
  7178. allow_undefined_flag=
  7179. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7180. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7181. ac_status=$?
  7182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7183. (exit $ac_status); }
  7184. then
  7185. archive_cmds_need_lc=no
  7186. else
  7187. archive_cmds_need_lc=yes
  7188. fi
  7189. allow_undefined_flag=$lt_save_allow_undefined_flag
  7190. else
  7191. cat conftest.err 1>&5
  7192. fi
  7193. $rm conftest*
  7194. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7195. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7196. ;;
  7197. esac
  7198. fi
  7199. ;;
  7200. esac
  7201. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7202. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7203. library_names_spec=
  7204. libname_spec='lib$name'
  7205. soname_spec=
  7206. shrext_cmds=".so"
  7207. postinstall_cmds=
  7208. postuninstall_cmds=
  7209. finish_cmds=
  7210. finish_eval=
  7211. shlibpath_var=
  7212. shlibpath_overrides_runpath=unknown
  7213. version_type=none
  7214. dynamic_linker="$host_os ld.so"
  7215. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7216. if test "$GCC" = yes; then
  7217. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7218. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7219. # if the path contains ";" then we assume it to be the separator
  7220. # otherwise default to the standard path separator (i.e. ":") - it is
  7221. # assumed that no part of a normal pathname contains ";" but that should
  7222. # okay in the real world where ";" in dirpaths is itself problematic.
  7223. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7224. else
  7225. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7226. fi
  7227. else
  7228. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7229. fi
  7230. need_lib_prefix=unknown
  7231. hardcode_into_libs=no
  7232. # when you set need_version to no, make sure it does not cause -set_version
  7233. # flags to be left without arguments
  7234. need_version=unknown
  7235. case $host_os in
  7236. aix3*)
  7237. version_type=linux
  7238. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7239. shlibpath_var=LIBPATH
  7240. # AIX 3 has no versioning support, so we append a major version to the name.
  7241. soname_spec='${libname}${release}${shared_ext}$major'
  7242. ;;
  7243. aix4* | aix5*)
  7244. version_type=linux
  7245. need_lib_prefix=no
  7246. need_version=no
  7247. hardcode_into_libs=yes
  7248. if test "$host_cpu" = ia64; then
  7249. # AIX 5 supports IA64
  7250. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7251. shlibpath_var=LD_LIBRARY_PATH
  7252. else
  7253. # With GCC up to 2.95.x, collect2 would create an import file
  7254. # for dependence libraries. The import file would start with
  7255. # the line `#! .'. This would cause the generated library to
  7256. # depend on `.', always an invalid library. This was fixed in
  7257. # development snapshots of GCC prior to 3.0.
  7258. case $host_os in
  7259. aix4 | aix4.[01] | aix4.[01].*)
  7260. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7261. echo ' yes '
  7262. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7263. :
  7264. else
  7265. can_build_shared=no
  7266. fi
  7267. ;;
  7268. esac
  7269. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7270. # soname into executable. Probably we can add versioning support to
  7271. # collect2, so additional links can be useful in future.
  7272. if test "$aix_use_runtimelinking" = yes; then
  7273. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7274. # instead of lib<name>.a to let people know that these are not
  7275. # typical AIX shared libraries.
  7276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7277. else
  7278. # We preserve .a as extension for shared libraries through AIX4.2
  7279. # and later when we are not doing run time linking.
  7280. library_names_spec='${libname}${release}.a $libname.a'
  7281. soname_spec='${libname}${release}${shared_ext}$major'
  7282. fi
  7283. shlibpath_var=LIBPATH
  7284. fi
  7285. ;;
  7286. amigaos*)
  7287. library_names_spec='$libname.ixlibrary $libname.a'
  7288. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7289. 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'
  7290. ;;
  7291. beos*)
  7292. library_names_spec='${libname}${shared_ext}'
  7293. dynamic_linker="$host_os ld.so"
  7294. shlibpath_var=LIBRARY_PATH
  7295. ;;
  7296. bsdi[45]*)
  7297. version_type=linux
  7298. need_version=no
  7299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7300. soname_spec='${libname}${release}${shared_ext}$major'
  7301. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7302. shlibpath_var=LD_LIBRARY_PATH
  7303. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7304. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7305. # the default ld.so.conf also contains /usr/contrib/lib and
  7306. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7307. # libtool to hard-code these into programs
  7308. ;;
  7309. cygwin* | mingw* | pw32*)
  7310. version_type=windows
  7311. shrext_cmds=".dll"
  7312. need_version=no
  7313. need_lib_prefix=no
  7314. case $GCC,$host_os in
  7315. yes,cygwin* | yes,mingw* | yes,pw32*)
  7316. library_names_spec='$libname.dll.a'
  7317. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7318. postinstall_cmds='base_file=`basename \${file}`~
  7319. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7320. dldir=$destdir/`dirname \$dlpath`~
  7321. test -d \$dldir || mkdir -p \$dldir~
  7322. $install_prog $dir/$dlname \$dldir/$dlname~
  7323. chmod a+x \$dldir/$dlname'
  7324. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7325. dlpath=$dir/\$dldll~
  7326. $rm \$dlpath'
  7327. shlibpath_overrides_runpath=yes
  7328. case $host_os in
  7329. cygwin*)
  7330. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7331. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7332. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7333. ;;
  7334. mingw*)
  7335. # MinGW DLLs use traditional 'lib' prefix
  7336. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7337. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7338. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7339. # It is most probably a Windows format PATH printed by
  7340. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7341. # path with ; separators, and with drive letters. We can handle the
  7342. # drive letters (cygwin fileutils understands them), so leave them,
  7343. # especially as we might pass files found there to a mingw objdump,
  7344. # which wouldn't understand a cygwinified path. Ahh.
  7345. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7346. else
  7347. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7348. fi
  7349. ;;
  7350. pw32*)
  7351. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7352. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7353. ;;
  7354. esac
  7355. ;;
  7356. *)
  7357. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7358. ;;
  7359. esac
  7360. dynamic_linker='Win32 ld.exe'
  7361. # FIXME: first we should search . and the directory the executable is in
  7362. shlibpath_var=PATH
  7363. ;;
  7364. darwin* | rhapsody*)
  7365. dynamic_linker="$host_os dyld"
  7366. version_type=darwin
  7367. need_lib_prefix=no
  7368. need_version=no
  7369. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7370. soname_spec='${libname}${release}${major}$shared_ext'
  7371. shlibpath_overrides_runpath=yes
  7372. shlibpath_var=DYLD_LIBRARY_PATH
  7373. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7374. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7375. if test "$GCC" = yes; then
  7376. 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"`
  7377. else
  7378. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7379. fi
  7380. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7381. ;;
  7382. dgux*)
  7383. version_type=linux
  7384. need_lib_prefix=no
  7385. need_version=no
  7386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7387. soname_spec='${libname}${release}${shared_ext}$major'
  7388. shlibpath_var=LD_LIBRARY_PATH
  7389. ;;
  7390. freebsd1*)
  7391. dynamic_linker=no
  7392. ;;
  7393. kfreebsd*-gnu)
  7394. version_type=linux
  7395. need_lib_prefix=no
  7396. need_version=no
  7397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7398. soname_spec='${libname}${release}${shared_ext}$major'
  7399. shlibpath_var=LD_LIBRARY_PATH
  7400. shlibpath_overrides_runpath=no
  7401. hardcode_into_libs=yes
  7402. dynamic_linker='GNU ld.so'
  7403. ;;
  7404. freebsd* | dragonfly*)
  7405. # DragonFly does not have aout. When/if they implement a new
  7406. # versioning mechanism, adjust this.
  7407. if test -x /usr/bin/objformat; then
  7408. objformat=`/usr/bin/objformat`
  7409. else
  7410. case $host_os in
  7411. freebsd[123]*) objformat=aout ;;
  7412. *) objformat=elf ;;
  7413. esac
  7414. fi
  7415. version_type=freebsd-$objformat
  7416. case $version_type in
  7417. freebsd-elf*)
  7418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7419. need_version=no
  7420. need_lib_prefix=no
  7421. ;;
  7422. freebsd-*)
  7423. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7424. need_version=yes
  7425. ;;
  7426. esac
  7427. shlibpath_var=LD_LIBRARY_PATH
  7428. case $host_os in
  7429. freebsd2*)
  7430. shlibpath_overrides_runpath=yes
  7431. ;;
  7432. freebsd3.[01]* | freebsdelf3.[01]*)
  7433. shlibpath_overrides_runpath=yes
  7434. hardcode_into_libs=yes
  7435. ;;
  7436. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7437. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7438. shlibpath_overrides_runpath=no
  7439. hardcode_into_libs=yes
  7440. ;;
  7441. freebsd*) # from 4.6 on
  7442. shlibpath_overrides_runpath=yes
  7443. hardcode_into_libs=yes
  7444. ;;
  7445. esac
  7446. ;;
  7447. gnu*)
  7448. version_type=linux
  7449. need_lib_prefix=no
  7450. need_version=no
  7451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7452. soname_spec='${libname}${release}${shared_ext}$major'
  7453. shlibpath_var=LD_LIBRARY_PATH
  7454. hardcode_into_libs=yes
  7455. ;;
  7456. hpux9* | hpux10* | hpux11*)
  7457. # Give a soname corresponding to the major version so that dld.sl refuses to
  7458. # link against other versions.
  7459. version_type=sunos
  7460. need_lib_prefix=no
  7461. need_version=no
  7462. case $host_cpu in
  7463. ia64*)
  7464. shrext_cmds='.so'
  7465. hardcode_into_libs=yes
  7466. dynamic_linker="$host_os dld.so"
  7467. shlibpath_var=LD_LIBRARY_PATH
  7468. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7470. soname_spec='${libname}${release}${shared_ext}$major'
  7471. if test "X$HPUX_IA64_MODE" = X32; then
  7472. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7473. else
  7474. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7475. fi
  7476. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7477. ;;
  7478. hppa*64*)
  7479. shrext_cmds='.sl'
  7480. hardcode_into_libs=yes
  7481. dynamic_linker="$host_os dld.sl"
  7482. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7483. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7485. soname_spec='${libname}${release}${shared_ext}$major'
  7486. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7487. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7488. ;;
  7489. *)
  7490. shrext_cmds='.sl'
  7491. dynamic_linker="$host_os dld.sl"
  7492. shlibpath_var=SHLIB_PATH
  7493. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7495. soname_spec='${libname}${release}${shared_ext}$major'
  7496. ;;
  7497. esac
  7498. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7499. postinstall_cmds='chmod 555 $lib'
  7500. ;;
  7501. interix3*)
  7502. version_type=linux
  7503. need_lib_prefix=no
  7504. need_version=no
  7505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7506. soname_spec='${libname}${release}${shared_ext}$major'
  7507. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7508. shlibpath_var=LD_LIBRARY_PATH
  7509. shlibpath_overrides_runpath=no
  7510. hardcode_into_libs=yes
  7511. ;;
  7512. irix5* | irix6* | nonstopux*)
  7513. case $host_os in
  7514. nonstopux*) version_type=nonstopux ;;
  7515. *)
  7516. if test "$lt_cv_prog_gnu_ld" = yes; then
  7517. version_type=linux
  7518. else
  7519. version_type=irix
  7520. fi ;;
  7521. esac
  7522. need_lib_prefix=no
  7523. need_version=no
  7524. soname_spec='${libname}${release}${shared_ext}$major'
  7525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7526. case $host_os in
  7527. irix5* | nonstopux*)
  7528. libsuff= shlibsuff=
  7529. ;;
  7530. *)
  7531. case $LD in # libtool.m4 will add one of these switches to LD
  7532. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7533. libsuff= shlibsuff= libmagic=32-bit;;
  7534. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7535. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7536. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7537. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7538. *) libsuff= shlibsuff= libmagic=never-match;;
  7539. esac
  7540. ;;
  7541. esac
  7542. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7543. shlibpath_overrides_runpath=no
  7544. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7545. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7546. hardcode_into_libs=yes
  7547. ;;
  7548. # No shared lib support for Linux oldld, aout, or coff.
  7549. linux*oldld* | linux*aout* | linux*coff*)
  7550. dynamic_linker=no
  7551. ;;
  7552. # This must be Linux ELF.
  7553. linux*)
  7554. version_type=linux
  7555. need_lib_prefix=no
  7556. need_version=no
  7557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7558. soname_spec='${libname}${release}${shared_ext}$major'
  7559. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7560. shlibpath_var=LD_LIBRARY_PATH
  7561. shlibpath_overrides_runpath=no
  7562. # This implies no fast_install, which is unacceptable.
  7563. # Some rework will be needed to allow for fast_install
  7564. # before this can be enabled.
  7565. hardcode_into_libs=yes
  7566. # Append ld.so.conf contents to the search path
  7567. if test -f /etc/ld.so.conf; then
  7568. 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' ' '`
  7569. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7570. fi
  7571. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7572. # powerpc, because MkLinux only supported shared libraries with the
  7573. # GNU dynamic linker. Since this was broken with cross compilers,
  7574. # most powerpc-linux boxes support dynamic linking these days and
  7575. # people can always --disable-shared, the test was removed, and we
  7576. # assume the GNU/Linux dynamic linker is in use.
  7577. dynamic_linker='GNU/Linux ld.so'
  7578. ;;
  7579. knetbsd*-gnu)
  7580. version_type=linux
  7581. need_lib_prefix=no
  7582. need_version=no
  7583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7584. soname_spec='${libname}${release}${shared_ext}$major'
  7585. shlibpath_var=LD_LIBRARY_PATH
  7586. shlibpath_overrides_runpath=no
  7587. hardcode_into_libs=yes
  7588. dynamic_linker='GNU ld.so'
  7589. ;;
  7590. netbsd*)
  7591. version_type=sunos
  7592. need_lib_prefix=no
  7593. need_version=no
  7594. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7596. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7597. dynamic_linker='NetBSD (a.out) ld.so'
  7598. else
  7599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7600. soname_spec='${libname}${release}${shared_ext}$major'
  7601. dynamic_linker='NetBSD ld.elf_so'
  7602. fi
  7603. shlibpath_var=LD_LIBRARY_PATH
  7604. shlibpath_overrides_runpath=yes
  7605. hardcode_into_libs=yes
  7606. ;;
  7607. newsos6)
  7608. version_type=linux
  7609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7610. shlibpath_var=LD_LIBRARY_PATH
  7611. shlibpath_overrides_runpath=yes
  7612. ;;
  7613. nto-qnx*)
  7614. version_type=linux
  7615. need_lib_prefix=no
  7616. need_version=no
  7617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7618. soname_spec='${libname}${release}${shared_ext}$major'
  7619. shlibpath_var=LD_LIBRARY_PATH
  7620. shlibpath_overrides_runpath=yes
  7621. ;;
  7622. openbsd*)
  7623. version_type=sunos
  7624. sys_lib_dlsearch_path_spec="/usr/lib"
  7625. need_lib_prefix=no
  7626. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7627. case $host_os in
  7628. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7629. *) need_version=no ;;
  7630. esac
  7631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7632. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7633. shlibpath_var=LD_LIBRARY_PATH
  7634. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7635. case $host_os in
  7636. openbsd2.[89] | openbsd2.[89].*)
  7637. shlibpath_overrides_runpath=no
  7638. ;;
  7639. *)
  7640. shlibpath_overrides_runpath=yes
  7641. ;;
  7642. esac
  7643. else
  7644. shlibpath_overrides_runpath=yes
  7645. fi
  7646. ;;
  7647. os2*)
  7648. libname_spec='$name'
  7649. shrext_cmds=".dll"
  7650. need_lib_prefix=no
  7651. library_names_spec='$libname${shared_ext} $libname.a'
  7652. dynamic_linker='OS/2 ld.exe'
  7653. shlibpath_var=LIBPATH
  7654. ;;
  7655. osf3* | osf4* | osf5*)
  7656. version_type=osf
  7657. need_lib_prefix=no
  7658. need_version=no
  7659. soname_spec='${libname}${release}${shared_ext}$major'
  7660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7661. shlibpath_var=LD_LIBRARY_PATH
  7662. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7663. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7664. ;;
  7665. solaris*)
  7666. version_type=linux
  7667. need_lib_prefix=no
  7668. need_version=no
  7669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7670. soname_spec='${libname}${release}${shared_ext}$major'
  7671. shlibpath_var=LD_LIBRARY_PATH
  7672. shlibpath_overrides_runpath=yes
  7673. hardcode_into_libs=yes
  7674. # ldd complains unless libraries are executable
  7675. postinstall_cmds='chmod +x $lib'
  7676. ;;
  7677. sunos4*)
  7678. version_type=sunos
  7679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7680. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7681. shlibpath_var=LD_LIBRARY_PATH
  7682. shlibpath_overrides_runpath=yes
  7683. if test "$with_gnu_ld" = yes; then
  7684. need_lib_prefix=no
  7685. fi
  7686. need_version=yes
  7687. ;;
  7688. sysv4 | sysv4.3*)
  7689. version_type=linux
  7690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7691. soname_spec='${libname}${release}${shared_ext}$major'
  7692. shlibpath_var=LD_LIBRARY_PATH
  7693. case $host_vendor in
  7694. sni)
  7695. shlibpath_overrides_runpath=no
  7696. need_lib_prefix=no
  7697. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7698. runpath_var=LD_RUN_PATH
  7699. ;;
  7700. siemens)
  7701. need_lib_prefix=no
  7702. ;;
  7703. motorola)
  7704. need_lib_prefix=no
  7705. need_version=no
  7706. shlibpath_overrides_runpath=no
  7707. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7708. ;;
  7709. esac
  7710. ;;
  7711. sysv4*MP*)
  7712. if test -d /usr/nec ;then
  7713. version_type=linux
  7714. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7715. soname_spec='$libname${shared_ext}.$major'
  7716. shlibpath_var=LD_LIBRARY_PATH
  7717. fi
  7718. ;;
  7719. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7720. version_type=freebsd-elf
  7721. need_lib_prefix=no
  7722. need_version=no
  7723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7724. soname_spec='${libname}${release}${shared_ext}$major'
  7725. shlibpath_var=LD_LIBRARY_PATH
  7726. hardcode_into_libs=yes
  7727. if test "$with_gnu_ld" = yes; then
  7728. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7729. shlibpath_overrides_runpath=no
  7730. else
  7731. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7732. shlibpath_overrides_runpath=yes
  7733. case $host_os in
  7734. sco3.2v5*)
  7735. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7736. ;;
  7737. esac
  7738. fi
  7739. sys_lib_dlsearch_path_spec='/usr/lib'
  7740. ;;
  7741. uts4*)
  7742. version_type=linux
  7743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7744. soname_spec='${libname}${release}${shared_ext}$major'
  7745. shlibpath_var=LD_LIBRARY_PATH
  7746. ;;
  7747. *)
  7748. dynamic_linker=no
  7749. ;;
  7750. esac
  7751. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7752. echo "${ECHO_T}$dynamic_linker" >&6
  7753. test "$dynamic_linker" = no && can_build_shared=no
  7754. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7755. if test "$GCC" = yes; then
  7756. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7757. fi
  7758. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7759. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7760. hardcode_action=
  7761. if test -n "$hardcode_libdir_flag_spec" || \
  7762. test -n "$runpath_var" || \
  7763. test "X$hardcode_automatic" = "Xyes" ; then
  7764. # We can hardcode non-existant directories.
  7765. if test "$hardcode_direct" != no &&
  7766. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7767. # have to relink, otherwise we might link with an installed library
  7768. # when we should be linking with a yet-to-be-installed one
  7769. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7770. test "$hardcode_minus_L" != no; then
  7771. # Linking always hardcodes the temporary library directory.
  7772. hardcode_action=relink
  7773. else
  7774. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7775. hardcode_action=immediate
  7776. fi
  7777. else
  7778. # We cannot hardcode anything, or else we can only hardcode existing
  7779. # directories.
  7780. hardcode_action=unsupported
  7781. fi
  7782. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7783. echo "${ECHO_T}$hardcode_action" >&6
  7784. if test "$hardcode_action" = relink; then
  7785. # Fast installation is not supported
  7786. enable_fast_install=no
  7787. elif test "$shlibpath_overrides_runpath" = yes ||
  7788. test "$enable_shared" = no; then
  7789. # Fast installation is not necessary
  7790. enable_fast_install=needless
  7791. fi
  7792. striplib=
  7793. old_striplib=
  7794. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7795. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7796. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7797. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7798. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7799. echo "$as_me:$LINENO: result: yes" >&5
  7800. echo "${ECHO_T}yes" >&6
  7801. else
  7802. # FIXME - insert some real tests, host_os isn't really good enough
  7803. case $host_os in
  7804. darwin*)
  7805. if test -n "$STRIP" ; then
  7806. striplib="$STRIP -x"
  7807. echo "$as_me:$LINENO: result: yes" >&5
  7808. echo "${ECHO_T}yes" >&6
  7809. else
  7810. echo "$as_me:$LINENO: result: no" >&5
  7811. echo "${ECHO_T}no" >&6
  7812. fi
  7813. ;;
  7814. *)
  7815. echo "$as_me:$LINENO: result: no" >&5
  7816. echo "${ECHO_T}no" >&6
  7817. ;;
  7818. esac
  7819. fi
  7820. if test "x$enable_dlopen" != xyes; then
  7821. enable_dlopen=unknown
  7822. enable_dlopen_self=unknown
  7823. enable_dlopen_self_static=unknown
  7824. else
  7825. lt_cv_dlopen=no
  7826. lt_cv_dlopen_libs=
  7827. case $host_os in
  7828. beos*)
  7829. lt_cv_dlopen="load_add_on"
  7830. lt_cv_dlopen_libs=
  7831. lt_cv_dlopen_self=yes
  7832. ;;
  7833. mingw* | pw32*)
  7834. lt_cv_dlopen="LoadLibrary"
  7835. lt_cv_dlopen_libs=
  7836. ;;
  7837. cygwin*)
  7838. lt_cv_dlopen="dlopen"
  7839. lt_cv_dlopen_libs=
  7840. ;;
  7841. darwin*)
  7842. # if libdl is installed we need to link against it
  7843. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7844. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7845. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7846. echo $ECHO_N "(cached) $ECHO_C" >&6
  7847. else
  7848. ac_check_lib_save_LIBS=$LIBS
  7849. LIBS="-ldl $LIBS"
  7850. cat >conftest.$ac_ext <<_ACEOF
  7851. /* confdefs.h. */
  7852. _ACEOF
  7853. cat confdefs.h >>conftest.$ac_ext
  7854. cat >>conftest.$ac_ext <<_ACEOF
  7855. /* end confdefs.h. */
  7856. /* Override any gcc2 internal prototype to avoid an error. */
  7857. #ifdef __cplusplus
  7858. extern "C"
  7859. #endif
  7860. /* We use char because int might match the return type of a gcc2
  7861. builtin and then its argument prototype would still apply. */
  7862. char dlopen ();
  7863. int
  7864. main ()
  7865. {
  7866. dlopen ();
  7867. ;
  7868. return 0;
  7869. }
  7870. _ACEOF
  7871. rm -f conftest.$ac_objext conftest$ac_exeext
  7872. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7873. (eval $ac_link) 2>conftest.er1
  7874. ac_status=$?
  7875. grep -v '^ *+' conftest.er1 >conftest.err
  7876. rm -f conftest.er1
  7877. cat conftest.err >&5
  7878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7879. (exit $ac_status); } &&
  7880. { ac_try='test -z "$ac_c_werror_flag"
  7881. || test ! -s conftest.err'
  7882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7883. (eval $ac_try) 2>&5
  7884. ac_status=$?
  7885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7886. (exit $ac_status); }; } &&
  7887. { ac_try='test -s conftest$ac_exeext'
  7888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7889. (eval $ac_try) 2>&5
  7890. ac_status=$?
  7891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7892. (exit $ac_status); }; }; then
  7893. ac_cv_lib_dl_dlopen=yes
  7894. else
  7895. echo "$as_me: failed program was:" >&5
  7896. sed 's/^/| /' conftest.$ac_ext >&5
  7897. ac_cv_lib_dl_dlopen=no
  7898. fi
  7899. rm -f conftest.err conftest.$ac_objext \
  7900. conftest$ac_exeext conftest.$ac_ext
  7901. LIBS=$ac_check_lib_save_LIBS
  7902. fi
  7903. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7904. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7905. if test $ac_cv_lib_dl_dlopen = yes; then
  7906. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7907. else
  7908. lt_cv_dlopen="dyld"
  7909. lt_cv_dlopen_libs=
  7910. lt_cv_dlopen_self=yes
  7911. fi
  7912. ;;
  7913. *)
  7914. echo "$as_me:$LINENO: checking for shl_load" >&5
  7915. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7916. if test "${ac_cv_func_shl_load+set}" = set; then
  7917. echo $ECHO_N "(cached) $ECHO_C" >&6
  7918. else
  7919. cat >conftest.$ac_ext <<_ACEOF
  7920. /* confdefs.h. */
  7921. _ACEOF
  7922. cat confdefs.h >>conftest.$ac_ext
  7923. cat >>conftest.$ac_ext <<_ACEOF
  7924. /* end confdefs.h. */
  7925. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7926. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7927. #define shl_load innocuous_shl_load
  7928. /* System header to define __stub macros and hopefully few prototypes,
  7929. which can conflict with char shl_load (); below.
  7930. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7931. <limits.h> exists even on freestanding compilers. */
  7932. #ifdef __STDC__
  7933. # include <limits.h>
  7934. #else
  7935. # include <assert.h>
  7936. #endif
  7937. #undef shl_load
  7938. /* Override any gcc2 internal prototype to avoid an error. */
  7939. #ifdef __cplusplus
  7940. extern "C"
  7941. {
  7942. #endif
  7943. /* We use char because int might match the return type of a gcc2
  7944. builtin and then its argument prototype would still apply. */
  7945. char shl_load ();
  7946. /* The GNU C library defines this for functions which it implements
  7947. to always fail with ENOSYS. Some functions are actually named
  7948. something starting with __ and the normal name is an alias. */
  7949. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7950. choke me
  7951. #else
  7952. char (*f) () = shl_load;
  7953. #endif
  7954. #ifdef __cplusplus
  7955. }
  7956. #endif
  7957. int
  7958. main ()
  7959. {
  7960. return f != shl_load;
  7961. ;
  7962. return 0;
  7963. }
  7964. _ACEOF
  7965. rm -f conftest.$ac_objext conftest$ac_exeext
  7966. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7967. (eval $ac_link) 2>conftest.er1
  7968. ac_status=$?
  7969. grep -v '^ *+' conftest.er1 >conftest.err
  7970. rm -f conftest.er1
  7971. cat conftest.err >&5
  7972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7973. (exit $ac_status); } &&
  7974. { ac_try='test -z "$ac_c_werror_flag"
  7975. || test ! -s conftest.err'
  7976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7977. (eval $ac_try) 2>&5
  7978. ac_status=$?
  7979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7980. (exit $ac_status); }; } &&
  7981. { ac_try='test -s conftest$ac_exeext'
  7982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7983. (eval $ac_try) 2>&5
  7984. ac_status=$?
  7985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7986. (exit $ac_status); }; }; then
  7987. ac_cv_func_shl_load=yes
  7988. else
  7989. echo "$as_me: failed program was:" >&5
  7990. sed 's/^/| /' conftest.$ac_ext >&5
  7991. ac_cv_func_shl_load=no
  7992. fi
  7993. rm -f conftest.err conftest.$ac_objext \
  7994. conftest$ac_exeext conftest.$ac_ext
  7995. fi
  7996. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7997. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7998. if test $ac_cv_func_shl_load = yes; then
  7999. lt_cv_dlopen="shl_load"
  8000. else
  8001. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8002. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8003. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8004. echo $ECHO_N "(cached) $ECHO_C" >&6
  8005. else
  8006. ac_check_lib_save_LIBS=$LIBS
  8007. LIBS="-ldld $LIBS"
  8008. cat >conftest.$ac_ext <<_ACEOF
  8009. /* confdefs.h. */
  8010. _ACEOF
  8011. cat confdefs.h >>conftest.$ac_ext
  8012. cat >>conftest.$ac_ext <<_ACEOF
  8013. /* end confdefs.h. */
  8014. /* Override any gcc2 internal prototype to avoid an error. */
  8015. #ifdef __cplusplus
  8016. extern "C"
  8017. #endif
  8018. /* We use char because int might match the return type of a gcc2
  8019. builtin and then its argument prototype would still apply. */
  8020. char shl_load ();
  8021. int
  8022. main ()
  8023. {
  8024. shl_load ();
  8025. ;
  8026. return 0;
  8027. }
  8028. _ACEOF
  8029. rm -f conftest.$ac_objext conftest$ac_exeext
  8030. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8031. (eval $ac_link) 2>conftest.er1
  8032. ac_status=$?
  8033. grep -v '^ *+' conftest.er1 >conftest.err
  8034. rm -f conftest.er1
  8035. cat conftest.err >&5
  8036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8037. (exit $ac_status); } &&
  8038. { ac_try='test -z "$ac_c_werror_flag"
  8039. || test ! -s conftest.err'
  8040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8041. (eval $ac_try) 2>&5
  8042. ac_status=$?
  8043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8044. (exit $ac_status); }; } &&
  8045. { ac_try='test -s conftest$ac_exeext'
  8046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8047. (eval $ac_try) 2>&5
  8048. ac_status=$?
  8049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8050. (exit $ac_status); }; }; then
  8051. ac_cv_lib_dld_shl_load=yes
  8052. else
  8053. echo "$as_me: failed program was:" >&5
  8054. sed 's/^/| /' conftest.$ac_ext >&5
  8055. ac_cv_lib_dld_shl_load=no
  8056. fi
  8057. rm -f conftest.err conftest.$ac_objext \
  8058. conftest$ac_exeext conftest.$ac_ext
  8059. LIBS=$ac_check_lib_save_LIBS
  8060. fi
  8061. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8062. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8063. if test $ac_cv_lib_dld_shl_load = yes; then
  8064. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8065. else
  8066. echo "$as_me:$LINENO: checking for dlopen" >&5
  8067. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8068. if test "${ac_cv_func_dlopen+set}" = set; then
  8069. echo $ECHO_N "(cached) $ECHO_C" >&6
  8070. else
  8071. cat >conftest.$ac_ext <<_ACEOF
  8072. /* confdefs.h. */
  8073. _ACEOF
  8074. cat confdefs.h >>conftest.$ac_ext
  8075. cat >>conftest.$ac_ext <<_ACEOF
  8076. /* end confdefs.h. */
  8077. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8078. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8079. #define dlopen innocuous_dlopen
  8080. /* System header to define __stub macros and hopefully few prototypes,
  8081. which can conflict with char dlopen (); below.
  8082. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8083. <limits.h> exists even on freestanding compilers. */
  8084. #ifdef __STDC__
  8085. # include <limits.h>
  8086. #else
  8087. # include <assert.h>
  8088. #endif
  8089. #undef dlopen
  8090. /* Override any gcc2 internal prototype to avoid an error. */
  8091. #ifdef __cplusplus
  8092. extern "C"
  8093. {
  8094. #endif
  8095. /* We use char because int might match the return type of a gcc2
  8096. builtin and then its argument prototype would still apply. */
  8097. char dlopen ();
  8098. /* The GNU C library defines this for functions which it implements
  8099. to always fail with ENOSYS. Some functions are actually named
  8100. something starting with __ and the normal name is an alias. */
  8101. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8102. choke me
  8103. #else
  8104. char (*f) () = dlopen;
  8105. #endif
  8106. #ifdef __cplusplus
  8107. }
  8108. #endif
  8109. int
  8110. main ()
  8111. {
  8112. return f != dlopen;
  8113. ;
  8114. return 0;
  8115. }
  8116. _ACEOF
  8117. rm -f conftest.$ac_objext conftest$ac_exeext
  8118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8119. (eval $ac_link) 2>conftest.er1
  8120. ac_status=$?
  8121. grep -v '^ *+' conftest.er1 >conftest.err
  8122. rm -f conftest.er1
  8123. cat conftest.err >&5
  8124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8125. (exit $ac_status); } &&
  8126. { ac_try='test -z "$ac_c_werror_flag"
  8127. || test ! -s conftest.err'
  8128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8129. (eval $ac_try) 2>&5
  8130. ac_status=$?
  8131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. (exit $ac_status); }; } &&
  8133. { ac_try='test -s conftest$ac_exeext'
  8134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8135. (eval $ac_try) 2>&5
  8136. ac_status=$?
  8137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8138. (exit $ac_status); }; }; then
  8139. ac_cv_func_dlopen=yes
  8140. else
  8141. echo "$as_me: failed program was:" >&5
  8142. sed 's/^/| /' conftest.$ac_ext >&5
  8143. ac_cv_func_dlopen=no
  8144. fi
  8145. rm -f conftest.err conftest.$ac_objext \
  8146. conftest$ac_exeext conftest.$ac_ext
  8147. fi
  8148. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8149. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8150. if test $ac_cv_func_dlopen = yes; then
  8151. lt_cv_dlopen="dlopen"
  8152. else
  8153. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8154. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8155. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8156. echo $ECHO_N "(cached) $ECHO_C" >&6
  8157. else
  8158. ac_check_lib_save_LIBS=$LIBS
  8159. LIBS="-ldl $LIBS"
  8160. cat >conftest.$ac_ext <<_ACEOF
  8161. /* confdefs.h. */
  8162. _ACEOF
  8163. cat confdefs.h >>conftest.$ac_ext
  8164. cat >>conftest.$ac_ext <<_ACEOF
  8165. /* end confdefs.h. */
  8166. /* Override any gcc2 internal prototype to avoid an error. */
  8167. #ifdef __cplusplus
  8168. extern "C"
  8169. #endif
  8170. /* We use char because int might match the return type of a gcc2
  8171. builtin and then its argument prototype would still apply. */
  8172. char dlopen ();
  8173. int
  8174. main ()
  8175. {
  8176. dlopen ();
  8177. ;
  8178. return 0;
  8179. }
  8180. _ACEOF
  8181. rm -f conftest.$ac_objext conftest$ac_exeext
  8182. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8183. (eval $ac_link) 2>conftest.er1
  8184. ac_status=$?
  8185. grep -v '^ *+' conftest.er1 >conftest.err
  8186. rm -f conftest.er1
  8187. cat conftest.err >&5
  8188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8189. (exit $ac_status); } &&
  8190. { ac_try='test -z "$ac_c_werror_flag"
  8191. || test ! -s conftest.err'
  8192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8193. (eval $ac_try) 2>&5
  8194. ac_status=$?
  8195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8196. (exit $ac_status); }; } &&
  8197. { ac_try='test -s conftest$ac_exeext'
  8198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8199. (eval $ac_try) 2>&5
  8200. ac_status=$?
  8201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8202. (exit $ac_status); }; }; then
  8203. ac_cv_lib_dl_dlopen=yes
  8204. else
  8205. echo "$as_me: failed program was:" >&5
  8206. sed 's/^/| /' conftest.$ac_ext >&5
  8207. ac_cv_lib_dl_dlopen=no
  8208. fi
  8209. rm -f conftest.err conftest.$ac_objext \
  8210. conftest$ac_exeext conftest.$ac_ext
  8211. LIBS=$ac_check_lib_save_LIBS
  8212. fi
  8213. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8214. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8215. if test $ac_cv_lib_dl_dlopen = yes; then
  8216. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8217. else
  8218. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8219. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8220. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8221. echo $ECHO_N "(cached) $ECHO_C" >&6
  8222. else
  8223. ac_check_lib_save_LIBS=$LIBS
  8224. LIBS="-lsvld $LIBS"
  8225. cat >conftest.$ac_ext <<_ACEOF
  8226. /* confdefs.h. */
  8227. _ACEOF
  8228. cat confdefs.h >>conftest.$ac_ext
  8229. cat >>conftest.$ac_ext <<_ACEOF
  8230. /* end confdefs.h. */
  8231. /* Override any gcc2 internal prototype to avoid an error. */
  8232. #ifdef __cplusplus
  8233. extern "C"
  8234. #endif
  8235. /* We use char because int might match the return type of a gcc2
  8236. builtin and then its argument prototype would still apply. */
  8237. char dlopen ();
  8238. int
  8239. main ()
  8240. {
  8241. dlopen ();
  8242. ;
  8243. return 0;
  8244. }
  8245. _ACEOF
  8246. rm -f conftest.$ac_objext conftest$ac_exeext
  8247. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8248. (eval $ac_link) 2>conftest.er1
  8249. ac_status=$?
  8250. grep -v '^ *+' conftest.er1 >conftest.err
  8251. rm -f conftest.er1
  8252. cat conftest.err >&5
  8253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8254. (exit $ac_status); } &&
  8255. { ac_try='test -z "$ac_c_werror_flag"
  8256. || test ! -s conftest.err'
  8257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8258. (eval $ac_try) 2>&5
  8259. ac_status=$?
  8260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8261. (exit $ac_status); }; } &&
  8262. { ac_try='test -s conftest$ac_exeext'
  8263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8264. (eval $ac_try) 2>&5
  8265. ac_status=$?
  8266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8267. (exit $ac_status); }; }; then
  8268. ac_cv_lib_svld_dlopen=yes
  8269. else
  8270. echo "$as_me: failed program was:" >&5
  8271. sed 's/^/| /' conftest.$ac_ext >&5
  8272. ac_cv_lib_svld_dlopen=no
  8273. fi
  8274. rm -f conftest.err conftest.$ac_objext \
  8275. conftest$ac_exeext conftest.$ac_ext
  8276. LIBS=$ac_check_lib_save_LIBS
  8277. fi
  8278. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8279. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8280. if test $ac_cv_lib_svld_dlopen = yes; then
  8281. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8282. else
  8283. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8284. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8285. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8286. echo $ECHO_N "(cached) $ECHO_C" >&6
  8287. else
  8288. ac_check_lib_save_LIBS=$LIBS
  8289. LIBS="-ldld $LIBS"
  8290. cat >conftest.$ac_ext <<_ACEOF
  8291. /* confdefs.h. */
  8292. _ACEOF
  8293. cat confdefs.h >>conftest.$ac_ext
  8294. cat >>conftest.$ac_ext <<_ACEOF
  8295. /* end confdefs.h. */
  8296. /* Override any gcc2 internal prototype to avoid an error. */
  8297. #ifdef __cplusplus
  8298. extern "C"
  8299. #endif
  8300. /* We use char because int might match the return type of a gcc2
  8301. builtin and then its argument prototype would still apply. */
  8302. char dld_link ();
  8303. int
  8304. main ()
  8305. {
  8306. dld_link ();
  8307. ;
  8308. return 0;
  8309. }
  8310. _ACEOF
  8311. rm -f conftest.$ac_objext conftest$ac_exeext
  8312. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8313. (eval $ac_link) 2>conftest.er1
  8314. ac_status=$?
  8315. grep -v '^ *+' conftest.er1 >conftest.err
  8316. rm -f conftest.er1
  8317. cat conftest.err >&5
  8318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8319. (exit $ac_status); } &&
  8320. { ac_try='test -z "$ac_c_werror_flag"
  8321. || test ! -s conftest.err'
  8322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8323. (eval $ac_try) 2>&5
  8324. ac_status=$?
  8325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8326. (exit $ac_status); }; } &&
  8327. { ac_try='test -s conftest$ac_exeext'
  8328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8329. (eval $ac_try) 2>&5
  8330. ac_status=$?
  8331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8332. (exit $ac_status); }; }; then
  8333. ac_cv_lib_dld_dld_link=yes
  8334. else
  8335. echo "$as_me: failed program was:" >&5
  8336. sed 's/^/| /' conftest.$ac_ext >&5
  8337. ac_cv_lib_dld_dld_link=no
  8338. fi
  8339. rm -f conftest.err conftest.$ac_objext \
  8340. conftest$ac_exeext conftest.$ac_ext
  8341. LIBS=$ac_check_lib_save_LIBS
  8342. fi
  8343. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8344. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8345. if test $ac_cv_lib_dld_dld_link = yes; then
  8346. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8347. fi
  8348. fi
  8349. fi
  8350. fi
  8351. fi
  8352. fi
  8353. ;;
  8354. esac
  8355. if test "x$lt_cv_dlopen" != xno; then
  8356. enable_dlopen=yes
  8357. else
  8358. enable_dlopen=no
  8359. fi
  8360. case $lt_cv_dlopen in
  8361. dlopen)
  8362. save_CPPFLAGS="$CPPFLAGS"
  8363. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8364. save_LDFLAGS="$LDFLAGS"
  8365. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8366. save_LIBS="$LIBS"
  8367. LIBS="$lt_cv_dlopen_libs $LIBS"
  8368. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8369. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8370. if test "${lt_cv_dlopen_self+set}" = set; then
  8371. echo $ECHO_N "(cached) $ECHO_C" >&6
  8372. else
  8373. if test "$cross_compiling" = yes; then :
  8374. lt_cv_dlopen_self=cross
  8375. else
  8376. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8377. lt_status=$lt_dlunknown
  8378. cat > conftest.$ac_ext <<EOF
  8379. #line 9225 "configure"
  8380. #include "confdefs.h"
  8381. #if HAVE_DLFCN_H
  8382. #include <dlfcn.h>
  8383. #endif
  8384. #include <stdio.h>
  8385. #ifdef RTLD_GLOBAL
  8386. # define LT_DLGLOBAL RTLD_GLOBAL
  8387. #else
  8388. # ifdef DL_GLOBAL
  8389. # define LT_DLGLOBAL DL_GLOBAL
  8390. # else
  8391. # define LT_DLGLOBAL 0
  8392. # endif
  8393. #endif
  8394. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8395. find out it does not work in some platform. */
  8396. #ifndef LT_DLLAZY_OR_NOW
  8397. # ifdef RTLD_LAZY
  8398. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8399. # else
  8400. # ifdef DL_LAZY
  8401. # define LT_DLLAZY_OR_NOW DL_LAZY
  8402. # else
  8403. # ifdef RTLD_NOW
  8404. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8405. # else
  8406. # ifdef DL_NOW
  8407. # define LT_DLLAZY_OR_NOW DL_NOW
  8408. # else
  8409. # define LT_DLLAZY_OR_NOW 0
  8410. # endif
  8411. # endif
  8412. # endif
  8413. # endif
  8414. #endif
  8415. #ifdef __cplusplus
  8416. extern "C" void exit (int);
  8417. #endif
  8418. void fnord() { int i=42;}
  8419. int main ()
  8420. {
  8421. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8422. int status = $lt_dlunknown;
  8423. if (self)
  8424. {
  8425. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8426. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8427. /* dlclose (self); */
  8428. }
  8429. else
  8430. puts (dlerror ());
  8431. exit (status);
  8432. }
  8433. EOF
  8434. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8435. (eval $ac_link) 2>&5
  8436. ac_status=$?
  8437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8438. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8439. (./conftest; exit; ) >&5 2>/dev/null
  8440. lt_status=$?
  8441. case x$lt_status in
  8442. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8443. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8444. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8445. esac
  8446. else :
  8447. # compilation failed
  8448. lt_cv_dlopen_self=no
  8449. fi
  8450. fi
  8451. rm -fr conftest*
  8452. fi
  8453. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8454. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8455. if test "x$lt_cv_dlopen_self" = xyes; then
  8456. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8457. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8458. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8459. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8460. echo $ECHO_N "(cached) $ECHO_C" >&6
  8461. else
  8462. if test "$cross_compiling" = yes; then :
  8463. lt_cv_dlopen_self_static=cross
  8464. else
  8465. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8466. lt_status=$lt_dlunknown
  8467. cat > conftest.$ac_ext <<EOF
  8468. #line 9325 "configure"
  8469. #include "confdefs.h"
  8470. #if HAVE_DLFCN_H
  8471. #include <dlfcn.h>
  8472. #endif
  8473. #include <stdio.h>
  8474. #ifdef RTLD_GLOBAL
  8475. # define LT_DLGLOBAL RTLD_GLOBAL
  8476. #else
  8477. # ifdef DL_GLOBAL
  8478. # define LT_DLGLOBAL DL_GLOBAL
  8479. # else
  8480. # define LT_DLGLOBAL 0
  8481. # endif
  8482. #endif
  8483. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8484. find out it does not work in some platform. */
  8485. #ifndef LT_DLLAZY_OR_NOW
  8486. # ifdef RTLD_LAZY
  8487. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8488. # else
  8489. # ifdef DL_LAZY
  8490. # define LT_DLLAZY_OR_NOW DL_LAZY
  8491. # else
  8492. # ifdef RTLD_NOW
  8493. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8494. # else
  8495. # ifdef DL_NOW
  8496. # define LT_DLLAZY_OR_NOW DL_NOW
  8497. # else
  8498. # define LT_DLLAZY_OR_NOW 0
  8499. # endif
  8500. # endif
  8501. # endif
  8502. # endif
  8503. #endif
  8504. #ifdef __cplusplus
  8505. extern "C" void exit (int);
  8506. #endif
  8507. void fnord() { int i=42;}
  8508. int main ()
  8509. {
  8510. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8511. int status = $lt_dlunknown;
  8512. if (self)
  8513. {
  8514. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8515. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8516. /* dlclose (self); */
  8517. }
  8518. else
  8519. puts (dlerror ());
  8520. exit (status);
  8521. }
  8522. EOF
  8523. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8524. (eval $ac_link) 2>&5
  8525. ac_status=$?
  8526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8527. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8528. (./conftest; exit; ) >&5 2>/dev/null
  8529. lt_status=$?
  8530. case x$lt_status in
  8531. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8532. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8533. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8534. esac
  8535. else :
  8536. # compilation failed
  8537. lt_cv_dlopen_self_static=no
  8538. fi
  8539. fi
  8540. rm -fr conftest*
  8541. fi
  8542. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8543. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8544. fi
  8545. CPPFLAGS="$save_CPPFLAGS"
  8546. LDFLAGS="$save_LDFLAGS"
  8547. LIBS="$save_LIBS"
  8548. ;;
  8549. esac
  8550. case $lt_cv_dlopen_self in
  8551. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8552. *) enable_dlopen_self=unknown ;;
  8553. esac
  8554. case $lt_cv_dlopen_self_static in
  8555. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8556. *) enable_dlopen_self_static=unknown ;;
  8557. esac
  8558. fi
  8559. # Report which library types will actually be built
  8560. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8561. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8562. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8563. echo "${ECHO_T}$can_build_shared" >&6
  8564. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8565. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8566. test "$can_build_shared" = "no" && enable_shared=no
  8567. # On AIX, shared libraries and static libraries use the same namespace, and
  8568. # are all built from PIC.
  8569. case $host_os in
  8570. aix3*)
  8571. test "$enable_shared" = yes && enable_static=no
  8572. if test -n "$RANLIB"; then
  8573. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8574. postinstall_cmds='$RANLIB $lib'
  8575. fi
  8576. ;;
  8577. aix4* | aix5*)
  8578. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8579. test "$enable_shared" = yes && enable_static=no
  8580. fi
  8581. ;;
  8582. esac
  8583. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8584. echo "${ECHO_T}$enable_shared" >&6
  8585. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8586. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8587. # Make sure either enable_shared or enable_static is yes.
  8588. test "$enable_shared" = yes || enable_static=yes
  8589. echo "$as_me:$LINENO: result: $enable_static" >&5
  8590. echo "${ECHO_T}$enable_static" >&6
  8591. # The else clause should only fire when bootstrapping the
  8592. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8593. # with your package, and you will get complaints that there are
  8594. # no rules to generate ltmain.sh.
  8595. if test -f "$ltmain"; then
  8596. # See if we are running on zsh, and set the options which allow our commands through
  8597. # without removal of \ escapes.
  8598. if test -n "${ZSH_VERSION+set}" ; then
  8599. setopt NO_GLOB_SUBST
  8600. fi
  8601. # Now quote all the things that may contain metacharacters while being
  8602. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8603. # variables and quote the copies for generation of the libtool script.
  8604. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8605. SED SHELL STRIP \
  8606. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8607. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8608. deplibs_check_method reload_flag reload_cmds need_locks \
  8609. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8610. lt_cv_sys_global_symbol_to_c_name_address \
  8611. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8612. old_postinstall_cmds old_postuninstall_cmds \
  8613. compiler \
  8614. CC \
  8615. LD \
  8616. lt_prog_compiler_wl \
  8617. lt_prog_compiler_pic \
  8618. lt_prog_compiler_static \
  8619. lt_prog_compiler_no_builtin_flag \
  8620. export_dynamic_flag_spec \
  8621. thread_safe_flag_spec \
  8622. whole_archive_flag_spec \
  8623. enable_shared_with_static_runtimes \
  8624. old_archive_cmds \
  8625. old_archive_from_new_cmds \
  8626. predep_objects \
  8627. postdep_objects \
  8628. predeps \
  8629. postdeps \
  8630. compiler_lib_search_path \
  8631. archive_cmds \
  8632. archive_expsym_cmds \
  8633. postinstall_cmds \
  8634. postuninstall_cmds \
  8635. old_archive_from_expsyms_cmds \
  8636. allow_undefined_flag \
  8637. no_undefined_flag \
  8638. export_symbols_cmds \
  8639. hardcode_libdir_flag_spec \
  8640. hardcode_libdir_flag_spec_ld \
  8641. hardcode_libdir_separator \
  8642. hardcode_automatic \
  8643. module_cmds \
  8644. module_expsym_cmds \
  8645. lt_cv_prog_compiler_c_o \
  8646. exclude_expsyms \
  8647. include_expsyms; do
  8648. case $var in
  8649. old_archive_cmds | \
  8650. old_archive_from_new_cmds | \
  8651. archive_cmds | \
  8652. archive_expsym_cmds | \
  8653. module_cmds | \
  8654. module_expsym_cmds | \
  8655. old_archive_from_expsyms_cmds | \
  8656. export_symbols_cmds | \
  8657. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8658. postinstall_cmds | postuninstall_cmds | \
  8659. old_postinstall_cmds | old_postuninstall_cmds | \
  8660. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8661. # Double-quote double-evaled strings.
  8662. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8663. ;;
  8664. *)
  8665. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8666. ;;
  8667. esac
  8668. done
  8669. case $lt_echo in
  8670. *'\$0 --fallback-echo"')
  8671. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8672. ;;
  8673. esac
  8674. cfgfile="${ofile}T"
  8675. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8676. $rm -f "$cfgfile"
  8677. { echo "$as_me:$LINENO: creating $ofile" >&5
  8678. echo "$as_me: creating $ofile" >&6;}
  8679. cat <<__EOF__ >> "$cfgfile"
  8680. #! $SHELL
  8681. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8682. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8683. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8684. #
  8685. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8686. # Free Software Foundation, Inc.
  8687. #
  8688. # This file is part of GNU Libtool:
  8689. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8690. #
  8691. # This program is free software; you can redistribute it and/or modify
  8692. # it under the terms of the GNU General Public License as published by
  8693. # the Free Software Foundation; either version 2 of the License, or
  8694. # (at your option) any later version.
  8695. #
  8696. # This program is distributed in the hope that it will be useful, but
  8697. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8698. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8699. # General Public License for more details.
  8700. #
  8701. # You should have received a copy of the GNU General Public License
  8702. # along with this program; if not, write to the Free Software
  8703. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8704. #
  8705. # As a special exception to the GNU General Public License, if you
  8706. # distribute this file as part of a program that contains a
  8707. # configuration script generated by Autoconf, you may include it under
  8708. # the same distribution terms that you use for the rest of that program.
  8709. # A sed program that does not truncate output.
  8710. SED=$lt_SED
  8711. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8712. Xsed="$SED -e 1s/^X//"
  8713. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8714. # if CDPATH is set.
  8715. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8716. # The names of the tagged configurations supported by this script.
  8717. available_tags=
  8718. # ### BEGIN LIBTOOL CONFIG
  8719. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8720. # Shell to use when invoking shell scripts.
  8721. SHELL=$lt_SHELL
  8722. # Whether or not to build shared libraries.
  8723. build_libtool_libs=$enable_shared
  8724. # Whether or not to build static libraries.
  8725. build_old_libs=$enable_static
  8726. # Whether or not to add -lc for building shared libraries.
  8727. build_libtool_need_lc=$archive_cmds_need_lc
  8728. # Whether or not to disallow shared libs when runtime libs are static
  8729. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8730. # Whether or not to optimize for fast installation.
  8731. fast_install=$enable_fast_install
  8732. # The host system.
  8733. host_alias=$host_alias
  8734. host=$host
  8735. host_os=$host_os
  8736. # The build system.
  8737. build_alias=$build_alias
  8738. build=$build
  8739. build_os=$build_os
  8740. # An echo program that does not interpret backslashes.
  8741. echo=$lt_echo
  8742. # The archiver.
  8743. AR=$lt_AR
  8744. AR_FLAGS=$lt_AR_FLAGS
  8745. # A C compiler.
  8746. LTCC=$lt_LTCC
  8747. # LTCC compiler flags.
  8748. LTCFLAGS=$lt_LTCFLAGS
  8749. # A language-specific compiler.
  8750. CC=$lt_compiler
  8751. # Is the compiler the GNU C compiler?
  8752. with_gcc=$GCC
  8753. # An ERE matcher.
  8754. EGREP=$lt_EGREP
  8755. # The linker used to build libraries.
  8756. LD=$lt_LD
  8757. # Whether we need hard or soft links.
  8758. LN_S=$lt_LN_S
  8759. # A BSD-compatible nm program.
  8760. NM=$lt_NM
  8761. # A symbol stripping program
  8762. STRIP=$lt_STRIP
  8763. # Used to examine libraries when file_magic_cmd begins "file"
  8764. MAGIC_CMD=$MAGIC_CMD
  8765. # Used on cygwin: DLL creation program.
  8766. DLLTOOL="$DLLTOOL"
  8767. # Used on cygwin: object dumper.
  8768. OBJDUMP="$OBJDUMP"
  8769. # Used on cygwin: assembler.
  8770. AS="$AS"
  8771. # The name of the directory that contains temporary libtool files.
  8772. objdir=$objdir
  8773. # How to create reloadable object files.
  8774. reload_flag=$lt_reload_flag
  8775. reload_cmds=$lt_reload_cmds
  8776. # How to pass a linker flag through the compiler.
  8777. wl=$lt_lt_prog_compiler_wl
  8778. # Object file suffix (normally "o").
  8779. objext="$ac_objext"
  8780. # Old archive suffix (normally "a").
  8781. libext="$libext"
  8782. # Shared library suffix (normally ".so").
  8783. shrext_cmds='$shrext_cmds'
  8784. # Executable file suffix (normally "").
  8785. exeext="$exeext"
  8786. # Additional compiler flags for building library objects.
  8787. pic_flag=$lt_lt_prog_compiler_pic
  8788. pic_mode=$pic_mode
  8789. # What is the maximum length of a command?
  8790. max_cmd_len=$lt_cv_sys_max_cmd_len
  8791. # Does compiler simultaneously support -c and -o options?
  8792. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8793. # Must we lock files when doing compilation?
  8794. need_locks=$lt_need_locks
  8795. # Do we need the lib prefix for modules?
  8796. need_lib_prefix=$need_lib_prefix
  8797. # Do we need a version for libraries?
  8798. need_version=$need_version
  8799. # Whether dlopen is supported.
  8800. dlopen_support=$enable_dlopen
  8801. # Whether dlopen of programs is supported.
  8802. dlopen_self=$enable_dlopen_self
  8803. # Whether dlopen of statically linked programs is supported.
  8804. dlopen_self_static=$enable_dlopen_self_static
  8805. # Compiler flag to prevent dynamic linking.
  8806. link_static_flag=$lt_lt_prog_compiler_static
  8807. # Compiler flag to turn off builtin functions.
  8808. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8809. # Compiler flag to allow reflexive dlopens.
  8810. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8811. # Compiler flag to generate shared objects directly from archives.
  8812. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8813. # Compiler flag to generate thread-safe objects.
  8814. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8815. # Library versioning type.
  8816. version_type=$version_type
  8817. # Format of library name prefix.
  8818. libname_spec=$lt_libname_spec
  8819. # List of archive names. First name is the real one, the rest are links.
  8820. # The last name is the one that the linker finds with -lNAME.
  8821. library_names_spec=$lt_library_names_spec
  8822. # The coded name of the library, if different from the real name.
  8823. soname_spec=$lt_soname_spec
  8824. # Commands used to build and install an old-style archive.
  8825. RANLIB=$lt_RANLIB
  8826. old_archive_cmds=$lt_old_archive_cmds
  8827. old_postinstall_cmds=$lt_old_postinstall_cmds
  8828. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8829. # Create an old-style archive from a shared archive.
  8830. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8831. # Create a temporary old-style archive to link instead of a shared archive.
  8832. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8833. # Commands used to build and install a shared archive.
  8834. archive_cmds=$lt_archive_cmds
  8835. archive_expsym_cmds=$lt_archive_expsym_cmds
  8836. postinstall_cmds=$lt_postinstall_cmds
  8837. postuninstall_cmds=$lt_postuninstall_cmds
  8838. # Commands used to build a loadable module (assumed same as above if empty)
  8839. module_cmds=$lt_module_cmds
  8840. module_expsym_cmds=$lt_module_expsym_cmds
  8841. # Commands to strip libraries.
  8842. old_striplib=$lt_old_striplib
  8843. striplib=$lt_striplib
  8844. # Dependencies to place before the objects being linked to create a
  8845. # shared library.
  8846. predep_objects=$lt_predep_objects
  8847. # Dependencies to place after the objects being linked to create a
  8848. # shared library.
  8849. postdep_objects=$lt_postdep_objects
  8850. # Dependencies to place before the objects being linked to create a
  8851. # shared library.
  8852. predeps=$lt_predeps
  8853. # Dependencies to place after the objects being linked to create a
  8854. # shared library.
  8855. postdeps=$lt_postdeps
  8856. # The library search path used internally by the compiler when linking
  8857. # a shared library.
  8858. compiler_lib_search_path=$lt_compiler_lib_search_path
  8859. # Method to check whether dependent libraries are shared objects.
  8860. deplibs_check_method=$lt_deplibs_check_method
  8861. # Command to use when deplibs_check_method == file_magic.
  8862. file_magic_cmd=$lt_file_magic_cmd
  8863. # Flag that allows shared libraries with undefined symbols to be built.
  8864. allow_undefined_flag=$lt_allow_undefined_flag
  8865. # Flag that forces no undefined symbols.
  8866. no_undefined_flag=$lt_no_undefined_flag
  8867. # Commands used to finish a libtool library installation in a directory.
  8868. finish_cmds=$lt_finish_cmds
  8869. # Same as above, but a single script fragment to be evaled but not shown.
  8870. finish_eval=$lt_finish_eval
  8871. # Take the output of nm and produce a listing of raw symbols and C names.
  8872. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8873. # Transform the output of nm in a proper C declaration
  8874. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8875. # Transform the output of nm in a C name address pair
  8876. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8877. # This is the shared library runtime path variable.
  8878. runpath_var=$runpath_var
  8879. # This is the shared library path variable.
  8880. shlibpath_var=$shlibpath_var
  8881. # Is shlibpath searched before the hard-coded library search path?
  8882. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8883. # How to hardcode a shared library path into an executable.
  8884. hardcode_action=$hardcode_action
  8885. # Whether we should hardcode library paths into libraries.
  8886. hardcode_into_libs=$hardcode_into_libs
  8887. # Flag to hardcode \$libdir into a binary during linking.
  8888. # This must work even if \$libdir does not exist.
  8889. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8890. # If ld is used when linking, flag to hardcode \$libdir into
  8891. # a binary during linking. This must work even if \$libdir does
  8892. # not exist.
  8893. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8894. # Whether we need a single -rpath flag with a separated argument.
  8895. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8896. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8897. # resulting binary.
  8898. hardcode_direct=$hardcode_direct
  8899. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8900. # resulting binary.
  8901. hardcode_minus_L=$hardcode_minus_L
  8902. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8903. # the resulting binary.
  8904. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8905. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8906. # and all subsequent libraries and executables linked against it.
  8907. hardcode_automatic=$hardcode_automatic
  8908. # Variables whose values should be saved in libtool wrapper scripts and
  8909. # restored at relink time.
  8910. variables_saved_for_relink="$variables_saved_for_relink"
  8911. # Whether libtool must link a program against all its dependency libraries.
  8912. link_all_deplibs=$link_all_deplibs
  8913. # Compile-time system search path for libraries
  8914. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8915. # Run-time system search path for libraries
  8916. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8917. # Fix the shell variable \$srcfile for the compiler.
  8918. fix_srcfile_path="$fix_srcfile_path"
  8919. # Set to yes if exported symbols are required.
  8920. always_export_symbols=$always_export_symbols
  8921. # The commands to list exported symbols.
  8922. export_symbols_cmds=$lt_export_symbols_cmds
  8923. # The commands to extract the exported symbol list from a shared archive.
  8924. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8925. # Symbols that should not be listed in the preloaded symbols.
  8926. exclude_expsyms=$lt_exclude_expsyms
  8927. # Symbols that must always be exported.
  8928. include_expsyms=$lt_include_expsyms
  8929. # ### END LIBTOOL CONFIG
  8930. __EOF__
  8931. case $host_os in
  8932. aix3*)
  8933. cat <<\EOF >> "$cfgfile"
  8934. # AIX sometimes has problems with the GCC collect2 program. For some
  8935. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8936. # vanish in a puff of smoke.
  8937. if test "X${COLLECT_NAMES+set}" != Xset; then
  8938. COLLECT_NAMES=
  8939. export COLLECT_NAMES
  8940. fi
  8941. EOF
  8942. ;;
  8943. esac
  8944. # We use sed instead of cat because bash on DJGPP gets confused if
  8945. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8946. # text mode, it properly converts lines to CR/LF. This bash problem
  8947. # is reportedly fixed, but why not run on old versions too?
  8948. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8949. mv -f "$cfgfile" "$ofile" || \
  8950. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8951. chmod +x "$ofile"
  8952. else
  8953. # If there is no Makefile yet, we rely on a make rule to execute
  8954. # `config.status --recheck' to rerun these tests and create the
  8955. # libtool script then.
  8956. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8957. if test -f "$ltmain_in"; then
  8958. test -f Makefile && make "$ltmain"
  8959. fi
  8960. fi
  8961. ac_ext=c
  8962. ac_cpp='$CPP $CPPFLAGS'
  8963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8966. CC="$lt_save_CC"
  8967. # Check whether --with-tags or --without-tags was given.
  8968. if test "${with_tags+set}" = set; then
  8969. withval="$with_tags"
  8970. tagnames="$withval"
  8971. fi;
  8972. if test -f "$ltmain" && test -n "$tagnames"; then
  8973. if test ! -f "${ofile}"; then
  8974. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8975. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8976. fi
  8977. if test -z "$LTCC"; then
  8978. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8979. if test -z "$LTCC"; then
  8980. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8981. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8982. else
  8983. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8984. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8985. fi
  8986. fi
  8987. if test -z "$LTCFLAGS"; then
  8988. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8989. fi
  8990. # Extract list of available tagged configurations in $ofile.
  8991. # Note that this assumes the entire list is on one line.
  8992. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8993. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8994. for tagname in $tagnames; do
  8995. IFS="$lt_save_ifs"
  8996. # Check whether tagname contains only valid characters
  8997. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8998. "") ;;
  8999. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9000. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9001. { (exit 1); exit 1; }; }
  9002. ;;
  9003. esac
  9004. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9005. then
  9006. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9007. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9008. { (exit 1); exit 1; }; }
  9009. fi
  9010. # Update the list of available tags.
  9011. if test -n "$tagname"; then
  9012. echo appending configuration tag \"$tagname\" to $ofile
  9013. case $tagname in
  9014. CXX)
  9015. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9016. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9017. (test "X$CXX" != "Xg++"))) ; then
  9018. ac_ext=cc
  9019. ac_cpp='$CXXCPP $CPPFLAGS'
  9020. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9021. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9022. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9023. archive_cmds_need_lc_CXX=no
  9024. allow_undefined_flag_CXX=
  9025. always_export_symbols_CXX=no
  9026. archive_expsym_cmds_CXX=
  9027. export_dynamic_flag_spec_CXX=
  9028. hardcode_direct_CXX=no
  9029. hardcode_libdir_flag_spec_CXX=
  9030. hardcode_libdir_flag_spec_ld_CXX=
  9031. hardcode_libdir_separator_CXX=
  9032. hardcode_minus_L_CXX=no
  9033. hardcode_shlibpath_var_CXX=unsupported
  9034. hardcode_automatic_CXX=no
  9035. module_cmds_CXX=
  9036. module_expsym_cmds_CXX=
  9037. link_all_deplibs_CXX=unknown
  9038. old_archive_cmds_CXX=$old_archive_cmds
  9039. no_undefined_flag_CXX=
  9040. whole_archive_flag_spec_CXX=
  9041. enable_shared_with_static_runtimes_CXX=no
  9042. # Dependencies to place before and after the object being linked:
  9043. predep_objects_CXX=
  9044. postdep_objects_CXX=
  9045. predeps_CXX=
  9046. postdeps_CXX=
  9047. compiler_lib_search_path_CXX=
  9048. # Source file extension for C++ test sources.
  9049. ac_ext=cpp
  9050. # Object file extension for compiled C++ test sources.
  9051. objext=o
  9052. objext_CXX=$objext
  9053. # Code to be used in simple compile tests
  9054. lt_simple_compile_test_code="int some_variable = 0;\n"
  9055. # Code to be used in simple link tests
  9056. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9057. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9058. # If no C compiler was specified, use CC.
  9059. LTCC=${LTCC-"$CC"}
  9060. # If no C compiler flags were specified, use CFLAGS.
  9061. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9062. # Allow CC to be a program name with arguments.
  9063. compiler=$CC
  9064. # save warnings/boilerplate of simple test code
  9065. ac_outfile=conftest.$ac_objext
  9066. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9067. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9068. _lt_compiler_boilerplate=`cat conftest.err`
  9069. $rm conftest*
  9070. ac_outfile=conftest.$ac_objext
  9071. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9072. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9073. _lt_linker_boilerplate=`cat conftest.err`
  9074. $rm conftest*
  9075. # Allow CC to be a program name with arguments.
  9076. lt_save_CC=$CC
  9077. lt_save_LD=$LD
  9078. lt_save_GCC=$GCC
  9079. GCC=$GXX
  9080. lt_save_with_gnu_ld=$with_gnu_ld
  9081. lt_save_path_LD=$lt_cv_path_LD
  9082. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9083. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9084. else
  9085. $as_unset lt_cv_prog_gnu_ld
  9086. fi
  9087. if test -n "${lt_cv_path_LDCXX+set}"; then
  9088. lt_cv_path_LD=$lt_cv_path_LDCXX
  9089. else
  9090. $as_unset lt_cv_path_LD
  9091. fi
  9092. test -z "${LDCXX+set}" || LD=$LDCXX
  9093. CC=${CXX-"c++"}
  9094. compiler=$CC
  9095. compiler_CXX=$CC
  9096. for cc_temp in $compiler""; do
  9097. case $cc_temp in
  9098. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9099. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9100. \-*) ;;
  9101. *) break;;
  9102. esac
  9103. done
  9104. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9105. # We don't want -fno-exception wen compiling C++ code, so set the
  9106. # no_builtin_flag separately
  9107. if test "$GXX" = yes; then
  9108. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9109. else
  9110. lt_prog_compiler_no_builtin_flag_CXX=
  9111. fi
  9112. if test "$GXX" = yes; then
  9113. # Set up default GNU C++ configuration
  9114. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9115. if test "${with_gnu_ld+set}" = set; then
  9116. withval="$with_gnu_ld"
  9117. test "$withval" = no || with_gnu_ld=yes
  9118. else
  9119. with_gnu_ld=no
  9120. fi;
  9121. ac_prog=ld
  9122. if test "$GCC" = yes; then
  9123. # Check if gcc -print-prog-name=ld gives a path.
  9124. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9125. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9126. case $host in
  9127. *-*-mingw*)
  9128. # gcc leaves a trailing carriage return which upsets mingw
  9129. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9130. *)
  9131. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9132. esac
  9133. case $ac_prog in
  9134. # Accept absolute paths.
  9135. [\\/]* | ?:[\\/]*)
  9136. re_direlt='/[^/][^/]*/\.\./'
  9137. # Canonicalize the pathname of ld
  9138. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9139. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9140. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9141. done
  9142. test -z "$LD" && LD="$ac_prog"
  9143. ;;
  9144. "")
  9145. # If it fails, then pretend we aren't using GCC.
  9146. ac_prog=ld
  9147. ;;
  9148. *)
  9149. # If it is relative, then search for the first ld in PATH.
  9150. with_gnu_ld=unknown
  9151. ;;
  9152. esac
  9153. elif test "$with_gnu_ld" = yes; then
  9154. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9155. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9156. else
  9157. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9158. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9159. fi
  9160. if test "${lt_cv_path_LD+set}" = set; then
  9161. echo $ECHO_N "(cached) $ECHO_C" >&6
  9162. else
  9163. if test -z "$LD"; then
  9164. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9165. for ac_dir in $PATH; do
  9166. IFS="$lt_save_ifs"
  9167. test -z "$ac_dir" && ac_dir=.
  9168. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9169. lt_cv_path_LD="$ac_dir/$ac_prog"
  9170. # Check to see if the program is GNU ld. I'd rather use --version,
  9171. # but apparently some variants of GNU ld only accept -v.
  9172. # Break only if it was the GNU/non-GNU ld that we prefer.
  9173. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9174. *GNU* | *'with BFD'*)
  9175. test "$with_gnu_ld" != no && break
  9176. ;;
  9177. *)
  9178. test "$with_gnu_ld" != yes && break
  9179. ;;
  9180. esac
  9181. fi
  9182. done
  9183. IFS="$lt_save_ifs"
  9184. else
  9185. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9186. fi
  9187. fi
  9188. LD="$lt_cv_path_LD"
  9189. if test -n "$LD"; then
  9190. echo "$as_me:$LINENO: result: $LD" >&5
  9191. echo "${ECHO_T}$LD" >&6
  9192. else
  9193. echo "$as_me:$LINENO: result: no" >&5
  9194. echo "${ECHO_T}no" >&6
  9195. fi
  9196. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9197. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9198. { (exit 1); exit 1; }; }
  9199. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9200. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9201. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9202. echo $ECHO_N "(cached) $ECHO_C" >&6
  9203. else
  9204. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9205. case `$LD -v 2>&1 </dev/null` in
  9206. *GNU* | *'with BFD'*)
  9207. lt_cv_prog_gnu_ld=yes
  9208. ;;
  9209. *)
  9210. lt_cv_prog_gnu_ld=no
  9211. ;;
  9212. esac
  9213. fi
  9214. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9215. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9216. with_gnu_ld=$lt_cv_prog_gnu_ld
  9217. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9218. # archiving commands below assume that GNU ld is being used.
  9219. if test "$with_gnu_ld" = yes; then
  9220. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9221. 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'
  9222. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9223. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9224. # If archive_cmds runs LD, not CC, wlarc should be empty
  9225. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9226. # investigate it a little bit more. (MM)
  9227. wlarc='${wl}'
  9228. # ancient GNU ld didn't support --whole-archive et. al.
  9229. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9230. grep 'no-whole-archive' > /dev/null; then
  9231. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9232. else
  9233. whole_archive_flag_spec_CXX=
  9234. fi
  9235. else
  9236. with_gnu_ld=no
  9237. wlarc=
  9238. # A generic and very simple default shared library creation
  9239. # command for GNU C++ for the case where it uses the native
  9240. # linker, instead of GNU ld. If possible, this setting should
  9241. # overridden to take advantage of the native linker features on
  9242. # the platform it is being used on.
  9243. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9244. fi
  9245. # Commands to make compiler produce verbose output that lists
  9246. # what "hidden" libraries, object files and flags are used when
  9247. # linking a shared library.
  9248. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9249. else
  9250. GXX=no
  9251. with_gnu_ld=no
  9252. wlarc=
  9253. fi
  9254. # PORTME: fill in a description of your system's C++ link characteristics
  9255. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9256. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9257. ld_shlibs_CXX=yes
  9258. case $host_os in
  9259. aix3*)
  9260. # FIXME: insert proper C++ library support
  9261. ld_shlibs_CXX=no
  9262. ;;
  9263. aix4* | aix5*)
  9264. if test "$host_cpu" = ia64; then
  9265. # On IA64, the linker does run time linking by default, so we don't
  9266. # have to do anything special.
  9267. aix_use_runtimelinking=no
  9268. exp_sym_flag='-Bexport'
  9269. no_entry_flag=""
  9270. else
  9271. aix_use_runtimelinking=no
  9272. # Test if we are trying to use run time linking or normal
  9273. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9274. # need to do runtime linking.
  9275. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9276. for ld_flag in $LDFLAGS; do
  9277. case $ld_flag in
  9278. *-brtl*)
  9279. aix_use_runtimelinking=yes
  9280. break
  9281. ;;
  9282. esac
  9283. done
  9284. ;;
  9285. esac
  9286. exp_sym_flag='-bexport'
  9287. no_entry_flag='-bnoentry'
  9288. fi
  9289. # When large executables or shared objects are built, AIX ld can
  9290. # have problems creating the table of contents. If linking a library
  9291. # or program results in "error TOC overflow" add -mminimal-toc to
  9292. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9293. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9294. archive_cmds_CXX=''
  9295. hardcode_direct_CXX=yes
  9296. hardcode_libdir_separator_CXX=':'
  9297. link_all_deplibs_CXX=yes
  9298. if test "$GXX" = yes; then
  9299. case $host_os in aix4.[012]|aix4.[012].*)
  9300. # We only want to do this on AIX 4.2 and lower, the check
  9301. # below for broken collect2 doesn't work under 4.3+
  9302. collect2name=`${CC} -print-prog-name=collect2`
  9303. if test -f "$collect2name" && \
  9304. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9305. then
  9306. # We have reworked collect2
  9307. hardcode_direct_CXX=yes
  9308. else
  9309. # We have old collect2
  9310. hardcode_direct_CXX=unsupported
  9311. # It fails to find uninstalled libraries when the uninstalled
  9312. # path is not listed in the libpath. Setting hardcode_minus_L
  9313. # to unsupported forces relinking
  9314. hardcode_minus_L_CXX=yes
  9315. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9316. hardcode_libdir_separator_CXX=
  9317. fi
  9318. ;;
  9319. esac
  9320. shared_flag='-shared'
  9321. if test "$aix_use_runtimelinking" = yes; then
  9322. shared_flag="$shared_flag "'${wl}-G'
  9323. fi
  9324. else
  9325. # not using gcc
  9326. if test "$host_cpu" = ia64; then
  9327. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9328. # chokes on -Wl,-G. The following line is correct:
  9329. shared_flag='-G'
  9330. else
  9331. if test "$aix_use_runtimelinking" = yes; then
  9332. shared_flag='${wl}-G'
  9333. else
  9334. shared_flag='${wl}-bM:SRE'
  9335. fi
  9336. fi
  9337. fi
  9338. # It seems that -bexpall does not export symbols beginning with
  9339. # underscore (_), so it is better to generate a list of symbols to export.
  9340. always_export_symbols_CXX=yes
  9341. if test "$aix_use_runtimelinking" = yes; then
  9342. # Warning - without using the other runtime loading flags (-brtl),
  9343. # -berok will link without error, but may produce a broken library.
  9344. allow_undefined_flag_CXX='-berok'
  9345. # Determine the default libpath from the value encoded in an empty executable.
  9346. cat >conftest.$ac_ext <<_ACEOF
  9347. /* confdefs.h. */
  9348. _ACEOF
  9349. cat confdefs.h >>conftest.$ac_ext
  9350. cat >>conftest.$ac_ext <<_ACEOF
  9351. /* end confdefs.h. */
  9352. int
  9353. main ()
  9354. {
  9355. ;
  9356. return 0;
  9357. }
  9358. _ACEOF
  9359. rm -f conftest.$ac_objext conftest$ac_exeext
  9360. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9361. (eval $ac_link) 2>conftest.er1
  9362. ac_status=$?
  9363. grep -v '^ *+' conftest.er1 >conftest.err
  9364. rm -f conftest.er1
  9365. cat conftest.err >&5
  9366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9367. (exit $ac_status); } &&
  9368. { ac_try='test -z "$ac_cxx_werror_flag"
  9369. || test ! -s conftest.err'
  9370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9371. (eval $ac_try) 2>&5
  9372. ac_status=$?
  9373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9374. (exit $ac_status); }; } &&
  9375. { ac_try='test -s conftest$ac_exeext'
  9376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9377. (eval $ac_try) 2>&5
  9378. ac_status=$?
  9379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9380. (exit $ac_status); }; }; then
  9381. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9382. }'`
  9383. # Check for a 64-bit object if we didn't find anything.
  9384. 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; }
  9385. }'`; fi
  9386. else
  9387. echo "$as_me: failed program was:" >&5
  9388. sed 's/^/| /' conftest.$ac_ext >&5
  9389. fi
  9390. rm -f conftest.err conftest.$ac_objext \
  9391. conftest$ac_exeext conftest.$ac_ext
  9392. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9393. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9394. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9395. else
  9396. if test "$host_cpu" = ia64; then
  9397. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9398. allow_undefined_flag_CXX="-z nodefs"
  9399. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9400. else
  9401. # Determine the default libpath from the value encoded in an empty executable.
  9402. cat >conftest.$ac_ext <<_ACEOF
  9403. /* confdefs.h. */
  9404. _ACEOF
  9405. cat confdefs.h >>conftest.$ac_ext
  9406. cat >>conftest.$ac_ext <<_ACEOF
  9407. /* end confdefs.h. */
  9408. int
  9409. main ()
  9410. {
  9411. ;
  9412. return 0;
  9413. }
  9414. _ACEOF
  9415. rm -f conftest.$ac_objext conftest$ac_exeext
  9416. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9417. (eval $ac_link) 2>conftest.er1
  9418. ac_status=$?
  9419. grep -v '^ *+' conftest.er1 >conftest.err
  9420. rm -f conftest.er1
  9421. cat conftest.err >&5
  9422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9423. (exit $ac_status); } &&
  9424. { ac_try='test -z "$ac_cxx_werror_flag"
  9425. || test ! -s conftest.err'
  9426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9427. (eval $ac_try) 2>&5
  9428. ac_status=$?
  9429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9430. (exit $ac_status); }; } &&
  9431. { ac_try='test -s conftest$ac_exeext'
  9432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9433. (eval $ac_try) 2>&5
  9434. ac_status=$?
  9435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9436. (exit $ac_status); }; }; then
  9437. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9438. }'`
  9439. # Check for a 64-bit object if we didn't find anything.
  9440. 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; }
  9441. }'`; fi
  9442. else
  9443. echo "$as_me: failed program was:" >&5
  9444. sed 's/^/| /' conftest.$ac_ext >&5
  9445. fi
  9446. rm -f conftest.err conftest.$ac_objext \
  9447. conftest$ac_exeext conftest.$ac_ext
  9448. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9449. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9450. # Warning - without using the other run time loading flags,
  9451. # -berok will link without error, but may produce a broken library.
  9452. no_undefined_flag_CXX=' ${wl}-bernotok'
  9453. allow_undefined_flag_CXX=' ${wl}-berok'
  9454. # Exported symbols can be pulled into shared objects from archives
  9455. whole_archive_flag_spec_CXX='$convenience'
  9456. archive_cmds_need_lc_CXX=yes
  9457. # This is similar to how AIX traditionally builds its shared libraries.
  9458. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9459. fi
  9460. fi
  9461. ;;
  9462. beos*)
  9463. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9464. allow_undefined_flag_CXX=unsupported
  9465. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9466. # support --undefined. This deserves some investigation. FIXME
  9467. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9468. else
  9469. ld_shlibs_CXX=no
  9470. fi
  9471. ;;
  9472. chorus*)
  9473. case $cc_basename in
  9474. *)
  9475. # FIXME: insert proper C++ library support
  9476. ld_shlibs_CXX=no
  9477. ;;
  9478. esac
  9479. ;;
  9480. cygwin* | mingw* | pw32*)
  9481. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9482. # as there is no search path for DLLs.
  9483. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9484. allow_undefined_flag_CXX=unsupported
  9485. always_export_symbols_CXX=no
  9486. enable_shared_with_static_runtimes_CXX=yes
  9487. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9488. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9489. # If the export-symbols file already is a .def file (1st line
  9490. # is EXPORTS), use it as is; otherwise, prepend...
  9491. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9492. cp $export_symbols $output_objdir/$soname.def;
  9493. else
  9494. echo EXPORTS > $output_objdir/$soname.def;
  9495. cat $export_symbols >> $output_objdir/$soname.def;
  9496. fi~
  9497. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9498. else
  9499. ld_shlibs_CXX=no
  9500. fi
  9501. ;;
  9502. darwin* | rhapsody*)
  9503. case $host_os in
  9504. rhapsody* | darwin1.[012])
  9505. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9506. ;;
  9507. *) # Darwin 1.3 on
  9508. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9509. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9510. else
  9511. case ${MACOSX_DEPLOYMENT_TARGET} in
  9512. 10.[012])
  9513. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9514. ;;
  9515. 10.*)
  9516. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9517. ;;
  9518. esac
  9519. fi
  9520. ;;
  9521. esac
  9522. archive_cmds_need_lc_CXX=no
  9523. hardcode_direct_CXX=no
  9524. hardcode_automatic_CXX=yes
  9525. hardcode_shlibpath_var_CXX=unsupported
  9526. whole_archive_flag_spec_CXX=''
  9527. link_all_deplibs_CXX=yes
  9528. if test "$GXX" = yes ; then
  9529. lt_int_apple_cc_single_mod=no
  9530. output_verbose_link_cmd='echo'
  9531. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9532. lt_int_apple_cc_single_mod=yes
  9533. fi
  9534. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9535. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9536. else
  9537. 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'
  9538. fi
  9539. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9540. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9541. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9542. 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}'
  9543. else
  9544. 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}'
  9545. fi
  9546. 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}'
  9547. else
  9548. case $cc_basename in
  9549. xlc*)
  9550. output_verbose_link_cmd='echo'
  9551. 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'
  9552. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9553. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9554. 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}'
  9555. 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}'
  9556. ;;
  9557. *)
  9558. ld_shlibs_CXX=no
  9559. ;;
  9560. esac
  9561. fi
  9562. ;;
  9563. dgux*)
  9564. case $cc_basename in
  9565. ec++*)
  9566. # FIXME: insert proper C++ library support
  9567. ld_shlibs_CXX=no
  9568. ;;
  9569. ghcx*)
  9570. # Green Hills C++ Compiler
  9571. # FIXME: insert proper C++ library support
  9572. ld_shlibs_CXX=no
  9573. ;;
  9574. *)
  9575. # FIXME: insert proper C++ library support
  9576. ld_shlibs_CXX=no
  9577. ;;
  9578. esac
  9579. ;;
  9580. freebsd[12]*)
  9581. # C++ shared libraries reported to be fairly broken before switch to ELF
  9582. ld_shlibs_CXX=no
  9583. ;;
  9584. freebsd-elf*)
  9585. archive_cmds_need_lc_CXX=no
  9586. ;;
  9587. freebsd* | kfreebsd*-gnu | dragonfly*)
  9588. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9589. # conventions
  9590. ld_shlibs_CXX=yes
  9591. ;;
  9592. gnu*)
  9593. ;;
  9594. hpux9*)
  9595. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9596. hardcode_libdir_separator_CXX=:
  9597. export_dynamic_flag_spec_CXX='${wl}-E'
  9598. hardcode_direct_CXX=yes
  9599. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9600. # but as the default
  9601. # location of the library.
  9602. case $cc_basename in
  9603. CC*)
  9604. # FIXME: insert proper C++ library support
  9605. ld_shlibs_CXX=no
  9606. ;;
  9607. aCC*)
  9608. 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'
  9609. # Commands to make compiler produce verbose output that lists
  9610. # what "hidden" libraries, object files and flags are used when
  9611. # linking a shared library.
  9612. #
  9613. # There doesn't appear to be a way to prevent this compiler from
  9614. # explicitly linking system object files so we need to strip them
  9615. # from the output so that they don't get included in the library
  9616. # dependencies.
  9617. 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'
  9618. ;;
  9619. *)
  9620. if test "$GXX" = yes; then
  9621. 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'
  9622. else
  9623. # FIXME: insert proper C++ library support
  9624. ld_shlibs_CXX=no
  9625. fi
  9626. ;;
  9627. esac
  9628. ;;
  9629. hpux10*|hpux11*)
  9630. if test $with_gnu_ld = no; then
  9631. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9632. hardcode_libdir_separator_CXX=:
  9633. case $host_cpu in
  9634. hppa*64*|ia64*)
  9635. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9636. ;;
  9637. *)
  9638. export_dynamic_flag_spec_CXX='${wl}-E'
  9639. ;;
  9640. esac
  9641. fi
  9642. case $host_cpu in
  9643. hppa*64*|ia64*)
  9644. hardcode_direct_CXX=no
  9645. hardcode_shlibpath_var_CXX=no
  9646. ;;
  9647. *)
  9648. hardcode_direct_CXX=yes
  9649. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9650. # but as the default
  9651. # location of the library.
  9652. ;;
  9653. esac
  9654. case $cc_basename in
  9655. CC*)
  9656. # FIXME: insert proper C++ library support
  9657. ld_shlibs_CXX=no
  9658. ;;
  9659. aCC*)
  9660. case $host_cpu in
  9661. hppa*64*)
  9662. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9663. ;;
  9664. ia64*)
  9665. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9666. ;;
  9667. *)
  9668. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9669. ;;
  9670. esac
  9671. # Commands to make compiler produce verbose output that lists
  9672. # what "hidden" libraries, object files and flags are used when
  9673. # linking a shared library.
  9674. #
  9675. # There doesn't appear to be a way to prevent this compiler from
  9676. # explicitly linking system object files so we need to strip them
  9677. # from the output so that they don't get included in the library
  9678. # dependencies.
  9679. 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'
  9680. ;;
  9681. *)
  9682. if test "$GXX" = yes; then
  9683. if test $with_gnu_ld = no; then
  9684. case $host_cpu in
  9685. hppa*64*)
  9686. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9687. ;;
  9688. ia64*)
  9689. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9690. ;;
  9691. *)
  9692. 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'
  9693. ;;
  9694. esac
  9695. fi
  9696. else
  9697. # FIXME: insert proper C++ library support
  9698. ld_shlibs_CXX=no
  9699. fi
  9700. ;;
  9701. esac
  9702. ;;
  9703. interix3*)
  9704. hardcode_direct_CXX=no
  9705. hardcode_shlibpath_var_CXX=no
  9706. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9707. export_dynamic_flag_spec_CXX='${wl}-E'
  9708. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9709. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9710. # default) and relocated if they conflict, which is a slow very memory
  9711. # consuming and fragmenting process. To avoid this, we pick a random,
  9712. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9713. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9714. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9715. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9716. ;;
  9717. irix5* | irix6*)
  9718. case $cc_basename in
  9719. CC*)
  9720. # SGI C++
  9721. 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'
  9722. # Archives containing C++ object files must be created using
  9723. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9724. # necessary to make sure instantiated templates are included
  9725. # in the archive.
  9726. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9727. ;;
  9728. *)
  9729. if test "$GXX" = yes; then
  9730. if test "$with_gnu_ld" = no; then
  9731. 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'
  9732. else
  9733. 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'
  9734. fi
  9735. fi
  9736. link_all_deplibs_CXX=yes
  9737. ;;
  9738. esac
  9739. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9740. hardcode_libdir_separator_CXX=:
  9741. ;;
  9742. linux*)
  9743. case $cc_basename in
  9744. KCC*)
  9745. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9746. # KCC will only create a shared library if the output file
  9747. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9748. # to its proper name (with version) after linking.
  9749. 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'
  9750. 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'
  9751. # Commands to make compiler produce verbose output that lists
  9752. # what "hidden" libraries, object files and flags are used when
  9753. # linking a shared library.
  9754. #
  9755. # There doesn't appear to be a way to prevent this compiler from
  9756. # explicitly linking system object files so we need to strip them
  9757. # from the output so that they don't get included in the library
  9758. # dependencies.
  9759. 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'
  9760. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9761. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9762. # Archives containing C++ object files must be created using
  9763. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9764. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9765. ;;
  9766. icpc*)
  9767. # Intel C++
  9768. with_gnu_ld=yes
  9769. # version 8.0 and above of icpc choke on multiply defined symbols
  9770. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9771. # earlier do not add the objects themselves.
  9772. case `$CC -V 2>&1` in
  9773. *"Version 7."*)
  9774. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9775. 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'
  9776. ;;
  9777. *) # Version 8.0 or newer
  9778. tmp_idyn=
  9779. case $host_cpu in
  9780. ia64*) tmp_idyn=' -i_dynamic';;
  9781. esac
  9782. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9783. 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'
  9784. ;;
  9785. esac
  9786. archive_cmds_need_lc_CXX=no
  9787. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9788. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9789. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9790. ;;
  9791. pgCC*)
  9792. # Portland Group C++ compiler
  9793. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9794. 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'
  9795. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9796. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9797. 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'
  9798. ;;
  9799. cxx*)
  9800. # Compaq C++
  9801. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9802. 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'
  9803. runpath_var=LD_RUN_PATH
  9804. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9805. hardcode_libdir_separator_CXX=:
  9806. # Commands to make compiler produce verbose output that lists
  9807. # what "hidden" libraries, object files and flags are used when
  9808. # linking a shared library.
  9809. #
  9810. # There doesn't appear to be a way to prevent this compiler from
  9811. # explicitly linking system object files so we need to strip them
  9812. # from the output so that they don't get included in the library
  9813. # dependencies.
  9814. 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'
  9815. ;;
  9816. esac
  9817. ;;
  9818. lynxos*)
  9819. # FIXME: insert proper C++ library support
  9820. ld_shlibs_CXX=no
  9821. ;;
  9822. m88k*)
  9823. # FIXME: insert proper C++ library support
  9824. ld_shlibs_CXX=no
  9825. ;;
  9826. mvs*)
  9827. case $cc_basename in
  9828. cxx*)
  9829. # FIXME: insert proper C++ library support
  9830. ld_shlibs_CXX=no
  9831. ;;
  9832. *)
  9833. # FIXME: insert proper C++ library support
  9834. ld_shlibs_CXX=no
  9835. ;;
  9836. esac
  9837. ;;
  9838. netbsd*)
  9839. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9840. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9841. wlarc=
  9842. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9843. hardcode_direct_CXX=yes
  9844. hardcode_shlibpath_var_CXX=no
  9845. fi
  9846. # Workaround some broken pre-1.5 toolchains
  9847. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9848. ;;
  9849. openbsd2*)
  9850. # C++ shared libraries are fairly broken
  9851. ld_shlibs_CXX=no
  9852. ;;
  9853. openbsd*)
  9854. hardcode_direct_CXX=yes
  9855. hardcode_shlibpath_var_CXX=no
  9856. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9857. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9858. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9859. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9860. export_dynamic_flag_spec_CXX='${wl}-E'
  9861. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9862. fi
  9863. output_verbose_link_cmd='echo'
  9864. ;;
  9865. osf3*)
  9866. case $cc_basename in
  9867. KCC*)
  9868. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9869. # KCC will only create a shared library if the output file
  9870. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9871. # to its proper name (with version) after linking.
  9872. 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'
  9873. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9874. hardcode_libdir_separator_CXX=:
  9875. # Archives containing C++ object files must be created using
  9876. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9877. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9878. ;;
  9879. RCC*)
  9880. # Rational C++ 2.4.1
  9881. # FIXME: insert proper C++ library support
  9882. ld_shlibs_CXX=no
  9883. ;;
  9884. cxx*)
  9885. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9886. 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'
  9887. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9888. hardcode_libdir_separator_CXX=:
  9889. # Commands to make compiler produce verbose output that lists
  9890. # what "hidden" libraries, object files and flags are used when
  9891. # linking a shared library.
  9892. #
  9893. # There doesn't appear to be a way to prevent this compiler from
  9894. # explicitly linking system object files so we need to strip them
  9895. # from the output so that they don't get included in the library
  9896. # dependencies.
  9897. 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'
  9898. ;;
  9899. *)
  9900. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9901. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9902. 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'
  9903. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9904. hardcode_libdir_separator_CXX=:
  9905. # Commands to make compiler produce verbose output that lists
  9906. # what "hidden" libraries, object files and flags are used when
  9907. # linking a shared library.
  9908. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9909. else
  9910. # FIXME: insert proper C++ library support
  9911. ld_shlibs_CXX=no
  9912. fi
  9913. ;;
  9914. esac
  9915. ;;
  9916. osf4* | osf5*)
  9917. case $cc_basename in
  9918. KCC*)
  9919. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9920. # KCC will only create a shared library if the output file
  9921. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9922. # to its proper name (with version) after linking.
  9923. 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'
  9924. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9925. hardcode_libdir_separator_CXX=:
  9926. # Archives containing C++ object files must be created using
  9927. # the KAI C++ compiler.
  9928. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9929. ;;
  9930. RCC*)
  9931. # Rational C++ 2.4.1
  9932. # FIXME: insert proper C++ library support
  9933. ld_shlibs_CXX=no
  9934. ;;
  9935. cxx*)
  9936. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9937. 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'
  9938. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9939. echo "-hidden">> $lib.exp~
  9940. $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~
  9941. $rm $lib.exp'
  9942. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9943. hardcode_libdir_separator_CXX=:
  9944. # Commands to make compiler produce verbose output that lists
  9945. # what "hidden" libraries, object files and flags are used when
  9946. # linking a shared library.
  9947. #
  9948. # There doesn't appear to be a way to prevent this compiler from
  9949. # explicitly linking system object files so we need to strip them
  9950. # from the output so that they don't get included in the library
  9951. # dependencies.
  9952. 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'
  9953. ;;
  9954. *)
  9955. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9956. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9957. 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'
  9958. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9959. hardcode_libdir_separator_CXX=:
  9960. # Commands to make compiler produce verbose output that lists
  9961. # what "hidden" libraries, object files and flags are used when
  9962. # linking a shared library.
  9963. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9964. else
  9965. # FIXME: insert proper C++ library support
  9966. ld_shlibs_CXX=no
  9967. fi
  9968. ;;
  9969. esac
  9970. ;;
  9971. psos*)
  9972. # FIXME: insert proper C++ library support
  9973. ld_shlibs_CXX=no
  9974. ;;
  9975. sunos4*)
  9976. case $cc_basename in
  9977. CC*)
  9978. # Sun C++ 4.x
  9979. # FIXME: insert proper C++ library support
  9980. ld_shlibs_CXX=no
  9981. ;;
  9982. lcc*)
  9983. # Lucid
  9984. # FIXME: insert proper C++ library support
  9985. ld_shlibs_CXX=no
  9986. ;;
  9987. *)
  9988. # FIXME: insert proper C++ library support
  9989. ld_shlibs_CXX=no
  9990. ;;
  9991. esac
  9992. ;;
  9993. solaris*)
  9994. case $cc_basename in
  9995. CC*)
  9996. # Sun C++ 4.2, 5.x and Centerline C++
  9997. archive_cmds_need_lc_CXX=yes
  9998. no_undefined_flag_CXX=' -zdefs'
  9999. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10000. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10001. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10002. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10003. hardcode_shlibpath_var_CXX=no
  10004. case $host_os in
  10005. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10006. *)
  10007. # The C++ compiler is used as linker so we must use $wl
  10008. # flag to pass the commands to the underlying system
  10009. # linker. We must also pass each convience library through
  10010. # to the system linker between allextract/defaultextract.
  10011. # The C++ compiler will combine linker options so we
  10012. # cannot just pass the convience library names through
  10013. # without $wl.
  10014. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10015. 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'
  10016. ;;
  10017. esac
  10018. link_all_deplibs_CXX=yes
  10019. output_verbose_link_cmd='echo'
  10020. # Archives containing C++ object files must be created using
  10021. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10022. # necessary to make sure instantiated templates are included
  10023. # in the archive.
  10024. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10025. ;;
  10026. gcx*)
  10027. # Green Hills C++ Compiler
  10028. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10029. # The C++ compiler must be used to create the archive.
  10030. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10031. ;;
  10032. *)
  10033. # GNU C++ compiler with Solaris linker
  10034. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10035. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10036. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10037. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10038. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10039. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10040. # Commands to make compiler produce verbose output that lists
  10041. # what "hidden" libraries, object files and flags are used when
  10042. # linking a shared library.
  10043. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10044. else
  10045. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10046. # platform.
  10047. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10048. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10049. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10050. # Commands to make compiler produce verbose output that lists
  10051. # what "hidden" libraries, object files and flags are used when
  10052. # linking a shared library.
  10053. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10054. fi
  10055. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10056. fi
  10057. ;;
  10058. esac
  10059. ;;
  10060. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10061. no_undefined_flag_CXX='${wl}-z,text'
  10062. archive_cmds_need_lc_CXX=no
  10063. hardcode_shlibpath_var_CXX=no
  10064. runpath_var='LD_RUN_PATH'
  10065. case $cc_basename in
  10066. CC*)
  10067. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10068. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10069. ;;
  10070. *)
  10071. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10072. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10073. ;;
  10074. esac
  10075. ;;
  10076. sysv5* | sco3.2v5* | sco5v6*)
  10077. # Note: We can NOT use -z defs as we might desire, because we do not
  10078. # link with -lc, and that would cause any symbols used from libc to
  10079. # always be unresolved, which means just about no library would
  10080. # ever link correctly. If we're not using GNU ld we use -z text
  10081. # though, which does catch some bad symbols but isn't as heavy-handed
  10082. # as -z defs.
  10083. # For security reasons, it is highly recommended that you always
  10084. # use absolute paths for naming shared libraries, and exclude the
  10085. # DT_RUNPATH tag from executables and libraries. But doing so
  10086. # requires that you compile everything twice, which is a pain.
  10087. # So that behaviour is only enabled if SCOABSPATH is set to a
  10088. # non-empty value in the environment. Most likely only useful for
  10089. # creating official distributions of packages.
  10090. # This is a hack until libtool officially supports absolute path
  10091. # names for shared libraries.
  10092. no_undefined_flag_CXX='${wl}-z,text'
  10093. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10094. archive_cmds_need_lc_CXX=no
  10095. hardcode_shlibpath_var_CXX=no
  10096. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10097. hardcode_libdir_separator_CXX=':'
  10098. link_all_deplibs_CXX=yes
  10099. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10100. runpath_var='LD_RUN_PATH'
  10101. case $cc_basename in
  10102. CC*)
  10103. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10104. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10105. ;;
  10106. *)
  10107. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10108. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10109. ;;
  10110. esac
  10111. ;;
  10112. tandem*)
  10113. case $cc_basename in
  10114. NCC*)
  10115. # NonStop-UX NCC 3.20
  10116. # FIXME: insert proper C++ library support
  10117. ld_shlibs_CXX=no
  10118. ;;
  10119. *)
  10120. # FIXME: insert proper C++ library support
  10121. ld_shlibs_CXX=no
  10122. ;;
  10123. esac
  10124. ;;
  10125. vxworks*)
  10126. # FIXME: insert proper C++ library support
  10127. ld_shlibs_CXX=no
  10128. ;;
  10129. *)
  10130. # FIXME: insert proper C++ library support
  10131. ld_shlibs_CXX=no
  10132. ;;
  10133. esac
  10134. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10135. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10136. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10137. GCC_CXX="$GXX"
  10138. LD_CXX="$LD"
  10139. cat > conftest.$ac_ext <<EOF
  10140. class Foo
  10141. {
  10142. public:
  10143. Foo (void) { a = 0; }
  10144. private:
  10145. int a;
  10146. };
  10147. EOF
  10148. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10149. (eval $ac_compile) 2>&5
  10150. ac_status=$?
  10151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10152. (exit $ac_status); }; then
  10153. # Parse the compiler output and extract the necessary
  10154. # objects, libraries and library flags.
  10155. # Sentinel used to keep track of whether or not we are before
  10156. # the conftest object file.
  10157. pre_test_object_deps_done=no
  10158. # The `*' in the case matches for architectures that use `case' in
  10159. # $output_verbose_cmd can trigger glob expansion during the loop
  10160. # eval without this substitution.
  10161. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10162. for p in `eval $output_verbose_link_cmd`; do
  10163. case $p in
  10164. -L* | -R* | -l*)
  10165. # Some compilers place space between "-{L,R}" and the path.
  10166. # Remove the space.
  10167. if test $p = "-L" \
  10168. || test $p = "-R"; then
  10169. prev=$p
  10170. continue
  10171. else
  10172. prev=
  10173. fi
  10174. if test "$pre_test_object_deps_done" = no; then
  10175. case $p in
  10176. -L* | -R*)
  10177. # Internal compiler library paths should come after those
  10178. # provided the user. The postdeps already come after the
  10179. # user supplied libs so there is no need to process them.
  10180. if test -z "$compiler_lib_search_path_CXX"; then
  10181. compiler_lib_search_path_CXX="${prev}${p}"
  10182. else
  10183. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10184. fi
  10185. ;;
  10186. # The "-l" case would never come before the object being
  10187. # linked, so don't bother handling this case.
  10188. esac
  10189. else
  10190. if test -z "$postdeps_CXX"; then
  10191. postdeps_CXX="${prev}${p}"
  10192. else
  10193. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10194. fi
  10195. fi
  10196. ;;
  10197. *.$objext)
  10198. # This assumes that the test object file only shows up
  10199. # once in the compiler output.
  10200. if test "$p" = "conftest.$objext"; then
  10201. pre_test_object_deps_done=yes
  10202. continue
  10203. fi
  10204. if test "$pre_test_object_deps_done" = no; then
  10205. if test -z "$predep_objects_CXX"; then
  10206. predep_objects_CXX="$p"
  10207. else
  10208. predep_objects_CXX="$predep_objects_CXX $p"
  10209. fi
  10210. else
  10211. if test -z "$postdep_objects_CXX"; then
  10212. postdep_objects_CXX="$p"
  10213. else
  10214. postdep_objects_CXX="$postdep_objects_CXX $p"
  10215. fi
  10216. fi
  10217. ;;
  10218. *) ;; # Ignore the rest.
  10219. esac
  10220. done
  10221. # Clean up.
  10222. rm -f a.out a.exe
  10223. else
  10224. echo "libtool.m4: error: problem compiling CXX test program"
  10225. fi
  10226. $rm -f confest.$objext
  10227. # PORTME: override above test on systems where it is broken
  10228. case $host_os in
  10229. interix3*)
  10230. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10231. # hack all around it, let's just trust "g++" to DTRT.
  10232. predep_objects_CXX=
  10233. postdep_objects_CXX=
  10234. postdeps_CXX=
  10235. ;;
  10236. solaris*)
  10237. case $cc_basename in
  10238. CC*)
  10239. # Adding this requires a known-good setup of shared libraries for
  10240. # Sun compiler versions before 5.6, else PIC objects from an old
  10241. # archive will be linked into the output, leading to subtle bugs.
  10242. postdeps_CXX='-lCstd -lCrun'
  10243. ;;
  10244. esac
  10245. ;;
  10246. esac
  10247. case " $postdeps_CXX " in
  10248. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10249. esac
  10250. lt_prog_compiler_wl_CXX=
  10251. lt_prog_compiler_pic_CXX=
  10252. lt_prog_compiler_static_CXX=
  10253. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10254. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10255. # C++ specific cases for pic, static, wl, etc.
  10256. if test "$GXX" = yes; then
  10257. lt_prog_compiler_wl_CXX='-Wl,'
  10258. lt_prog_compiler_static_CXX='-static'
  10259. case $host_os in
  10260. aix*)
  10261. # All AIX code is PIC.
  10262. if test "$host_cpu" = ia64; then
  10263. # AIX 5 now supports IA64 processor
  10264. lt_prog_compiler_static_CXX='-Bstatic'
  10265. fi
  10266. ;;
  10267. amigaos*)
  10268. # FIXME: we need at least 68020 code to build shared libraries, but
  10269. # adding the `-m68020' flag to GCC prevents building anything better,
  10270. # like `-m68040'.
  10271. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10272. ;;
  10273. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10274. # PIC is the default for these OSes.
  10275. ;;
  10276. mingw* | os2* | pw32*)
  10277. # This hack is so that the source file can tell whether it is being
  10278. # built for inclusion in a dll (and should export symbols for example).
  10279. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10280. ;;
  10281. darwin* | rhapsody*)
  10282. # PIC is the default on this platform
  10283. # Common symbols not allowed in MH_DYLIB files
  10284. lt_prog_compiler_pic_CXX='-fno-common'
  10285. ;;
  10286. *djgpp*)
  10287. # DJGPP does not support shared libraries at all
  10288. lt_prog_compiler_pic_CXX=
  10289. ;;
  10290. interix3*)
  10291. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10292. # Instead, we relocate shared libraries at runtime.
  10293. ;;
  10294. sysv4*MP*)
  10295. if test -d /usr/nec; then
  10296. lt_prog_compiler_pic_CXX=-Kconform_pic
  10297. fi
  10298. ;;
  10299. hpux*)
  10300. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10301. # not for PA HP-UX.
  10302. case $host_cpu in
  10303. hppa*64*|ia64*)
  10304. ;;
  10305. *)
  10306. lt_prog_compiler_pic_CXX='-fPIC'
  10307. ;;
  10308. esac
  10309. ;;
  10310. *)
  10311. lt_prog_compiler_pic_CXX='-fPIC'
  10312. ;;
  10313. esac
  10314. else
  10315. case $host_os in
  10316. aix4* | aix5*)
  10317. # All AIX code is PIC.
  10318. if test "$host_cpu" = ia64; then
  10319. # AIX 5 now supports IA64 processor
  10320. lt_prog_compiler_static_CXX='-Bstatic'
  10321. else
  10322. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10323. fi
  10324. ;;
  10325. chorus*)
  10326. case $cc_basename in
  10327. cxch68*)
  10328. # Green Hills C++ Compiler
  10329. # _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"
  10330. ;;
  10331. esac
  10332. ;;
  10333. darwin*)
  10334. # PIC is the default on this platform
  10335. # Common symbols not allowed in MH_DYLIB files
  10336. case $cc_basename in
  10337. xlc*)
  10338. lt_prog_compiler_pic_CXX='-qnocommon'
  10339. lt_prog_compiler_wl_CXX='-Wl,'
  10340. ;;
  10341. esac
  10342. ;;
  10343. dgux*)
  10344. case $cc_basename in
  10345. ec++*)
  10346. lt_prog_compiler_pic_CXX='-KPIC'
  10347. ;;
  10348. ghcx*)
  10349. # Green Hills C++ Compiler
  10350. lt_prog_compiler_pic_CXX='-pic'
  10351. ;;
  10352. *)
  10353. ;;
  10354. esac
  10355. ;;
  10356. freebsd* | kfreebsd*-gnu | dragonfly*)
  10357. # FreeBSD uses GNU C++
  10358. ;;
  10359. hpux9* | hpux10* | hpux11*)
  10360. case $cc_basename in
  10361. CC*)
  10362. lt_prog_compiler_wl_CXX='-Wl,'
  10363. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10364. if test "$host_cpu" != ia64; then
  10365. lt_prog_compiler_pic_CXX='+Z'
  10366. fi
  10367. ;;
  10368. aCC*)
  10369. lt_prog_compiler_wl_CXX='-Wl,'
  10370. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10371. case $host_cpu in
  10372. hppa*64*|ia64*)
  10373. # +Z the default
  10374. ;;
  10375. *)
  10376. lt_prog_compiler_pic_CXX='+Z'
  10377. ;;
  10378. esac
  10379. ;;
  10380. *)
  10381. ;;
  10382. esac
  10383. ;;
  10384. interix*)
  10385. # This is c89, which is MS Visual C++ (no shared libs)
  10386. # Anyone wants to do a port?
  10387. ;;
  10388. irix5* | irix6* | nonstopux*)
  10389. case $cc_basename in
  10390. CC*)
  10391. lt_prog_compiler_wl_CXX='-Wl,'
  10392. lt_prog_compiler_static_CXX='-non_shared'
  10393. # CC pic flag -KPIC is the default.
  10394. ;;
  10395. *)
  10396. ;;
  10397. esac
  10398. ;;
  10399. linux*)
  10400. case $cc_basename in
  10401. KCC*)
  10402. # KAI C++ Compiler
  10403. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10404. lt_prog_compiler_pic_CXX='-fPIC'
  10405. ;;
  10406. icpc* | ecpc*)
  10407. # Intel C++
  10408. lt_prog_compiler_wl_CXX='-Wl,'
  10409. lt_prog_compiler_pic_CXX='-KPIC'
  10410. lt_prog_compiler_static_CXX='-static'
  10411. ;;
  10412. pgCC*)
  10413. # Portland Group C++ compiler.
  10414. lt_prog_compiler_wl_CXX='-Wl,'
  10415. lt_prog_compiler_pic_CXX='-fpic'
  10416. lt_prog_compiler_static_CXX='-Bstatic'
  10417. ;;
  10418. cxx*)
  10419. # Compaq C++
  10420. # Make sure the PIC flag is empty. It appears that all Alpha
  10421. # Linux and Compaq Tru64 Unix objects are PIC.
  10422. lt_prog_compiler_pic_CXX=
  10423. lt_prog_compiler_static_CXX='-non_shared'
  10424. ;;
  10425. *)
  10426. ;;
  10427. esac
  10428. ;;
  10429. lynxos*)
  10430. ;;
  10431. m88k*)
  10432. ;;
  10433. mvs*)
  10434. case $cc_basename in
  10435. cxx*)
  10436. lt_prog_compiler_pic_CXX='-W c,exportall'
  10437. ;;
  10438. *)
  10439. ;;
  10440. esac
  10441. ;;
  10442. netbsd*)
  10443. ;;
  10444. osf3* | osf4* | osf5*)
  10445. case $cc_basename in
  10446. KCC*)
  10447. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10448. ;;
  10449. RCC*)
  10450. # Rational C++ 2.4.1
  10451. lt_prog_compiler_pic_CXX='-pic'
  10452. ;;
  10453. cxx*)
  10454. # Digital/Compaq C++
  10455. lt_prog_compiler_wl_CXX='-Wl,'
  10456. # Make sure the PIC flag is empty. It appears that all Alpha
  10457. # Linux and Compaq Tru64 Unix objects are PIC.
  10458. lt_prog_compiler_pic_CXX=
  10459. lt_prog_compiler_static_CXX='-non_shared'
  10460. ;;
  10461. *)
  10462. ;;
  10463. esac
  10464. ;;
  10465. psos*)
  10466. ;;
  10467. solaris*)
  10468. case $cc_basename in
  10469. CC*)
  10470. # Sun C++ 4.2, 5.x and Centerline C++
  10471. lt_prog_compiler_pic_CXX='-KPIC'
  10472. lt_prog_compiler_static_CXX='-Bstatic'
  10473. lt_prog_compiler_wl_CXX='-Qoption ld '
  10474. ;;
  10475. gcx*)
  10476. # Green Hills C++ Compiler
  10477. lt_prog_compiler_pic_CXX='-PIC'
  10478. ;;
  10479. *)
  10480. ;;
  10481. esac
  10482. ;;
  10483. sunos4*)
  10484. case $cc_basename in
  10485. CC*)
  10486. # Sun C++ 4.x
  10487. lt_prog_compiler_pic_CXX='-pic'
  10488. lt_prog_compiler_static_CXX='-Bstatic'
  10489. ;;
  10490. lcc*)
  10491. # Lucid
  10492. lt_prog_compiler_pic_CXX='-pic'
  10493. ;;
  10494. *)
  10495. ;;
  10496. esac
  10497. ;;
  10498. tandem*)
  10499. case $cc_basename in
  10500. NCC*)
  10501. # NonStop-UX NCC 3.20
  10502. lt_prog_compiler_pic_CXX='-KPIC'
  10503. ;;
  10504. *)
  10505. ;;
  10506. esac
  10507. ;;
  10508. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10509. case $cc_basename in
  10510. CC*)
  10511. lt_prog_compiler_wl_CXX='-Wl,'
  10512. lt_prog_compiler_pic_CXX='-KPIC'
  10513. lt_prog_compiler_static_CXX='-Bstatic'
  10514. ;;
  10515. esac
  10516. ;;
  10517. vxworks*)
  10518. ;;
  10519. *)
  10520. lt_prog_compiler_can_build_shared_CXX=no
  10521. ;;
  10522. esac
  10523. fi
  10524. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10525. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10526. #
  10527. # Check to make sure the PIC flag actually works.
  10528. #
  10529. if test -n "$lt_prog_compiler_pic_CXX"; then
  10530. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10531. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10532. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10533. echo $ECHO_N "(cached) $ECHO_C" >&6
  10534. else
  10535. lt_prog_compiler_pic_works_CXX=no
  10536. ac_outfile=conftest.$ac_objext
  10537. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10538. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10539. # Insert the option either (1) after the last *FLAGS variable, or
  10540. # (2) before a word containing "conftest.", or (3) at the end.
  10541. # Note that $ac_compile itself does not contain backslashes and begins
  10542. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10543. # The option is referenced via a variable to avoid confusing sed.
  10544. lt_compile=`echo "$ac_compile" | $SED \
  10545. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10546. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10547. -e 's:$: $lt_compiler_flag:'`
  10548. (eval echo "\"\$as_me:11665: $lt_compile\"" >&5)
  10549. (eval "$lt_compile" 2>conftest.err)
  10550. ac_status=$?
  10551. cat conftest.err >&5
  10552. echo "$as_me:11669: \$? = $ac_status" >&5
  10553. if (exit $ac_status) && test -s "$ac_outfile"; then
  10554. # The compiler can only warn and ignore the option if not recognized
  10555. # So say no if there are warnings other than the usual output.
  10556. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10557. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10558. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10559. lt_prog_compiler_pic_works_CXX=yes
  10560. fi
  10561. fi
  10562. $rm conftest*
  10563. fi
  10564. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10565. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10566. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10567. case $lt_prog_compiler_pic_CXX in
  10568. "" | " "*) ;;
  10569. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10570. esac
  10571. else
  10572. lt_prog_compiler_pic_CXX=
  10573. lt_prog_compiler_can_build_shared_CXX=no
  10574. fi
  10575. fi
  10576. case $host_os in
  10577. # For platforms which do not support PIC, -DPIC is meaningless:
  10578. *djgpp*)
  10579. lt_prog_compiler_pic_CXX=
  10580. ;;
  10581. *)
  10582. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10583. ;;
  10584. esac
  10585. #
  10586. # Check to make sure the static flag actually works.
  10587. #
  10588. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10589. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10590. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10591. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10592. echo $ECHO_N "(cached) $ECHO_C" >&6
  10593. else
  10594. lt_prog_compiler_static_works_CXX=no
  10595. save_LDFLAGS="$LDFLAGS"
  10596. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10597. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10598. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10599. # The linker can only warn and ignore the option if not recognized
  10600. # So say no if there are warnings
  10601. if test -s conftest.err; then
  10602. # Append any errors to the config.log.
  10603. cat conftest.err 1>&5
  10604. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10605. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10606. if diff conftest.exp conftest.er2 >/dev/null; then
  10607. lt_prog_compiler_static_works_CXX=yes
  10608. fi
  10609. else
  10610. lt_prog_compiler_static_works_CXX=yes
  10611. fi
  10612. fi
  10613. $rm conftest*
  10614. LDFLAGS="$save_LDFLAGS"
  10615. fi
  10616. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10617. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10618. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10619. :
  10620. else
  10621. lt_prog_compiler_static_CXX=
  10622. fi
  10623. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10624. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10625. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10626. echo $ECHO_N "(cached) $ECHO_C" >&6
  10627. else
  10628. lt_cv_prog_compiler_c_o_CXX=no
  10629. $rm -r conftest 2>/dev/null
  10630. mkdir conftest
  10631. cd conftest
  10632. mkdir out
  10633. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10634. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10635. # Insert the option either (1) after the last *FLAGS variable, or
  10636. # (2) before a word containing "conftest.", or (3) at the end.
  10637. # Note that $ac_compile itself does not contain backslashes and begins
  10638. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10639. lt_compile=`echo "$ac_compile" | $SED \
  10640. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10641. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10642. -e 's:$: $lt_compiler_flag:'`
  10643. (eval echo "\"\$as_me:11769: $lt_compile\"" >&5)
  10644. (eval "$lt_compile" 2>out/conftest.err)
  10645. ac_status=$?
  10646. cat out/conftest.err >&5
  10647. echo "$as_me:11773: \$? = $ac_status" >&5
  10648. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10649. then
  10650. # The compiler can only warn and ignore the option if not recognized
  10651. # So say no if there are warnings
  10652. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10653. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10654. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10655. lt_cv_prog_compiler_c_o_CXX=yes
  10656. fi
  10657. fi
  10658. chmod u+w . 2>&5
  10659. $rm conftest*
  10660. # SGI C++ compiler will create directory out/ii_files/ for
  10661. # template instantiation
  10662. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10663. $rm out/* && rmdir out
  10664. cd ..
  10665. rmdir conftest
  10666. $rm conftest*
  10667. fi
  10668. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10669. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10670. hard_links="nottested"
  10671. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10672. # do not overwrite the value of need_locks provided by the user
  10673. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10674. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10675. hard_links=yes
  10676. $rm conftest*
  10677. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10678. touch conftest.a
  10679. ln conftest.a conftest.b 2>&5 || hard_links=no
  10680. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10681. echo "$as_me:$LINENO: result: $hard_links" >&5
  10682. echo "${ECHO_T}$hard_links" >&6
  10683. if test "$hard_links" = no; then
  10684. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10685. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10686. need_locks=warn
  10687. fi
  10688. else
  10689. need_locks=no
  10690. fi
  10691. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10692. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10693. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10694. case $host_os in
  10695. aix4* | aix5*)
  10696. # If we're using GNU nm, then we don't want the "-C" option.
  10697. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10698. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10699. 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'
  10700. else
  10701. 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'
  10702. fi
  10703. ;;
  10704. pw32*)
  10705. export_symbols_cmds_CXX="$ltdll_cmds"
  10706. ;;
  10707. cygwin* | mingw*)
  10708. 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'
  10709. ;;
  10710. *)
  10711. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10712. ;;
  10713. esac
  10714. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10715. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10716. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10717. #
  10718. # Do we need to explicitly link libc?
  10719. #
  10720. case "x$archive_cmds_need_lc_CXX" in
  10721. x|xyes)
  10722. # Assume -lc should be added
  10723. archive_cmds_need_lc_CXX=yes
  10724. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10725. case $archive_cmds_CXX in
  10726. *'~'*)
  10727. # FIXME: we may have to deal with multi-command sequences.
  10728. ;;
  10729. '$CC '*)
  10730. # Test whether the compiler implicitly links with -lc since on some
  10731. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10732. # to ld, don't add -lc before -lgcc.
  10733. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10734. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10735. $rm conftest*
  10736. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10738. (eval $ac_compile) 2>&5
  10739. ac_status=$?
  10740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10741. (exit $ac_status); } 2>conftest.err; then
  10742. soname=conftest
  10743. lib=conftest
  10744. libobjs=conftest.$ac_objext
  10745. deplibs=
  10746. wl=$lt_prog_compiler_wl_CXX
  10747. pic_flag=$lt_prog_compiler_pic_CXX
  10748. compiler_flags=-v
  10749. linker_flags=-v
  10750. verstring=
  10751. output_objdir=.
  10752. libname=conftest
  10753. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10754. allow_undefined_flag_CXX=
  10755. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10756. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10757. ac_status=$?
  10758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10759. (exit $ac_status); }
  10760. then
  10761. archive_cmds_need_lc_CXX=no
  10762. else
  10763. archive_cmds_need_lc_CXX=yes
  10764. fi
  10765. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10766. else
  10767. cat conftest.err 1>&5
  10768. fi
  10769. $rm conftest*
  10770. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10771. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10772. ;;
  10773. esac
  10774. fi
  10775. ;;
  10776. esac
  10777. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10778. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10779. library_names_spec=
  10780. libname_spec='lib$name'
  10781. soname_spec=
  10782. shrext_cmds=".so"
  10783. postinstall_cmds=
  10784. postuninstall_cmds=
  10785. finish_cmds=
  10786. finish_eval=
  10787. shlibpath_var=
  10788. shlibpath_overrides_runpath=unknown
  10789. version_type=none
  10790. dynamic_linker="$host_os ld.so"
  10791. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10792. if test "$GCC" = yes; then
  10793. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10794. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10795. # if the path contains ";" then we assume it to be the separator
  10796. # otherwise default to the standard path separator (i.e. ":") - it is
  10797. # assumed that no part of a normal pathname contains ";" but that should
  10798. # okay in the real world where ";" in dirpaths is itself problematic.
  10799. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10800. else
  10801. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10802. fi
  10803. else
  10804. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10805. fi
  10806. need_lib_prefix=unknown
  10807. hardcode_into_libs=no
  10808. # when you set need_version to no, make sure it does not cause -set_version
  10809. # flags to be left without arguments
  10810. need_version=unknown
  10811. case $host_os in
  10812. aix3*)
  10813. version_type=linux
  10814. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10815. shlibpath_var=LIBPATH
  10816. # AIX 3 has no versioning support, so we append a major version to the name.
  10817. soname_spec='${libname}${release}${shared_ext}$major'
  10818. ;;
  10819. aix4* | aix5*)
  10820. version_type=linux
  10821. need_lib_prefix=no
  10822. need_version=no
  10823. hardcode_into_libs=yes
  10824. if test "$host_cpu" = ia64; then
  10825. # AIX 5 supports IA64
  10826. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10827. shlibpath_var=LD_LIBRARY_PATH
  10828. else
  10829. # With GCC up to 2.95.x, collect2 would create an import file
  10830. # for dependence libraries. The import file would start with
  10831. # the line `#! .'. This would cause the generated library to
  10832. # depend on `.', always an invalid library. This was fixed in
  10833. # development snapshots of GCC prior to 3.0.
  10834. case $host_os in
  10835. aix4 | aix4.[01] | aix4.[01].*)
  10836. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10837. echo ' yes '
  10838. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10839. :
  10840. else
  10841. can_build_shared=no
  10842. fi
  10843. ;;
  10844. esac
  10845. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10846. # soname into executable. Probably we can add versioning support to
  10847. # collect2, so additional links can be useful in future.
  10848. if test "$aix_use_runtimelinking" = yes; then
  10849. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10850. # instead of lib<name>.a to let people know that these are not
  10851. # typical AIX shared libraries.
  10852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10853. else
  10854. # We preserve .a as extension for shared libraries through AIX4.2
  10855. # and later when we are not doing run time linking.
  10856. library_names_spec='${libname}${release}.a $libname.a'
  10857. soname_spec='${libname}${release}${shared_ext}$major'
  10858. fi
  10859. shlibpath_var=LIBPATH
  10860. fi
  10861. ;;
  10862. amigaos*)
  10863. library_names_spec='$libname.ixlibrary $libname.a'
  10864. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10865. 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'
  10866. ;;
  10867. beos*)
  10868. library_names_spec='${libname}${shared_ext}'
  10869. dynamic_linker="$host_os ld.so"
  10870. shlibpath_var=LIBRARY_PATH
  10871. ;;
  10872. bsdi[45]*)
  10873. version_type=linux
  10874. need_version=no
  10875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10876. soname_spec='${libname}${release}${shared_ext}$major'
  10877. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10878. shlibpath_var=LD_LIBRARY_PATH
  10879. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10880. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10881. # the default ld.so.conf also contains /usr/contrib/lib and
  10882. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10883. # libtool to hard-code these into programs
  10884. ;;
  10885. cygwin* | mingw* | pw32*)
  10886. version_type=windows
  10887. shrext_cmds=".dll"
  10888. need_version=no
  10889. need_lib_prefix=no
  10890. case $GCC,$host_os in
  10891. yes,cygwin* | yes,mingw* | yes,pw32*)
  10892. library_names_spec='$libname.dll.a'
  10893. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10894. postinstall_cmds='base_file=`basename \${file}`~
  10895. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10896. dldir=$destdir/`dirname \$dlpath`~
  10897. test -d \$dldir || mkdir -p \$dldir~
  10898. $install_prog $dir/$dlname \$dldir/$dlname~
  10899. chmod a+x \$dldir/$dlname'
  10900. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10901. dlpath=$dir/\$dldll~
  10902. $rm \$dlpath'
  10903. shlibpath_overrides_runpath=yes
  10904. case $host_os in
  10905. cygwin*)
  10906. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10907. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10908. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10909. ;;
  10910. mingw*)
  10911. # MinGW DLLs use traditional 'lib' prefix
  10912. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10913. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10914. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10915. # It is most probably a Windows format PATH printed by
  10916. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10917. # path with ; separators, and with drive letters. We can handle the
  10918. # drive letters (cygwin fileutils understands them), so leave them,
  10919. # especially as we might pass files found there to a mingw objdump,
  10920. # which wouldn't understand a cygwinified path. Ahh.
  10921. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10922. else
  10923. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10924. fi
  10925. ;;
  10926. pw32*)
  10927. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10928. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10929. ;;
  10930. esac
  10931. ;;
  10932. *)
  10933. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10934. ;;
  10935. esac
  10936. dynamic_linker='Win32 ld.exe'
  10937. # FIXME: first we should search . and the directory the executable is in
  10938. shlibpath_var=PATH
  10939. ;;
  10940. darwin* | rhapsody*)
  10941. dynamic_linker="$host_os dyld"
  10942. version_type=darwin
  10943. need_lib_prefix=no
  10944. need_version=no
  10945. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10946. soname_spec='${libname}${release}${major}$shared_ext'
  10947. shlibpath_overrides_runpath=yes
  10948. shlibpath_var=DYLD_LIBRARY_PATH
  10949. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10950. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10951. if test "$GCC" = yes; then
  10952. 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"`
  10953. else
  10954. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10955. fi
  10956. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10957. ;;
  10958. dgux*)
  10959. version_type=linux
  10960. need_lib_prefix=no
  10961. need_version=no
  10962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10963. soname_spec='${libname}${release}${shared_ext}$major'
  10964. shlibpath_var=LD_LIBRARY_PATH
  10965. ;;
  10966. freebsd1*)
  10967. dynamic_linker=no
  10968. ;;
  10969. kfreebsd*-gnu)
  10970. version_type=linux
  10971. need_lib_prefix=no
  10972. need_version=no
  10973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10974. soname_spec='${libname}${release}${shared_ext}$major'
  10975. shlibpath_var=LD_LIBRARY_PATH
  10976. shlibpath_overrides_runpath=no
  10977. hardcode_into_libs=yes
  10978. dynamic_linker='GNU ld.so'
  10979. ;;
  10980. freebsd* | dragonfly*)
  10981. # DragonFly does not have aout. When/if they implement a new
  10982. # versioning mechanism, adjust this.
  10983. if test -x /usr/bin/objformat; then
  10984. objformat=`/usr/bin/objformat`
  10985. else
  10986. case $host_os in
  10987. freebsd[123]*) objformat=aout ;;
  10988. *) objformat=elf ;;
  10989. esac
  10990. fi
  10991. version_type=freebsd-$objformat
  10992. case $version_type in
  10993. freebsd-elf*)
  10994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10995. need_version=no
  10996. need_lib_prefix=no
  10997. ;;
  10998. freebsd-*)
  10999. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11000. need_version=yes
  11001. ;;
  11002. esac
  11003. shlibpath_var=LD_LIBRARY_PATH
  11004. case $host_os in
  11005. freebsd2*)
  11006. shlibpath_overrides_runpath=yes
  11007. ;;
  11008. freebsd3.[01]* | freebsdelf3.[01]*)
  11009. shlibpath_overrides_runpath=yes
  11010. hardcode_into_libs=yes
  11011. ;;
  11012. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11013. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11014. shlibpath_overrides_runpath=no
  11015. hardcode_into_libs=yes
  11016. ;;
  11017. freebsd*) # from 4.6 on
  11018. shlibpath_overrides_runpath=yes
  11019. hardcode_into_libs=yes
  11020. ;;
  11021. esac
  11022. ;;
  11023. gnu*)
  11024. version_type=linux
  11025. need_lib_prefix=no
  11026. need_version=no
  11027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11028. soname_spec='${libname}${release}${shared_ext}$major'
  11029. shlibpath_var=LD_LIBRARY_PATH
  11030. hardcode_into_libs=yes
  11031. ;;
  11032. hpux9* | hpux10* | hpux11*)
  11033. # Give a soname corresponding to the major version so that dld.sl refuses to
  11034. # link against other versions.
  11035. version_type=sunos
  11036. need_lib_prefix=no
  11037. need_version=no
  11038. case $host_cpu in
  11039. ia64*)
  11040. shrext_cmds='.so'
  11041. hardcode_into_libs=yes
  11042. dynamic_linker="$host_os dld.so"
  11043. shlibpath_var=LD_LIBRARY_PATH
  11044. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11046. soname_spec='${libname}${release}${shared_ext}$major'
  11047. if test "X$HPUX_IA64_MODE" = X32; then
  11048. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11049. else
  11050. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11051. fi
  11052. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11053. ;;
  11054. hppa*64*)
  11055. shrext_cmds='.sl'
  11056. hardcode_into_libs=yes
  11057. dynamic_linker="$host_os dld.sl"
  11058. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11059. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11061. soname_spec='${libname}${release}${shared_ext}$major'
  11062. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11063. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11064. ;;
  11065. *)
  11066. shrext_cmds='.sl'
  11067. dynamic_linker="$host_os dld.sl"
  11068. shlibpath_var=SHLIB_PATH
  11069. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11071. soname_spec='${libname}${release}${shared_ext}$major'
  11072. ;;
  11073. esac
  11074. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11075. postinstall_cmds='chmod 555 $lib'
  11076. ;;
  11077. interix3*)
  11078. version_type=linux
  11079. need_lib_prefix=no
  11080. need_version=no
  11081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11082. soname_spec='${libname}${release}${shared_ext}$major'
  11083. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11084. shlibpath_var=LD_LIBRARY_PATH
  11085. shlibpath_overrides_runpath=no
  11086. hardcode_into_libs=yes
  11087. ;;
  11088. irix5* | irix6* | nonstopux*)
  11089. case $host_os in
  11090. nonstopux*) version_type=nonstopux ;;
  11091. *)
  11092. if test "$lt_cv_prog_gnu_ld" = yes; then
  11093. version_type=linux
  11094. else
  11095. version_type=irix
  11096. fi ;;
  11097. esac
  11098. need_lib_prefix=no
  11099. need_version=no
  11100. soname_spec='${libname}${release}${shared_ext}$major'
  11101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11102. case $host_os in
  11103. irix5* | nonstopux*)
  11104. libsuff= shlibsuff=
  11105. ;;
  11106. *)
  11107. case $LD in # libtool.m4 will add one of these switches to LD
  11108. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11109. libsuff= shlibsuff= libmagic=32-bit;;
  11110. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11111. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11112. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11113. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11114. *) libsuff= shlibsuff= libmagic=never-match;;
  11115. esac
  11116. ;;
  11117. esac
  11118. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11119. shlibpath_overrides_runpath=no
  11120. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11121. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11122. hardcode_into_libs=yes
  11123. ;;
  11124. # No shared lib support for Linux oldld, aout, or coff.
  11125. linux*oldld* | linux*aout* | linux*coff*)
  11126. dynamic_linker=no
  11127. ;;
  11128. # This must be Linux ELF.
  11129. linux*)
  11130. version_type=linux
  11131. need_lib_prefix=no
  11132. need_version=no
  11133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11134. soname_spec='${libname}${release}${shared_ext}$major'
  11135. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11136. shlibpath_var=LD_LIBRARY_PATH
  11137. shlibpath_overrides_runpath=no
  11138. # This implies no fast_install, which is unacceptable.
  11139. # Some rework will be needed to allow for fast_install
  11140. # before this can be enabled.
  11141. hardcode_into_libs=yes
  11142. # Append ld.so.conf contents to the search path
  11143. if test -f /etc/ld.so.conf; then
  11144. 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' ' '`
  11145. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11146. fi
  11147. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11148. # powerpc, because MkLinux only supported shared libraries with the
  11149. # GNU dynamic linker. Since this was broken with cross compilers,
  11150. # most powerpc-linux boxes support dynamic linking these days and
  11151. # people can always --disable-shared, the test was removed, and we
  11152. # assume the GNU/Linux dynamic linker is in use.
  11153. dynamic_linker='GNU/Linux ld.so'
  11154. ;;
  11155. knetbsd*-gnu)
  11156. version_type=linux
  11157. need_lib_prefix=no
  11158. need_version=no
  11159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11160. soname_spec='${libname}${release}${shared_ext}$major'
  11161. shlibpath_var=LD_LIBRARY_PATH
  11162. shlibpath_overrides_runpath=no
  11163. hardcode_into_libs=yes
  11164. dynamic_linker='GNU ld.so'
  11165. ;;
  11166. netbsd*)
  11167. version_type=sunos
  11168. need_lib_prefix=no
  11169. need_version=no
  11170. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11172. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11173. dynamic_linker='NetBSD (a.out) ld.so'
  11174. else
  11175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11176. soname_spec='${libname}${release}${shared_ext}$major'
  11177. dynamic_linker='NetBSD ld.elf_so'
  11178. fi
  11179. shlibpath_var=LD_LIBRARY_PATH
  11180. shlibpath_overrides_runpath=yes
  11181. hardcode_into_libs=yes
  11182. ;;
  11183. newsos6)
  11184. version_type=linux
  11185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11186. shlibpath_var=LD_LIBRARY_PATH
  11187. shlibpath_overrides_runpath=yes
  11188. ;;
  11189. nto-qnx*)
  11190. version_type=linux
  11191. need_lib_prefix=no
  11192. need_version=no
  11193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11194. soname_spec='${libname}${release}${shared_ext}$major'
  11195. shlibpath_var=LD_LIBRARY_PATH
  11196. shlibpath_overrides_runpath=yes
  11197. ;;
  11198. openbsd*)
  11199. version_type=sunos
  11200. sys_lib_dlsearch_path_spec="/usr/lib"
  11201. need_lib_prefix=no
  11202. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11203. case $host_os in
  11204. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11205. *) need_version=no ;;
  11206. esac
  11207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11208. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11209. shlibpath_var=LD_LIBRARY_PATH
  11210. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11211. case $host_os in
  11212. openbsd2.[89] | openbsd2.[89].*)
  11213. shlibpath_overrides_runpath=no
  11214. ;;
  11215. *)
  11216. shlibpath_overrides_runpath=yes
  11217. ;;
  11218. esac
  11219. else
  11220. shlibpath_overrides_runpath=yes
  11221. fi
  11222. ;;
  11223. os2*)
  11224. libname_spec='$name'
  11225. shrext_cmds=".dll"
  11226. need_lib_prefix=no
  11227. library_names_spec='$libname${shared_ext} $libname.a'
  11228. dynamic_linker='OS/2 ld.exe'
  11229. shlibpath_var=LIBPATH
  11230. ;;
  11231. osf3* | osf4* | osf5*)
  11232. version_type=osf
  11233. need_lib_prefix=no
  11234. need_version=no
  11235. soname_spec='${libname}${release}${shared_ext}$major'
  11236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11237. shlibpath_var=LD_LIBRARY_PATH
  11238. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11239. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11240. ;;
  11241. solaris*)
  11242. version_type=linux
  11243. need_lib_prefix=no
  11244. need_version=no
  11245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11246. soname_spec='${libname}${release}${shared_ext}$major'
  11247. shlibpath_var=LD_LIBRARY_PATH
  11248. shlibpath_overrides_runpath=yes
  11249. hardcode_into_libs=yes
  11250. # ldd complains unless libraries are executable
  11251. postinstall_cmds='chmod +x $lib'
  11252. ;;
  11253. sunos4*)
  11254. version_type=sunos
  11255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11256. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11257. shlibpath_var=LD_LIBRARY_PATH
  11258. shlibpath_overrides_runpath=yes
  11259. if test "$with_gnu_ld" = yes; then
  11260. need_lib_prefix=no
  11261. fi
  11262. need_version=yes
  11263. ;;
  11264. sysv4 | sysv4.3*)
  11265. version_type=linux
  11266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11267. soname_spec='${libname}${release}${shared_ext}$major'
  11268. shlibpath_var=LD_LIBRARY_PATH
  11269. case $host_vendor in
  11270. sni)
  11271. shlibpath_overrides_runpath=no
  11272. need_lib_prefix=no
  11273. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11274. runpath_var=LD_RUN_PATH
  11275. ;;
  11276. siemens)
  11277. need_lib_prefix=no
  11278. ;;
  11279. motorola)
  11280. need_lib_prefix=no
  11281. need_version=no
  11282. shlibpath_overrides_runpath=no
  11283. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11284. ;;
  11285. esac
  11286. ;;
  11287. sysv4*MP*)
  11288. if test -d /usr/nec ;then
  11289. version_type=linux
  11290. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11291. soname_spec='$libname${shared_ext}.$major'
  11292. shlibpath_var=LD_LIBRARY_PATH
  11293. fi
  11294. ;;
  11295. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11296. version_type=freebsd-elf
  11297. need_lib_prefix=no
  11298. need_version=no
  11299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11300. soname_spec='${libname}${release}${shared_ext}$major'
  11301. shlibpath_var=LD_LIBRARY_PATH
  11302. hardcode_into_libs=yes
  11303. if test "$with_gnu_ld" = yes; then
  11304. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11305. shlibpath_overrides_runpath=no
  11306. else
  11307. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11308. shlibpath_overrides_runpath=yes
  11309. case $host_os in
  11310. sco3.2v5*)
  11311. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11312. ;;
  11313. esac
  11314. fi
  11315. sys_lib_dlsearch_path_spec='/usr/lib'
  11316. ;;
  11317. uts4*)
  11318. version_type=linux
  11319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11320. soname_spec='${libname}${release}${shared_ext}$major'
  11321. shlibpath_var=LD_LIBRARY_PATH
  11322. ;;
  11323. *)
  11324. dynamic_linker=no
  11325. ;;
  11326. esac
  11327. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11328. echo "${ECHO_T}$dynamic_linker" >&6
  11329. test "$dynamic_linker" = no && can_build_shared=no
  11330. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11331. if test "$GCC" = yes; then
  11332. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11333. fi
  11334. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11335. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11336. hardcode_action_CXX=
  11337. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11338. test -n "$runpath_var_CXX" || \
  11339. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11340. # We can hardcode non-existant directories.
  11341. if test "$hardcode_direct_CXX" != no &&
  11342. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11343. # have to relink, otherwise we might link with an installed library
  11344. # when we should be linking with a yet-to-be-installed one
  11345. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11346. test "$hardcode_minus_L_CXX" != no; then
  11347. # Linking always hardcodes the temporary library directory.
  11348. hardcode_action_CXX=relink
  11349. else
  11350. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11351. hardcode_action_CXX=immediate
  11352. fi
  11353. else
  11354. # We cannot hardcode anything, or else we can only hardcode existing
  11355. # directories.
  11356. hardcode_action_CXX=unsupported
  11357. fi
  11358. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11359. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11360. if test "$hardcode_action_CXX" = relink; then
  11361. # Fast installation is not supported
  11362. enable_fast_install=no
  11363. elif test "$shlibpath_overrides_runpath" = yes ||
  11364. test "$enable_shared" = no; then
  11365. # Fast installation is not necessary
  11366. enable_fast_install=needless
  11367. fi
  11368. # The else clause should only fire when bootstrapping the
  11369. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11370. # with your package, and you will get complaints that there are
  11371. # no rules to generate ltmain.sh.
  11372. if test -f "$ltmain"; then
  11373. # See if we are running on zsh, and set the options which allow our commands through
  11374. # without removal of \ escapes.
  11375. if test -n "${ZSH_VERSION+set}" ; then
  11376. setopt NO_GLOB_SUBST
  11377. fi
  11378. # Now quote all the things that may contain metacharacters while being
  11379. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11380. # variables and quote the copies for generation of the libtool script.
  11381. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11382. SED SHELL STRIP \
  11383. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11384. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11385. deplibs_check_method reload_flag reload_cmds need_locks \
  11386. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11387. lt_cv_sys_global_symbol_to_c_name_address \
  11388. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11389. old_postinstall_cmds old_postuninstall_cmds \
  11390. compiler_CXX \
  11391. CC_CXX \
  11392. LD_CXX \
  11393. lt_prog_compiler_wl_CXX \
  11394. lt_prog_compiler_pic_CXX \
  11395. lt_prog_compiler_static_CXX \
  11396. lt_prog_compiler_no_builtin_flag_CXX \
  11397. export_dynamic_flag_spec_CXX \
  11398. thread_safe_flag_spec_CXX \
  11399. whole_archive_flag_spec_CXX \
  11400. enable_shared_with_static_runtimes_CXX \
  11401. old_archive_cmds_CXX \
  11402. old_archive_from_new_cmds_CXX \
  11403. predep_objects_CXX \
  11404. postdep_objects_CXX \
  11405. predeps_CXX \
  11406. postdeps_CXX \
  11407. compiler_lib_search_path_CXX \
  11408. archive_cmds_CXX \
  11409. archive_expsym_cmds_CXX \
  11410. postinstall_cmds_CXX \
  11411. postuninstall_cmds_CXX \
  11412. old_archive_from_expsyms_cmds_CXX \
  11413. allow_undefined_flag_CXX \
  11414. no_undefined_flag_CXX \
  11415. export_symbols_cmds_CXX \
  11416. hardcode_libdir_flag_spec_CXX \
  11417. hardcode_libdir_flag_spec_ld_CXX \
  11418. hardcode_libdir_separator_CXX \
  11419. hardcode_automatic_CXX \
  11420. module_cmds_CXX \
  11421. module_expsym_cmds_CXX \
  11422. lt_cv_prog_compiler_c_o_CXX \
  11423. exclude_expsyms_CXX \
  11424. include_expsyms_CXX; do
  11425. case $var in
  11426. old_archive_cmds_CXX | \
  11427. old_archive_from_new_cmds_CXX | \
  11428. archive_cmds_CXX | \
  11429. archive_expsym_cmds_CXX | \
  11430. module_cmds_CXX | \
  11431. module_expsym_cmds_CXX | \
  11432. old_archive_from_expsyms_cmds_CXX | \
  11433. export_symbols_cmds_CXX | \
  11434. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11435. postinstall_cmds | postuninstall_cmds | \
  11436. old_postinstall_cmds | old_postuninstall_cmds | \
  11437. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11438. # Double-quote double-evaled strings.
  11439. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11440. ;;
  11441. *)
  11442. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11443. ;;
  11444. esac
  11445. done
  11446. case $lt_echo in
  11447. *'\$0 --fallback-echo"')
  11448. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11449. ;;
  11450. esac
  11451. cfgfile="$ofile"
  11452. cat <<__EOF__ >> "$cfgfile"
  11453. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11454. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11455. # Shell to use when invoking shell scripts.
  11456. SHELL=$lt_SHELL
  11457. # Whether or not to build shared libraries.
  11458. build_libtool_libs=$enable_shared
  11459. # Whether or not to build static libraries.
  11460. build_old_libs=$enable_static
  11461. # Whether or not to add -lc for building shared libraries.
  11462. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11463. # Whether or not to disallow shared libs when runtime libs are static
  11464. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11465. # Whether or not to optimize for fast installation.
  11466. fast_install=$enable_fast_install
  11467. # The host system.
  11468. host_alias=$host_alias
  11469. host=$host
  11470. host_os=$host_os
  11471. # The build system.
  11472. build_alias=$build_alias
  11473. build=$build
  11474. build_os=$build_os
  11475. # An echo program that does not interpret backslashes.
  11476. echo=$lt_echo
  11477. # The archiver.
  11478. AR=$lt_AR
  11479. AR_FLAGS=$lt_AR_FLAGS
  11480. # A C compiler.
  11481. LTCC=$lt_LTCC
  11482. # LTCC compiler flags.
  11483. LTCFLAGS=$lt_LTCFLAGS
  11484. # A language-specific compiler.
  11485. CC=$lt_compiler_CXX
  11486. # Is the compiler the GNU C compiler?
  11487. with_gcc=$GCC_CXX
  11488. # An ERE matcher.
  11489. EGREP=$lt_EGREP
  11490. # The linker used to build libraries.
  11491. LD=$lt_LD_CXX
  11492. # Whether we need hard or soft links.
  11493. LN_S=$lt_LN_S
  11494. # A BSD-compatible nm program.
  11495. NM=$lt_NM
  11496. # A symbol stripping program
  11497. STRIP=$lt_STRIP
  11498. # Used to examine libraries when file_magic_cmd begins "file"
  11499. MAGIC_CMD=$MAGIC_CMD
  11500. # Used on cygwin: DLL creation program.
  11501. DLLTOOL="$DLLTOOL"
  11502. # Used on cygwin: object dumper.
  11503. OBJDUMP="$OBJDUMP"
  11504. # Used on cygwin: assembler.
  11505. AS="$AS"
  11506. # The name of the directory that contains temporary libtool files.
  11507. objdir=$objdir
  11508. # How to create reloadable object files.
  11509. reload_flag=$lt_reload_flag
  11510. reload_cmds=$lt_reload_cmds
  11511. # How to pass a linker flag through the compiler.
  11512. wl=$lt_lt_prog_compiler_wl_CXX
  11513. # Object file suffix (normally "o").
  11514. objext="$ac_objext"
  11515. # Old archive suffix (normally "a").
  11516. libext="$libext"
  11517. # Shared library suffix (normally ".so").
  11518. shrext_cmds='$shrext_cmds'
  11519. # Executable file suffix (normally "").
  11520. exeext="$exeext"
  11521. # Additional compiler flags for building library objects.
  11522. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11523. pic_mode=$pic_mode
  11524. # What is the maximum length of a command?
  11525. max_cmd_len=$lt_cv_sys_max_cmd_len
  11526. # Does compiler simultaneously support -c and -o options?
  11527. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11528. # Must we lock files when doing compilation?
  11529. need_locks=$lt_need_locks
  11530. # Do we need the lib prefix for modules?
  11531. need_lib_prefix=$need_lib_prefix
  11532. # Do we need a version for libraries?
  11533. need_version=$need_version
  11534. # Whether dlopen is supported.
  11535. dlopen_support=$enable_dlopen
  11536. # Whether dlopen of programs is supported.
  11537. dlopen_self=$enable_dlopen_self
  11538. # Whether dlopen of statically linked programs is supported.
  11539. dlopen_self_static=$enable_dlopen_self_static
  11540. # Compiler flag to prevent dynamic linking.
  11541. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11542. # Compiler flag to turn off builtin functions.
  11543. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11544. # Compiler flag to allow reflexive dlopens.
  11545. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11546. # Compiler flag to generate shared objects directly from archives.
  11547. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11548. # Compiler flag to generate thread-safe objects.
  11549. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11550. # Library versioning type.
  11551. version_type=$version_type
  11552. # Format of library name prefix.
  11553. libname_spec=$lt_libname_spec
  11554. # List of archive names. First name is the real one, the rest are links.
  11555. # The last name is the one that the linker finds with -lNAME.
  11556. library_names_spec=$lt_library_names_spec
  11557. # The coded name of the library, if different from the real name.
  11558. soname_spec=$lt_soname_spec
  11559. # Commands used to build and install an old-style archive.
  11560. RANLIB=$lt_RANLIB
  11561. old_archive_cmds=$lt_old_archive_cmds_CXX
  11562. old_postinstall_cmds=$lt_old_postinstall_cmds
  11563. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11564. # Create an old-style archive from a shared archive.
  11565. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11566. # Create a temporary old-style archive to link instead of a shared archive.
  11567. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11568. # Commands used to build and install a shared archive.
  11569. archive_cmds=$lt_archive_cmds_CXX
  11570. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11571. postinstall_cmds=$lt_postinstall_cmds
  11572. postuninstall_cmds=$lt_postuninstall_cmds
  11573. # Commands used to build a loadable module (assumed same as above if empty)
  11574. module_cmds=$lt_module_cmds_CXX
  11575. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11576. # Commands to strip libraries.
  11577. old_striplib=$lt_old_striplib
  11578. striplib=$lt_striplib
  11579. # Dependencies to place before the objects being linked to create a
  11580. # shared library.
  11581. predep_objects=$lt_predep_objects_CXX
  11582. # Dependencies to place after the objects being linked to create a
  11583. # shared library.
  11584. postdep_objects=$lt_postdep_objects_CXX
  11585. # Dependencies to place before the objects being linked to create a
  11586. # shared library.
  11587. predeps=$lt_predeps_CXX
  11588. # Dependencies to place after the objects being linked to create a
  11589. # shared library.
  11590. postdeps=$lt_postdeps_CXX
  11591. # The library search path used internally by the compiler when linking
  11592. # a shared library.
  11593. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11594. # Method to check whether dependent libraries are shared objects.
  11595. deplibs_check_method=$lt_deplibs_check_method
  11596. # Command to use when deplibs_check_method == file_magic.
  11597. file_magic_cmd=$lt_file_magic_cmd
  11598. # Flag that allows shared libraries with undefined symbols to be built.
  11599. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11600. # Flag that forces no undefined symbols.
  11601. no_undefined_flag=$lt_no_undefined_flag_CXX
  11602. # Commands used to finish a libtool library installation in a directory.
  11603. finish_cmds=$lt_finish_cmds
  11604. # Same as above, but a single script fragment to be evaled but not shown.
  11605. finish_eval=$lt_finish_eval
  11606. # Take the output of nm and produce a listing of raw symbols and C names.
  11607. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11608. # Transform the output of nm in a proper C declaration
  11609. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11610. # Transform the output of nm in a C name address pair
  11611. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11612. # This is the shared library runtime path variable.
  11613. runpath_var=$runpath_var
  11614. # This is the shared library path variable.
  11615. shlibpath_var=$shlibpath_var
  11616. # Is shlibpath searched before the hard-coded library search path?
  11617. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11618. # How to hardcode a shared library path into an executable.
  11619. hardcode_action=$hardcode_action_CXX
  11620. # Whether we should hardcode library paths into libraries.
  11621. hardcode_into_libs=$hardcode_into_libs
  11622. # Flag to hardcode \$libdir into a binary during linking.
  11623. # This must work even if \$libdir does not exist.
  11624. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11625. # If ld is used when linking, flag to hardcode \$libdir into
  11626. # a binary during linking. This must work even if \$libdir does
  11627. # not exist.
  11628. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11629. # Whether we need a single -rpath flag with a separated argument.
  11630. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11631. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11632. # resulting binary.
  11633. hardcode_direct=$hardcode_direct_CXX
  11634. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11635. # resulting binary.
  11636. hardcode_minus_L=$hardcode_minus_L_CXX
  11637. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11638. # the resulting binary.
  11639. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11640. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11641. # and all subsequent libraries and executables linked against it.
  11642. hardcode_automatic=$hardcode_automatic_CXX
  11643. # Variables whose values should be saved in libtool wrapper scripts and
  11644. # restored at relink time.
  11645. variables_saved_for_relink="$variables_saved_for_relink"
  11646. # Whether libtool must link a program against all its dependency libraries.
  11647. link_all_deplibs=$link_all_deplibs_CXX
  11648. # Compile-time system search path for libraries
  11649. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11650. # Run-time system search path for libraries
  11651. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11652. # Fix the shell variable \$srcfile for the compiler.
  11653. fix_srcfile_path="$fix_srcfile_path_CXX"
  11654. # Set to yes if exported symbols are required.
  11655. always_export_symbols=$always_export_symbols_CXX
  11656. # The commands to list exported symbols.
  11657. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11658. # The commands to extract the exported symbol list from a shared archive.
  11659. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11660. # Symbols that should not be listed in the preloaded symbols.
  11661. exclude_expsyms=$lt_exclude_expsyms_CXX
  11662. # Symbols that must always be exported.
  11663. include_expsyms=$lt_include_expsyms_CXX
  11664. # ### END LIBTOOL TAG CONFIG: $tagname
  11665. __EOF__
  11666. else
  11667. # If there is no Makefile yet, we rely on a make rule to execute
  11668. # `config.status --recheck' to rerun these tests and create the
  11669. # libtool script then.
  11670. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11671. if test -f "$ltmain_in"; then
  11672. test -f Makefile && make "$ltmain"
  11673. fi
  11674. fi
  11675. ac_ext=c
  11676. ac_cpp='$CPP $CPPFLAGS'
  11677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11680. CC=$lt_save_CC
  11681. LDCXX=$LD
  11682. LD=$lt_save_LD
  11683. GCC=$lt_save_GCC
  11684. with_gnu_ldcxx=$with_gnu_ld
  11685. with_gnu_ld=$lt_save_with_gnu_ld
  11686. lt_cv_path_LDCXX=$lt_cv_path_LD
  11687. lt_cv_path_LD=$lt_save_path_LD
  11688. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11689. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11690. else
  11691. tagname=""
  11692. fi
  11693. ;;
  11694. F77)
  11695. if test -n "$F77" && test "X$F77" != "Xno"; then
  11696. ac_ext=f
  11697. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11698. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11699. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11700. archive_cmds_need_lc_F77=no
  11701. allow_undefined_flag_F77=
  11702. always_export_symbols_F77=no
  11703. archive_expsym_cmds_F77=
  11704. export_dynamic_flag_spec_F77=
  11705. hardcode_direct_F77=no
  11706. hardcode_libdir_flag_spec_F77=
  11707. hardcode_libdir_flag_spec_ld_F77=
  11708. hardcode_libdir_separator_F77=
  11709. hardcode_minus_L_F77=no
  11710. hardcode_automatic_F77=no
  11711. module_cmds_F77=
  11712. module_expsym_cmds_F77=
  11713. link_all_deplibs_F77=unknown
  11714. old_archive_cmds_F77=$old_archive_cmds
  11715. no_undefined_flag_F77=
  11716. whole_archive_flag_spec_F77=
  11717. enable_shared_with_static_runtimes_F77=no
  11718. # Source file extension for f77 test sources.
  11719. ac_ext=f
  11720. # Object file extension for compiled f77 test sources.
  11721. objext=o
  11722. objext_F77=$objext
  11723. # Code to be used in simple compile tests
  11724. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11725. # Code to be used in simple link tests
  11726. lt_simple_link_test_code=" program t\n end\n"
  11727. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11728. # If no C compiler was specified, use CC.
  11729. LTCC=${LTCC-"$CC"}
  11730. # If no C compiler flags were specified, use CFLAGS.
  11731. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11732. # Allow CC to be a program name with arguments.
  11733. compiler=$CC
  11734. # save warnings/boilerplate of simple test code
  11735. ac_outfile=conftest.$ac_objext
  11736. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11737. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11738. _lt_compiler_boilerplate=`cat conftest.err`
  11739. $rm conftest*
  11740. ac_outfile=conftest.$ac_objext
  11741. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11742. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11743. _lt_linker_boilerplate=`cat conftest.err`
  11744. $rm conftest*
  11745. # Allow CC to be a program name with arguments.
  11746. lt_save_CC="$CC"
  11747. CC=${F77-"f77"}
  11748. compiler=$CC
  11749. compiler_F77=$CC
  11750. for cc_temp in $compiler""; do
  11751. case $cc_temp in
  11752. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11753. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11754. \-*) ;;
  11755. *) break;;
  11756. esac
  11757. done
  11758. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11759. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11760. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11761. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11762. echo "${ECHO_T}$can_build_shared" >&6
  11763. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11764. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11765. test "$can_build_shared" = "no" && enable_shared=no
  11766. # On AIX, shared libraries and static libraries use the same namespace, and
  11767. # are all built from PIC.
  11768. case $host_os in
  11769. aix3*)
  11770. test "$enable_shared" = yes && enable_static=no
  11771. if test -n "$RANLIB"; then
  11772. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11773. postinstall_cmds='$RANLIB $lib'
  11774. fi
  11775. ;;
  11776. aix4* | aix5*)
  11777. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11778. test "$enable_shared" = yes && enable_static=no
  11779. fi
  11780. ;;
  11781. esac
  11782. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11783. echo "${ECHO_T}$enable_shared" >&6
  11784. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11785. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11786. # Make sure either enable_shared or enable_static is yes.
  11787. test "$enable_shared" = yes || enable_static=yes
  11788. echo "$as_me:$LINENO: result: $enable_static" >&5
  11789. echo "${ECHO_T}$enable_static" >&6
  11790. GCC_F77="$G77"
  11791. LD_F77="$LD"
  11792. lt_prog_compiler_wl_F77=
  11793. lt_prog_compiler_pic_F77=
  11794. lt_prog_compiler_static_F77=
  11795. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11796. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11797. if test "$GCC" = yes; then
  11798. lt_prog_compiler_wl_F77='-Wl,'
  11799. lt_prog_compiler_static_F77='-static'
  11800. case $host_os in
  11801. aix*)
  11802. # All AIX code is PIC.
  11803. if test "$host_cpu" = ia64; then
  11804. # AIX 5 now supports IA64 processor
  11805. lt_prog_compiler_static_F77='-Bstatic'
  11806. fi
  11807. ;;
  11808. amigaos*)
  11809. # FIXME: we need at least 68020 code to build shared libraries, but
  11810. # adding the `-m68020' flag to GCC prevents building anything better,
  11811. # like `-m68040'.
  11812. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11813. ;;
  11814. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11815. # PIC is the default for these OSes.
  11816. ;;
  11817. mingw* | pw32* | os2*)
  11818. # This hack is so that the source file can tell whether it is being
  11819. # built for inclusion in a dll (and should export symbols for example).
  11820. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11821. ;;
  11822. darwin* | rhapsody*)
  11823. # PIC is the default on this platform
  11824. # Common symbols not allowed in MH_DYLIB files
  11825. lt_prog_compiler_pic_F77='-fno-common'
  11826. ;;
  11827. interix3*)
  11828. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11829. # Instead, we relocate shared libraries at runtime.
  11830. ;;
  11831. msdosdjgpp*)
  11832. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11833. # on systems that don't support them.
  11834. lt_prog_compiler_can_build_shared_F77=no
  11835. enable_shared=no
  11836. ;;
  11837. sysv4*MP*)
  11838. if test -d /usr/nec; then
  11839. lt_prog_compiler_pic_F77=-Kconform_pic
  11840. fi
  11841. ;;
  11842. hpux*)
  11843. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11844. # not for PA HP-UX.
  11845. case $host_cpu in
  11846. hppa*64*|ia64*)
  11847. # +Z the default
  11848. ;;
  11849. *)
  11850. lt_prog_compiler_pic_F77='-fPIC'
  11851. ;;
  11852. esac
  11853. ;;
  11854. *)
  11855. lt_prog_compiler_pic_F77='-fPIC'
  11856. ;;
  11857. esac
  11858. else
  11859. # PORTME Check for flag to pass linker flags through the system compiler.
  11860. case $host_os in
  11861. aix*)
  11862. lt_prog_compiler_wl_F77='-Wl,'
  11863. if test "$host_cpu" = ia64; then
  11864. # AIX 5 now supports IA64 processor
  11865. lt_prog_compiler_static_F77='-Bstatic'
  11866. else
  11867. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11868. fi
  11869. ;;
  11870. darwin*)
  11871. # PIC is the default on this platform
  11872. # Common symbols not allowed in MH_DYLIB files
  11873. case $cc_basename in
  11874. xlc*)
  11875. lt_prog_compiler_pic_F77='-qnocommon'
  11876. lt_prog_compiler_wl_F77='-Wl,'
  11877. ;;
  11878. esac
  11879. ;;
  11880. mingw* | pw32* | os2*)
  11881. # This hack is so that the source file can tell whether it is being
  11882. # built for inclusion in a dll (and should export symbols for example).
  11883. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11884. ;;
  11885. hpux9* | hpux10* | hpux11*)
  11886. lt_prog_compiler_wl_F77='-Wl,'
  11887. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11888. # not for PA HP-UX.
  11889. case $host_cpu in
  11890. hppa*64*|ia64*)
  11891. # +Z the default
  11892. ;;
  11893. *)
  11894. lt_prog_compiler_pic_F77='+Z'
  11895. ;;
  11896. esac
  11897. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11898. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11899. ;;
  11900. irix5* | irix6* | nonstopux*)
  11901. lt_prog_compiler_wl_F77='-Wl,'
  11902. # PIC (with -KPIC) is the default.
  11903. lt_prog_compiler_static_F77='-non_shared'
  11904. ;;
  11905. newsos6)
  11906. lt_prog_compiler_pic_F77='-KPIC'
  11907. lt_prog_compiler_static_F77='-Bstatic'
  11908. ;;
  11909. linux*)
  11910. case $cc_basename in
  11911. icc* | ecc*)
  11912. lt_prog_compiler_wl_F77='-Wl,'
  11913. lt_prog_compiler_pic_F77='-KPIC'
  11914. lt_prog_compiler_static_F77='-static'
  11915. ;;
  11916. pgcc* | pgf77* | pgf90* | pgf95*)
  11917. # Portland Group compilers (*not* the Pentium gcc compiler,
  11918. # which looks to be a dead project)
  11919. lt_prog_compiler_wl_F77='-Wl,'
  11920. lt_prog_compiler_pic_F77='-fpic'
  11921. lt_prog_compiler_static_F77='-Bstatic'
  11922. ;;
  11923. ccc*)
  11924. lt_prog_compiler_wl_F77='-Wl,'
  11925. # All Alpha code is PIC.
  11926. lt_prog_compiler_static_F77='-non_shared'
  11927. ;;
  11928. esac
  11929. ;;
  11930. osf3* | osf4* | osf5*)
  11931. lt_prog_compiler_wl_F77='-Wl,'
  11932. # All OSF/1 code is PIC.
  11933. lt_prog_compiler_static_F77='-non_shared'
  11934. ;;
  11935. solaris*)
  11936. lt_prog_compiler_pic_F77='-KPIC'
  11937. lt_prog_compiler_static_F77='-Bstatic'
  11938. case $cc_basename in
  11939. f77* | f90* | f95*)
  11940. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11941. *)
  11942. lt_prog_compiler_wl_F77='-Wl,';;
  11943. esac
  11944. ;;
  11945. sunos4*)
  11946. lt_prog_compiler_wl_F77='-Qoption ld '
  11947. lt_prog_compiler_pic_F77='-PIC'
  11948. lt_prog_compiler_static_F77='-Bstatic'
  11949. ;;
  11950. sysv4 | sysv4.2uw2* | sysv4.3*)
  11951. lt_prog_compiler_wl_F77='-Wl,'
  11952. lt_prog_compiler_pic_F77='-KPIC'
  11953. lt_prog_compiler_static_F77='-Bstatic'
  11954. ;;
  11955. sysv4*MP*)
  11956. if test -d /usr/nec ;then
  11957. lt_prog_compiler_pic_F77='-Kconform_pic'
  11958. lt_prog_compiler_static_F77='-Bstatic'
  11959. fi
  11960. ;;
  11961. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11962. lt_prog_compiler_wl_F77='-Wl,'
  11963. lt_prog_compiler_pic_F77='-KPIC'
  11964. lt_prog_compiler_static_F77='-Bstatic'
  11965. ;;
  11966. unicos*)
  11967. lt_prog_compiler_wl_F77='-Wl,'
  11968. lt_prog_compiler_can_build_shared_F77=no
  11969. ;;
  11970. uts4*)
  11971. lt_prog_compiler_pic_F77='-pic'
  11972. lt_prog_compiler_static_F77='-Bstatic'
  11973. ;;
  11974. *)
  11975. lt_prog_compiler_can_build_shared_F77=no
  11976. ;;
  11977. esac
  11978. fi
  11979. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11980. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11981. #
  11982. # Check to make sure the PIC flag actually works.
  11983. #
  11984. if test -n "$lt_prog_compiler_pic_F77"; then
  11985. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11986. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11987. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11988. echo $ECHO_N "(cached) $ECHO_C" >&6
  11989. else
  11990. lt_prog_compiler_pic_works_F77=no
  11991. ac_outfile=conftest.$ac_objext
  11992. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11993. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11994. # Insert the option either (1) after the last *FLAGS variable, or
  11995. # (2) before a word containing "conftest.", or (3) at the end.
  11996. # Note that $ac_compile itself does not contain backslashes and begins
  11997. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11998. # The option is referenced via a variable to avoid confusing sed.
  11999. lt_compile=`echo "$ac_compile" | $SED \
  12000. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12001. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12002. -e 's:$: $lt_compiler_flag:'`
  12003. (eval echo "\"\$as_me:13339: $lt_compile\"" >&5)
  12004. (eval "$lt_compile" 2>conftest.err)
  12005. ac_status=$?
  12006. cat conftest.err >&5
  12007. echo "$as_me:13343: \$? = $ac_status" >&5
  12008. if (exit $ac_status) && test -s "$ac_outfile"; then
  12009. # The compiler can only warn and ignore the option if not recognized
  12010. # So say no if there are warnings other than the usual output.
  12011. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12012. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12013. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12014. lt_prog_compiler_pic_works_F77=yes
  12015. fi
  12016. fi
  12017. $rm conftest*
  12018. fi
  12019. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12020. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12021. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12022. case $lt_prog_compiler_pic_F77 in
  12023. "" | " "*) ;;
  12024. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12025. esac
  12026. else
  12027. lt_prog_compiler_pic_F77=
  12028. lt_prog_compiler_can_build_shared_F77=no
  12029. fi
  12030. fi
  12031. case $host_os in
  12032. # For platforms which do not support PIC, -DPIC is meaningless:
  12033. *djgpp*)
  12034. lt_prog_compiler_pic_F77=
  12035. ;;
  12036. *)
  12037. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12038. ;;
  12039. esac
  12040. #
  12041. # Check to make sure the static flag actually works.
  12042. #
  12043. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12044. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12045. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12046. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12047. echo $ECHO_N "(cached) $ECHO_C" >&6
  12048. else
  12049. lt_prog_compiler_static_works_F77=no
  12050. save_LDFLAGS="$LDFLAGS"
  12051. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12052. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12053. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12054. # The linker can only warn and ignore the option if not recognized
  12055. # So say no if there are warnings
  12056. if test -s conftest.err; then
  12057. # Append any errors to the config.log.
  12058. cat conftest.err 1>&5
  12059. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12060. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12061. if diff conftest.exp conftest.er2 >/dev/null; then
  12062. lt_prog_compiler_static_works_F77=yes
  12063. fi
  12064. else
  12065. lt_prog_compiler_static_works_F77=yes
  12066. fi
  12067. fi
  12068. $rm conftest*
  12069. LDFLAGS="$save_LDFLAGS"
  12070. fi
  12071. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12072. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12073. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12074. :
  12075. else
  12076. lt_prog_compiler_static_F77=
  12077. fi
  12078. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12079. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12080. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12081. echo $ECHO_N "(cached) $ECHO_C" >&6
  12082. else
  12083. lt_cv_prog_compiler_c_o_F77=no
  12084. $rm -r conftest 2>/dev/null
  12085. mkdir conftest
  12086. cd conftest
  12087. mkdir out
  12088. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12089. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12090. # Insert the option either (1) after the last *FLAGS variable, or
  12091. # (2) before a word containing "conftest.", or (3) at the end.
  12092. # Note that $ac_compile itself does not contain backslashes and begins
  12093. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12094. lt_compile=`echo "$ac_compile" | $SED \
  12095. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12096. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12097. -e 's:$: $lt_compiler_flag:'`
  12098. (eval echo "\"\$as_me:13443: $lt_compile\"" >&5)
  12099. (eval "$lt_compile" 2>out/conftest.err)
  12100. ac_status=$?
  12101. cat out/conftest.err >&5
  12102. echo "$as_me:13447: \$? = $ac_status" >&5
  12103. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12104. then
  12105. # The compiler can only warn and ignore the option if not recognized
  12106. # So say no if there are warnings
  12107. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12108. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12109. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12110. lt_cv_prog_compiler_c_o_F77=yes
  12111. fi
  12112. fi
  12113. chmod u+w . 2>&5
  12114. $rm conftest*
  12115. # SGI C++ compiler will create directory out/ii_files/ for
  12116. # template instantiation
  12117. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12118. $rm out/* && rmdir out
  12119. cd ..
  12120. rmdir conftest
  12121. $rm conftest*
  12122. fi
  12123. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12124. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12125. hard_links="nottested"
  12126. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12127. # do not overwrite the value of need_locks provided by the user
  12128. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12129. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12130. hard_links=yes
  12131. $rm conftest*
  12132. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12133. touch conftest.a
  12134. ln conftest.a conftest.b 2>&5 || hard_links=no
  12135. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12136. echo "$as_me:$LINENO: result: $hard_links" >&5
  12137. echo "${ECHO_T}$hard_links" >&6
  12138. if test "$hard_links" = no; then
  12139. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12140. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12141. need_locks=warn
  12142. fi
  12143. else
  12144. need_locks=no
  12145. fi
  12146. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12147. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12148. runpath_var=
  12149. allow_undefined_flag_F77=
  12150. enable_shared_with_static_runtimes_F77=no
  12151. archive_cmds_F77=
  12152. archive_expsym_cmds_F77=
  12153. old_archive_From_new_cmds_F77=
  12154. old_archive_from_expsyms_cmds_F77=
  12155. export_dynamic_flag_spec_F77=
  12156. whole_archive_flag_spec_F77=
  12157. thread_safe_flag_spec_F77=
  12158. hardcode_libdir_flag_spec_F77=
  12159. hardcode_libdir_flag_spec_ld_F77=
  12160. hardcode_libdir_separator_F77=
  12161. hardcode_direct_F77=no
  12162. hardcode_minus_L_F77=no
  12163. hardcode_shlibpath_var_F77=unsupported
  12164. link_all_deplibs_F77=unknown
  12165. hardcode_automatic_F77=no
  12166. module_cmds_F77=
  12167. module_expsym_cmds_F77=
  12168. always_export_symbols_F77=no
  12169. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12170. # include_expsyms should be a list of space-separated symbols to be *always*
  12171. # included in the symbol list
  12172. include_expsyms_F77=
  12173. # exclude_expsyms can be an extended regexp of symbols to exclude
  12174. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12175. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12176. # as well as any symbol that contains `d'.
  12177. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12178. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12179. # platforms (ab)use it in PIC code, but their linkers get confused if
  12180. # the symbol is explicitly referenced. Since portable code cannot
  12181. # rely on this symbol name, it's probably fine to never include it in
  12182. # preloaded symbol tables.
  12183. extract_expsyms_cmds=
  12184. # Just being paranoid about ensuring that cc_basename is set.
  12185. for cc_temp in $compiler""; do
  12186. case $cc_temp in
  12187. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12188. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12189. \-*) ;;
  12190. *) break;;
  12191. esac
  12192. done
  12193. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12194. case $host_os in
  12195. cygwin* | mingw* | pw32*)
  12196. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12197. # When not using gcc, we currently assume that we are using
  12198. # Microsoft Visual C++.
  12199. if test "$GCC" != yes; then
  12200. with_gnu_ld=no
  12201. fi
  12202. ;;
  12203. interix*)
  12204. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12205. with_gnu_ld=yes
  12206. ;;
  12207. openbsd*)
  12208. with_gnu_ld=no
  12209. ;;
  12210. esac
  12211. ld_shlibs_F77=yes
  12212. if test "$with_gnu_ld" = yes; then
  12213. # If archive_cmds runs LD, not CC, wlarc should be empty
  12214. wlarc='${wl}'
  12215. # Set some defaults for GNU ld with shared library support. These
  12216. # are reset later if shared libraries are not supported. Putting them
  12217. # here allows them to be overridden if necessary.
  12218. runpath_var=LD_RUN_PATH
  12219. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12220. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12221. # ancient GNU ld didn't support --whole-archive et. al.
  12222. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12223. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12224. else
  12225. whole_archive_flag_spec_F77=
  12226. fi
  12227. supports_anon_versioning=no
  12228. case `$LD -v 2>/dev/null` in
  12229. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12230. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12231. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12232. *\ 2.11.*) ;; # other 2.11 versions
  12233. *) supports_anon_versioning=yes ;;
  12234. esac
  12235. # See if GNU ld supports shared libraries.
  12236. case $host_os in
  12237. aix3* | aix4* | aix5*)
  12238. # On AIX/PPC, the GNU linker is very broken
  12239. if test "$host_cpu" != ia64; then
  12240. ld_shlibs_F77=no
  12241. cat <<EOF 1>&2
  12242. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12243. *** to be unable to reliably create shared libraries on AIX.
  12244. *** Therefore, libtool is disabling shared libraries support. If you
  12245. *** really care for shared libraries, you may want to modify your PATH
  12246. *** so that a non-GNU linker is found, and then restart.
  12247. EOF
  12248. fi
  12249. ;;
  12250. amigaos*)
  12251. 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)'
  12252. hardcode_libdir_flag_spec_F77='-L$libdir'
  12253. hardcode_minus_L_F77=yes
  12254. # Samuel A. Falvo II <[email protected]> reports
  12255. # that the semantics of dynamic libraries on AmigaOS, at least up
  12256. # to version 4, is to share data among multiple programs linked
  12257. # with the same dynamic library. Since this doesn't match the
  12258. # behavior of shared libraries on other platforms, we can't use
  12259. # them.
  12260. ld_shlibs_F77=no
  12261. ;;
  12262. beos*)
  12263. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12264. allow_undefined_flag_F77=unsupported
  12265. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12266. # support --undefined. This deserves some investigation. FIXME
  12267. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12268. else
  12269. ld_shlibs_F77=no
  12270. fi
  12271. ;;
  12272. cygwin* | mingw* | pw32*)
  12273. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12274. # as there is no search path for DLLs.
  12275. hardcode_libdir_flag_spec_F77='-L$libdir'
  12276. allow_undefined_flag_F77=unsupported
  12277. always_export_symbols_F77=no
  12278. enable_shared_with_static_runtimes_F77=yes
  12279. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12280. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12281. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12282. # If the export-symbols file already is a .def file (1st line
  12283. # is EXPORTS), use it as is; otherwise, prepend...
  12284. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12285. cp $export_symbols $output_objdir/$soname.def;
  12286. else
  12287. echo EXPORTS > $output_objdir/$soname.def;
  12288. cat $export_symbols >> $output_objdir/$soname.def;
  12289. fi~
  12290. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12291. else
  12292. ld_shlibs_F77=no
  12293. fi
  12294. ;;
  12295. interix3*)
  12296. hardcode_direct_F77=no
  12297. hardcode_shlibpath_var_F77=no
  12298. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12299. export_dynamic_flag_spec_F77='${wl}-E'
  12300. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12301. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12302. # default) and relocated if they conflict, which is a slow very memory
  12303. # consuming and fragmenting process. To avoid this, we pick a random,
  12304. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12305. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12306. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12307. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12308. ;;
  12309. linux*)
  12310. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12311. tmp_addflag=
  12312. case $cc_basename,$host_cpu in
  12313. pgcc*) # Portland Group C compiler
  12314. 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'
  12315. tmp_addflag=' $pic_flag'
  12316. ;;
  12317. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12318. 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'
  12319. tmp_addflag=' $pic_flag -Mnomain' ;;
  12320. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12321. tmp_addflag=' -i_dynamic' ;;
  12322. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12323. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12324. ifc* | ifort*) # Intel Fortran compiler
  12325. tmp_addflag=' -nofor_main' ;;
  12326. esac
  12327. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12328. if test $supports_anon_versioning = yes; then
  12329. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12330. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12331. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12332. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12333. fi
  12334. else
  12335. ld_shlibs_F77=no
  12336. fi
  12337. ;;
  12338. netbsd*)
  12339. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12340. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12341. wlarc=
  12342. else
  12343. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12344. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12345. fi
  12346. ;;
  12347. solaris*)
  12348. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12349. ld_shlibs_F77=no
  12350. cat <<EOF 1>&2
  12351. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12352. *** create shared libraries on Solaris systems. Therefore, libtool
  12353. *** is disabling shared libraries support. We urge you to upgrade GNU
  12354. *** binutils to release 2.9.1 or newer. Another option is to modify
  12355. *** your PATH or compiler configuration so that the native linker is
  12356. *** used, and then restart.
  12357. EOF
  12358. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12359. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12360. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12361. else
  12362. ld_shlibs_F77=no
  12363. fi
  12364. ;;
  12365. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12366. case `$LD -v 2>&1` in
  12367. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12368. ld_shlibs_F77=no
  12369. cat <<_LT_EOF 1>&2
  12370. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12371. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12372. *** is disabling shared libraries support. We urge you to upgrade GNU
  12373. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12374. *** your PATH or compiler configuration so that the native linker is
  12375. *** used, and then restart.
  12376. _LT_EOF
  12377. ;;
  12378. *)
  12379. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12380. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12381. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12382. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12383. else
  12384. ld_shlibs_F77=no
  12385. fi
  12386. ;;
  12387. esac
  12388. ;;
  12389. sunos4*)
  12390. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12391. wlarc=
  12392. hardcode_direct_F77=yes
  12393. hardcode_shlibpath_var_F77=no
  12394. ;;
  12395. *)
  12396. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12397. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12398. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12399. else
  12400. ld_shlibs_F77=no
  12401. fi
  12402. ;;
  12403. esac
  12404. if test "$ld_shlibs_F77" = no; then
  12405. runpath_var=
  12406. hardcode_libdir_flag_spec_F77=
  12407. export_dynamic_flag_spec_F77=
  12408. whole_archive_flag_spec_F77=
  12409. fi
  12410. else
  12411. # PORTME fill in a description of your system's linker (not GNU ld)
  12412. case $host_os in
  12413. aix3*)
  12414. allow_undefined_flag_F77=unsupported
  12415. always_export_symbols_F77=yes
  12416. 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'
  12417. # Note: this linker hardcodes the directories in LIBPATH if there
  12418. # are no directories specified by -L.
  12419. hardcode_minus_L_F77=yes
  12420. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12421. # Neither direct hardcoding nor static linking is supported with a
  12422. # broken collect2.
  12423. hardcode_direct_F77=unsupported
  12424. fi
  12425. ;;
  12426. aix4* | aix5*)
  12427. if test "$host_cpu" = ia64; then
  12428. # On IA64, the linker does run time linking by default, so we don't
  12429. # have to do anything special.
  12430. aix_use_runtimelinking=no
  12431. exp_sym_flag='-Bexport'
  12432. no_entry_flag=""
  12433. else
  12434. # If we're using GNU nm, then we don't want the "-C" option.
  12435. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12436. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12437. 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'
  12438. else
  12439. 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'
  12440. fi
  12441. aix_use_runtimelinking=no
  12442. # Test if we are trying to use run time linking or normal
  12443. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12444. # need to do runtime linking.
  12445. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12446. for ld_flag in $LDFLAGS; do
  12447. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12448. aix_use_runtimelinking=yes
  12449. break
  12450. fi
  12451. done
  12452. ;;
  12453. esac
  12454. exp_sym_flag='-bexport'
  12455. no_entry_flag='-bnoentry'
  12456. fi
  12457. # When large executables or shared objects are built, AIX ld can
  12458. # have problems creating the table of contents. If linking a library
  12459. # or program results in "error TOC overflow" add -mminimal-toc to
  12460. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12461. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12462. archive_cmds_F77=''
  12463. hardcode_direct_F77=yes
  12464. hardcode_libdir_separator_F77=':'
  12465. link_all_deplibs_F77=yes
  12466. if test "$GCC" = yes; then
  12467. case $host_os in aix4.[012]|aix4.[012].*)
  12468. # We only want to do this on AIX 4.2 and lower, the check
  12469. # below for broken collect2 doesn't work under 4.3+
  12470. collect2name=`${CC} -print-prog-name=collect2`
  12471. if test -f "$collect2name" && \
  12472. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12473. then
  12474. # We have reworked collect2
  12475. hardcode_direct_F77=yes
  12476. else
  12477. # We have old collect2
  12478. hardcode_direct_F77=unsupported
  12479. # It fails to find uninstalled libraries when the uninstalled
  12480. # path is not listed in the libpath. Setting hardcode_minus_L
  12481. # to unsupported forces relinking
  12482. hardcode_minus_L_F77=yes
  12483. hardcode_libdir_flag_spec_F77='-L$libdir'
  12484. hardcode_libdir_separator_F77=
  12485. fi
  12486. ;;
  12487. esac
  12488. shared_flag='-shared'
  12489. if test "$aix_use_runtimelinking" = yes; then
  12490. shared_flag="$shared_flag "'${wl}-G'
  12491. fi
  12492. else
  12493. # not using gcc
  12494. if test "$host_cpu" = ia64; then
  12495. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12496. # chokes on -Wl,-G. The following line is correct:
  12497. shared_flag='-G'
  12498. else
  12499. if test "$aix_use_runtimelinking" = yes; then
  12500. shared_flag='${wl}-G'
  12501. else
  12502. shared_flag='${wl}-bM:SRE'
  12503. fi
  12504. fi
  12505. fi
  12506. # It seems that -bexpall does not export symbols beginning with
  12507. # underscore (_), so it is better to generate a list of symbols to export.
  12508. always_export_symbols_F77=yes
  12509. if test "$aix_use_runtimelinking" = yes; then
  12510. # Warning - without using the other runtime loading flags (-brtl),
  12511. # -berok will link without error, but may produce a broken library.
  12512. allow_undefined_flag_F77='-berok'
  12513. # Determine the default libpath from the value encoded in an empty executable.
  12514. cat >conftest.$ac_ext <<_ACEOF
  12515. program main
  12516. end
  12517. _ACEOF
  12518. rm -f conftest.$ac_objext conftest$ac_exeext
  12519. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12520. (eval $ac_link) 2>conftest.er1
  12521. ac_status=$?
  12522. grep -v '^ *+' conftest.er1 >conftest.err
  12523. rm -f conftest.er1
  12524. cat conftest.err >&5
  12525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12526. (exit $ac_status); } &&
  12527. { ac_try='test -z "$ac_f77_werror_flag"
  12528. || test ! -s conftest.err'
  12529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12530. (eval $ac_try) 2>&5
  12531. ac_status=$?
  12532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12533. (exit $ac_status); }; } &&
  12534. { ac_try='test -s conftest$ac_exeext'
  12535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12536. (eval $ac_try) 2>&5
  12537. ac_status=$?
  12538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12539. (exit $ac_status); }; }; then
  12540. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12541. }'`
  12542. # Check for a 64-bit object if we didn't find anything.
  12543. 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; }
  12544. }'`; fi
  12545. else
  12546. echo "$as_me: failed program was:" >&5
  12547. sed 's/^/| /' conftest.$ac_ext >&5
  12548. fi
  12549. rm -f conftest.err conftest.$ac_objext \
  12550. conftest$ac_exeext conftest.$ac_ext
  12551. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12552. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12553. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12554. else
  12555. if test "$host_cpu" = ia64; then
  12556. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12557. allow_undefined_flag_F77="-z nodefs"
  12558. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  12559. else
  12560. # Determine the default libpath from the value encoded in an empty executable.
  12561. cat >conftest.$ac_ext <<_ACEOF
  12562. program main
  12563. end
  12564. _ACEOF
  12565. rm -f conftest.$ac_objext conftest$ac_exeext
  12566. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12567. (eval $ac_link) 2>conftest.er1
  12568. ac_status=$?
  12569. grep -v '^ *+' conftest.er1 >conftest.err
  12570. rm -f conftest.er1
  12571. cat conftest.err >&5
  12572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12573. (exit $ac_status); } &&
  12574. { ac_try='test -z "$ac_f77_werror_flag"
  12575. || test ! -s conftest.err'
  12576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12577. (eval $ac_try) 2>&5
  12578. ac_status=$?
  12579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12580. (exit $ac_status); }; } &&
  12581. { ac_try='test -s conftest$ac_exeext'
  12582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12583. (eval $ac_try) 2>&5
  12584. ac_status=$?
  12585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12586. (exit $ac_status); }; }; then
  12587. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12588. }'`
  12589. # Check for a 64-bit object if we didn't find anything.
  12590. 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; }
  12591. }'`; fi
  12592. else
  12593. echo "$as_me: failed program was:" >&5
  12594. sed 's/^/| /' conftest.$ac_ext >&5
  12595. fi
  12596. rm -f conftest.err conftest.$ac_objext \
  12597. conftest$ac_exeext conftest.$ac_ext
  12598. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12599. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12600. # Warning - without using the other run time loading flags,
  12601. # -berok will link without error, but may produce a broken library.
  12602. no_undefined_flag_F77=' ${wl}-bernotok'
  12603. allow_undefined_flag_F77=' ${wl}-berok'
  12604. # Exported symbols can be pulled into shared objects from archives
  12605. whole_archive_flag_spec_F77='$convenience'
  12606. archive_cmds_need_lc_F77=yes
  12607. # This is similar to how AIX traditionally builds its shared libraries.
  12608. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12609. fi
  12610. fi
  12611. ;;
  12612. amigaos*)
  12613. 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)'
  12614. hardcode_libdir_flag_spec_F77='-L$libdir'
  12615. hardcode_minus_L_F77=yes
  12616. # see comment about different semantics on the GNU ld section
  12617. ld_shlibs_F77=no
  12618. ;;
  12619. bsdi[45]*)
  12620. export_dynamic_flag_spec_F77=-rdynamic
  12621. ;;
  12622. cygwin* | mingw* | pw32*)
  12623. # When not using gcc, we currently assume that we are using
  12624. # Microsoft Visual C++.
  12625. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12626. # no search path for DLLs.
  12627. hardcode_libdir_flag_spec_F77=' '
  12628. allow_undefined_flag_F77=unsupported
  12629. # Tell ltmain to make .lib files, not .a files.
  12630. libext=lib
  12631. # Tell ltmain to make .dll files, not .so files.
  12632. shrext_cmds=".dll"
  12633. # FIXME: Setting linknames here is a bad hack.
  12634. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12635. # The linker will automatically build a .lib file if we build a DLL.
  12636. old_archive_From_new_cmds_F77='true'
  12637. # FIXME: Should let the user specify the lib program.
  12638. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12639. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12640. enable_shared_with_static_runtimes_F77=yes
  12641. ;;
  12642. darwin* | rhapsody*)
  12643. case $host_os in
  12644. rhapsody* | darwin1.[012])
  12645. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12646. ;;
  12647. *) # Darwin 1.3 on
  12648. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12649. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12650. else
  12651. case ${MACOSX_DEPLOYMENT_TARGET} in
  12652. 10.[012])
  12653. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12654. ;;
  12655. 10.*)
  12656. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12657. ;;
  12658. esac
  12659. fi
  12660. ;;
  12661. esac
  12662. archive_cmds_need_lc_F77=no
  12663. hardcode_direct_F77=no
  12664. hardcode_automatic_F77=yes
  12665. hardcode_shlibpath_var_F77=unsupported
  12666. whole_archive_flag_spec_F77=''
  12667. link_all_deplibs_F77=yes
  12668. if test "$GCC" = yes ; then
  12669. output_verbose_link_cmd='echo'
  12670. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12671. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12672. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12673. 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}'
  12674. 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}'
  12675. else
  12676. case $cc_basename in
  12677. xlc*)
  12678. output_verbose_link_cmd='echo'
  12679. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12680. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12681. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12682. 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}'
  12683. 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}'
  12684. ;;
  12685. *)
  12686. ld_shlibs_F77=no
  12687. ;;
  12688. esac
  12689. fi
  12690. ;;
  12691. dgux*)
  12692. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12693. hardcode_libdir_flag_spec_F77='-L$libdir'
  12694. hardcode_shlibpath_var_F77=no
  12695. ;;
  12696. freebsd1*)
  12697. ld_shlibs_F77=no
  12698. ;;
  12699. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12700. # support. Future versions do this automatically, but an explicit c++rt0.o
  12701. # does not break anything, and helps significantly (at the cost of a little
  12702. # extra space).
  12703. freebsd2.2*)
  12704. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12705. hardcode_libdir_flag_spec_F77='-R$libdir'
  12706. hardcode_direct_F77=yes
  12707. hardcode_shlibpath_var_F77=no
  12708. ;;
  12709. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12710. freebsd2*)
  12711. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12712. hardcode_direct_F77=yes
  12713. hardcode_minus_L_F77=yes
  12714. hardcode_shlibpath_var_F77=no
  12715. ;;
  12716. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12717. freebsd* | kfreebsd*-gnu | dragonfly*)
  12718. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12719. hardcode_libdir_flag_spec_F77='-R$libdir'
  12720. hardcode_direct_F77=yes
  12721. hardcode_shlibpath_var_F77=no
  12722. ;;
  12723. hpux9*)
  12724. if test "$GCC" = yes; then
  12725. 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'
  12726. else
  12727. 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'
  12728. fi
  12729. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12730. hardcode_libdir_separator_F77=:
  12731. hardcode_direct_F77=yes
  12732. # hardcode_minus_L: Not really in the search PATH,
  12733. # but as the default location of the library.
  12734. hardcode_minus_L_F77=yes
  12735. export_dynamic_flag_spec_F77='${wl}-E'
  12736. ;;
  12737. hpux10*)
  12738. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12739. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12740. else
  12741. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12742. fi
  12743. if test "$with_gnu_ld" = no; then
  12744. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12745. hardcode_libdir_separator_F77=:
  12746. hardcode_direct_F77=yes
  12747. export_dynamic_flag_spec_F77='${wl}-E'
  12748. # hardcode_minus_L: Not really in the search PATH,
  12749. # but as the default location of the library.
  12750. hardcode_minus_L_F77=yes
  12751. fi
  12752. ;;
  12753. hpux11*)
  12754. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12755. case $host_cpu in
  12756. hppa*64*)
  12757. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12758. ;;
  12759. ia64*)
  12760. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12761. ;;
  12762. *)
  12763. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12764. ;;
  12765. esac
  12766. else
  12767. case $host_cpu in
  12768. hppa*64*)
  12769. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12770. ;;
  12771. ia64*)
  12772. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12773. ;;
  12774. *)
  12775. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12776. ;;
  12777. esac
  12778. fi
  12779. if test "$with_gnu_ld" = no; then
  12780. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12781. hardcode_libdir_separator_F77=:
  12782. case $host_cpu in
  12783. hppa*64*|ia64*)
  12784. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12785. hardcode_direct_F77=no
  12786. hardcode_shlibpath_var_F77=no
  12787. ;;
  12788. *)
  12789. hardcode_direct_F77=yes
  12790. export_dynamic_flag_spec_F77='${wl}-E'
  12791. # hardcode_minus_L: Not really in the search PATH,
  12792. # but as the default location of the library.
  12793. hardcode_minus_L_F77=yes
  12794. ;;
  12795. esac
  12796. fi
  12797. ;;
  12798. irix5* | irix6* | nonstopux*)
  12799. if test "$GCC" = yes; then
  12800. 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'
  12801. else
  12802. 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'
  12803. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12804. fi
  12805. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12806. hardcode_libdir_separator_F77=:
  12807. link_all_deplibs_F77=yes
  12808. ;;
  12809. netbsd*)
  12810. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12811. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12812. else
  12813. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12814. fi
  12815. hardcode_libdir_flag_spec_F77='-R$libdir'
  12816. hardcode_direct_F77=yes
  12817. hardcode_shlibpath_var_F77=no
  12818. ;;
  12819. newsos6)
  12820. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12821. hardcode_direct_F77=yes
  12822. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12823. hardcode_libdir_separator_F77=:
  12824. hardcode_shlibpath_var_F77=no
  12825. ;;
  12826. openbsd*)
  12827. hardcode_direct_F77=yes
  12828. hardcode_shlibpath_var_F77=no
  12829. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12830. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12831. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12832. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12833. export_dynamic_flag_spec_F77='${wl}-E'
  12834. else
  12835. case $host_os in
  12836. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12837. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12838. hardcode_libdir_flag_spec_F77='-R$libdir'
  12839. ;;
  12840. *)
  12841. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12842. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12843. ;;
  12844. esac
  12845. fi
  12846. ;;
  12847. os2*)
  12848. hardcode_libdir_flag_spec_F77='-L$libdir'
  12849. hardcode_minus_L_F77=yes
  12850. allow_undefined_flag_F77=unsupported
  12851. 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'
  12852. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12853. ;;
  12854. osf3*)
  12855. if test "$GCC" = yes; then
  12856. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12857. 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'
  12858. else
  12859. allow_undefined_flag_F77=' -expect_unresolved \*'
  12860. 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'
  12861. fi
  12862. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12863. hardcode_libdir_separator_F77=:
  12864. ;;
  12865. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12866. if test "$GCC" = yes; then
  12867. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12868. 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'
  12869. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12870. else
  12871. allow_undefined_flag_F77=' -expect_unresolved \*'
  12872. 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'
  12873. 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~
  12874. $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'
  12875. # Both c and cxx compiler support -rpath directly
  12876. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12877. fi
  12878. hardcode_libdir_separator_F77=:
  12879. ;;
  12880. solaris*)
  12881. no_undefined_flag_F77=' -z text'
  12882. if test "$GCC" = yes; then
  12883. wlarc='${wl}'
  12884. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12885. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12886. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12887. else
  12888. wlarc=''
  12889. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12890. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12891. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12892. fi
  12893. hardcode_libdir_flag_spec_F77='-R$libdir'
  12894. hardcode_shlibpath_var_F77=no
  12895. case $host_os in
  12896. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12897. *)
  12898. # The compiler driver will combine linker options so we
  12899. # cannot just pass the convience library names through
  12900. # without $wl, iff we do not link with $LD.
  12901. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12902. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12903. case $wlarc in
  12904. '')
  12905. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12906. *)
  12907. 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' ;;
  12908. esac ;;
  12909. esac
  12910. link_all_deplibs_F77=yes
  12911. ;;
  12912. sunos4*)
  12913. if test "x$host_vendor" = xsequent; then
  12914. # Use $CC to link under sequent, because it throws in some extra .o
  12915. # files that make .init and .fini sections work.
  12916. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12917. else
  12918. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12919. fi
  12920. hardcode_libdir_flag_spec_F77='-L$libdir'
  12921. hardcode_direct_F77=yes
  12922. hardcode_minus_L_F77=yes
  12923. hardcode_shlibpath_var_F77=no
  12924. ;;
  12925. sysv4)
  12926. case $host_vendor in
  12927. sni)
  12928. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12929. hardcode_direct_F77=yes # is this really true???
  12930. ;;
  12931. siemens)
  12932. ## LD is ld it makes a PLAMLIB
  12933. ## CC just makes a GrossModule.
  12934. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12935. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12936. hardcode_direct_F77=no
  12937. ;;
  12938. motorola)
  12939. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12940. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12941. ;;
  12942. esac
  12943. runpath_var='LD_RUN_PATH'
  12944. hardcode_shlibpath_var_F77=no
  12945. ;;
  12946. sysv4.3*)
  12947. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12948. hardcode_shlibpath_var_F77=no
  12949. export_dynamic_flag_spec_F77='-Bexport'
  12950. ;;
  12951. sysv4*MP*)
  12952. if test -d /usr/nec; then
  12953. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12954. hardcode_shlibpath_var_F77=no
  12955. runpath_var=LD_RUN_PATH
  12956. hardcode_runpath_var=yes
  12957. ld_shlibs_F77=yes
  12958. fi
  12959. ;;
  12960. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  12961. no_undefined_flag_F77='${wl}-z,text'
  12962. archive_cmds_need_lc_F77=no
  12963. hardcode_shlibpath_var_F77=no
  12964. runpath_var='LD_RUN_PATH'
  12965. if test "$GCC" = yes; then
  12966. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12967. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12968. else
  12969. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12970. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12971. fi
  12972. ;;
  12973. sysv5* | sco3.2v5* | sco5v6*)
  12974. # Note: We can NOT use -z defs as we might desire, because we do not
  12975. # link with -lc, and that would cause any symbols used from libc to
  12976. # always be unresolved, which means just about no library would
  12977. # ever link correctly. If we're not using GNU ld we use -z text
  12978. # though, which does catch some bad symbols but isn't as heavy-handed
  12979. # as -z defs.
  12980. no_undefined_flag_F77='${wl}-z,text'
  12981. allow_undefined_flag_F77='${wl}-z,nodefs'
  12982. archive_cmds_need_lc_F77=no
  12983. hardcode_shlibpath_var_F77=no
  12984. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12985. hardcode_libdir_separator_F77=':'
  12986. link_all_deplibs_F77=yes
  12987. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12988. runpath_var='LD_RUN_PATH'
  12989. if test "$GCC" = yes; then
  12990. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12991. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12992. else
  12993. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12994. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12995. fi
  12996. ;;
  12997. uts4*)
  12998. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12999. hardcode_libdir_flag_spec_F77='-L$libdir'
  13000. hardcode_shlibpath_var_F77=no
  13001. ;;
  13002. *)
  13003. ld_shlibs_F77=no
  13004. ;;
  13005. esac
  13006. fi
  13007. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13008. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13009. test "$ld_shlibs_F77" = no && can_build_shared=no
  13010. #
  13011. # Do we need to explicitly link libc?
  13012. #
  13013. case "x$archive_cmds_need_lc_F77" in
  13014. x|xyes)
  13015. # Assume -lc should be added
  13016. archive_cmds_need_lc_F77=yes
  13017. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13018. case $archive_cmds_F77 in
  13019. *'~'*)
  13020. # FIXME: we may have to deal with multi-command sequences.
  13021. ;;
  13022. '$CC '*)
  13023. # Test whether the compiler implicitly links with -lc since on some
  13024. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13025. # to ld, don't add -lc before -lgcc.
  13026. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13027. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13028. $rm conftest*
  13029. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13030. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13031. (eval $ac_compile) 2>&5
  13032. ac_status=$?
  13033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13034. (exit $ac_status); } 2>conftest.err; then
  13035. soname=conftest
  13036. lib=conftest
  13037. libobjs=conftest.$ac_objext
  13038. deplibs=
  13039. wl=$lt_prog_compiler_wl_F77
  13040. pic_flag=$lt_prog_compiler_pic_F77
  13041. compiler_flags=-v
  13042. linker_flags=-v
  13043. verstring=
  13044. output_objdir=.
  13045. libname=conftest
  13046. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13047. allow_undefined_flag_F77=
  13048. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13049. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13050. ac_status=$?
  13051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13052. (exit $ac_status); }
  13053. then
  13054. archive_cmds_need_lc_F77=no
  13055. else
  13056. archive_cmds_need_lc_F77=yes
  13057. fi
  13058. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13059. else
  13060. cat conftest.err 1>&5
  13061. fi
  13062. $rm conftest*
  13063. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13064. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13065. ;;
  13066. esac
  13067. fi
  13068. ;;
  13069. esac
  13070. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13071. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13072. library_names_spec=
  13073. libname_spec='lib$name'
  13074. soname_spec=
  13075. shrext_cmds=".so"
  13076. postinstall_cmds=
  13077. postuninstall_cmds=
  13078. finish_cmds=
  13079. finish_eval=
  13080. shlibpath_var=
  13081. shlibpath_overrides_runpath=unknown
  13082. version_type=none
  13083. dynamic_linker="$host_os ld.so"
  13084. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13085. if test "$GCC" = yes; then
  13086. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13087. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13088. # if the path contains ";" then we assume it to be the separator
  13089. # otherwise default to the standard path separator (i.e. ":") - it is
  13090. # assumed that no part of a normal pathname contains ";" but that should
  13091. # okay in the real world where ";" in dirpaths is itself problematic.
  13092. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13093. else
  13094. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13095. fi
  13096. else
  13097. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13098. fi
  13099. need_lib_prefix=unknown
  13100. hardcode_into_libs=no
  13101. # when you set need_version to no, make sure it does not cause -set_version
  13102. # flags to be left without arguments
  13103. need_version=unknown
  13104. case $host_os in
  13105. aix3*)
  13106. version_type=linux
  13107. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13108. shlibpath_var=LIBPATH
  13109. # AIX 3 has no versioning support, so we append a major version to the name.
  13110. soname_spec='${libname}${release}${shared_ext}$major'
  13111. ;;
  13112. aix4* | aix5*)
  13113. version_type=linux
  13114. need_lib_prefix=no
  13115. need_version=no
  13116. hardcode_into_libs=yes
  13117. if test "$host_cpu" = ia64; then
  13118. # AIX 5 supports IA64
  13119. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13120. shlibpath_var=LD_LIBRARY_PATH
  13121. else
  13122. # With GCC up to 2.95.x, collect2 would create an import file
  13123. # for dependence libraries. The import file would start with
  13124. # the line `#! .'. This would cause the generated library to
  13125. # depend on `.', always an invalid library. This was fixed in
  13126. # development snapshots of GCC prior to 3.0.
  13127. case $host_os in
  13128. aix4 | aix4.[01] | aix4.[01].*)
  13129. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13130. echo ' yes '
  13131. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13132. :
  13133. else
  13134. can_build_shared=no
  13135. fi
  13136. ;;
  13137. esac
  13138. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13139. # soname into executable. Probably we can add versioning support to
  13140. # collect2, so additional links can be useful in future.
  13141. if test "$aix_use_runtimelinking" = yes; then
  13142. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13143. # instead of lib<name>.a to let people know that these are not
  13144. # typical AIX shared libraries.
  13145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13146. else
  13147. # We preserve .a as extension for shared libraries through AIX4.2
  13148. # and later when we are not doing run time linking.
  13149. library_names_spec='${libname}${release}.a $libname.a'
  13150. soname_spec='${libname}${release}${shared_ext}$major'
  13151. fi
  13152. shlibpath_var=LIBPATH
  13153. fi
  13154. ;;
  13155. amigaos*)
  13156. library_names_spec='$libname.ixlibrary $libname.a'
  13157. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13158. 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'
  13159. ;;
  13160. beos*)
  13161. library_names_spec='${libname}${shared_ext}'
  13162. dynamic_linker="$host_os ld.so"
  13163. shlibpath_var=LIBRARY_PATH
  13164. ;;
  13165. bsdi[45]*)
  13166. version_type=linux
  13167. need_version=no
  13168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13169. soname_spec='${libname}${release}${shared_ext}$major'
  13170. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13171. shlibpath_var=LD_LIBRARY_PATH
  13172. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13173. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13174. # the default ld.so.conf also contains /usr/contrib/lib and
  13175. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13176. # libtool to hard-code these into programs
  13177. ;;
  13178. cygwin* | mingw* | pw32*)
  13179. version_type=windows
  13180. shrext_cmds=".dll"
  13181. need_version=no
  13182. need_lib_prefix=no
  13183. case $GCC,$host_os in
  13184. yes,cygwin* | yes,mingw* | yes,pw32*)
  13185. library_names_spec='$libname.dll.a'
  13186. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13187. postinstall_cmds='base_file=`basename \${file}`~
  13188. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13189. dldir=$destdir/`dirname \$dlpath`~
  13190. test -d \$dldir || mkdir -p \$dldir~
  13191. $install_prog $dir/$dlname \$dldir/$dlname~
  13192. chmod a+x \$dldir/$dlname'
  13193. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13194. dlpath=$dir/\$dldll~
  13195. $rm \$dlpath'
  13196. shlibpath_overrides_runpath=yes
  13197. case $host_os in
  13198. cygwin*)
  13199. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13200. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13201. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13202. ;;
  13203. mingw*)
  13204. # MinGW DLLs use traditional 'lib' prefix
  13205. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13206. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13207. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13208. # It is most probably a Windows format PATH printed by
  13209. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13210. # path with ; separators, and with drive letters. We can handle the
  13211. # drive letters (cygwin fileutils understands them), so leave them,
  13212. # especially as we might pass files found there to a mingw objdump,
  13213. # which wouldn't understand a cygwinified path. Ahh.
  13214. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13215. else
  13216. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13217. fi
  13218. ;;
  13219. pw32*)
  13220. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13221. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13222. ;;
  13223. esac
  13224. ;;
  13225. *)
  13226. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13227. ;;
  13228. esac
  13229. dynamic_linker='Win32 ld.exe'
  13230. # FIXME: first we should search . and the directory the executable is in
  13231. shlibpath_var=PATH
  13232. ;;
  13233. darwin* | rhapsody*)
  13234. dynamic_linker="$host_os dyld"
  13235. version_type=darwin
  13236. need_lib_prefix=no
  13237. need_version=no
  13238. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13239. soname_spec='${libname}${release}${major}$shared_ext'
  13240. shlibpath_overrides_runpath=yes
  13241. shlibpath_var=DYLD_LIBRARY_PATH
  13242. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13243. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13244. if test "$GCC" = yes; then
  13245. 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"`
  13246. else
  13247. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13248. fi
  13249. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13250. ;;
  13251. dgux*)
  13252. version_type=linux
  13253. need_lib_prefix=no
  13254. need_version=no
  13255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13256. soname_spec='${libname}${release}${shared_ext}$major'
  13257. shlibpath_var=LD_LIBRARY_PATH
  13258. ;;
  13259. freebsd1*)
  13260. dynamic_linker=no
  13261. ;;
  13262. kfreebsd*-gnu)
  13263. version_type=linux
  13264. need_lib_prefix=no
  13265. need_version=no
  13266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13267. soname_spec='${libname}${release}${shared_ext}$major'
  13268. shlibpath_var=LD_LIBRARY_PATH
  13269. shlibpath_overrides_runpath=no
  13270. hardcode_into_libs=yes
  13271. dynamic_linker='GNU ld.so'
  13272. ;;
  13273. freebsd* | dragonfly*)
  13274. # DragonFly does not have aout. When/if they implement a new
  13275. # versioning mechanism, adjust this.
  13276. if test -x /usr/bin/objformat; then
  13277. objformat=`/usr/bin/objformat`
  13278. else
  13279. case $host_os in
  13280. freebsd[123]*) objformat=aout ;;
  13281. *) objformat=elf ;;
  13282. esac
  13283. fi
  13284. version_type=freebsd-$objformat
  13285. case $version_type in
  13286. freebsd-elf*)
  13287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13288. need_version=no
  13289. need_lib_prefix=no
  13290. ;;
  13291. freebsd-*)
  13292. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13293. need_version=yes
  13294. ;;
  13295. esac
  13296. shlibpath_var=LD_LIBRARY_PATH
  13297. case $host_os in
  13298. freebsd2*)
  13299. shlibpath_overrides_runpath=yes
  13300. ;;
  13301. freebsd3.[01]* | freebsdelf3.[01]*)
  13302. shlibpath_overrides_runpath=yes
  13303. hardcode_into_libs=yes
  13304. ;;
  13305. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13306. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13307. shlibpath_overrides_runpath=no
  13308. hardcode_into_libs=yes
  13309. ;;
  13310. freebsd*) # from 4.6 on
  13311. shlibpath_overrides_runpath=yes
  13312. hardcode_into_libs=yes
  13313. ;;
  13314. esac
  13315. ;;
  13316. gnu*)
  13317. version_type=linux
  13318. need_lib_prefix=no
  13319. need_version=no
  13320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13321. soname_spec='${libname}${release}${shared_ext}$major'
  13322. shlibpath_var=LD_LIBRARY_PATH
  13323. hardcode_into_libs=yes
  13324. ;;
  13325. hpux9* | hpux10* | hpux11*)
  13326. # Give a soname corresponding to the major version so that dld.sl refuses to
  13327. # link against other versions.
  13328. version_type=sunos
  13329. need_lib_prefix=no
  13330. need_version=no
  13331. case $host_cpu in
  13332. ia64*)
  13333. shrext_cmds='.so'
  13334. hardcode_into_libs=yes
  13335. dynamic_linker="$host_os dld.so"
  13336. shlibpath_var=LD_LIBRARY_PATH
  13337. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13339. soname_spec='${libname}${release}${shared_ext}$major'
  13340. if test "X$HPUX_IA64_MODE" = X32; then
  13341. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13342. else
  13343. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13344. fi
  13345. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13346. ;;
  13347. hppa*64*)
  13348. shrext_cmds='.sl'
  13349. hardcode_into_libs=yes
  13350. dynamic_linker="$host_os dld.sl"
  13351. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13352. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13354. soname_spec='${libname}${release}${shared_ext}$major'
  13355. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13356. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13357. ;;
  13358. *)
  13359. shrext_cmds='.sl'
  13360. dynamic_linker="$host_os dld.sl"
  13361. shlibpath_var=SHLIB_PATH
  13362. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13364. soname_spec='${libname}${release}${shared_ext}$major'
  13365. ;;
  13366. esac
  13367. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13368. postinstall_cmds='chmod 555 $lib'
  13369. ;;
  13370. interix3*)
  13371. version_type=linux
  13372. need_lib_prefix=no
  13373. need_version=no
  13374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13375. soname_spec='${libname}${release}${shared_ext}$major'
  13376. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13377. shlibpath_var=LD_LIBRARY_PATH
  13378. shlibpath_overrides_runpath=no
  13379. hardcode_into_libs=yes
  13380. ;;
  13381. irix5* | irix6* | nonstopux*)
  13382. case $host_os in
  13383. nonstopux*) version_type=nonstopux ;;
  13384. *)
  13385. if test "$lt_cv_prog_gnu_ld" = yes; then
  13386. version_type=linux
  13387. else
  13388. version_type=irix
  13389. fi ;;
  13390. esac
  13391. need_lib_prefix=no
  13392. need_version=no
  13393. soname_spec='${libname}${release}${shared_ext}$major'
  13394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13395. case $host_os in
  13396. irix5* | nonstopux*)
  13397. libsuff= shlibsuff=
  13398. ;;
  13399. *)
  13400. case $LD in # libtool.m4 will add one of these switches to LD
  13401. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13402. libsuff= shlibsuff= libmagic=32-bit;;
  13403. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13404. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13405. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13406. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13407. *) libsuff= shlibsuff= libmagic=never-match;;
  13408. esac
  13409. ;;
  13410. esac
  13411. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13412. shlibpath_overrides_runpath=no
  13413. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13414. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13415. hardcode_into_libs=yes
  13416. ;;
  13417. # No shared lib support for Linux oldld, aout, or coff.
  13418. linux*oldld* | linux*aout* | linux*coff*)
  13419. dynamic_linker=no
  13420. ;;
  13421. # This must be Linux ELF.
  13422. linux*)
  13423. version_type=linux
  13424. need_lib_prefix=no
  13425. need_version=no
  13426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13427. soname_spec='${libname}${release}${shared_ext}$major'
  13428. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13429. shlibpath_var=LD_LIBRARY_PATH
  13430. shlibpath_overrides_runpath=no
  13431. # This implies no fast_install, which is unacceptable.
  13432. # Some rework will be needed to allow for fast_install
  13433. # before this can be enabled.
  13434. hardcode_into_libs=yes
  13435. # Append ld.so.conf contents to the search path
  13436. if test -f /etc/ld.so.conf; then
  13437. 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' ' '`
  13438. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13439. fi
  13440. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13441. # powerpc, because MkLinux only supported shared libraries with the
  13442. # GNU dynamic linker. Since this was broken with cross compilers,
  13443. # most powerpc-linux boxes support dynamic linking these days and
  13444. # people can always --disable-shared, the test was removed, and we
  13445. # assume the GNU/Linux dynamic linker is in use.
  13446. dynamic_linker='GNU/Linux ld.so'
  13447. ;;
  13448. knetbsd*-gnu)
  13449. version_type=linux
  13450. need_lib_prefix=no
  13451. need_version=no
  13452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13453. soname_spec='${libname}${release}${shared_ext}$major'
  13454. shlibpath_var=LD_LIBRARY_PATH
  13455. shlibpath_overrides_runpath=no
  13456. hardcode_into_libs=yes
  13457. dynamic_linker='GNU ld.so'
  13458. ;;
  13459. netbsd*)
  13460. version_type=sunos
  13461. need_lib_prefix=no
  13462. need_version=no
  13463. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13465. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13466. dynamic_linker='NetBSD (a.out) ld.so'
  13467. else
  13468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13469. soname_spec='${libname}${release}${shared_ext}$major'
  13470. dynamic_linker='NetBSD ld.elf_so'
  13471. fi
  13472. shlibpath_var=LD_LIBRARY_PATH
  13473. shlibpath_overrides_runpath=yes
  13474. hardcode_into_libs=yes
  13475. ;;
  13476. newsos6)
  13477. version_type=linux
  13478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13479. shlibpath_var=LD_LIBRARY_PATH
  13480. shlibpath_overrides_runpath=yes
  13481. ;;
  13482. nto-qnx*)
  13483. version_type=linux
  13484. need_lib_prefix=no
  13485. need_version=no
  13486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13487. soname_spec='${libname}${release}${shared_ext}$major'
  13488. shlibpath_var=LD_LIBRARY_PATH
  13489. shlibpath_overrides_runpath=yes
  13490. ;;
  13491. openbsd*)
  13492. version_type=sunos
  13493. sys_lib_dlsearch_path_spec="/usr/lib"
  13494. need_lib_prefix=no
  13495. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13496. case $host_os in
  13497. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13498. *) need_version=no ;;
  13499. esac
  13500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13501. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13502. shlibpath_var=LD_LIBRARY_PATH
  13503. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13504. case $host_os in
  13505. openbsd2.[89] | openbsd2.[89].*)
  13506. shlibpath_overrides_runpath=no
  13507. ;;
  13508. *)
  13509. shlibpath_overrides_runpath=yes
  13510. ;;
  13511. esac
  13512. else
  13513. shlibpath_overrides_runpath=yes
  13514. fi
  13515. ;;
  13516. os2*)
  13517. libname_spec='$name'
  13518. shrext_cmds=".dll"
  13519. need_lib_prefix=no
  13520. library_names_spec='$libname${shared_ext} $libname.a'
  13521. dynamic_linker='OS/2 ld.exe'
  13522. shlibpath_var=LIBPATH
  13523. ;;
  13524. osf3* | osf4* | osf5*)
  13525. version_type=osf
  13526. need_lib_prefix=no
  13527. need_version=no
  13528. soname_spec='${libname}${release}${shared_ext}$major'
  13529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13530. shlibpath_var=LD_LIBRARY_PATH
  13531. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13532. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13533. ;;
  13534. solaris*)
  13535. version_type=linux
  13536. need_lib_prefix=no
  13537. need_version=no
  13538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13539. soname_spec='${libname}${release}${shared_ext}$major'
  13540. shlibpath_var=LD_LIBRARY_PATH
  13541. shlibpath_overrides_runpath=yes
  13542. hardcode_into_libs=yes
  13543. # ldd complains unless libraries are executable
  13544. postinstall_cmds='chmod +x $lib'
  13545. ;;
  13546. sunos4*)
  13547. version_type=sunos
  13548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13549. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13550. shlibpath_var=LD_LIBRARY_PATH
  13551. shlibpath_overrides_runpath=yes
  13552. if test "$with_gnu_ld" = yes; then
  13553. need_lib_prefix=no
  13554. fi
  13555. need_version=yes
  13556. ;;
  13557. sysv4 | sysv4.3*)
  13558. version_type=linux
  13559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13560. soname_spec='${libname}${release}${shared_ext}$major'
  13561. shlibpath_var=LD_LIBRARY_PATH
  13562. case $host_vendor in
  13563. sni)
  13564. shlibpath_overrides_runpath=no
  13565. need_lib_prefix=no
  13566. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13567. runpath_var=LD_RUN_PATH
  13568. ;;
  13569. siemens)
  13570. need_lib_prefix=no
  13571. ;;
  13572. motorola)
  13573. need_lib_prefix=no
  13574. need_version=no
  13575. shlibpath_overrides_runpath=no
  13576. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13577. ;;
  13578. esac
  13579. ;;
  13580. sysv4*MP*)
  13581. if test -d /usr/nec ;then
  13582. version_type=linux
  13583. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13584. soname_spec='$libname${shared_ext}.$major'
  13585. shlibpath_var=LD_LIBRARY_PATH
  13586. fi
  13587. ;;
  13588. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13589. version_type=freebsd-elf
  13590. need_lib_prefix=no
  13591. need_version=no
  13592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13593. soname_spec='${libname}${release}${shared_ext}$major'
  13594. shlibpath_var=LD_LIBRARY_PATH
  13595. hardcode_into_libs=yes
  13596. if test "$with_gnu_ld" = yes; then
  13597. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13598. shlibpath_overrides_runpath=no
  13599. else
  13600. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13601. shlibpath_overrides_runpath=yes
  13602. case $host_os in
  13603. sco3.2v5*)
  13604. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13605. ;;
  13606. esac
  13607. fi
  13608. sys_lib_dlsearch_path_spec='/usr/lib'
  13609. ;;
  13610. uts4*)
  13611. version_type=linux
  13612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13613. soname_spec='${libname}${release}${shared_ext}$major'
  13614. shlibpath_var=LD_LIBRARY_PATH
  13615. ;;
  13616. *)
  13617. dynamic_linker=no
  13618. ;;
  13619. esac
  13620. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13621. echo "${ECHO_T}$dynamic_linker" >&6
  13622. test "$dynamic_linker" = no && can_build_shared=no
  13623. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13624. if test "$GCC" = yes; then
  13625. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13626. fi
  13627. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13628. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13629. hardcode_action_F77=
  13630. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13631. test -n "$runpath_var_F77" || \
  13632. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13633. # We can hardcode non-existant directories.
  13634. if test "$hardcode_direct_F77" != no &&
  13635. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13636. # have to relink, otherwise we might link with an installed library
  13637. # when we should be linking with a yet-to-be-installed one
  13638. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13639. test "$hardcode_minus_L_F77" != no; then
  13640. # Linking always hardcodes the temporary library directory.
  13641. hardcode_action_F77=relink
  13642. else
  13643. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13644. hardcode_action_F77=immediate
  13645. fi
  13646. else
  13647. # We cannot hardcode anything, or else we can only hardcode existing
  13648. # directories.
  13649. hardcode_action_F77=unsupported
  13650. fi
  13651. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13652. echo "${ECHO_T}$hardcode_action_F77" >&6
  13653. if test "$hardcode_action_F77" = relink; then
  13654. # Fast installation is not supported
  13655. enable_fast_install=no
  13656. elif test "$shlibpath_overrides_runpath" = yes ||
  13657. test "$enable_shared" = no; then
  13658. # Fast installation is not necessary
  13659. enable_fast_install=needless
  13660. fi
  13661. # The else clause should only fire when bootstrapping the
  13662. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13663. # with your package, and you will get complaints that there are
  13664. # no rules to generate ltmain.sh.
  13665. if test -f "$ltmain"; then
  13666. # See if we are running on zsh, and set the options which allow our commands through
  13667. # without removal of \ escapes.
  13668. if test -n "${ZSH_VERSION+set}" ; then
  13669. setopt NO_GLOB_SUBST
  13670. fi
  13671. # Now quote all the things that may contain metacharacters while being
  13672. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13673. # variables and quote the copies for generation of the libtool script.
  13674. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13675. SED SHELL STRIP \
  13676. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13677. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13678. deplibs_check_method reload_flag reload_cmds need_locks \
  13679. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13680. lt_cv_sys_global_symbol_to_c_name_address \
  13681. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13682. old_postinstall_cmds old_postuninstall_cmds \
  13683. compiler_F77 \
  13684. CC_F77 \
  13685. LD_F77 \
  13686. lt_prog_compiler_wl_F77 \
  13687. lt_prog_compiler_pic_F77 \
  13688. lt_prog_compiler_static_F77 \
  13689. lt_prog_compiler_no_builtin_flag_F77 \
  13690. export_dynamic_flag_spec_F77 \
  13691. thread_safe_flag_spec_F77 \
  13692. whole_archive_flag_spec_F77 \
  13693. enable_shared_with_static_runtimes_F77 \
  13694. old_archive_cmds_F77 \
  13695. old_archive_from_new_cmds_F77 \
  13696. predep_objects_F77 \
  13697. postdep_objects_F77 \
  13698. predeps_F77 \
  13699. postdeps_F77 \
  13700. compiler_lib_search_path_F77 \
  13701. archive_cmds_F77 \
  13702. archive_expsym_cmds_F77 \
  13703. postinstall_cmds_F77 \
  13704. postuninstall_cmds_F77 \
  13705. old_archive_from_expsyms_cmds_F77 \
  13706. allow_undefined_flag_F77 \
  13707. no_undefined_flag_F77 \
  13708. export_symbols_cmds_F77 \
  13709. hardcode_libdir_flag_spec_F77 \
  13710. hardcode_libdir_flag_spec_ld_F77 \
  13711. hardcode_libdir_separator_F77 \
  13712. hardcode_automatic_F77 \
  13713. module_cmds_F77 \
  13714. module_expsym_cmds_F77 \
  13715. lt_cv_prog_compiler_c_o_F77 \
  13716. exclude_expsyms_F77 \
  13717. include_expsyms_F77; do
  13718. case $var in
  13719. old_archive_cmds_F77 | \
  13720. old_archive_from_new_cmds_F77 | \
  13721. archive_cmds_F77 | \
  13722. archive_expsym_cmds_F77 | \
  13723. module_cmds_F77 | \
  13724. module_expsym_cmds_F77 | \
  13725. old_archive_from_expsyms_cmds_F77 | \
  13726. export_symbols_cmds_F77 | \
  13727. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13728. postinstall_cmds | postuninstall_cmds | \
  13729. old_postinstall_cmds | old_postuninstall_cmds | \
  13730. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13731. # Double-quote double-evaled strings.
  13732. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13733. ;;
  13734. *)
  13735. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13736. ;;
  13737. esac
  13738. done
  13739. case $lt_echo in
  13740. *'\$0 --fallback-echo"')
  13741. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13742. ;;
  13743. esac
  13744. cfgfile="$ofile"
  13745. cat <<__EOF__ >> "$cfgfile"
  13746. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13747. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13748. # Shell to use when invoking shell scripts.
  13749. SHELL=$lt_SHELL
  13750. # Whether or not to build shared libraries.
  13751. build_libtool_libs=$enable_shared
  13752. # Whether or not to build static libraries.
  13753. build_old_libs=$enable_static
  13754. # Whether or not to add -lc for building shared libraries.
  13755. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13756. # Whether or not to disallow shared libs when runtime libs are static
  13757. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13758. # Whether or not to optimize for fast installation.
  13759. fast_install=$enable_fast_install
  13760. # The host system.
  13761. host_alias=$host_alias
  13762. host=$host
  13763. host_os=$host_os
  13764. # The build system.
  13765. build_alias=$build_alias
  13766. build=$build
  13767. build_os=$build_os
  13768. # An echo program that does not interpret backslashes.
  13769. echo=$lt_echo
  13770. # The archiver.
  13771. AR=$lt_AR
  13772. AR_FLAGS=$lt_AR_FLAGS
  13773. # A C compiler.
  13774. LTCC=$lt_LTCC
  13775. # LTCC compiler flags.
  13776. LTCFLAGS=$lt_LTCFLAGS
  13777. # A language-specific compiler.
  13778. CC=$lt_compiler_F77
  13779. # Is the compiler the GNU C compiler?
  13780. with_gcc=$GCC_F77
  13781. # An ERE matcher.
  13782. EGREP=$lt_EGREP
  13783. # The linker used to build libraries.
  13784. LD=$lt_LD_F77
  13785. # Whether we need hard or soft links.
  13786. LN_S=$lt_LN_S
  13787. # A BSD-compatible nm program.
  13788. NM=$lt_NM
  13789. # A symbol stripping program
  13790. STRIP=$lt_STRIP
  13791. # Used to examine libraries when file_magic_cmd begins "file"
  13792. MAGIC_CMD=$MAGIC_CMD
  13793. # Used on cygwin: DLL creation program.
  13794. DLLTOOL="$DLLTOOL"
  13795. # Used on cygwin: object dumper.
  13796. OBJDUMP="$OBJDUMP"
  13797. # Used on cygwin: assembler.
  13798. AS="$AS"
  13799. # The name of the directory that contains temporary libtool files.
  13800. objdir=$objdir
  13801. # How to create reloadable object files.
  13802. reload_flag=$lt_reload_flag
  13803. reload_cmds=$lt_reload_cmds
  13804. # How to pass a linker flag through the compiler.
  13805. wl=$lt_lt_prog_compiler_wl_F77
  13806. # Object file suffix (normally "o").
  13807. objext="$ac_objext"
  13808. # Old archive suffix (normally "a").
  13809. libext="$libext"
  13810. # Shared library suffix (normally ".so").
  13811. shrext_cmds='$shrext_cmds'
  13812. # Executable file suffix (normally "").
  13813. exeext="$exeext"
  13814. # Additional compiler flags for building library objects.
  13815. pic_flag=$lt_lt_prog_compiler_pic_F77
  13816. pic_mode=$pic_mode
  13817. # What is the maximum length of a command?
  13818. max_cmd_len=$lt_cv_sys_max_cmd_len
  13819. # Does compiler simultaneously support -c and -o options?
  13820. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13821. # Must we lock files when doing compilation?
  13822. need_locks=$lt_need_locks
  13823. # Do we need the lib prefix for modules?
  13824. need_lib_prefix=$need_lib_prefix
  13825. # Do we need a version for libraries?
  13826. need_version=$need_version
  13827. # Whether dlopen is supported.
  13828. dlopen_support=$enable_dlopen
  13829. # Whether dlopen of programs is supported.
  13830. dlopen_self=$enable_dlopen_self
  13831. # Whether dlopen of statically linked programs is supported.
  13832. dlopen_self_static=$enable_dlopen_self_static
  13833. # Compiler flag to prevent dynamic linking.
  13834. link_static_flag=$lt_lt_prog_compiler_static_F77
  13835. # Compiler flag to turn off builtin functions.
  13836. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13837. # Compiler flag to allow reflexive dlopens.
  13838. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13839. # Compiler flag to generate shared objects directly from archives.
  13840. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13841. # Compiler flag to generate thread-safe objects.
  13842. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13843. # Library versioning type.
  13844. version_type=$version_type
  13845. # Format of library name prefix.
  13846. libname_spec=$lt_libname_spec
  13847. # List of archive names. First name is the real one, the rest are links.
  13848. # The last name is the one that the linker finds with -lNAME.
  13849. library_names_spec=$lt_library_names_spec
  13850. # The coded name of the library, if different from the real name.
  13851. soname_spec=$lt_soname_spec
  13852. # Commands used to build and install an old-style archive.
  13853. RANLIB=$lt_RANLIB
  13854. old_archive_cmds=$lt_old_archive_cmds_F77
  13855. old_postinstall_cmds=$lt_old_postinstall_cmds
  13856. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13857. # Create an old-style archive from a shared archive.
  13858. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13859. # Create a temporary old-style archive to link instead of a shared archive.
  13860. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13861. # Commands used to build and install a shared archive.
  13862. archive_cmds=$lt_archive_cmds_F77
  13863. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13864. postinstall_cmds=$lt_postinstall_cmds
  13865. postuninstall_cmds=$lt_postuninstall_cmds
  13866. # Commands used to build a loadable module (assumed same as above if empty)
  13867. module_cmds=$lt_module_cmds_F77
  13868. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13869. # Commands to strip libraries.
  13870. old_striplib=$lt_old_striplib
  13871. striplib=$lt_striplib
  13872. # Dependencies to place before the objects being linked to create a
  13873. # shared library.
  13874. predep_objects=$lt_predep_objects_F77
  13875. # Dependencies to place after the objects being linked to create a
  13876. # shared library.
  13877. postdep_objects=$lt_postdep_objects_F77
  13878. # Dependencies to place before the objects being linked to create a
  13879. # shared library.
  13880. predeps=$lt_predeps_F77
  13881. # Dependencies to place after the objects being linked to create a
  13882. # shared library.
  13883. postdeps=$lt_postdeps_F77
  13884. # The library search path used internally by the compiler when linking
  13885. # a shared library.
  13886. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13887. # Method to check whether dependent libraries are shared objects.
  13888. deplibs_check_method=$lt_deplibs_check_method
  13889. # Command to use when deplibs_check_method == file_magic.
  13890. file_magic_cmd=$lt_file_magic_cmd
  13891. # Flag that allows shared libraries with undefined symbols to be built.
  13892. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13893. # Flag that forces no undefined symbols.
  13894. no_undefined_flag=$lt_no_undefined_flag_F77
  13895. # Commands used to finish a libtool library installation in a directory.
  13896. finish_cmds=$lt_finish_cmds
  13897. # Same as above, but a single script fragment to be evaled but not shown.
  13898. finish_eval=$lt_finish_eval
  13899. # Take the output of nm and produce a listing of raw symbols and C names.
  13900. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13901. # Transform the output of nm in a proper C declaration
  13902. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13903. # Transform the output of nm in a C name address pair
  13904. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13905. # This is the shared library runtime path variable.
  13906. runpath_var=$runpath_var
  13907. # This is the shared library path variable.
  13908. shlibpath_var=$shlibpath_var
  13909. # Is shlibpath searched before the hard-coded library search path?
  13910. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13911. # How to hardcode a shared library path into an executable.
  13912. hardcode_action=$hardcode_action_F77
  13913. # Whether we should hardcode library paths into libraries.
  13914. hardcode_into_libs=$hardcode_into_libs
  13915. # Flag to hardcode \$libdir into a binary during linking.
  13916. # This must work even if \$libdir does not exist.
  13917. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13918. # If ld is used when linking, flag to hardcode \$libdir into
  13919. # a binary during linking. This must work even if \$libdir does
  13920. # not exist.
  13921. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13922. # Whether we need a single -rpath flag with a separated argument.
  13923. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13924. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13925. # resulting binary.
  13926. hardcode_direct=$hardcode_direct_F77
  13927. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13928. # resulting binary.
  13929. hardcode_minus_L=$hardcode_minus_L_F77
  13930. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13931. # the resulting binary.
  13932. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13933. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13934. # and all subsequent libraries and executables linked against it.
  13935. hardcode_automatic=$hardcode_automatic_F77
  13936. # Variables whose values should be saved in libtool wrapper scripts and
  13937. # restored at relink time.
  13938. variables_saved_for_relink="$variables_saved_for_relink"
  13939. # Whether libtool must link a program against all its dependency libraries.
  13940. link_all_deplibs=$link_all_deplibs_F77
  13941. # Compile-time system search path for libraries
  13942. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13943. # Run-time system search path for libraries
  13944. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13945. # Fix the shell variable \$srcfile for the compiler.
  13946. fix_srcfile_path="$fix_srcfile_path_F77"
  13947. # Set to yes if exported symbols are required.
  13948. always_export_symbols=$always_export_symbols_F77
  13949. # The commands to list exported symbols.
  13950. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13951. # The commands to extract the exported symbol list from a shared archive.
  13952. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13953. # Symbols that should not be listed in the preloaded symbols.
  13954. exclude_expsyms=$lt_exclude_expsyms_F77
  13955. # Symbols that must always be exported.
  13956. include_expsyms=$lt_include_expsyms_F77
  13957. # ### END LIBTOOL TAG CONFIG: $tagname
  13958. __EOF__
  13959. else
  13960. # If there is no Makefile yet, we rely on a make rule to execute
  13961. # `config.status --recheck' to rerun these tests and create the
  13962. # libtool script then.
  13963. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13964. if test -f "$ltmain_in"; then
  13965. test -f Makefile && make "$ltmain"
  13966. fi
  13967. fi
  13968. ac_ext=c
  13969. ac_cpp='$CPP $CPPFLAGS'
  13970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13973. CC="$lt_save_CC"
  13974. else
  13975. tagname=""
  13976. fi
  13977. ;;
  13978. GCJ)
  13979. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13980. # Source file extension for Java test sources.
  13981. ac_ext=java
  13982. # Object file extension for compiled Java test sources.
  13983. objext=o
  13984. objext_GCJ=$objext
  13985. # Code to be used in simple compile tests
  13986. lt_simple_compile_test_code="class foo {}\n"
  13987. # Code to be used in simple link tests
  13988. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13989. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13990. # If no C compiler was specified, use CC.
  13991. LTCC=${LTCC-"$CC"}
  13992. # If no C compiler flags were specified, use CFLAGS.
  13993. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13994. # Allow CC to be a program name with arguments.
  13995. compiler=$CC
  13996. # save warnings/boilerplate of simple test code
  13997. ac_outfile=conftest.$ac_objext
  13998. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13999. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14000. _lt_compiler_boilerplate=`cat conftest.err`
  14001. $rm conftest*
  14002. ac_outfile=conftest.$ac_objext
  14003. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14004. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14005. _lt_linker_boilerplate=`cat conftest.err`
  14006. $rm conftest*
  14007. # Allow CC to be a program name with arguments.
  14008. lt_save_CC="$CC"
  14009. CC=${GCJ-"gcj"}
  14010. compiler=$CC
  14011. compiler_GCJ=$CC
  14012. for cc_temp in $compiler""; do
  14013. case $cc_temp in
  14014. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14015. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14016. \-*) ;;
  14017. *) break;;
  14018. esac
  14019. done
  14020. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14021. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14022. archive_cmds_need_lc_GCJ=no
  14023. old_archive_cmds_GCJ=$old_archive_cmds
  14024. lt_prog_compiler_no_builtin_flag_GCJ=
  14025. if test "$GCC" = yes; then
  14026. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14027. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14028. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14029. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14030. echo $ECHO_N "(cached) $ECHO_C" >&6
  14031. else
  14032. lt_cv_prog_compiler_rtti_exceptions=no
  14033. ac_outfile=conftest.$ac_objext
  14034. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14035. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14036. # Insert the option either (1) after the last *FLAGS variable, or
  14037. # (2) before a word containing "conftest.", or (3) at the end.
  14038. # Note that $ac_compile itself does not contain backslashes and begins
  14039. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14040. # The option is referenced via a variable to avoid confusing sed.
  14041. lt_compile=`echo "$ac_compile" | $SED \
  14042. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14043. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14044. -e 's:$: $lt_compiler_flag:'`
  14045. (eval echo "\"\$as_me:15646: $lt_compile\"" >&5)
  14046. (eval "$lt_compile" 2>conftest.err)
  14047. ac_status=$?
  14048. cat conftest.err >&5
  14049. echo "$as_me:15650: \$? = $ac_status" >&5
  14050. if (exit $ac_status) && test -s "$ac_outfile"; then
  14051. # The compiler can only warn and ignore the option if not recognized
  14052. # So say no if there are warnings other than the usual output.
  14053. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14054. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14055. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14056. lt_cv_prog_compiler_rtti_exceptions=yes
  14057. fi
  14058. fi
  14059. $rm conftest*
  14060. fi
  14061. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14062. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14063. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14064. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14065. else
  14066. :
  14067. fi
  14068. fi
  14069. lt_prog_compiler_wl_GCJ=
  14070. lt_prog_compiler_pic_GCJ=
  14071. lt_prog_compiler_static_GCJ=
  14072. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14073. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14074. if test "$GCC" = yes; then
  14075. lt_prog_compiler_wl_GCJ='-Wl,'
  14076. lt_prog_compiler_static_GCJ='-static'
  14077. case $host_os in
  14078. aix*)
  14079. # All AIX code is PIC.
  14080. if test "$host_cpu" = ia64; then
  14081. # AIX 5 now supports IA64 processor
  14082. lt_prog_compiler_static_GCJ='-Bstatic'
  14083. fi
  14084. ;;
  14085. amigaos*)
  14086. # FIXME: we need at least 68020 code to build shared libraries, but
  14087. # adding the `-m68020' flag to GCC prevents building anything better,
  14088. # like `-m68040'.
  14089. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14090. ;;
  14091. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14092. # PIC is the default for these OSes.
  14093. ;;
  14094. mingw* | pw32* | os2*)
  14095. # This hack is so that the source file can tell whether it is being
  14096. # built for inclusion in a dll (and should export symbols for example).
  14097. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14098. ;;
  14099. darwin* | rhapsody*)
  14100. # PIC is the default on this platform
  14101. # Common symbols not allowed in MH_DYLIB files
  14102. lt_prog_compiler_pic_GCJ='-fno-common'
  14103. ;;
  14104. interix3*)
  14105. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14106. # Instead, we relocate shared libraries at runtime.
  14107. ;;
  14108. msdosdjgpp*)
  14109. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14110. # on systems that don't support them.
  14111. lt_prog_compiler_can_build_shared_GCJ=no
  14112. enable_shared=no
  14113. ;;
  14114. sysv4*MP*)
  14115. if test -d /usr/nec; then
  14116. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14117. fi
  14118. ;;
  14119. hpux*)
  14120. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14121. # not for PA HP-UX.
  14122. case $host_cpu in
  14123. hppa*64*|ia64*)
  14124. # +Z the default
  14125. ;;
  14126. *)
  14127. lt_prog_compiler_pic_GCJ='-fPIC'
  14128. ;;
  14129. esac
  14130. ;;
  14131. *)
  14132. lt_prog_compiler_pic_GCJ='-fPIC'
  14133. ;;
  14134. esac
  14135. else
  14136. # PORTME Check for flag to pass linker flags through the system compiler.
  14137. case $host_os in
  14138. aix*)
  14139. lt_prog_compiler_wl_GCJ='-Wl,'
  14140. if test "$host_cpu" = ia64; then
  14141. # AIX 5 now supports IA64 processor
  14142. lt_prog_compiler_static_GCJ='-Bstatic'
  14143. else
  14144. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14145. fi
  14146. ;;
  14147. darwin*)
  14148. # PIC is the default on this platform
  14149. # Common symbols not allowed in MH_DYLIB files
  14150. case $cc_basename in
  14151. xlc*)
  14152. lt_prog_compiler_pic_GCJ='-qnocommon'
  14153. lt_prog_compiler_wl_GCJ='-Wl,'
  14154. ;;
  14155. esac
  14156. ;;
  14157. mingw* | pw32* | os2*)
  14158. # This hack is so that the source file can tell whether it is being
  14159. # built for inclusion in a dll (and should export symbols for example).
  14160. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14161. ;;
  14162. hpux9* | hpux10* | hpux11*)
  14163. lt_prog_compiler_wl_GCJ='-Wl,'
  14164. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14165. # not for PA HP-UX.
  14166. case $host_cpu in
  14167. hppa*64*|ia64*)
  14168. # +Z the default
  14169. ;;
  14170. *)
  14171. lt_prog_compiler_pic_GCJ='+Z'
  14172. ;;
  14173. esac
  14174. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14175. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14176. ;;
  14177. irix5* | irix6* | nonstopux*)
  14178. lt_prog_compiler_wl_GCJ='-Wl,'
  14179. # PIC (with -KPIC) is the default.
  14180. lt_prog_compiler_static_GCJ='-non_shared'
  14181. ;;
  14182. newsos6)
  14183. lt_prog_compiler_pic_GCJ='-KPIC'
  14184. lt_prog_compiler_static_GCJ='-Bstatic'
  14185. ;;
  14186. linux*)
  14187. case $cc_basename in
  14188. icc* | ecc*)
  14189. lt_prog_compiler_wl_GCJ='-Wl,'
  14190. lt_prog_compiler_pic_GCJ='-KPIC'
  14191. lt_prog_compiler_static_GCJ='-static'
  14192. ;;
  14193. pgcc* | pgf77* | pgf90* | pgf95*)
  14194. # Portland Group compilers (*not* the Pentium gcc compiler,
  14195. # which looks to be a dead project)
  14196. lt_prog_compiler_wl_GCJ='-Wl,'
  14197. lt_prog_compiler_pic_GCJ='-fpic'
  14198. lt_prog_compiler_static_GCJ='-Bstatic'
  14199. ;;
  14200. ccc*)
  14201. lt_prog_compiler_wl_GCJ='-Wl,'
  14202. # All Alpha code is PIC.
  14203. lt_prog_compiler_static_GCJ='-non_shared'
  14204. ;;
  14205. esac
  14206. ;;
  14207. osf3* | osf4* | osf5*)
  14208. lt_prog_compiler_wl_GCJ='-Wl,'
  14209. # All OSF/1 code is PIC.
  14210. lt_prog_compiler_static_GCJ='-non_shared'
  14211. ;;
  14212. solaris*)
  14213. lt_prog_compiler_pic_GCJ='-KPIC'
  14214. lt_prog_compiler_static_GCJ='-Bstatic'
  14215. case $cc_basename in
  14216. f77* | f90* | f95*)
  14217. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14218. *)
  14219. lt_prog_compiler_wl_GCJ='-Wl,';;
  14220. esac
  14221. ;;
  14222. sunos4*)
  14223. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14224. lt_prog_compiler_pic_GCJ='-PIC'
  14225. lt_prog_compiler_static_GCJ='-Bstatic'
  14226. ;;
  14227. sysv4 | sysv4.2uw2* | sysv4.3*)
  14228. lt_prog_compiler_wl_GCJ='-Wl,'
  14229. lt_prog_compiler_pic_GCJ='-KPIC'
  14230. lt_prog_compiler_static_GCJ='-Bstatic'
  14231. ;;
  14232. sysv4*MP*)
  14233. if test -d /usr/nec ;then
  14234. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14235. lt_prog_compiler_static_GCJ='-Bstatic'
  14236. fi
  14237. ;;
  14238. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14239. lt_prog_compiler_wl_GCJ='-Wl,'
  14240. lt_prog_compiler_pic_GCJ='-KPIC'
  14241. lt_prog_compiler_static_GCJ='-Bstatic'
  14242. ;;
  14243. unicos*)
  14244. lt_prog_compiler_wl_GCJ='-Wl,'
  14245. lt_prog_compiler_can_build_shared_GCJ=no
  14246. ;;
  14247. uts4*)
  14248. lt_prog_compiler_pic_GCJ='-pic'
  14249. lt_prog_compiler_static_GCJ='-Bstatic'
  14250. ;;
  14251. *)
  14252. lt_prog_compiler_can_build_shared_GCJ=no
  14253. ;;
  14254. esac
  14255. fi
  14256. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14257. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14258. #
  14259. # Check to make sure the PIC flag actually works.
  14260. #
  14261. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14262. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14263. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14264. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14265. echo $ECHO_N "(cached) $ECHO_C" >&6
  14266. else
  14267. lt_prog_compiler_pic_works_GCJ=no
  14268. ac_outfile=conftest.$ac_objext
  14269. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14270. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14271. # Insert the option either (1) after the last *FLAGS variable, or
  14272. # (2) before a word containing "conftest.", or (3) at the end.
  14273. # Note that $ac_compile itself does not contain backslashes and begins
  14274. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14275. # The option is referenced via a variable to avoid confusing sed.
  14276. lt_compile=`echo "$ac_compile" | $SED \
  14277. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14278. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14279. -e 's:$: $lt_compiler_flag:'`
  14280. (eval echo "\"\$as_me:15914: $lt_compile\"" >&5)
  14281. (eval "$lt_compile" 2>conftest.err)
  14282. ac_status=$?
  14283. cat conftest.err >&5
  14284. echo "$as_me:15918: \$? = $ac_status" >&5
  14285. if (exit $ac_status) && test -s "$ac_outfile"; then
  14286. # The compiler can only warn and ignore the option if not recognized
  14287. # So say no if there are warnings other than the usual output.
  14288. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14289. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14290. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14291. lt_prog_compiler_pic_works_GCJ=yes
  14292. fi
  14293. fi
  14294. $rm conftest*
  14295. fi
  14296. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14297. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14298. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14299. case $lt_prog_compiler_pic_GCJ in
  14300. "" | " "*) ;;
  14301. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14302. esac
  14303. else
  14304. lt_prog_compiler_pic_GCJ=
  14305. lt_prog_compiler_can_build_shared_GCJ=no
  14306. fi
  14307. fi
  14308. case $host_os in
  14309. # For platforms which do not support PIC, -DPIC is meaningless:
  14310. *djgpp*)
  14311. lt_prog_compiler_pic_GCJ=
  14312. ;;
  14313. *)
  14314. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14315. ;;
  14316. esac
  14317. #
  14318. # Check to make sure the static flag actually works.
  14319. #
  14320. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14321. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14322. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14323. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14324. echo $ECHO_N "(cached) $ECHO_C" >&6
  14325. else
  14326. lt_prog_compiler_static_works_GCJ=no
  14327. save_LDFLAGS="$LDFLAGS"
  14328. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14329. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14330. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14331. # The linker can only warn and ignore the option if not recognized
  14332. # So say no if there are warnings
  14333. if test -s conftest.err; then
  14334. # Append any errors to the config.log.
  14335. cat conftest.err 1>&5
  14336. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14337. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14338. if diff conftest.exp conftest.er2 >/dev/null; then
  14339. lt_prog_compiler_static_works_GCJ=yes
  14340. fi
  14341. else
  14342. lt_prog_compiler_static_works_GCJ=yes
  14343. fi
  14344. fi
  14345. $rm conftest*
  14346. LDFLAGS="$save_LDFLAGS"
  14347. fi
  14348. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14349. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14350. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14351. :
  14352. else
  14353. lt_prog_compiler_static_GCJ=
  14354. fi
  14355. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14356. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14357. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14358. echo $ECHO_N "(cached) $ECHO_C" >&6
  14359. else
  14360. lt_cv_prog_compiler_c_o_GCJ=no
  14361. $rm -r conftest 2>/dev/null
  14362. mkdir conftest
  14363. cd conftest
  14364. mkdir out
  14365. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14366. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14367. # Insert the option either (1) after the last *FLAGS variable, or
  14368. # (2) before a word containing "conftest.", or (3) at the end.
  14369. # Note that $ac_compile itself does not contain backslashes and begins
  14370. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14371. lt_compile=`echo "$ac_compile" | $SED \
  14372. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14373. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14374. -e 's:$: $lt_compiler_flag:'`
  14375. (eval echo "\"\$as_me:16018: $lt_compile\"" >&5)
  14376. (eval "$lt_compile" 2>out/conftest.err)
  14377. ac_status=$?
  14378. cat out/conftest.err >&5
  14379. echo "$as_me:16022: \$? = $ac_status" >&5
  14380. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14381. then
  14382. # The compiler can only warn and ignore the option if not recognized
  14383. # So say no if there are warnings
  14384. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14385. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14386. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14387. lt_cv_prog_compiler_c_o_GCJ=yes
  14388. fi
  14389. fi
  14390. chmod u+w . 2>&5
  14391. $rm conftest*
  14392. # SGI C++ compiler will create directory out/ii_files/ for
  14393. # template instantiation
  14394. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14395. $rm out/* && rmdir out
  14396. cd ..
  14397. rmdir conftest
  14398. $rm conftest*
  14399. fi
  14400. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14401. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14402. hard_links="nottested"
  14403. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14404. # do not overwrite the value of need_locks provided by the user
  14405. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14406. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14407. hard_links=yes
  14408. $rm conftest*
  14409. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14410. touch conftest.a
  14411. ln conftest.a conftest.b 2>&5 || hard_links=no
  14412. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14413. echo "$as_me:$LINENO: result: $hard_links" >&5
  14414. echo "${ECHO_T}$hard_links" >&6
  14415. if test "$hard_links" = no; then
  14416. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14417. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14418. need_locks=warn
  14419. fi
  14420. else
  14421. need_locks=no
  14422. fi
  14423. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14424. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14425. runpath_var=
  14426. allow_undefined_flag_GCJ=
  14427. enable_shared_with_static_runtimes_GCJ=no
  14428. archive_cmds_GCJ=
  14429. archive_expsym_cmds_GCJ=
  14430. old_archive_From_new_cmds_GCJ=
  14431. old_archive_from_expsyms_cmds_GCJ=
  14432. export_dynamic_flag_spec_GCJ=
  14433. whole_archive_flag_spec_GCJ=
  14434. thread_safe_flag_spec_GCJ=
  14435. hardcode_libdir_flag_spec_GCJ=
  14436. hardcode_libdir_flag_spec_ld_GCJ=
  14437. hardcode_libdir_separator_GCJ=
  14438. hardcode_direct_GCJ=no
  14439. hardcode_minus_L_GCJ=no
  14440. hardcode_shlibpath_var_GCJ=unsupported
  14441. link_all_deplibs_GCJ=unknown
  14442. hardcode_automatic_GCJ=no
  14443. module_cmds_GCJ=
  14444. module_expsym_cmds_GCJ=
  14445. always_export_symbols_GCJ=no
  14446. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14447. # include_expsyms should be a list of space-separated symbols to be *always*
  14448. # included in the symbol list
  14449. include_expsyms_GCJ=
  14450. # exclude_expsyms can be an extended regexp of symbols to exclude
  14451. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14452. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14453. # as well as any symbol that contains `d'.
  14454. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14455. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14456. # platforms (ab)use it in PIC code, but their linkers get confused if
  14457. # the symbol is explicitly referenced. Since portable code cannot
  14458. # rely on this symbol name, it's probably fine to never include it in
  14459. # preloaded symbol tables.
  14460. extract_expsyms_cmds=
  14461. # Just being paranoid about ensuring that cc_basename is set.
  14462. for cc_temp in $compiler""; do
  14463. case $cc_temp in
  14464. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14465. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14466. \-*) ;;
  14467. *) break;;
  14468. esac
  14469. done
  14470. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14471. case $host_os in
  14472. cygwin* | mingw* | pw32*)
  14473. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14474. # When not using gcc, we currently assume that we are using
  14475. # Microsoft Visual C++.
  14476. if test "$GCC" != yes; then
  14477. with_gnu_ld=no
  14478. fi
  14479. ;;
  14480. interix*)
  14481. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14482. with_gnu_ld=yes
  14483. ;;
  14484. openbsd*)
  14485. with_gnu_ld=no
  14486. ;;
  14487. esac
  14488. ld_shlibs_GCJ=yes
  14489. if test "$with_gnu_ld" = yes; then
  14490. # If archive_cmds runs LD, not CC, wlarc should be empty
  14491. wlarc='${wl}'
  14492. # Set some defaults for GNU ld with shared library support. These
  14493. # are reset later if shared libraries are not supported. Putting them
  14494. # here allows them to be overridden if necessary.
  14495. runpath_var=LD_RUN_PATH
  14496. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14497. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14498. # ancient GNU ld didn't support --whole-archive et. al.
  14499. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14500. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14501. else
  14502. whole_archive_flag_spec_GCJ=
  14503. fi
  14504. supports_anon_versioning=no
  14505. case `$LD -v 2>/dev/null` in
  14506. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14507. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14508. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14509. *\ 2.11.*) ;; # other 2.11 versions
  14510. *) supports_anon_versioning=yes ;;
  14511. esac
  14512. # See if GNU ld supports shared libraries.
  14513. case $host_os in
  14514. aix3* | aix4* | aix5*)
  14515. # On AIX/PPC, the GNU linker is very broken
  14516. if test "$host_cpu" != ia64; then
  14517. ld_shlibs_GCJ=no
  14518. cat <<EOF 1>&2
  14519. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14520. *** to be unable to reliably create shared libraries on AIX.
  14521. *** Therefore, libtool is disabling shared libraries support. If you
  14522. *** really care for shared libraries, you may want to modify your PATH
  14523. *** so that a non-GNU linker is found, and then restart.
  14524. EOF
  14525. fi
  14526. ;;
  14527. amigaos*)
  14528. 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)'
  14529. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14530. hardcode_minus_L_GCJ=yes
  14531. # Samuel A. Falvo II <[email protected]> reports
  14532. # that the semantics of dynamic libraries on AmigaOS, at least up
  14533. # to version 4, is to share data among multiple programs linked
  14534. # with the same dynamic library. Since this doesn't match the
  14535. # behavior of shared libraries on other platforms, we can't use
  14536. # them.
  14537. ld_shlibs_GCJ=no
  14538. ;;
  14539. beos*)
  14540. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14541. allow_undefined_flag_GCJ=unsupported
  14542. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14543. # support --undefined. This deserves some investigation. FIXME
  14544. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14545. else
  14546. ld_shlibs_GCJ=no
  14547. fi
  14548. ;;
  14549. cygwin* | mingw* | pw32*)
  14550. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14551. # as there is no search path for DLLs.
  14552. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14553. allow_undefined_flag_GCJ=unsupported
  14554. always_export_symbols_GCJ=no
  14555. enable_shared_with_static_runtimes_GCJ=yes
  14556. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14557. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14558. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14559. # If the export-symbols file already is a .def file (1st line
  14560. # is EXPORTS), use it as is; otherwise, prepend...
  14561. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14562. cp $export_symbols $output_objdir/$soname.def;
  14563. else
  14564. echo EXPORTS > $output_objdir/$soname.def;
  14565. cat $export_symbols >> $output_objdir/$soname.def;
  14566. fi~
  14567. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14568. else
  14569. ld_shlibs_GCJ=no
  14570. fi
  14571. ;;
  14572. interix3*)
  14573. hardcode_direct_GCJ=no
  14574. hardcode_shlibpath_var_GCJ=no
  14575. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14576. export_dynamic_flag_spec_GCJ='${wl}-E'
  14577. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14578. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14579. # default) and relocated if they conflict, which is a slow very memory
  14580. # consuming and fragmenting process. To avoid this, we pick a random,
  14581. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14582. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14583. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14584. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14585. ;;
  14586. linux*)
  14587. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14588. tmp_addflag=
  14589. case $cc_basename,$host_cpu in
  14590. pgcc*) # Portland Group C compiler
  14591. 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'
  14592. tmp_addflag=' $pic_flag'
  14593. ;;
  14594. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14595. 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'
  14596. tmp_addflag=' $pic_flag -Mnomain' ;;
  14597. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14598. tmp_addflag=' -i_dynamic' ;;
  14599. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14600. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14601. ifc* | ifort*) # Intel Fortran compiler
  14602. tmp_addflag=' -nofor_main' ;;
  14603. esac
  14604. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14605. if test $supports_anon_versioning = yes; then
  14606. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14607. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14608. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14609. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14610. fi
  14611. else
  14612. ld_shlibs_GCJ=no
  14613. fi
  14614. ;;
  14615. netbsd*)
  14616. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14617. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14618. wlarc=
  14619. else
  14620. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14621. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14622. fi
  14623. ;;
  14624. solaris*)
  14625. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14626. ld_shlibs_GCJ=no
  14627. cat <<EOF 1>&2
  14628. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14629. *** create shared libraries on Solaris systems. Therefore, libtool
  14630. *** is disabling shared libraries support. We urge you to upgrade GNU
  14631. *** binutils to release 2.9.1 or newer. Another option is to modify
  14632. *** your PATH or compiler configuration so that the native linker is
  14633. *** used, and then restart.
  14634. EOF
  14635. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14636. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14637. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14638. else
  14639. ld_shlibs_GCJ=no
  14640. fi
  14641. ;;
  14642. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14643. case `$LD -v 2>&1` in
  14644. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14645. ld_shlibs_GCJ=no
  14646. cat <<_LT_EOF 1>&2
  14647. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14648. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14649. *** is disabling shared libraries support. We urge you to upgrade GNU
  14650. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14651. *** your PATH or compiler configuration so that the native linker is
  14652. *** used, and then restart.
  14653. _LT_EOF
  14654. ;;
  14655. *)
  14656. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14657. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14658. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14659. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14660. else
  14661. ld_shlibs_GCJ=no
  14662. fi
  14663. ;;
  14664. esac
  14665. ;;
  14666. sunos4*)
  14667. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14668. wlarc=
  14669. hardcode_direct_GCJ=yes
  14670. hardcode_shlibpath_var_GCJ=no
  14671. ;;
  14672. *)
  14673. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14674. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14675. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14676. else
  14677. ld_shlibs_GCJ=no
  14678. fi
  14679. ;;
  14680. esac
  14681. if test "$ld_shlibs_GCJ" = no; then
  14682. runpath_var=
  14683. hardcode_libdir_flag_spec_GCJ=
  14684. export_dynamic_flag_spec_GCJ=
  14685. whole_archive_flag_spec_GCJ=
  14686. fi
  14687. else
  14688. # PORTME fill in a description of your system's linker (not GNU ld)
  14689. case $host_os in
  14690. aix3*)
  14691. allow_undefined_flag_GCJ=unsupported
  14692. always_export_symbols_GCJ=yes
  14693. 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'
  14694. # Note: this linker hardcodes the directories in LIBPATH if there
  14695. # are no directories specified by -L.
  14696. hardcode_minus_L_GCJ=yes
  14697. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14698. # Neither direct hardcoding nor static linking is supported with a
  14699. # broken collect2.
  14700. hardcode_direct_GCJ=unsupported
  14701. fi
  14702. ;;
  14703. aix4* | aix5*)
  14704. if test "$host_cpu" = ia64; then
  14705. # On IA64, the linker does run time linking by default, so we don't
  14706. # have to do anything special.
  14707. aix_use_runtimelinking=no
  14708. exp_sym_flag='-Bexport'
  14709. no_entry_flag=""
  14710. else
  14711. # If we're using GNU nm, then we don't want the "-C" option.
  14712. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14713. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14714. 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'
  14715. else
  14716. 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'
  14717. fi
  14718. aix_use_runtimelinking=no
  14719. # Test if we are trying to use run time linking or normal
  14720. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14721. # need to do runtime linking.
  14722. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14723. for ld_flag in $LDFLAGS; do
  14724. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14725. aix_use_runtimelinking=yes
  14726. break
  14727. fi
  14728. done
  14729. ;;
  14730. esac
  14731. exp_sym_flag='-bexport'
  14732. no_entry_flag='-bnoentry'
  14733. fi
  14734. # When large executables or shared objects are built, AIX ld can
  14735. # have problems creating the table of contents. If linking a library
  14736. # or program results in "error TOC overflow" add -mminimal-toc to
  14737. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14738. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14739. archive_cmds_GCJ=''
  14740. hardcode_direct_GCJ=yes
  14741. hardcode_libdir_separator_GCJ=':'
  14742. link_all_deplibs_GCJ=yes
  14743. if test "$GCC" = yes; then
  14744. case $host_os in aix4.[012]|aix4.[012].*)
  14745. # We only want to do this on AIX 4.2 and lower, the check
  14746. # below for broken collect2 doesn't work under 4.3+
  14747. collect2name=`${CC} -print-prog-name=collect2`
  14748. if test -f "$collect2name" && \
  14749. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14750. then
  14751. # We have reworked collect2
  14752. hardcode_direct_GCJ=yes
  14753. else
  14754. # We have old collect2
  14755. hardcode_direct_GCJ=unsupported
  14756. # It fails to find uninstalled libraries when the uninstalled
  14757. # path is not listed in the libpath. Setting hardcode_minus_L
  14758. # to unsupported forces relinking
  14759. hardcode_minus_L_GCJ=yes
  14760. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14761. hardcode_libdir_separator_GCJ=
  14762. fi
  14763. ;;
  14764. esac
  14765. shared_flag='-shared'
  14766. if test "$aix_use_runtimelinking" = yes; then
  14767. shared_flag="$shared_flag "'${wl}-G'
  14768. fi
  14769. else
  14770. # not using gcc
  14771. if test "$host_cpu" = ia64; then
  14772. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14773. # chokes on -Wl,-G. The following line is correct:
  14774. shared_flag='-G'
  14775. else
  14776. if test "$aix_use_runtimelinking" = yes; then
  14777. shared_flag='${wl}-G'
  14778. else
  14779. shared_flag='${wl}-bM:SRE'
  14780. fi
  14781. fi
  14782. fi
  14783. # It seems that -bexpall does not export symbols beginning with
  14784. # underscore (_), so it is better to generate a list of symbols to export.
  14785. always_export_symbols_GCJ=yes
  14786. if test "$aix_use_runtimelinking" = yes; then
  14787. # Warning - without using the other runtime loading flags (-brtl),
  14788. # -berok will link without error, but may produce a broken library.
  14789. allow_undefined_flag_GCJ='-berok'
  14790. # Determine the default libpath from the value encoded in an empty executable.
  14791. cat >conftest.$ac_ext <<_ACEOF
  14792. /* confdefs.h. */
  14793. _ACEOF
  14794. cat confdefs.h >>conftest.$ac_ext
  14795. cat >>conftest.$ac_ext <<_ACEOF
  14796. /* end confdefs.h. */
  14797. int
  14798. main ()
  14799. {
  14800. ;
  14801. return 0;
  14802. }
  14803. _ACEOF
  14804. rm -f conftest.$ac_objext conftest$ac_exeext
  14805. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14806. (eval $ac_link) 2>conftest.er1
  14807. ac_status=$?
  14808. grep -v '^ *+' conftest.er1 >conftest.err
  14809. rm -f conftest.er1
  14810. cat conftest.err >&5
  14811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14812. (exit $ac_status); } &&
  14813. { ac_try='test -z "$ac_c_werror_flag"
  14814. || test ! -s conftest.err'
  14815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14816. (eval $ac_try) 2>&5
  14817. ac_status=$?
  14818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14819. (exit $ac_status); }; } &&
  14820. { ac_try='test -s conftest$ac_exeext'
  14821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14822. (eval $ac_try) 2>&5
  14823. ac_status=$?
  14824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14825. (exit $ac_status); }; }; then
  14826. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14827. }'`
  14828. # Check for a 64-bit object if we didn't find anything.
  14829. 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; }
  14830. }'`; fi
  14831. else
  14832. echo "$as_me: failed program was:" >&5
  14833. sed 's/^/| /' conftest.$ac_ext >&5
  14834. fi
  14835. rm -f conftest.err conftest.$ac_objext \
  14836. conftest$ac_exeext conftest.$ac_ext
  14837. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14838. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14839. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14840. else
  14841. if test "$host_cpu" = ia64; then
  14842. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14843. allow_undefined_flag_GCJ="-z nodefs"
  14844. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  14845. else
  14846. # Determine the default libpath from the value encoded in an empty executable.
  14847. cat >conftest.$ac_ext <<_ACEOF
  14848. /* confdefs.h. */
  14849. _ACEOF
  14850. cat confdefs.h >>conftest.$ac_ext
  14851. cat >>conftest.$ac_ext <<_ACEOF
  14852. /* end confdefs.h. */
  14853. int
  14854. main ()
  14855. {
  14856. ;
  14857. return 0;
  14858. }
  14859. _ACEOF
  14860. rm -f conftest.$ac_objext conftest$ac_exeext
  14861. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14862. (eval $ac_link) 2>conftest.er1
  14863. ac_status=$?
  14864. grep -v '^ *+' conftest.er1 >conftest.err
  14865. rm -f conftest.er1
  14866. cat conftest.err >&5
  14867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14868. (exit $ac_status); } &&
  14869. { ac_try='test -z "$ac_c_werror_flag"
  14870. || test ! -s conftest.err'
  14871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14872. (eval $ac_try) 2>&5
  14873. ac_status=$?
  14874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14875. (exit $ac_status); }; } &&
  14876. { ac_try='test -s conftest$ac_exeext'
  14877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14878. (eval $ac_try) 2>&5
  14879. ac_status=$?
  14880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14881. (exit $ac_status); }; }; then
  14882. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14883. }'`
  14884. # Check for a 64-bit object if we didn't find anything.
  14885. 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; }
  14886. }'`; fi
  14887. else
  14888. echo "$as_me: failed program was:" >&5
  14889. sed 's/^/| /' conftest.$ac_ext >&5
  14890. fi
  14891. rm -f conftest.err conftest.$ac_objext \
  14892. conftest$ac_exeext conftest.$ac_ext
  14893. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14894. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14895. # Warning - without using the other run time loading flags,
  14896. # -berok will link without error, but may produce a broken library.
  14897. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14898. allow_undefined_flag_GCJ=' ${wl}-berok'
  14899. # Exported symbols can be pulled into shared objects from archives
  14900. whole_archive_flag_spec_GCJ='$convenience'
  14901. archive_cmds_need_lc_GCJ=yes
  14902. # This is similar to how AIX traditionally builds its shared libraries.
  14903. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14904. fi
  14905. fi
  14906. ;;
  14907. amigaos*)
  14908. 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)'
  14909. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14910. hardcode_minus_L_GCJ=yes
  14911. # see comment about different semantics on the GNU ld section
  14912. ld_shlibs_GCJ=no
  14913. ;;
  14914. bsdi[45]*)
  14915. export_dynamic_flag_spec_GCJ=-rdynamic
  14916. ;;
  14917. cygwin* | mingw* | pw32*)
  14918. # When not using gcc, we currently assume that we are using
  14919. # Microsoft Visual C++.
  14920. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14921. # no search path for DLLs.
  14922. hardcode_libdir_flag_spec_GCJ=' '
  14923. allow_undefined_flag_GCJ=unsupported
  14924. # Tell ltmain to make .lib files, not .a files.
  14925. libext=lib
  14926. # Tell ltmain to make .dll files, not .so files.
  14927. shrext_cmds=".dll"
  14928. # FIXME: Setting linknames here is a bad hack.
  14929. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14930. # The linker will automatically build a .lib file if we build a DLL.
  14931. old_archive_From_new_cmds_GCJ='true'
  14932. # FIXME: Should let the user specify the lib program.
  14933. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14934. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14935. enable_shared_with_static_runtimes_GCJ=yes
  14936. ;;
  14937. darwin* | rhapsody*)
  14938. case $host_os in
  14939. rhapsody* | darwin1.[012])
  14940. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14941. ;;
  14942. *) # Darwin 1.3 on
  14943. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14944. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14945. else
  14946. case ${MACOSX_DEPLOYMENT_TARGET} in
  14947. 10.[012])
  14948. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14949. ;;
  14950. 10.*)
  14951. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14952. ;;
  14953. esac
  14954. fi
  14955. ;;
  14956. esac
  14957. archive_cmds_need_lc_GCJ=no
  14958. hardcode_direct_GCJ=no
  14959. hardcode_automatic_GCJ=yes
  14960. hardcode_shlibpath_var_GCJ=unsupported
  14961. whole_archive_flag_spec_GCJ=''
  14962. link_all_deplibs_GCJ=yes
  14963. if test "$GCC" = yes ; then
  14964. output_verbose_link_cmd='echo'
  14965. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14966. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14967. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14968. 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}'
  14969. 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}'
  14970. else
  14971. case $cc_basename in
  14972. xlc*)
  14973. output_verbose_link_cmd='echo'
  14974. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14975. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14976. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14977. 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}'
  14978. 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}'
  14979. ;;
  14980. *)
  14981. ld_shlibs_GCJ=no
  14982. ;;
  14983. esac
  14984. fi
  14985. ;;
  14986. dgux*)
  14987. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14988. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14989. hardcode_shlibpath_var_GCJ=no
  14990. ;;
  14991. freebsd1*)
  14992. ld_shlibs_GCJ=no
  14993. ;;
  14994. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14995. # support. Future versions do this automatically, but an explicit c++rt0.o
  14996. # does not break anything, and helps significantly (at the cost of a little
  14997. # extra space).
  14998. freebsd2.2*)
  14999. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15000. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15001. hardcode_direct_GCJ=yes
  15002. hardcode_shlibpath_var_GCJ=no
  15003. ;;
  15004. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15005. freebsd2*)
  15006. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15007. hardcode_direct_GCJ=yes
  15008. hardcode_minus_L_GCJ=yes
  15009. hardcode_shlibpath_var_GCJ=no
  15010. ;;
  15011. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15012. freebsd* | kfreebsd*-gnu | dragonfly*)
  15013. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15014. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15015. hardcode_direct_GCJ=yes
  15016. hardcode_shlibpath_var_GCJ=no
  15017. ;;
  15018. hpux9*)
  15019. if test "$GCC" = yes; then
  15020. 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'
  15021. else
  15022. 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'
  15023. fi
  15024. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15025. hardcode_libdir_separator_GCJ=:
  15026. hardcode_direct_GCJ=yes
  15027. # hardcode_minus_L: Not really in the search PATH,
  15028. # but as the default location of the library.
  15029. hardcode_minus_L_GCJ=yes
  15030. export_dynamic_flag_spec_GCJ='${wl}-E'
  15031. ;;
  15032. hpux10*)
  15033. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15034. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15035. else
  15036. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15037. fi
  15038. if test "$with_gnu_ld" = no; then
  15039. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15040. hardcode_libdir_separator_GCJ=:
  15041. hardcode_direct_GCJ=yes
  15042. export_dynamic_flag_spec_GCJ='${wl}-E'
  15043. # hardcode_minus_L: Not really in the search PATH,
  15044. # but as the default location of the library.
  15045. hardcode_minus_L_GCJ=yes
  15046. fi
  15047. ;;
  15048. hpux11*)
  15049. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15050. case $host_cpu in
  15051. hppa*64*)
  15052. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15053. ;;
  15054. ia64*)
  15055. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15056. ;;
  15057. *)
  15058. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15059. ;;
  15060. esac
  15061. else
  15062. case $host_cpu in
  15063. hppa*64*)
  15064. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15065. ;;
  15066. ia64*)
  15067. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15068. ;;
  15069. *)
  15070. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15071. ;;
  15072. esac
  15073. fi
  15074. if test "$with_gnu_ld" = no; then
  15075. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15076. hardcode_libdir_separator_GCJ=:
  15077. case $host_cpu in
  15078. hppa*64*|ia64*)
  15079. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15080. hardcode_direct_GCJ=no
  15081. hardcode_shlibpath_var_GCJ=no
  15082. ;;
  15083. *)
  15084. hardcode_direct_GCJ=yes
  15085. export_dynamic_flag_spec_GCJ='${wl}-E'
  15086. # hardcode_minus_L: Not really in the search PATH,
  15087. # but as the default location of the library.
  15088. hardcode_minus_L_GCJ=yes
  15089. ;;
  15090. esac
  15091. fi
  15092. ;;
  15093. irix5* | irix6* | nonstopux*)
  15094. if test "$GCC" = yes; then
  15095. 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'
  15096. else
  15097. 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'
  15098. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15099. fi
  15100. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15101. hardcode_libdir_separator_GCJ=:
  15102. link_all_deplibs_GCJ=yes
  15103. ;;
  15104. netbsd*)
  15105. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15106. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15107. else
  15108. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15109. fi
  15110. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15111. hardcode_direct_GCJ=yes
  15112. hardcode_shlibpath_var_GCJ=no
  15113. ;;
  15114. newsos6)
  15115. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15116. hardcode_direct_GCJ=yes
  15117. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15118. hardcode_libdir_separator_GCJ=:
  15119. hardcode_shlibpath_var_GCJ=no
  15120. ;;
  15121. openbsd*)
  15122. hardcode_direct_GCJ=yes
  15123. hardcode_shlibpath_var_GCJ=no
  15124. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15125. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15126. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15127. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15128. export_dynamic_flag_spec_GCJ='${wl}-E'
  15129. else
  15130. case $host_os in
  15131. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15132. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15133. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15134. ;;
  15135. *)
  15136. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15137. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15138. ;;
  15139. esac
  15140. fi
  15141. ;;
  15142. os2*)
  15143. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15144. hardcode_minus_L_GCJ=yes
  15145. allow_undefined_flag_GCJ=unsupported
  15146. 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'
  15147. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15148. ;;
  15149. osf3*)
  15150. if test "$GCC" = yes; then
  15151. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15152. 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'
  15153. else
  15154. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15155. 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'
  15156. fi
  15157. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15158. hardcode_libdir_separator_GCJ=:
  15159. ;;
  15160. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15161. if test "$GCC" = yes; then
  15162. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15163. 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'
  15164. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15165. else
  15166. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15167. 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'
  15168. 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~
  15169. $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'
  15170. # Both c and cxx compiler support -rpath directly
  15171. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15172. fi
  15173. hardcode_libdir_separator_GCJ=:
  15174. ;;
  15175. solaris*)
  15176. no_undefined_flag_GCJ=' -z text'
  15177. if test "$GCC" = yes; then
  15178. wlarc='${wl}'
  15179. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15180. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15181. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15182. else
  15183. wlarc=''
  15184. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15185. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15186. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15187. fi
  15188. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15189. hardcode_shlibpath_var_GCJ=no
  15190. case $host_os in
  15191. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15192. *)
  15193. # The compiler driver will combine linker options so we
  15194. # cannot just pass the convience library names through
  15195. # without $wl, iff we do not link with $LD.
  15196. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15197. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15198. case $wlarc in
  15199. '')
  15200. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15201. *)
  15202. 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' ;;
  15203. esac ;;
  15204. esac
  15205. link_all_deplibs_GCJ=yes
  15206. ;;
  15207. sunos4*)
  15208. if test "x$host_vendor" = xsequent; then
  15209. # Use $CC to link under sequent, because it throws in some extra .o
  15210. # files that make .init and .fini sections work.
  15211. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15212. else
  15213. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15214. fi
  15215. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15216. hardcode_direct_GCJ=yes
  15217. hardcode_minus_L_GCJ=yes
  15218. hardcode_shlibpath_var_GCJ=no
  15219. ;;
  15220. sysv4)
  15221. case $host_vendor in
  15222. sni)
  15223. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15224. hardcode_direct_GCJ=yes # is this really true???
  15225. ;;
  15226. siemens)
  15227. ## LD is ld it makes a PLAMLIB
  15228. ## CC just makes a GrossModule.
  15229. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15230. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15231. hardcode_direct_GCJ=no
  15232. ;;
  15233. motorola)
  15234. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15235. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15236. ;;
  15237. esac
  15238. runpath_var='LD_RUN_PATH'
  15239. hardcode_shlibpath_var_GCJ=no
  15240. ;;
  15241. sysv4.3*)
  15242. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15243. hardcode_shlibpath_var_GCJ=no
  15244. export_dynamic_flag_spec_GCJ='-Bexport'
  15245. ;;
  15246. sysv4*MP*)
  15247. if test -d /usr/nec; then
  15248. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15249. hardcode_shlibpath_var_GCJ=no
  15250. runpath_var=LD_RUN_PATH
  15251. hardcode_runpath_var=yes
  15252. ld_shlibs_GCJ=yes
  15253. fi
  15254. ;;
  15255. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15256. no_undefined_flag_GCJ='${wl}-z,text'
  15257. archive_cmds_need_lc_GCJ=no
  15258. hardcode_shlibpath_var_GCJ=no
  15259. runpath_var='LD_RUN_PATH'
  15260. if test "$GCC" = yes; then
  15261. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15262. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15263. else
  15264. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15265. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15266. fi
  15267. ;;
  15268. sysv5* | sco3.2v5* | sco5v6*)
  15269. # Note: We can NOT use -z defs as we might desire, because we do not
  15270. # link with -lc, and that would cause any symbols used from libc to
  15271. # always be unresolved, which means just about no library would
  15272. # ever link correctly. If we're not using GNU ld we use -z text
  15273. # though, which does catch some bad symbols but isn't as heavy-handed
  15274. # as -z defs.
  15275. no_undefined_flag_GCJ='${wl}-z,text'
  15276. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15277. archive_cmds_need_lc_GCJ=no
  15278. hardcode_shlibpath_var_GCJ=no
  15279. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15280. hardcode_libdir_separator_GCJ=':'
  15281. link_all_deplibs_GCJ=yes
  15282. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15283. runpath_var='LD_RUN_PATH'
  15284. if test "$GCC" = yes; then
  15285. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15286. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15287. else
  15288. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15289. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15290. fi
  15291. ;;
  15292. uts4*)
  15293. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15294. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15295. hardcode_shlibpath_var_GCJ=no
  15296. ;;
  15297. *)
  15298. ld_shlibs_GCJ=no
  15299. ;;
  15300. esac
  15301. fi
  15302. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15303. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15304. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15305. #
  15306. # Do we need to explicitly link libc?
  15307. #
  15308. case "x$archive_cmds_need_lc_GCJ" in
  15309. x|xyes)
  15310. # Assume -lc should be added
  15311. archive_cmds_need_lc_GCJ=yes
  15312. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15313. case $archive_cmds_GCJ in
  15314. *'~'*)
  15315. # FIXME: we may have to deal with multi-command sequences.
  15316. ;;
  15317. '$CC '*)
  15318. # Test whether the compiler implicitly links with -lc since on some
  15319. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15320. # to ld, don't add -lc before -lgcc.
  15321. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15322. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15323. $rm conftest*
  15324. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15325. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15326. (eval $ac_compile) 2>&5
  15327. ac_status=$?
  15328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15329. (exit $ac_status); } 2>conftest.err; then
  15330. soname=conftest
  15331. lib=conftest
  15332. libobjs=conftest.$ac_objext
  15333. deplibs=
  15334. wl=$lt_prog_compiler_wl_GCJ
  15335. pic_flag=$lt_prog_compiler_pic_GCJ
  15336. compiler_flags=-v
  15337. linker_flags=-v
  15338. verstring=
  15339. output_objdir=.
  15340. libname=conftest
  15341. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15342. allow_undefined_flag_GCJ=
  15343. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15344. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15345. ac_status=$?
  15346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15347. (exit $ac_status); }
  15348. then
  15349. archive_cmds_need_lc_GCJ=no
  15350. else
  15351. archive_cmds_need_lc_GCJ=yes
  15352. fi
  15353. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15354. else
  15355. cat conftest.err 1>&5
  15356. fi
  15357. $rm conftest*
  15358. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15359. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15360. ;;
  15361. esac
  15362. fi
  15363. ;;
  15364. esac
  15365. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15366. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15367. library_names_spec=
  15368. libname_spec='lib$name'
  15369. soname_spec=
  15370. shrext_cmds=".so"
  15371. postinstall_cmds=
  15372. postuninstall_cmds=
  15373. finish_cmds=
  15374. finish_eval=
  15375. shlibpath_var=
  15376. shlibpath_overrides_runpath=unknown
  15377. version_type=none
  15378. dynamic_linker="$host_os ld.so"
  15379. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15380. if test "$GCC" = yes; then
  15381. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15382. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15383. # if the path contains ";" then we assume it to be the separator
  15384. # otherwise default to the standard path separator (i.e. ":") - it is
  15385. # assumed that no part of a normal pathname contains ";" but that should
  15386. # okay in the real world where ";" in dirpaths is itself problematic.
  15387. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15388. else
  15389. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15390. fi
  15391. else
  15392. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15393. fi
  15394. need_lib_prefix=unknown
  15395. hardcode_into_libs=no
  15396. # when you set need_version to no, make sure it does not cause -set_version
  15397. # flags to be left without arguments
  15398. need_version=unknown
  15399. case $host_os in
  15400. aix3*)
  15401. version_type=linux
  15402. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15403. shlibpath_var=LIBPATH
  15404. # AIX 3 has no versioning support, so we append a major version to the name.
  15405. soname_spec='${libname}${release}${shared_ext}$major'
  15406. ;;
  15407. aix4* | aix5*)
  15408. version_type=linux
  15409. need_lib_prefix=no
  15410. need_version=no
  15411. hardcode_into_libs=yes
  15412. if test "$host_cpu" = ia64; then
  15413. # AIX 5 supports IA64
  15414. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15415. shlibpath_var=LD_LIBRARY_PATH
  15416. else
  15417. # With GCC up to 2.95.x, collect2 would create an import file
  15418. # for dependence libraries. The import file would start with
  15419. # the line `#! .'. This would cause the generated library to
  15420. # depend on `.', always an invalid library. This was fixed in
  15421. # development snapshots of GCC prior to 3.0.
  15422. case $host_os in
  15423. aix4 | aix4.[01] | aix4.[01].*)
  15424. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15425. echo ' yes '
  15426. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15427. :
  15428. else
  15429. can_build_shared=no
  15430. fi
  15431. ;;
  15432. esac
  15433. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15434. # soname into executable. Probably we can add versioning support to
  15435. # collect2, so additional links can be useful in future.
  15436. if test "$aix_use_runtimelinking" = yes; then
  15437. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15438. # instead of lib<name>.a to let people know that these are not
  15439. # typical AIX shared libraries.
  15440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15441. else
  15442. # We preserve .a as extension for shared libraries through AIX4.2
  15443. # and later when we are not doing run time linking.
  15444. library_names_spec='${libname}${release}.a $libname.a'
  15445. soname_spec='${libname}${release}${shared_ext}$major'
  15446. fi
  15447. shlibpath_var=LIBPATH
  15448. fi
  15449. ;;
  15450. amigaos*)
  15451. library_names_spec='$libname.ixlibrary $libname.a'
  15452. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15453. 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'
  15454. ;;
  15455. beos*)
  15456. library_names_spec='${libname}${shared_ext}'
  15457. dynamic_linker="$host_os ld.so"
  15458. shlibpath_var=LIBRARY_PATH
  15459. ;;
  15460. bsdi[45]*)
  15461. version_type=linux
  15462. need_version=no
  15463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15464. soname_spec='${libname}${release}${shared_ext}$major'
  15465. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15466. shlibpath_var=LD_LIBRARY_PATH
  15467. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15468. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15469. # the default ld.so.conf also contains /usr/contrib/lib and
  15470. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15471. # libtool to hard-code these into programs
  15472. ;;
  15473. cygwin* | mingw* | pw32*)
  15474. version_type=windows
  15475. shrext_cmds=".dll"
  15476. need_version=no
  15477. need_lib_prefix=no
  15478. case $GCC,$host_os in
  15479. yes,cygwin* | yes,mingw* | yes,pw32*)
  15480. library_names_spec='$libname.dll.a'
  15481. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15482. postinstall_cmds='base_file=`basename \${file}`~
  15483. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15484. dldir=$destdir/`dirname \$dlpath`~
  15485. test -d \$dldir || mkdir -p \$dldir~
  15486. $install_prog $dir/$dlname \$dldir/$dlname~
  15487. chmod a+x \$dldir/$dlname'
  15488. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15489. dlpath=$dir/\$dldll~
  15490. $rm \$dlpath'
  15491. shlibpath_overrides_runpath=yes
  15492. case $host_os in
  15493. cygwin*)
  15494. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15495. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15496. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15497. ;;
  15498. mingw*)
  15499. # MinGW DLLs use traditional 'lib' prefix
  15500. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15501. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15502. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15503. # It is most probably a Windows format PATH printed by
  15504. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15505. # path with ; separators, and with drive letters. We can handle the
  15506. # drive letters (cygwin fileutils understands them), so leave them,
  15507. # especially as we might pass files found there to a mingw objdump,
  15508. # which wouldn't understand a cygwinified path. Ahh.
  15509. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15510. else
  15511. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15512. fi
  15513. ;;
  15514. pw32*)
  15515. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15516. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15517. ;;
  15518. esac
  15519. ;;
  15520. *)
  15521. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15522. ;;
  15523. esac
  15524. dynamic_linker='Win32 ld.exe'
  15525. # FIXME: first we should search . and the directory the executable is in
  15526. shlibpath_var=PATH
  15527. ;;
  15528. darwin* | rhapsody*)
  15529. dynamic_linker="$host_os dyld"
  15530. version_type=darwin
  15531. need_lib_prefix=no
  15532. need_version=no
  15533. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15534. soname_spec='${libname}${release}${major}$shared_ext'
  15535. shlibpath_overrides_runpath=yes
  15536. shlibpath_var=DYLD_LIBRARY_PATH
  15537. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15538. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15539. if test "$GCC" = yes; then
  15540. 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"`
  15541. else
  15542. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15543. fi
  15544. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15545. ;;
  15546. dgux*)
  15547. version_type=linux
  15548. need_lib_prefix=no
  15549. need_version=no
  15550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15551. soname_spec='${libname}${release}${shared_ext}$major'
  15552. shlibpath_var=LD_LIBRARY_PATH
  15553. ;;
  15554. freebsd1*)
  15555. dynamic_linker=no
  15556. ;;
  15557. kfreebsd*-gnu)
  15558. version_type=linux
  15559. need_lib_prefix=no
  15560. need_version=no
  15561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15562. soname_spec='${libname}${release}${shared_ext}$major'
  15563. shlibpath_var=LD_LIBRARY_PATH
  15564. shlibpath_overrides_runpath=no
  15565. hardcode_into_libs=yes
  15566. dynamic_linker='GNU ld.so'
  15567. ;;
  15568. freebsd* | dragonfly*)
  15569. # DragonFly does not have aout. When/if they implement a new
  15570. # versioning mechanism, adjust this.
  15571. if test -x /usr/bin/objformat; then
  15572. objformat=`/usr/bin/objformat`
  15573. else
  15574. case $host_os in
  15575. freebsd[123]*) objformat=aout ;;
  15576. *) objformat=elf ;;
  15577. esac
  15578. fi
  15579. version_type=freebsd-$objformat
  15580. case $version_type in
  15581. freebsd-elf*)
  15582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15583. need_version=no
  15584. need_lib_prefix=no
  15585. ;;
  15586. freebsd-*)
  15587. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15588. need_version=yes
  15589. ;;
  15590. esac
  15591. shlibpath_var=LD_LIBRARY_PATH
  15592. case $host_os in
  15593. freebsd2*)
  15594. shlibpath_overrides_runpath=yes
  15595. ;;
  15596. freebsd3.[01]* | freebsdelf3.[01]*)
  15597. shlibpath_overrides_runpath=yes
  15598. hardcode_into_libs=yes
  15599. ;;
  15600. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15601. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15602. shlibpath_overrides_runpath=no
  15603. hardcode_into_libs=yes
  15604. ;;
  15605. freebsd*) # from 4.6 on
  15606. shlibpath_overrides_runpath=yes
  15607. hardcode_into_libs=yes
  15608. ;;
  15609. esac
  15610. ;;
  15611. gnu*)
  15612. version_type=linux
  15613. need_lib_prefix=no
  15614. need_version=no
  15615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15616. soname_spec='${libname}${release}${shared_ext}$major'
  15617. shlibpath_var=LD_LIBRARY_PATH
  15618. hardcode_into_libs=yes
  15619. ;;
  15620. hpux9* | hpux10* | hpux11*)
  15621. # Give a soname corresponding to the major version so that dld.sl refuses to
  15622. # link against other versions.
  15623. version_type=sunos
  15624. need_lib_prefix=no
  15625. need_version=no
  15626. case $host_cpu in
  15627. ia64*)
  15628. shrext_cmds='.so'
  15629. hardcode_into_libs=yes
  15630. dynamic_linker="$host_os dld.so"
  15631. shlibpath_var=LD_LIBRARY_PATH
  15632. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15634. soname_spec='${libname}${release}${shared_ext}$major'
  15635. if test "X$HPUX_IA64_MODE" = X32; then
  15636. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15637. else
  15638. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15639. fi
  15640. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15641. ;;
  15642. hppa*64*)
  15643. shrext_cmds='.sl'
  15644. hardcode_into_libs=yes
  15645. dynamic_linker="$host_os dld.sl"
  15646. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15647. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15649. soname_spec='${libname}${release}${shared_ext}$major'
  15650. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15651. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15652. ;;
  15653. *)
  15654. shrext_cmds='.sl'
  15655. dynamic_linker="$host_os dld.sl"
  15656. shlibpath_var=SHLIB_PATH
  15657. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15659. soname_spec='${libname}${release}${shared_ext}$major'
  15660. ;;
  15661. esac
  15662. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15663. postinstall_cmds='chmod 555 $lib'
  15664. ;;
  15665. interix3*)
  15666. version_type=linux
  15667. need_lib_prefix=no
  15668. need_version=no
  15669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15670. soname_spec='${libname}${release}${shared_ext}$major'
  15671. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15672. shlibpath_var=LD_LIBRARY_PATH
  15673. shlibpath_overrides_runpath=no
  15674. hardcode_into_libs=yes
  15675. ;;
  15676. irix5* | irix6* | nonstopux*)
  15677. case $host_os in
  15678. nonstopux*) version_type=nonstopux ;;
  15679. *)
  15680. if test "$lt_cv_prog_gnu_ld" = yes; then
  15681. version_type=linux
  15682. else
  15683. version_type=irix
  15684. fi ;;
  15685. esac
  15686. need_lib_prefix=no
  15687. need_version=no
  15688. soname_spec='${libname}${release}${shared_ext}$major'
  15689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15690. case $host_os in
  15691. irix5* | nonstopux*)
  15692. libsuff= shlibsuff=
  15693. ;;
  15694. *)
  15695. case $LD in # libtool.m4 will add one of these switches to LD
  15696. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15697. libsuff= shlibsuff= libmagic=32-bit;;
  15698. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15699. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15700. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15701. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15702. *) libsuff= shlibsuff= libmagic=never-match;;
  15703. esac
  15704. ;;
  15705. esac
  15706. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15707. shlibpath_overrides_runpath=no
  15708. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15709. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15710. hardcode_into_libs=yes
  15711. ;;
  15712. # No shared lib support for Linux oldld, aout, or coff.
  15713. linux*oldld* | linux*aout* | linux*coff*)
  15714. dynamic_linker=no
  15715. ;;
  15716. # This must be Linux ELF.
  15717. linux*)
  15718. version_type=linux
  15719. need_lib_prefix=no
  15720. need_version=no
  15721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15722. soname_spec='${libname}${release}${shared_ext}$major'
  15723. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15724. shlibpath_var=LD_LIBRARY_PATH
  15725. shlibpath_overrides_runpath=no
  15726. # This implies no fast_install, which is unacceptable.
  15727. # Some rework will be needed to allow for fast_install
  15728. # before this can be enabled.
  15729. hardcode_into_libs=yes
  15730. # Append ld.so.conf contents to the search path
  15731. if test -f /etc/ld.so.conf; then
  15732. 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' ' '`
  15733. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15734. fi
  15735. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15736. # powerpc, because MkLinux only supported shared libraries with the
  15737. # GNU dynamic linker. Since this was broken with cross compilers,
  15738. # most powerpc-linux boxes support dynamic linking these days and
  15739. # people can always --disable-shared, the test was removed, and we
  15740. # assume the GNU/Linux dynamic linker is in use.
  15741. dynamic_linker='GNU/Linux ld.so'
  15742. ;;
  15743. knetbsd*-gnu)
  15744. version_type=linux
  15745. need_lib_prefix=no
  15746. need_version=no
  15747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15748. soname_spec='${libname}${release}${shared_ext}$major'
  15749. shlibpath_var=LD_LIBRARY_PATH
  15750. shlibpath_overrides_runpath=no
  15751. hardcode_into_libs=yes
  15752. dynamic_linker='GNU ld.so'
  15753. ;;
  15754. netbsd*)
  15755. version_type=sunos
  15756. need_lib_prefix=no
  15757. need_version=no
  15758. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15760. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15761. dynamic_linker='NetBSD (a.out) ld.so'
  15762. else
  15763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15764. soname_spec='${libname}${release}${shared_ext}$major'
  15765. dynamic_linker='NetBSD ld.elf_so'
  15766. fi
  15767. shlibpath_var=LD_LIBRARY_PATH
  15768. shlibpath_overrides_runpath=yes
  15769. hardcode_into_libs=yes
  15770. ;;
  15771. newsos6)
  15772. version_type=linux
  15773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15774. shlibpath_var=LD_LIBRARY_PATH
  15775. shlibpath_overrides_runpath=yes
  15776. ;;
  15777. nto-qnx*)
  15778. version_type=linux
  15779. need_lib_prefix=no
  15780. need_version=no
  15781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15782. soname_spec='${libname}${release}${shared_ext}$major'
  15783. shlibpath_var=LD_LIBRARY_PATH
  15784. shlibpath_overrides_runpath=yes
  15785. ;;
  15786. openbsd*)
  15787. version_type=sunos
  15788. sys_lib_dlsearch_path_spec="/usr/lib"
  15789. need_lib_prefix=no
  15790. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15791. case $host_os in
  15792. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15793. *) need_version=no ;;
  15794. esac
  15795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15796. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15797. shlibpath_var=LD_LIBRARY_PATH
  15798. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15799. case $host_os in
  15800. openbsd2.[89] | openbsd2.[89].*)
  15801. shlibpath_overrides_runpath=no
  15802. ;;
  15803. *)
  15804. shlibpath_overrides_runpath=yes
  15805. ;;
  15806. esac
  15807. else
  15808. shlibpath_overrides_runpath=yes
  15809. fi
  15810. ;;
  15811. os2*)
  15812. libname_spec='$name'
  15813. shrext_cmds=".dll"
  15814. need_lib_prefix=no
  15815. library_names_spec='$libname${shared_ext} $libname.a'
  15816. dynamic_linker='OS/2 ld.exe'
  15817. shlibpath_var=LIBPATH
  15818. ;;
  15819. osf3* | osf4* | osf5*)
  15820. version_type=osf
  15821. need_lib_prefix=no
  15822. need_version=no
  15823. soname_spec='${libname}${release}${shared_ext}$major'
  15824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15825. shlibpath_var=LD_LIBRARY_PATH
  15826. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15827. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15828. ;;
  15829. solaris*)
  15830. version_type=linux
  15831. need_lib_prefix=no
  15832. need_version=no
  15833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15834. soname_spec='${libname}${release}${shared_ext}$major'
  15835. shlibpath_var=LD_LIBRARY_PATH
  15836. shlibpath_overrides_runpath=yes
  15837. hardcode_into_libs=yes
  15838. # ldd complains unless libraries are executable
  15839. postinstall_cmds='chmod +x $lib'
  15840. ;;
  15841. sunos4*)
  15842. version_type=sunos
  15843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15844. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15845. shlibpath_var=LD_LIBRARY_PATH
  15846. shlibpath_overrides_runpath=yes
  15847. if test "$with_gnu_ld" = yes; then
  15848. need_lib_prefix=no
  15849. fi
  15850. need_version=yes
  15851. ;;
  15852. sysv4 | sysv4.3*)
  15853. version_type=linux
  15854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15855. soname_spec='${libname}${release}${shared_ext}$major'
  15856. shlibpath_var=LD_LIBRARY_PATH
  15857. case $host_vendor in
  15858. sni)
  15859. shlibpath_overrides_runpath=no
  15860. need_lib_prefix=no
  15861. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15862. runpath_var=LD_RUN_PATH
  15863. ;;
  15864. siemens)
  15865. need_lib_prefix=no
  15866. ;;
  15867. motorola)
  15868. need_lib_prefix=no
  15869. need_version=no
  15870. shlibpath_overrides_runpath=no
  15871. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15872. ;;
  15873. esac
  15874. ;;
  15875. sysv4*MP*)
  15876. if test -d /usr/nec ;then
  15877. version_type=linux
  15878. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15879. soname_spec='$libname${shared_ext}.$major'
  15880. shlibpath_var=LD_LIBRARY_PATH
  15881. fi
  15882. ;;
  15883. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15884. version_type=freebsd-elf
  15885. need_lib_prefix=no
  15886. need_version=no
  15887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15888. soname_spec='${libname}${release}${shared_ext}$major'
  15889. shlibpath_var=LD_LIBRARY_PATH
  15890. hardcode_into_libs=yes
  15891. if test "$with_gnu_ld" = yes; then
  15892. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15893. shlibpath_overrides_runpath=no
  15894. else
  15895. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15896. shlibpath_overrides_runpath=yes
  15897. case $host_os in
  15898. sco3.2v5*)
  15899. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15900. ;;
  15901. esac
  15902. fi
  15903. sys_lib_dlsearch_path_spec='/usr/lib'
  15904. ;;
  15905. uts4*)
  15906. version_type=linux
  15907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15908. soname_spec='${libname}${release}${shared_ext}$major'
  15909. shlibpath_var=LD_LIBRARY_PATH
  15910. ;;
  15911. *)
  15912. dynamic_linker=no
  15913. ;;
  15914. esac
  15915. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15916. echo "${ECHO_T}$dynamic_linker" >&6
  15917. test "$dynamic_linker" = no && can_build_shared=no
  15918. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15919. if test "$GCC" = yes; then
  15920. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15921. fi
  15922. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15923. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15924. hardcode_action_GCJ=
  15925. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15926. test -n "$runpath_var_GCJ" || \
  15927. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15928. # We can hardcode non-existant directories.
  15929. if test "$hardcode_direct_GCJ" != no &&
  15930. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15931. # have to relink, otherwise we might link with an installed library
  15932. # when we should be linking with a yet-to-be-installed one
  15933. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15934. test "$hardcode_minus_L_GCJ" != no; then
  15935. # Linking always hardcodes the temporary library directory.
  15936. hardcode_action_GCJ=relink
  15937. else
  15938. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15939. hardcode_action_GCJ=immediate
  15940. fi
  15941. else
  15942. # We cannot hardcode anything, or else we can only hardcode existing
  15943. # directories.
  15944. hardcode_action_GCJ=unsupported
  15945. fi
  15946. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15947. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15948. if test "$hardcode_action_GCJ" = relink; then
  15949. # Fast installation is not supported
  15950. enable_fast_install=no
  15951. elif test "$shlibpath_overrides_runpath" = yes ||
  15952. test "$enable_shared" = no; then
  15953. # Fast installation is not necessary
  15954. enable_fast_install=needless
  15955. fi
  15956. # The else clause should only fire when bootstrapping the
  15957. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15958. # with your package, and you will get complaints that there are
  15959. # no rules to generate ltmain.sh.
  15960. if test -f "$ltmain"; then
  15961. # See if we are running on zsh, and set the options which allow our commands through
  15962. # without removal of \ escapes.
  15963. if test -n "${ZSH_VERSION+set}" ; then
  15964. setopt NO_GLOB_SUBST
  15965. fi
  15966. # Now quote all the things that may contain metacharacters while being
  15967. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15968. # variables and quote the copies for generation of the libtool script.
  15969. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15970. SED SHELL STRIP \
  15971. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15972. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15973. deplibs_check_method reload_flag reload_cmds need_locks \
  15974. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15975. lt_cv_sys_global_symbol_to_c_name_address \
  15976. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15977. old_postinstall_cmds old_postuninstall_cmds \
  15978. compiler_GCJ \
  15979. CC_GCJ \
  15980. LD_GCJ \
  15981. lt_prog_compiler_wl_GCJ \
  15982. lt_prog_compiler_pic_GCJ \
  15983. lt_prog_compiler_static_GCJ \
  15984. lt_prog_compiler_no_builtin_flag_GCJ \
  15985. export_dynamic_flag_spec_GCJ \
  15986. thread_safe_flag_spec_GCJ \
  15987. whole_archive_flag_spec_GCJ \
  15988. enable_shared_with_static_runtimes_GCJ \
  15989. old_archive_cmds_GCJ \
  15990. old_archive_from_new_cmds_GCJ \
  15991. predep_objects_GCJ \
  15992. postdep_objects_GCJ \
  15993. predeps_GCJ \
  15994. postdeps_GCJ \
  15995. compiler_lib_search_path_GCJ \
  15996. archive_cmds_GCJ \
  15997. archive_expsym_cmds_GCJ \
  15998. postinstall_cmds_GCJ \
  15999. postuninstall_cmds_GCJ \
  16000. old_archive_from_expsyms_cmds_GCJ \
  16001. allow_undefined_flag_GCJ \
  16002. no_undefined_flag_GCJ \
  16003. export_symbols_cmds_GCJ \
  16004. hardcode_libdir_flag_spec_GCJ \
  16005. hardcode_libdir_flag_spec_ld_GCJ \
  16006. hardcode_libdir_separator_GCJ \
  16007. hardcode_automatic_GCJ \
  16008. module_cmds_GCJ \
  16009. module_expsym_cmds_GCJ \
  16010. lt_cv_prog_compiler_c_o_GCJ \
  16011. exclude_expsyms_GCJ \
  16012. include_expsyms_GCJ; do
  16013. case $var in
  16014. old_archive_cmds_GCJ | \
  16015. old_archive_from_new_cmds_GCJ | \
  16016. archive_cmds_GCJ | \
  16017. archive_expsym_cmds_GCJ | \
  16018. module_cmds_GCJ | \
  16019. module_expsym_cmds_GCJ | \
  16020. old_archive_from_expsyms_cmds_GCJ | \
  16021. export_symbols_cmds_GCJ | \
  16022. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16023. postinstall_cmds | postuninstall_cmds | \
  16024. old_postinstall_cmds | old_postuninstall_cmds | \
  16025. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16026. # Double-quote double-evaled strings.
  16027. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16028. ;;
  16029. *)
  16030. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16031. ;;
  16032. esac
  16033. done
  16034. case $lt_echo in
  16035. *'\$0 --fallback-echo"')
  16036. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16037. ;;
  16038. esac
  16039. cfgfile="$ofile"
  16040. cat <<__EOF__ >> "$cfgfile"
  16041. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16042. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16043. # Shell to use when invoking shell scripts.
  16044. SHELL=$lt_SHELL
  16045. # Whether or not to build shared libraries.
  16046. build_libtool_libs=$enable_shared
  16047. # Whether or not to build static libraries.
  16048. build_old_libs=$enable_static
  16049. # Whether or not to add -lc for building shared libraries.
  16050. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16051. # Whether or not to disallow shared libs when runtime libs are static
  16052. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16053. # Whether or not to optimize for fast installation.
  16054. fast_install=$enable_fast_install
  16055. # The host system.
  16056. host_alias=$host_alias
  16057. host=$host
  16058. host_os=$host_os
  16059. # The build system.
  16060. build_alias=$build_alias
  16061. build=$build
  16062. build_os=$build_os
  16063. # An echo program that does not interpret backslashes.
  16064. echo=$lt_echo
  16065. # The archiver.
  16066. AR=$lt_AR
  16067. AR_FLAGS=$lt_AR_FLAGS
  16068. # A C compiler.
  16069. LTCC=$lt_LTCC
  16070. # LTCC compiler flags.
  16071. LTCFLAGS=$lt_LTCFLAGS
  16072. # A language-specific compiler.
  16073. CC=$lt_compiler_GCJ
  16074. # Is the compiler the GNU C compiler?
  16075. with_gcc=$GCC_GCJ
  16076. # An ERE matcher.
  16077. EGREP=$lt_EGREP
  16078. # The linker used to build libraries.
  16079. LD=$lt_LD_GCJ
  16080. # Whether we need hard or soft links.
  16081. LN_S=$lt_LN_S
  16082. # A BSD-compatible nm program.
  16083. NM=$lt_NM
  16084. # A symbol stripping program
  16085. STRIP=$lt_STRIP
  16086. # Used to examine libraries when file_magic_cmd begins "file"
  16087. MAGIC_CMD=$MAGIC_CMD
  16088. # Used on cygwin: DLL creation program.
  16089. DLLTOOL="$DLLTOOL"
  16090. # Used on cygwin: object dumper.
  16091. OBJDUMP="$OBJDUMP"
  16092. # Used on cygwin: assembler.
  16093. AS="$AS"
  16094. # The name of the directory that contains temporary libtool files.
  16095. objdir=$objdir
  16096. # How to create reloadable object files.
  16097. reload_flag=$lt_reload_flag
  16098. reload_cmds=$lt_reload_cmds
  16099. # How to pass a linker flag through the compiler.
  16100. wl=$lt_lt_prog_compiler_wl_GCJ
  16101. # Object file suffix (normally "o").
  16102. objext="$ac_objext"
  16103. # Old archive suffix (normally "a").
  16104. libext="$libext"
  16105. # Shared library suffix (normally ".so").
  16106. shrext_cmds='$shrext_cmds'
  16107. # Executable file suffix (normally "").
  16108. exeext="$exeext"
  16109. # Additional compiler flags for building library objects.
  16110. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16111. pic_mode=$pic_mode
  16112. # What is the maximum length of a command?
  16113. max_cmd_len=$lt_cv_sys_max_cmd_len
  16114. # Does compiler simultaneously support -c and -o options?
  16115. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16116. # Must we lock files when doing compilation?
  16117. need_locks=$lt_need_locks
  16118. # Do we need the lib prefix for modules?
  16119. need_lib_prefix=$need_lib_prefix
  16120. # Do we need a version for libraries?
  16121. need_version=$need_version
  16122. # Whether dlopen is supported.
  16123. dlopen_support=$enable_dlopen
  16124. # Whether dlopen of programs is supported.
  16125. dlopen_self=$enable_dlopen_self
  16126. # Whether dlopen of statically linked programs is supported.
  16127. dlopen_self_static=$enable_dlopen_self_static
  16128. # Compiler flag to prevent dynamic linking.
  16129. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16130. # Compiler flag to turn off builtin functions.
  16131. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16132. # Compiler flag to allow reflexive dlopens.
  16133. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16134. # Compiler flag to generate shared objects directly from archives.
  16135. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16136. # Compiler flag to generate thread-safe objects.
  16137. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16138. # Library versioning type.
  16139. version_type=$version_type
  16140. # Format of library name prefix.
  16141. libname_spec=$lt_libname_spec
  16142. # List of archive names. First name is the real one, the rest are links.
  16143. # The last name is the one that the linker finds with -lNAME.
  16144. library_names_spec=$lt_library_names_spec
  16145. # The coded name of the library, if different from the real name.
  16146. soname_spec=$lt_soname_spec
  16147. # Commands used to build and install an old-style archive.
  16148. RANLIB=$lt_RANLIB
  16149. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16150. old_postinstall_cmds=$lt_old_postinstall_cmds
  16151. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16152. # Create an old-style archive from a shared archive.
  16153. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16154. # Create a temporary old-style archive to link instead of a shared archive.
  16155. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16156. # Commands used to build and install a shared archive.
  16157. archive_cmds=$lt_archive_cmds_GCJ
  16158. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16159. postinstall_cmds=$lt_postinstall_cmds
  16160. postuninstall_cmds=$lt_postuninstall_cmds
  16161. # Commands used to build a loadable module (assumed same as above if empty)
  16162. module_cmds=$lt_module_cmds_GCJ
  16163. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16164. # Commands to strip libraries.
  16165. old_striplib=$lt_old_striplib
  16166. striplib=$lt_striplib
  16167. # Dependencies to place before the objects being linked to create a
  16168. # shared library.
  16169. predep_objects=$lt_predep_objects_GCJ
  16170. # Dependencies to place after the objects being linked to create a
  16171. # shared library.
  16172. postdep_objects=$lt_postdep_objects_GCJ
  16173. # Dependencies to place before the objects being linked to create a
  16174. # shared library.
  16175. predeps=$lt_predeps_GCJ
  16176. # Dependencies to place after the objects being linked to create a
  16177. # shared library.
  16178. postdeps=$lt_postdeps_GCJ
  16179. # The library search path used internally by the compiler when linking
  16180. # a shared library.
  16181. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16182. # Method to check whether dependent libraries are shared objects.
  16183. deplibs_check_method=$lt_deplibs_check_method
  16184. # Command to use when deplibs_check_method == file_magic.
  16185. file_magic_cmd=$lt_file_magic_cmd
  16186. # Flag that allows shared libraries with undefined symbols to be built.
  16187. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16188. # Flag that forces no undefined symbols.
  16189. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16190. # Commands used to finish a libtool library installation in a directory.
  16191. finish_cmds=$lt_finish_cmds
  16192. # Same as above, but a single script fragment to be evaled but not shown.
  16193. finish_eval=$lt_finish_eval
  16194. # Take the output of nm and produce a listing of raw symbols and C names.
  16195. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16196. # Transform the output of nm in a proper C declaration
  16197. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16198. # Transform the output of nm in a C name address pair
  16199. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16200. # This is the shared library runtime path variable.
  16201. runpath_var=$runpath_var
  16202. # This is the shared library path variable.
  16203. shlibpath_var=$shlibpath_var
  16204. # Is shlibpath searched before the hard-coded library search path?
  16205. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16206. # How to hardcode a shared library path into an executable.
  16207. hardcode_action=$hardcode_action_GCJ
  16208. # Whether we should hardcode library paths into libraries.
  16209. hardcode_into_libs=$hardcode_into_libs
  16210. # Flag to hardcode \$libdir into a binary during linking.
  16211. # This must work even if \$libdir does not exist.
  16212. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16213. # If ld is used when linking, flag to hardcode \$libdir into
  16214. # a binary during linking. This must work even if \$libdir does
  16215. # not exist.
  16216. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16217. # Whether we need a single -rpath flag with a separated argument.
  16218. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16219. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16220. # resulting binary.
  16221. hardcode_direct=$hardcode_direct_GCJ
  16222. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16223. # resulting binary.
  16224. hardcode_minus_L=$hardcode_minus_L_GCJ
  16225. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16226. # the resulting binary.
  16227. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16228. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16229. # and all subsequent libraries and executables linked against it.
  16230. hardcode_automatic=$hardcode_automatic_GCJ
  16231. # Variables whose values should be saved in libtool wrapper scripts and
  16232. # restored at relink time.
  16233. variables_saved_for_relink="$variables_saved_for_relink"
  16234. # Whether libtool must link a program against all its dependency libraries.
  16235. link_all_deplibs=$link_all_deplibs_GCJ
  16236. # Compile-time system search path for libraries
  16237. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16238. # Run-time system search path for libraries
  16239. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16240. # Fix the shell variable \$srcfile for the compiler.
  16241. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16242. # Set to yes if exported symbols are required.
  16243. always_export_symbols=$always_export_symbols_GCJ
  16244. # The commands to list exported symbols.
  16245. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16246. # The commands to extract the exported symbol list from a shared archive.
  16247. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16248. # Symbols that should not be listed in the preloaded symbols.
  16249. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16250. # Symbols that must always be exported.
  16251. include_expsyms=$lt_include_expsyms_GCJ
  16252. # ### END LIBTOOL TAG CONFIG: $tagname
  16253. __EOF__
  16254. else
  16255. # If there is no Makefile yet, we rely on a make rule to execute
  16256. # `config.status --recheck' to rerun these tests and create the
  16257. # libtool script then.
  16258. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16259. if test -f "$ltmain_in"; then
  16260. test -f Makefile && make "$ltmain"
  16261. fi
  16262. fi
  16263. ac_ext=c
  16264. ac_cpp='$CPP $CPPFLAGS'
  16265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16268. CC="$lt_save_CC"
  16269. else
  16270. tagname=""
  16271. fi
  16272. ;;
  16273. RC)
  16274. # Source file extension for RC test sources.
  16275. ac_ext=rc
  16276. # Object file extension for compiled RC test sources.
  16277. objext=o
  16278. objext_RC=$objext
  16279. # Code to be used in simple compile tests
  16280. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16281. # Code to be used in simple link tests
  16282. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16283. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16284. # If no C compiler was specified, use CC.
  16285. LTCC=${LTCC-"$CC"}
  16286. # If no C compiler flags were specified, use CFLAGS.
  16287. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16288. # Allow CC to be a program name with arguments.
  16289. compiler=$CC
  16290. # save warnings/boilerplate of simple test code
  16291. ac_outfile=conftest.$ac_objext
  16292. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16293. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16294. _lt_compiler_boilerplate=`cat conftest.err`
  16295. $rm conftest*
  16296. ac_outfile=conftest.$ac_objext
  16297. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16298. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16299. _lt_linker_boilerplate=`cat conftest.err`
  16300. $rm conftest*
  16301. # Allow CC to be a program name with arguments.
  16302. lt_save_CC="$CC"
  16303. CC=${RC-"windres"}
  16304. compiler=$CC
  16305. compiler_RC=$CC
  16306. for cc_temp in $compiler""; do
  16307. case $cc_temp in
  16308. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16309. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16310. \-*) ;;
  16311. *) break;;
  16312. esac
  16313. done
  16314. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16315. lt_cv_prog_compiler_c_o_RC=yes
  16316. # The else clause should only fire when bootstrapping the
  16317. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16318. # with your package, and you will get complaints that there are
  16319. # no rules to generate ltmain.sh.
  16320. if test -f "$ltmain"; then
  16321. # See if we are running on zsh, and set the options which allow our commands through
  16322. # without removal of \ escapes.
  16323. if test -n "${ZSH_VERSION+set}" ; then
  16324. setopt NO_GLOB_SUBST
  16325. fi
  16326. # Now quote all the things that may contain metacharacters while being
  16327. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16328. # variables and quote the copies for generation of the libtool script.
  16329. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16330. SED SHELL STRIP \
  16331. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16332. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16333. deplibs_check_method reload_flag reload_cmds need_locks \
  16334. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16335. lt_cv_sys_global_symbol_to_c_name_address \
  16336. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16337. old_postinstall_cmds old_postuninstall_cmds \
  16338. compiler_RC \
  16339. CC_RC \
  16340. LD_RC \
  16341. lt_prog_compiler_wl_RC \
  16342. lt_prog_compiler_pic_RC \
  16343. lt_prog_compiler_static_RC \
  16344. lt_prog_compiler_no_builtin_flag_RC \
  16345. export_dynamic_flag_spec_RC \
  16346. thread_safe_flag_spec_RC \
  16347. whole_archive_flag_spec_RC \
  16348. enable_shared_with_static_runtimes_RC \
  16349. old_archive_cmds_RC \
  16350. old_archive_from_new_cmds_RC \
  16351. predep_objects_RC \
  16352. postdep_objects_RC \
  16353. predeps_RC \
  16354. postdeps_RC \
  16355. compiler_lib_search_path_RC \
  16356. archive_cmds_RC \
  16357. archive_expsym_cmds_RC \
  16358. postinstall_cmds_RC \
  16359. postuninstall_cmds_RC \
  16360. old_archive_from_expsyms_cmds_RC \
  16361. allow_undefined_flag_RC \
  16362. no_undefined_flag_RC \
  16363. export_symbols_cmds_RC \
  16364. hardcode_libdir_flag_spec_RC \
  16365. hardcode_libdir_flag_spec_ld_RC \
  16366. hardcode_libdir_separator_RC \
  16367. hardcode_automatic_RC \
  16368. module_cmds_RC \
  16369. module_expsym_cmds_RC \
  16370. lt_cv_prog_compiler_c_o_RC \
  16371. exclude_expsyms_RC \
  16372. include_expsyms_RC; do
  16373. case $var in
  16374. old_archive_cmds_RC | \
  16375. old_archive_from_new_cmds_RC | \
  16376. archive_cmds_RC | \
  16377. archive_expsym_cmds_RC | \
  16378. module_cmds_RC | \
  16379. module_expsym_cmds_RC | \
  16380. old_archive_from_expsyms_cmds_RC | \
  16381. export_symbols_cmds_RC | \
  16382. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16383. postinstall_cmds | postuninstall_cmds | \
  16384. old_postinstall_cmds | old_postuninstall_cmds | \
  16385. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16386. # Double-quote double-evaled strings.
  16387. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16388. ;;
  16389. *)
  16390. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16391. ;;
  16392. esac
  16393. done
  16394. case $lt_echo in
  16395. *'\$0 --fallback-echo"')
  16396. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16397. ;;
  16398. esac
  16399. cfgfile="$ofile"
  16400. cat <<__EOF__ >> "$cfgfile"
  16401. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16402. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16403. # Shell to use when invoking shell scripts.
  16404. SHELL=$lt_SHELL
  16405. # Whether or not to build shared libraries.
  16406. build_libtool_libs=$enable_shared
  16407. # Whether or not to build static libraries.
  16408. build_old_libs=$enable_static
  16409. # Whether or not to add -lc for building shared libraries.
  16410. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16411. # Whether or not to disallow shared libs when runtime libs are static
  16412. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16413. # Whether or not to optimize for fast installation.
  16414. fast_install=$enable_fast_install
  16415. # The host system.
  16416. host_alias=$host_alias
  16417. host=$host
  16418. host_os=$host_os
  16419. # The build system.
  16420. build_alias=$build_alias
  16421. build=$build
  16422. build_os=$build_os
  16423. # An echo program that does not interpret backslashes.
  16424. echo=$lt_echo
  16425. # The archiver.
  16426. AR=$lt_AR
  16427. AR_FLAGS=$lt_AR_FLAGS
  16428. # A C compiler.
  16429. LTCC=$lt_LTCC
  16430. # LTCC compiler flags.
  16431. LTCFLAGS=$lt_LTCFLAGS
  16432. # A language-specific compiler.
  16433. CC=$lt_compiler_RC
  16434. # Is the compiler the GNU C compiler?
  16435. with_gcc=$GCC_RC
  16436. # An ERE matcher.
  16437. EGREP=$lt_EGREP
  16438. # The linker used to build libraries.
  16439. LD=$lt_LD_RC
  16440. # Whether we need hard or soft links.
  16441. LN_S=$lt_LN_S
  16442. # A BSD-compatible nm program.
  16443. NM=$lt_NM
  16444. # A symbol stripping program
  16445. STRIP=$lt_STRIP
  16446. # Used to examine libraries when file_magic_cmd begins "file"
  16447. MAGIC_CMD=$MAGIC_CMD
  16448. # Used on cygwin: DLL creation program.
  16449. DLLTOOL="$DLLTOOL"
  16450. # Used on cygwin: object dumper.
  16451. OBJDUMP="$OBJDUMP"
  16452. # Used on cygwin: assembler.
  16453. AS="$AS"
  16454. # The name of the directory that contains temporary libtool files.
  16455. objdir=$objdir
  16456. # How to create reloadable object files.
  16457. reload_flag=$lt_reload_flag
  16458. reload_cmds=$lt_reload_cmds
  16459. # How to pass a linker flag through the compiler.
  16460. wl=$lt_lt_prog_compiler_wl_RC
  16461. # Object file suffix (normally "o").
  16462. objext="$ac_objext"
  16463. # Old archive suffix (normally "a").
  16464. libext="$libext"
  16465. # Shared library suffix (normally ".so").
  16466. shrext_cmds='$shrext_cmds'
  16467. # Executable file suffix (normally "").
  16468. exeext="$exeext"
  16469. # Additional compiler flags for building library objects.
  16470. pic_flag=$lt_lt_prog_compiler_pic_RC
  16471. pic_mode=$pic_mode
  16472. # What is the maximum length of a command?
  16473. max_cmd_len=$lt_cv_sys_max_cmd_len
  16474. # Does compiler simultaneously support -c and -o options?
  16475. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16476. # Must we lock files when doing compilation?
  16477. need_locks=$lt_need_locks
  16478. # Do we need the lib prefix for modules?
  16479. need_lib_prefix=$need_lib_prefix
  16480. # Do we need a version for libraries?
  16481. need_version=$need_version
  16482. # Whether dlopen is supported.
  16483. dlopen_support=$enable_dlopen
  16484. # Whether dlopen of programs is supported.
  16485. dlopen_self=$enable_dlopen_self
  16486. # Whether dlopen of statically linked programs is supported.
  16487. dlopen_self_static=$enable_dlopen_self_static
  16488. # Compiler flag to prevent dynamic linking.
  16489. link_static_flag=$lt_lt_prog_compiler_static_RC
  16490. # Compiler flag to turn off builtin functions.
  16491. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16492. # Compiler flag to allow reflexive dlopens.
  16493. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16494. # Compiler flag to generate shared objects directly from archives.
  16495. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16496. # Compiler flag to generate thread-safe objects.
  16497. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16498. # Library versioning type.
  16499. version_type=$version_type
  16500. # Format of library name prefix.
  16501. libname_spec=$lt_libname_spec
  16502. # List of archive names. First name is the real one, the rest are links.
  16503. # The last name is the one that the linker finds with -lNAME.
  16504. library_names_spec=$lt_library_names_spec
  16505. # The coded name of the library, if different from the real name.
  16506. soname_spec=$lt_soname_spec
  16507. # Commands used to build and install an old-style archive.
  16508. RANLIB=$lt_RANLIB
  16509. old_archive_cmds=$lt_old_archive_cmds_RC
  16510. old_postinstall_cmds=$lt_old_postinstall_cmds
  16511. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16512. # Create an old-style archive from a shared archive.
  16513. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16514. # Create a temporary old-style archive to link instead of a shared archive.
  16515. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16516. # Commands used to build and install a shared archive.
  16517. archive_cmds=$lt_archive_cmds_RC
  16518. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16519. postinstall_cmds=$lt_postinstall_cmds
  16520. postuninstall_cmds=$lt_postuninstall_cmds
  16521. # Commands used to build a loadable module (assumed same as above if empty)
  16522. module_cmds=$lt_module_cmds_RC
  16523. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16524. # Commands to strip libraries.
  16525. old_striplib=$lt_old_striplib
  16526. striplib=$lt_striplib
  16527. # Dependencies to place before the objects being linked to create a
  16528. # shared library.
  16529. predep_objects=$lt_predep_objects_RC
  16530. # Dependencies to place after the objects being linked to create a
  16531. # shared library.
  16532. postdep_objects=$lt_postdep_objects_RC
  16533. # Dependencies to place before the objects being linked to create a
  16534. # shared library.
  16535. predeps=$lt_predeps_RC
  16536. # Dependencies to place after the objects being linked to create a
  16537. # shared library.
  16538. postdeps=$lt_postdeps_RC
  16539. # The library search path used internally by the compiler when linking
  16540. # a shared library.
  16541. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16542. # Method to check whether dependent libraries are shared objects.
  16543. deplibs_check_method=$lt_deplibs_check_method
  16544. # Command to use when deplibs_check_method == file_magic.
  16545. file_magic_cmd=$lt_file_magic_cmd
  16546. # Flag that allows shared libraries with undefined symbols to be built.
  16547. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16548. # Flag that forces no undefined symbols.
  16549. no_undefined_flag=$lt_no_undefined_flag_RC
  16550. # Commands used to finish a libtool library installation in a directory.
  16551. finish_cmds=$lt_finish_cmds
  16552. # Same as above, but a single script fragment to be evaled but not shown.
  16553. finish_eval=$lt_finish_eval
  16554. # Take the output of nm and produce a listing of raw symbols and C names.
  16555. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16556. # Transform the output of nm in a proper C declaration
  16557. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16558. # Transform the output of nm in a C name address pair
  16559. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16560. # This is the shared library runtime path variable.
  16561. runpath_var=$runpath_var
  16562. # This is the shared library path variable.
  16563. shlibpath_var=$shlibpath_var
  16564. # Is shlibpath searched before the hard-coded library search path?
  16565. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16566. # How to hardcode a shared library path into an executable.
  16567. hardcode_action=$hardcode_action_RC
  16568. # Whether we should hardcode library paths into libraries.
  16569. hardcode_into_libs=$hardcode_into_libs
  16570. # Flag to hardcode \$libdir into a binary during linking.
  16571. # This must work even if \$libdir does not exist.
  16572. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16573. # If ld is used when linking, flag to hardcode \$libdir into
  16574. # a binary during linking. This must work even if \$libdir does
  16575. # not exist.
  16576. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16577. # Whether we need a single -rpath flag with a separated argument.
  16578. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16579. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16580. # resulting binary.
  16581. hardcode_direct=$hardcode_direct_RC
  16582. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16583. # resulting binary.
  16584. hardcode_minus_L=$hardcode_minus_L_RC
  16585. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16586. # the resulting binary.
  16587. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16588. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16589. # and all subsequent libraries and executables linked against it.
  16590. hardcode_automatic=$hardcode_automatic_RC
  16591. # Variables whose values should be saved in libtool wrapper scripts and
  16592. # restored at relink time.
  16593. variables_saved_for_relink="$variables_saved_for_relink"
  16594. # Whether libtool must link a program against all its dependency libraries.
  16595. link_all_deplibs=$link_all_deplibs_RC
  16596. # Compile-time system search path for libraries
  16597. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16598. # Run-time system search path for libraries
  16599. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16600. # Fix the shell variable \$srcfile for the compiler.
  16601. fix_srcfile_path="$fix_srcfile_path_RC"
  16602. # Set to yes if exported symbols are required.
  16603. always_export_symbols=$always_export_symbols_RC
  16604. # The commands to list exported symbols.
  16605. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16606. # The commands to extract the exported symbol list from a shared archive.
  16607. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16608. # Symbols that should not be listed in the preloaded symbols.
  16609. exclude_expsyms=$lt_exclude_expsyms_RC
  16610. # Symbols that must always be exported.
  16611. include_expsyms=$lt_include_expsyms_RC
  16612. # ### END LIBTOOL TAG CONFIG: $tagname
  16613. __EOF__
  16614. else
  16615. # If there is no Makefile yet, we rely on a make rule to execute
  16616. # `config.status --recheck' to rerun these tests and create the
  16617. # libtool script then.
  16618. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16619. if test -f "$ltmain_in"; then
  16620. test -f Makefile && make "$ltmain"
  16621. fi
  16622. fi
  16623. ac_ext=c
  16624. ac_cpp='$CPP $CPPFLAGS'
  16625. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16626. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16627. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16628. CC="$lt_save_CC"
  16629. ;;
  16630. *)
  16631. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16632. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16633. { (exit 1); exit 1; }; }
  16634. ;;
  16635. esac
  16636. # Append the new tag name to the list of available tags.
  16637. if test -n "$tagname" ; then
  16638. available_tags="$available_tags $tagname"
  16639. fi
  16640. fi
  16641. done
  16642. IFS="$lt_save_ifs"
  16643. # Now substitute the updated list of available tags.
  16644. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16645. mv "${ofile}T" "$ofile"
  16646. chmod +x "$ofile"
  16647. else
  16648. rm -f "${ofile}T"
  16649. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16650. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16651. { (exit 1); exit 1; }; }
  16652. fi
  16653. fi
  16654. # This can be used to rebuild libtool when needed
  16655. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16656. # Always use our own libtool.
  16657. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16658. # Prevent multiple expansion
  16659. # Checks for header files.
  16660. ac_header_dirent=no
  16661. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16662. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16663. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16664. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16665. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16666. echo $ECHO_N "(cached) $ECHO_C" >&6
  16667. else
  16668. cat >conftest.$ac_ext <<_ACEOF
  16669. /* confdefs.h. */
  16670. _ACEOF
  16671. cat confdefs.h >>conftest.$ac_ext
  16672. cat >>conftest.$ac_ext <<_ACEOF
  16673. /* end confdefs.h. */
  16674. #include <sys/types.h>
  16675. #include <$ac_hdr>
  16676. int
  16677. main ()
  16678. {
  16679. if ((DIR *) 0)
  16680. return 0;
  16681. ;
  16682. return 0;
  16683. }
  16684. _ACEOF
  16685. rm -f conftest.$ac_objext
  16686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16687. (eval $ac_compile) 2>conftest.er1
  16688. ac_status=$?
  16689. grep -v '^ *+' conftest.er1 >conftest.err
  16690. rm -f conftest.er1
  16691. cat conftest.err >&5
  16692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16693. (exit $ac_status); } &&
  16694. { ac_try='test -z "$ac_c_werror_flag"
  16695. || test ! -s conftest.err'
  16696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16697. (eval $ac_try) 2>&5
  16698. ac_status=$?
  16699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16700. (exit $ac_status); }; } &&
  16701. { ac_try='test -s conftest.$ac_objext'
  16702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16703. (eval $ac_try) 2>&5
  16704. ac_status=$?
  16705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16706. (exit $ac_status); }; }; then
  16707. eval "$as_ac_Header=yes"
  16708. else
  16709. echo "$as_me: failed program was:" >&5
  16710. sed 's/^/| /' conftest.$ac_ext >&5
  16711. eval "$as_ac_Header=no"
  16712. fi
  16713. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16714. fi
  16715. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16716. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16717. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16718. cat >>confdefs.h <<_ACEOF
  16719. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16720. _ACEOF
  16721. ac_header_dirent=$ac_hdr; break
  16722. fi
  16723. done
  16724. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16725. if test $ac_header_dirent = dirent.h; then
  16726. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16727. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16728. if test "${ac_cv_search_opendir+set}" = set; then
  16729. echo $ECHO_N "(cached) $ECHO_C" >&6
  16730. else
  16731. ac_func_search_save_LIBS=$LIBS
  16732. ac_cv_search_opendir=no
  16733. cat >conftest.$ac_ext <<_ACEOF
  16734. /* confdefs.h. */
  16735. _ACEOF
  16736. cat confdefs.h >>conftest.$ac_ext
  16737. cat >>conftest.$ac_ext <<_ACEOF
  16738. /* end confdefs.h. */
  16739. /* Override any gcc2 internal prototype to avoid an error. */
  16740. #ifdef __cplusplus
  16741. extern "C"
  16742. #endif
  16743. /* We use char because int might match the return type of a gcc2
  16744. builtin and then its argument prototype would still apply. */
  16745. char opendir ();
  16746. int
  16747. main ()
  16748. {
  16749. opendir ();
  16750. ;
  16751. return 0;
  16752. }
  16753. _ACEOF
  16754. rm -f conftest.$ac_objext conftest$ac_exeext
  16755. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16756. (eval $ac_link) 2>conftest.er1
  16757. ac_status=$?
  16758. grep -v '^ *+' conftest.er1 >conftest.err
  16759. rm -f conftest.er1
  16760. cat conftest.err >&5
  16761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16762. (exit $ac_status); } &&
  16763. { ac_try='test -z "$ac_c_werror_flag"
  16764. || test ! -s conftest.err'
  16765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16766. (eval $ac_try) 2>&5
  16767. ac_status=$?
  16768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16769. (exit $ac_status); }; } &&
  16770. { ac_try='test -s conftest$ac_exeext'
  16771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16772. (eval $ac_try) 2>&5
  16773. ac_status=$?
  16774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16775. (exit $ac_status); }; }; then
  16776. ac_cv_search_opendir="none required"
  16777. else
  16778. echo "$as_me: failed program was:" >&5
  16779. sed 's/^/| /' conftest.$ac_ext >&5
  16780. fi
  16781. rm -f conftest.err conftest.$ac_objext \
  16782. conftest$ac_exeext conftest.$ac_ext
  16783. if test "$ac_cv_search_opendir" = no; then
  16784. for ac_lib in dir; do
  16785. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16786. cat >conftest.$ac_ext <<_ACEOF
  16787. /* confdefs.h. */
  16788. _ACEOF
  16789. cat confdefs.h >>conftest.$ac_ext
  16790. cat >>conftest.$ac_ext <<_ACEOF
  16791. /* end confdefs.h. */
  16792. /* Override any gcc2 internal prototype to avoid an error. */
  16793. #ifdef __cplusplus
  16794. extern "C"
  16795. #endif
  16796. /* We use char because int might match the return type of a gcc2
  16797. builtin and then its argument prototype would still apply. */
  16798. char opendir ();
  16799. int
  16800. main ()
  16801. {
  16802. opendir ();
  16803. ;
  16804. return 0;
  16805. }
  16806. _ACEOF
  16807. rm -f conftest.$ac_objext conftest$ac_exeext
  16808. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16809. (eval $ac_link) 2>conftest.er1
  16810. ac_status=$?
  16811. grep -v '^ *+' conftest.er1 >conftest.err
  16812. rm -f conftest.er1
  16813. cat conftest.err >&5
  16814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16815. (exit $ac_status); } &&
  16816. { ac_try='test -z "$ac_c_werror_flag"
  16817. || test ! -s conftest.err'
  16818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16819. (eval $ac_try) 2>&5
  16820. ac_status=$?
  16821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16822. (exit $ac_status); }; } &&
  16823. { ac_try='test -s conftest$ac_exeext'
  16824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16825. (eval $ac_try) 2>&5
  16826. ac_status=$?
  16827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16828. (exit $ac_status); }; }; then
  16829. ac_cv_search_opendir="-l$ac_lib"
  16830. break
  16831. else
  16832. echo "$as_me: failed program was:" >&5
  16833. sed 's/^/| /' conftest.$ac_ext >&5
  16834. fi
  16835. rm -f conftest.err conftest.$ac_objext \
  16836. conftest$ac_exeext conftest.$ac_ext
  16837. done
  16838. fi
  16839. LIBS=$ac_func_search_save_LIBS
  16840. fi
  16841. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16842. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16843. if test "$ac_cv_search_opendir" != no; then
  16844. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16845. fi
  16846. else
  16847. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16848. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16849. if test "${ac_cv_search_opendir+set}" = set; then
  16850. echo $ECHO_N "(cached) $ECHO_C" >&6
  16851. else
  16852. ac_func_search_save_LIBS=$LIBS
  16853. ac_cv_search_opendir=no
  16854. cat >conftest.$ac_ext <<_ACEOF
  16855. /* confdefs.h. */
  16856. _ACEOF
  16857. cat confdefs.h >>conftest.$ac_ext
  16858. cat >>conftest.$ac_ext <<_ACEOF
  16859. /* end confdefs.h. */
  16860. /* Override any gcc2 internal prototype to avoid an error. */
  16861. #ifdef __cplusplus
  16862. extern "C"
  16863. #endif
  16864. /* We use char because int might match the return type of a gcc2
  16865. builtin and then its argument prototype would still apply. */
  16866. char opendir ();
  16867. int
  16868. main ()
  16869. {
  16870. opendir ();
  16871. ;
  16872. return 0;
  16873. }
  16874. _ACEOF
  16875. rm -f conftest.$ac_objext conftest$ac_exeext
  16876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16877. (eval $ac_link) 2>conftest.er1
  16878. ac_status=$?
  16879. grep -v '^ *+' conftest.er1 >conftest.err
  16880. rm -f conftest.er1
  16881. cat conftest.err >&5
  16882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16883. (exit $ac_status); } &&
  16884. { ac_try='test -z "$ac_c_werror_flag"
  16885. || test ! -s conftest.err'
  16886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16887. (eval $ac_try) 2>&5
  16888. ac_status=$?
  16889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16890. (exit $ac_status); }; } &&
  16891. { ac_try='test -s conftest$ac_exeext'
  16892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16893. (eval $ac_try) 2>&5
  16894. ac_status=$?
  16895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16896. (exit $ac_status); }; }; then
  16897. ac_cv_search_opendir="none required"
  16898. else
  16899. echo "$as_me: failed program was:" >&5
  16900. sed 's/^/| /' conftest.$ac_ext >&5
  16901. fi
  16902. rm -f conftest.err conftest.$ac_objext \
  16903. conftest$ac_exeext conftest.$ac_ext
  16904. if test "$ac_cv_search_opendir" = no; then
  16905. for ac_lib in x; do
  16906. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16907. cat >conftest.$ac_ext <<_ACEOF
  16908. /* confdefs.h. */
  16909. _ACEOF
  16910. cat confdefs.h >>conftest.$ac_ext
  16911. cat >>conftest.$ac_ext <<_ACEOF
  16912. /* end confdefs.h. */
  16913. /* Override any gcc2 internal prototype to avoid an error. */
  16914. #ifdef __cplusplus
  16915. extern "C"
  16916. #endif
  16917. /* We use char because int might match the return type of a gcc2
  16918. builtin and then its argument prototype would still apply. */
  16919. char opendir ();
  16920. int
  16921. main ()
  16922. {
  16923. opendir ();
  16924. ;
  16925. return 0;
  16926. }
  16927. _ACEOF
  16928. rm -f conftest.$ac_objext conftest$ac_exeext
  16929. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16930. (eval $ac_link) 2>conftest.er1
  16931. ac_status=$?
  16932. grep -v '^ *+' conftest.er1 >conftest.err
  16933. rm -f conftest.er1
  16934. cat conftest.err >&5
  16935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16936. (exit $ac_status); } &&
  16937. { ac_try='test -z "$ac_c_werror_flag"
  16938. || test ! -s conftest.err'
  16939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16940. (eval $ac_try) 2>&5
  16941. ac_status=$?
  16942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16943. (exit $ac_status); }; } &&
  16944. { ac_try='test -s conftest$ac_exeext'
  16945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16946. (eval $ac_try) 2>&5
  16947. ac_status=$?
  16948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16949. (exit $ac_status); }; }; then
  16950. ac_cv_search_opendir="-l$ac_lib"
  16951. break
  16952. else
  16953. echo "$as_me: failed program was:" >&5
  16954. sed 's/^/| /' conftest.$ac_ext >&5
  16955. fi
  16956. rm -f conftest.err conftest.$ac_objext \
  16957. conftest$ac_exeext conftest.$ac_ext
  16958. done
  16959. fi
  16960. LIBS=$ac_func_search_save_LIBS
  16961. fi
  16962. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16963. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16964. if test "$ac_cv_search_opendir" != no; then
  16965. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16966. fi
  16967. fi
  16968. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  16969. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  16970. if test "${ac_cv_header_stdc+set}" = set; then
  16971. echo $ECHO_N "(cached) $ECHO_C" >&6
  16972. else
  16973. cat >conftest.$ac_ext <<_ACEOF
  16974. /* confdefs.h. */
  16975. _ACEOF
  16976. cat confdefs.h >>conftest.$ac_ext
  16977. cat >>conftest.$ac_ext <<_ACEOF
  16978. /* end confdefs.h. */
  16979. #include <stdlib.h>
  16980. #include <stdarg.h>
  16981. #include <string.h>
  16982. #include <float.h>
  16983. int
  16984. main ()
  16985. {
  16986. ;
  16987. return 0;
  16988. }
  16989. _ACEOF
  16990. rm -f conftest.$ac_objext
  16991. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16992. (eval $ac_compile) 2>conftest.er1
  16993. ac_status=$?
  16994. grep -v '^ *+' conftest.er1 >conftest.err
  16995. rm -f conftest.er1
  16996. cat conftest.err >&5
  16997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16998. (exit $ac_status); } &&
  16999. { ac_try='test -z "$ac_c_werror_flag"
  17000. || test ! -s conftest.err'
  17001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17002. (eval $ac_try) 2>&5
  17003. ac_status=$?
  17004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17005. (exit $ac_status); }; } &&
  17006. { ac_try='test -s conftest.$ac_objext'
  17007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17008. (eval $ac_try) 2>&5
  17009. ac_status=$?
  17010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17011. (exit $ac_status); }; }; then
  17012. ac_cv_header_stdc=yes
  17013. else
  17014. echo "$as_me: failed program was:" >&5
  17015. sed 's/^/| /' conftest.$ac_ext >&5
  17016. ac_cv_header_stdc=no
  17017. fi
  17018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17019. if test $ac_cv_header_stdc = yes; then
  17020. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17021. cat >conftest.$ac_ext <<_ACEOF
  17022. /* confdefs.h. */
  17023. _ACEOF
  17024. cat confdefs.h >>conftest.$ac_ext
  17025. cat >>conftest.$ac_ext <<_ACEOF
  17026. /* end confdefs.h. */
  17027. #include <string.h>
  17028. _ACEOF
  17029. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17030. $EGREP "memchr" >/dev/null 2>&1; then
  17031. :
  17032. else
  17033. ac_cv_header_stdc=no
  17034. fi
  17035. rm -f conftest*
  17036. fi
  17037. if test $ac_cv_header_stdc = yes; then
  17038. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17039. cat >conftest.$ac_ext <<_ACEOF
  17040. /* confdefs.h. */
  17041. _ACEOF
  17042. cat confdefs.h >>conftest.$ac_ext
  17043. cat >>conftest.$ac_ext <<_ACEOF
  17044. /* end confdefs.h. */
  17045. #include <stdlib.h>
  17046. _ACEOF
  17047. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17048. $EGREP "free" >/dev/null 2>&1; then
  17049. :
  17050. else
  17051. ac_cv_header_stdc=no
  17052. fi
  17053. rm -f conftest*
  17054. fi
  17055. if test $ac_cv_header_stdc = yes; then
  17056. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17057. if test "$cross_compiling" = yes; then
  17058. :
  17059. else
  17060. cat >conftest.$ac_ext <<_ACEOF
  17061. /* confdefs.h. */
  17062. _ACEOF
  17063. cat confdefs.h >>conftest.$ac_ext
  17064. cat >>conftest.$ac_ext <<_ACEOF
  17065. /* end confdefs.h. */
  17066. #include <ctype.h>
  17067. #if ((' ' & 0x0FF) == 0x020)
  17068. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17069. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17070. #else
  17071. # define ISLOWER(c) \
  17072. (('a' <= (c) && (c) <= 'i') \
  17073. || ('j' <= (c) && (c) <= 'r') \
  17074. || ('s' <= (c) && (c) <= 'z'))
  17075. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17076. #endif
  17077. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17078. int
  17079. main ()
  17080. {
  17081. int i;
  17082. for (i = 0; i < 256; i++)
  17083. if (XOR (islower (i), ISLOWER (i))
  17084. || toupper (i) != TOUPPER (i))
  17085. exit(2);
  17086. exit (0);
  17087. }
  17088. _ACEOF
  17089. rm -f conftest$ac_exeext
  17090. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17091. (eval $ac_link) 2>&5
  17092. ac_status=$?
  17093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17094. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17096. (eval $ac_try) 2>&5
  17097. ac_status=$?
  17098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17099. (exit $ac_status); }; }; then
  17100. :
  17101. else
  17102. echo "$as_me: program exited with status $ac_status" >&5
  17103. echo "$as_me: failed program was:" >&5
  17104. sed 's/^/| /' conftest.$ac_ext >&5
  17105. ( exit $ac_status )
  17106. ac_cv_header_stdc=no
  17107. fi
  17108. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17109. fi
  17110. fi
  17111. fi
  17112. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17113. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17114. if test $ac_cv_header_stdc = yes; then
  17115. cat >>confdefs.h <<\_ACEOF
  17116. #define STDC_HEADERS 1
  17117. _ACEOF
  17118. fi
  17119. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17120. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17121. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17122. echo $ECHO_N "(cached) $ECHO_C" >&6
  17123. else
  17124. cat >conftest.$ac_ext <<_ACEOF
  17125. /* confdefs.h. */
  17126. _ACEOF
  17127. cat confdefs.h >>conftest.$ac_ext
  17128. cat >>conftest.$ac_ext <<_ACEOF
  17129. /* end confdefs.h. */
  17130. #include <sys/types.h>
  17131. #include <sys/wait.h>
  17132. #ifndef WEXITSTATUS
  17133. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17134. #endif
  17135. #ifndef WIFEXITED
  17136. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17137. #endif
  17138. int
  17139. main ()
  17140. {
  17141. int s;
  17142. wait (&s);
  17143. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17144. ;
  17145. return 0;
  17146. }
  17147. _ACEOF
  17148. rm -f conftest.$ac_objext
  17149. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17150. (eval $ac_compile) 2>conftest.er1
  17151. ac_status=$?
  17152. grep -v '^ *+' conftest.er1 >conftest.err
  17153. rm -f conftest.er1
  17154. cat conftest.err >&5
  17155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17156. (exit $ac_status); } &&
  17157. { ac_try='test -z "$ac_c_werror_flag"
  17158. || test ! -s conftest.err'
  17159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17160. (eval $ac_try) 2>&5
  17161. ac_status=$?
  17162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17163. (exit $ac_status); }; } &&
  17164. { ac_try='test -s conftest.$ac_objext'
  17165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17166. (eval $ac_try) 2>&5
  17167. ac_status=$?
  17168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17169. (exit $ac_status); }; }; then
  17170. ac_cv_header_sys_wait_h=yes
  17171. else
  17172. echo "$as_me: failed program was:" >&5
  17173. sed 's/^/| /' conftest.$ac_ext >&5
  17174. ac_cv_header_sys_wait_h=no
  17175. fi
  17176. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17177. fi
  17178. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17179. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17180. if test $ac_cv_header_sys_wait_h = yes; then
  17181. cat >>confdefs.h <<\_ACEOF
  17182. #define HAVE_SYS_WAIT_H 1
  17183. _ACEOF
  17184. fi
  17185. for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h
  17186. do
  17187. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17188. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17189. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17190. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17191. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17192. echo $ECHO_N "(cached) $ECHO_C" >&6
  17193. fi
  17194. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17195. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17196. else
  17197. # Is the header compilable?
  17198. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17199. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17200. cat >conftest.$ac_ext <<_ACEOF
  17201. /* confdefs.h. */
  17202. _ACEOF
  17203. cat confdefs.h >>conftest.$ac_ext
  17204. cat >>conftest.$ac_ext <<_ACEOF
  17205. /* end confdefs.h. */
  17206. $ac_includes_default
  17207. #include <$ac_header>
  17208. _ACEOF
  17209. rm -f conftest.$ac_objext
  17210. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17211. (eval $ac_compile) 2>conftest.er1
  17212. ac_status=$?
  17213. grep -v '^ *+' conftest.er1 >conftest.err
  17214. rm -f conftest.er1
  17215. cat conftest.err >&5
  17216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17217. (exit $ac_status); } &&
  17218. { ac_try='test -z "$ac_c_werror_flag"
  17219. || test ! -s conftest.err'
  17220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17221. (eval $ac_try) 2>&5
  17222. ac_status=$?
  17223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17224. (exit $ac_status); }; } &&
  17225. { ac_try='test -s conftest.$ac_objext'
  17226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17227. (eval $ac_try) 2>&5
  17228. ac_status=$?
  17229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17230. (exit $ac_status); }; }; then
  17231. ac_header_compiler=yes
  17232. else
  17233. echo "$as_me: failed program was:" >&5
  17234. sed 's/^/| /' conftest.$ac_ext >&5
  17235. ac_header_compiler=no
  17236. fi
  17237. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17238. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17239. echo "${ECHO_T}$ac_header_compiler" >&6
  17240. # Is the header present?
  17241. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17242. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17243. cat >conftest.$ac_ext <<_ACEOF
  17244. /* confdefs.h. */
  17245. _ACEOF
  17246. cat confdefs.h >>conftest.$ac_ext
  17247. cat >>conftest.$ac_ext <<_ACEOF
  17248. /* end confdefs.h. */
  17249. #include <$ac_header>
  17250. _ACEOF
  17251. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17252. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17253. ac_status=$?
  17254. grep -v '^ *+' conftest.er1 >conftest.err
  17255. rm -f conftest.er1
  17256. cat conftest.err >&5
  17257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17258. (exit $ac_status); } >/dev/null; then
  17259. if test -s conftest.err; then
  17260. ac_cpp_err=$ac_c_preproc_warn_flag
  17261. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17262. else
  17263. ac_cpp_err=
  17264. fi
  17265. else
  17266. ac_cpp_err=yes
  17267. fi
  17268. if test -z "$ac_cpp_err"; then
  17269. ac_header_preproc=yes
  17270. else
  17271. echo "$as_me: failed program was:" >&5
  17272. sed 's/^/| /' conftest.$ac_ext >&5
  17273. ac_header_preproc=no
  17274. fi
  17275. rm -f conftest.err conftest.$ac_ext
  17276. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17277. echo "${ECHO_T}$ac_header_preproc" >&6
  17278. # So? What about this header?
  17279. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17280. yes:no: )
  17281. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17282. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17283. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17284. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17285. ac_header_preproc=yes
  17286. ;;
  17287. no:yes:* )
  17288. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17289. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17290. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17291. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17292. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17293. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17294. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17295. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17296. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17297. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17298. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17299. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17300. (
  17301. cat <<\_ASBOX
  17302. ## ------------------------------------------ ##
  17303. ## Report this to http://bugzilla.redhat.com/ ##
  17304. ## ------------------------------------------ ##
  17305. _ASBOX
  17306. ) |
  17307. sed "s/^/$as_me: WARNING: /" >&2
  17308. ;;
  17309. esac
  17310. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17311. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17312. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17313. echo $ECHO_N "(cached) $ECHO_C" >&6
  17314. else
  17315. eval "$as_ac_Header=\$ac_header_preproc"
  17316. fi
  17317. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17318. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17319. fi
  17320. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17321. cat >>confdefs.h <<_ACEOF
  17322. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17323. _ACEOF
  17324. fi
  17325. done
  17326. # Checks for typedefs, structures, and compiler characteristics.
  17327. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17328. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17329. if test "${ac_cv_header_stat_broken+set}" = set; then
  17330. echo $ECHO_N "(cached) $ECHO_C" >&6
  17331. else
  17332. cat >conftest.$ac_ext <<_ACEOF
  17333. /* confdefs.h. */
  17334. _ACEOF
  17335. cat confdefs.h >>conftest.$ac_ext
  17336. cat >>conftest.$ac_ext <<_ACEOF
  17337. /* end confdefs.h. */
  17338. #include <sys/types.h>
  17339. #include <sys/stat.h>
  17340. #if defined(S_ISBLK) && defined(S_IFDIR)
  17341. # if S_ISBLK (S_IFDIR)
  17342. You lose.
  17343. # endif
  17344. #endif
  17345. #if defined(S_ISBLK) && defined(S_IFCHR)
  17346. # if S_ISBLK (S_IFCHR)
  17347. You lose.
  17348. # endif
  17349. #endif
  17350. #if defined(S_ISLNK) && defined(S_IFREG)
  17351. # if S_ISLNK (S_IFREG)
  17352. You lose.
  17353. # endif
  17354. #endif
  17355. #if defined(S_ISSOCK) && defined(S_IFREG)
  17356. # if S_ISSOCK (S_IFREG)
  17357. You lose.
  17358. # endif
  17359. #endif
  17360. _ACEOF
  17361. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17362. $EGREP "You lose" >/dev/null 2>&1; then
  17363. ac_cv_header_stat_broken=yes
  17364. else
  17365. ac_cv_header_stat_broken=no
  17366. fi
  17367. rm -f conftest*
  17368. fi
  17369. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17370. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17371. if test $ac_cv_header_stat_broken = yes; then
  17372. cat >>confdefs.h <<\_ACEOF
  17373. #define STAT_MACROS_BROKEN 1
  17374. _ACEOF
  17375. fi
  17376. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17377. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17378. if test "${ac_cv_c_const+set}" = set; then
  17379. echo $ECHO_N "(cached) $ECHO_C" >&6
  17380. else
  17381. cat >conftest.$ac_ext <<_ACEOF
  17382. /* confdefs.h. */
  17383. _ACEOF
  17384. cat confdefs.h >>conftest.$ac_ext
  17385. cat >>conftest.$ac_ext <<_ACEOF
  17386. /* end confdefs.h. */
  17387. int
  17388. main ()
  17389. {
  17390. /* FIXME: Include the comments suggested by Paul. */
  17391. #ifndef __cplusplus
  17392. /* Ultrix mips cc rejects this. */
  17393. typedef int charset[2];
  17394. const charset x;
  17395. /* SunOS 4.1.1 cc rejects this. */
  17396. char const *const *ccp;
  17397. char **p;
  17398. /* NEC SVR4.0.2 mips cc rejects this. */
  17399. struct point {int x, y;};
  17400. static struct point const zero = {0,0};
  17401. /* AIX XL C 1.02.0.0 rejects this.
  17402. It does not let you subtract one const X* pointer from another in
  17403. an arm of an if-expression whose if-part is not a constant
  17404. expression */
  17405. const char *g = "string";
  17406. ccp = &g + (g ? g-g : 0);
  17407. /* HPUX 7.0 cc rejects these. */
  17408. ++ccp;
  17409. p = (char**) ccp;
  17410. ccp = (char const *const *) p;
  17411. { /* SCO 3.2v4 cc rejects this. */
  17412. char *t;
  17413. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17414. *t++ = 0;
  17415. }
  17416. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17417. int x[] = {25, 17};
  17418. const int *foo = &x[0];
  17419. ++foo;
  17420. }
  17421. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17422. typedef const int *iptr;
  17423. iptr p = 0;
  17424. ++p;
  17425. }
  17426. { /* AIX XL C 1.02.0.0 rejects this saying
  17427. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17428. struct s { int j; const int *ap[3]; };
  17429. struct s *b; b->j = 5;
  17430. }
  17431. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17432. const int foo = 10;
  17433. }
  17434. #endif
  17435. ;
  17436. return 0;
  17437. }
  17438. _ACEOF
  17439. rm -f conftest.$ac_objext
  17440. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17441. (eval $ac_compile) 2>conftest.er1
  17442. ac_status=$?
  17443. grep -v '^ *+' conftest.er1 >conftest.err
  17444. rm -f conftest.er1
  17445. cat conftest.err >&5
  17446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17447. (exit $ac_status); } &&
  17448. { ac_try='test -z "$ac_c_werror_flag"
  17449. || test ! -s conftest.err'
  17450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17451. (eval $ac_try) 2>&5
  17452. ac_status=$?
  17453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17454. (exit $ac_status); }; } &&
  17455. { ac_try='test -s conftest.$ac_objext'
  17456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17457. (eval $ac_try) 2>&5
  17458. ac_status=$?
  17459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17460. (exit $ac_status); }; }; then
  17461. ac_cv_c_const=yes
  17462. else
  17463. echo "$as_me: failed program was:" >&5
  17464. sed 's/^/| /' conftest.$ac_ext >&5
  17465. ac_cv_c_const=no
  17466. fi
  17467. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17468. fi
  17469. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17470. echo "${ECHO_T}$ac_cv_c_const" >&6
  17471. if test $ac_cv_c_const = no; then
  17472. cat >>confdefs.h <<\_ACEOF
  17473. #define const
  17474. _ACEOF
  17475. fi
  17476. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17477. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17478. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17479. echo $ECHO_N "(cached) $ECHO_C" >&6
  17480. else
  17481. cat >conftest.$ac_ext <<_ACEOF
  17482. /* confdefs.h. */
  17483. _ACEOF
  17484. cat confdefs.h >>conftest.$ac_ext
  17485. cat >>conftest.$ac_ext <<_ACEOF
  17486. /* end confdefs.h. */
  17487. #include <stdbool.h>
  17488. #ifndef bool
  17489. # error bool is not defined
  17490. #endif
  17491. #ifndef false
  17492. # error false is not defined
  17493. #endif
  17494. #if false
  17495. # error false is not 0
  17496. #endif
  17497. #ifndef true
  17498. # error true is not defined
  17499. #endif
  17500. #if true != 1
  17501. # error true is not 1
  17502. #endif
  17503. #ifndef __bool_true_false_are_defined
  17504. # error __bool_true_false_are_defined is not defined
  17505. #endif
  17506. struct s { _Bool s: 1; _Bool t; } s;
  17507. char a[true == 1 ? 1 : -1];
  17508. char b[false == 0 ? 1 : -1];
  17509. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17510. char d[(bool) -0.5 == true ? 1 : -1];
  17511. bool e = &s;
  17512. char f[(_Bool) -0.0 == false ? 1 : -1];
  17513. char g[true];
  17514. char h[sizeof (_Bool)];
  17515. char i[sizeof s.t];
  17516. int
  17517. main ()
  17518. {
  17519. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17520. ;
  17521. return 0;
  17522. }
  17523. _ACEOF
  17524. rm -f conftest.$ac_objext
  17525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17526. (eval $ac_compile) 2>conftest.er1
  17527. ac_status=$?
  17528. grep -v '^ *+' conftest.er1 >conftest.err
  17529. rm -f conftest.er1
  17530. cat conftest.err >&5
  17531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17532. (exit $ac_status); } &&
  17533. { ac_try='test -z "$ac_c_werror_flag"
  17534. || test ! -s conftest.err'
  17535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17536. (eval $ac_try) 2>&5
  17537. ac_status=$?
  17538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17539. (exit $ac_status); }; } &&
  17540. { ac_try='test -s conftest.$ac_objext'
  17541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17542. (eval $ac_try) 2>&5
  17543. ac_status=$?
  17544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17545. (exit $ac_status); }; }; then
  17546. ac_cv_header_stdbool_h=yes
  17547. else
  17548. echo "$as_me: failed program was:" >&5
  17549. sed 's/^/| /' conftest.$ac_ext >&5
  17550. ac_cv_header_stdbool_h=no
  17551. fi
  17552. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17553. fi
  17554. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17555. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17556. echo "$as_me:$LINENO: checking for _Bool" >&5
  17557. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17558. if test "${ac_cv_type__Bool+set}" = set; then
  17559. echo $ECHO_N "(cached) $ECHO_C" >&6
  17560. else
  17561. cat >conftest.$ac_ext <<_ACEOF
  17562. /* confdefs.h. */
  17563. _ACEOF
  17564. cat confdefs.h >>conftest.$ac_ext
  17565. cat >>conftest.$ac_ext <<_ACEOF
  17566. /* end confdefs.h. */
  17567. $ac_includes_default
  17568. int
  17569. main ()
  17570. {
  17571. if ((_Bool *) 0)
  17572. return 0;
  17573. if (sizeof (_Bool))
  17574. return 0;
  17575. ;
  17576. return 0;
  17577. }
  17578. _ACEOF
  17579. rm -f conftest.$ac_objext
  17580. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17581. (eval $ac_compile) 2>conftest.er1
  17582. ac_status=$?
  17583. grep -v '^ *+' conftest.er1 >conftest.err
  17584. rm -f conftest.er1
  17585. cat conftest.err >&5
  17586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17587. (exit $ac_status); } &&
  17588. { ac_try='test -z "$ac_c_werror_flag"
  17589. || test ! -s conftest.err'
  17590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17591. (eval $ac_try) 2>&5
  17592. ac_status=$?
  17593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17594. (exit $ac_status); }; } &&
  17595. { ac_try='test -s conftest.$ac_objext'
  17596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17597. (eval $ac_try) 2>&5
  17598. ac_status=$?
  17599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17600. (exit $ac_status); }; }; then
  17601. ac_cv_type__Bool=yes
  17602. else
  17603. echo "$as_me: failed program was:" >&5
  17604. sed 's/^/| /' conftest.$ac_ext >&5
  17605. ac_cv_type__Bool=no
  17606. fi
  17607. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17608. fi
  17609. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17610. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17611. if test $ac_cv_type__Bool = yes; then
  17612. cat >>confdefs.h <<_ACEOF
  17613. #define HAVE__BOOL 1
  17614. _ACEOF
  17615. fi
  17616. if test $ac_cv_header_stdbool_h = yes; then
  17617. cat >>confdefs.h <<\_ACEOF
  17618. #define HAVE_STDBOOL_H 1
  17619. _ACEOF
  17620. fi
  17621. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17622. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17623. if test "${ac_cv_type_uid_t+set}" = set; then
  17624. echo $ECHO_N "(cached) $ECHO_C" >&6
  17625. else
  17626. cat >conftest.$ac_ext <<_ACEOF
  17627. /* confdefs.h. */
  17628. _ACEOF
  17629. cat confdefs.h >>conftest.$ac_ext
  17630. cat >>conftest.$ac_ext <<_ACEOF
  17631. /* end confdefs.h. */
  17632. #include <sys/types.h>
  17633. _ACEOF
  17634. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17635. $EGREP "uid_t" >/dev/null 2>&1; then
  17636. ac_cv_type_uid_t=yes
  17637. else
  17638. ac_cv_type_uid_t=no
  17639. fi
  17640. rm -f conftest*
  17641. fi
  17642. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17643. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17644. if test $ac_cv_type_uid_t = no; then
  17645. cat >>confdefs.h <<\_ACEOF
  17646. #define uid_t int
  17647. _ACEOF
  17648. cat >>confdefs.h <<\_ACEOF
  17649. #define gid_t int
  17650. _ACEOF
  17651. fi
  17652. echo "$as_me:$LINENO: checking for pid_t" >&5
  17653. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17654. if test "${ac_cv_type_pid_t+set}" = set; then
  17655. echo $ECHO_N "(cached) $ECHO_C" >&6
  17656. else
  17657. cat >conftest.$ac_ext <<_ACEOF
  17658. /* confdefs.h. */
  17659. _ACEOF
  17660. cat confdefs.h >>conftest.$ac_ext
  17661. cat >>conftest.$ac_ext <<_ACEOF
  17662. /* end confdefs.h. */
  17663. $ac_includes_default
  17664. int
  17665. main ()
  17666. {
  17667. if ((pid_t *) 0)
  17668. return 0;
  17669. if (sizeof (pid_t))
  17670. return 0;
  17671. ;
  17672. return 0;
  17673. }
  17674. _ACEOF
  17675. rm -f conftest.$ac_objext
  17676. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17677. (eval $ac_compile) 2>conftest.er1
  17678. ac_status=$?
  17679. grep -v '^ *+' conftest.er1 >conftest.err
  17680. rm -f conftest.er1
  17681. cat conftest.err >&5
  17682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17683. (exit $ac_status); } &&
  17684. { ac_try='test -z "$ac_c_werror_flag"
  17685. || test ! -s conftest.err'
  17686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17687. (eval $ac_try) 2>&5
  17688. ac_status=$?
  17689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17690. (exit $ac_status); }; } &&
  17691. { ac_try='test -s conftest.$ac_objext'
  17692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17693. (eval $ac_try) 2>&5
  17694. ac_status=$?
  17695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17696. (exit $ac_status); }; }; then
  17697. ac_cv_type_pid_t=yes
  17698. else
  17699. echo "$as_me: failed program was:" >&5
  17700. sed 's/^/| /' conftest.$ac_ext >&5
  17701. ac_cv_type_pid_t=no
  17702. fi
  17703. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17704. fi
  17705. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17706. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17707. if test $ac_cv_type_pid_t = yes; then
  17708. :
  17709. else
  17710. cat >>confdefs.h <<_ACEOF
  17711. #define pid_t int
  17712. _ACEOF
  17713. fi
  17714. echo "$as_me:$LINENO: checking for size_t" >&5
  17715. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17716. if test "${ac_cv_type_size_t+set}" = set; then
  17717. echo $ECHO_N "(cached) $ECHO_C" >&6
  17718. else
  17719. cat >conftest.$ac_ext <<_ACEOF
  17720. /* confdefs.h. */
  17721. _ACEOF
  17722. cat confdefs.h >>conftest.$ac_ext
  17723. cat >>conftest.$ac_ext <<_ACEOF
  17724. /* end confdefs.h. */
  17725. $ac_includes_default
  17726. int
  17727. main ()
  17728. {
  17729. if ((size_t *) 0)
  17730. return 0;
  17731. if (sizeof (size_t))
  17732. return 0;
  17733. ;
  17734. return 0;
  17735. }
  17736. _ACEOF
  17737. rm -f conftest.$ac_objext
  17738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17739. (eval $ac_compile) 2>conftest.er1
  17740. ac_status=$?
  17741. grep -v '^ *+' conftest.er1 >conftest.err
  17742. rm -f conftest.er1
  17743. cat conftest.err >&5
  17744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17745. (exit $ac_status); } &&
  17746. { ac_try='test -z "$ac_c_werror_flag"
  17747. || test ! -s conftest.err'
  17748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17749. (eval $ac_try) 2>&5
  17750. ac_status=$?
  17751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17752. (exit $ac_status); }; } &&
  17753. { ac_try='test -s conftest.$ac_objext'
  17754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17755. (eval $ac_try) 2>&5
  17756. ac_status=$?
  17757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17758. (exit $ac_status); }; }; then
  17759. ac_cv_type_size_t=yes
  17760. else
  17761. echo "$as_me: failed program was:" >&5
  17762. sed 's/^/| /' conftest.$ac_ext >&5
  17763. ac_cv_type_size_t=no
  17764. fi
  17765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17766. fi
  17767. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17768. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17769. if test $ac_cv_type_size_t = yes; then
  17770. :
  17771. else
  17772. cat >>confdefs.h <<_ACEOF
  17773. #define size_t unsigned
  17774. _ACEOF
  17775. fi
  17776. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17777. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17778. if test "${ac_cv_header_time+set}" = set; then
  17779. echo $ECHO_N "(cached) $ECHO_C" >&6
  17780. else
  17781. cat >conftest.$ac_ext <<_ACEOF
  17782. /* confdefs.h. */
  17783. _ACEOF
  17784. cat confdefs.h >>conftest.$ac_ext
  17785. cat >>conftest.$ac_ext <<_ACEOF
  17786. /* end confdefs.h. */
  17787. #include <sys/types.h>
  17788. #include <sys/time.h>
  17789. #include <time.h>
  17790. int
  17791. main ()
  17792. {
  17793. if ((struct tm *) 0)
  17794. return 0;
  17795. ;
  17796. return 0;
  17797. }
  17798. _ACEOF
  17799. rm -f conftest.$ac_objext
  17800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17801. (eval $ac_compile) 2>conftest.er1
  17802. ac_status=$?
  17803. grep -v '^ *+' conftest.er1 >conftest.err
  17804. rm -f conftest.er1
  17805. cat conftest.err >&5
  17806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17807. (exit $ac_status); } &&
  17808. { ac_try='test -z "$ac_c_werror_flag"
  17809. || test ! -s conftest.err'
  17810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17811. (eval $ac_try) 2>&5
  17812. ac_status=$?
  17813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17814. (exit $ac_status); }; } &&
  17815. { ac_try='test -s conftest.$ac_objext'
  17816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17817. (eval $ac_try) 2>&5
  17818. ac_status=$?
  17819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17820. (exit $ac_status); }; }; then
  17821. ac_cv_header_time=yes
  17822. else
  17823. echo "$as_me: failed program was:" >&5
  17824. sed 's/^/| /' conftest.$ac_ext >&5
  17825. ac_cv_header_time=no
  17826. fi
  17827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17828. fi
  17829. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17830. echo "${ECHO_T}$ac_cv_header_time" >&6
  17831. if test $ac_cv_header_time = yes; then
  17832. cat >>confdefs.h <<\_ACEOF
  17833. #define TIME_WITH_SYS_TIME 1
  17834. _ACEOF
  17835. fi
  17836. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17837. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17838. if test "${ac_cv_struct_tm+set}" = set; then
  17839. echo $ECHO_N "(cached) $ECHO_C" >&6
  17840. else
  17841. cat >conftest.$ac_ext <<_ACEOF
  17842. /* confdefs.h. */
  17843. _ACEOF
  17844. cat confdefs.h >>conftest.$ac_ext
  17845. cat >>conftest.$ac_ext <<_ACEOF
  17846. /* end confdefs.h. */
  17847. #include <sys/types.h>
  17848. #include <time.h>
  17849. int
  17850. main ()
  17851. {
  17852. struct tm *tp; tp->tm_sec;
  17853. ;
  17854. return 0;
  17855. }
  17856. _ACEOF
  17857. rm -f conftest.$ac_objext
  17858. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17859. (eval $ac_compile) 2>conftest.er1
  17860. ac_status=$?
  17861. grep -v '^ *+' conftest.er1 >conftest.err
  17862. rm -f conftest.er1
  17863. cat conftest.err >&5
  17864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17865. (exit $ac_status); } &&
  17866. { ac_try='test -z "$ac_c_werror_flag"
  17867. || test ! -s conftest.err'
  17868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17869. (eval $ac_try) 2>&5
  17870. ac_status=$?
  17871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17872. (exit $ac_status); }; } &&
  17873. { ac_try='test -s conftest.$ac_objext'
  17874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17875. (eval $ac_try) 2>&5
  17876. ac_status=$?
  17877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17878. (exit $ac_status); }; }; then
  17879. ac_cv_struct_tm=time.h
  17880. else
  17881. echo "$as_me: failed program was:" >&5
  17882. sed 's/^/| /' conftest.$ac_ext >&5
  17883. ac_cv_struct_tm=sys/time.h
  17884. fi
  17885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17886. fi
  17887. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  17888. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  17889. if test $ac_cv_struct_tm = sys/time.h; then
  17890. cat >>confdefs.h <<\_ACEOF
  17891. #define TM_IN_SYS_TIME 1
  17892. _ACEOF
  17893. fi
  17894. # Checks for library functions.
  17895. for ac_header in unistd.h
  17896. do
  17897. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17898. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17899. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17900. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17901. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17902. echo $ECHO_N "(cached) $ECHO_C" >&6
  17903. fi
  17904. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17905. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17906. else
  17907. # Is the header compilable?
  17908. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17909. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17910. cat >conftest.$ac_ext <<_ACEOF
  17911. /* confdefs.h. */
  17912. _ACEOF
  17913. cat confdefs.h >>conftest.$ac_ext
  17914. cat >>conftest.$ac_ext <<_ACEOF
  17915. /* end confdefs.h. */
  17916. $ac_includes_default
  17917. #include <$ac_header>
  17918. _ACEOF
  17919. rm -f conftest.$ac_objext
  17920. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17921. (eval $ac_compile) 2>conftest.er1
  17922. ac_status=$?
  17923. grep -v '^ *+' conftest.er1 >conftest.err
  17924. rm -f conftest.er1
  17925. cat conftest.err >&5
  17926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17927. (exit $ac_status); } &&
  17928. { ac_try='test -z "$ac_c_werror_flag"
  17929. || test ! -s conftest.err'
  17930. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17931. (eval $ac_try) 2>&5
  17932. ac_status=$?
  17933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17934. (exit $ac_status); }; } &&
  17935. { ac_try='test -s conftest.$ac_objext'
  17936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17937. (eval $ac_try) 2>&5
  17938. ac_status=$?
  17939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17940. (exit $ac_status); }; }; then
  17941. ac_header_compiler=yes
  17942. else
  17943. echo "$as_me: failed program was:" >&5
  17944. sed 's/^/| /' conftest.$ac_ext >&5
  17945. ac_header_compiler=no
  17946. fi
  17947. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17948. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17949. echo "${ECHO_T}$ac_header_compiler" >&6
  17950. # Is the header present?
  17951. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17952. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17953. cat >conftest.$ac_ext <<_ACEOF
  17954. /* confdefs.h. */
  17955. _ACEOF
  17956. cat confdefs.h >>conftest.$ac_ext
  17957. cat >>conftest.$ac_ext <<_ACEOF
  17958. /* end confdefs.h. */
  17959. #include <$ac_header>
  17960. _ACEOF
  17961. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17962. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17963. ac_status=$?
  17964. grep -v '^ *+' conftest.er1 >conftest.err
  17965. rm -f conftest.er1
  17966. cat conftest.err >&5
  17967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17968. (exit $ac_status); } >/dev/null; then
  17969. if test -s conftest.err; then
  17970. ac_cpp_err=$ac_c_preproc_warn_flag
  17971. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17972. else
  17973. ac_cpp_err=
  17974. fi
  17975. else
  17976. ac_cpp_err=yes
  17977. fi
  17978. if test -z "$ac_cpp_err"; then
  17979. ac_header_preproc=yes
  17980. else
  17981. echo "$as_me: failed program was:" >&5
  17982. sed 's/^/| /' conftest.$ac_ext >&5
  17983. ac_header_preproc=no
  17984. fi
  17985. rm -f conftest.err conftest.$ac_ext
  17986. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17987. echo "${ECHO_T}$ac_header_preproc" >&6
  17988. # So? What about this header?
  17989. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17990. yes:no: )
  17991. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17992. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17993. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17994. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17995. ac_header_preproc=yes
  17996. ;;
  17997. no:yes:* )
  17998. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17999. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18000. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18001. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18002. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18003. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18004. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18005. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18006. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18007. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18008. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18009. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18010. (
  18011. cat <<\_ASBOX
  18012. ## ------------------------------------------ ##
  18013. ## Report this to http://bugzilla.redhat.com/ ##
  18014. ## ------------------------------------------ ##
  18015. _ASBOX
  18016. ) |
  18017. sed "s/^/$as_me: WARNING: /" >&2
  18018. ;;
  18019. esac
  18020. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18021. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18022. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18023. echo $ECHO_N "(cached) $ECHO_C" >&6
  18024. else
  18025. eval "$as_ac_Header=\$ac_header_preproc"
  18026. fi
  18027. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18028. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18029. fi
  18030. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18031. cat >>confdefs.h <<_ACEOF
  18032. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18033. _ACEOF
  18034. fi
  18035. done
  18036. echo "$as_me:$LINENO: checking for working chown" >&5
  18037. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18038. if test "${ac_cv_func_chown_works+set}" = set; then
  18039. echo $ECHO_N "(cached) $ECHO_C" >&6
  18040. else
  18041. if test "$cross_compiling" = yes; then
  18042. ac_cv_func_chown_works=no
  18043. else
  18044. cat >conftest.$ac_ext <<_ACEOF
  18045. /* confdefs.h. */
  18046. _ACEOF
  18047. cat confdefs.h >>conftest.$ac_ext
  18048. cat >>conftest.$ac_ext <<_ACEOF
  18049. /* end confdefs.h. */
  18050. $ac_includes_default
  18051. #include <fcntl.h>
  18052. int
  18053. main ()
  18054. {
  18055. char *f = "conftest.chown";
  18056. struct stat before, after;
  18057. if (creat (f, 0600) < 0)
  18058. exit (1);
  18059. if (stat (f, &before) < 0)
  18060. exit (1);
  18061. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18062. exit (1);
  18063. if (stat (f, &after) < 0)
  18064. exit (1);
  18065. exit ((before.st_uid == after.st_uid
  18066. && before.st_gid == after.st_gid) ? 0 : 1);
  18067. ;
  18068. return 0;
  18069. }
  18070. _ACEOF
  18071. rm -f conftest$ac_exeext
  18072. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18073. (eval $ac_link) 2>&5
  18074. ac_status=$?
  18075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18076. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18078. (eval $ac_try) 2>&5
  18079. ac_status=$?
  18080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18081. (exit $ac_status); }; }; then
  18082. ac_cv_func_chown_works=yes
  18083. else
  18084. echo "$as_me: program exited with status $ac_status" >&5
  18085. echo "$as_me: failed program was:" >&5
  18086. sed 's/^/| /' conftest.$ac_ext >&5
  18087. ( exit $ac_status )
  18088. ac_cv_func_chown_works=no
  18089. fi
  18090. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18091. fi
  18092. rm -f conftest.chown
  18093. fi
  18094. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18095. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18096. if test $ac_cv_func_chown_works = yes; then
  18097. cat >>confdefs.h <<\_ACEOF
  18098. #define HAVE_CHOWN 1
  18099. _ACEOF
  18100. fi
  18101. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18102. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18103. if test "${ac_cv_func_closedir_void+set}" = set; then
  18104. echo $ECHO_N "(cached) $ECHO_C" >&6
  18105. else
  18106. if test "$cross_compiling" = yes; then
  18107. ac_cv_func_closedir_void=yes
  18108. else
  18109. cat >conftest.$ac_ext <<_ACEOF
  18110. /* confdefs.h. */
  18111. _ACEOF
  18112. cat confdefs.h >>conftest.$ac_ext
  18113. cat >>conftest.$ac_ext <<_ACEOF
  18114. /* end confdefs.h. */
  18115. $ac_includes_default
  18116. #include <$ac_header_dirent>
  18117. #ifndef __cplusplus
  18118. int closedir ();
  18119. #endif
  18120. int
  18121. main ()
  18122. {
  18123. exit (closedir (opendir (".")) != 0);
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. rm -f conftest$ac_exeext
  18129. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18130. (eval $ac_link) 2>&5
  18131. ac_status=$?
  18132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18133. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18135. (eval $ac_try) 2>&5
  18136. ac_status=$?
  18137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18138. (exit $ac_status); }; }; then
  18139. ac_cv_func_closedir_void=no
  18140. else
  18141. echo "$as_me: program exited with status $ac_status" >&5
  18142. echo "$as_me: failed program was:" >&5
  18143. sed 's/^/| /' conftest.$ac_ext >&5
  18144. ( exit $ac_status )
  18145. ac_cv_func_closedir_void=yes
  18146. fi
  18147. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18148. fi
  18149. fi
  18150. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18151. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18152. if test $ac_cv_func_closedir_void = yes; then
  18153. cat >>confdefs.h <<\_ACEOF
  18154. #define CLOSEDIR_VOID 1
  18155. _ACEOF
  18156. fi
  18157. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18158. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18159. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18160. echo $ECHO_N "(cached) $ECHO_C" >&6
  18161. else
  18162. cat >conftest.$ac_ext <<_ACEOF
  18163. /* confdefs.h. */
  18164. _ACEOF
  18165. cat confdefs.h >>conftest.$ac_ext
  18166. cat >>conftest.$ac_ext <<_ACEOF
  18167. /* end confdefs.h. */
  18168. $ac_includes_default
  18169. int
  18170. main ()
  18171. {
  18172. error_at_line (0, 0, "", 0, "");
  18173. ;
  18174. return 0;
  18175. }
  18176. _ACEOF
  18177. rm -f conftest.$ac_objext conftest$ac_exeext
  18178. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18179. (eval $ac_link) 2>conftest.er1
  18180. ac_status=$?
  18181. grep -v '^ *+' conftest.er1 >conftest.err
  18182. rm -f conftest.er1
  18183. cat conftest.err >&5
  18184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18185. (exit $ac_status); } &&
  18186. { ac_try='test -z "$ac_c_werror_flag"
  18187. || test ! -s conftest.err'
  18188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18189. (eval $ac_try) 2>&5
  18190. ac_status=$?
  18191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18192. (exit $ac_status); }; } &&
  18193. { ac_try='test -s conftest$ac_exeext'
  18194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18195. (eval $ac_try) 2>&5
  18196. ac_status=$?
  18197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18198. (exit $ac_status); }; }; then
  18199. ac_cv_lib_error_at_line=yes
  18200. else
  18201. echo "$as_me: failed program was:" >&5
  18202. sed 's/^/| /' conftest.$ac_ext >&5
  18203. ac_cv_lib_error_at_line=no
  18204. fi
  18205. rm -f conftest.err conftest.$ac_objext \
  18206. conftest$ac_exeext conftest.$ac_ext
  18207. fi
  18208. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18209. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18210. if test $ac_cv_lib_error_at_line = no; then
  18211. case $LIBOBJS in
  18212. "error.$ac_objext" | \
  18213. *" error.$ac_objext" | \
  18214. "error.$ac_objext "* | \
  18215. *" error.$ac_objext "* ) ;;
  18216. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18217. esac
  18218. fi
  18219. for ac_header in unistd.h vfork.h
  18220. do
  18221. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18222. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18223. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18224. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18225. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18226. echo $ECHO_N "(cached) $ECHO_C" >&6
  18227. fi
  18228. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18229. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18230. else
  18231. # Is the header compilable?
  18232. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18233. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18234. cat >conftest.$ac_ext <<_ACEOF
  18235. /* confdefs.h. */
  18236. _ACEOF
  18237. cat confdefs.h >>conftest.$ac_ext
  18238. cat >>conftest.$ac_ext <<_ACEOF
  18239. /* end confdefs.h. */
  18240. $ac_includes_default
  18241. #include <$ac_header>
  18242. _ACEOF
  18243. rm -f conftest.$ac_objext
  18244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18245. (eval $ac_compile) 2>conftest.er1
  18246. ac_status=$?
  18247. grep -v '^ *+' conftest.er1 >conftest.err
  18248. rm -f conftest.er1
  18249. cat conftest.err >&5
  18250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18251. (exit $ac_status); } &&
  18252. { ac_try='test -z "$ac_c_werror_flag"
  18253. || test ! -s conftest.err'
  18254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18255. (eval $ac_try) 2>&5
  18256. ac_status=$?
  18257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18258. (exit $ac_status); }; } &&
  18259. { ac_try='test -s conftest.$ac_objext'
  18260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18261. (eval $ac_try) 2>&5
  18262. ac_status=$?
  18263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18264. (exit $ac_status); }; }; then
  18265. ac_header_compiler=yes
  18266. else
  18267. echo "$as_me: failed program was:" >&5
  18268. sed 's/^/| /' conftest.$ac_ext >&5
  18269. ac_header_compiler=no
  18270. fi
  18271. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18272. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18273. echo "${ECHO_T}$ac_header_compiler" >&6
  18274. # Is the header present?
  18275. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18276. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18277. cat >conftest.$ac_ext <<_ACEOF
  18278. /* confdefs.h. */
  18279. _ACEOF
  18280. cat confdefs.h >>conftest.$ac_ext
  18281. cat >>conftest.$ac_ext <<_ACEOF
  18282. /* end confdefs.h. */
  18283. #include <$ac_header>
  18284. _ACEOF
  18285. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18286. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18287. ac_status=$?
  18288. grep -v '^ *+' conftest.er1 >conftest.err
  18289. rm -f conftest.er1
  18290. cat conftest.err >&5
  18291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18292. (exit $ac_status); } >/dev/null; then
  18293. if test -s conftest.err; then
  18294. ac_cpp_err=$ac_c_preproc_warn_flag
  18295. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18296. else
  18297. ac_cpp_err=
  18298. fi
  18299. else
  18300. ac_cpp_err=yes
  18301. fi
  18302. if test -z "$ac_cpp_err"; then
  18303. ac_header_preproc=yes
  18304. else
  18305. echo "$as_me: failed program was:" >&5
  18306. sed 's/^/| /' conftest.$ac_ext >&5
  18307. ac_header_preproc=no
  18308. fi
  18309. rm -f conftest.err conftest.$ac_ext
  18310. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18311. echo "${ECHO_T}$ac_header_preproc" >&6
  18312. # So? What about this header?
  18313. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18314. yes:no: )
  18315. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18316. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18317. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18318. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18319. ac_header_preproc=yes
  18320. ;;
  18321. no:yes:* )
  18322. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18323. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18324. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18325. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18326. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18327. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18328. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18329. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18330. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18331. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18332. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18333. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18334. (
  18335. cat <<\_ASBOX
  18336. ## ------------------------------------------ ##
  18337. ## Report this to http://bugzilla.redhat.com/ ##
  18338. ## ------------------------------------------ ##
  18339. _ASBOX
  18340. ) |
  18341. sed "s/^/$as_me: WARNING: /" >&2
  18342. ;;
  18343. esac
  18344. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18345. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18346. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18347. echo $ECHO_N "(cached) $ECHO_C" >&6
  18348. else
  18349. eval "$as_ac_Header=\$ac_header_preproc"
  18350. fi
  18351. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18352. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18353. fi
  18354. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18355. cat >>confdefs.h <<_ACEOF
  18356. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18357. _ACEOF
  18358. fi
  18359. done
  18360. for ac_func in fork vfork
  18361. do
  18362. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18363. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18364. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18365. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18366. echo $ECHO_N "(cached) $ECHO_C" >&6
  18367. else
  18368. cat >conftest.$ac_ext <<_ACEOF
  18369. /* confdefs.h. */
  18370. _ACEOF
  18371. cat confdefs.h >>conftest.$ac_ext
  18372. cat >>conftest.$ac_ext <<_ACEOF
  18373. /* end confdefs.h. */
  18374. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18375. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18376. #define $ac_func innocuous_$ac_func
  18377. /* System header to define __stub macros and hopefully few prototypes,
  18378. which can conflict with char $ac_func (); below.
  18379. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18380. <limits.h> exists even on freestanding compilers. */
  18381. #ifdef __STDC__
  18382. # include <limits.h>
  18383. #else
  18384. # include <assert.h>
  18385. #endif
  18386. #undef $ac_func
  18387. /* Override any gcc2 internal prototype to avoid an error. */
  18388. #ifdef __cplusplus
  18389. extern "C"
  18390. {
  18391. #endif
  18392. /* We use char because int might match the return type of a gcc2
  18393. builtin and then its argument prototype would still apply. */
  18394. char $ac_func ();
  18395. /* The GNU C library defines this for functions which it implements
  18396. to always fail with ENOSYS. Some functions are actually named
  18397. something starting with __ and the normal name is an alias. */
  18398. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18399. choke me
  18400. #else
  18401. char (*f) () = $ac_func;
  18402. #endif
  18403. #ifdef __cplusplus
  18404. }
  18405. #endif
  18406. int
  18407. main ()
  18408. {
  18409. return f != $ac_func;
  18410. ;
  18411. return 0;
  18412. }
  18413. _ACEOF
  18414. rm -f conftest.$ac_objext conftest$ac_exeext
  18415. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18416. (eval $ac_link) 2>conftest.er1
  18417. ac_status=$?
  18418. grep -v '^ *+' conftest.er1 >conftest.err
  18419. rm -f conftest.er1
  18420. cat conftest.err >&5
  18421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18422. (exit $ac_status); } &&
  18423. { ac_try='test -z "$ac_c_werror_flag"
  18424. || test ! -s conftest.err'
  18425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18426. (eval $ac_try) 2>&5
  18427. ac_status=$?
  18428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18429. (exit $ac_status); }; } &&
  18430. { ac_try='test -s conftest$ac_exeext'
  18431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18432. (eval $ac_try) 2>&5
  18433. ac_status=$?
  18434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18435. (exit $ac_status); }; }; then
  18436. eval "$as_ac_var=yes"
  18437. else
  18438. echo "$as_me: failed program was:" >&5
  18439. sed 's/^/| /' conftest.$ac_ext >&5
  18440. eval "$as_ac_var=no"
  18441. fi
  18442. rm -f conftest.err conftest.$ac_objext \
  18443. conftest$ac_exeext conftest.$ac_ext
  18444. fi
  18445. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18446. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18447. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18448. cat >>confdefs.h <<_ACEOF
  18449. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18450. _ACEOF
  18451. fi
  18452. done
  18453. if test "x$ac_cv_func_fork" = xyes; then
  18454. echo "$as_me:$LINENO: checking for working fork" >&5
  18455. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18456. if test "${ac_cv_func_fork_works+set}" = set; then
  18457. echo $ECHO_N "(cached) $ECHO_C" >&6
  18458. else
  18459. if test "$cross_compiling" = yes; then
  18460. ac_cv_func_fork_works=cross
  18461. else
  18462. cat >conftest.$ac_ext <<_ACEOF
  18463. /* By Ruediger Kuhlmann. */
  18464. #include <sys/types.h>
  18465. #if HAVE_UNISTD_H
  18466. # include <unistd.h>
  18467. #endif
  18468. /* Some systems only have a dummy stub for fork() */
  18469. int main ()
  18470. {
  18471. if (fork() < 0)
  18472. exit (1);
  18473. exit (0);
  18474. }
  18475. _ACEOF
  18476. rm -f conftest$ac_exeext
  18477. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18478. (eval $ac_link) 2>&5
  18479. ac_status=$?
  18480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18481. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18483. (eval $ac_try) 2>&5
  18484. ac_status=$?
  18485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18486. (exit $ac_status); }; }; then
  18487. ac_cv_func_fork_works=yes
  18488. else
  18489. echo "$as_me: program exited with status $ac_status" >&5
  18490. echo "$as_me: failed program was:" >&5
  18491. sed 's/^/| /' conftest.$ac_ext >&5
  18492. ( exit $ac_status )
  18493. ac_cv_func_fork_works=no
  18494. fi
  18495. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18496. fi
  18497. fi
  18498. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18499. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18500. else
  18501. ac_cv_func_fork_works=$ac_cv_func_fork
  18502. fi
  18503. if test "x$ac_cv_func_fork_works" = xcross; then
  18504. case $host in
  18505. *-*-amigaos* | *-*-msdosdjgpp*)
  18506. # Override, as these systems have only a dummy fork() stub
  18507. ac_cv_func_fork_works=no
  18508. ;;
  18509. *)
  18510. ac_cv_func_fork_works=yes
  18511. ;;
  18512. esac
  18513. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18514. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18515. fi
  18516. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18517. if test "x$ac_cv_func_vfork" = xyes; then
  18518. echo "$as_me:$LINENO: checking for working vfork" >&5
  18519. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18520. if test "${ac_cv_func_vfork_works+set}" = set; then
  18521. echo $ECHO_N "(cached) $ECHO_C" >&6
  18522. else
  18523. if test "$cross_compiling" = yes; then
  18524. ac_cv_func_vfork_works=cross
  18525. else
  18526. cat >conftest.$ac_ext <<_ACEOF
  18527. /* confdefs.h. */
  18528. _ACEOF
  18529. cat confdefs.h >>conftest.$ac_ext
  18530. cat >>conftest.$ac_ext <<_ACEOF
  18531. /* end confdefs.h. */
  18532. /* Thanks to Paul Eggert for this test. */
  18533. #include <stdio.h>
  18534. #include <stdlib.h>
  18535. #include <sys/types.h>
  18536. #include <sys/stat.h>
  18537. #include <sys/wait.h>
  18538. #if HAVE_UNISTD_H
  18539. # include <unistd.h>
  18540. #endif
  18541. #if HAVE_VFORK_H
  18542. # include <vfork.h>
  18543. #endif
  18544. /* On some sparc systems, changes by the child to local and incoming
  18545. argument registers are propagated back to the parent. The compiler
  18546. is told about this with #include <vfork.h>, but some compilers
  18547. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18548. static variable whose address is put into a register that is
  18549. clobbered by the vfork. */
  18550. static void
  18551. #ifdef __cplusplus
  18552. sparc_address_test (int arg)
  18553. # else
  18554. sparc_address_test (arg) int arg;
  18555. #endif
  18556. {
  18557. static pid_t child;
  18558. if (!child) {
  18559. child = vfork ();
  18560. if (child < 0) {
  18561. perror ("vfork");
  18562. _exit(2);
  18563. }
  18564. if (!child) {
  18565. arg = getpid();
  18566. write(-1, "", 0);
  18567. _exit (arg);
  18568. }
  18569. }
  18570. }
  18571. int
  18572. main ()
  18573. {
  18574. pid_t parent = getpid ();
  18575. pid_t child;
  18576. sparc_address_test (0);
  18577. child = vfork ();
  18578. if (child == 0) {
  18579. /* Here is another test for sparc vfork register problems. This
  18580. test uses lots of local variables, at least as many local
  18581. variables as main has allocated so far including compiler
  18582. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18583. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18584. reuse the register of parent for one of the local variables,
  18585. since it will think that parent can't possibly be used any more
  18586. in this routine. Assigning to the local variable will thus
  18587. munge parent in the parent process. */
  18588. pid_t
  18589. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18590. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18591. /* Convince the compiler that p..p7 are live; otherwise, it might
  18592. use the same hardware register for all 8 local variables. */
  18593. if (p != p1 || p != p2 || p != p3 || p != p4
  18594. || p != p5 || p != p6 || p != p7)
  18595. _exit(1);
  18596. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18597. from child file descriptors. If the child closes a descriptor
  18598. before it execs or exits, this munges the parent's descriptor
  18599. as well. Test for this by closing stdout in the child. */
  18600. _exit(close(fileno(stdout)) != 0);
  18601. } else {
  18602. int status;
  18603. struct stat st;
  18604. while (wait(&status) != child)
  18605. ;
  18606. exit(
  18607. /* Was there some problem with vforking? */
  18608. child < 0
  18609. /* Did the child fail? (This shouldn't happen.) */
  18610. || status
  18611. /* Did the vfork/compiler bug occur? */
  18612. || parent != getpid()
  18613. /* Did the file descriptor bug occur? */
  18614. || fstat(fileno(stdout), &st) != 0
  18615. );
  18616. }
  18617. }
  18618. _ACEOF
  18619. rm -f conftest$ac_exeext
  18620. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18621. (eval $ac_link) 2>&5
  18622. ac_status=$?
  18623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18624. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18626. (eval $ac_try) 2>&5
  18627. ac_status=$?
  18628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18629. (exit $ac_status); }; }; then
  18630. ac_cv_func_vfork_works=yes
  18631. else
  18632. echo "$as_me: program exited with status $ac_status" >&5
  18633. echo "$as_me: failed program was:" >&5
  18634. sed 's/^/| /' conftest.$ac_ext >&5
  18635. ( exit $ac_status )
  18636. ac_cv_func_vfork_works=no
  18637. fi
  18638. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18639. fi
  18640. fi
  18641. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18642. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18643. fi;
  18644. if test "x$ac_cv_func_fork_works" = xcross; then
  18645. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18646. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18647. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18648. fi
  18649. if test "x$ac_cv_func_vfork_works" = xyes; then
  18650. cat >>confdefs.h <<\_ACEOF
  18651. #define HAVE_WORKING_VFORK 1
  18652. _ACEOF
  18653. else
  18654. cat >>confdefs.h <<\_ACEOF
  18655. #define vfork fork
  18656. _ACEOF
  18657. fi
  18658. if test "x$ac_cv_func_fork_works" = xyes; then
  18659. cat >>confdefs.h <<\_ACEOF
  18660. #define HAVE_WORKING_FORK 1
  18661. _ACEOF
  18662. fi
  18663. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18664. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18665. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18666. echo $ECHO_N "(cached) $ECHO_C" >&6
  18667. else
  18668. rm -f conftest.sym conftest.file
  18669. echo >conftest.file
  18670. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18671. if test "$cross_compiling" = yes; then
  18672. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18673. else
  18674. cat >conftest.$ac_ext <<_ACEOF
  18675. /* confdefs.h. */
  18676. _ACEOF
  18677. cat confdefs.h >>conftest.$ac_ext
  18678. cat >>conftest.$ac_ext <<_ACEOF
  18679. /* end confdefs.h. */
  18680. $ac_includes_default
  18681. int
  18682. main ()
  18683. {
  18684. struct stat sbuf;
  18685. /* Linux will dereference the symlink and fail.
  18686. That is better in the sense that it means we will not
  18687. have to compile and use the lstat wrapper. */
  18688. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18689. ;
  18690. return 0;
  18691. }
  18692. _ACEOF
  18693. rm -f conftest$ac_exeext
  18694. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18695. (eval $ac_link) 2>&5
  18696. ac_status=$?
  18697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18698. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18700. (eval $ac_try) 2>&5
  18701. ac_status=$?
  18702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18703. (exit $ac_status); }; }; then
  18704. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18705. else
  18706. echo "$as_me: program exited with status $ac_status" >&5
  18707. echo "$as_me: failed program was:" >&5
  18708. sed 's/^/| /' conftest.$ac_ext >&5
  18709. ( exit $ac_status )
  18710. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18711. fi
  18712. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18713. fi
  18714. else
  18715. # If the `ln -s' command failed, then we probably don't even
  18716. # have an lstat function.
  18717. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18718. fi
  18719. rm -f conftest.sym conftest.file
  18720. fi
  18721. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18722. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18723. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18724. cat >>confdefs.h <<_ACEOF
  18725. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18726. _ACEOF
  18727. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18728. case $LIBOBJS in
  18729. "lstat.$ac_objext" | \
  18730. *" lstat.$ac_objext" | \
  18731. "lstat.$ac_objext "* | \
  18732. *" lstat.$ac_objext "* ) ;;
  18733. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18734. esac
  18735. fi
  18736. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18737. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18738. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18739. echo $ECHO_N "(cached) $ECHO_C" >&6
  18740. else
  18741. if test "$cross_compiling" = yes; then
  18742. ac_cv_func_lstat_empty_string_bug=yes
  18743. else
  18744. cat >conftest.$ac_ext <<_ACEOF
  18745. /* confdefs.h. */
  18746. _ACEOF
  18747. cat confdefs.h >>conftest.$ac_ext
  18748. cat >>conftest.$ac_ext <<_ACEOF
  18749. /* end confdefs.h. */
  18750. $ac_includes_default
  18751. int
  18752. main ()
  18753. {
  18754. struct stat sbuf;
  18755. exit (lstat ("", &sbuf) ? 1 : 0);
  18756. ;
  18757. return 0;
  18758. }
  18759. _ACEOF
  18760. rm -f conftest$ac_exeext
  18761. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18762. (eval $ac_link) 2>&5
  18763. ac_status=$?
  18764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18765. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18767. (eval $ac_try) 2>&5
  18768. ac_status=$?
  18769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18770. (exit $ac_status); }; }; then
  18771. ac_cv_func_lstat_empty_string_bug=yes
  18772. else
  18773. echo "$as_me: program exited with status $ac_status" >&5
  18774. echo "$as_me: failed program was:" >&5
  18775. sed 's/^/| /' conftest.$ac_ext >&5
  18776. ( exit $ac_status )
  18777. ac_cv_func_lstat_empty_string_bug=no
  18778. fi
  18779. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18780. fi
  18781. fi
  18782. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18783. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18784. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18785. case $LIBOBJS in
  18786. "lstat.$ac_objext" | \
  18787. *" lstat.$ac_objext" | \
  18788. "lstat.$ac_objext "* | \
  18789. *" lstat.$ac_objext "* ) ;;
  18790. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18791. esac
  18792. cat >>confdefs.h <<_ACEOF
  18793. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18794. _ACEOF
  18795. fi
  18796. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18797. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18798. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18799. echo $ECHO_N "(cached) $ECHO_C" >&6
  18800. else
  18801. rm -f conftest.sym conftest.file
  18802. echo >conftest.file
  18803. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18804. if test "$cross_compiling" = yes; then
  18805. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18806. else
  18807. cat >conftest.$ac_ext <<_ACEOF
  18808. /* confdefs.h. */
  18809. _ACEOF
  18810. cat confdefs.h >>conftest.$ac_ext
  18811. cat >>conftest.$ac_ext <<_ACEOF
  18812. /* end confdefs.h. */
  18813. $ac_includes_default
  18814. int
  18815. main ()
  18816. {
  18817. struct stat sbuf;
  18818. /* Linux will dereference the symlink and fail.
  18819. That is better in the sense that it means we will not
  18820. have to compile and use the lstat wrapper. */
  18821. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18822. ;
  18823. return 0;
  18824. }
  18825. _ACEOF
  18826. rm -f conftest$ac_exeext
  18827. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18828. (eval $ac_link) 2>&5
  18829. ac_status=$?
  18830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18831. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18833. (eval $ac_try) 2>&5
  18834. ac_status=$?
  18835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18836. (exit $ac_status); }; }; then
  18837. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18838. else
  18839. echo "$as_me: program exited with status $ac_status" >&5
  18840. echo "$as_me: failed program was:" >&5
  18841. sed 's/^/| /' conftest.$ac_ext >&5
  18842. ( exit $ac_status )
  18843. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18844. fi
  18845. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18846. fi
  18847. else
  18848. # If the `ln -s' command failed, then we probably don't even
  18849. # have an lstat function.
  18850. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18851. fi
  18852. rm -f conftest.sym conftest.file
  18853. fi
  18854. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18855. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18856. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18857. cat >>confdefs.h <<_ACEOF
  18858. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18859. _ACEOF
  18860. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18861. case $LIBOBJS in
  18862. "lstat.$ac_objext" | \
  18863. *" lstat.$ac_objext" | \
  18864. "lstat.$ac_objext "* | \
  18865. *" lstat.$ac_objext "* ) ;;
  18866. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18867. esac
  18868. fi
  18869. for ac_header in stdlib.h
  18870. do
  18871. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18872. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18873. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18874. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18875. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18876. echo $ECHO_N "(cached) $ECHO_C" >&6
  18877. fi
  18878. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18879. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18880. else
  18881. # Is the header compilable?
  18882. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18883. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18884. cat >conftest.$ac_ext <<_ACEOF
  18885. /* confdefs.h. */
  18886. _ACEOF
  18887. cat confdefs.h >>conftest.$ac_ext
  18888. cat >>conftest.$ac_ext <<_ACEOF
  18889. /* end confdefs.h. */
  18890. $ac_includes_default
  18891. #include <$ac_header>
  18892. _ACEOF
  18893. rm -f conftest.$ac_objext
  18894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18895. (eval $ac_compile) 2>conftest.er1
  18896. ac_status=$?
  18897. grep -v '^ *+' conftest.er1 >conftest.err
  18898. rm -f conftest.er1
  18899. cat conftest.err >&5
  18900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18901. (exit $ac_status); } &&
  18902. { ac_try='test -z "$ac_c_werror_flag"
  18903. || test ! -s conftest.err'
  18904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18905. (eval $ac_try) 2>&5
  18906. ac_status=$?
  18907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18908. (exit $ac_status); }; } &&
  18909. { ac_try='test -s conftest.$ac_objext'
  18910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18911. (eval $ac_try) 2>&5
  18912. ac_status=$?
  18913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18914. (exit $ac_status); }; }; then
  18915. ac_header_compiler=yes
  18916. else
  18917. echo "$as_me: failed program was:" >&5
  18918. sed 's/^/| /' conftest.$ac_ext >&5
  18919. ac_header_compiler=no
  18920. fi
  18921. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18922. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18923. echo "${ECHO_T}$ac_header_compiler" >&6
  18924. # Is the header present?
  18925. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18926. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18927. cat >conftest.$ac_ext <<_ACEOF
  18928. /* confdefs.h. */
  18929. _ACEOF
  18930. cat confdefs.h >>conftest.$ac_ext
  18931. cat >>conftest.$ac_ext <<_ACEOF
  18932. /* end confdefs.h. */
  18933. #include <$ac_header>
  18934. _ACEOF
  18935. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18936. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18937. ac_status=$?
  18938. grep -v '^ *+' conftest.er1 >conftest.err
  18939. rm -f conftest.er1
  18940. cat conftest.err >&5
  18941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18942. (exit $ac_status); } >/dev/null; then
  18943. if test -s conftest.err; then
  18944. ac_cpp_err=$ac_c_preproc_warn_flag
  18945. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18946. else
  18947. ac_cpp_err=
  18948. fi
  18949. else
  18950. ac_cpp_err=yes
  18951. fi
  18952. if test -z "$ac_cpp_err"; then
  18953. ac_header_preproc=yes
  18954. else
  18955. echo "$as_me: failed program was:" >&5
  18956. sed 's/^/| /' conftest.$ac_ext >&5
  18957. ac_header_preproc=no
  18958. fi
  18959. rm -f conftest.err conftest.$ac_ext
  18960. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18961. echo "${ECHO_T}$ac_header_preproc" >&6
  18962. # So? What about this header?
  18963. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18964. yes:no: )
  18965. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18966. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18967. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18968. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18969. ac_header_preproc=yes
  18970. ;;
  18971. no:yes:* )
  18972. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18973. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18974. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18975. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18976. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18977. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18978. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18979. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18980. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18981. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18982. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18983. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18984. (
  18985. cat <<\_ASBOX
  18986. ## ------------------------------------------ ##
  18987. ## Report this to http://bugzilla.redhat.com/ ##
  18988. ## ------------------------------------------ ##
  18989. _ASBOX
  18990. ) |
  18991. sed "s/^/$as_me: WARNING: /" >&2
  18992. ;;
  18993. esac
  18994. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18995. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18996. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18997. echo $ECHO_N "(cached) $ECHO_C" >&6
  18998. else
  18999. eval "$as_ac_Header=\$ac_header_preproc"
  19000. fi
  19001. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19002. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19003. fi
  19004. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19005. cat >>confdefs.h <<_ACEOF
  19006. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19007. _ACEOF
  19008. fi
  19009. done
  19010. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19011. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19012. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19013. echo $ECHO_N "(cached) $ECHO_C" >&6
  19014. else
  19015. if test "$cross_compiling" = yes; then
  19016. ac_cv_func_malloc_0_nonnull=no
  19017. else
  19018. cat >conftest.$ac_ext <<_ACEOF
  19019. /* confdefs.h. */
  19020. _ACEOF
  19021. cat confdefs.h >>conftest.$ac_ext
  19022. cat >>conftest.$ac_ext <<_ACEOF
  19023. /* end confdefs.h. */
  19024. #if STDC_HEADERS || HAVE_STDLIB_H
  19025. # include <stdlib.h>
  19026. #else
  19027. char *malloc ();
  19028. #endif
  19029. int
  19030. main ()
  19031. {
  19032. exit (malloc (0) ? 0 : 1);
  19033. ;
  19034. return 0;
  19035. }
  19036. _ACEOF
  19037. rm -f conftest$ac_exeext
  19038. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19039. (eval $ac_link) 2>&5
  19040. ac_status=$?
  19041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19042. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19044. (eval $ac_try) 2>&5
  19045. ac_status=$?
  19046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19047. (exit $ac_status); }; }; then
  19048. ac_cv_func_malloc_0_nonnull=yes
  19049. else
  19050. echo "$as_me: program exited with status $ac_status" >&5
  19051. echo "$as_me: failed program was:" >&5
  19052. sed 's/^/| /' conftest.$ac_ext >&5
  19053. ( exit $ac_status )
  19054. ac_cv_func_malloc_0_nonnull=no
  19055. fi
  19056. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19057. fi
  19058. fi
  19059. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19060. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19061. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19062. cat >>confdefs.h <<\_ACEOF
  19063. #define HAVE_MALLOC 1
  19064. _ACEOF
  19065. else
  19066. cat >>confdefs.h <<\_ACEOF
  19067. #define HAVE_MALLOC 0
  19068. _ACEOF
  19069. case $LIBOBJS in
  19070. "malloc.$ac_objext" | \
  19071. *" malloc.$ac_objext" | \
  19072. "malloc.$ac_objext "* | \
  19073. *" malloc.$ac_objext "* ) ;;
  19074. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19075. esac
  19076. cat >>confdefs.h <<\_ACEOF
  19077. #define malloc rpl_malloc
  19078. _ACEOF
  19079. fi
  19080. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19081. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19082. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19083. echo $ECHO_N "(cached) $ECHO_C" >&6
  19084. else
  19085. if test "$cross_compiling" = yes; then
  19086. ac_cv_func_memcmp_working=no
  19087. else
  19088. cat >conftest.$ac_ext <<_ACEOF
  19089. /* confdefs.h. */
  19090. _ACEOF
  19091. cat confdefs.h >>conftest.$ac_ext
  19092. cat >>conftest.$ac_ext <<_ACEOF
  19093. /* end confdefs.h. */
  19094. $ac_includes_default
  19095. int
  19096. main ()
  19097. {
  19098. /* Some versions of memcmp are not 8-bit clean. */
  19099. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19100. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19101. exit (1);
  19102. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19103. or more and with at least one buffer not starting on a 4-byte boundary.
  19104. William Lewis provided this test program. */
  19105. {
  19106. char foo[21];
  19107. char bar[21];
  19108. int i;
  19109. for (i = 0; i < 4; i++)
  19110. {
  19111. char *a = foo + i;
  19112. char *b = bar + i;
  19113. strcpy (a, "--------01111111");
  19114. strcpy (b, "--------10000000");
  19115. if (memcmp (a, b, 16) >= 0)
  19116. exit (1);
  19117. }
  19118. exit (0);
  19119. }
  19120. ;
  19121. return 0;
  19122. }
  19123. _ACEOF
  19124. rm -f conftest$ac_exeext
  19125. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19126. (eval $ac_link) 2>&5
  19127. ac_status=$?
  19128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19129. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19131. (eval $ac_try) 2>&5
  19132. ac_status=$?
  19133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19134. (exit $ac_status); }; }; then
  19135. ac_cv_func_memcmp_working=yes
  19136. else
  19137. echo "$as_me: program exited with status $ac_status" >&5
  19138. echo "$as_me: failed program was:" >&5
  19139. sed 's/^/| /' conftest.$ac_ext >&5
  19140. ( exit $ac_status )
  19141. ac_cv_func_memcmp_working=no
  19142. fi
  19143. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19144. fi
  19145. fi
  19146. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19147. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19148. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19149. "memcmp.$ac_objext" | \
  19150. *" memcmp.$ac_objext" | \
  19151. "memcmp.$ac_objext "* | \
  19152. *" memcmp.$ac_objext "* ) ;;
  19153. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19154. esac
  19155. for ac_header in stdlib.h unistd.h
  19156. do
  19157. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19158. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19159. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19160. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19161. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19162. echo $ECHO_N "(cached) $ECHO_C" >&6
  19163. fi
  19164. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19165. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19166. else
  19167. # Is the header compilable?
  19168. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19169. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19170. cat >conftest.$ac_ext <<_ACEOF
  19171. /* confdefs.h. */
  19172. _ACEOF
  19173. cat confdefs.h >>conftest.$ac_ext
  19174. cat >>conftest.$ac_ext <<_ACEOF
  19175. /* end confdefs.h. */
  19176. $ac_includes_default
  19177. #include <$ac_header>
  19178. _ACEOF
  19179. rm -f conftest.$ac_objext
  19180. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19181. (eval $ac_compile) 2>conftest.er1
  19182. ac_status=$?
  19183. grep -v '^ *+' conftest.er1 >conftest.err
  19184. rm -f conftest.er1
  19185. cat conftest.err >&5
  19186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19187. (exit $ac_status); } &&
  19188. { ac_try='test -z "$ac_c_werror_flag"
  19189. || test ! -s conftest.err'
  19190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19191. (eval $ac_try) 2>&5
  19192. ac_status=$?
  19193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19194. (exit $ac_status); }; } &&
  19195. { ac_try='test -s conftest.$ac_objext'
  19196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19197. (eval $ac_try) 2>&5
  19198. ac_status=$?
  19199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19200. (exit $ac_status); }; }; then
  19201. ac_header_compiler=yes
  19202. else
  19203. echo "$as_me: failed program was:" >&5
  19204. sed 's/^/| /' conftest.$ac_ext >&5
  19205. ac_header_compiler=no
  19206. fi
  19207. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19208. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19209. echo "${ECHO_T}$ac_header_compiler" >&6
  19210. # Is the header present?
  19211. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19212. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19213. cat >conftest.$ac_ext <<_ACEOF
  19214. /* confdefs.h. */
  19215. _ACEOF
  19216. cat confdefs.h >>conftest.$ac_ext
  19217. cat >>conftest.$ac_ext <<_ACEOF
  19218. /* end confdefs.h. */
  19219. #include <$ac_header>
  19220. _ACEOF
  19221. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19222. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19223. ac_status=$?
  19224. grep -v '^ *+' conftest.er1 >conftest.err
  19225. rm -f conftest.er1
  19226. cat conftest.err >&5
  19227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19228. (exit $ac_status); } >/dev/null; then
  19229. if test -s conftest.err; then
  19230. ac_cpp_err=$ac_c_preproc_warn_flag
  19231. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19232. else
  19233. ac_cpp_err=
  19234. fi
  19235. else
  19236. ac_cpp_err=yes
  19237. fi
  19238. if test -z "$ac_cpp_err"; then
  19239. ac_header_preproc=yes
  19240. else
  19241. echo "$as_me: failed program was:" >&5
  19242. sed 's/^/| /' conftest.$ac_ext >&5
  19243. ac_header_preproc=no
  19244. fi
  19245. rm -f conftest.err conftest.$ac_ext
  19246. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19247. echo "${ECHO_T}$ac_header_preproc" >&6
  19248. # So? What about this header?
  19249. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19250. yes:no: )
  19251. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19252. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19253. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19254. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19255. ac_header_preproc=yes
  19256. ;;
  19257. no:yes:* )
  19258. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19259. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19260. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19261. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19262. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19263. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19264. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19265. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19266. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19267. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19268. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19269. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19270. (
  19271. cat <<\_ASBOX
  19272. ## ------------------------------------------ ##
  19273. ## Report this to http://bugzilla.redhat.com/ ##
  19274. ## ------------------------------------------ ##
  19275. _ASBOX
  19276. ) |
  19277. sed "s/^/$as_me: WARNING: /" >&2
  19278. ;;
  19279. esac
  19280. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19281. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19282. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19283. echo $ECHO_N "(cached) $ECHO_C" >&6
  19284. else
  19285. eval "$as_ac_Header=\$ac_header_preproc"
  19286. fi
  19287. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19288. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19289. fi
  19290. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19291. cat >>confdefs.h <<_ACEOF
  19292. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19293. _ACEOF
  19294. fi
  19295. done
  19296. for ac_func in getpagesize
  19297. do
  19298. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19299. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19300. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19301. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19302. echo $ECHO_N "(cached) $ECHO_C" >&6
  19303. else
  19304. cat >conftest.$ac_ext <<_ACEOF
  19305. /* confdefs.h. */
  19306. _ACEOF
  19307. cat confdefs.h >>conftest.$ac_ext
  19308. cat >>conftest.$ac_ext <<_ACEOF
  19309. /* end confdefs.h. */
  19310. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19311. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19312. #define $ac_func innocuous_$ac_func
  19313. /* System header to define __stub macros and hopefully few prototypes,
  19314. which can conflict with char $ac_func (); below.
  19315. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19316. <limits.h> exists even on freestanding compilers. */
  19317. #ifdef __STDC__
  19318. # include <limits.h>
  19319. #else
  19320. # include <assert.h>
  19321. #endif
  19322. #undef $ac_func
  19323. /* Override any gcc2 internal prototype to avoid an error. */
  19324. #ifdef __cplusplus
  19325. extern "C"
  19326. {
  19327. #endif
  19328. /* We use char because int might match the return type of a gcc2
  19329. builtin and then its argument prototype would still apply. */
  19330. char $ac_func ();
  19331. /* The GNU C library defines this for functions which it implements
  19332. to always fail with ENOSYS. Some functions are actually named
  19333. something starting with __ and the normal name is an alias. */
  19334. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19335. choke me
  19336. #else
  19337. char (*f) () = $ac_func;
  19338. #endif
  19339. #ifdef __cplusplus
  19340. }
  19341. #endif
  19342. int
  19343. main ()
  19344. {
  19345. return f != $ac_func;
  19346. ;
  19347. return 0;
  19348. }
  19349. _ACEOF
  19350. rm -f conftest.$ac_objext conftest$ac_exeext
  19351. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19352. (eval $ac_link) 2>conftest.er1
  19353. ac_status=$?
  19354. grep -v '^ *+' conftest.er1 >conftest.err
  19355. rm -f conftest.er1
  19356. cat conftest.err >&5
  19357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19358. (exit $ac_status); } &&
  19359. { ac_try='test -z "$ac_c_werror_flag"
  19360. || test ! -s conftest.err'
  19361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19362. (eval $ac_try) 2>&5
  19363. ac_status=$?
  19364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19365. (exit $ac_status); }; } &&
  19366. { ac_try='test -s conftest$ac_exeext'
  19367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19368. (eval $ac_try) 2>&5
  19369. ac_status=$?
  19370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19371. (exit $ac_status); }; }; then
  19372. eval "$as_ac_var=yes"
  19373. else
  19374. echo "$as_me: failed program was:" >&5
  19375. sed 's/^/| /' conftest.$ac_ext >&5
  19376. eval "$as_ac_var=no"
  19377. fi
  19378. rm -f conftest.err conftest.$ac_objext \
  19379. conftest$ac_exeext conftest.$ac_ext
  19380. fi
  19381. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19382. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19383. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19384. cat >>confdefs.h <<_ACEOF
  19385. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19386. _ACEOF
  19387. fi
  19388. done
  19389. echo "$as_me:$LINENO: checking for working mmap" >&5
  19390. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19391. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19392. echo $ECHO_N "(cached) $ECHO_C" >&6
  19393. else
  19394. if test "$cross_compiling" = yes; then
  19395. ac_cv_func_mmap_fixed_mapped=no
  19396. else
  19397. cat >conftest.$ac_ext <<_ACEOF
  19398. /* confdefs.h. */
  19399. _ACEOF
  19400. cat confdefs.h >>conftest.$ac_ext
  19401. cat >>conftest.$ac_ext <<_ACEOF
  19402. /* end confdefs.h. */
  19403. $ac_includes_default
  19404. /* malloc might have been renamed as rpl_malloc. */
  19405. #undef malloc
  19406. /* Thanks to Mike Haertel and Jim Avera for this test.
  19407. Here is a matrix of mmap possibilities:
  19408. mmap private not fixed
  19409. mmap private fixed at somewhere currently unmapped
  19410. mmap private fixed at somewhere already mapped
  19411. mmap shared not fixed
  19412. mmap shared fixed at somewhere currently unmapped
  19413. mmap shared fixed at somewhere already mapped
  19414. For private mappings, we should verify that changes cannot be read()
  19415. back from the file, nor mmap's back from the file at a different
  19416. address. (There have been systems where private was not correctly
  19417. implemented like the infamous i386 svr4.0, and systems where the
  19418. VM page cache was not coherent with the file system buffer cache
  19419. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19420. For shared mappings, we should conversely verify that changes get
  19421. propagated back to all the places they're supposed to be.
  19422. Grep wants private fixed already mapped.
  19423. The main things grep needs to know about mmap are:
  19424. * does it exist and is it safe to write into the mmap'd area
  19425. * how to use it (BSD variants) */
  19426. #include <fcntl.h>
  19427. #include <sys/mman.h>
  19428. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19429. char *malloc ();
  19430. #endif
  19431. /* This mess was copied from the GNU getpagesize.h. */
  19432. #if !HAVE_GETPAGESIZE
  19433. /* Assume that all systems that can run configure have sys/param.h. */
  19434. # if !HAVE_SYS_PARAM_H
  19435. # define HAVE_SYS_PARAM_H 1
  19436. # endif
  19437. # ifdef _SC_PAGESIZE
  19438. # define getpagesize() sysconf(_SC_PAGESIZE)
  19439. # else /* no _SC_PAGESIZE */
  19440. # if HAVE_SYS_PARAM_H
  19441. # include <sys/param.h>
  19442. # ifdef EXEC_PAGESIZE
  19443. # define getpagesize() EXEC_PAGESIZE
  19444. # else /* no EXEC_PAGESIZE */
  19445. # ifdef NBPG
  19446. # define getpagesize() NBPG * CLSIZE
  19447. # ifndef CLSIZE
  19448. # define CLSIZE 1
  19449. # endif /* no CLSIZE */
  19450. # else /* no NBPG */
  19451. # ifdef NBPC
  19452. # define getpagesize() NBPC
  19453. # else /* no NBPC */
  19454. # ifdef PAGESIZE
  19455. # define getpagesize() PAGESIZE
  19456. # endif /* PAGESIZE */
  19457. # endif /* no NBPC */
  19458. # endif /* no NBPG */
  19459. # endif /* no EXEC_PAGESIZE */
  19460. # else /* no HAVE_SYS_PARAM_H */
  19461. # define getpagesize() 8192 /* punt totally */
  19462. # endif /* no HAVE_SYS_PARAM_H */
  19463. # endif /* no _SC_PAGESIZE */
  19464. #endif /* no HAVE_GETPAGESIZE */
  19465. int
  19466. main ()
  19467. {
  19468. char *data, *data2, *data3;
  19469. int i, pagesize;
  19470. int fd;
  19471. pagesize = getpagesize ();
  19472. /* First, make a file with some known garbage in it. */
  19473. data = (char *) malloc (pagesize);
  19474. if (!data)
  19475. exit (1);
  19476. for (i = 0; i < pagesize; ++i)
  19477. *(data + i) = rand ();
  19478. umask (0);
  19479. fd = creat ("conftest.mmap", 0600);
  19480. if (fd < 0)
  19481. exit (1);
  19482. if (write (fd, data, pagesize) != pagesize)
  19483. exit (1);
  19484. close (fd);
  19485. /* Next, try to mmap the file at a fixed address which already has
  19486. something else allocated at it. If we can, also make sure that
  19487. we see the same garbage. */
  19488. fd = open ("conftest.mmap", O_RDWR);
  19489. if (fd < 0)
  19490. exit (1);
  19491. data2 = (char *) malloc (2 * pagesize);
  19492. if (!data2)
  19493. exit (1);
  19494. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19495. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19496. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19497. exit (1);
  19498. for (i = 0; i < pagesize; ++i)
  19499. if (*(data + i) != *(data2 + i))
  19500. exit (1);
  19501. /* Finally, make sure that changes to the mapped area do not
  19502. percolate back to the file as seen by read(). (This is a bug on
  19503. some variants of i386 svr4.0.) */
  19504. for (i = 0; i < pagesize; ++i)
  19505. *(data2 + i) = *(data2 + i) + 1;
  19506. data3 = (char *) malloc (pagesize);
  19507. if (!data3)
  19508. exit (1);
  19509. if (read (fd, data3, pagesize) != pagesize)
  19510. exit (1);
  19511. for (i = 0; i < pagesize; ++i)
  19512. if (*(data + i) != *(data3 + i))
  19513. exit (1);
  19514. close (fd);
  19515. exit (0);
  19516. }
  19517. _ACEOF
  19518. rm -f conftest$ac_exeext
  19519. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19520. (eval $ac_link) 2>&5
  19521. ac_status=$?
  19522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19523. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19525. (eval $ac_try) 2>&5
  19526. ac_status=$?
  19527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19528. (exit $ac_status); }; }; then
  19529. ac_cv_func_mmap_fixed_mapped=yes
  19530. else
  19531. echo "$as_me: program exited with status $ac_status" >&5
  19532. echo "$as_me: failed program was:" >&5
  19533. sed 's/^/| /' conftest.$ac_ext >&5
  19534. ( exit $ac_status )
  19535. ac_cv_func_mmap_fixed_mapped=no
  19536. fi
  19537. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19538. fi
  19539. fi
  19540. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19541. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19542. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19543. cat >>confdefs.h <<\_ACEOF
  19544. #define HAVE_MMAP 1
  19545. _ACEOF
  19546. fi
  19547. rm -f conftest.mmap
  19548. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19549. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19550. if test "${ac_cv_type_signal+set}" = set; then
  19551. echo $ECHO_N "(cached) $ECHO_C" >&6
  19552. else
  19553. cat >conftest.$ac_ext <<_ACEOF
  19554. /* confdefs.h. */
  19555. _ACEOF
  19556. cat confdefs.h >>conftest.$ac_ext
  19557. cat >>conftest.$ac_ext <<_ACEOF
  19558. /* end confdefs.h. */
  19559. #include <sys/types.h>
  19560. #include <signal.h>
  19561. #ifdef signal
  19562. # undef signal
  19563. #endif
  19564. #ifdef __cplusplus
  19565. extern "C" void (*signal (int, void (*)(int)))(int);
  19566. #else
  19567. void (*signal ()) ();
  19568. #endif
  19569. int
  19570. main ()
  19571. {
  19572. int i;
  19573. ;
  19574. return 0;
  19575. }
  19576. _ACEOF
  19577. rm -f conftest.$ac_objext
  19578. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19579. (eval $ac_compile) 2>conftest.er1
  19580. ac_status=$?
  19581. grep -v '^ *+' conftest.er1 >conftest.err
  19582. rm -f conftest.er1
  19583. cat conftest.err >&5
  19584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19585. (exit $ac_status); } &&
  19586. { ac_try='test -z "$ac_c_werror_flag"
  19587. || test ! -s conftest.err'
  19588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19589. (eval $ac_try) 2>&5
  19590. ac_status=$?
  19591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19592. (exit $ac_status); }; } &&
  19593. { ac_try='test -s conftest.$ac_objext'
  19594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19595. (eval $ac_try) 2>&5
  19596. ac_status=$?
  19597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19598. (exit $ac_status); }; }; then
  19599. ac_cv_type_signal=void
  19600. else
  19601. echo "$as_me: failed program was:" >&5
  19602. sed 's/^/| /' conftest.$ac_ext >&5
  19603. ac_cv_type_signal=int
  19604. fi
  19605. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19606. fi
  19607. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19608. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19609. cat >>confdefs.h <<_ACEOF
  19610. #define RETSIGTYPE $ac_cv_type_signal
  19611. _ACEOF
  19612. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19613. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19614. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19615. echo $ECHO_N "(cached) $ECHO_C" >&6
  19616. else
  19617. if test "$cross_compiling" = yes; then
  19618. ac_cv_func_stat_empty_string_bug=yes
  19619. else
  19620. cat >conftest.$ac_ext <<_ACEOF
  19621. /* confdefs.h. */
  19622. _ACEOF
  19623. cat confdefs.h >>conftest.$ac_ext
  19624. cat >>conftest.$ac_ext <<_ACEOF
  19625. /* end confdefs.h. */
  19626. $ac_includes_default
  19627. int
  19628. main ()
  19629. {
  19630. struct stat sbuf;
  19631. exit (stat ("", &sbuf) ? 1 : 0);
  19632. ;
  19633. return 0;
  19634. }
  19635. _ACEOF
  19636. rm -f conftest$ac_exeext
  19637. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19638. (eval $ac_link) 2>&5
  19639. ac_status=$?
  19640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19641. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19643. (eval $ac_try) 2>&5
  19644. ac_status=$?
  19645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19646. (exit $ac_status); }; }; then
  19647. ac_cv_func_stat_empty_string_bug=yes
  19648. else
  19649. echo "$as_me: program exited with status $ac_status" >&5
  19650. echo "$as_me: failed program was:" >&5
  19651. sed 's/^/| /' conftest.$ac_ext >&5
  19652. ( exit $ac_status )
  19653. ac_cv_func_stat_empty_string_bug=no
  19654. fi
  19655. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19656. fi
  19657. fi
  19658. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19659. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19660. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19661. case $LIBOBJS in
  19662. "stat.$ac_objext" | \
  19663. *" stat.$ac_objext" | \
  19664. "stat.$ac_objext "* | \
  19665. *" stat.$ac_objext "* ) ;;
  19666. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19667. esac
  19668. cat >>confdefs.h <<_ACEOF
  19669. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19670. _ACEOF
  19671. fi
  19672. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19673. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19674. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19675. echo $ECHO_N "(cached) $ECHO_C" >&6
  19676. else
  19677. cat >conftest.$ac_ext <<_ACEOF
  19678. /* confdefs.h. */
  19679. _ACEOF
  19680. cat confdefs.h >>conftest.$ac_ext
  19681. cat >>conftest.$ac_ext <<_ACEOF
  19682. /* end confdefs.h. */
  19683. $ac_includes_default
  19684. int
  19685. main ()
  19686. {
  19687. #ifndef strerror_r
  19688. char *p = (char *) strerror_r;
  19689. #endif
  19690. ;
  19691. return 0;
  19692. }
  19693. _ACEOF
  19694. rm -f conftest.$ac_objext
  19695. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19696. (eval $ac_compile) 2>conftest.er1
  19697. ac_status=$?
  19698. grep -v '^ *+' conftest.er1 >conftest.err
  19699. rm -f conftest.er1
  19700. cat conftest.err >&5
  19701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19702. (exit $ac_status); } &&
  19703. { ac_try='test -z "$ac_c_werror_flag"
  19704. || test ! -s conftest.err'
  19705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19706. (eval $ac_try) 2>&5
  19707. ac_status=$?
  19708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19709. (exit $ac_status); }; } &&
  19710. { ac_try='test -s conftest.$ac_objext'
  19711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19712. (eval $ac_try) 2>&5
  19713. ac_status=$?
  19714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19715. (exit $ac_status); }; }; then
  19716. ac_cv_have_decl_strerror_r=yes
  19717. else
  19718. echo "$as_me: failed program was:" >&5
  19719. sed 's/^/| /' conftest.$ac_ext >&5
  19720. ac_cv_have_decl_strerror_r=no
  19721. fi
  19722. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19723. fi
  19724. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19725. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19726. if test $ac_cv_have_decl_strerror_r = yes; then
  19727. cat >>confdefs.h <<_ACEOF
  19728. #define HAVE_DECL_STRERROR_R 1
  19729. _ACEOF
  19730. else
  19731. cat >>confdefs.h <<_ACEOF
  19732. #define HAVE_DECL_STRERROR_R 0
  19733. _ACEOF
  19734. fi
  19735. for ac_func in strerror_r
  19736. do
  19737. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19738. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19739. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19740. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19741. echo $ECHO_N "(cached) $ECHO_C" >&6
  19742. else
  19743. cat >conftest.$ac_ext <<_ACEOF
  19744. /* confdefs.h. */
  19745. _ACEOF
  19746. cat confdefs.h >>conftest.$ac_ext
  19747. cat >>conftest.$ac_ext <<_ACEOF
  19748. /* end confdefs.h. */
  19749. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19750. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19751. #define $ac_func innocuous_$ac_func
  19752. /* System header to define __stub macros and hopefully few prototypes,
  19753. which can conflict with char $ac_func (); below.
  19754. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19755. <limits.h> exists even on freestanding compilers. */
  19756. #ifdef __STDC__
  19757. # include <limits.h>
  19758. #else
  19759. # include <assert.h>
  19760. #endif
  19761. #undef $ac_func
  19762. /* Override any gcc2 internal prototype to avoid an error. */
  19763. #ifdef __cplusplus
  19764. extern "C"
  19765. {
  19766. #endif
  19767. /* We use char because int might match the return type of a gcc2
  19768. builtin and then its argument prototype would still apply. */
  19769. char $ac_func ();
  19770. /* The GNU C library defines this for functions which it implements
  19771. to always fail with ENOSYS. Some functions are actually named
  19772. something starting with __ and the normal name is an alias. */
  19773. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19774. choke me
  19775. #else
  19776. char (*f) () = $ac_func;
  19777. #endif
  19778. #ifdef __cplusplus
  19779. }
  19780. #endif
  19781. int
  19782. main ()
  19783. {
  19784. return f != $ac_func;
  19785. ;
  19786. return 0;
  19787. }
  19788. _ACEOF
  19789. rm -f conftest.$ac_objext conftest$ac_exeext
  19790. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19791. (eval $ac_link) 2>conftest.er1
  19792. ac_status=$?
  19793. grep -v '^ *+' conftest.er1 >conftest.err
  19794. rm -f conftest.er1
  19795. cat conftest.err >&5
  19796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19797. (exit $ac_status); } &&
  19798. { ac_try='test -z "$ac_c_werror_flag"
  19799. || test ! -s conftest.err'
  19800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19801. (eval $ac_try) 2>&5
  19802. ac_status=$?
  19803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19804. (exit $ac_status); }; } &&
  19805. { ac_try='test -s conftest$ac_exeext'
  19806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19807. (eval $ac_try) 2>&5
  19808. ac_status=$?
  19809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19810. (exit $ac_status); }; }; then
  19811. eval "$as_ac_var=yes"
  19812. else
  19813. echo "$as_me: failed program was:" >&5
  19814. sed 's/^/| /' conftest.$ac_ext >&5
  19815. eval "$as_ac_var=no"
  19816. fi
  19817. rm -f conftest.err conftest.$ac_objext \
  19818. conftest$ac_exeext conftest.$ac_ext
  19819. fi
  19820. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19821. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19822. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19823. cat >>confdefs.h <<_ACEOF
  19824. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19825. _ACEOF
  19826. fi
  19827. done
  19828. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19829. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19830. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19831. echo $ECHO_N "(cached) $ECHO_C" >&6
  19832. else
  19833. ac_cv_func_strerror_r_char_p=no
  19834. if test $ac_cv_have_decl_strerror_r = yes; then
  19835. cat >conftest.$ac_ext <<_ACEOF
  19836. /* confdefs.h. */
  19837. _ACEOF
  19838. cat confdefs.h >>conftest.$ac_ext
  19839. cat >>conftest.$ac_ext <<_ACEOF
  19840. /* end confdefs.h. */
  19841. $ac_includes_default
  19842. int
  19843. main ()
  19844. {
  19845. char buf[100];
  19846. char x = *strerror_r (0, buf, sizeof buf);
  19847. char *p = strerror_r (0, buf, sizeof buf);
  19848. ;
  19849. return 0;
  19850. }
  19851. _ACEOF
  19852. rm -f conftest.$ac_objext
  19853. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19854. (eval $ac_compile) 2>conftest.er1
  19855. ac_status=$?
  19856. grep -v '^ *+' conftest.er1 >conftest.err
  19857. rm -f conftest.er1
  19858. cat conftest.err >&5
  19859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19860. (exit $ac_status); } &&
  19861. { ac_try='test -z "$ac_c_werror_flag"
  19862. || test ! -s conftest.err'
  19863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19864. (eval $ac_try) 2>&5
  19865. ac_status=$?
  19866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19867. (exit $ac_status); }; } &&
  19868. { ac_try='test -s conftest.$ac_objext'
  19869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19870. (eval $ac_try) 2>&5
  19871. ac_status=$?
  19872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19873. (exit $ac_status); }; }; then
  19874. ac_cv_func_strerror_r_char_p=yes
  19875. else
  19876. echo "$as_me: failed program was:" >&5
  19877. sed 's/^/| /' conftest.$ac_ext >&5
  19878. fi
  19879. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19880. else
  19881. # strerror_r is not declared. Choose between
  19882. # systems that have relatively inaccessible declarations for the
  19883. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  19884. # former has a strerror_r that returns char*, while the latter
  19885. # has a strerror_r that returns `int'.
  19886. # This test should segfault on the DEC system.
  19887. if test "$cross_compiling" = yes; then
  19888. :
  19889. else
  19890. cat >conftest.$ac_ext <<_ACEOF
  19891. /* confdefs.h. */
  19892. _ACEOF
  19893. cat confdefs.h >>conftest.$ac_ext
  19894. cat >>conftest.$ac_ext <<_ACEOF
  19895. /* end confdefs.h. */
  19896. $ac_includes_default
  19897. extern char *strerror_r ();
  19898. int
  19899. main ()
  19900. {
  19901. char buf[100];
  19902. char x = *strerror_r (0, buf, sizeof buf);
  19903. exit (!isalpha (x));
  19904. ;
  19905. return 0;
  19906. }
  19907. _ACEOF
  19908. rm -f conftest$ac_exeext
  19909. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19910. (eval $ac_link) 2>&5
  19911. ac_status=$?
  19912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19913. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19915. (eval $ac_try) 2>&5
  19916. ac_status=$?
  19917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19918. (exit $ac_status); }; }; then
  19919. ac_cv_func_strerror_r_char_p=yes
  19920. else
  19921. echo "$as_me: program exited with status $ac_status" >&5
  19922. echo "$as_me: failed program was:" >&5
  19923. sed 's/^/| /' conftest.$ac_ext >&5
  19924. fi
  19925. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19926. fi
  19927. fi
  19928. fi
  19929. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  19930. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  19931. if test $ac_cv_func_strerror_r_char_p = yes; then
  19932. cat >>confdefs.h <<\_ACEOF
  19933. #define STRERROR_R_CHAR_P 1
  19934. _ACEOF
  19935. fi
  19936. for ac_func in strftime
  19937. do
  19938. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19939. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19940. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19941. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19942. echo $ECHO_N "(cached) $ECHO_C" >&6
  19943. else
  19944. cat >conftest.$ac_ext <<_ACEOF
  19945. /* confdefs.h. */
  19946. _ACEOF
  19947. cat confdefs.h >>conftest.$ac_ext
  19948. cat >>conftest.$ac_ext <<_ACEOF
  19949. /* end confdefs.h. */
  19950. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19951. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19952. #define $ac_func innocuous_$ac_func
  19953. /* System header to define __stub macros and hopefully few prototypes,
  19954. which can conflict with char $ac_func (); below.
  19955. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19956. <limits.h> exists even on freestanding compilers. */
  19957. #ifdef __STDC__
  19958. # include <limits.h>
  19959. #else
  19960. # include <assert.h>
  19961. #endif
  19962. #undef $ac_func
  19963. /* Override any gcc2 internal prototype to avoid an error. */
  19964. #ifdef __cplusplus
  19965. extern "C"
  19966. {
  19967. #endif
  19968. /* We use char because int might match the return type of a gcc2
  19969. builtin and then its argument prototype would still apply. */
  19970. char $ac_func ();
  19971. /* The GNU C library defines this for functions which it implements
  19972. to always fail with ENOSYS. Some functions are actually named
  19973. something starting with __ and the normal name is an alias. */
  19974. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19975. choke me
  19976. #else
  19977. char (*f) () = $ac_func;
  19978. #endif
  19979. #ifdef __cplusplus
  19980. }
  19981. #endif
  19982. int
  19983. main ()
  19984. {
  19985. return f != $ac_func;
  19986. ;
  19987. return 0;
  19988. }
  19989. _ACEOF
  19990. rm -f conftest.$ac_objext conftest$ac_exeext
  19991. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19992. (eval $ac_link) 2>conftest.er1
  19993. ac_status=$?
  19994. grep -v '^ *+' conftest.er1 >conftest.err
  19995. rm -f conftest.er1
  19996. cat conftest.err >&5
  19997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19998. (exit $ac_status); } &&
  19999. { ac_try='test -z "$ac_c_werror_flag"
  20000. || test ! -s conftest.err'
  20001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20002. (eval $ac_try) 2>&5
  20003. ac_status=$?
  20004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20005. (exit $ac_status); }; } &&
  20006. { ac_try='test -s conftest$ac_exeext'
  20007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20008. (eval $ac_try) 2>&5
  20009. ac_status=$?
  20010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20011. (exit $ac_status); }; }; then
  20012. eval "$as_ac_var=yes"
  20013. else
  20014. echo "$as_me: failed program was:" >&5
  20015. sed 's/^/| /' conftest.$ac_ext >&5
  20016. eval "$as_ac_var=no"
  20017. fi
  20018. rm -f conftest.err conftest.$ac_objext \
  20019. conftest$ac_exeext conftest.$ac_ext
  20020. fi
  20021. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20022. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20023. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20024. cat >>confdefs.h <<_ACEOF
  20025. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20026. _ACEOF
  20027. else
  20028. # strftime is in -lintl on SCO UNIX.
  20029. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20030. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20031. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20032. echo $ECHO_N "(cached) $ECHO_C" >&6
  20033. else
  20034. ac_check_lib_save_LIBS=$LIBS
  20035. LIBS="-lintl $LIBS"
  20036. cat >conftest.$ac_ext <<_ACEOF
  20037. /* confdefs.h. */
  20038. _ACEOF
  20039. cat confdefs.h >>conftest.$ac_ext
  20040. cat >>conftest.$ac_ext <<_ACEOF
  20041. /* end confdefs.h. */
  20042. /* Override any gcc2 internal prototype to avoid an error. */
  20043. #ifdef __cplusplus
  20044. extern "C"
  20045. #endif
  20046. /* We use char because int might match the return type of a gcc2
  20047. builtin and then its argument prototype would still apply. */
  20048. char strftime ();
  20049. int
  20050. main ()
  20051. {
  20052. strftime ();
  20053. ;
  20054. return 0;
  20055. }
  20056. _ACEOF
  20057. rm -f conftest.$ac_objext conftest$ac_exeext
  20058. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20059. (eval $ac_link) 2>conftest.er1
  20060. ac_status=$?
  20061. grep -v '^ *+' conftest.er1 >conftest.err
  20062. rm -f conftest.er1
  20063. cat conftest.err >&5
  20064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20065. (exit $ac_status); } &&
  20066. { ac_try='test -z "$ac_c_werror_flag"
  20067. || test ! -s conftest.err'
  20068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20069. (eval $ac_try) 2>&5
  20070. ac_status=$?
  20071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20072. (exit $ac_status); }; } &&
  20073. { ac_try='test -s conftest$ac_exeext'
  20074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20075. (eval $ac_try) 2>&5
  20076. ac_status=$?
  20077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20078. (exit $ac_status); }; }; then
  20079. ac_cv_lib_intl_strftime=yes
  20080. else
  20081. echo "$as_me: failed program was:" >&5
  20082. sed 's/^/| /' conftest.$ac_ext >&5
  20083. ac_cv_lib_intl_strftime=no
  20084. fi
  20085. rm -f conftest.err conftest.$ac_objext \
  20086. conftest$ac_exeext conftest.$ac_ext
  20087. LIBS=$ac_check_lib_save_LIBS
  20088. fi
  20089. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20090. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20091. if test $ac_cv_lib_intl_strftime = yes; then
  20092. cat >>confdefs.h <<\_ACEOF
  20093. #define HAVE_STRFTIME 1
  20094. _ACEOF
  20095. LIBS="-lintl $LIBS"
  20096. fi
  20097. fi
  20098. done
  20099. for ac_func in vprintf
  20100. do
  20101. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20102. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20103. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20104. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20105. echo $ECHO_N "(cached) $ECHO_C" >&6
  20106. else
  20107. cat >conftest.$ac_ext <<_ACEOF
  20108. /* confdefs.h. */
  20109. _ACEOF
  20110. cat confdefs.h >>conftest.$ac_ext
  20111. cat >>conftest.$ac_ext <<_ACEOF
  20112. /* end confdefs.h. */
  20113. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20114. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20115. #define $ac_func innocuous_$ac_func
  20116. /* System header to define __stub macros and hopefully few prototypes,
  20117. which can conflict with char $ac_func (); below.
  20118. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20119. <limits.h> exists even on freestanding compilers. */
  20120. #ifdef __STDC__
  20121. # include <limits.h>
  20122. #else
  20123. # include <assert.h>
  20124. #endif
  20125. #undef $ac_func
  20126. /* Override any gcc2 internal prototype to avoid an error. */
  20127. #ifdef __cplusplus
  20128. extern "C"
  20129. {
  20130. #endif
  20131. /* We use char because int might match the return type of a gcc2
  20132. builtin and then its argument prototype would still apply. */
  20133. char $ac_func ();
  20134. /* The GNU C library defines this for functions which it implements
  20135. to always fail with ENOSYS. Some functions are actually named
  20136. something starting with __ and the normal name is an alias. */
  20137. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20138. choke me
  20139. #else
  20140. char (*f) () = $ac_func;
  20141. #endif
  20142. #ifdef __cplusplus
  20143. }
  20144. #endif
  20145. int
  20146. main ()
  20147. {
  20148. return f != $ac_func;
  20149. ;
  20150. return 0;
  20151. }
  20152. _ACEOF
  20153. rm -f conftest.$ac_objext conftest$ac_exeext
  20154. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20155. (eval $ac_link) 2>conftest.er1
  20156. ac_status=$?
  20157. grep -v '^ *+' conftest.er1 >conftest.err
  20158. rm -f conftest.er1
  20159. cat conftest.err >&5
  20160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20161. (exit $ac_status); } &&
  20162. { ac_try='test -z "$ac_c_werror_flag"
  20163. || test ! -s conftest.err'
  20164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20165. (eval $ac_try) 2>&5
  20166. ac_status=$?
  20167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20168. (exit $ac_status); }; } &&
  20169. { ac_try='test -s conftest$ac_exeext'
  20170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20171. (eval $ac_try) 2>&5
  20172. ac_status=$?
  20173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20174. (exit $ac_status); }; }; then
  20175. eval "$as_ac_var=yes"
  20176. else
  20177. echo "$as_me: failed program was:" >&5
  20178. sed 's/^/| /' conftest.$ac_ext >&5
  20179. eval "$as_ac_var=no"
  20180. fi
  20181. rm -f conftest.err conftest.$ac_objext \
  20182. conftest$ac_exeext conftest.$ac_ext
  20183. fi
  20184. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20185. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20186. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20187. cat >>confdefs.h <<_ACEOF
  20188. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20189. _ACEOF
  20190. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20191. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20192. if test "${ac_cv_func__doprnt+set}" = set; then
  20193. echo $ECHO_N "(cached) $ECHO_C" >&6
  20194. else
  20195. cat >conftest.$ac_ext <<_ACEOF
  20196. /* confdefs.h. */
  20197. _ACEOF
  20198. cat confdefs.h >>conftest.$ac_ext
  20199. cat >>conftest.$ac_ext <<_ACEOF
  20200. /* end confdefs.h. */
  20201. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20202. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20203. #define _doprnt innocuous__doprnt
  20204. /* System header to define __stub macros and hopefully few prototypes,
  20205. which can conflict with char _doprnt (); below.
  20206. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20207. <limits.h> exists even on freestanding compilers. */
  20208. #ifdef __STDC__
  20209. # include <limits.h>
  20210. #else
  20211. # include <assert.h>
  20212. #endif
  20213. #undef _doprnt
  20214. /* Override any gcc2 internal prototype to avoid an error. */
  20215. #ifdef __cplusplus
  20216. extern "C"
  20217. {
  20218. #endif
  20219. /* We use char because int might match the return type of a gcc2
  20220. builtin and then its argument prototype would still apply. */
  20221. char _doprnt ();
  20222. /* The GNU C library defines this for functions which it implements
  20223. to always fail with ENOSYS. Some functions are actually named
  20224. something starting with __ and the normal name is an alias. */
  20225. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20226. choke me
  20227. #else
  20228. char (*f) () = _doprnt;
  20229. #endif
  20230. #ifdef __cplusplus
  20231. }
  20232. #endif
  20233. int
  20234. main ()
  20235. {
  20236. return f != _doprnt;
  20237. ;
  20238. return 0;
  20239. }
  20240. _ACEOF
  20241. rm -f conftest.$ac_objext conftest$ac_exeext
  20242. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20243. (eval $ac_link) 2>conftest.er1
  20244. ac_status=$?
  20245. grep -v '^ *+' conftest.er1 >conftest.err
  20246. rm -f conftest.er1
  20247. cat conftest.err >&5
  20248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20249. (exit $ac_status); } &&
  20250. { ac_try='test -z "$ac_c_werror_flag"
  20251. || test ! -s conftest.err'
  20252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20253. (eval $ac_try) 2>&5
  20254. ac_status=$?
  20255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20256. (exit $ac_status); }; } &&
  20257. { ac_try='test -s conftest$ac_exeext'
  20258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20259. (eval $ac_try) 2>&5
  20260. ac_status=$?
  20261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20262. (exit $ac_status); }; }; then
  20263. ac_cv_func__doprnt=yes
  20264. else
  20265. echo "$as_me: failed program was:" >&5
  20266. sed 's/^/| /' conftest.$ac_ext >&5
  20267. ac_cv_func__doprnt=no
  20268. fi
  20269. rm -f conftest.err conftest.$ac_objext \
  20270. conftest$ac_exeext conftest.$ac_ext
  20271. fi
  20272. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20273. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20274. if test $ac_cv_func__doprnt = yes; then
  20275. cat >>confdefs.h <<\_ACEOF
  20276. #define HAVE_DOPRNT 1
  20277. _ACEOF
  20278. fi
  20279. fi
  20280. done
  20281. for ac_func in setrlimit endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset
  20282. do
  20283. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20284. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20285. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20286. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20287. echo $ECHO_N "(cached) $ECHO_C" >&6
  20288. else
  20289. cat >conftest.$ac_ext <<_ACEOF
  20290. /* confdefs.h. */
  20291. _ACEOF
  20292. cat confdefs.h >>conftest.$ac_ext
  20293. cat >>conftest.$ac_ext <<_ACEOF
  20294. /* end confdefs.h. */
  20295. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20296. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20297. #define $ac_func innocuous_$ac_func
  20298. /* System header to define __stub macros and hopefully few prototypes,
  20299. which can conflict with char $ac_func (); below.
  20300. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20301. <limits.h> exists even on freestanding compilers. */
  20302. #ifdef __STDC__
  20303. # include <limits.h>
  20304. #else
  20305. # include <assert.h>
  20306. #endif
  20307. #undef $ac_func
  20308. /* Override any gcc2 internal prototype to avoid an error. */
  20309. #ifdef __cplusplus
  20310. extern "C"
  20311. {
  20312. #endif
  20313. /* We use char because int might match the return type of a gcc2
  20314. builtin and then its argument prototype would still apply. */
  20315. char $ac_func ();
  20316. /* The GNU C library defines this for functions which it implements
  20317. to always fail with ENOSYS. Some functions are actually named
  20318. something starting with __ and the normal name is an alias. */
  20319. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20320. choke me
  20321. #else
  20322. char (*f) () = $ac_func;
  20323. #endif
  20324. #ifdef __cplusplus
  20325. }
  20326. #endif
  20327. int
  20328. main ()
  20329. {
  20330. return f != $ac_func;
  20331. ;
  20332. return 0;
  20333. }
  20334. _ACEOF
  20335. rm -f conftest.$ac_objext conftest$ac_exeext
  20336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20337. (eval $ac_link) 2>conftest.er1
  20338. ac_status=$?
  20339. grep -v '^ *+' conftest.er1 >conftest.err
  20340. rm -f conftest.er1
  20341. cat conftest.err >&5
  20342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20343. (exit $ac_status); } &&
  20344. { ac_try='test -z "$ac_c_werror_flag"
  20345. || test ! -s conftest.err'
  20346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20347. (eval $ac_try) 2>&5
  20348. ac_status=$?
  20349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20350. (exit $ac_status); }; } &&
  20351. { ac_try='test -s conftest$ac_exeext'
  20352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20353. (eval $ac_try) 2>&5
  20354. ac_status=$?
  20355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20356. (exit $ac_status); }; }; then
  20357. eval "$as_ac_var=yes"
  20358. else
  20359. echo "$as_me: failed program was:" >&5
  20360. sed 's/^/| /' conftest.$ac_ext >&5
  20361. eval "$as_ac_var=no"
  20362. fi
  20363. rm -f conftest.err conftest.$ac_objext \
  20364. conftest$ac_exeext conftest.$ac_ext
  20365. fi
  20366. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20367. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20368. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20369. cat >>confdefs.h <<_ACEOF
  20370. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20371. _ACEOF
  20372. fi
  20373. done
  20374. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20375. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20376. # Check whether --enable-debug or --disable-debug was given.
  20377. if test "${enable_debug+set}" = set; then
  20378. enableval="$enable_debug"
  20379. echo "$as_me:$LINENO: result: yes" >&5
  20380. echo "${ECHO_T}yes" >&6
  20381. debug_defs="-DDEBUG -DMCC_DEBUG"
  20382. else
  20383. echo "$as_me:$LINENO: result: no" >&5
  20384. echo "${ECHO_T}no" >&6
  20385. debug_defs=""
  20386. fi;
  20387. # Used for legacy style packaging where we bundle all of the dependencies.
  20388. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20389. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20390. # Check whether --enable-bundle or --disable-bundle was given.
  20391. if test "${enable_bundle+set}" = set; then
  20392. enableval="$enable_bundle"
  20393. echo "$as_me:$LINENO: result: yes" >&5
  20394. echo "${ECHO_T}yes" >&6
  20395. bundle="1";
  20396. else
  20397. echo "$as_me:$LINENO: result: no" >&5
  20398. echo "${ECHO_T}no" >&6
  20399. bundle="";
  20400. fi;
  20401. if test "$bundle" = "1"; then
  20402. BUNDLE_TRUE=
  20403. BUNDLE_FALSE='#'
  20404. else
  20405. BUNDLE_TRUE='#'
  20406. BUNDLE_FALSE=
  20407. fi
  20408. # these enables are for optional or experimental features
  20409. if test -z "$enable_pam_passthru" ; then
  20410. enable_pam_passthru=yes # if not set on cmdline, set default
  20411. fi
  20412. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20413. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20414. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20415. if test "${enable_pam_passthru+set}" = set; then
  20416. enableval="$enable_pam_passthru"
  20417. fi;
  20418. if test "$enable_pam_passthru" = yes ; then
  20419. echo "$as_me:$LINENO: result: yes" >&5
  20420. echo "${ECHO_T}yes" >&6
  20421. cat >>confdefs.h <<\_ACEOF
  20422. #define ENABLE_PAM_PASSTHRU 1
  20423. _ACEOF
  20424. else
  20425. echo "$as_me:$LINENO: result: no" >&5
  20426. echo "${ECHO_T}no" >&6
  20427. fi
  20428. if test "$enable_pam_passthru" = "yes"; then
  20429. enable_pam_passthru_TRUE=
  20430. enable_pam_passthru_FALSE='#'
  20431. else
  20432. enable_pam_passthru_TRUE='#'
  20433. enable_pam_passthru_FALSE=
  20434. fi
  20435. if test -z "$enable_dna" ; then
  20436. enable_dna=yes # if not set on cmdline, set default
  20437. fi
  20438. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20439. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20440. # Check whether --enable-dna or --disable-dna was given.
  20441. if test "${enable_dna+set}" = set; then
  20442. enableval="$enable_dna"
  20443. fi;
  20444. if test "$enable_dna" = yes ; then
  20445. echo "$as_me:$LINENO: result: yes" >&5
  20446. echo "${ECHO_T}yes" >&6
  20447. cat >>confdefs.h <<\_ACEOF
  20448. #define ENABLE_DNA 1
  20449. _ACEOF
  20450. else
  20451. echo "$as_me:$LINENO: result: no" >&5
  20452. echo "${ECHO_T}no" >&6
  20453. fi
  20454. if test "$enable_dna" = "yes"; then
  20455. enable_dna_TRUE=
  20456. enable_dna_FALSE='#'
  20457. else
  20458. enable_dna_TRUE='#'
  20459. enable_dna_FALSE=
  20460. fi
  20461. if test -z "$enable_ldapi" ; then
  20462. enable_ldapi=yes # if not set on cmdline, set default
  20463. fi
  20464. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20465. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20466. # Check whether --enable-ldapi or --disable-ldapi was given.
  20467. if test "${enable_ldapi+set}" = set; then
  20468. enableval="$enable_ldapi"
  20469. fi;
  20470. if test "$enable_ldapi" = yes ; then
  20471. echo "$as_me:$LINENO: result: yes" >&5
  20472. echo "${ECHO_T}yes" >&6
  20473. cat >>confdefs.h <<\_ACEOF
  20474. #define ENABLE_LDAPI 1
  20475. _ACEOF
  20476. else
  20477. echo "$as_me:$LINENO: result: no" >&5
  20478. echo "${ECHO_T}no" >&6
  20479. fi
  20480. if test "$enable_ldapi" = "yes"; then
  20481. enable_ldapi_TRUE=
  20482. enable_ldapi_FALSE='#'
  20483. else
  20484. enable_ldapi_TRUE='#'
  20485. enable_ldapi_FALSE=
  20486. fi
  20487. # the default prefix - override with --prefix or --with-fhs
  20488. # BEGIN COPYRIGHT BLOCK
  20489. # Copyright (C) 2006 Red Hat, Inc.
  20490. # All rights reserved.
  20491. #
  20492. # This program is free software; you can redistribute it and/or
  20493. # modify it under the terms of the GNU General Public License
  20494. # as published by the Free Software Foundation; either version 2
  20495. # of the License, or (at your option) any later version.
  20496. #
  20497. # This program is distributed in the hope that it will be useful,
  20498. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20499. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20500. # GNU General Public License for more details.
  20501. #
  20502. # You should have received a copy of the GNU General Public License
  20503. # along with this program; if not, write to the Free Software
  20504. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20505. #
  20506. # END COPYRIGHT BLOCK
  20507. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20508. echo "$as_me: checking for FHS..." >&6;}
  20509. # check for --with-fhs
  20510. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20511. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20512. # Check whether --with-fhs or --without-fhs was given.
  20513. if test "${with_fhs+set}" = set; then
  20514. withval="$with_fhs"
  20515. with_fhs=yes
  20516. echo "$as_me:$LINENO: result: yes" >&5
  20517. echo "${ECHO_T}yes" >&6
  20518. else
  20519. echo "$as_me:$LINENO: result: no" >&5
  20520. echo "${ECHO_T}no" >&6
  20521. fi;
  20522. if test "$with_fhs" = "yes"; then
  20523. cat >>confdefs.h <<\_ACEOF
  20524. #define IS_FHS 1
  20525. _ACEOF
  20526. fi
  20527. # check for --with-fhs-opt
  20528. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20529. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20530. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20531. if test "${with_fhs_opt+set}" = set; then
  20532. withval="$with_fhs_opt"
  20533. with_fhs_opt=yes
  20534. echo "$as_me:$LINENO: result: yes" >&5
  20535. echo "${ECHO_T}yes" >&6
  20536. else
  20537. echo "$as_me:$LINENO: result: no" >&5
  20538. echo "${ECHO_T}no" >&6
  20539. fi;
  20540. if test "$with_fhs_opt" = "yes"; then
  20541. cat >>confdefs.h <<\_ACEOF
  20542. #define IS_FHS_OPT 1
  20543. _ACEOF
  20544. fi
  20545. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20546. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20547. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20548. { (exit 1); exit 1; }; }
  20549. fi
  20550. # installation paths - by default, we store everything
  20551. # under the prefix. The with-fhs option will use /usr,
  20552. # /etc, and /var. The with-fhs-opt option will use the
  20553. # prefix, but it's sysconfdir and localstatedir will be
  20554. # /etc/opt, and /var/opt.
  20555. if test "$with_fhs_opt" = "yes"; then
  20556. # Override sysconfdir and localstatedir if FHS optional
  20557. # package was requested.
  20558. sysconfdir='/etc/opt'
  20559. localstatedir='/var/opt'
  20560. # relative to datadir
  20561. sampledatadir=/data
  20562. # relative to datadir
  20563. scripttemplatedir=/script-templates
  20564. # relative to libdir
  20565. serverdir=
  20566. # relative to libdir
  20567. serverplugindir=/plugins
  20568. else
  20569. if test "$with_fhs" = "yes"; then
  20570. ac_default_prefix=/usr
  20571. prefix=$ac_default_prefix
  20572. exec_prefix=$prefix
  20573. sysconfdir='/etc'
  20574. localstatedir='/var'
  20575. fi
  20576. # relative to datadir
  20577. sampledatadir=/$PACKAGE_NAME/data
  20578. # relative to datadir
  20579. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20580. # relative to libdir
  20581. serverdir=/$PACKAGE_NAME
  20582. # relative to libdir
  20583. serverplugindir=/$PACKAGE_NAME/plugins
  20584. fi
  20585. # Shared paths for all layouts
  20586. # relative to sysconfdir
  20587. configdir=/$PACKAGE_NAME/config
  20588. # relative to sysconfdir
  20589. propertydir=/$PACKAGE_NAME/property
  20590. # relative to sysconfdir
  20591. schemadir=/$PACKAGE_NAME/schema
  20592. # check for --with-instconfigdir
  20593. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20594. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20595. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20596. if test "${with_instconfigdir+set}" = set; then
  20597. withval="$with_instconfigdir"
  20598. if test $withval = yes ; then
  20599. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20600. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20601. { (exit 1); exit 1; }; }
  20602. fi
  20603. instconfigdir="$withval"
  20604. else
  20605. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20606. fi;
  20607. # WINNT should be true if building on Windows system not using
  20608. # cygnus, mingw, or the like and using cmd.exe as the shell
  20609. if false; then
  20610. WINNT_TRUE=
  20611. WINNT_FALSE='#'
  20612. else
  20613. WINNT_TRUE='#'
  20614. WINNT_FALSE=
  20615. fi
  20616. # Deal with platform dependent defines
  20617. # relative to sysconfdir
  20618. initdir=/rc.d
  20619. case $host in
  20620. *-*-linux*)
  20621. cat >>confdefs.h <<\_ACEOF
  20622. #define XP_UNIX 1
  20623. _ACEOF
  20624. cat >>confdefs.h <<\_ACEOF
  20625. #define Linux 1
  20626. _ACEOF
  20627. cat >>confdefs.h <<\_ACEOF
  20628. #define LINUX 1
  20629. _ACEOF
  20630. cat >>confdefs.h <<\_ACEOF
  20631. #define LINUX2_0 1
  20632. _ACEOF
  20633. cat >>confdefs.h <<\_ACEOF
  20634. #define LINUX2_2 1
  20635. _ACEOF
  20636. cat >>confdefs.h <<\_ACEOF
  20637. #define LINUX2_4 1
  20638. _ACEOF
  20639. platform="linux"
  20640. # relative to sysconfdir
  20641. initdir=/rc.d/init.d
  20642. ;;
  20643. ia64-hp-hpux*)
  20644. cat >>confdefs.h <<\_ACEOF
  20645. #define XP_UNIX 1
  20646. _ACEOF
  20647. cat >>confdefs.h <<\_ACEOF
  20648. #define hpux 1
  20649. _ACEOF
  20650. cat >>confdefs.h <<\_ACEOF
  20651. #define HPUX 1
  20652. _ACEOF
  20653. cat >>confdefs.h <<\_ACEOF
  20654. #define HPUX11 1
  20655. _ACEOF
  20656. cat >>confdefs.h <<\_ACEOF
  20657. #define HPUX11_23 1
  20658. _ACEOF
  20659. cat >>confdefs.h <<\_ACEOF
  20660. #define CPU_ia64
  20661. _ACEOF
  20662. cat >>confdefs.h <<\_ACEOF
  20663. #define OS_hpux 1
  20664. _ACEOF
  20665. cat >>confdefs.h <<\_ACEOF
  20666. #define _POSIX_C_SOURCE 199506L
  20667. _ACEOF
  20668. cat >>confdefs.h <<\_ACEOF
  20669. #define _HPUX_SOURCE 1
  20670. _ACEOF
  20671. platform="hpux"
  20672. ;;
  20673. hppa*-hp-hpux*)
  20674. cat >>confdefs.h <<\_ACEOF
  20675. #define XP_UNIX 1
  20676. _ACEOF
  20677. cat >>confdefs.h <<\_ACEOF
  20678. #define hpux 1
  20679. _ACEOF
  20680. cat >>confdefs.h <<\_ACEOF
  20681. #define HPUX 1
  20682. _ACEOF
  20683. cat >>confdefs.h <<\_ACEOF
  20684. #define HPUX11 1
  20685. _ACEOF
  20686. cat >>confdefs.h <<\_ACEOF
  20687. #define HPUX11_11 1
  20688. _ACEOF
  20689. cat >>confdefs.h <<\_ACEOF
  20690. #define CPU_hppa
  20691. _ACEOF
  20692. cat >>confdefs.h <<\_ACEOF
  20693. #define OS_hpux 1
  20694. _ACEOF
  20695. cat >>confdefs.h <<\_ACEOF
  20696. #define _POSIX_C_SOURCE 199506L
  20697. _ACEOF
  20698. cat >>confdefs.h <<\_ACEOF
  20699. #define _HPUX_SOURCE 1
  20700. _ACEOF
  20701. platform="hpux"
  20702. ;;
  20703. sparc-sun-solaris*)
  20704. cat >>confdefs.h <<\_ACEOF
  20705. #define XP_UNIX 1
  20706. _ACEOF
  20707. cat >>confdefs.h <<\_ACEOF
  20708. #define SVR4 1
  20709. _ACEOF
  20710. cat >>confdefs.h <<\_ACEOF
  20711. #define __svr4 1
  20712. _ACEOF
  20713. cat >>confdefs.h <<\_ACEOF
  20714. #define __svr4__ 1
  20715. _ACEOF
  20716. cat >>confdefs.h <<\_ACEOF
  20717. #define _SVID_GETTOD 1
  20718. _ACEOF
  20719. cat >>confdefs.h <<\_ACEOF
  20720. #define SOLARIS 1
  20721. _ACEOF
  20722. cat >>confdefs.h <<\_ACEOF
  20723. #define CPU_sparc
  20724. _ACEOF
  20725. cat >>confdefs.h <<\_ACEOF
  20726. #define OS_solaris 1
  20727. _ACEOF
  20728. cat >>confdefs.h <<\_ACEOF
  20729. #define sunos5 1
  20730. _ACEOF
  20731. cat >>confdefs.h <<\_ACEOF
  20732. #define OSVERSION 509
  20733. _ACEOF
  20734. cat >>confdefs.h <<\_ACEOF
  20735. #define _REENTRANT 1
  20736. _ACEOF
  20737. LIBSOCKET=-lsocket
  20738. LIBSOCKET=$LIBSOCKET
  20739. LIBNSL=-lnsl
  20740. LIBNSL=$LIBNSL
  20741. LIBDL=-ldl
  20742. LIBDL=$LIBDL
  20743. LIBCSTD=-lCstd
  20744. LIBCSTD=$LIBCSTD
  20745. LIBCRUN=-lCrun
  20746. LIBCRUN=$LIBCRUN
  20747. platform="solaris"
  20748. # relative to sysconfdir
  20749. initdir=/init.d
  20750. ;;
  20751. *)
  20752. platform=""
  20753. ;;
  20754. esac
  20755. if test "$platform" = "hpux"; then
  20756. HPUX_TRUE=
  20757. HPUX_FALSE='#'
  20758. else
  20759. HPUX_TRUE='#'
  20760. HPUX_FALSE=
  20761. fi
  20762. if test "$platform" = "solaris"; then
  20763. SOLARIS_TRUE=
  20764. SOLARIS_FALSE='#'
  20765. else
  20766. SOLARIS_TRUE='#'
  20767. SOLARIS_FALSE=
  20768. fi
  20769. # Check for library dependencies
  20770. # BEGIN COPYRIGHT BLOCK
  20771. # Copyright (C) 2007 Red Hat, Inc.
  20772. # All rights reserved.
  20773. #
  20774. # This program is free software; you can redistribute it and/or
  20775. # modify it under the terms of the GNU General Public License
  20776. # as published by the Free Software Foundation; either version 2
  20777. # of the License, or (at your option) any later version.
  20778. #
  20779. # This program is distributed in the hope that it will be useful,
  20780. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20781. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20782. # GNU General Public License for more details.
  20783. #
  20784. # You should have received a copy of the GNU General Public License
  20785. # along with this program; if not, write to the Free Software
  20786. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20787. #
  20788. # END COPYRIGHT BLOCK
  20789. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  20790. echo "$as_me: checking for NSPR..." >&6;}
  20791. # check for --with-nspr
  20792. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  20793. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  20794. # Check whether --with-nspr or --without-nspr was given.
  20795. if test "${with_nspr+set}" = set; then
  20796. withval="$with_nspr"
  20797. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  20798. then
  20799. echo "$as_me:$LINENO: result: using $withval" >&5
  20800. echo "${ECHO_T}using $withval" >&6
  20801. NSPRDIR=$withval
  20802. nspr_inc="-I$NSPRDIR/include"
  20803. nspr_lib="-L$NSPRDIR/lib"
  20804. nspr_libdir="$NSPRDIR/lib"
  20805. else
  20806. echo
  20807. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20808. echo "$as_me: error: $withval not found" >&2;}
  20809. { (exit 1); exit 1; }; }
  20810. fi
  20811. else
  20812. echo "$as_me:$LINENO: result: no" >&5
  20813. echo "${ECHO_T}no" >&6
  20814. fi;
  20815. # check for --with-nspr-inc
  20816. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  20817. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  20818. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  20819. if test "${with_nspr_inc+set}" = set; then
  20820. withval="$with_nspr_inc"
  20821. if test -e "$withval"/nspr.h
  20822. then
  20823. echo "$as_me:$LINENO: result: using $withval" >&5
  20824. echo "${ECHO_T}using $withval" >&6
  20825. nspr_inc="-I$withval"
  20826. else
  20827. echo
  20828. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20829. echo "$as_me: error: $withval not found" >&2;}
  20830. { (exit 1); exit 1; }; }
  20831. fi
  20832. else
  20833. echo "$as_me:$LINENO: result: no" >&5
  20834. echo "${ECHO_T}no" >&6
  20835. fi;
  20836. # check for --with-nspr-lib
  20837. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  20838. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  20839. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  20840. if test "${with_nspr_lib+set}" = set; then
  20841. withval="$with_nspr_lib"
  20842. if test -d "$withval"
  20843. then
  20844. echo "$as_me:$LINENO: result: using $withval" >&5
  20845. echo "${ECHO_T}using $withval" >&6
  20846. nspr_lib="-L$withval"
  20847. nspr_libdir="$withval"
  20848. else
  20849. echo
  20850. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20851. echo "$as_me: error: $withval not found" >&2;}
  20852. { (exit 1); exit 1; }; }
  20853. fi
  20854. else
  20855. echo "$as_me:$LINENO: result: no" >&5
  20856. echo "${ECHO_T}no" >&6
  20857. fi;
  20858. # if NSPR is not found yet, try pkg-config
  20859. # last resort
  20860. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  20861. # Extract the first word of "pkg-config", so it can be a program name with args.
  20862. set dummy pkg-config; ac_word=$2
  20863. echo "$as_me:$LINENO: checking for $ac_word" >&5
  20864. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  20865. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  20866. echo $ECHO_N "(cached) $ECHO_C" >&6
  20867. else
  20868. case $PKG_CONFIG in
  20869. [\\/]* | ?:[\\/]*)
  20870. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20871. ;;
  20872. *)
  20873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20874. for as_dir in $PATH
  20875. do
  20876. IFS=$as_save_IFS
  20877. test -z "$as_dir" && as_dir=.
  20878. for ac_exec_ext in '' $ac_executable_extensions; do
  20879. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20880. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20881. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20882. break 2
  20883. fi
  20884. done
  20885. done
  20886. ;;
  20887. esac
  20888. fi
  20889. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20890. if test -n "$PKG_CONFIG"; then
  20891. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  20892. echo "${ECHO_T}$PKG_CONFIG" >&6
  20893. else
  20894. echo "$as_me:$LINENO: result: no" >&5
  20895. echo "${ECHO_T}no" >&6
  20896. fi
  20897. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  20898. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  20899. if test -n "$PKG_CONFIG"; then
  20900. if $PKG_CONFIG --exists nspr; then
  20901. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  20902. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  20903. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  20904. echo "$as_me:$LINENO: result: using system NSPR" >&5
  20905. echo "${ECHO_T}using system NSPR" >&6
  20906. elif $PKG_CONFIG --exists dirsec-nspr; then
  20907. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  20908. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  20909. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  20910. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  20911. echo "${ECHO_T}using system dirsec NSPR" >&6
  20912. else
  20913. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  20914. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  20915. { (exit 1); exit 1; }; }
  20916. fi
  20917. fi
  20918. fi
  20919. # BEGIN COPYRIGHT BLOCK
  20920. # Copyright (C) 2007 Red Hat, Inc.
  20921. # All rights reserved.
  20922. #
  20923. # This program is free software; you can redistribute it and/or
  20924. # modify it under the terms of the GNU General Public License
  20925. # as published by the Free Software Foundation; either version 2
  20926. # of the License, or (at your option) any later version.
  20927. #
  20928. # This program is distributed in the hope that it will be useful,
  20929. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20930. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20931. # GNU General Public License for more details.
  20932. #
  20933. # You should have received a copy of the GNU General Public License
  20934. # along with this program; if not, write to the Free Software
  20935. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20936. #
  20937. # END COPYRIGHT BLOCK
  20938. { echo "$as_me:$LINENO: checking for NSS..." >&5
  20939. echo "$as_me: checking for NSS..." >&6;}
  20940. # check for --with-nss
  20941. echo "$as_me:$LINENO: checking for --with-nss" >&5
  20942. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  20943. # Check whether --with-nss or --without-nss was given.
  20944. if test "${with_nss+set}" = set; then
  20945. withval="$with_nss"
  20946. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  20947. then
  20948. echo "$as_me:$LINENO: result: using $withval" >&5
  20949. echo "${ECHO_T}using $withval" >&6
  20950. NSSDIR=$withval
  20951. nss_inc="-I$NSSDIR/include"
  20952. nss_lib="-L$NSSDIR/lib"
  20953. nss_libdir="$NSSDIR/lib"
  20954. else
  20955. echo
  20956. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20957. echo "$as_me: error: $withval not found" >&2;}
  20958. { (exit 1); exit 1; }; }
  20959. fi
  20960. else
  20961. echo "$as_me:$LINENO: result: no" >&5
  20962. echo "${ECHO_T}no" >&6
  20963. fi;
  20964. # check for --with-nss-inc
  20965. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  20966. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  20967. # Check whether --with-nss-inc or --without-nss-inc was given.
  20968. if test "${with_nss_inc+set}" = set; then
  20969. withval="$with_nss_inc"
  20970. if test -e "$withval"/nss.h
  20971. then
  20972. echo "$as_me:$LINENO: result: using $withval" >&5
  20973. echo "${ECHO_T}using $withval" >&6
  20974. nss_inc="-I$withval"
  20975. else
  20976. echo
  20977. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20978. echo "$as_me: error: $withval not found" >&2;}
  20979. { (exit 1); exit 1; }; }
  20980. fi
  20981. else
  20982. echo "$as_me:$LINENO: result: no" >&5
  20983. echo "${ECHO_T}no" >&6
  20984. fi;
  20985. # check for --with-nss-lib
  20986. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  20987. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  20988. # Check whether --with-nss-lib or --without-nss-lib was given.
  20989. if test "${with_nss_lib+set}" = set; then
  20990. withval="$with_nss_lib"
  20991. if test -d "$withval"
  20992. then
  20993. echo "$as_me:$LINENO: result: using $withval" >&5
  20994. echo "${ECHO_T}using $withval" >&6
  20995. nss_lib="-L$withval"
  20996. nss_libdir="$withval"
  20997. else
  20998. echo
  20999. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21000. echo "$as_me: error: $withval not found" >&2;}
  21001. { (exit 1); exit 1; }; }
  21002. fi
  21003. else
  21004. echo "$as_me:$LINENO: result: no" >&5
  21005. echo "${ECHO_T}no" >&6
  21006. fi;
  21007. # if NSS is not found yet, try pkg-config
  21008. # last resort
  21009. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21010. # Extract the first word of "pkg-config", so it can be a program name with args.
  21011. set dummy pkg-config; ac_word=$2
  21012. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21013. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21014. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21015. echo $ECHO_N "(cached) $ECHO_C" >&6
  21016. else
  21017. case $PKG_CONFIG in
  21018. [\\/]* | ?:[\\/]*)
  21019. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21020. ;;
  21021. *)
  21022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21023. for as_dir in $PATH
  21024. do
  21025. IFS=$as_save_IFS
  21026. test -z "$as_dir" && as_dir=.
  21027. for ac_exec_ext in '' $ac_executable_extensions; do
  21028. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21029. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21030. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21031. break 2
  21032. fi
  21033. done
  21034. done
  21035. ;;
  21036. esac
  21037. fi
  21038. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21039. if test -n "$PKG_CONFIG"; then
  21040. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21041. echo "${ECHO_T}$PKG_CONFIG" >&6
  21042. else
  21043. echo "$as_me:$LINENO: result: no" >&5
  21044. echo "${ECHO_T}no" >&6
  21045. fi
  21046. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21047. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21048. if test -n "$PKG_CONFIG"; then
  21049. if $PKG_CONFIG --exists nss; then
  21050. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21051. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21052. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21053. echo "$as_me:$LINENO: result: using system NSS" >&5
  21054. echo "${ECHO_T}using system NSS" >&6
  21055. elif $PKG_CONFIG --exists dirsec-nss; then
  21056. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21057. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21058. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21059. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21060. echo "${ECHO_T}using system dirsec NSS" >&6
  21061. else
  21062. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21063. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21064. { (exit 1); exit 1; }; }
  21065. fi
  21066. fi
  21067. fi
  21068. # BEGIN COPYRIGHT BLOCK
  21069. # Copyright (C) 2007 Red Hat, Inc.
  21070. # All rights reserved.
  21071. #
  21072. # This program is free software; you can redistribute it and/or
  21073. # modify it under the terms of the GNU General Public License
  21074. # as published by the Free Software Foundation; either version 2
  21075. # of the License, or (at your option) any later version.
  21076. #
  21077. # This program is distributed in the hope that it will be useful,
  21078. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21079. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21080. # GNU General Public License for more details.
  21081. #
  21082. # You should have received a copy of the GNU General Public License
  21083. # along with this program; if not, write to the Free Software
  21084. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21085. #
  21086. # END COPYRIGHT BLOCK
  21087. { echo "$as_me:$LINENO: checking for LDAPSDK..." >&5
  21088. echo "$as_me: checking for LDAPSDK..." >&6;}
  21089. # check for --with-ldapsdk
  21090. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  21091. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  21092. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  21093. if test "${with_ldapsdk+set}" = set; then
  21094. withval="$with_ldapsdk"
  21095. if test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21096. then
  21097. echo "$as_me:$LINENO: result: using $withval" >&5
  21098. echo "${ECHO_T}using $withval" >&6
  21099. LDAPSDKDIR=$withval
  21100. ldapsdk_inc="-I$LDAPSDKDIR/include"
  21101. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  21102. ldapsdk_libdir="$LDAPSDKDIR/lib"
  21103. ldapsdk_bindir="$LDAPSDKDIR/bin"
  21104. else
  21105. echo
  21106. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21107. echo "$as_me: error: $withval not found" >&2;}
  21108. { (exit 1); exit 1; }; }
  21109. fi
  21110. else
  21111. echo "$as_me:$LINENO: result: no" >&5
  21112. echo "${ECHO_T}no" >&6
  21113. fi;
  21114. # check for --with-ldapsdk-inc
  21115. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  21116. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  21117. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  21118. if test "${with_ldapsdk_inc+set}" = set; then
  21119. withval="$with_ldapsdk_inc"
  21120. if test -e "$withval"/ldap.h
  21121. then
  21122. echo "$as_me:$LINENO: result: using $withval" >&5
  21123. echo "${ECHO_T}using $withval" >&6
  21124. ldapsdk_inc="-I$withval"
  21125. else
  21126. echo
  21127. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21128. echo "$as_me: error: $withval not found" >&2;}
  21129. { (exit 1); exit 1; }; }
  21130. fi
  21131. else
  21132. echo "$as_me:$LINENO: result: no" >&5
  21133. echo "${ECHO_T}no" >&6
  21134. fi;
  21135. # check for --with-ldapsdk-lib
  21136. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  21137. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  21138. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  21139. if test "${with_ldapsdk_lib+set}" = set; then
  21140. withval="$with_ldapsdk_lib"
  21141. if test -d "$withval"
  21142. then
  21143. echo "$as_me:$LINENO: result: using $withval" >&5
  21144. echo "${ECHO_T}using $withval" >&6
  21145. ldapsdk_lib="-L$withval"
  21146. ldapsdk_libdir="$withval"
  21147. else
  21148. echo
  21149. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21150. echo "$as_me: error: $withval not found" >&2;}
  21151. { (exit 1); exit 1; }; }
  21152. fi
  21153. else
  21154. echo "$as_me:$LINENO: result: no" >&5
  21155. echo "${ECHO_T}no" >&6
  21156. fi;
  21157. # if LDAPSDK is not found yet, try pkg-config
  21158. # last resort
  21159. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  21160. # Extract the first word of "pkg-config", so it can be a program name with args.
  21161. set dummy pkg-config; ac_word=$2
  21162. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21164. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21165. echo $ECHO_N "(cached) $ECHO_C" >&6
  21166. else
  21167. case $PKG_CONFIG in
  21168. [\\/]* | ?:[\\/]*)
  21169. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21170. ;;
  21171. *)
  21172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21173. for as_dir in $PATH
  21174. do
  21175. IFS=$as_save_IFS
  21176. test -z "$as_dir" && as_dir=.
  21177. for ac_exec_ext in '' $ac_executable_extensions; do
  21178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21179. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21181. break 2
  21182. fi
  21183. done
  21184. done
  21185. ;;
  21186. esac
  21187. fi
  21188. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21189. if test -n "$PKG_CONFIG"; then
  21190. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21191. echo "${ECHO_T}$PKG_CONFIG" >&6
  21192. else
  21193. echo "$as_me:$LINENO: result: no" >&5
  21194. echo "${ECHO_T}no" >&6
  21195. fi
  21196. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  21197. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  21198. if test -n "$PKG_CONFIG"; then
  21199. if $PKG_CONFIG --exists mozldap6; then
  21200. mozldappkg=mozldap6
  21201. elif $PKG_CONFIG --exists mozldap; then
  21202. mozldappkg=mozldap
  21203. else
  21204. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&5
  21205. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&2;}
  21206. { (exit 1); exit 1; }; }
  21207. fi
  21208. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  21209. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  21210. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  21211. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  21212. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  21213. echo "${ECHO_T}using system $mozldappkg" >&6
  21214. fi
  21215. fi
  21216. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  21217. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&5
  21218. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&2;}
  21219. { (exit 1); exit 1; }; }
  21220. fi
  21221. if test -z "$ldapsdk_bindir" ; then
  21222. if -d $libdir/mozldap6 ; then
  21223. ldapsdk_bindir=$libdir/mozldap6
  21224. else
  21225. ldapsdk_bindir=$libdir/mozldap
  21226. fi
  21227. fi
  21228. save_cppflags="$CPPFLAGS"
  21229. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  21230. echo "$as_me:$LINENO: checking for ldap.h" >&5
  21231. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  21232. if test "${ac_cv_header_ldap_h+set}" = set; then
  21233. echo $ECHO_N "(cached) $ECHO_C" >&6
  21234. else
  21235. cat >conftest.$ac_ext <<_ACEOF
  21236. /* confdefs.h. */
  21237. _ACEOF
  21238. cat confdefs.h >>conftest.$ac_ext
  21239. cat >>conftest.$ac_ext <<_ACEOF
  21240. /* end confdefs.h. */
  21241. #include <ldap-standard.h>
  21242. #if LDAP_VENDOR_VERSION < 600
  21243. #error The LDAP C SDK version is not supported
  21244. #endif
  21245. #include <ldap.h>
  21246. _ACEOF
  21247. rm -f conftest.$ac_objext
  21248. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21249. (eval $ac_compile) 2>conftest.er1
  21250. ac_status=$?
  21251. grep -v '^ *+' conftest.er1 >conftest.err
  21252. rm -f conftest.er1
  21253. cat conftest.err >&5
  21254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21255. (exit $ac_status); } &&
  21256. { ac_try='test -z "$ac_c_werror_flag"
  21257. || test ! -s conftest.err'
  21258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21259. (eval $ac_try) 2>&5
  21260. ac_status=$?
  21261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21262. (exit $ac_status); }; } &&
  21263. { ac_try='test -s conftest.$ac_objext'
  21264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21265. (eval $ac_try) 2>&5
  21266. ac_status=$?
  21267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21268. (exit $ac_status); }; }; then
  21269. ac_cv_header_ldap_h=yes
  21270. else
  21271. echo "$as_me: failed program was:" >&5
  21272. sed 's/^/| /' conftest.$ac_ext >&5
  21273. ac_cv_header_ldap_h=no
  21274. fi
  21275. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21276. fi
  21277. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  21278. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  21279. if test $ac_cv_header_ldap_h = yes; then
  21280. isversion6=1
  21281. else
  21282. isversion6=
  21283. fi
  21284. CPPFLAGS="$save_cppflags"
  21285. if test -z "$isversion6" ; then
  21286. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  21287. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  21288. { (exit 1); exit 1; }; }
  21289. fi
  21290. # BEGIN COPYRIGHT BLOCK
  21291. # Copyright (C) 2007 Red Hat, Inc.
  21292. # All rights reserved.
  21293. #
  21294. # This program is free software; you can redistribute it and/or
  21295. # modify it under the terms of the GNU General Public License
  21296. # as published by the Free Software Foundation; either version 2
  21297. # of the License, or (at your option) any later version.
  21298. #
  21299. # This program is distributed in the hope that it will be useful,
  21300. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21301. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21302. # GNU General Public License for more details.
  21303. #
  21304. # You should have received a copy of the GNU General Public License
  21305. # along with this program; if not, write to the Free Software
  21306. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21307. #
  21308. # END COPYRIGHT BLOCK
  21309. { echo "$as_me:$LINENO: checking for db..." >&5
  21310. echo "$as_me: checking for db..." >&6;}
  21311. echo "$as_me:$LINENO: checking for --with-db" >&5
  21312. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  21313. # Check whether --with-db or --without-db was given.
  21314. if test "${with_db+set}" = set; then
  21315. withval="$with_db"
  21316. if test "$withval" = "yes"; then
  21317. echo "$as_me:$LINENO: result: yes" >&5
  21318. echo "${ECHO_T}yes" >&6
  21319. if test -f "/usr/include/db.h"; then
  21320. db_incdir="/usr/include"
  21321. db_inc="-I/usr/include"
  21322. else
  21323. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  21324. echo "$as_me: error: db.h not found" >&2;}
  21325. { (exit 1); exit 1; }; }
  21326. fi
  21327. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21328. echo "$as_me:$LINENO: result: using $withval" >&5
  21329. echo "${ECHO_T}using $withval" >&6
  21330. DBDIR=$withval
  21331. db_lib="-L$DBDIR/lib"
  21332. db_libdir="$DBDIR/lib"
  21333. db_incdir="$DBDIR/include"
  21334. if ! test -e "$db_incdir/db.h" ; then
  21335. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21336. echo "$as_me: error: $withval include dir not found" >&2;}
  21337. { (exit 1); exit 1; }; }
  21338. fi
  21339. db_inc="-I$db_incdir"
  21340. else
  21341. echo
  21342. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21343. echo "$as_me: error: $withval not found" >&2;}
  21344. { (exit 1); exit 1; }; }
  21345. fi
  21346. else
  21347. echo "$as_me:$LINENO: result: no" >&5
  21348. echo "${ECHO_T}no" >&6
  21349. fi;
  21350. if test -z "$db_inc"; then
  21351. echo "$as_me:$LINENO: checking for db.h" >&5
  21352. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  21353. if test -f "/usr/include/db.h"; then
  21354. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  21355. echo "${ECHO_T}using /usr/include/db.h" >&6
  21356. db_incdir="/usr/include"
  21357. db_inc="-I/usr/include"
  21358. else
  21359. echo "$as_me:$LINENO: result: no" >&5
  21360. echo "${ECHO_T}no" >&6
  21361. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  21362. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  21363. { (exit 1); exit 1; }; }
  21364. fi
  21365. fi
  21366. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  21367. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  21368. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  21369. db_libver=${db_ver_maj}.${db_ver_min}
  21370. save_ldflags="$LDFLAGS"
  21371. LDFLAGS="$db_lib $LDFLAGS"
  21372. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  21373. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  21374. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  21375. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21376. echo $ECHO_N "(cached) $ECHO_C" >&6
  21377. else
  21378. ac_check_lib_save_LIBS=$LIBS
  21379. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  21380. cat >conftest.$ac_ext <<_ACEOF
  21381. /* confdefs.h. */
  21382. _ACEOF
  21383. cat confdefs.h >>conftest.$ac_ext
  21384. cat >>conftest.$ac_ext <<_ACEOF
  21385. /* end confdefs.h. */
  21386. /* Override any gcc2 internal prototype to avoid an error. */
  21387. #ifdef __cplusplus
  21388. extern "C"
  21389. #endif
  21390. /* We use char because int might match the return type of a gcc2
  21391. builtin and then its argument prototype would still apply. */
  21392. char db_create ();
  21393. int
  21394. main ()
  21395. {
  21396. db_create ();
  21397. ;
  21398. return 0;
  21399. }
  21400. _ACEOF
  21401. rm -f conftest.$ac_objext conftest$ac_exeext
  21402. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21403. (eval $ac_link) 2>conftest.er1
  21404. ac_status=$?
  21405. grep -v '^ *+' conftest.er1 >conftest.err
  21406. rm -f conftest.er1
  21407. cat conftest.err >&5
  21408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21409. (exit $ac_status); } &&
  21410. { ac_try='test -z "$ac_c_werror_flag"
  21411. || test ! -s conftest.err'
  21412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21413. (eval $ac_try) 2>&5
  21414. ac_status=$?
  21415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21416. (exit $ac_status); }; } &&
  21417. { ac_try='test -s conftest$ac_exeext'
  21418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21419. (eval $ac_try) 2>&5
  21420. ac_status=$?
  21421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21422. (exit $ac_status); }; }; then
  21423. eval "$as_ac_Lib=yes"
  21424. else
  21425. echo "$as_me: failed program was:" >&5
  21426. sed 's/^/| /' conftest.$ac_ext >&5
  21427. eval "$as_ac_Lib=no"
  21428. fi
  21429. rm -f conftest.err conftest.$ac_objext \
  21430. conftest$ac_exeext conftest.$ac_ext
  21431. LIBS=$ac_check_lib_save_LIBS
  21432. fi
  21433. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21434. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21435. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21436. true
  21437. else
  21438. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  21439. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  21440. { (exit 1); exit 1; }; }
  21441. fi
  21442. LDFLAGS="$save_ldflags"
  21443. # if DB is not found yet, try pkg-config
  21444. # last resort
  21445. # Although the other db_* variables are correctly assigned at this point,
  21446. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  21447. if $PKG_CONFIG --exists db; then
  21448. db_bindir=`$PKG_CONFIG --variable=bindir db`
  21449. else
  21450. db_bindir=/usr/bin
  21451. fi
  21452. # BEGIN COPYRIGHT BLOCK
  21453. # Copyright (C) 2007 Red Hat, Inc.
  21454. # All rights reserved.
  21455. #
  21456. # This program is free software; you can redistribute it and/or
  21457. # modify it under the terms of the GNU General Public License
  21458. # as published by the Free Software Foundation; either version 2
  21459. # of the License, or (at your option) any later version.
  21460. #
  21461. # This program is distributed in the hope that it will be useful,
  21462. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21463. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21464. # GNU General Public License for more details.
  21465. #
  21466. # You should have received a copy of the GNU General Public License
  21467. # along with this program; if not, write to the Free Software
  21468. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21469. #
  21470. # END COPYRIGHT BLOCK
  21471. # -*- tab-width: 4; -*-
  21472. # Configure paths for SASL
  21473. { echo "$as_me:$LINENO: checking for sasl..." >&5
  21474. echo "$as_me: checking for sasl..." >&6;}
  21475. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  21476. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  21477. # Check whether --with-sasl or --without-sasl was given.
  21478. if test "${with_sasl+set}" = set; then
  21479. withval="$with_sasl"
  21480. if test "$withval" = "yes"; then
  21481. echo "$as_me:$LINENO: result: yes" >&5
  21482. echo "${ECHO_T}yes" >&6
  21483. if test -f /usr/include/sasl/sasl.h; then
  21484. sasl_inc="-I/usr/include/sasl"
  21485. elif test -f /usr/include/sasl.h; then
  21486. sasl_inc="-I/usr/include"
  21487. else
  21488. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21489. echo "$as_me: error: sasl.h not found" >&2;}
  21490. { (exit 1); exit 1; }; }
  21491. fi
  21492. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21493. echo "$as_me:$LINENO: result: using $withval" >&5
  21494. echo "${ECHO_T}using $withval" >&6
  21495. if test -f "$withval/include/sasl/sasl.h"; then
  21496. sasl_inc="-I$withval/include/sasl"
  21497. elif test -f "$withval/include/sasl.h"; then
  21498. sasl_inc="-I$withval/include"
  21499. else
  21500. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21501. echo "$as_me: error: sasl.h not found" >&2;}
  21502. { (exit 1); exit 1; }; }
  21503. fi
  21504. sasl_lib="-L$withval/lib"
  21505. sasl_libdir="$withval/lib"
  21506. else
  21507. echo "$as_me:$LINENO: result: yes" >&5
  21508. echo "${ECHO_T}yes" >&6
  21509. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  21510. echo "$as_me: error: sasl not found in $withval" >&2;}
  21511. { (exit 1); exit 1; }; }
  21512. fi
  21513. else
  21514. echo "$as_me:$LINENO: result: no" >&5
  21515. echo "${ECHO_T}no" >&6
  21516. fi;
  21517. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  21518. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  21519. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  21520. if test "${with_sasl_inc+set}" = set; then
  21521. withval="$with_sasl_inc"
  21522. if test -f "$withval"/sasl.h; then
  21523. echo "$as_me:$LINENO: result: using $withval" >&5
  21524. echo "${ECHO_T}using $withval" >&6
  21525. sasl_inc="-I$withval"
  21526. else
  21527. echo
  21528. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  21529. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  21530. { (exit 1); exit 1; }; }
  21531. fi
  21532. else
  21533. echo "$as_me:$LINENO: result: no" >&5
  21534. echo "${ECHO_T}no" >&6
  21535. fi;
  21536. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  21537. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  21538. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  21539. if test "${with_sasl_lib+set}" = set; then
  21540. withval="$with_sasl_lib"
  21541. if test -d "$withval"; then
  21542. echo "$as_me:$LINENO: result: using $withval" >&5
  21543. echo "${ECHO_T}using $withval" >&6
  21544. sasl_lib="-L$withval"
  21545. sasl_libdir="$withval"
  21546. else
  21547. echo
  21548. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21549. echo "$as_me: error: $withval not found" >&2;}
  21550. { (exit 1); exit 1; }; }
  21551. fi
  21552. else
  21553. echo "$as_me:$LINENO: result: no" >&5
  21554. echo "${ECHO_T}no" >&6
  21555. fi;
  21556. if test -z "$sasl_inc"; then
  21557. echo "$as_me:$LINENO: checking for sasl.h" >&5
  21558. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  21559. if test -f /usr/include/sasl/sasl.h; then
  21560. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  21561. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  21562. sasl_inc="-I/usr/include/sasl"
  21563. elif test -f /usr/include/sasl.h; then
  21564. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  21565. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  21566. sasl_inc="-I/usr/include"
  21567. else
  21568. echo "$as_me:$LINENO: result: no" >&5
  21569. echo "${ECHO_T}no" >&6
  21570. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  21571. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  21572. { (exit 1); exit 1; }; }
  21573. fi
  21574. fi
  21575. # BEGIN COPYRIGHT BLOCK
  21576. # Copyright (C) 2007 Red Hat, Inc.
  21577. # All rights reserved.
  21578. #
  21579. # This program is free software; you can redistribute it and/or
  21580. # modify it under the terms of the GNU General Public License
  21581. # as published by the Free Software Foundation; either version 2
  21582. # of the License, or (at your option) any later version.
  21583. #
  21584. # This program is distributed in the hope that it will be useful,
  21585. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21586. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21587. # GNU General Public License for more details.
  21588. #
  21589. # You should have received a copy of the GNU General Public License
  21590. # along with this program; if not, write to the Free Software
  21591. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21592. #
  21593. # END COPYRIGHT BLOCK
  21594. #
  21595. # Configure paths for SVRCORE
  21596. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  21597. echo "$as_me: checking for svrcore..." >&6;}
  21598. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  21599. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  21600. # Check whether --with-svrcore or --without-svrcore was given.
  21601. if test "${with_svrcore+set}" = set; then
  21602. withval="$with_svrcore"
  21603. if test "$withval" = "yes"; then
  21604. echo "$as_me:$LINENO: result: yes" >&5
  21605. echo "${ECHO_T}yes" >&6
  21606. if test -f /usr/include/svrcore.h; then
  21607. svrcore_inc="-I/usr/include"
  21608. else
  21609. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21610. echo "$as_me: error: svrcore.h not found" >&2;}
  21611. { (exit 1); exit 1; }; }
  21612. fi
  21613. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21614. echo "$as_me:$LINENO: result: using $withval" >&5
  21615. echo "${ECHO_T}using $withval" >&6
  21616. if test -f "$withval/include/svrcore.h"; then
  21617. svrcore_inc="-I$withval/include"
  21618. else
  21619. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21620. echo "$as_me: error: svrcore.h not found" >&2;}
  21621. { (exit 1); exit 1; }; }
  21622. fi
  21623. svrcore_lib="-L$withval/lib"
  21624. else
  21625. echo "$as_me:$LINENO: result: yes" >&5
  21626. echo "${ECHO_T}yes" >&6
  21627. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  21628. echo "$as_me: error: svrcore not found in $withval" >&2;}
  21629. { (exit 1); exit 1; }; }
  21630. fi
  21631. else
  21632. echo "$as_me:$LINENO: result: no" >&5
  21633. echo "${ECHO_T}no" >&6
  21634. fi;
  21635. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  21636. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  21637. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  21638. if test "${with_svrcore_inc+set}" = set; then
  21639. withval="$with_svrcore_inc"
  21640. if test -f "$withval"/svrcore.h; then
  21641. echo "$as_me:$LINENO: result: using $withval" >&5
  21642. echo "${ECHO_T}using $withval" >&6
  21643. svrcore_inc="-I$withval"
  21644. else
  21645. echo
  21646. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  21647. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  21648. { (exit 1); exit 1; }; }
  21649. fi
  21650. else
  21651. echo "$as_me:$LINENO: result: no" >&5
  21652. echo "${ECHO_T}no" >&6
  21653. fi;
  21654. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  21655. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  21656. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  21657. if test "${with_svrcore_lib+set}" = set; then
  21658. withval="$with_svrcore_lib"
  21659. if test -d "$withval"; then
  21660. echo "$as_me:$LINENO: result: using $withval" >&5
  21661. echo "${ECHO_T}using $withval" >&6
  21662. svrcore_lib="-L$withval"
  21663. else
  21664. echo
  21665. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21666. echo "$as_me: error: $withval not found" >&2;}
  21667. { (exit 1); exit 1; }; }
  21668. fi
  21669. else
  21670. echo "$as_me:$LINENO: result: no" >&5
  21671. echo "${ECHO_T}no" >&6
  21672. fi;
  21673. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21674. # Extract the first word of "pkg-config", so it can be a program name with args.
  21675. set dummy pkg-config; ac_word=$2
  21676. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21677. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21678. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21679. echo $ECHO_N "(cached) $ECHO_C" >&6
  21680. else
  21681. case $PKG_CONFIG in
  21682. [\\/]* | ?:[\\/]*)
  21683. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21684. ;;
  21685. *)
  21686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21687. for as_dir in $PATH
  21688. do
  21689. IFS=$as_save_IFS
  21690. test -z "$as_dir" && as_dir=.
  21691. for ac_exec_ext in '' $ac_executable_extensions; do
  21692. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21693. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21694. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21695. break 2
  21696. fi
  21697. done
  21698. done
  21699. ;;
  21700. esac
  21701. fi
  21702. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21703. if test -n "$PKG_CONFIG"; then
  21704. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21705. echo "${ECHO_T}$PKG_CONFIG" >&6
  21706. else
  21707. echo "$as_me:$LINENO: result: no" >&5
  21708. echo "${ECHO_T}no" >&6
  21709. fi
  21710. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  21711. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  21712. if test -n "$PKG_CONFIG"; then
  21713. if $PKG_CONFIG --exists svrcore; then
  21714. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  21715. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  21716. echo "$as_me:$LINENO: result: using system svrcore" >&5
  21717. echo "${ECHO_T}using system svrcore" >&6
  21718. fi
  21719. fi
  21720. fi
  21721. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21722. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  21723. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  21724. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  21725. echo $ECHO_N "(cached) $ECHO_C" >&6
  21726. else
  21727. ac_check_lib_save_LIBS=$LIBS
  21728. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  21729. cat >conftest.$ac_ext <<_ACEOF
  21730. /* confdefs.h. */
  21731. _ACEOF
  21732. cat confdefs.h >>conftest.$ac_ext
  21733. cat >>conftest.$ac_ext <<_ACEOF
  21734. /* end confdefs.h. */
  21735. /* Override any gcc2 internal prototype to avoid an error. */
  21736. #ifdef __cplusplus
  21737. extern "C"
  21738. #endif
  21739. /* We use char because int might match the return type of a gcc2
  21740. builtin and then its argument prototype would still apply. */
  21741. char SVRCORE_GetRegisteredPinObj ();
  21742. int
  21743. main ()
  21744. {
  21745. SVRCORE_GetRegisteredPinObj ();
  21746. ;
  21747. return 0;
  21748. }
  21749. _ACEOF
  21750. rm -f conftest.$ac_objext conftest$ac_exeext
  21751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21752. (eval $ac_link) 2>conftest.er1
  21753. ac_status=$?
  21754. grep -v '^ *+' conftest.er1 >conftest.err
  21755. rm -f conftest.er1
  21756. cat conftest.err >&5
  21757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21758. (exit $ac_status); } &&
  21759. { ac_try='test -z "$ac_c_werror_flag"
  21760. || test ! -s conftest.err'
  21761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21762. (eval $ac_try) 2>&5
  21763. ac_status=$?
  21764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21765. (exit $ac_status); }; } &&
  21766. { ac_try='test -s conftest$ac_exeext'
  21767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21768. (eval $ac_try) 2>&5
  21769. ac_status=$?
  21770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21771. (exit $ac_status); }; }; then
  21772. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  21773. else
  21774. echo "$as_me: failed program was:" >&5
  21775. sed 's/^/| /' conftest.$ac_ext >&5
  21776. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  21777. fi
  21778. rm -f conftest.err conftest.$ac_objext \
  21779. conftest$ac_exeext conftest.$ac_ext
  21780. LIBS=$ac_check_lib_save_LIBS
  21781. fi
  21782. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  21783. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  21784. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  21785. havesvrcore=1
  21786. fi
  21787. if test -n "$havesvrcore" ; then
  21788. save_cppflags="$CPPFLAGS"
  21789. CPPFLAGS="$nss_inc $nspr_inc"
  21790. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21791. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  21792. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  21793. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21794. echo $ECHO_N "(cached) $ECHO_C" >&6
  21795. fi
  21796. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  21797. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  21798. else
  21799. # Is the header compilable?
  21800. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  21801. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  21802. cat >conftest.$ac_ext <<_ACEOF
  21803. /* confdefs.h. */
  21804. _ACEOF
  21805. cat confdefs.h >>conftest.$ac_ext
  21806. cat >>conftest.$ac_ext <<_ACEOF
  21807. /* end confdefs.h. */
  21808. $ac_includes_default
  21809. #include <svrcore.h>
  21810. _ACEOF
  21811. rm -f conftest.$ac_objext
  21812. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21813. (eval $ac_compile) 2>conftest.er1
  21814. ac_status=$?
  21815. grep -v '^ *+' conftest.er1 >conftest.err
  21816. rm -f conftest.er1
  21817. cat conftest.err >&5
  21818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21819. (exit $ac_status); } &&
  21820. { ac_try='test -z "$ac_c_werror_flag"
  21821. || test ! -s conftest.err'
  21822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21823. (eval $ac_try) 2>&5
  21824. ac_status=$?
  21825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21826. (exit $ac_status); }; } &&
  21827. { ac_try='test -s conftest.$ac_objext'
  21828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21829. (eval $ac_try) 2>&5
  21830. ac_status=$?
  21831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21832. (exit $ac_status); }; }; then
  21833. ac_header_compiler=yes
  21834. else
  21835. echo "$as_me: failed program was:" >&5
  21836. sed 's/^/| /' conftest.$ac_ext >&5
  21837. ac_header_compiler=no
  21838. fi
  21839. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21840. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21841. echo "${ECHO_T}$ac_header_compiler" >&6
  21842. # Is the header present?
  21843. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  21844. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  21845. cat >conftest.$ac_ext <<_ACEOF
  21846. /* confdefs.h. */
  21847. _ACEOF
  21848. cat confdefs.h >>conftest.$ac_ext
  21849. cat >>conftest.$ac_ext <<_ACEOF
  21850. /* end confdefs.h. */
  21851. #include <svrcore.h>
  21852. _ACEOF
  21853. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21854. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21855. ac_status=$?
  21856. grep -v '^ *+' conftest.er1 >conftest.err
  21857. rm -f conftest.er1
  21858. cat conftest.err >&5
  21859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21860. (exit $ac_status); } >/dev/null; then
  21861. if test -s conftest.err; then
  21862. ac_cpp_err=$ac_c_preproc_warn_flag
  21863. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21864. else
  21865. ac_cpp_err=
  21866. fi
  21867. else
  21868. ac_cpp_err=yes
  21869. fi
  21870. if test -z "$ac_cpp_err"; then
  21871. ac_header_preproc=yes
  21872. else
  21873. echo "$as_me: failed program was:" >&5
  21874. sed 's/^/| /' conftest.$ac_ext >&5
  21875. ac_header_preproc=no
  21876. fi
  21877. rm -f conftest.err conftest.$ac_ext
  21878. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21879. echo "${ECHO_T}$ac_header_preproc" >&6
  21880. # So? What about this header?
  21881. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21882. yes:no: )
  21883. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21884. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21885. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  21886. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  21887. ac_header_preproc=yes
  21888. ;;
  21889. no:yes:* )
  21890. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  21891. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  21892. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  21893. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  21894. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  21895. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  21896. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  21897. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21898. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  21899. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  21900. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  21901. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  21902. (
  21903. cat <<\_ASBOX
  21904. ## ------------------------------------------ ##
  21905. ## Report this to http://bugzilla.redhat.com/ ##
  21906. ## ------------------------------------------ ##
  21907. _ASBOX
  21908. ) |
  21909. sed "s/^/$as_me: WARNING: /" >&2
  21910. ;;
  21911. esac
  21912. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  21913. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  21914. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21915. echo $ECHO_N "(cached) $ECHO_C" >&6
  21916. else
  21917. ac_cv_header_svrcore_h=$ac_header_preproc
  21918. fi
  21919. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  21920. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  21921. fi
  21922. if test $ac_cv_header_svrcore_h = yes; then
  21923. havesvrcore=1
  21924. else
  21925. havesvrcore=
  21926. fi
  21927. CPPFLAGS="$save_cppflags"
  21928. fi
  21929. if test -z "$havesvrcore" ; then
  21930. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  21931. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  21932. { (exit 1); exit 1; }; }
  21933. fi
  21934. fi
  21935. # BEGIN COPYRIGHT BLOCK
  21936. # Copyright (C) 2006 Red Hat, Inc.
  21937. # All rights reserved.
  21938. #
  21939. # This program is free software; you can redistribute it and/or
  21940. # modify it under the terms of the GNU General Public License
  21941. # as published by the Free Software Foundation; either version 2
  21942. # of the License, or (at your option) any later version.
  21943. #
  21944. # This program is distributed in the hope that it will be useful,
  21945. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21946. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21947. # GNU General Public License for more details.
  21948. #
  21949. # You should have received a copy of the GNU General Public License
  21950. # along with this program; if not, write to the Free Software
  21951. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21952. #
  21953. # END COPYRIGHT BLOCK
  21954. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  21955. echo "$as_me: checking for LIBICU..." >&6;}
  21956. # check for --with-icu
  21957. echo "$as_me:$LINENO: checking for --with-icu" >&5
  21958. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  21959. # Check whether --with-icu or --without-icu was given.
  21960. if test "${with_icu+set}" = set; then
  21961. withval="$with_icu"
  21962. if test -d "$withval"/lib
  21963. then
  21964. echo "$as_me:$LINENO: result: using $withval" >&5
  21965. echo "${ECHO_T}using $withval" >&6
  21966. ICUDIR=$withval
  21967. icu_lib="-L$ICUDIR/lib"
  21968. else
  21969. echo
  21970. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21971. echo "$as_me: error: $withval not found" >&2;}
  21972. { (exit 1); exit 1; }; }
  21973. fi
  21974. icu_inc="-I$withval/include"
  21975. icu_bin="$withval/bin"
  21976. else
  21977. echo "$as_me:$LINENO: result: no" >&5
  21978. echo "${ECHO_T}no" >&6
  21979. fi;
  21980. # check for --with-icu-inc
  21981. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  21982. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  21983. # Check whether --with-icu-inc or --without-icu-inc was given.
  21984. if test "${with_icu_inc+set}" = set; then
  21985. withval="$with_icu_inc"
  21986. if test -d "$withval"
  21987. then
  21988. echo "$as_me:$LINENO: result: using $withval" >&5
  21989. echo "${ECHO_T}using $withval" >&6
  21990. icu_inc="-I$withval"
  21991. else
  21992. echo
  21993. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21994. echo "$as_me: error: $withval not found" >&2;}
  21995. { (exit 1); exit 1; }; }
  21996. fi
  21997. else
  21998. echo "$as_me:$LINENO: result: no" >&5
  21999. echo "${ECHO_T}no" >&6
  22000. fi;
  22001. # check for --with-icu-lib
  22002. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  22003. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  22004. # Check whether --with-icu-lib or --without-icu-lib was given.
  22005. if test "${with_icu_lib+set}" = set; then
  22006. withval="$with_icu_lib"
  22007. if test -d "$withval"
  22008. then
  22009. echo "$as_me:$LINENO: result: using $withval" >&5
  22010. echo "${ECHO_T}using $withval" >&6
  22011. icu_lib="-L$withval"
  22012. else
  22013. echo
  22014. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22015. echo "$as_me: error: $withval not found" >&2;}
  22016. { (exit 1); exit 1; }; }
  22017. fi
  22018. else
  22019. echo "$as_me:$LINENO: result: no" >&5
  22020. echo "${ECHO_T}no" >&6
  22021. fi;
  22022. # check for --with-icu-bin
  22023. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  22024. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  22025. # Check whether --with-icu-bin or --without-icu-bin was given.
  22026. if test "${with_icu_bin+set}" = set; then
  22027. withval="$with_icu_bin"
  22028. if test -d "$withval"
  22029. then
  22030. echo "$as_me:$LINENO: result: using $withval" >&5
  22031. echo "${ECHO_T}using $withval" >&6
  22032. icu_bin="$withval"
  22033. else
  22034. echo
  22035. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22036. echo "$as_me: error: $withval not found" >&2;}
  22037. { (exit 1); exit 1; }; }
  22038. fi
  22039. else
  22040. echo "$as_me:$LINENO: result: no" >&5
  22041. echo "${ECHO_T}no" >&6
  22042. fi;
  22043. # if ICU is not found yet, try pkg-config
  22044. # last resort
  22045. if test -z "$icu_lib"; then
  22046. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  22047. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  22048. # Extract the first word of "icu-config", so it can be a program name with args.
  22049. set dummy icu-config; ac_word=$2
  22050. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22051. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22052. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  22053. echo $ECHO_N "(cached) $ECHO_C" >&6
  22054. else
  22055. case $ICU_CONFIG in
  22056. [\\/]* | ?:[\\/]*)
  22057. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  22058. ;;
  22059. *)
  22060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22061. for as_dir in $PATH
  22062. do
  22063. IFS=$as_save_IFS
  22064. test -z "$as_dir" && as_dir=.
  22065. for ac_exec_ext in '' $ac_executable_extensions; do
  22066. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22067. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22068. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22069. break 2
  22070. fi
  22071. done
  22072. done
  22073. ;;
  22074. esac
  22075. fi
  22076. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  22077. if test -n "$ICU_CONFIG"; then
  22078. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  22079. echo "${ECHO_T}$ICU_CONFIG" >&6
  22080. else
  22081. echo "$as_me:$LINENO: result: no" >&5
  22082. echo "${ECHO_T}no" >&6
  22083. fi
  22084. if test -n "$ICU_CONFIG"; then
  22085. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  22086. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  22087. icu_bin=`$ICU_CONFIG --bindir`
  22088. echo "$as_me:$LINENO: result: using system ICU" >&5
  22089. echo "${ECHO_T}using system ICU" >&6
  22090. else
  22091. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  22092. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  22093. { (exit 1); exit 1; }; }
  22094. fi
  22095. fi
  22096. # BEGIN COPYRIGHT BLOCK
  22097. # Copyright (C) 2006 Red Hat, Inc.
  22098. # All rights reserved.
  22099. #
  22100. # This program is free software; you can redistribute it and/or
  22101. # modify it under the terms of the GNU General Public License
  22102. # as published by the Free Software Foundation; either version 2
  22103. # of the License, or (at your option) any later version.
  22104. #
  22105. # This program is distributed in the hope that it will be useful,
  22106. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22107. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22108. # GNU General Public License for more details.
  22109. #
  22110. # You should have received a copy of the GNU General Public License
  22111. # along with this program; if not, write to the Free Software
  22112. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22113. #
  22114. # END COPYRIGHT BLOCK
  22115. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  22116. echo "$as_me: checking for Net-SNMP..." >&6;}
  22117. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  22118. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  22119. # Check whether --with-netsnmp or --without-netsnmp was given.
  22120. if test "${with_netsnmp+set}" = set; then
  22121. withval="$with_netsnmp"
  22122. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  22123. echo "$as_me:$LINENO: result: using $withval" >&5
  22124. echo "${ECHO_T}using $withval" >&6
  22125. NETSNMPDIR=$withval
  22126. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  22127. netsnmp_inc="-I$withval/include"
  22128. else
  22129. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  22130. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  22131. { (exit 1); exit 1; }; }
  22132. fi
  22133. netsnmp_lib="-L$withval/lib"
  22134. netsnmp_libdir="$withval/lib"
  22135. else
  22136. echo "$as_me:$LINENO: result: yes" >&5
  22137. echo "${ECHO_T}yes" >&6
  22138. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22139. echo "$as_me: error: $withval not found" >&2;}
  22140. { (exit 1); exit 1; }; }
  22141. fi
  22142. else
  22143. echo "$as_me:$LINENO: result: no" >&5
  22144. echo "${ECHO_T}no" >&6
  22145. fi;
  22146. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  22147. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  22148. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  22149. if test "${with_netsnmp_inc+set}" = set; then
  22150. withval="$with_netsnmp_inc"
  22151. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  22152. echo "$as_me:$LINENO: result: using $withval" >&5
  22153. echo "${ECHO_T}using $withval" >&6
  22154. netsnmp_inc="-I$withval"
  22155. else
  22156. echo
  22157. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  22158. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  22159. { (exit 1); exit 1; }; }
  22160. fi
  22161. else
  22162. echo "$as_me:$LINENO: result: no" >&5
  22163. echo "${ECHO_T}no" >&6
  22164. fi;
  22165. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  22166. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  22167. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  22168. if test "${with_netsnmp_lib+set}" = set; then
  22169. withval="$with_netsnmp_lib"
  22170. if test -d "$withval"
  22171. then
  22172. echo "$as_me:$LINENO: result: using $withval" >&5
  22173. echo "${ECHO_T}using $withval" >&6
  22174. netsnmp_lib="-L$withval"
  22175. netsnmp_libdir="$withval"
  22176. else
  22177. echo
  22178. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22179. echo "$as_me: error: $withval not found" >&2;}
  22180. { (exit 1); exit 1; }; }
  22181. fi
  22182. else
  22183. echo "$as_me:$LINENO: result: no" >&5
  22184. echo "${ECHO_T}no" >&6
  22185. fi;
  22186. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  22187. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  22188. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  22189. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  22190. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  22191. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  22192. netsnmp_inc="-I/usr/include"
  22193. else
  22194. echo "$as_me:$LINENO: result: no" >&5
  22195. echo "${ECHO_T}no" >&6
  22196. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  22197. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  22198. { (exit 1); exit 1; }; }
  22199. fi
  22200. fi
  22201. if test -n "$netsnmp_inc"; then
  22202. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  22203. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  22204. else
  22205. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  22206. set dummy net-snmp-config; ac_word=$2
  22207. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22209. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  22210. echo $ECHO_N "(cached) $ECHO_C" >&6
  22211. else
  22212. case $NETSNMP_CONFIG in
  22213. [\\/]* | ?:[\\/]*)
  22214. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  22215. ;;
  22216. *)
  22217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22218. for as_dir in $PATH
  22219. do
  22220. IFS=$as_save_IFS
  22221. test -z "$as_dir" && as_dir=.
  22222. for ac_exec_ext in '' $ac_executable_extensions; do
  22223. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22224. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22225. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22226. break 2
  22227. fi
  22228. done
  22229. done
  22230. ;;
  22231. esac
  22232. fi
  22233. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  22234. if test -n "$NETSNMP_CONFIG"; then
  22235. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  22236. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  22237. else
  22238. echo "$as_me:$LINENO: result: no" >&5
  22239. echo "${ECHO_T}no" >&6
  22240. fi
  22241. fi
  22242. if test -n "$NETSNMP_CONFIG"; then
  22243. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  22244. else
  22245. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  22246. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  22247. { (exit 1); exit 1; }; }
  22248. fi
  22249. else
  22250. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  22251. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  22252. { (exit 1); exit 1; }; }
  22253. fi
  22254. # write out paths for binary components
  22255. cat >>confdefs.h <<\_ACEOF
  22256. #define LDAP_DEBUG 1
  22257. _ACEOF
  22258. cat >>confdefs.h <<\_ACEOF
  22259. #define LDAP_DONT_USE_SMARTHEAP 1
  22260. _ACEOF
  22261. # libtool on fedora/rhel contains some gcc-isms which cause problems
  22262. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  22263. # we remove them here
  22264. if test "$GCC" != yes ; then
  22265. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  22266. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  22267. cp -p libtool libtool.orig
  22268. cp -p libtool libtool.tmp
  22269. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  22270. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  22271. # perl produced write-only code . . .
  22272. sed -e '/^gcc_dir/ d' \
  22273. -e '/^gcc_ver/ d' \
  22274. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  22275. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  22276. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  22277. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  22278. libtool > libtool.tmp
  22279. cp -p libtool.tmp libtool
  22280. rm -f libtool.tmp
  22281. fi
  22282. ac_config_files="$ac_config_files Makefile"
  22283. cat >confcache <<\_ACEOF
  22284. # This file is a shell script that caches the results of configure
  22285. # tests run on this system so they can be shared between configure
  22286. # scripts and configure runs, see configure's option --config-cache.
  22287. # It is not useful on other systems. If it contains results you don't
  22288. # want to keep, you may remove or edit it.
  22289. #
  22290. # config.status only pays attention to the cache file if you give it
  22291. # the --recheck option to rerun configure.
  22292. #
  22293. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22294. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22295. # following values.
  22296. _ACEOF
  22297. # The following way of writing the cache mishandles newlines in values,
  22298. # but we know of no workaround that is simple, portable, and efficient.
  22299. # So, don't put newlines in cache variables' values.
  22300. # Ultrix sh set writes to stderr and can't be redirected directly,
  22301. # and sets the high bit in the cache file unless we assign to the vars.
  22302. {
  22303. (set) 2>&1 |
  22304. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  22305. *ac_space=\ *)
  22306. # `set' does not quote correctly, so add quotes (double-quote
  22307. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22308. sed -n \
  22309. "s/'/'\\\\''/g;
  22310. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22311. ;;
  22312. *)
  22313. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22314. sed -n \
  22315. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  22316. ;;
  22317. esac;
  22318. } |
  22319. sed '
  22320. t clear
  22321. : clear
  22322. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22323. t end
  22324. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22325. : end' >>confcache
  22326. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  22327. if test -w $cache_file; then
  22328. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  22329. cat confcache >$cache_file
  22330. else
  22331. echo "not updating unwritable cache $cache_file"
  22332. fi
  22333. fi
  22334. rm -f confcache
  22335. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22336. # Let make expand exec_prefix.
  22337. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22338. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22339. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22340. # trailing colons and then remove the whole line if VPATH becomes empty
  22341. # (actually we leave an empty line to preserve line numbers).
  22342. if test "x$srcdir" = x.; then
  22343. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22344. s/:*\$(srcdir):*/:/;
  22345. s/:*\${srcdir}:*/:/;
  22346. s/:*@srcdir@:*/:/;
  22347. s/^\([^=]*=[ ]*\):*/\1/;
  22348. s/:*$//;
  22349. s/^[^=]*=[ ]*$//;
  22350. }'
  22351. fi
  22352. DEFS=-DHAVE_CONFIG_H
  22353. ac_libobjs=
  22354. ac_ltlibobjs=
  22355. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22356. # 1. Remove the extension, and $U if already installed.
  22357. ac_i=`echo "$ac_i" |
  22358. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  22359. # 2. Add them.
  22360. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  22361. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  22362. done
  22363. LIBOBJS=$ac_libobjs
  22364. LTLIBOBJS=$ac_ltlibobjs
  22365. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22366. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  22367. Usually this means the macro was only invoked conditionally." >&5
  22368. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  22369. Usually this means the macro was only invoked conditionally." >&2;}
  22370. { (exit 1); exit 1; }; }
  22371. fi
  22372. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22373. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22374. Usually this means the macro was only invoked conditionally." >&5
  22375. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22376. Usually this means the macro was only invoked conditionally." >&2;}
  22377. { (exit 1); exit 1; }; }
  22378. fi
  22379. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22380. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22381. Usually this means the macro was only invoked conditionally." >&5
  22382. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22383. Usually this means the macro was only invoked conditionally." >&2;}
  22384. { (exit 1); exit 1; }; }
  22385. fi
  22386. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22387. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22388. Usually this means the macro was only invoked conditionally." >&5
  22389. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22390. Usually this means the macro was only invoked conditionally." >&2;}
  22391. { (exit 1); exit 1; }; }
  22392. fi
  22393. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  22394. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  22395. Usually this means the macro was only invoked conditionally." >&5
  22396. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  22397. Usually this means the macro was only invoked conditionally." >&2;}
  22398. { (exit 1); exit 1; }; }
  22399. fi
  22400. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  22401. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  22402. Usually this means the macro was only invoked conditionally." >&5
  22403. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  22404. Usually this means the macro was only invoked conditionally." >&2;}
  22405. { (exit 1); exit 1; }; }
  22406. fi
  22407. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  22408. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  22409. Usually this means the macro was only invoked conditionally." >&5
  22410. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  22411. Usually this means the macro was only invoked conditionally." >&2;}
  22412. { (exit 1); exit 1; }; }
  22413. fi
  22414. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  22415. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  22416. Usually this means the macro was only invoked conditionally." >&5
  22417. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  22418. Usually this means the macro was only invoked conditionally." >&2;}
  22419. { (exit 1); exit 1; }; }
  22420. fi
  22421. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  22422. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  22423. Usually this means the macro was only invoked conditionally." >&5
  22424. echo "$as_me: error: conditional \"WINNT\" was never defined.
  22425. Usually this means the macro was only invoked conditionally." >&2;}
  22426. { (exit 1); exit 1; }; }
  22427. fi
  22428. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  22429. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  22430. Usually this means the macro was only invoked conditionally." >&5
  22431. echo "$as_me: error: conditional \"HPUX\" was never defined.
  22432. Usually this means the macro was only invoked conditionally." >&2;}
  22433. { (exit 1); exit 1; }; }
  22434. fi
  22435. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  22436. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  22437. Usually this means the macro was only invoked conditionally." >&5
  22438. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  22439. Usually this means the macro was only invoked conditionally." >&2;}
  22440. { (exit 1); exit 1; }; }
  22441. fi
  22442. : ${CONFIG_STATUS=./config.status}
  22443. ac_clean_files_save=$ac_clean_files
  22444. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22445. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22446. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22447. cat >$CONFIG_STATUS <<_ACEOF
  22448. #! $SHELL
  22449. # Generated by $as_me.
  22450. # Run this file to recreate the current configuration.
  22451. # Compiler output produced by configure, useful for debugging
  22452. # configure, is in config.log if it exists.
  22453. debug=false
  22454. ac_cs_recheck=false
  22455. ac_cs_silent=false
  22456. SHELL=\${CONFIG_SHELL-$SHELL}
  22457. _ACEOF
  22458. cat >>$CONFIG_STATUS <<\_ACEOF
  22459. ## --------------------- ##
  22460. ## M4sh Initialization. ##
  22461. ## --------------------- ##
  22462. # Be Bourne compatible
  22463. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22464. emulate sh
  22465. NULLCMD=:
  22466. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  22467. # is contrary to our usage. Disable this feature.
  22468. alias -g '${1+"$@"}'='"$@"'
  22469. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22470. set -o posix
  22471. fi
  22472. DUALCASE=1; export DUALCASE # for MKS sh
  22473. # Support unset when possible.
  22474. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22475. as_unset=unset
  22476. else
  22477. as_unset=false
  22478. fi
  22479. # Work around bugs in pre-3.0 UWIN ksh.
  22480. $as_unset ENV MAIL MAILPATH
  22481. PS1='$ '
  22482. PS2='> '
  22483. PS4='+ '
  22484. # NLS nuisances.
  22485. for as_var in \
  22486. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  22487. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  22488. LC_TELEPHONE LC_TIME
  22489. do
  22490. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  22491. eval $as_var=C; export $as_var
  22492. else
  22493. $as_unset $as_var
  22494. fi
  22495. done
  22496. # Required to use basename.
  22497. if expr a : '\(a\)' >/dev/null 2>&1; then
  22498. as_expr=expr
  22499. else
  22500. as_expr=false
  22501. fi
  22502. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  22503. as_basename=basename
  22504. else
  22505. as_basename=false
  22506. fi
  22507. # Name of the executable.
  22508. as_me=`$as_basename "$0" ||
  22509. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22510. X"$0" : 'X\(//\)$' \| \
  22511. X"$0" : 'X\(/\)$' \| \
  22512. . : '\(.\)' 2>/dev/null ||
  22513. echo X/"$0" |
  22514. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  22515. /^X\/\(\/\/\)$/{ s//\1/; q; }
  22516. /^X\/\(\/\).*/{ s//\1/; q; }
  22517. s/.*/./; q'`
  22518. # PATH needs CR, and LINENO needs CR and PATH.
  22519. # Avoid depending upon Character Ranges.
  22520. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22521. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22522. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22523. as_cr_digits='0123456789'
  22524. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22525. # The user is always right.
  22526. if test "${PATH_SEPARATOR+set}" != set; then
  22527. echo "#! /bin/sh" >conf$$.sh
  22528. echo "exit 0" >>conf$$.sh
  22529. chmod +x conf$$.sh
  22530. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  22531. PATH_SEPARATOR=';'
  22532. else
  22533. PATH_SEPARATOR=:
  22534. fi
  22535. rm -f conf$$.sh
  22536. fi
  22537. as_lineno_1=$LINENO
  22538. as_lineno_2=$LINENO
  22539. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22540. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22541. test "x$as_lineno_3" = "x$as_lineno_2" || {
  22542. # Find who we are. Look in the path if we contain no path at all
  22543. # relative or not.
  22544. case $0 in
  22545. *[\\/]* ) as_myself=$0 ;;
  22546. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22547. for as_dir in $PATH
  22548. do
  22549. IFS=$as_save_IFS
  22550. test -z "$as_dir" && as_dir=.
  22551. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22552. done
  22553. ;;
  22554. esac
  22555. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22556. # in which case we are not to be found in the path.
  22557. if test "x$as_myself" = x; then
  22558. as_myself=$0
  22559. fi
  22560. if test ! -f "$as_myself"; then
  22561. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  22562. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  22563. { (exit 1); exit 1; }; }
  22564. fi
  22565. case $CONFIG_SHELL in
  22566. '')
  22567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22568. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  22569. do
  22570. IFS=$as_save_IFS
  22571. test -z "$as_dir" && as_dir=.
  22572. for as_base in sh bash ksh sh5; do
  22573. case $as_dir in
  22574. /*)
  22575. if ("$as_dir/$as_base" -c '
  22576. as_lineno_1=$LINENO
  22577. as_lineno_2=$LINENO
  22578. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22579. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22580. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  22581. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  22582. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  22583. CONFIG_SHELL=$as_dir/$as_base
  22584. export CONFIG_SHELL
  22585. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  22586. fi;;
  22587. esac
  22588. done
  22589. done
  22590. ;;
  22591. esac
  22592. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22593. # uniformly replaced by the line number. The first 'sed' inserts a
  22594. # line-number line before each line; the second 'sed' does the real
  22595. # work. The second script uses 'N' to pair each line-number line
  22596. # with the numbered line, and appends trailing '-' during
  22597. # substitution so that $LINENO is not a special case at line end.
  22598. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22599. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  22600. sed '=' <$as_myself |
  22601. sed '
  22602. N
  22603. s,$,-,
  22604. : loop
  22605. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  22606. t loop
  22607. s,-$,,
  22608. s,^['$as_cr_digits']*\n,,
  22609. ' >$as_me.lineno &&
  22610. chmod +x $as_me.lineno ||
  22611. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  22612. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  22613. { (exit 1); exit 1; }; }
  22614. # Don't try to exec as it changes $[0], causing all sort of problems
  22615. # (the dirname of $[0] is not the place where we might find the
  22616. # original and so on. Autoconf is especially sensible to this).
  22617. . ./$as_me.lineno
  22618. # Exit status is that of the last command.
  22619. exit
  22620. }
  22621. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  22622. *c*,-n*) ECHO_N= ECHO_C='
  22623. ' ECHO_T=' ' ;;
  22624. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  22625. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  22626. esac
  22627. if expr a : '\(a\)' >/dev/null 2>&1; then
  22628. as_expr=expr
  22629. else
  22630. as_expr=false
  22631. fi
  22632. rm -f conf$$ conf$$.exe conf$$.file
  22633. echo >conf$$.file
  22634. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22635. # We could just check for DJGPP; but this test a) works b) is more generic
  22636. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  22637. if test -f conf$$.exe; then
  22638. # Don't use ln at all; we don't have any links
  22639. as_ln_s='cp -p'
  22640. else
  22641. as_ln_s='ln -s'
  22642. fi
  22643. elif ln conf$$.file conf$$ 2>/dev/null; then
  22644. as_ln_s=ln
  22645. else
  22646. as_ln_s='cp -p'
  22647. fi
  22648. rm -f conf$$ conf$$.exe conf$$.file
  22649. if mkdir -p . 2>/dev/null; then
  22650. as_mkdir_p=:
  22651. else
  22652. test -d ./-p && rmdir ./-p
  22653. as_mkdir_p=false
  22654. fi
  22655. as_executable_p="test -f"
  22656. # Sed expression to map a string onto a valid CPP name.
  22657. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22658. # Sed expression to map a string onto a valid variable name.
  22659. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22660. # IFS
  22661. # We need space, tab and new line, in precisely that order.
  22662. as_nl='
  22663. '
  22664. IFS=" $as_nl"
  22665. # CDPATH.
  22666. $as_unset CDPATH
  22667. exec 6>&1
  22668. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  22669. # report actual input values of CONFIG_FILES etc. instead of their
  22670. # values after options handling. Logging --version etc. is OK.
  22671. exec 5>>config.log
  22672. {
  22673. echo
  22674. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22675. ## Running $as_me. ##
  22676. _ASBOX
  22677. } >&5
  22678. cat >&5 <<_CSEOF
  22679. This file was extended by fedora-ds $as_me 1.1.0a3, which was
  22680. generated by GNU Autoconf 2.59. Invocation command line was
  22681. CONFIG_FILES = $CONFIG_FILES
  22682. CONFIG_HEADERS = $CONFIG_HEADERS
  22683. CONFIG_LINKS = $CONFIG_LINKS
  22684. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22685. $ $0 $@
  22686. _CSEOF
  22687. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  22688. echo >&5
  22689. _ACEOF
  22690. # Files that config.status was made for.
  22691. if test -n "$ac_config_files"; then
  22692. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  22693. fi
  22694. if test -n "$ac_config_headers"; then
  22695. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  22696. fi
  22697. if test -n "$ac_config_links"; then
  22698. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  22699. fi
  22700. if test -n "$ac_config_commands"; then
  22701. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  22702. fi
  22703. cat >>$CONFIG_STATUS <<\_ACEOF
  22704. ac_cs_usage="\
  22705. \`$as_me' instantiates files from templates according to the
  22706. current configuration.
  22707. Usage: $0 [OPTIONS] [FILE]...
  22708. -h, --help print this help, then exit
  22709. -V, --version print version number, then exit
  22710. -q, --quiet do not print progress messages
  22711. -d, --debug don't remove temporary files
  22712. --recheck update $as_me by reconfiguring in the same conditions
  22713. --file=FILE[:TEMPLATE]
  22714. instantiate the configuration file FILE
  22715. --header=FILE[:TEMPLATE]
  22716. instantiate the configuration header FILE
  22717. Configuration files:
  22718. $config_files
  22719. Configuration headers:
  22720. $config_headers
  22721. Configuration commands:
  22722. $config_commands
  22723. Report bugs to <[email protected]>."
  22724. _ACEOF
  22725. cat >>$CONFIG_STATUS <<_ACEOF
  22726. ac_cs_version="\\
  22727. fedora-ds config.status 1.1.0a3
  22728. configured by $0, generated by GNU Autoconf 2.59,
  22729. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  22730. Copyright (C) 2003 Free Software Foundation, Inc.
  22731. This config.status script is free software; the Free Software Foundation
  22732. gives unlimited permission to copy, distribute and modify it."
  22733. srcdir=$srcdir
  22734. INSTALL="$INSTALL"
  22735. _ACEOF
  22736. cat >>$CONFIG_STATUS <<\_ACEOF
  22737. # If no file are specified by the user, then we need to provide default
  22738. # value. By we need to know if files were specified by the user.
  22739. ac_need_defaults=:
  22740. while test $# != 0
  22741. do
  22742. case $1 in
  22743. --*=*)
  22744. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  22745. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  22746. ac_shift=:
  22747. ;;
  22748. -*)
  22749. ac_option=$1
  22750. ac_optarg=$2
  22751. ac_shift=shift
  22752. ;;
  22753. *) # This is not an option, so the user has probably given explicit
  22754. # arguments.
  22755. ac_option=$1
  22756. ac_need_defaults=false;;
  22757. esac
  22758. case $ac_option in
  22759. # Handling of the options.
  22760. _ACEOF
  22761. cat >>$CONFIG_STATUS <<\_ACEOF
  22762. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22763. ac_cs_recheck=: ;;
  22764. --version | --vers* | -V )
  22765. echo "$ac_cs_version"; exit 0 ;;
  22766. --he | --h)
  22767. # Conflict between --help and --header
  22768. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  22769. Try \`$0 --help' for more information." >&5
  22770. echo "$as_me: error: ambiguous option: $1
  22771. Try \`$0 --help' for more information." >&2;}
  22772. { (exit 1); exit 1; }; };;
  22773. --help | --hel | -h )
  22774. echo "$ac_cs_usage"; exit 0 ;;
  22775. --debug | --d* | -d )
  22776. debug=: ;;
  22777. --file | --fil | --fi | --f )
  22778. $ac_shift
  22779. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  22780. ac_need_defaults=false;;
  22781. --header | --heade | --head | --hea )
  22782. $ac_shift
  22783. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  22784. ac_need_defaults=false;;
  22785. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22786. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22787. ac_cs_silent=: ;;
  22788. # This is an error.
  22789. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  22790. Try \`$0 --help' for more information." >&5
  22791. echo "$as_me: error: unrecognized option: $1
  22792. Try \`$0 --help' for more information." >&2;}
  22793. { (exit 1); exit 1; }; } ;;
  22794. *) ac_config_targets="$ac_config_targets $1" ;;
  22795. esac
  22796. shift
  22797. done
  22798. ac_configure_extra_args=
  22799. if $ac_cs_silent; then
  22800. exec 6>/dev/null
  22801. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22802. fi
  22803. _ACEOF
  22804. cat >>$CONFIG_STATUS <<_ACEOF
  22805. if \$ac_cs_recheck; then
  22806. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  22807. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22808. fi
  22809. _ACEOF
  22810. cat >>$CONFIG_STATUS <<_ACEOF
  22811. #
  22812. # INIT-COMMANDS section.
  22813. #
  22814. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22815. _ACEOF
  22816. cat >>$CONFIG_STATUS <<\_ACEOF
  22817. for ac_config_target in $ac_config_targets
  22818. do
  22819. case "$ac_config_target" in
  22820. # Handling of arguments.
  22821. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22822. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22823. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22824. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  22825. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  22826. { (exit 1); exit 1; }; };;
  22827. esac
  22828. done
  22829. # If the user did not use the arguments to specify the items to instantiate,
  22830. # then the envvar interface is used. Set only those that are not.
  22831. # We use the long form for the default assignment because of an extremely
  22832. # bizarre bug on SunOS 4.1.3.
  22833. if $ac_need_defaults; then
  22834. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22835. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22836. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22837. fi
  22838. # Have a temporary directory for convenience. Make it in the build tree
  22839. # simply because there is no reason to put it here, and in addition,
  22840. # creating and moving files from /tmp can sometimes cause problems.
  22841. # Create a temporary directory, and hook for its removal unless debugging.
  22842. $debug ||
  22843. {
  22844. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  22845. trap '{ (exit 1); exit 1; }' 1 2 13 15
  22846. }
  22847. # Create a (secure) tmp directory for tmp files.
  22848. {
  22849. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  22850. test -n "$tmp" && test -d "$tmp"
  22851. } ||
  22852. {
  22853. tmp=./confstat$$-$RANDOM
  22854. (umask 077 && mkdir $tmp)
  22855. } ||
  22856. {
  22857. echo "$me: cannot create a temporary directory in ." >&2
  22858. { (exit 1); exit 1; }
  22859. }
  22860. _ACEOF
  22861. cat >>$CONFIG_STATUS <<_ACEOF
  22862. #
  22863. # CONFIG_FILES section.
  22864. #
  22865. # No need to generate the scripts if there are no CONFIG_FILES.
  22866. # This happens for instance when ./config.status config.h
  22867. if test -n "\$CONFIG_FILES"; then
  22868. # Protect against being on the right side of a sed subst in config.status.
  22869. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  22870. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  22871. s,@SHELL@,$SHELL,;t t
  22872. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  22873. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  22874. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  22875. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  22876. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  22877. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  22878. s,@exec_prefix@,$exec_prefix,;t t
  22879. s,@prefix@,$prefix,;t t
  22880. s,@program_transform_name@,$program_transform_name,;t t
  22881. s,@bindir@,$bindir,;t t
  22882. s,@sbindir@,$sbindir,;t t
  22883. s,@libexecdir@,$libexecdir,;t t
  22884. s,@datadir@,$datadir,;t t
  22885. s,@sysconfdir@,$sysconfdir,;t t
  22886. s,@sharedstatedir@,$sharedstatedir,;t t
  22887. s,@localstatedir@,$localstatedir,;t t
  22888. s,@libdir@,$libdir,;t t
  22889. s,@includedir@,$includedir,;t t
  22890. s,@oldincludedir@,$oldincludedir,;t t
  22891. s,@infodir@,$infodir,;t t
  22892. s,@mandir@,$mandir,;t t
  22893. s,@build_alias@,$build_alias,;t t
  22894. s,@host_alias@,$host_alias,;t t
  22895. s,@target_alias@,$target_alias,;t t
  22896. s,@DEFS@,$DEFS,;t t
  22897. s,@ECHO_C@,$ECHO_C,;t t
  22898. s,@ECHO_N@,$ECHO_N,;t t
  22899. s,@ECHO_T@,$ECHO_T,;t t
  22900. s,@LIBS@,$LIBS,;t t
  22901. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  22902. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  22903. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  22904. s,@CYGPATH_W@,$CYGPATH_W,;t t
  22905. s,@PACKAGE@,$PACKAGE,;t t
  22906. s,@VERSION@,$VERSION,;t t
  22907. s,@ACLOCAL@,$ACLOCAL,;t t
  22908. s,@AUTOCONF@,$AUTOCONF,;t t
  22909. s,@AUTOMAKE@,$AUTOMAKE,;t t
  22910. s,@AUTOHEADER@,$AUTOHEADER,;t t
  22911. s,@MAKEINFO@,$MAKEINFO,;t t
  22912. s,@install_sh@,$install_sh,;t t
  22913. s,@STRIP@,$STRIP,;t t
  22914. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  22915. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  22916. s,@mkdir_p@,$mkdir_p,;t t
  22917. s,@AWK@,$AWK,;t t
  22918. s,@SET_MAKE@,$SET_MAKE,;t t
  22919. s,@am__leading_dot@,$am__leading_dot,;t t
  22920. s,@AMTAR@,$AMTAR,;t t
  22921. s,@am__tar@,$am__tar,;t t
  22922. s,@am__untar@,$am__untar,;t t
  22923. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  22924. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  22925. s,@MAINT@,$MAINT,;t t
  22926. s,@build@,$build,;t t
  22927. s,@build_cpu@,$build_cpu,;t t
  22928. s,@build_vendor@,$build_vendor,;t t
  22929. s,@build_os@,$build_os,;t t
  22930. s,@host@,$host,;t t
  22931. s,@host_cpu@,$host_cpu,;t t
  22932. s,@host_vendor@,$host_vendor,;t t
  22933. s,@host_os@,$host_os,;t t
  22934. s,@CXX@,$CXX,;t t
  22935. s,@CXXFLAGS@,$CXXFLAGS,;t t
  22936. s,@LDFLAGS@,$LDFLAGS,;t t
  22937. s,@CPPFLAGS@,$CPPFLAGS,;t t
  22938. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  22939. s,@EXEEXT@,$EXEEXT,;t t
  22940. s,@OBJEXT@,$OBJEXT,;t t
  22941. s,@DEPDIR@,$DEPDIR,;t t
  22942. s,@am__include@,$am__include,;t t
  22943. s,@am__quote@,$am__quote,;t t
  22944. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  22945. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  22946. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  22947. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  22948. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  22949. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  22950. s,@CC@,$CC,;t t
  22951. s,@CFLAGS@,$CFLAGS,;t t
  22952. s,@ac_ct_CC@,$ac_ct_CC,;t t
  22953. s,@CCDEPMODE@,$CCDEPMODE,;t t
  22954. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  22955. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  22956. s,@EGREP@,$EGREP,;t t
  22957. s,@LN_S@,$LN_S,;t t
  22958. s,@ECHO@,$ECHO,;t t
  22959. s,@AR@,$AR,;t t
  22960. s,@ac_ct_AR@,$ac_ct_AR,;t t
  22961. s,@RANLIB@,$RANLIB,;t t
  22962. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  22963. s,@CPP@,$CPP,;t t
  22964. s,@CXXCPP@,$CXXCPP,;t t
  22965. s,@F77@,$F77,;t t
  22966. s,@FFLAGS@,$FFLAGS,;t t
  22967. s,@ac_ct_F77@,$ac_ct_F77,;t t
  22968. s,@LIBTOOL@,$LIBTOOL,;t t
  22969. s,@LIBOBJS@,$LIBOBJS,;t t
  22970. s,@debug_defs@,$debug_defs,;t t
  22971. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  22972. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  22973. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  22974. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  22975. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  22976. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  22977. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  22978. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  22979. s,@configdir@,$configdir,;t t
  22980. s,@sampledatadir@,$sampledatadir,;t t
  22981. s,@propertydir@,$propertydir,;t t
  22982. s,@schemadir@,$schemadir,;t t
  22983. s,@serverdir@,$serverdir,;t t
  22984. s,@serverplugindir@,$serverplugindir,;t t
  22985. s,@scripttemplatedir@,$scripttemplatedir,;t t
  22986. s,@instconfigdir@,$instconfigdir,;t t
  22987. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  22988. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  22989. s,@LIBSOCKET@,$LIBSOCKET,;t t
  22990. s,@LIBNSL@,$LIBNSL,;t t
  22991. s,@LIBDL@,$LIBDL,;t t
  22992. s,@LIBCSTD@,$LIBCSTD,;t t
  22993. s,@LIBCRUN@,$LIBCRUN,;t t
  22994. s,@initdir@,$initdir,;t t
  22995. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  22996. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  22997. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  22998. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  22999. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  23000. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  23001. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  23002. s,@nspr_inc@,$nspr_inc,;t t
  23003. s,@nspr_lib@,$nspr_lib,;t t
  23004. s,@nspr_libdir@,$nspr_libdir,;t t
  23005. s,@nss_inc@,$nss_inc,;t t
  23006. s,@nss_lib@,$nss_lib,;t t
  23007. s,@nss_libdir@,$nss_libdir,;t t
  23008. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  23009. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  23010. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  23011. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  23012. s,@db_inc@,$db_inc,;t t
  23013. s,@db_incdir@,$db_incdir,;t t
  23014. s,@db_lib@,$db_lib,;t t
  23015. s,@db_libdir@,$db_libdir,;t t
  23016. s,@db_bindir@,$db_bindir,;t t
  23017. s,@db_libver@,$db_libver,;t t
  23018. s,@sasl_inc@,$sasl_inc,;t t
  23019. s,@sasl_lib@,$sasl_lib,;t t
  23020. s,@sasl_libdir@,$sasl_libdir,;t t
  23021. s,@svrcore_inc@,$svrcore_inc,;t t
  23022. s,@svrcore_lib@,$svrcore_lib,;t t
  23023. s,@icu_lib@,$icu_lib,;t t
  23024. s,@icu_inc@,$icu_inc,;t t
  23025. s,@icu_bin@,$icu_bin,;t t
  23026. s,@netsnmp_inc@,$netsnmp_inc,;t t
  23027. s,@netsnmp_lib@,$netsnmp_lib,;t t
  23028. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  23029. s,@netsnmp_link@,$netsnmp_link,;t t
  23030. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  23031. CEOF
  23032. _ACEOF
  23033. cat >>$CONFIG_STATUS <<\_ACEOF
  23034. # Split the substitutions into bite-sized pieces for seds with
  23035. # small command number limits, like on Digital OSF/1 and HP-UX.
  23036. ac_max_sed_lines=48
  23037. ac_sed_frag=1 # Number of current file.
  23038. ac_beg=1 # First line for current file.
  23039. ac_end=$ac_max_sed_lines # Line after last line for current file.
  23040. ac_more_lines=:
  23041. ac_sed_cmds=
  23042. while $ac_more_lines; do
  23043. if test $ac_beg -gt 1; then
  23044. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23045. else
  23046. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23047. fi
  23048. if test ! -s $tmp/subs.frag; then
  23049. ac_more_lines=false
  23050. else
  23051. # The purpose of the label and of the branching condition is to
  23052. # speed up the sed processing (if there are no `@' at all, there
  23053. # is no need to browse any of the substitutions).
  23054. # These are the two extra sed commands mentioned above.
  23055. (echo ':t
  23056. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  23057. if test -z "$ac_sed_cmds"; then
  23058. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  23059. else
  23060. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  23061. fi
  23062. ac_sed_frag=`expr $ac_sed_frag + 1`
  23063. ac_beg=$ac_end
  23064. ac_end=`expr $ac_end + $ac_max_sed_lines`
  23065. fi
  23066. done
  23067. if test -z "$ac_sed_cmds"; then
  23068. ac_sed_cmds=cat
  23069. fi
  23070. fi # test -n "$CONFIG_FILES"
  23071. _ACEOF
  23072. cat >>$CONFIG_STATUS <<\_ACEOF
  23073. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  23074. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23075. case $ac_file in
  23076. - | *:- | *:-:* ) # input from stdin
  23077. cat >$tmp/stdin
  23078. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23079. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23080. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23081. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23082. * ) ac_file_in=$ac_file.in ;;
  23083. esac
  23084. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  23085. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23086. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23087. X"$ac_file" : 'X\(//\)[^/]' \| \
  23088. X"$ac_file" : 'X\(//\)$' \| \
  23089. X"$ac_file" : 'X\(/\)' \| \
  23090. . : '\(.\)' 2>/dev/null ||
  23091. echo X"$ac_file" |
  23092. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23093. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23094. /^X\(\/\/\)$/{ s//\1/; q; }
  23095. /^X\(\/\).*/{ s//\1/; q; }
  23096. s/.*/./; q'`
  23097. { if $as_mkdir_p; then
  23098. mkdir -p "$ac_dir"
  23099. else
  23100. as_dir="$ac_dir"
  23101. as_dirs=
  23102. while test ! -d "$as_dir"; do
  23103. as_dirs="$as_dir $as_dirs"
  23104. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23105. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23106. X"$as_dir" : 'X\(//\)[^/]' \| \
  23107. X"$as_dir" : 'X\(//\)$' \| \
  23108. X"$as_dir" : 'X\(/\)' \| \
  23109. . : '\(.\)' 2>/dev/null ||
  23110. echo X"$as_dir" |
  23111. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23112. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23113. /^X\(\/\/\)$/{ s//\1/; q; }
  23114. /^X\(\/\).*/{ s//\1/; q; }
  23115. s/.*/./; q'`
  23116. done
  23117. test ! -n "$as_dirs" || mkdir $as_dirs
  23118. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23119. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23120. { (exit 1); exit 1; }; }; }
  23121. ac_builddir=.
  23122. if test "$ac_dir" != .; then
  23123. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23124. # A "../" for each directory in $ac_dir_suffix.
  23125. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23126. else
  23127. ac_dir_suffix= ac_top_builddir=
  23128. fi
  23129. case $srcdir in
  23130. .) # No --srcdir option. We are building in place.
  23131. ac_srcdir=.
  23132. if test -z "$ac_top_builddir"; then
  23133. ac_top_srcdir=.
  23134. else
  23135. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23136. fi ;;
  23137. [\\/]* | ?:[\\/]* ) # Absolute path.
  23138. ac_srcdir=$srcdir$ac_dir_suffix;
  23139. ac_top_srcdir=$srcdir ;;
  23140. *) # Relative path.
  23141. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23142. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23143. esac
  23144. # Do not use `cd foo && pwd` to compute absolute paths, because
  23145. # the directories may not exist.
  23146. case `pwd` in
  23147. .) ac_abs_builddir="$ac_dir";;
  23148. *)
  23149. case "$ac_dir" in
  23150. .) ac_abs_builddir=`pwd`;;
  23151. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23152. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23153. esac;;
  23154. esac
  23155. case $ac_abs_builddir in
  23156. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23157. *)
  23158. case ${ac_top_builddir}. in
  23159. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23160. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23161. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23162. esac;;
  23163. esac
  23164. case $ac_abs_builddir in
  23165. .) ac_abs_srcdir=$ac_srcdir;;
  23166. *)
  23167. case $ac_srcdir in
  23168. .) ac_abs_srcdir=$ac_abs_builddir;;
  23169. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23170. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23171. esac;;
  23172. esac
  23173. case $ac_abs_builddir in
  23174. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23175. *)
  23176. case $ac_top_srcdir in
  23177. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23178. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23179. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23180. esac;;
  23181. esac
  23182. case $INSTALL in
  23183. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23184. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  23185. esac
  23186. if test x"$ac_file" != x-; then
  23187. { echo "$as_me:$LINENO: creating $ac_file" >&5
  23188. echo "$as_me: creating $ac_file" >&6;}
  23189. rm -f "$ac_file"
  23190. fi
  23191. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23192. # use $as_me), people would be surprised to read:
  23193. # /* config.h. Generated by config.status. */
  23194. if test x"$ac_file" = x-; then
  23195. configure_input=
  23196. else
  23197. configure_input="$ac_file. "
  23198. fi
  23199. configure_input=$configure_input"Generated from `echo $ac_file_in |
  23200. sed 's,.*/,,'` by configure."
  23201. # First look for the input files in the build tree, otherwise in the
  23202. # src tree.
  23203. ac_file_inputs=`IFS=:
  23204. for f in $ac_file_in; do
  23205. case $f in
  23206. -) echo $tmp/stdin ;;
  23207. [\\/$]*)
  23208. # Absolute (can't be DOS-style, as IFS=:)
  23209. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23210. echo "$as_me: error: cannot find input file: $f" >&2;}
  23211. { (exit 1); exit 1; }; }
  23212. echo "$f";;
  23213. *) # Relative
  23214. if test -f "$f"; then
  23215. # Build tree
  23216. echo "$f"
  23217. elif test -f "$srcdir/$f"; then
  23218. # Source tree
  23219. echo "$srcdir/$f"
  23220. else
  23221. # /dev/null tree
  23222. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23223. echo "$as_me: error: cannot find input file: $f" >&2;}
  23224. { (exit 1); exit 1; }; }
  23225. fi;;
  23226. esac
  23227. done` || { (exit 1); exit 1; }
  23228. _ACEOF
  23229. cat >>$CONFIG_STATUS <<_ACEOF
  23230. sed "$ac_vpsub
  23231. $extrasub
  23232. _ACEOF
  23233. cat >>$CONFIG_STATUS <<\_ACEOF
  23234. :t
  23235. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23236. s,@configure_input@,$configure_input,;t t
  23237. s,@srcdir@,$ac_srcdir,;t t
  23238. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  23239. s,@top_srcdir@,$ac_top_srcdir,;t t
  23240. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  23241. s,@builddir@,$ac_builddir,;t t
  23242. s,@abs_builddir@,$ac_abs_builddir,;t t
  23243. s,@top_builddir@,$ac_top_builddir,;t t
  23244. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  23245. s,@INSTALL@,$ac_INSTALL,;t t
  23246. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  23247. rm -f $tmp/stdin
  23248. if test x"$ac_file" != x-; then
  23249. mv $tmp/out $ac_file
  23250. else
  23251. cat $tmp/out
  23252. rm -f $tmp/out
  23253. fi
  23254. done
  23255. _ACEOF
  23256. cat >>$CONFIG_STATUS <<\_ACEOF
  23257. #
  23258. # CONFIG_HEADER section.
  23259. #
  23260. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  23261. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  23262. #
  23263. # ac_d sets the value in "#define NAME VALUE" lines.
  23264. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  23265. ac_dB='[ ].*$,\1#\2'
  23266. ac_dC=' '
  23267. ac_dD=',;t'
  23268. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  23269. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  23270. ac_uB='$,\1#\2define\3'
  23271. ac_uC=' '
  23272. ac_uD=',;t'
  23273. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  23274. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23275. case $ac_file in
  23276. - | *:- | *:-:* ) # input from stdin
  23277. cat >$tmp/stdin
  23278. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23279. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23280. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23281. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23282. * ) ac_file_in=$ac_file.in ;;
  23283. esac
  23284. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  23285. echo "$as_me: creating $ac_file" >&6;}
  23286. # First look for the input files in the build tree, otherwise in the
  23287. # src tree.
  23288. ac_file_inputs=`IFS=:
  23289. for f in $ac_file_in; do
  23290. case $f in
  23291. -) echo $tmp/stdin ;;
  23292. [\\/$]*)
  23293. # Absolute (can't be DOS-style, as IFS=:)
  23294. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23295. echo "$as_me: error: cannot find input file: $f" >&2;}
  23296. { (exit 1); exit 1; }; }
  23297. # Do quote $f, to prevent DOS paths from being IFS'd.
  23298. echo "$f";;
  23299. *) # Relative
  23300. if test -f "$f"; then
  23301. # Build tree
  23302. echo "$f"
  23303. elif test -f "$srcdir/$f"; then
  23304. # Source tree
  23305. echo "$srcdir/$f"
  23306. else
  23307. # /dev/null tree
  23308. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23309. echo "$as_me: error: cannot find input file: $f" >&2;}
  23310. { (exit 1); exit 1; }; }
  23311. fi;;
  23312. esac
  23313. done` || { (exit 1); exit 1; }
  23314. # Remove the trailing spaces.
  23315. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  23316. _ACEOF
  23317. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  23318. # `conftest.undefs', that substitutes the proper values into
  23319. # config.h.in to produce config.h. The first handles `#define'
  23320. # templates, and the second `#undef' templates.
  23321. # And first: Protect against being on the right side of a sed subst in
  23322. # config.status. Protect against being in an unquoted here document
  23323. # in config.status.
  23324. rm -f conftest.defines conftest.undefs
  23325. # Using a here document instead of a string reduces the quoting nightmare.
  23326. # Putting comments in sed scripts is not portable.
  23327. #
  23328. # `end' is used to avoid that the second main sed command (meant for
  23329. # 0-ary CPP macros) applies to n-ary macro definitions.
  23330. # See the Autoconf documentation for `clear'.
  23331. cat >confdef2sed.sed <<\_ACEOF
  23332. s/[\\&,]/\\&/g
  23333. s,[\\$`],\\&,g
  23334. t clear
  23335. : clear
  23336. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  23337. t end
  23338. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  23339. : end
  23340. _ACEOF
  23341. # If some macros were called several times there might be several times
  23342. # the same #defines, which is useless. Nevertheless, we may not want to
  23343. # sort them, since we want the *last* AC-DEFINE to be honored.
  23344. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  23345. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  23346. rm -f confdef2sed.sed
  23347. # This sed command replaces #undef with comments. This is necessary, for
  23348. # example, in the case of _POSIX_SOURCE, which is predefined and required
  23349. # on some systems where configure will not decide to define it.
  23350. cat >>conftest.undefs <<\_ACEOF
  23351. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  23352. _ACEOF
  23353. # Break up conftest.defines because some shells have a limit on the size
  23354. # of here documents, and old seds have small limits too (100 cmds).
  23355. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  23356. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  23357. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  23358. echo ' :' >>$CONFIG_STATUS
  23359. rm -f conftest.tail
  23360. while grep . conftest.defines >/dev/null
  23361. do
  23362. # Write a limited-size here document to $tmp/defines.sed.
  23363. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  23364. # Speed up: don't consider the non `#define' lines.
  23365. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  23366. # Work around the forget-to-reset-the-flag bug.
  23367. echo 't clr' >>$CONFIG_STATUS
  23368. echo ': clr' >>$CONFIG_STATUS
  23369. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  23370. echo 'CEOF
  23371. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  23372. rm -f $tmp/in
  23373. mv $tmp/out $tmp/in
  23374. ' >>$CONFIG_STATUS
  23375. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  23376. rm -f conftest.defines
  23377. mv conftest.tail conftest.defines
  23378. done
  23379. rm -f conftest.defines
  23380. echo ' fi # grep' >>$CONFIG_STATUS
  23381. echo >>$CONFIG_STATUS
  23382. # Break up conftest.undefs because some shells have a limit on the size
  23383. # of here documents, and old seds have small limits too (100 cmds).
  23384. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  23385. rm -f conftest.tail
  23386. while grep . conftest.undefs >/dev/null
  23387. do
  23388. # Write a limited-size here document to $tmp/undefs.sed.
  23389. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  23390. # Speed up: don't consider the non `#undef'
  23391. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  23392. # Work around the forget-to-reset-the-flag bug.
  23393. echo 't clr' >>$CONFIG_STATUS
  23394. echo ': clr' >>$CONFIG_STATUS
  23395. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  23396. echo 'CEOF
  23397. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  23398. rm -f $tmp/in
  23399. mv $tmp/out $tmp/in
  23400. ' >>$CONFIG_STATUS
  23401. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  23402. rm -f conftest.undefs
  23403. mv conftest.tail conftest.undefs
  23404. done
  23405. rm -f conftest.undefs
  23406. cat >>$CONFIG_STATUS <<\_ACEOF
  23407. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23408. # use $as_me), people would be surprised to read:
  23409. # /* config.h. Generated by config.status. */
  23410. if test x"$ac_file" = x-; then
  23411. echo "/* Generated by configure. */" >$tmp/config.h
  23412. else
  23413. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  23414. fi
  23415. cat $tmp/in >>$tmp/config.h
  23416. rm -f $tmp/in
  23417. if test x"$ac_file" != x-; then
  23418. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  23419. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23420. echo "$as_me: $ac_file is unchanged" >&6;}
  23421. else
  23422. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23423. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23424. X"$ac_file" : 'X\(//\)[^/]' \| \
  23425. X"$ac_file" : 'X\(//\)$' \| \
  23426. X"$ac_file" : 'X\(/\)' \| \
  23427. . : '\(.\)' 2>/dev/null ||
  23428. echo X"$ac_file" |
  23429. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23430. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23431. /^X\(\/\/\)$/{ s//\1/; q; }
  23432. /^X\(\/\).*/{ s//\1/; q; }
  23433. s/.*/./; q'`
  23434. { if $as_mkdir_p; then
  23435. mkdir -p "$ac_dir"
  23436. else
  23437. as_dir="$ac_dir"
  23438. as_dirs=
  23439. while test ! -d "$as_dir"; do
  23440. as_dirs="$as_dir $as_dirs"
  23441. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23442. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23443. X"$as_dir" : 'X\(//\)[^/]' \| \
  23444. X"$as_dir" : 'X\(//\)$' \| \
  23445. X"$as_dir" : 'X\(/\)' \| \
  23446. . : '\(.\)' 2>/dev/null ||
  23447. echo X"$as_dir" |
  23448. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23449. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23450. /^X\(\/\/\)$/{ s//\1/; q; }
  23451. /^X\(\/\).*/{ s//\1/; q; }
  23452. s/.*/./; q'`
  23453. done
  23454. test ! -n "$as_dirs" || mkdir $as_dirs
  23455. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23456. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23457. { (exit 1); exit 1; }; }; }
  23458. rm -f $ac_file
  23459. mv $tmp/config.h $ac_file
  23460. fi
  23461. else
  23462. cat $tmp/config.h
  23463. rm -f $tmp/config.h
  23464. fi
  23465. # Compute $ac_file's index in $config_headers.
  23466. _am_stamp_count=1
  23467. for _am_header in $config_headers :; do
  23468. case $_am_header in
  23469. $ac_file | $ac_file:* )
  23470. break ;;
  23471. * )
  23472. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23473. esac
  23474. done
  23475. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  23476. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23477. X$ac_file : 'X\(//\)[^/]' \| \
  23478. X$ac_file : 'X\(//\)$' \| \
  23479. X$ac_file : 'X\(/\)' \| \
  23480. . : '\(.\)' 2>/dev/null ||
  23481. echo X$ac_file |
  23482. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23483. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23484. /^X\(\/\/\)$/{ s//\1/; q; }
  23485. /^X\(\/\).*/{ s//\1/; q; }
  23486. s/.*/./; q'`/stamp-h$_am_stamp_count
  23487. done
  23488. _ACEOF
  23489. cat >>$CONFIG_STATUS <<\_ACEOF
  23490. #
  23491. # CONFIG_COMMANDS section.
  23492. #
  23493. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  23494. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  23495. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23496. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  23497. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23498. X"$ac_dest" : 'X\(//\)[^/]' \| \
  23499. X"$ac_dest" : 'X\(//\)$' \| \
  23500. X"$ac_dest" : 'X\(/\)' \| \
  23501. . : '\(.\)' 2>/dev/null ||
  23502. echo X"$ac_dest" |
  23503. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23504. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23505. /^X\(\/\/\)$/{ s//\1/; q; }
  23506. /^X\(\/\).*/{ s//\1/; q; }
  23507. s/.*/./; q'`
  23508. { if $as_mkdir_p; then
  23509. mkdir -p "$ac_dir"
  23510. else
  23511. as_dir="$ac_dir"
  23512. as_dirs=
  23513. while test ! -d "$as_dir"; do
  23514. as_dirs="$as_dir $as_dirs"
  23515. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23516. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23517. X"$as_dir" : 'X\(//\)[^/]' \| \
  23518. X"$as_dir" : 'X\(//\)$' \| \
  23519. X"$as_dir" : 'X\(/\)' \| \
  23520. . : '\(.\)' 2>/dev/null ||
  23521. echo X"$as_dir" |
  23522. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23523. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23524. /^X\(\/\/\)$/{ s//\1/; q; }
  23525. /^X\(\/\).*/{ s//\1/; q; }
  23526. s/.*/./; q'`
  23527. done
  23528. test ! -n "$as_dirs" || mkdir $as_dirs
  23529. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23530. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23531. { (exit 1); exit 1; }; }; }
  23532. ac_builddir=.
  23533. if test "$ac_dir" != .; then
  23534. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23535. # A "../" for each directory in $ac_dir_suffix.
  23536. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23537. else
  23538. ac_dir_suffix= ac_top_builddir=
  23539. fi
  23540. case $srcdir in
  23541. .) # No --srcdir option. We are building in place.
  23542. ac_srcdir=.
  23543. if test -z "$ac_top_builddir"; then
  23544. ac_top_srcdir=.
  23545. else
  23546. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23547. fi ;;
  23548. [\\/]* | ?:[\\/]* ) # Absolute path.
  23549. ac_srcdir=$srcdir$ac_dir_suffix;
  23550. ac_top_srcdir=$srcdir ;;
  23551. *) # Relative path.
  23552. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23553. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23554. esac
  23555. # Do not use `cd foo && pwd` to compute absolute paths, because
  23556. # the directories may not exist.
  23557. case `pwd` in
  23558. .) ac_abs_builddir="$ac_dir";;
  23559. *)
  23560. case "$ac_dir" in
  23561. .) ac_abs_builddir=`pwd`;;
  23562. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23563. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23564. esac;;
  23565. esac
  23566. case $ac_abs_builddir in
  23567. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23568. *)
  23569. case ${ac_top_builddir}. in
  23570. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23571. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23572. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23573. esac;;
  23574. esac
  23575. case $ac_abs_builddir in
  23576. .) ac_abs_srcdir=$ac_srcdir;;
  23577. *)
  23578. case $ac_srcdir in
  23579. .) ac_abs_srcdir=$ac_abs_builddir;;
  23580. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23581. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23582. esac;;
  23583. esac
  23584. case $ac_abs_builddir in
  23585. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23586. *)
  23587. case $ac_top_srcdir in
  23588. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23589. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23590. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23591. esac;;
  23592. esac
  23593. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  23594. echo "$as_me: executing $ac_dest commands" >&6;}
  23595. case $ac_dest in
  23596. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  23597. # Strip MF so we end up with the name of the file.
  23598. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23599. # Check whether this is an Automake generated Makefile or not.
  23600. # We used to match only the files named `Makefile.in', but
  23601. # some people rename them; so instead we look at the file content.
  23602. # Grep'ing the first line is not enough: some people post-process
  23603. # each Makefile.in and add a new line on top of each file to say so.
  23604. # So let's grep whole file.
  23605. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  23606. dirpart=`(dirname "$mf") 2>/dev/null ||
  23607. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23608. X"$mf" : 'X\(//\)[^/]' \| \
  23609. X"$mf" : 'X\(//\)$' \| \
  23610. X"$mf" : 'X\(/\)' \| \
  23611. . : '\(.\)' 2>/dev/null ||
  23612. echo X"$mf" |
  23613. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23614. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23615. /^X\(\/\/\)$/{ s//\1/; q; }
  23616. /^X\(\/\).*/{ s//\1/; q; }
  23617. s/.*/./; q'`
  23618. else
  23619. continue
  23620. fi
  23621. # Extract the definition of DEPDIR, am__include, and am__quote
  23622. # from the Makefile without running `make'.
  23623. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23624. test -z "$DEPDIR" && continue
  23625. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23626. test -z "am__include" && continue
  23627. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23628. # When using ansi2knr, U may be empty or an underscore; expand it
  23629. U=`sed -n 's/^U = //p' < "$mf"`
  23630. # Find all dependency output files, they are included files with
  23631. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23632. # simplest approach to changing $(DEPDIR) to its actual value in the
  23633. # expansion.
  23634. for file in `sed -n "
  23635. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23636. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23637. # Make sure the directory exists.
  23638. test -f "$dirpart/$file" && continue
  23639. fdir=`(dirname "$file") 2>/dev/null ||
  23640. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23641. X"$file" : 'X\(//\)[^/]' \| \
  23642. X"$file" : 'X\(//\)$' \| \
  23643. X"$file" : 'X\(/\)' \| \
  23644. . : '\(.\)' 2>/dev/null ||
  23645. echo X"$file" |
  23646. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23647. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23648. /^X\(\/\/\)$/{ s//\1/; q; }
  23649. /^X\(\/\).*/{ s//\1/; q; }
  23650. s/.*/./; q'`
  23651. { if $as_mkdir_p; then
  23652. mkdir -p $dirpart/$fdir
  23653. else
  23654. as_dir=$dirpart/$fdir
  23655. as_dirs=
  23656. while test ! -d "$as_dir"; do
  23657. as_dirs="$as_dir $as_dirs"
  23658. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23659. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23660. X"$as_dir" : 'X\(//\)[^/]' \| \
  23661. X"$as_dir" : 'X\(//\)$' \| \
  23662. X"$as_dir" : 'X\(/\)' \| \
  23663. . : '\(.\)' 2>/dev/null ||
  23664. echo X"$as_dir" |
  23665. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23666. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23667. /^X\(\/\/\)$/{ s//\1/; q; }
  23668. /^X\(\/\).*/{ s//\1/; q; }
  23669. s/.*/./; q'`
  23670. done
  23671. test ! -n "$as_dirs" || mkdir $as_dirs
  23672. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  23673. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  23674. { (exit 1); exit 1; }; }; }
  23675. # echo "creating $dirpart/$file"
  23676. echo '# dummy' > "$dirpart/$file"
  23677. done
  23678. done
  23679. ;;
  23680. esac
  23681. done
  23682. _ACEOF
  23683. cat >>$CONFIG_STATUS <<\_ACEOF
  23684. { (exit 0); exit 0; }
  23685. _ACEOF
  23686. chmod +x $CONFIG_STATUS
  23687. ac_clean_files=$ac_clean_files_save
  23688. # configure is writing to config.log, and then calls config.status.
  23689. # config.status does its own redirection, appending to config.log.
  23690. # Unfortunately, on DOS this fails, as config.log is still kept open
  23691. # by configure, so config.status won't be able to write to it; its
  23692. # output is simply discarded. So we exec the FD to /dev/null,
  23693. # effectively closing config.log, so it can be properly (re)opened and
  23694. # appended to by config.status. When coming back to configure, we
  23695. # need to make the FD available again.
  23696. if test "$no_create" != yes; then
  23697. ac_cs_success=:
  23698. ac_config_status_args=
  23699. test "$silent" = yes &&
  23700. ac_config_status_args="$ac_config_status_args --quiet"
  23701. exec 5>/dev/null
  23702. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23703. exec 5>>config.log
  23704. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23705. # would make configure fail if this is the last instruction.
  23706. $ac_cs_success || { (exit 1); exit 1; }
  23707. fi