configure 834 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543
  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-instconfigdir=/path
  932. Base directory for instance specific writable
  933. configuration directories (default
  934. $sysconfdir/$PACKAGE_NAME)
  935. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  936. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  937. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  938. --with-nss=PATH Network Security Services (NSS) directory
  939. --with-nss-inc=PATH Network Security Services (NSS) include directory
  940. --with-nss-lib=PATH Network Security Services (NSS) library directory
  941. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  942. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  943. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  944. --with-db=PATH Berkeley DB directory
  945. --with-sasl=PATH Use sasl from supplied path
  946. --with-sasl-inc=PATH SASL include file directory
  947. --with-sasl-lib=PATH SASL library directory
  948. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  949. --with-svrcore-inc=PATH SVRCORE include file directory
  950. --with-svrcore-lib=PATH SVRCORE library directory
  951. --with-icu=PATH ICU directory
  952. --with-icu-inc=PATH ICU include directory
  953. --with-icu-lib=PATH ICU library directory
  954. --with-icu-bin=PATH ICU binary directory
  955. --with-netsnmp=PATH Net-SNMP directory
  956. --with-netsnmp-inc=PATH Net-SNMP include directory
  957. --with-netsnmp-lib=PATH Net-SNMP library directory
  958. Some influential environment variables:
  959. CXX C++ compiler command
  960. CXXFLAGS C++ compiler flags
  961. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  962. nonstandard directory <lib dir>
  963. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  964. headers in a nonstandard directory <include dir>
  965. CC C compiler command
  966. CFLAGS C compiler flags
  967. CPP C preprocessor
  968. CXXCPP C++ preprocessor
  969. F77 Fortran 77 compiler command
  970. FFLAGS Fortran 77 compiler flags
  971. Use these variables to override the choices made by `configure' or to help
  972. it to find libraries and programs with nonstandard names/locations.
  973. Report bugs to <http://bugzilla.redhat.com/>.
  974. _ACEOF
  975. fi
  976. if test "$ac_init_help" = "recursive"; then
  977. # If there are subdirs, report their specific --help.
  978. ac_popdir=`pwd`
  979. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  980. test -d $ac_dir || continue
  981. ac_builddir=.
  982. if test "$ac_dir" != .; then
  983. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  984. # A "../" for each directory in $ac_dir_suffix.
  985. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  986. else
  987. ac_dir_suffix= ac_top_builddir=
  988. fi
  989. case $srcdir in
  990. .) # No --srcdir option. We are building in place.
  991. ac_srcdir=.
  992. if test -z "$ac_top_builddir"; then
  993. ac_top_srcdir=.
  994. else
  995. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  996. fi ;;
  997. [\\/]* | ?:[\\/]* ) # Absolute path.
  998. ac_srcdir=$srcdir$ac_dir_suffix;
  999. ac_top_srcdir=$srcdir ;;
  1000. *) # Relative path.
  1001. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1002. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1003. esac
  1004. # Do not use `cd foo && pwd` to compute absolute paths, because
  1005. # the directories may not exist.
  1006. case `pwd` in
  1007. .) ac_abs_builddir="$ac_dir";;
  1008. *)
  1009. case "$ac_dir" in
  1010. .) ac_abs_builddir=`pwd`;;
  1011. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1012. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1013. esac;;
  1014. esac
  1015. case $ac_abs_builddir in
  1016. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1017. *)
  1018. case ${ac_top_builddir}. in
  1019. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1020. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1021. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1022. esac;;
  1023. esac
  1024. case $ac_abs_builddir in
  1025. .) ac_abs_srcdir=$ac_srcdir;;
  1026. *)
  1027. case $ac_srcdir in
  1028. .) ac_abs_srcdir=$ac_abs_builddir;;
  1029. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1030. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1031. esac;;
  1032. esac
  1033. case $ac_abs_builddir in
  1034. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1035. *)
  1036. case $ac_top_srcdir in
  1037. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1038. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1039. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1040. esac;;
  1041. esac
  1042. cd $ac_dir
  1043. # Check for guested configure; otherwise get Cygnus style configure.
  1044. if test -f $ac_srcdir/configure.gnu; then
  1045. echo
  1046. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1047. elif test -f $ac_srcdir/configure; then
  1048. echo
  1049. $SHELL $ac_srcdir/configure --help=recursive
  1050. elif test -f $ac_srcdir/configure.ac ||
  1051. test -f $ac_srcdir/configure.in; then
  1052. echo
  1053. $ac_configure --help
  1054. else
  1055. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1056. fi
  1057. cd $ac_popdir
  1058. done
  1059. fi
  1060. test -n "$ac_init_help" && exit 0
  1061. if $ac_init_version; then
  1062. cat <<\_ACEOF
  1063. fedora-ds configure 1.1.0a3
  1064. generated by GNU Autoconf 2.59
  1065. Copyright (C) 2003 Free Software Foundation, Inc.
  1066. This configure script is free software; the Free Software Foundation
  1067. gives unlimited permission to copy, distribute and modify it.
  1068. _ACEOF
  1069. exit 0
  1070. fi
  1071. exec 5>config.log
  1072. cat >&5 <<_ACEOF
  1073. This file contains any messages produced by compilers while
  1074. running configure, to aid debugging if configure makes a mistake.
  1075. It was created by fedora-ds $as_me 1.1.0a3, which was
  1076. generated by GNU Autoconf 2.59. Invocation command line was
  1077. $ $0 $@
  1078. _ACEOF
  1079. {
  1080. cat <<_ASUNAME
  1081. ## --------- ##
  1082. ## Platform. ##
  1083. ## --------- ##
  1084. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1085. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1086. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1087. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1088. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1089. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1090. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1091. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1092. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1093. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1094. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1095. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1096. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1097. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1098. _ASUNAME
  1099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1100. for as_dir in $PATH
  1101. do
  1102. IFS=$as_save_IFS
  1103. test -z "$as_dir" && as_dir=.
  1104. echo "PATH: $as_dir"
  1105. done
  1106. } >&5
  1107. cat >&5 <<_ACEOF
  1108. ## ----------- ##
  1109. ## Core tests. ##
  1110. ## ----------- ##
  1111. _ACEOF
  1112. # Keep a trace of the command line.
  1113. # Strip out --no-create and --no-recursion so they do not pile up.
  1114. # Strip out --silent because we don't want to record it for future runs.
  1115. # Also quote any args containing shell meta-characters.
  1116. # Make two passes to allow for proper duplicate-argument suppression.
  1117. ac_configure_args=
  1118. ac_configure_args0=
  1119. ac_configure_args1=
  1120. ac_sep=
  1121. ac_must_keep_next=false
  1122. for ac_pass in 1 2
  1123. do
  1124. for ac_arg
  1125. do
  1126. case $ac_arg in
  1127. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1128. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1129. | -silent | --silent | --silen | --sile | --sil)
  1130. continue ;;
  1131. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1132. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1133. esac
  1134. case $ac_pass in
  1135. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1136. 2)
  1137. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1138. if test $ac_must_keep_next = true; then
  1139. ac_must_keep_next=false # Got value, back to normal.
  1140. else
  1141. case $ac_arg in
  1142. *=* | --config-cache | -C | -disable-* | --disable-* \
  1143. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1144. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1145. | -with-* | --with-* | -without-* | --without-* | --x)
  1146. case "$ac_configure_args0 " in
  1147. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1148. esac
  1149. ;;
  1150. -* ) ac_must_keep_next=true ;;
  1151. esac
  1152. fi
  1153. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1154. # Get rid of the leading space.
  1155. ac_sep=" "
  1156. ;;
  1157. esac
  1158. done
  1159. done
  1160. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1161. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1162. # When interrupted or exit'd, cleanup temporary files, and complete
  1163. # config.log. We remove comments because anyway the quotes in there
  1164. # would cause problems or look ugly.
  1165. # WARNING: Be sure not to use single quotes in there, as some shells,
  1166. # such as our DU 5.0 friend, will then `close' the trap.
  1167. trap 'exit_status=$?
  1168. # Save into config.log some information that might help in debugging.
  1169. {
  1170. echo
  1171. cat <<\_ASBOX
  1172. ## ---------------- ##
  1173. ## Cache variables. ##
  1174. ## ---------------- ##
  1175. _ASBOX
  1176. echo
  1177. # The following way of writing the cache mishandles newlines in values,
  1178. {
  1179. (set) 2>&1 |
  1180. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1181. *ac_space=\ *)
  1182. sed -n \
  1183. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1184. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1185. ;;
  1186. *)
  1187. sed -n \
  1188. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1189. ;;
  1190. esac;
  1191. }
  1192. echo
  1193. cat <<\_ASBOX
  1194. ## ----------------- ##
  1195. ## Output variables. ##
  1196. ## ----------------- ##
  1197. _ASBOX
  1198. echo
  1199. for ac_var in $ac_subst_vars
  1200. do
  1201. eval ac_val=$`echo $ac_var`
  1202. echo "$ac_var='"'"'$ac_val'"'"'"
  1203. done | sort
  1204. echo
  1205. if test -n "$ac_subst_files"; then
  1206. cat <<\_ASBOX
  1207. ## ------------- ##
  1208. ## Output files. ##
  1209. ## ------------- ##
  1210. _ASBOX
  1211. echo
  1212. for ac_var in $ac_subst_files
  1213. do
  1214. eval ac_val=$`echo $ac_var`
  1215. echo "$ac_var='"'"'$ac_val'"'"'"
  1216. done | sort
  1217. echo
  1218. fi
  1219. if test -s confdefs.h; then
  1220. cat <<\_ASBOX
  1221. ## ----------- ##
  1222. ## confdefs.h. ##
  1223. ## ----------- ##
  1224. _ASBOX
  1225. echo
  1226. sed "/^$/d" confdefs.h | sort
  1227. echo
  1228. fi
  1229. test "$ac_signal" != 0 &&
  1230. echo "$as_me: caught signal $ac_signal"
  1231. echo "$as_me: exit $exit_status"
  1232. } >&5
  1233. rm -f core *.core &&
  1234. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1235. exit $exit_status
  1236. ' 0
  1237. for ac_signal in 1 2 13 15; do
  1238. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1239. done
  1240. ac_signal=0
  1241. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1242. rm -rf conftest* confdefs.h
  1243. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1244. echo >confdefs.h
  1245. # Predefined preprocessor variables.
  1246. cat >>confdefs.h <<_ACEOF
  1247. #define PACKAGE_NAME "$PACKAGE_NAME"
  1248. _ACEOF
  1249. cat >>confdefs.h <<_ACEOF
  1250. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1251. _ACEOF
  1252. cat >>confdefs.h <<_ACEOF
  1253. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1254. _ACEOF
  1255. cat >>confdefs.h <<_ACEOF
  1256. #define PACKAGE_STRING "$PACKAGE_STRING"
  1257. _ACEOF
  1258. cat >>confdefs.h <<_ACEOF
  1259. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1260. _ACEOF
  1261. # Let the site file select an alternate cache file if it wants to.
  1262. # Prefer explicitly selected file to automatically selected ones.
  1263. if test -z "$CONFIG_SITE"; then
  1264. if test "x$prefix" != xNONE; then
  1265. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1266. else
  1267. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1268. fi
  1269. fi
  1270. for ac_site_file in $CONFIG_SITE; do
  1271. if test -r "$ac_site_file"; then
  1272. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1273. echo "$as_me: loading site script $ac_site_file" >&6;}
  1274. sed 's/^/| /' "$ac_site_file" >&5
  1275. . "$ac_site_file"
  1276. fi
  1277. done
  1278. if test -r "$cache_file"; then
  1279. # Some versions of bash will fail to source /dev/null (special
  1280. # files actually), so we avoid doing that.
  1281. if test -f "$cache_file"; then
  1282. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1283. echo "$as_me: loading cache $cache_file" >&6;}
  1284. case $cache_file in
  1285. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1286. *) . ./$cache_file;;
  1287. esac
  1288. fi
  1289. else
  1290. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1291. echo "$as_me: creating cache $cache_file" >&6;}
  1292. >$cache_file
  1293. fi
  1294. # Check that the precious variables saved in the cache have kept the same
  1295. # value.
  1296. ac_cache_corrupted=false
  1297. for ac_var in `(set) 2>&1 |
  1298. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1299. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1300. eval ac_new_set=\$ac_env_${ac_var}_set
  1301. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1302. eval ac_new_val="\$ac_env_${ac_var}_value"
  1303. case $ac_old_set,$ac_new_set in
  1304. set,)
  1305. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1306. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1307. ac_cache_corrupted=: ;;
  1308. ,set)
  1309. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1310. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1311. ac_cache_corrupted=: ;;
  1312. ,);;
  1313. *)
  1314. if test "x$ac_old_val" != "x$ac_new_val"; then
  1315. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1316. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1317. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1318. echo "$as_me: former value: $ac_old_val" >&2;}
  1319. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1320. echo "$as_me: current value: $ac_new_val" >&2;}
  1321. ac_cache_corrupted=:
  1322. fi;;
  1323. esac
  1324. # Pass precious variables to config.status.
  1325. if test "$ac_new_set" = set; then
  1326. case $ac_new_val in
  1327. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1328. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1329. *) ac_arg=$ac_var=$ac_new_val ;;
  1330. esac
  1331. case " $ac_configure_args " in
  1332. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1333. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1334. esac
  1335. fi
  1336. done
  1337. if $ac_cache_corrupted; then
  1338. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1339. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1340. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1341. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1342. { (exit 1); exit 1; }; }
  1343. fi
  1344. ac_ext=c
  1345. ac_cpp='$CPP $CPPFLAGS'
  1346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1349. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1350. ac_config_headers="$ac_config_headers config.h"
  1351. am__api_version="1.9"
  1352. ac_aux_dir=
  1353. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1354. if test -f $ac_dir/install-sh; then
  1355. ac_aux_dir=$ac_dir
  1356. ac_install_sh="$ac_aux_dir/install-sh -c"
  1357. break
  1358. elif test -f $ac_dir/install.sh; then
  1359. ac_aux_dir=$ac_dir
  1360. ac_install_sh="$ac_aux_dir/install.sh -c"
  1361. break
  1362. elif test -f $ac_dir/shtool; then
  1363. ac_aux_dir=$ac_dir
  1364. ac_install_sh="$ac_aux_dir/shtool install -c"
  1365. break
  1366. fi
  1367. done
  1368. if test -z "$ac_aux_dir"; then
  1369. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1370. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1371. { (exit 1); exit 1; }; }
  1372. fi
  1373. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1374. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1375. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1376. # Find a good install program. We prefer a C program (faster),
  1377. # so one script is as good as another. But avoid the broken or
  1378. # incompatible versions:
  1379. # SysV /etc/install, /usr/sbin/install
  1380. # SunOS /usr/etc/install
  1381. # IRIX /sbin/install
  1382. # AIX /bin/install
  1383. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1384. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1385. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1386. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1387. # OS/2's system install, which has a completely different semantic
  1388. # ./install, which can be erroneously created by make from ./install.sh.
  1389. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1390. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1391. if test -z "$INSTALL"; then
  1392. if test "${ac_cv_path_install+set}" = set; then
  1393. echo $ECHO_N "(cached) $ECHO_C" >&6
  1394. else
  1395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1396. for as_dir in $PATH
  1397. do
  1398. IFS=$as_save_IFS
  1399. test -z "$as_dir" && as_dir=.
  1400. # Account for people who put trailing slashes in PATH elements.
  1401. case $as_dir/ in
  1402. ./ | .// | /cC/* | \
  1403. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1404. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1405. /usr/ucb/* ) ;;
  1406. *)
  1407. # OSF1 and SCO ODT 3.0 have their own names for install.
  1408. # Don't use installbsd from OSF since it installs stuff as root
  1409. # by default.
  1410. for ac_prog in ginstall scoinst install; do
  1411. for ac_exec_ext in '' $ac_executable_extensions; do
  1412. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1413. if test $ac_prog = install &&
  1414. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1415. # AIX install. It has an incompatible calling convention.
  1416. :
  1417. elif test $ac_prog = install &&
  1418. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1419. # program-specific install script used by HP pwplus--don't use.
  1420. :
  1421. else
  1422. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1423. break 3
  1424. fi
  1425. fi
  1426. done
  1427. done
  1428. ;;
  1429. esac
  1430. done
  1431. fi
  1432. if test "${ac_cv_path_install+set}" = set; then
  1433. INSTALL=$ac_cv_path_install
  1434. else
  1435. # As a last resort, use the slow shell script. We don't cache a
  1436. # path for INSTALL within a source directory, because that will
  1437. # break other packages using the cache if that directory is
  1438. # removed, or if the path is relative.
  1439. INSTALL=$ac_install_sh
  1440. fi
  1441. fi
  1442. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1443. echo "${ECHO_T}$INSTALL" >&6
  1444. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1445. # It thinks the first close brace ends the variable substitution.
  1446. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1447. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1448. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1449. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1450. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1451. # Just in case
  1452. sleep 1
  1453. echo timestamp > conftest.file
  1454. # Do `set' in a subshell so we don't clobber the current shell's
  1455. # arguments. Must try -L first in case configure is actually a
  1456. # symlink; some systems play weird games with the mod time of symlinks
  1457. # (eg FreeBSD returns the mod time of the symlink's containing
  1458. # directory).
  1459. if (
  1460. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1461. if test "$*" = "X"; then
  1462. # -L didn't work.
  1463. set X `ls -t $srcdir/configure conftest.file`
  1464. fi
  1465. rm -f conftest.file
  1466. if test "$*" != "X $srcdir/configure conftest.file" \
  1467. && test "$*" != "X conftest.file $srcdir/configure"; then
  1468. # If neither matched, then we have a broken ls. This can happen
  1469. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1470. # broken ls alias from the environment. This has actually
  1471. # happened. Such a system could not be considered "sane".
  1472. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1473. alias in your environment" >&5
  1474. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1475. alias in your environment" >&2;}
  1476. { (exit 1); exit 1; }; }
  1477. fi
  1478. test "$2" = conftest.file
  1479. )
  1480. then
  1481. # Ok.
  1482. :
  1483. else
  1484. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1485. Check your system clock" >&5
  1486. echo "$as_me: error: newly created file is older than distributed files!
  1487. Check your system clock" >&2;}
  1488. { (exit 1); exit 1; }; }
  1489. fi
  1490. echo "$as_me:$LINENO: result: yes" >&5
  1491. echo "${ECHO_T}yes" >&6
  1492. test "$program_prefix" != NONE &&
  1493. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1494. # Use a double $ so make ignores it.
  1495. test "$program_suffix" != NONE &&
  1496. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1497. # Double any \ or $. echo might interpret backslashes.
  1498. # By default was `s,x,x', remove it if useless.
  1499. cat <<\_ACEOF >conftest.sed
  1500. s/[\\$]/&&/g;s/;s,x,x,$//
  1501. _ACEOF
  1502. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1503. rm conftest.sed
  1504. # expand $ac_aux_dir to an absolute path
  1505. am_aux_dir=`cd $ac_aux_dir && pwd`
  1506. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1507. # Use eval to expand $SHELL
  1508. if eval "$MISSING --run true"; then
  1509. am_missing_run="$MISSING --run "
  1510. else
  1511. am_missing_run=
  1512. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1513. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1514. fi
  1515. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1516. # We used to keeping the `.' as first argument, in order to
  1517. # allow $(mkdir_p) to be used without argument. As in
  1518. # $(mkdir_p) $(somedir)
  1519. # where $(somedir) is conditionally defined. However this is wrong
  1520. # for two reasons:
  1521. # 1. if the package is installed by a user who cannot write `.'
  1522. # make install will fail,
  1523. # 2. the above comment should most certainly read
  1524. # $(mkdir_p) $(DESTDIR)$(somedir)
  1525. # so it does not work when $(somedir) is undefined and
  1526. # $(DESTDIR) is not.
  1527. # To support the latter case, we have to write
  1528. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1529. # so the `.' trick is pointless.
  1530. mkdir_p='mkdir -p --'
  1531. else
  1532. # On NextStep and OpenStep, the `mkdir' command does not
  1533. # recognize any option. It will interpret all options as
  1534. # directories to create, and then abort because `.' already
  1535. # exists.
  1536. for d in ./-p ./--version;
  1537. do
  1538. test -d $d && rmdir $d
  1539. done
  1540. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1541. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1542. mkdir_p='$(mkinstalldirs)'
  1543. else
  1544. mkdir_p='$(install_sh) -d'
  1545. fi
  1546. fi
  1547. for ac_prog in gawk mawk nawk awk
  1548. do
  1549. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1550. set dummy $ac_prog; ac_word=$2
  1551. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1552. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1553. if test "${ac_cv_prog_AWK+set}" = set; then
  1554. echo $ECHO_N "(cached) $ECHO_C" >&6
  1555. else
  1556. if test -n "$AWK"; then
  1557. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1558. else
  1559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1560. for as_dir in $PATH
  1561. do
  1562. IFS=$as_save_IFS
  1563. test -z "$as_dir" && as_dir=.
  1564. for ac_exec_ext in '' $ac_executable_extensions; do
  1565. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1566. ac_cv_prog_AWK="$ac_prog"
  1567. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1568. break 2
  1569. fi
  1570. done
  1571. done
  1572. fi
  1573. fi
  1574. AWK=$ac_cv_prog_AWK
  1575. if test -n "$AWK"; then
  1576. echo "$as_me:$LINENO: result: $AWK" >&5
  1577. echo "${ECHO_T}$AWK" >&6
  1578. else
  1579. echo "$as_me:$LINENO: result: no" >&5
  1580. echo "${ECHO_T}no" >&6
  1581. fi
  1582. test -n "$AWK" && break
  1583. done
  1584. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1585. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1586. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1587. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1588. echo $ECHO_N "(cached) $ECHO_C" >&6
  1589. else
  1590. cat >conftest.make <<\_ACEOF
  1591. all:
  1592. @echo 'ac_maketemp="$(MAKE)"'
  1593. _ACEOF
  1594. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1595. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1596. if test -n "$ac_maketemp"; then
  1597. eval ac_cv_prog_make_${ac_make}_set=yes
  1598. else
  1599. eval ac_cv_prog_make_${ac_make}_set=no
  1600. fi
  1601. rm -f conftest.make
  1602. fi
  1603. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1604. echo "$as_me:$LINENO: result: yes" >&5
  1605. echo "${ECHO_T}yes" >&6
  1606. SET_MAKE=
  1607. else
  1608. echo "$as_me:$LINENO: result: no" >&5
  1609. echo "${ECHO_T}no" >&6
  1610. SET_MAKE="MAKE=${MAKE-make}"
  1611. fi
  1612. rm -rf .tst 2>/dev/null
  1613. mkdir .tst 2>/dev/null
  1614. if test -d .tst; then
  1615. am__leading_dot=.
  1616. else
  1617. am__leading_dot=_
  1618. fi
  1619. rmdir .tst 2>/dev/null
  1620. # test to see if srcdir already configured
  1621. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1622. test -f $srcdir/config.status; then
  1623. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1624. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1625. { (exit 1); exit 1; }; }
  1626. fi
  1627. # test whether we have cygpath
  1628. if test -z "$CYGPATH_W"; then
  1629. if (cygpath --version) >/dev/null 2>/dev/null; then
  1630. CYGPATH_W='cygpath -w'
  1631. else
  1632. CYGPATH_W=echo
  1633. fi
  1634. fi
  1635. # Define the identity of the package.
  1636. PACKAGE='fedora-ds'
  1637. VERSION='1.1.0a3'
  1638. cat >>confdefs.h <<_ACEOF
  1639. #define PACKAGE "$PACKAGE"
  1640. _ACEOF
  1641. cat >>confdefs.h <<_ACEOF
  1642. #define VERSION "$VERSION"
  1643. _ACEOF
  1644. # Some tools Automake needs.
  1645. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1646. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1647. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1648. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1649. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1650. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1651. # Installed binaries are usually stripped using `strip' when the user
  1652. # run `make install-strip'. However `strip' might not be the right
  1653. # tool to use in cross-compilation environments, therefore Automake
  1654. # will honor the `STRIP' environment variable to overrule this program.
  1655. if test "$cross_compiling" != no; then
  1656. if test -n "$ac_tool_prefix"; then
  1657. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1658. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1659. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1660. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1661. if test "${ac_cv_prog_STRIP+set}" = set; then
  1662. echo $ECHO_N "(cached) $ECHO_C" >&6
  1663. else
  1664. if test -n "$STRIP"; then
  1665. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1666. else
  1667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1668. for as_dir in $PATH
  1669. do
  1670. IFS=$as_save_IFS
  1671. test -z "$as_dir" && as_dir=.
  1672. for ac_exec_ext in '' $ac_executable_extensions; do
  1673. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1674. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1675. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1676. break 2
  1677. fi
  1678. done
  1679. done
  1680. fi
  1681. fi
  1682. STRIP=$ac_cv_prog_STRIP
  1683. if test -n "$STRIP"; then
  1684. echo "$as_me:$LINENO: result: $STRIP" >&5
  1685. echo "${ECHO_T}$STRIP" >&6
  1686. else
  1687. echo "$as_me:$LINENO: result: no" >&5
  1688. echo "${ECHO_T}no" >&6
  1689. fi
  1690. fi
  1691. if test -z "$ac_cv_prog_STRIP"; then
  1692. ac_ct_STRIP=$STRIP
  1693. # Extract the first word of "strip", so it can be a program name with args.
  1694. set dummy strip; ac_word=$2
  1695. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1696. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1697. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1698. echo $ECHO_N "(cached) $ECHO_C" >&6
  1699. else
  1700. if test -n "$ac_ct_STRIP"; then
  1701. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1702. else
  1703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1704. for as_dir in $PATH
  1705. do
  1706. IFS=$as_save_IFS
  1707. test -z "$as_dir" && as_dir=.
  1708. for ac_exec_ext in '' $ac_executable_extensions; do
  1709. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1710. ac_cv_prog_ac_ct_STRIP="strip"
  1711. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1712. break 2
  1713. fi
  1714. done
  1715. done
  1716. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1717. fi
  1718. fi
  1719. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1720. if test -n "$ac_ct_STRIP"; then
  1721. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1722. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1723. else
  1724. echo "$as_me:$LINENO: result: no" >&5
  1725. echo "${ECHO_T}no" >&6
  1726. fi
  1727. STRIP=$ac_ct_STRIP
  1728. else
  1729. STRIP="$ac_cv_prog_STRIP"
  1730. fi
  1731. fi
  1732. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1733. # We need awk for the "check" target. The system "awk" is bad on
  1734. # some platforms.
  1735. # Always define AMTAR for backward compatibility.
  1736. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1737. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1738. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1739. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1740. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1741. if test "${enable_maintainer_mode+set}" = set; then
  1742. enableval="$enable_maintainer_mode"
  1743. USE_MAINTAINER_MODE=$enableval
  1744. else
  1745. USE_MAINTAINER_MODE=no
  1746. fi;
  1747. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1748. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1749. if test $USE_MAINTAINER_MODE = yes; then
  1750. MAINTAINER_MODE_TRUE=
  1751. MAINTAINER_MODE_FALSE='#'
  1752. else
  1753. MAINTAINER_MODE_TRUE='#'
  1754. MAINTAINER_MODE_FALSE=
  1755. fi
  1756. MAINT=$MAINTAINER_MODE_TRUE
  1757. # Make sure we can run config.sub.
  1758. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1759. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1760. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1761. { (exit 1); exit 1; }; }
  1762. echo "$as_me:$LINENO: checking build system type" >&5
  1763. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1764. if test "${ac_cv_build+set}" = set; then
  1765. echo $ECHO_N "(cached) $ECHO_C" >&6
  1766. else
  1767. ac_cv_build_alias=$build_alias
  1768. test -z "$ac_cv_build_alias" &&
  1769. ac_cv_build_alias=`$ac_config_guess`
  1770. test -z "$ac_cv_build_alias" &&
  1771. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1772. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1773. { (exit 1); exit 1; }; }
  1774. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1775. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1776. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1777. { (exit 1); exit 1; }; }
  1778. fi
  1779. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1780. echo "${ECHO_T}$ac_cv_build" >&6
  1781. build=$ac_cv_build
  1782. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1783. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1784. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1785. echo "$as_me:$LINENO: checking host system type" >&5
  1786. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1787. if test "${ac_cv_host+set}" = set; then
  1788. echo $ECHO_N "(cached) $ECHO_C" >&6
  1789. else
  1790. ac_cv_host_alias=$host_alias
  1791. test -z "$ac_cv_host_alias" &&
  1792. ac_cv_host_alias=$ac_cv_build_alias
  1793. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1794. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1795. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1796. { (exit 1); exit 1; }; }
  1797. fi
  1798. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1799. echo "${ECHO_T}$ac_cv_host" >&6
  1800. host=$ac_cv_host
  1801. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1802. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1803. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1804. # Checks for programs.
  1805. ac_ext=cc
  1806. ac_cpp='$CXXCPP $CPPFLAGS'
  1807. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1808. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1809. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1810. if test -n "$ac_tool_prefix"; then
  1811. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1812. do
  1813. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1814. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1815. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1816. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1817. if test "${ac_cv_prog_CXX+set}" = set; then
  1818. echo $ECHO_N "(cached) $ECHO_C" >&6
  1819. else
  1820. if test -n "$CXX"; then
  1821. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1822. else
  1823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1824. for as_dir in $PATH
  1825. do
  1826. IFS=$as_save_IFS
  1827. test -z "$as_dir" && as_dir=.
  1828. for ac_exec_ext in '' $ac_executable_extensions; do
  1829. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1830. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1831. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1832. break 2
  1833. fi
  1834. done
  1835. done
  1836. fi
  1837. fi
  1838. CXX=$ac_cv_prog_CXX
  1839. if test -n "$CXX"; then
  1840. echo "$as_me:$LINENO: result: $CXX" >&5
  1841. echo "${ECHO_T}$CXX" >&6
  1842. else
  1843. echo "$as_me:$LINENO: result: no" >&5
  1844. echo "${ECHO_T}no" >&6
  1845. fi
  1846. test -n "$CXX" && break
  1847. done
  1848. fi
  1849. if test -z "$CXX"; then
  1850. ac_ct_CXX=$CXX
  1851. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1852. do
  1853. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1854. set dummy $ac_prog; ac_word=$2
  1855. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1856. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1857. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1858. echo $ECHO_N "(cached) $ECHO_C" >&6
  1859. else
  1860. if test -n "$ac_ct_CXX"; then
  1861. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1862. else
  1863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1864. for as_dir in $PATH
  1865. do
  1866. IFS=$as_save_IFS
  1867. test -z "$as_dir" && as_dir=.
  1868. for ac_exec_ext in '' $ac_executable_extensions; do
  1869. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1870. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1871. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1872. break 2
  1873. fi
  1874. done
  1875. done
  1876. fi
  1877. fi
  1878. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1879. if test -n "$ac_ct_CXX"; then
  1880. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1881. echo "${ECHO_T}$ac_ct_CXX" >&6
  1882. else
  1883. echo "$as_me:$LINENO: result: no" >&5
  1884. echo "${ECHO_T}no" >&6
  1885. fi
  1886. test -n "$ac_ct_CXX" && break
  1887. done
  1888. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1889. CXX=$ac_ct_CXX
  1890. fi
  1891. # Provide some information about the compiler.
  1892. echo "$as_me:$LINENO:" \
  1893. "checking for C++ compiler version" >&5
  1894. ac_compiler=`set X $ac_compile; echo $2`
  1895. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1896. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1897. ac_status=$?
  1898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1899. (exit $ac_status); }
  1900. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1901. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1902. ac_status=$?
  1903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1904. (exit $ac_status); }
  1905. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1906. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1907. ac_status=$?
  1908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1909. (exit $ac_status); }
  1910. cat >conftest.$ac_ext <<_ACEOF
  1911. /* confdefs.h. */
  1912. _ACEOF
  1913. cat confdefs.h >>conftest.$ac_ext
  1914. cat >>conftest.$ac_ext <<_ACEOF
  1915. /* end confdefs.h. */
  1916. int
  1917. main ()
  1918. {
  1919. ;
  1920. return 0;
  1921. }
  1922. _ACEOF
  1923. ac_clean_files_save=$ac_clean_files
  1924. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1925. # Try to create an executable without -o first, disregard a.out.
  1926. # It will help us diagnose broken compilers, and finding out an intuition
  1927. # of exeext.
  1928. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1929. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1930. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1931. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1932. (eval $ac_link_default) 2>&5
  1933. ac_status=$?
  1934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1935. (exit $ac_status); }; then
  1936. # Find the output, starting from the most likely. This scheme is
  1937. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1938. # resort.
  1939. # Be careful to initialize this variable, since it used to be cached.
  1940. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1941. ac_cv_exeext=
  1942. # b.out is created by i960 compilers.
  1943. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1944. do
  1945. test -f "$ac_file" || continue
  1946. case $ac_file in
  1947. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1948. ;;
  1949. conftest.$ac_ext )
  1950. # This is the source file.
  1951. ;;
  1952. [ab].out )
  1953. # We found the default executable, but exeext='' is most
  1954. # certainly right.
  1955. break;;
  1956. *.* )
  1957. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1958. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1959. # but it would be cool to find out if it's true. Does anybody
  1960. # maintain Libtool? --akim.
  1961. export ac_cv_exeext
  1962. break;;
  1963. * )
  1964. break;;
  1965. esac
  1966. done
  1967. else
  1968. echo "$as_me: failed program was:" >&5
  1969. sed 's/^/| /' conftest.$ac_ext >&5
  1970. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1971. See \`config.log' for more details." >&5
  1972. echo "$as_me: error: C++ compiler cannot create executables
  1973. See \`config.log' for more details." >&2;}
  1974. { (exit 77); exit 77; }; }
  1975. fi
  1976. ac_exeext=$ac_cv_exeext
  1977. echo "$as_me:$LINENO: result: $ac_file" >&5
  1978. echo "${ECHO_T}$ac_file" >&6
  1979. # Check the compiler produces executables we can run. If not, either
  1980. # the compiler is broken, or we cross compile.
  1981. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1982. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1983. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1984. # If not cross compiling, check that we can run a simple program.
  1985. if test "$cross_compiling" != yes; then
  1986. if { ac_try='./$ac_file'
  1987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1988. (eval $ac_try) 2>&5
  1989. ac_status=$?
  1990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1991. (exit $ac_status); }; }; then
  1992. cross_compiling=no
  1993. else
  1994. if test "$cross_compiling" = maybe; then
  1995. cross_compiling=yes
  1996. else
  1997. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1998. If you meant to cross compile, use \`--host'.
  1999. See \`config.log' for more details." >&5
  2000. echo "$as_me: error: cannot run C++ compiled programs.
  2001. If you meant to cross compile, use \`--host'.
  2002. See \`config.log' for more details." >&2;}
  2003. { (exit 1); exit 1; }; }
  2004. fi
  2005. fi
  2006. fi
  2007. echo "$as_me:$LINENO: result: yes" >&5
  2008. echo "${ECHO_T}yes" >&6
  2009. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2010. ac_clean_files=$ac_clean_files_save
  2011. # Check the compiler produces executables we can run. If not, either
  2012. # the compiler is broken, or we cross compile.
  2013. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2014. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2015. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2016. echo "${ECHO_T}$cross_compiling" >&6
  2017. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2018. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2019. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2020. (eval $ac_link) 2>&5
  2021. ac_status=$?
  2022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2023. (exit $ac_status); }; then
  2024. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2025. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2026. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2027. # `rm'.
  2028. for ac_file in conftest.exe conftest conftest.*; do
  2029. test -f "$ac_file" || continue
  2030. case $ac_file in
  2031. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2032. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2033. export ac_cv_exeext
  2034. break;;
  2035. * ) break;;
  2036. esac
  2037. done
  2038. else
  2039. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2040. See \`config.log' for more details." >&5
  2041. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2042. See \`config.log' for more details." >&2;}
  2043. { (exit 1); exit 1; }; }
  2044. fi
  2045. rm -f conftest$ac_cv_exeext
  2046. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2047. echo "${ECHO_T}$ac_cv_exeext" >&6
  2048. rm -f conftest.$ac_ext
  2049. EXEEXT=$ac_cv_exeext
  2050. ac_exeext=$EXEEXT
  2051. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2052. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2053. if test "${ac_cv_objext+set}" = set; then
  2054. echo $ECHO_N "(cached) $ECHO_C" >&6
  2055. else
  2056. cat >conftest.$ac_ext <<_ACEOF
  2057. /* confdefs.h. */
  2058. _ACEOF
  2059. cat confdefs.h >>conftest.$ac_ext
  2060. cat >>conftest.$ac_ext <<_ACEOF
  2061. /* end confdefs.h. */
  2062. int
  2063. main ()
  2064. {
  2065. ;
  2066. return 0;
  2067. }
  2068. _ACEOF
  2069. rm -f conftest.o conftest.obj
  2070. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2071. (eval $ac_compile) 2>&5
  2072. ac_status=$?
  2073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2074. (exit $ac_status); }; then
  2075. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2076. case $ac_file in
  2077. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2078. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2079. break;;
  2080. esac
  2081. done
  2082. else
  2083. echo "$as_me: failed program was:" >&5
  2084. sed 's/^/| /' conftest.$ac_ext >&5
  2085. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2086. See \`config.log' for more details." >&5
  2087. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2088. See \`config.log' for more details." >&2;}
  2089. { (exit 1); exit 1; }; }
  2090. fi
  2091. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2092. fi
  2093. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2094. echo "${ECHO_T}$ac_cv_objext" >&6
  2095. OBJEXT=$ac_cv_objext
  2096. ac_objext=$OBJEXT
  2097. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2098. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2099. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2100. echo $ECHO_N "(cached) $ECHO_C" >&6
  2101. else
  2102. cat >conftest.$ac_ext <<_ACEOF
  2103. /* confdefs.h. */
  2104. _ACEOF
  2105. cat confdefs.h >>conftest.$ac_ext
  2106. cat >>conftest.$ac_ext <<_ACEOF
  2107. /* end confdefs.h. */
  2108. int
  2109. main ()
  2110. {
  2111. #ifndef __GNUC__
  2112. choke me
  2113. #endif
  2114. ;
  2115. return 0;
  2116. }
  2117. _ACEOF
  2118. rm -f conftest.$ac_objext
  2119. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2120. (eval $ac_compile) 2>conftest.er1
  2121. ac_status=$?
  2122. grep -v '^ *+' conftest.er1 >conftest.err
  2123. rm -f conftest.er1
  2124. cat conftest.err >&5
  2125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2126. (exit $ac_status); } &&
  2127. { ac_try='test -z "$ac_cxx_werror_flag"
  2128. || test ! -s conftest.err'
  2129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2130. (eval $ac_try) 2>&5
  2131. ac_status=$?
  2132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2133. (exit $ac_status); }; } &&
  2134. { ac_try='test -s conftest.$ac_objext'
  2135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2136. (eval $ac_try) 2>&5
  2137. ac_status=$?
  2138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2139. (exit $ac_status); }; }; then
  2140. ac_compiler_gnu=yes
  2141. else
  2142. echo "$as_me: failed program was:" >&5
  2143. sed 's/^/| /' conftest.$ac_ext >&5
  2144. ac_compiler_gnu=no
  2145. fi
  2146. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2147. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2148. fi
  2149. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2150. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2151. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2152. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2153. ac_save_CXXFLAGS=$CXXFLAGS
  2154. CXXFLAGS="-g"
  2155. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2156. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2157. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2158. echo $ECHO_N "(cached) $ECHO_C" >&6
  2159. else
  2160. cat >conftest.$ac_ext <<_ACEOF
  2161. /* confdefs.h. */
  2162. _ACEOF
  2163. cat confdefs.h >>conftest.$ac_ext
  2164. cat >>conftest.$ac_ext <<_ACEOF
  2165. /* end confdefs.h. */
  2166. int
  2167. main ()
  2168. {
  2169. ;
  2170. return 0;
  2171. }
  2172. _ACEOF
  2173. rm -f conftest.$ac_objext
  2174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2175. (eval $ac_compile) 2>conftest.er1
  2176. ac_status=$?
  2177. grep -v '^ *+' conftest.er1 >conftest.err
  2178. rm -f conftest.er1
  2179. cat conftest.err >&5
  2180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2181. (exit $ac_status); } &&
  2182. { ac_try='test -z "$ac_cxx_werror_flag"
  2183. || test ! -s conftest.err'
  2184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2185. (eval $ac_try) 2>&5
  2186. ac_status=$?
  2187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2188. (exit $ac_status); }; } &&
  2189. { ac_try='test -s conftest.$ac_objext'
  2190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2191. (eval $ac_try) 2>&5
  2192. ac_status=$?
  2193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2194. (exit $ac_status); }; }; then
  2195. ac_cv_prog_cxx_g=yes
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. ac_cv_prog_cxx_g=no
  2200. fi
  2201. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2202. fi
  2203. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2204. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2205. if test "$ac_test_CXXFLAGS" = set; then
  2206. CXXFLAGS=$ac_save_CXXFLAGS
  2207. elif test $ac_cv_prog_cxx_g = yes; then
  2208. if test "$GXX" = yes; then
  2209. CXXFLAGS="-g -O2"
  2210. else
  2211. CXXFLAGS="-g"
  2212. fi
  2213. else
  2214. if test "$GXX" = yes; then
  2215. CXXFLAGS="-O2"
  2216. else
  2217. CXXFLAGS=
  2218. fi
  2219. fi
  2220. for ac_declaration in \
  2221. '' \
  2222. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2223. 'extern "C" void std::exit (int); using std::exit;' \
  2224. 'extern "C" void exit (int) throw ();' \
  2225. 'extern "C" void exit (int);' \
  2226. 'void exit (int);'
  2227. do
  2228. cat >conftest.$ac_ext <<_ACEOF
  2229. /* confdefs.h. */
  2230. _ACEOF
  2231. cat confdefs.h >>conftest.$ac_ext
  2232. cat >>conftest.$ac_ext <<_ACEOF
  2233. /* end confdefs.h. */
  2234. $ac_declaration
  2235. #include <stdlib.h>
  2236. int
  2237. main ()
  2238. {
  2239. exit (42);
  2240. ;
  2241. return 0;
  2242. }
  2243. _ACEOF
  2244. rm -f conftest.$ac_objext
  2245. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2246. (eval $ac_compile) 2>conftest.er1
  2247. ac_status=$?
  2248. grep -v '^ *+' conftest.er1 >conftest.err
  2249. rm -f conftest.er1
  2250. cat conftest.err >&5
  2251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2252. (exit $ac_status); } &&
  2253. { ac_try='test -z "$ac_cxx_werror_flag"
  2254. || test ! -s conftest.err'
  2255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2256. (eval $ac_try) 2>&5
  2257. ac_status=$?
  2258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2259. (exit $ac_status); }; } &&
  2260. { ac_try='test -s conftest.$ac_objext'
  2261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2262. (eval $ac_try) 2>&5
  2263. ac_status=$?
  2264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2265. (exit $ac_status); }; }; then
  2266. :
  2267. else
  2268. echo "$as_me: failed program was:" >&5
  2269. sed 's/^/| /' conftest.$ac_ext >&5
  2270. continue
  2271. fi
  2272. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. $ac_declaration
  2280. int
  2281. main ()
  2282. {
  2283. exit (42);
  2284. ;
  2285. return 0;
  2286. }
  2287. _ACEOF
  2288. rm -f conftest.$ac_objext
  2289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2290. (eval $ac_compile) 2>conftest.er1
  2291. ac_status=$?
  2292. grep -v '^ *+' conftest.er1 >conftest.err
  2293. rm -f conftest.er1
  2294. cat conftest.err >&5
  2295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2296. (exit $ac_status); } &&
  2297. { ac_try='test -z "$ac_cxx_werror_flag"
  2298. || test ! -s conftest.err'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; } &&
  2304. { ac_try='test -s conftest.$ac_objext'
  2305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2306. (eval $ac_try) 2>&5
  2307. ac_status=$?
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); }; }; then
  2310. break
  2311. else
  2312. echo "$as_me: failed program was:" >&5
  2313. sed 's/^/| /' conftest.$ac_ext >&5
  2314. fi
  2315. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2316. done
  2317. rm -f conftest*
  2318. if test -n "$ac_declaration"; then
  2319. echo '#ifdef __cplusplus' >>confdefs.h
  2320. echo $ac_declaration >>confdefs.h
  2321. echo '#endif' >>confdefs.h
  2322. fi
  2323. ac_ext=c
  2324. ac_cpp='$CPP $CPPFLAGS'
  2325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2328. DEPDIR="${am__leading_dot}deps"
  2329. ac_config_commands="$ac_config_commands depfiles"
  2330. am_make=${MAKE-make}
  2331. cat > confinc << 'END'
  2332. am__doit:
  2333. @echo done
  2334. .PHONY: am__doit
  2335. END
  2336. # If we don't find an include directive, just comment out the code.
  2337. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2338. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2339. am__include="#"
  2340. am__quote=
  2341. _am_result=none
  2342. # First try GNU make style include.
  2343. echo "include confinc" > confmf
  2344. # We grep out `Entering directory' and `Leaving directory'
  2345. # messages which can occur if `w' ends up in MAKEFLAGS.
  2346. # In particular we don't look at `^make:' because GNU make might
  2347. # be invoked under some other name (usually "gmake"), in which
  2348. # case it prints its new name instead of `make'.
  2349. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2350. am__include=include
  2351. am__quote=
  2352. _am_result=GNU
  2353. fi
  2354. # Now try BSD make style include.
  2355. if test "$am__include" = "#"; then
  2356. echo '.include "confinc"' > confmf
  2357. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2358. am__include=.include
  2359. am__quote="\""
  2360. _am_result=BSD
  2361. fi
  2362. fi
  2363. echo "$as_me:$LINENO: result: $_am_result" >&5
  2364. echo "${ECHO_T}$_am_result" >&6
  2365. rm -f confinc confmf
  2366. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2367. if test "${enable_dependency_tracking+set}" = set; then
  2368. enableval="$enable_dependency_tracking"
  2369. fi;
  2370. if test "x$enable_dependency_tracking" != xno; then
  2371. am_depcomp="$ac_aux_dir/depcomp"
  2372. AMDEPBACKSLASH='\'
  2373. fi
  2374. if test "x$enable_dependency_tracking" != xno; then
  2375. AMDEP_TRUE=
  2376. AMDEP_FALSE='#'
  2377. else
  2378. AMDEP_TRUE='#'
  2379. AMDEP_FALSE=
  2380. fi
  2381. depcc="$CXX" am_compiler_list=
  2382. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2383. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2384. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2385. echo $ECHO_N "(cached) $ECHO_C" >&6
  2386. else
  2387. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2388. # We make a subdir and do the tests there. Otherwise we can end up
  2389. # making bogus files that we don't know about and never remove. For
  2390. # instance it was reported that on HP-UX the gcc test will end up
  2391. # making a dummy file named `D' -- because `-MD' means `put the output
  2392. # in D'.
  2393. mkdir conftest.dir
  2394. # Copy depcomp to subdir because otherwise we won't find it if we're
  2395. # using a relative directory.
  2396. cp "$am_depcomp" conftest.dir
  2397. cd conftest.dir
  2398. # We will build objects and dependencies in a subdirectory because
  2399. # it helps to detect inapplicable dependency modes. For instance
  2400. # both Tru64's cc and ICC support -MD to output dependencies as a
  2401. # side effect of compilation, but ICC will put the dependencies in
  2402. # the current directory while Tru64 will put them in the object
  2403. # directory.
  2404. mkdir sub
  2405. am_cv_CXX_dependencies_compiler_type=none
  2406. if test "$am_compiler_list" = ""; then
  2407. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2408. fi
  2409. for depmode in $am_compiler_list; do
  2410. # Setup a source with many dependencies, because some compilers
  2411. # like to wrap large dependency lists on column 80 (with \), and
  2412. # we should not choose a depcomp mode which is confused by this.
  2413. #
  2414. # We need to recreate these files for each test, as the compiler may
  2415. # overwrite some of them when testing with obscure command lines.
  2416. # This happens at least with the AIX C compiler.
  2417. : > sub/conftest.c
  2418. for i in 1 2 3 4 5 6; do
  2419. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2420. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2421. # Solaris 8's {/usr,}/bin/sh.
  2422. touch sub/conftst$i.h
  2423. done
  2424. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2425. case $depmode in
  2426. nosideeffect)
  2427. # after this tag, mechanisms are not by side-effect, so they'll
  2428. # only be used when explicitly requested
  2429. if test "x$enable_dependency_tracking" = xyes; then
  2430. continue
  2431. else
  2432. break
  2433. fi
  2434. ;;
  2435. none) break ;;
  2436. esac
  2437. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2438. # mode. It turns out that the SunPro C++ compiler does not properly
  2439. # handle `-M -o', and we need to detect this.
  2440. if depmode=$depmode \
  2441. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2442. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2443. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2444. >/dev/null 2>conftest.err &&
  2445. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2446. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2447. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2448. # icc doesn't choke on unknown options, it will just issue warnings
  2449. # or remarks (even with -Werror). So we grep stderr for any message
  2450. # that says an option was ignored or not supported.
  2451. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2452. # icc: Command line warning: ignoring option '-M'; no argument required
  2453. # The diagnosis changed in icc 8.0:
  2454. # icc: Command line remark: option '-MP' not supported
  2455. if (grep 'ignoring option' conftest.err ||
  2456. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2457. am_cv_CXX_dependencies_compiler_type=$depmode
  2458. break
  2459. fi
  2460. fi
  2461. done
  2462. cd ..
  2463. rm -rf conftest.dir
  2464. else
  2465. am_cv_CXX_dependencies_compiler_type=none
  2466. fi
  2467. fi
  2468. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2469. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2470. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2471. if
  2472. test "x$enable_dependency_tracking" != xno \
  2473. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2474. am__fastdepCXX_TRUE=
  2475. am__fastdepCXX_FALSE='#'
  2476. else
  2477. am__fastdepCXX_TRUE='#'
  2478. am__fastdepCXX_FALSE=
  2479. fi
  2480. ac_ext=c
  2481. ac_cpp='$CPP $CPPFLAGS'
  2482. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2483. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2484. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2485. if test -n "$ac_tool_prefix"; then
  2486. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2487. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2488. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2489. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2490. if test "${ac_cv_prog_CC+set}" = set; then
  2491. echo $ECHO_N "(cached) $ECHO_C" >&6
  2492. else
  2493. if test -n "$CC"; then
  2494. ac_cv_prog_CC="$CC" # Let the user override the test.
  2495. else
  2496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2497. for as_dir in $PATH
  2498. do
  2499. IFS=$as_save_IFS
  2500. test -z "$as_dir" && as_dir=.
  2501. for ac_exec_ext in '' $ac_executable_extensions; do
  2502. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2503. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2504. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2505. break 2
  2506. fi
  2507. done
  2508. done
  2509. fi
  2510. fi
  2511. CC=$ac_cv_prog_CC
  2512. if test -n "$CC"; then
  2513. echo "$as_me:$LINENO: result: $CC" >&5
  2514. echo "${ECHO_T}$CC" >&6
  2515. else
  2516. echo "$as_me:$LINENO: result: no" >&5
  2517. echo "${ECHO_T}no" >&6
  2518. fi
  2519. fi
  2520. if test -z "$ac_cv_prog_CC"; then
  2521. ac_ct_CC=$CC
  2522. # Extract the first word of "gcc", so it can be a program name with args.
  2523. set dummy gcc; ac_word=$2
  2524. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2525. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2526. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2527. echo $ECHO_N "(cached) $ECHO_C" >&6
  2528. else
  2529. if test -n "$ac_ct_CC"; then
  2530. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2531. else
  2532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2533. for as_dir in $PATH
  2534. do
  2535. IFS=$as_save_IFS
  2536. test -z "$as_dir" && as_dir=.
  2537. for ac_exec_ext in '' $ac_executable_extensions; do
  2538. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2539. ac_cv_prog_ac_ct_CC="gcc"
  2540. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2541. break 2
  2542. fi
  2543. done
  2544. done
  2545. fi
  2546. fi
  2547. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2548. if test -n "$ac_ct_CC"; then
  2549. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2550. echo "${ECHO_T}$ac_ct_CC" >&6
  2551. else
  2552. echo "$as_me:$LINENO: result: no" >&5
  2553. echo "${ECHO_T}no" >&6
  2554. fi
  2555. CC=$ac_ct_CC
  2556. else
  2557. CC="$ac_cv_prog_CC"
  2558. fi
  2559. if test -z "$CC"; then
  2560. if test -n "$ac_tool_prefix"; then
  2561. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2562. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2563. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2564. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2565. if test "${ac_cv_prog_CC+set}" = set; then
  2566. echo $ECHO_N "(cached) $ECHO_C" >&6
  2567. else
  2568. if test -n "$CC"; then
  2569. ac_cv_prog_CC="$CC" # Let the user override the test.
  2570. else
  2571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2572. for as_dir in $PATH
  2573. do
  2574. IFS=$as_save_IFS
  2575. test -z "$as_dir" && as_dir=.
  2576. for ac_exec_ext in '' $ac_executable_extensions; do
  2577. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2578. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2579. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2580. break 2
  2581. fi
  2582. done
  2583. done
  2584. fi
  2585. fi
  2586. CC=$ac_cv_prog_CC
  2587. if test -n "$CC"; then
  2588. echo "$as_me:$LINENO: result: $CC" >&5
  2589. echo "${ECHO_T}$CC" >&6
  2590. else
  2591. echo "$as_me:$LINENO: result: no" >&5
  2592. echo "${ECHO_T}no" >&6
  2593. fi
  2594. fi
  2595. if test -z "$ac_cv_prog_CC"; then
  2596. ac_ct_CC=$CC
  2597. # Extract the first word of "cc", so it can be a program name with args.
  2598. set dummy cc; ac_word=$2
  2599. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2600. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2601. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2602. echo $ECHO_N "(cached) $ECHO_C" >&6
  2603. else
  2604. if test -n "$ac_ct_CC"; then
  2605. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2606. else
  2607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2608. for as_dir in $PATH
  2609. do
  2610. IFS=$as_save_IFS
  2611. test -z "$as_dir" && as_dir=.
  2612. for ac_exec_ext in '' $ac_executable_extensions; do
  2613. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2614. ac_cv_prog_ac_ct_CC="cc"
  2615. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2616. break 2
  2617. fi
  2618. done
  2619. done
  2620. fi
  2621. fi
  2622. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2623. if test -n "$ac_ct_CC"; then
  2624. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2625. echo "${ECHO_T}$ac_ct_CC" >&6
  2626. else
  2627. echo "$as_me:$LINENO: result: no" >&5
  2628. echo "${ECHO_T}no" >&6
  2629. fi
  2630. CC=$ac_ct_CC
  2631. else
  2632. CC="$ac_cv_prog_CC"
  2633. fi
  2634. fi
  2635. if test -z "$CC"; then
  2636. # Extract the first word of "cc", so it can be a program name with args.
  2637. set dummy cc; ac_word=$2
  2638. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2639. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2640. if test "${ac_cv_prog_CC+set}" = set; then
  2641. echo $ECHO_N "(cached) $ECHO_C" >&6
  2642. else
  2643. if test -n "$CC"; then
  2644. ac_cv_prog_CC="$CC" # Let the user override the test.
  2645. else
  2646. ac_prog_rejected=no
  2647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2648. for as_dir in $PATH
  2649. do
  2650. IFS=$as_save_IFS
  2651. test -z "$as_dir" && as_dir=.
  2652. for ac_exec_ext in '' $ac_executable_extensions; do
  2653. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2654. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2655. ac_prog_rejected=yes
  2656. continue
  2657. fi
  2658. ac_cv_prog_CC="cc"
  2659. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. if test $ac_prog_rejected = yes; then
  2665. # We found a bogon in the path, so make sure we never use it.
  2666. set dummy $ac_cv_prog_CC
  2667. shift
  2668. if test $# != 0; then
  2669. # We chose a different compiler from the bogus one.
  2670. # However, it has the same basename, so the bogon will be chosen
  2671. # first if we set CC to just the basename; use the full file name.
  2672. shift
  2673. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2674. fi
  2675. fi
  2676. fi
  2677. fi
  2678. CC=$ac_cv_prog_CC
  2679. if test -n "$CC"; then
  2680. echo "$as_me:$LINENO: result: $CC" >&5
  2681. echo "${ECHO_T}$CC" >&6
  2682. else
  2683. echo "$as_me:$LINENO: result: no" >&5
  2684. echo "${ECHO_T}no" >&6
  2685. fi
  2686. fi
  2687. if test -z "$CC"; then
  2688. if test -n "$ac_tool_prefix"; then
  2689. for ac_prog in cl
  2690. do
  2691. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2692. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2693. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2694. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2695. if test "${ac_cv_prog_CC+set}" = set; then
  2696. echo $ECHO_N "(cached) $ECHO_C" >&6
  2697. else
  2698. if test -n "$CC"; then
  2699. ac_cv_prog_CC="$CC" # Let the user override the test.
  2700. else
  2701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2702. for as_dir in $PATH
  2703. do
  2704. IFS=$as_save_IFS
  2705. test -z "$as_dir" && as_dir=.
  2706. for ac_exec_ext in '' $ac_executable_extensions; do
  2707. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2708. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2709. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2710. break 2
  2711. fi
  2712. done
  2713. done
  2714. fi
  2715. fi
  2716. CC=$ac_cv_prog_CC
  2717. if test -n "$CC"; then
  2718. echo "$as_me:$LINENO: result: $CC" >&5
  2719. echo "${ECHO_T}$CC" >&6
  2720. else
  2721. echo "$as_me:$LINENO: result: no" >&5
  2722. echo "${ECHO_T}no" >&6
  2723. fi
  2724. test -n "$CC" && break
  2725. done
  2726. fi
  2727. if test -z "$CC"; then
  2728. ac_ct_CC=$CC
  2729. for ac_prog in cl
  2730. do
  2731. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2732. set dummy $ac_prog; ac_word=$2
  2733. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2734. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2735. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2736. echo $ECHO_N "(cached) $ECHO_C" >&6
  2737. else
  2738. if test -n "$ac_ct_CC"; then
  2739. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2740. else
  2741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2742. for as_dir in $PATH
  2743. do
  2744. IFS=$as_save_IFS
  2745. test -z "$as_dir" && as_dir=.
  2746. for ac_exec_ext in '' $ac_executable_extensions; do
  2747. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2748. ac_cv_prog_ac_ct_CC="$ac_prog"
  2749. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2750. break 2
  2751. fi
  2752. done
  2753. done
  2754. fi
  2755. fi
  2756. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2757. if test -n "$ac_ct_CC"; then
  2758. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2759. echo "${ECHO_T}$ac_ct_CC" >&6
  2760. else
  2761. echo "$as_me:$LINENO: result: no" >&5
  2762. echo "${ECHO_T}no" >&6
  2763. fi
  2764. test -n "$ac_ct_CC" && break
  2765. done
  2766. CC=$ac_ct_CC
  2767. fi
  2768. fi
  2769. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2770. See \`config.log' for more details." >&5
  2771. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2772. See \`config.log' for more details." >&2;}
  2773. { (exit 1); exit 1; }; }
  2774. # Provide some information about the compiler.
  2775. echo "$as_me:$LINENO:" \
  2776. "checking for C compiler version" >&5
  2777. ac_compiler=`set X $ac_compile; echo $2`
  2778. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2779. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2780. ac_status=$?
  2781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2782. (exit $ac_status); }
  2783. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2784. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2785. ac_status=$?
  2786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2787. (exit $ac_status); }
  2788. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2789. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2790. ac_status=$?
  2791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2792. (exit $ac_status); }
  2793. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2794. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2795. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2796. echo $ECHO_N "(cached) $ECHO_C" >&6
  2797. else
  2798. cat >conftest.$ac_ext <<_ACEOF
  2799. /* confdefs.h. */
  2800. _ACEOF
  2801. cat confdefs.h >>conftest.$ac_ext
  2802. cat >>conftest.$ac_ext <<_ACEOF
  2803. /* end confdefs.h. */
  2804. int
  2805. main ()
  2806. {
  2807. #ifndef __GNUC__
  2808. choke me
  2809. #endif
  2810. ;
  2811. return 0;
  2812. }
  2813. _ACEOF
  2814. rm -f conftest.$ac_objext
  2815. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2816. (eval $ac_compile) 2>conftest.er1
  2817. ac_status=$?
  2818. grep -v '^ *+' conftest.er1 >conftest.err
  2819. rm -f conftest.er1
  2820. cat conftest.err >&5
  2821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. (exit $ac_status); } &&
  2823. { ac_try='test -z "$ac_c_werror_flag"
  2824. || test ! -s conftest.err'
  2825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2826. (eval $ac_try) 2>&5
  2827. ac_status=$?
  2828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2829. (exit $ac_status); }; } &&
  2830. { ac_try='test -s conftest.$ac_objext'
  2831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2832. (eval $ac_try) 2>&5
  2833. ac_status=$?
  2834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2835. (exit $ac_status); }; }; then
  2836. ac_compiler_gnu=yes
  2837. else
  2838. echo "$as_me: failed program was:" >&5
  2839. sed 's/^/| /' conftest.$ac_ext >&5
  2840. ac_compiler_gnu=no
  2841. fi
  2842. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2843. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2844. fi
  2845. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2846. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2847. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2848. ac_test_CFLAGS=${CFLAGS+set}
  2849. ac_save_CFLAGS=$CFLAGS
  2850. CFLAGS="-g"
  2851. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2852. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2853. if test "${ac_cv_prog_cc_g+set}" = set; then
  2854. echo $ECHO_N "(cached) $ECHO_C" >&6
  2855. else
  2856. cat >conftest.$ac_ext <<_ACEOF
  2857. /* confdefs.h. */
  2858. _ACEOF
  2859. cat confdefs.h >>conftest.$ac_ext
  2860. cat >>conftest.$ac_ext <<_ACEOF
  2861. /* end confdefs.h. */
  2862. int
  2863. main ()
  2864. {
  2865. ;
  2866. return 0;
  2867. }
  2868. _ACEOF
  2869. rm -f conftest.$ac_objext
  2870. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2871. (eval $ac_compile) 2>conftest.er1
  2872. ac_status=$?
  2873. grep -v '^ *+' conftest.er1 >conftest.err
  2874. rm -f conftest.er1
  2875. cat conftest.err >&5
  2876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2877. (exit $ac_status); } &&
  2878. { ac_try='test -z "$ac_c_werror_flag"
  2879. || test ! -s conftest.err'
  2880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2881. (eval $ac_try) 2>&5
  2882. ac_status=$?
  2883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2884. (exit $ac_status); }; } &&
  2885. { ac_try='test -s conftest.$ac_objext'
  2886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2887. (eval $ac_try) 2>&5
  2888. ac_status=$?
  2889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2890. (exit $ac_status); }; }; then
  2891. ac_cv_prog_cc_g=yes
  2892. else
  2893. echo "$as_me: failed program was:" >&5
  2894. sed 's/^/| /' conftest.$ac_ext >&5
  2895. ac_cv_prog_cc_g=no
  2896. fi
  2897. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2898. fi
  2899. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2900. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2901. if test "$ac_test_CFLAGS" = set; then
  2902. CFLAGS=$ac_save_CFLAGS
  2903. elif test $ac_cv_prog_cc_g = yes; then
  2904. if test "$GCC" = yes; then
  2905. CFLAGS="-g -O2"
  2906. else
  2907. CFLAGS="-g"
  2908. fi
  2909. else
  2910. if test "$GCC" = yes; then
  2911. CFLAGS="-O2"
  2912. else
  2913. CFLAGS=
  2914. fi
  2915. fi
  2916. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2917. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2918. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2919. echo $ECHO_N "(cached) $ECHO_C" >&6
  2920. else
  2921. ac_cv_prog_cc_stdc=no
  2922. ac_save_CC=$CC
  2923. cat >conftest.$ac_ext <<_ACEOF
  2924. /* confdefs.h. */
  2925. _ACEOF
  2926. cat confdefs.h >>conftest.$ac_ext
  2927. cat >>conftest.$ac_ext <<_ACEOF
  2928. /* end confdefs.h. */
  2929. #include <stdarg.h>
  2930. #include <stdio.h>
  2931. #include <sys/types.h>
  2932. #include <sys/stat.h>
  2933. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2934. struct buf { int x; };
  2935. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2936. static char *e (p, i)
  2937. char **p;
  2938. int i;
  2939. {
  2940. return p[i];
  2941. }
  2942. static char *f (char * (*g) (char **, int), char **p, ...)
  2943. {
  2944. char *s;
  2945. va_list v;
  2946. va_start (v,p);
  2947. s = g (p, va_arg (v,int));
  2948. va_end (v);
  2949. return s;
  2950. }
  2951. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2952. function prototypes and stuff, but not '\xHH' hex character constants.
  2953. These don't provoke an error unfortunately, instead are silently treated
  2954. as 'x'. The following induces an error, until -std1 is added to get
  2955. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2956. array size at least. It's necessary to write '\x00'==0 to get something
  2957. that's true only with -std1. */
  2958. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2959. int test (int i, double x);
  2960. struct s1 {int (*f) (int a);};
  2961. struct s2 {int (*f) (double a);};
  2962. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2963. int argc;
  2964. char **argv;
  2965. int
  2966. main ()
  2967. {
  2968. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2969. ;
  2970. return 0;
  2971. }
  2972. _ACEOF
  2973. # Don't try gcc -ansi; that turns off useful extensions and
  2974. # breaks some systems' header files.
  2975. # AIX -qlanglvl=ansi
  2976. # Ultrix and OSF/1 -std1
  2977. # HP-UX 10.20 and later -Ae
  2978. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2979. # SVR4 -Xc -D__EXTENSIONS__
  2980. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2981. do
  2982. CC="$ac_save_CC $ac_arg"
  2983. rm -f conftest.$ac_objext
  2984. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2985. (eval $ac_compile) 2>conftest.er1
  2986. ac_status=$?
  2987. grep -v '^ *+' conftest.er1 >conftest.err
  2988. rm -f conftest.er1
  2989. cat conftest.err >&5
  2990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2991. (exit $ac_status); } &&
  2992. { ac_try='test -z "$ac_c_werror_flag"
  2993. || test ! -s conftest.err'
  2994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2995. (eval $ac_try) 2>&5
  2996. ac_status=$?
  2997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2998. (exit $ac_status); }; } &&
  2999. { ac_try='test -s conftest.$ac_objext'
  3000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3001. (eval $ac_try) 2>&5
  3002. ac_status=$?
  3003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3004. (exit $ac_status); }; }; then
  3005. ac_cv_prog_cc_stdc=$ac_arg
  3006. break
  3007. else
  3008. echo "$as_me: failed program was:" >&5
  3009. sed 's/^/| /' conftest.$ac_ext >&5
  3010. fi
  3011. rm -f conftest.err conftest.$ac_objext
  3012. done
  3013. rm -f conftest.$ac_ext conftest.$ac_objext
  3014. CC=$ac_save_CC
  3015. fi
  3016. case "x$ac_cv_prog_cc_stdc" in
  3017. x|xno)
  3018. echo "$as_me:$LINENO: result: none needed" >&5
  3019. echo "${ECHO_T}none needed" >&6 ;;
  3020. *)
  3021. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3022. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3023. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3024. esac
  3025. # Some people use a C++ compiler to compile C. Since we use `exit',
  3026. # in C++ we need to declare it. In case someone uses the same compiler
  3027. # for both compiling C and C++ we need to have the C++ compiler decide
  3028. # the declaration of exit, since it's the most demanding environment.
  3029. cat >conftest.$ac_ext <<_ACEOF
  3030. #ifndef __cplusplus
  3031. choke me
  3032. #endif
  3033. _ACEOF
  3034. rm -f conftest.$ac_objext
  3035. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3036. (eval $ac_compile) 2>conftest.er1
  3037. ac_status=$?
  3038. grep -v '^ *+' conftest.er1 >conftest.err
  3039. rm -f conftest.er1
  3040. cat conftest.err >&5
  3041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3042. (exit $ac_status); } &&
  3043. { ac_try='test -z "$ac_c_werror_flag"
  3044. || test ! -s conftest.err'
  3045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3046. (eval $ac_try) 2>&5
  3047. ac_status=$?
  3048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3049. (exit $ac_status); }; } &&
  3050. { ac_try='test -s conftest.$ac_objext'
  3051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3052. (eval $ac_try) 2>&5
  3053. ac_status=$?
  3054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3055. (exit $ac_status); }; }; then
  3056. for ac_declaration in \
  3057. '' \
  3058. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3059. 'extern "C" void std::exit (int); using std::exit;' \
  3060. 'extern "C" void exit (int) throw ();' \
  3061. 'extern "C" void exit (int);' \
  3062. 'void exit (int);'
  3063. do
  3064. cat >conftest.$ac_ext <<_ACEOF
  3065. /* confdefs.h. */
  3066. _ACEOF
  3067. cat confdefs.h >>conftest.$ac_ext
  3068. cat >>conftest.$ac_ext <<_ACEOF
  3069. /* end confdefs.h. */
  3070. $ac_declaration
  3071. #include <stdlib.h>
  3072. int
  3073. main ()
  3074. {
  3075. exit (42);
  3076. ;
  3077. return 0;
  3078. }
  3079. _ACEOF
  3080. rm -f conftest.$ac_objext
  3081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3082. (eval $ac_compile) 2>conftest.er1
  3083. ac_status=$?
  3084. grep -v '^ *+' conftest.er1 >conftest.err
  3085. rm -f conftest.er1
  3086. cat conftest.err >&5
  3087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3088. (exit $ac_status); } &&
  3089. { ac_try='test -z "$ac_c_werror_flag"
  3090. || test ! -s conftest.err'
  3091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3092. (eval $ac_try) 2>&5
  3093. ac_status=$?
  3094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3095. (exit $ac_status); }; } &&
  3096. { ac_try='test -s conftest.$ac_objext'
  3097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3098. (eval $ac_try) 2>&5
  3099. ac_status=$?
  3100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3101. (exit $ac_status); }; }; then
  3102. :
  3103. else
  3104. echo "$as_me: failed program was:" >&5
  3105. sed 's/^/| /' conftest.$ac_ext >&5
  3106. continue
  3107. fi
  3108. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3109. cat >conftest.$ac_ext <<_ACEOF
  3110. /* confdefs.h. */
  3111. _ACEOF
  3112. cat confdefs.h >>conftest.$ac_ext
  3113. cat >>conftest.$ac_ext <<_ACEOF
  3114. /* end confdefs.h. */
  3115. $ac_declaration
  3116. int
  3117. main ()
  3118. {
  3119. exit (42);
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. rm -f conftest.$ac_objext
  3125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3126. (eval $ac_compile) 2>conftest.er1
  3127. ac_status=$?
  3128. grep -v '^ *+' conftest.er1 >conftest.err
  3129. rm -f conftest.er1
  3130. cat conftest.err >&5
  3131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3132. (exit $ac_status); } &&
  3133. { ac_try='test -z "$ac_c_werror_flag"
  3134. || test ! -s conftest.err'
  3135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3136. (eval $ac_try) 2>&5
  3137. ac_status=$?
  3138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3139. (exit $ac_status); }; } &&
  3140. { ac_try='test -s conftest.$ac_objext'
  3141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3142. (eval $ac_try) 2>&5
  3143. ac_status=$?
  3144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3145. (exit $ac_status); }; }; then
  3146. break
  3147. else
  3148. echo "$as_me: failed program was:" >&5
  3149. sed 's/^/| /' conftest.$ac_ext >&5
  3150. fi
  3151. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3152. done
  3153. rm -f conftest*
  3154. if test -n "$ac_declaration"; then
  3155. echo '#ifdef __cplusplus' >>confdefs.h
  3156. echo $ac_declaration >>confdefs.h
  3157. echo '#endif' >>confdefs.h
  3158. fi
  3159. else
  3160. echo "$as_me: failed program was:" >&5
  3161. sed 's/^/| /' conftest.$ac_ext >&5
  3162. fi
  3163. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3164. ac_ext=c
  3165. ac_cpp='$CPP $CPPFLAGS'
  3166. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3167. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3168. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3169. depcc="$CC" am_compiler_list=
  3170. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3171. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3172. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3173. echo $ECHO_N "(cached) $ECHO_C" >&6
  3174. else
  3175. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3176. # We make a subdir and do the tests there. Otherwise we can end up
  3177. # making bogus files that we don't know about and never remove. For
  3178. # instance it was reported that on HP-UX the gcc test will end up
  3179. # making a dummy file named `D' -- because `-MD' means `put the output
  3180. # in D'.
  3181. mkdir conftest.dir
  3182. # Copy depcomp to subdir because otherwise we won't find it if we're
  3183. # using a relative directory.
  3184. cp "$am_depcomp" conftest.dir
  3185. cd conftest.dir
  3186. # We will build objects and dependencies in a subdirectory because
  3187. # it helps to detect inapplicable dependency modes. For instance
  3188. # both Tru64's cc and ICC support -MD to output dependencies as a
  3189. # side effect of compilation, but ICC will put the dependencies in
  3190. # the current directory while Tru64 will put them in the object
  3191. # directory.
  3192. mkdir sub
  3193. am_cv_CC_dependencies_compiler_type=none
  3194. if test "$am_compiler_list" = ""; then
  3195. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3196. fi
  3197. for depmode in $am_compiler_list; do
  3198. # Setup a source with many dependencies, because some compilers
  3199. # like to wrap large dependency lists on column 80 (with \), and
  3200. # we should not choose a depcomp mode which is confused by this.
  3201. #
  3202. # We need to recreate these files for each test, as the compiler may
  3203. # overwrite some of them when testing with obscure command lines.
  3204. # This happens at least with the AIX C compiler.
  3205. : > sub/conftest.c
  3206. for i in 1 2 3 4 5 6; do
  3207. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3208. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3209. # Solaris 8's {/usr,}/bin/sh.
  3210. touch sub/conftst$i.h
  3211. done
  3212. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3213. case $depmode in
  3214. nosideeffect)
  3215. # after this tag, mechanisms are not by side-effect, so they'll
  3216. # only be used when explicitly requested
  3217. if test "x$enable_dependency_tracking" = xyes; then
  3218. continue
  3219. else
  3220. break
  3221. fi
  3222. ;;
  3223. none) break ;;
  3224. esac
  3225. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3226. # mode. It turns out that the SunPro C++ compiler does not properly
  3227. # handle `-M -o', and we need to detect this.
  3228. if depmode=$depmode \
  3229. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3230. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3231. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3232. >/dev/null 2>conftest.err &&
  3233. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3234. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3235. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3236. # icc doesn't choke on unknown options, it will just issue warnings
  3237. # or remarks (even with -Werror). So we grep stderr for any message
  3238. # that says an option was ignored or not supported.
  3239. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3240. # icc: Command line warning: ignoring option '-M'; no argument required
  3241. # The diagnosis changed in icc 8.0:
  3242. # icc: Command line remark: option '-MP' not supported
  3243. if (grep 'ignoring option' conftest.err ||
  3244. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3245. am_cv_CC_dependencies_compiler_type=$depmode
  3246. break
  3247. fi
  3248. fi
  3249. done
  3250. cd ..
  3251. rm -rf conftest.dir
  3252. else
  3253. am_cv_CC_dependencies_compiler_type=none
  3254. fi
  3255. fi
  3256. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3257. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3258. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3259. if
  3260. test "x$enable_dependency_tracking" != xno \
  3261. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3262. am__fastdepCC_TRUE=
  3263. am__fastdepCC_FALSE='#'
  3264. else
  3265. am__fastdepCC_TRUE='#'
  3266. am__fastdepCC_FALSE=
  3267. fi
  3268. if test "x$CC" != xcc; then
  3269. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3270. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3271. else
  3272. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3273. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3274. fi
  3275. set dummy $CC; ac_cc=`echo $2 |
  3276. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3277. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3278. echo $ECHO_N "(cached) $ECHO_C" >&6
  3279. else
  3280. cat >conftest.$ac_ext <<_ACEOF
  3281. /* confdefs.h. */
  3282. _ACEOF
  3283. cat confdefs.h >>conftest.$ac_ext
  3284. cat >>conftest.$ac_ext <<_ACEOF
  3285. /* end confdefs.h. */
  3286. int
  3287. main ()
  3288. {
  3289. ;
  3290. return 0;
  3291. }
  3292. _ACEOF
  3293. # Make sure it works both with $CC and with simple cc.
  3294. # We do the test twice because some compilers refuse to overwrite an
  3295. # existing .o file with -o, though they will create one.
  3296. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3297. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3298. (eval $ac_try) 2>&5
  3299. ac_status=$?
  3300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3301. (exit $ac_status); } &&
  3302. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3303. (eval $ac_try) 2>&5
  3304. ac_status=$?
  3305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3306. (exit $ac_status); };
  3307. then
  3308. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3309. if test "x$CC" != xcc; then
  3310. # Test first that cc exists at all.
  3311. if { ac_try='cc -c conftest.$ac_ext >&5'
  3312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3313. (eval $ac_try) 2>&5
  3314. ac_status=$?
  3315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3316. (exit $ac_status); }; }; then
  3317. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3318. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3319. (eval $ac_try) 2>&5
  3320. ac_status=$?
  3321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3322. (exit $ac_status); } &&
  3323. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3324. (eval $ac_try) 2>&5
  3325. ac_status=$?
  3326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); };
  3328. then
  3329. # cc works too.
  3330. :
  3331. else
  3332. # cc exists but doesn't like -o.
  3333. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3334. fi
  3335. fi
  3336. fi
  3337. else
  3338. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3339. fi
  3340. rm -f conftest*
  3341. fi
  3342. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3343. echo "$as_me:$LINENO: result: yes" >&5
  3344. echo "${ECHO_T}yes" >&6
  3345. else
  3346. echo "$as_me:$LINENO: result: no" >&5
  3347. echo "${ECHO_T}no" >&6
  3348. cat >>confdefs.h <<\_ACEOF
  3349. #define NO_MINUS_C_MINUS_O 1
  3350. _ACEOF
  3351. fi
  3352. # FIXME: we rely on the cache variable name because
  3353. # there is no other way.
  3354. set dummy $CC
  3355. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3356. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3357. # Losing compiler, so override with the script.
  3358. # FIXME: It is wrong to rewrite CC.
  3359. # But if we don't then we get into trouble of one sort or another.
  3360. # A longer-term fix would be to have automake use am__CC in this case,
  3361. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3362. CC="$am_aux_dir/compile $CC"
  3363. fi
  3364. # disable static libs by default - we only use a couple
  3365. # Check whether --enable-static or --disable-static was given.
  3366. if test "${enable_static+set}" = set; then
  3367. enableval="$enable_static"
  3368. p=${PACKAGE-default}
  3369. case $enableval in
  3370. yes) enable_static=yes ;;
  3371. no) enable_static=no ;;
  3372. *)
  3373. enable_static=no
  3374. # Look at the argument we got. We use all the common list separators.
  3375. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3376. for pkg in $enableval; do
  3377. IFS="$lt_save_ifs"
  3378. if test "X$pkg" = "X$p"; then
  3379. enable_static=yes
  3380. fi
  3381. done
  3382. IFS="$lt_save_ifs"
  3383. ;;
  3384. esac
  3385. else
  3386. enable_static=no
  3387. fi;
  3388. # Check whether --enable-shared or --disable-shared was given.
  3389. if test "${enable_shared+set}" = set; then
  3390. enableval="$enable_shared"
  3391. p=${PACKAGE-default}
  3392. case $enableval in
  3393. yes) enable_shared=yes ;;
  3394. no) enable_shared=no ;;
  3395. *)
  3396. enable_shared=no
  3397. # Look at the argument we got. We use all the common list separators.
  3398. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3399. for pkg in $enableval; do
  3400. IFS="$lt_save_ifs"
  3401. if test "X$pkg" = "X$p"; then
  3402. enable_shared=yes
  3403. fi
  3404. done
  3405. IFS="$lt_save_ifs"
  3406. ;;
  3407. esac
  3408. else
  3409. enable_shared=yes
  3410. fi;
  3411. # Check whether --enable-fast-install or --disable-fast-install was given.
  3412. if test "${enable_fast_install+set}" = set; then
  3413. enableval="$enable_fast_install"
  3414. p=${PACKAGE-default}
  3415. case $enableval in
  3416. yes) enable_fast_install=yes ;;
  3417. no) enable_fast_install=no ;;
  3418. *)
  3419. enable_fast_install=no
  3420. # Look at the argument we got. We use all the common list separators.
  3421. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3422. for pkg in $enableval; do
  3423. IFS="$lt_save_ifs"
  3424. if test "X$pkg" = "X$p"; then
  3425. enable_fast_install=yes
  3426. fi
  3427. done
  3428. IFS="$lt_save_ifs"
  3429. ;;
  3430. esac
  3431. else
  3432. enable_fast_install=yes
  3433. fi;
  3434. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3435. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3436. if test "${lt_cv_path_SED+set}" = set; then
  3437. echo $ECHO_N "(cached) $ECHO_C" >&6
  3438. else
  3439. # Loop through the user's path and test for sed and gsed.
  3440. # Then use that list of sed's as ones to test for truncation.
  3441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3442. for as_dir in $PATH
  3443. do
  3444. IFS=$as_save_IFS
  3445. test -z "$as_dir" && as_dir=.
  3446. for lt_ac_prog in sed gsed; do
  3447. for ac_exec_ext in '' $ac_executable_extensions; do
  3448. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3449. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3450. fi
  3451. done
  3452. done
  3453. done
  3454. lt_ac_max=0
  3455. lt_ac_count=0
  3456. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3457. # along with /bin/sed that truncates output.
  3458. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3459. test ! -f $lt_ac_sed && continue
  3460. cat /dev/null > conftest.in
  3461. lt_ac_count=0
  3462. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3463. # Check for GNU sed and select it if it is found.
  3464. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3465. lt_cv_path_SED=$lt_ac_sed
  3466. break
  3467. fi
  3468. while true; do
  3469. cat conftest.in conftest.in >conftest.tmp
  3470. mv conftest.tmp conftest.in
  3471. cp conftest.in conftest.nl
  3472. echo >>conftest.nl
  3473. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3474. cmp -s conftest.out conftest.nl || break
  3475. # 10000 chars as input seems more than enough
  3476. test $lt_ac_count -gt 10 && break
  3477. lt_ac_count=`expr $lt_ac_count + 1`
  3478. if test $lt_ac_count -gt $lt_ac_max; then
  3479. lt_ac_max=$lt_ac_count
  3480. lt_cv_path_SED=$lt_ac_sed
  3481. fi
  3482. done
  3483. done
  3484. fi
  3485. SED=$lt_cv_path_SED
  3486. echo "$as_me:$LINENO: result: $SED" >&5
  3487. echo "${ECHO_T}$SED" >&6
  3488. echo "$as_me:$LINENO: checking for egrep" >&5
  3489. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3490. if test "${ac_cv_prog_egrep+set}" = set; then
  3491. echo $ECHO_N "(cached) $ECHO_C" >&6
  3492. else
  3493. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3494. then ac_cv_prog_egrep='grep -E'
  3495. else ac_cv_prog_egrep='egrep'
  3496. fi
  3497. fi
  3498. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3499. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3500. EGREP=$ac_cv_prog_egrep
  3501. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3502. if test "${with_gnu_ld+set}" = set; then
  3503. withval="$with_gnu_ld"
  3504. test "$withval" = no || with_gnu_ld=yes
  3505. else
  3506. with_gnu_ld=no
  3507. fi;
  3508. ac_prog=ld
  3509. if test "$GCC" = yes; then
  3510. # Check if gcc -print-prog-name=ld gives a path.
  3511. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3512. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3513. case $host in
  3514. *-*-mingw*)
  3515. # gcc leaves a trailing carriage return which upsets mingw
  3516. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3517. *)
  3518. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3519. esac
  3520. case $ac_prog in
  3521. # Accept absolute paths.
  3522. [\\/]* | ?:[\\/]*)
  3523. re_direlt='/[^/][^/]*/\.\./'
  3524. # Canonicalize the pathname of ld
  3525. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3526. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3527. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3528. done
  3529. test -z "$LD" && LD="$ac_prog"
  3530. ;;
  3531. "")
  3532. # If it fails, then pretend we aren't using GCC.
  3533. ac_prog=ld
  3534. ;;
  3535. *)
  3536. # If it is relative, then search for the first ld in PATH.
  3537. with_gnu_ld=unknown
  3538. ;;
  3539. esac
  3540. elif test "$with_gnu_ld" = yes; then
  3541. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3542. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3543. else
  3544. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3545. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3546. fi
  3547. if test "${lt_cv_path_LD+set}" = set; then
  3548. echo $ECHO_N "(cached) $ECHO_C" >&6
  3549. else
  3550. if test -z "$LD"; then
  3551. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3552. for ac_dir in $PATH; do
  3553. IFS="$lt_save_ifs"
  3554. test -z "$ac_dir" && ac_dir=.
  3555. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3556. lt_cv_path_LD="$ac_dir/$ac_prog"
  3557. # Check to see if the program is GNU ld. I'd rather use --version,
  3558. # but apparently some variants of GNU ld only accept -v.
  3559. # Break only if it was the GNU/non-GNU ld that we prefer.
  3560. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3561. *GNU* | *'with BFD'*)
  3562. test "$with_gnu_ld" != no && break
  3563. ;;
  3564. *)
  3565. test "$with_gnu_ld" != yes && break
  3566. ;;
  3567. esac
  3568. fi
  3569. done
  3570. IFS="$lt_save_ifs"
  3571. else
  3572. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3573. fi
  3574. fi
  3575. LD="$lt_cv_path_LD"
  3576. if test -n "$LD"; then
  3577. echo "$as_me:$LINENO: result: $LD" >&5
  3578. echo "${ECHO_T}$LD" >&6
  3579. else
  3580. echo "$as_me:$LINENO: result: no" >&5
  3581. echo "${ECHO_T}no" >&6
  3582. fi
  3583. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3584. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3585. { (exit 1); exit 1; }; }
  3586. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3587. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3588. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3589. echo $ECHO_N "(cached) $ECHO_C" >&6
  3590. else
  3591. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3592. case `$LD -v 2>&1 </dev/null` in
  3593. *GNU* | *'with BFD'*)
  3594. lt_cv_prog_gnu_ld=yes
  3595. ;;
  3596. *)
  3597. lt_cv_prog_gnu_ld=no
  3598. ;;
  3599. esac
  3600. fi
  3601. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3602. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3603. with_gnu_ld=$lt_cv_prog_gnu_ld
  3604. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3605. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3606. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3607. echo $ECHO_N "(cached) $ECHO_C" >&6
  3608. else
  3609. lt_cv_ld_reload_flag='-r'
  3610. fi
  3611. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3612. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3613. reload_flag=$lt_cv_ld_reload_flag
  3614. case $reload_flag in
  3615. "" | " "*) ;;
  3616. *) reload_flag=" $reload_flag" ;;
  3617. esac
  3618. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3619. case $host_os in
  3620. darwin*)
  3621. if test "$GCC" = yes; then
  3622. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3623. else
  3624. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3625. fi
  3626. ;;
  3627. esac
  3628. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3629. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3630. if test "${lt_cv_path_NM+set}" = set; then
  3631. echo $ECHO_N "(cached) $ECHO_C" >&6
  3632. else
  3633. if test -n "$NM"; then
  3634. # Let the user override the test.
  3635. lt_cv_path_NM="$NM"
  3636. else
  3637. lt_nm_to_check="${ac_tool_prefix}nm"
  3638. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3639. lt_nm_to_check="$lt_nm_to_check nm"
  3640. fi
  3641. for lt_tmp_nm in $lt_nm_to_check; do
  3642. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3643. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3644. IFS="$lt_save_ifs"
  3645. test -z "$ac_dir" && ac_dir=.
  3646. tmp_nm="$ac_dir/$lt_tmp_nm"
  3647. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3648. # Check to see if the nm accepts a BSD-compat flag.
  3649. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3650. # nm: unknown option "B" ignored
  3651. # Tru64's nm complains that /dev/null is an invalid object file
  3652. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3653. */dev/null* | *'Invalid file or object type'*)
  3654. lt_cv_path_NM="$tmp_nm -B"
  3655. break
  3656. ;;
  3657. *)
  3658. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3659. */dev/null*)
  3660. lt_cv_path_NM="$tmp_nm -p"
  3661. break
  3662. ;;
  3663. *)
  3664. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3665. continue # so that we can try to find one that supports BSD flags
  3666. ;;
  3667. esac
  3668. ;;
  3669. esac
  3670. fi
  3671. done
  3672. IFS="$lt_save_ifs"
  3673. done
  3674. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3675. fi
  3676. fi
  3677. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3678. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3679. NM="$lt_cv_path_NM"
  3680. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3681. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3682. LN_S=$as_ln_s
  3683. if test "$LN_S" = "ln -s"; then
  3684. echo "$as_me:$LINENO: result: yes" >&5
  3685. echo "${ECHO_T}yes" >&6
  3686. else
  3687. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3688. echo "${ECHO_T}no, using $LN_S" >&6
  3689. fi
  3690. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3691. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3692. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3693. echo $ECHO_N "(cached) $ECHO_C" >&6
  3694. else
  3695. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3696. lt_cv_file_magic_test_file=
  3697. lt_cv_deplibs_check_method='unknown'
  3698. # Need to set the preceding variable on all platforms that support
  3699. # interlibrary dependencies.
  3700. # 'none' -- dependencies not supported.
  3701. # `unknown' -- same as none, but documents that we really don't know.
  3702. # 'pass_all' -- all dependencies passed with no checks.
  3703. # 'test_compile' -- check by making test program.
  3704. # 'file_magic [[regex]]' -- check by looking for files in library path
  3705. # which responds to the $file_magic_cmd with a given extended regex.
  3706. # If you have `file' or equivalent on your system and you're not sure
  3707. # whether `pass_all' will *always* work, you probably want this one.
  3708. case $host_os in
  3709. aix4* | aix5*)
  3710. lt_cv_deplibs_check_method=pass_all
  3711. ;;
  3712. beos*)
  3713. lt_cv_deplibs_check_method=pass_all
  3714. ;;
  3715. bsdi[45]*)
  3716. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3717. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3718. lt_cv_file_magic_test_file=/shlib/libc.so
  3719. ;;
  3720. cygwin*)
  3721. # func_win32_libid is a shell function defined in ltmain.sh
  3722. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3723. lt_cv_file_magic_cmd='func_win32_libid'
  3724. ;;
  3725. mingw* | pw32*)
  3726. # Base MSYS/MinGW do not provide the 'file' command needed by
  3727. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3728. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3729. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3730. ;;
  3731. darwin* | rhapsody*)
  3732. lt_cv_deplibs_check_method=pass_all
  3733. ;;
  3734. freebsd* | kfreebsd*-gnu | dragonfly*)
  3735. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3736. case $host_cpu in
  3737. i*86 )
  3738. # Not sure whether the presence of OpenBSD here was a mistake.
  3739. # Let's accept both of them until this is cleared up.
  3740. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3741. lt_cv_file_magic_cmd=/usr/bin/file
  3742. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3743. ;;
  3744. esac
  3745. else
  3746. lt_cv_deplibs_check_method=pass_all
  3747. fi
  3748. ;;
  3749. gnu*)
  3750. lt_cv_deplibs_check_method=pass_all
  3751. ;;
  3752. hpux10.20* | hpux11*)
  3753. lt_cv_file_magic_cmd=/usr/bin/file
  3754. case $host_cpu in
  3755. ia64*)
  3756. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3757. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3758. ;;
  3759. hppa*64*)
  3760. 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]'
  3761. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3762. ;;
  3763. *)
  3764. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3765. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3766. ;;
  3767. esac
  3768. ;;
  3769. interix3*)
  3770. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3771. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3772. ;;
  3773. irix5* | irix6* | nonstopux*)
  3774. case $LD in
  3775. *-32|*"-32 ") libmagic=32-bit;;
  3776. *-n32|*"-n32 ") libmagic=N32;;
  3777. *-64|*"-64 ") libmagic=64-bit;;
  3778. *) libmagic=never-match;;
  3779. esac
  3780. lt_cv_deplibs_check_method=pass_all
  3781. ;;
  3782. # This must be Linux ELF.
  3783. linux*)
  3784. lt_cv_deplibs_check_method=pass_all
  3785. ;;
  3786. netbsd*)
  3787. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3788. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3789. else
  3790. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3791. fi
  3792. ;;
  3793. newos6*)
  3794. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3795. lt_cv_file_magic_cmd=/usr/bin/file
  3796. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3797. ;;
  3798. nto-qnx*)
  3799. lt_cv_deplibs_check_method=unknown
  3800. ;;
  3801. openbsd*)
  3802. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3803. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3804. else
  3805. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3806. fi
  3807. ;;
  3808. osf3* | osf4* | osf5*)
  3809. lt_cv_deplibs_check_method=pass_all
  3810. ;;
  3811. solaris*)
  3812. lt_cv_deplibs_check_method=pass_all
  3813. ;;
  3814. sysv4 | sysv4.3*)
  3815. case $host_vendor in
  3816. motorola)
  3817. 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]'
  3818. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3819. ;;
  3820. ncr)
  3821. lt_cv_deplibs_check_method=pass_all
  3822. ;;
  3823. sequent)
  3824. lt_cv_file_magic_cmd='/bin/file'
  3825. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3826. ;;
  3827. sni)
  3828. lt_cv_file_magic_cmd='/bin/file'
  3829. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3830. lt_cv_file_magic_test_file=/lib/libc.so
  3831. ;;
  3832. siemens)
  3833. lt_cv_deplibs_check_method=pass_all
  3834. ;;
  3835. pc)
  3836. lt_cv_deplibs_check_method=pass_all
  3837. ;;
  3838. esac
  3839. ;;
  3840. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3841. lt_cv_deplibs_check_method=pass_all
  3842. ;;
  3843. esac
  3844. fi
  3845. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3846. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3847. file_magic_cmd=$lt_cv_file_magic_cmd
  3848. deplibs_check_method=$lt_cv_deplibs_check_method
  3849. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3850. # If no C compiler was specified, use CC.
  3851. LTCC=${LTCC-"$CC"}
  3852. # If no C compiler flags were specified, use CFLAGS.
  3853. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3854. # Allow CC to be a program name with arguments.
  3855. compiler=$CC
  3856. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3857. if test "${enable_libtool_lock+set}" = set; then
  3858. enableval="$enable_libtool_lock"
  3859. fi;
  3860. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3861. # Some flags need to be propagated to the compiler or linker for good
  3862. # libtool support.
  3863. case $host in
  3864. ia64-*-hpux*)
  3865. # Find out which ABI we are using.
  3866. echo 'int i;' > conftest.$ac_ext
  3867. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3868. (eval $ac_compile) 2>&5
  3869. ac_status=$?
  3870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3871. (exit $ac_status); }; then
  3872. case `/usr/bin/file conftest.$ac_objext` in
  3873. *ELF-32*)
  3874. HPUX_IA64_MODE="32"
  3875. ;;
  3876. *ELF-64*)
  3877. HPUX_IA64_MODE="64"
  3878. ;;
  3879. esac
  3880. fi
  3881. rm -rf conftest*
  3882. ;;
  3883. *-*-irix6*)
  3884. # Find out which ABI we are using.
  3885. echo '#line 4309 "configure"' > conftest.$ac_ext
  3886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3887. (eval $ac_compile) 2>&5
  3888. ac_status=$?
  3889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3890. (exit $ac_status); }; then
  3891. if test "$lt_cv_prog_gnu_ld" = yes; then
  3892. case `/usr/bin/file conftest.$ac_objext` in
  3893. *32-bit*)
  3894. LD="${LD-ld} -melf32bsmip"
  3895. ;;
  3896. *N32*)
  3897. LD="${LD-ld} -melf32bmipn32"
  3898. ;;
  3899. *64-bit*)
  3900. LD="${LD-ld} -melf64bmip"
  3901. ;;
  3902. esac
  3903. else
  3904. case `/usr/bin/file conftest.$ac_objext` in
  3905. *32-bit*)
  3906. LD="${LD-ld} -32"
  3907. ;;
  3908. *N32*)
  3909. LD="${LD-ld} -n32"
  3910. ;;
  3911. *64-bit*)
  3912. LD="${LD-ld} -64"
  3913. ;;
  3914. esac
  3915. fi
  3916. fi
  3917. rm -rf conftest*
  3918. ;;
  3919. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3920. # Find out which ABI we are using.
  3921. echo 'int i;' > conftest.$ac_ext
  3922. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3923. (eval $ac_compile) 2>&5
  3924. ac_status=$?
  3925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3926. (exit $ac_status); }; then
  3927. case `/usr/bin/file conftest.o` in
  3928. *32-bit*)
  3929. case $host in
  3930. x86_64-*linux*)
  3931. LD="${LD-ld} -m elf_i386"
  3932. ;;
  3933. ppc64-*linux*|powerpc64-*linux*)
  3934. LD="${LD-ld} -m elf32ppclinux"
  3935. ;;
  3936. s390x-*linux*)
  3937. LD="${LD-ld} -m elf_s390"
  3938. ;;
  3939. sparc64-*linux*)
  3940. LD="${LD-ld} -m elf32_sparc"
  3941. ;;
  3942. esac
  3943. ;;
  3944. *64-bit*)
  3945. case $host in
  3946. x86_64-*linux*)
  3947. LD="${LD-ld} -m elf_x86_64"
  3948. ;;
  3949. ppc*-*linux*|powerpc*-*linux*)
  3950. LD="${LD-ld} -m elf64ppc"
  3951. ;;
  3952. s390*-*linux*)
  3953. LD="${LD-ld} -m elf64_s390"
  3954. ;;
  3955. sparc*-*linux*)
  3956. LD="${LD-ld} -m elf64_sparc"
  3957. ;;
  3958. esac
  3959. ;;
  3960. esac
  3961. fi
  3962. rm -rf conftest*
  3963. ;;
  3964. *-*-sco3.2v5*)
  3965. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3966. SAVE_CFLAGS="$CFLAGS"
  3967. CFLAGS="$CFLAGS -belf"
  3968. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3969. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3970. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3971. echo $ECHO_N "(cached) $ECHO_C" >&6
  3972. else
  3973. ac_ext=c
  3974. ac_cpp='$CPP $CPPFLAGS'
  3975. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3976. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3977. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3978. cat >conftest.$ac_ext <<_ACEOF
  3979. /* confdefs.h. */
  3980. _ACEOF
  3981. cat confdefs.h >>conftest.$ac_ext
  3982. cat >>conftest.$ac_ext <<_ACEOF
  3983. /* end confdefs.h. */
  3984. int
  3985. main ()
  3986. {
  3987. ;
  3988. return 0;
  3989. }
  3990. _ACEOF
  3991. rm -f conftest.$ac_objext conftest$ac_exeext
  3992. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3993. (eval $ac_link) 2>conftest.er1
  3994. ac_status=$?
  3995. grep -v '^ *+' conftest.er1 >conftest.err
  3996. rm -f conftest.er1
  3997. cat conftest.err >&5
  3998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3999. (exit $ac_status); } &&
  4000. { ac_try='test -z "$ac_c_werror_flag"
  4001. || test ! -s conftest.err'
  4002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4003. (eval $ac_try) 2>&5
  4004. ac_status=$?
  4005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4006. (exit $ac_status); }; } &&
  4007. { ac_try='test -s conftest$ac_exeext'
  4008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4009. (eval $ac_try) 2>&5
  4010. ac_status=$?
  4011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4012. (exit $ac_status); }; }; then
  4013. lt_cv_cc_needs_belf=yes
  4014. else
  4015. echo "$as_me: failed program was:" >&5
  4016. sed 's/^/| /' conftest.$ac_ext >&5
  4017. lt_cv_cc_needs_belf=no
  4018. fi
  4019. rm -f conftest.err conftest.$ac_objext \
  4020. conftest$ac_exeext conftest.$ac_ext
  4021. ac_ext=c
  4022. ac_cpp='$CPP $CPPFLAGS'
  4023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4026. fi
  4027. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4028. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4029. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4030. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4031. CFLAGS="$SAVE_CFLAGS"
  4032. fi
  4033. ;;
  4034. sparc*-*solaris*)
  4035. # Find out which ABI we are using.
  4036. echo 'int i;' > conftest.$ac_ext
  4037. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4038. (eval $ac_compile) 2>&5
  4039. ac_status=$?
  4040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4041. (exit $ac_status); }; then
  4042. case `/usr/bin/file conftest.o` in
  4043. *64-bit*)
  4044. case $lt_cv_prog_gnu_ld in
  4045. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4046. *) LD="${LD-ld} -64" ;;
  4047. esac
  4048. ;;
  4049. esac
  4050. fi
  4051. rm -rf conftest*
  4052. ;;
  4053. esac
  4054. need_locks="$enable_libtool_lock"
  4055. ac_ext=c
  4056. ac_cpp='$CPP $CPPFLAGS'
  4057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4060. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4061. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4062. # On Suns, sometimes $CPP names a directory.
  4063. if test -n "$CPP" && test -d "$CPP"; then
  4064. CPP=
  4065. fi
  4066. if test -z "$CPP"; then
  4067. if test "${ac_cv_prog_CPP+set}" = set; then
  4068. echo $ECHO_N "(cached) $ECHO_C" >&6
  4069. else
  4070. # Double quotes because CPP needs to be expanded
  4071. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4072. do
  4073. ac_preproc_ok=false
  4074. for ac_c_preproc_warn_flag in '' yes
  4075. do
  4076. # Use a header file that comes with gcc, so configuring glibc
  4077. # with a fresh cross-compiler works.
  4078. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4079. # <limits.h> exists even on freestanding compilers.
  4080. # On the NeXT, cc -E runs the code through the compiler's parser,
  4081. # not just through cpp. "Syntax error" is here to catch this case.
  4082. cat >conftest.$ac_ext <<_ACEOF
  4083. /* confdefs.h. */
  4084. _ACEOF
  4085. cat confdefs.h >>conftest.$ac_ext
  4086. cat >>conftest.$ac_ext <<_ACEOF
  4087. /* end confdefs.h. */
  4088. #ifdef __STDC__
  4089. # include <limits.h>
  4090. #else
  4091. # include <assert.h>
  4092. #endif
  4093. Syntax error
  4094. _ACEOF
  4095. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4096. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4097. ac_status=$?
  4098. grep -v '^ *+' conftest.er1 >conftest.err
  4099. rm -f conftest.er1
  4100. cat conftest.err >&5
  4101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4102. (exit $ac_status); } >/dev/null; then
  4103. if test -s conftest.err; then
  4104. ac_cpp_err=$ac_c_preproc_warn_flag
  4105. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4106. else
  4107. ac_cpp_err=
  4108. fi
  4109. else
  4110. ac_cpp_err=yes
  4111. fi
  4112. if test -z "$ac_cpp_err"; then
  4113. :
  4114. else
  4115. echo "$as_me: failed program was:" >&5
  4116. sed 's/^/| /' conftest.$ac_ext >&5
  4117. # Broken: fails on valid input.
  4118. continue
  4119. fi
  4120. rm -f conftest.err conftest.$ac_ext
  4121. # OK, works on sane cases. Now check whether non-existent headers
  4122. # can be detected and how.
  4123. cat >conftest.$ac_ext <<_ACEOF
  4124. /* confdefs.h. */
  4125. _ACEOF
  4126. cat confdefs.h >>conftest.$ac_ext
  4127. cat >>conftest.$ac_ext <<_ACEOF
  4128. /* end confdefs.h. */
  4129. #include <ac_nonexistent.h>
  4130. _ACEOF
  4131. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4132. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4133. ac_status=$?
  4134. grep -v '^ *+' conftest.er1 >conftest.err
  4135. rm -f conftest.er1
  4136. cat conftest.err >&5
  4137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4138. (exit $ac_status); } >/dev/null; then
  4139. if test -s conftest.err; then
  4140. ac_cpp_err=$ac_c_preproc_warn_flag
  4141. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4142. else
  4143. ac_cpp_err=
  4144. fi
  4145. else
  4146. ac_cpp_err=yes
  4147. fi
  4148. if test -z "$ac_cpp_err"; then
  4149. # Broken: success on invalid input.
  4150. continue
  4151. else
  4152. echo "$as_me: failed program was:" >&5
  4153. sed 's/^/| /' conftest.$ac_ext >&5
  4154. # Passes both tests.
  4155. ac_preproc_ok=:
  4156. break
  4157. fi
  4158. rm -f conftest.err conftest.$ac_ext
  4159. done
  4160. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4161. rm -f conftest.err conftest.$ac_ext
  4162. if $ac_preproc_ok; then
  4163. break
  4164. fi
  4165. done
  4166. ac_cv_prog_CPP=$CPP
  4167. fi
  4168. CPP=$ac_cv_prog_CPP
  4169. else
  4170. ac_cv_prog_CPP=$CPP
  4171. fi
  4172. echo "$as_me:$LINENO: result: $CPP" >&5
  4173. echo "${ECHO_T}$CPP" >&6
  4174. ac_preproc_ok=false
  4175. for ac_c_preproc_warn_flag in '' yes
  4176. do
  4177. # Use a header file that comes with gcc, so configuring glibc
  4178. # with a fresh cross-compiler works.
  4179. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4180. # <limits.h> exists even on freestanding compilers.
  4181. # On the NeXT, cc -E runs the code through the compiler's parser,
  4182. # not just through cpp. "Syntax error" is here to catch this case.
  4183. cat >conftest.$ac_ext <<_ACEOF
  4184. /* confdefs.h. */
  4185. _ACEOF
  4186. cat confdefs.h >>conftest.$ac_ext
  4187. cat >>conftest.$ac_ext <<_ACEOF
  4188. /* end confdefs.h. */
  4189. #ifdef __STDC__
  4190. # include <limits.h>
  4191. #else
  4192. # include <assert.h>
  4193. #endif
  4194. Syntax error
  4195. _ACEOF
  4196. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4197. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4198. ac_status=$?
  4199. grep -v '^ *+' conftest.er1 >conftest.err
  4200. rm -f conftest.er1
  4201. cat conftest.err >&5
  4202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4203. (exit $ac_status); } >/dev/null; then
  4204. if test -s conftest.err; then
  4205. ac_cpp_err=$ac_c_preproc_warn_flag
  4206. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4207. else
  4208. ac_cpp_err=
  4209. fi
  4210. else
  4211. ac_cpp_err=yes
  4212. fi
  4213. if test -z "$ac_cpp_err"; then
  4214. :
  4215. else
  4216. echo "$as_me: failed program was:" >&5
  4217. sed 's/^/| /' conftest.$ac_ext >&5
  4218. # Broken: fails on valid input.
  4219. continue
  4220. fi
  4221. rm -f conftest.err conftest.$ac_ext
  4222. # OK, works on sane cases. Now check whether non-existent headers
  4223. # can be detected and how.
  4224. cat >conftest.$ac_ext <<_ACEOF
  4225. /* confdefs.h. */
  4226. _ACEOF
  4227. cat confdefs.h >>conftest.$ac_ext
  4228. cat >>conftest.$ac_ext <<_ACEOF
  4229. /* end confdefs.h. */
  4230. #include <ac_nonexistent.h>
  4231. _ACEOF
  4232. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4233. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4234. ac_status=$?
  4235. grep -v '^ *+' conftest.er1 >conftest.err
  4236. rm -f conftest.er1
  4237. cat conftest.err >&5
  4238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4239. (exit $ac_status); } >/dev/null; then
  4240. if test -s conftest.err; then
  4241. ac_cpp_err=$ac_c_preproc_warn_flag
  4242. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4243. else
  4244. ac_cpp_err=
  4245. fi
  4246. else
  4247. ac_cpp_err=yes
  4248. fi
  4249. if test -z "$ac_cpp_err"; then
  4250. # Broken: success on invalid input.
  4251. continue
  4252. else
  4253. echo "$as_me: failed program was:" >&5
  4254. sed 's/^/| /' conftest.$ac_ext >&5
  4255. # Passes both tests.
  4256. ac_preproc_ok=:
  4257. break
  4258. fi
  4259. rm -f conftest.err conftest.$ac_ext
  4260. done
  4261. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4262. rm -f conftest.err conftest.$ac_ext
  4263. if $ac_preproc_ok; then
  4264. :
  4265. else
  4266. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4267. See \`config.log' for more details." >&5
  4268. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4269. See \`config.log' for more details." >&2;}
  4270. { (exit 1); exit 1; }; }
  4271. fi
  4272. ac_ext=c
  4273. ac_cpp='$CPP $CPPFLAGS'
  4274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4277. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4278. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4279. if test "${ac_cv_header_stdc+set}" = set; then
  4280. echo $ECHO_N "(cached) $ECHO_C" >&6
  4281. else
  4282. cat >conftest.$ac_ext <<_ACEOF
  4283. /* confdefs.h. */
  4284. _ACEOF
  4285. cat confdefs.h >>conftest.$ac_ext
  4286. cat >>conftest.$ac_ext <<_ACEOF
  4287. /* end confdefs.h. */
  4288. #include <stdlib.h>
  4289. #include <stdarg.h>
  4290. #include <string.h>
  4291. #include <float.h>
  4292. int
  4293. main ()
  4294. {
  4295. ;
  4296. return 0;
  4297. }
  4298. _ACEOF
  4299. rm -f conftest.$ac_objext
  4300. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4301. (eval $ac_compile) 2>conftest.er1
  4302. ac_status=$?
  4303. grep -v '^ *+' conftest.er1 >conftest.err
  4304. rm -f conftest.er1
  4305. cat conftest.err >&5
  4306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4307. (exit $ac_status); } &&
  4308. { ac_try='test -z "$ac_c_werror_flag"
  4309. || test ! -s conftest.err'
  4310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4311. (eval $ac_try) 2>&5
  4312. ac_status=$?
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); }; } &&
  4315. { ac_try='test -s conftest.$ac_objext'
  4316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4317. (eval $ac_try) 2>&5
  4318. ac_status=$?
  4319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4320. (exit $ac_status); }; }; then
  4321. ac_cv_header_stdc=yes
  4322. else
  4323. echo "$as_me: failed program was:" >&5
  4324. sed 's/^/| /' conftest.$ac_ext >&5
  4325. ac_cv_header_stdc=no
  4326. fi
  4327. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4328. if test $ac_cv_header_stdc = yes; then
  4329. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4330. cat >conftest.$ac_ext <<_ACEOF
  4331. /* confdefs.h. */
  4332. _ACEOF
  4333. cat confdefs.h >>conftest.$ac_ext
  4334. cat >>conftest.$ac_ext <<_ACEOF
  4335. /* end confdefs.h. */
  4336. #include <string.h>
  4337. _ACEOF
  4338. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4339. $EGREP "memchr" >/dev/null 2>&1; then
  4340. :
  4341. else
  4342. ac_cv_header_stdc=no
  4343. fi
  4344. rm -f conftest*
  4345. fi
  4346. if test $ac_cv_header_stdc = yes; then
  4347. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4348. cat >conftest.$ac_ext <<_ACEOF
  4349. /* confdefs.h. */
  4350. _ACEOF
  4351. cat confdefs.h >>conftest.$ac_ext
  4352. cat >>conftest.$ac_ext <<_ACEOF
  4353. /* end confdefs.h. */
  4354. #include <stdlib.h>
  4355. _ACEOF
  4356. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4357. $EGREP "free" >/dev/null 2>&1; then
  4358. :
  4359. else
  4360. ac_cv_header_stdc=no
  4361. fi
  4362. rm -f conftest*
  4363. fi
  4364. if test $ac_cv_header_stdc = yes; then
  4365. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4366. if test "$cross_compiling" = yes; then
  4367. :
  4368. else
  4369. cat >conftest.$ac_ext <<_ACEOF
  4370. /* confdefs.h. */
  4371. _ACEOF
  4372. cat confdefs.h >>conftest.$ac_ext
  4373. cat >>conftest.$ac_ext <<_ACEOF
  4374. /* end confdefs.h. */
  4375. #include <ctype.h>
  4376. #if ((' ' & 0x0FF) == 0x020)
  4377. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4378. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4379. #else
  4380. # define ISLOWER(c) \
  4381. (('a' <= (c) && (c) <= 'i') \
  4382. || ('j' <= (c) && (c) <= 'r') \
  4383. || ('s' <= (c) && (c) <= 'z'))
  4384. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4385. #endif
  4386. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4387. int
  4388. main ()
  4389. {
  4390. int i;
  4391. for (i = 0; i < 256; i++)
  4392. if (XOR (islower (i), ISLOWER (i))
  4393. || toupper (i) != TOUPPER (i))
  4394. exit(2);
  4395. exit (0);
  4396. }
  4397. _ACEOF
  4398. rm -f conftest$ac_exeext
  4399. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4400. (eval $ac_link) 2>&5
  4401. ac_status=$?
  4402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4403. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4405. (eval $ac_try) 2>&5
  4406. ac_status=$?
  4407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4408. (exit $ac_status); }; }; then
  4409. :
  4410. else
  4411. echo "$as_me: program exited with status $ac_status" >&5
  4412. echo "$as_me: failed program was:" >&5
  4413. sed 's/^/| /' conftest.$ac_ext >&5
  4414. ( exit $ac_status )
  4415. ac_cv_header_stdc=no
  4416. fi
  4417. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4418. fi
  4419. fi
  4420. fi
  4421. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4422. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4423. if test $ac_cv_header_stdc = yes; then
  4424. cat >>confdefs.h <<\_ACEOF
  4425. #define STDC_HEADERS 1
  4426. _ACEOF
  4427. fi
  4428. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4429. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4430. inttypes.h stdint.h unistd.h
  4431. do
  4432. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4433. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4434. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4435. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4436. echo $ECHO_N "(cached) $ECHO_C" >&6
  4437. else
  4438. cat >conftest.$ac_ext <<_ACEOF
  4439. /* confdefs.h. */
  4440. _ACEOF
  4441. cat confdefs.h >>conftest.$ac_ext
  4442. cat >>conftest.$ac_ext <<_ACEOF
  4443. /* end confdefs.h. */
  4444. $ac_includes_default
  4445. #include <$ac_header>
  4446. _ACEOF
  4447. rm -f conftest.$ac_objext
  4448. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4449. (eval $ac_compile) 2>conftest.er1
  4450. ac_status=$?
  4451. grep -v '^ *+' conftest.er1 >conftest.err
  4452. rm -f conftest.er1
  4453. cat conftest.err >&5
  4454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4455. (exit $ac_status); } &&
  4456. { ac_try='test -z "$ac_c_werror_flag"
  4457. || test ! -s conftest.err'
  4458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4459. (eval $ac_try) 2>&5
  4460. ac_status=$?
  4461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4462. (exit $ac_status); }; } &&
  4463. { ac_try='test -s conftest.$ac_objext'
  4464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4465. (eval $ac_try) 2>&5
  4466. ac_status=$?
  4467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4468. (exit $ac_status); }; }; then
  4469. eval "$as_ac_Header=yes"
  4470. else
  4471. echo "$as_me: failed program was:" >&5
  4472. sed 's/^/| /' conftest.$ac_ext >&5
  4473. eval "$as_ac_Header=no"
  4474. fi
  4475. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4476. fi
  4477. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4478. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4479. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4480. cat >>confdefs.h <<_ACEOF
  4481. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4482. _ACEOF
  4483. fi
  4484. done
  4485. for ac_header in dlfcn.h
  4486. do
  4487. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4488. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4489. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4490. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4491. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4492. echo $ECHO_N "(cached) $ECHO_C" >&6
  4493. fi
  4494. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4495. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4496. else
  4497. # Is the header compilable?
  4498. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4499. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4500. cat >conftest.$ac_ext <<_ACEOF
  4501. /* confdefs.h. */
  4502. _ACEOF
  4503. cat confdefs.h >>conftest.$ac_ext
  4504. cat >>conftest.$ac_ext <<_ACEOF
  4505. /* end confdefs.h. */
  4506. $ac_includes_default
  4507. #include <$ac_header>
  4508. _ACEOF
  4509. rm -f conftest.$ac_objext
  4510. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4511. (eval $ac_compile) 2>conftest.er1
  4512. ac_status=$?
  4513. grep -v '^ *+' conftest.er1 >conftest.err
  4514. rm -f conftest.er1
  4515. cat conftest.err >&5
  4516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517. (exit $ac_status); } &&
  4518. { ac_try='test -z "$ac_c_werror_flag"
  4519. || test ! -s conftest.err'
  4520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4521. (eval $ac_try) 2>&5
  4522. ac_status=$?
  4523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); }; } &&
  4525. { ac_try='test -s conftest.$ac_objext'
  4526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4527. (eval $ac_try) 2>&5
  4528. ac_status=$?
  4529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4530. (exit $ac_status); }; }; then
  4531. ac_header_compiler=yes
  4532. else
  4533. echo "$as_me: failed program was:" >&5
  4534. sed 's/^/| /' conftest.$ac_ext >&5
  4535. ac_header_compiler=no
  4536. fi
  4537. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4538. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4539. echo "${ECHO_T}$ac_header_compiler" >&6
  4540. # Is the header present?
  4541. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4542. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. #include <$ac_header>
  4550. _ACEOF
  4551. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4552. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4553. ac_status=$?
  4554. grep -v '^ *+' conftest.er1 >conftest.err
  4555. rm -f conftest.er1
  4556. cat conftest.err >&5
  4557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4558. (exit $ac_status); } >/dev/null; then
  4559. if test -s conftest.err; then
  4560. ac_cpp_err=$ac_c_preproc_warn_flag
  4561. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4562. else
  4563. ac_cpp_err=
  4564. fi
  4565. else
  4566. ac_cpp_err=yes
  4567. fi
  4568. if test -z "$ac_cpp_err"; then
  4569. ac_header_preproc=yes
  4570. else
  4571. echo "$as_me: failed program was:" >&5
  4572. sed 's/^/| /' conftest.$ac_ext >&5
  4573. ac_header_preproc=no
  4574. fi
  4575. rm -f conftest.err conftest.$ac_ext
  4576. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4577. echo "${ECHO_T}$ac_header_preproc" >&6
  4578. # So? What about this header?
  4579. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4580. yes:no: )
  4581. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4582. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4583. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4584. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4585. ac_header_preproc=yes
  4586. ;;
  4587. no:yes:* )
  4588. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4589. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4590. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4591. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4592. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4593. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4594. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4595. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4596. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4597. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4598. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4599. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4600. (
  4601. cat <<\_ASBOX
  4602. ## ------------------------------------------ ##
  4603. ## Report this to http://bugzilla.redhat.com/ ##
  4604. ## ------------------------------------------ ##
  4605. _ASBOX
  4606. ) |
  4607. sed "s/^/$as_me: WARNING: /" >&2
  4608. ;;
  4609. esac
  4610. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4611. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4612. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4613. echo $ECHO_N "(cached) $ECHO_C" >&6
  4614. else
  4615. eval "$as_ac_Header=\$ac_header_preproc"
  4616. fi
  4617. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4618. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4619. fi
  4620. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4621. cat >>confdefs.h <<_ACEOF
  4622. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4623. _ACEOF
  4624. fi
  4625. done
  4626. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4627. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4628. (test "X$CXX" != "Xg++"))) ; then
  4629. ac_ext=cc
  4630. ac_cpp='$CXXCPP $CPPFLAGS'
  4631. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4632. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4633. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4634. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4635. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4636. if test -z "$CXXCPP"; then
  4637. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4638. echo $ECHO_N "(cached) $ECHO_C" >&6
  4639. else
  4640. # Double quotes because CXXCPP needs to be expanded
  4641. for CXXCPP in "$CXX -E" "/lib/cpp"
  4642. do
  4643. ac_preproc_ok=false
  4644. for ac_cxx_preproc_warn_flag in '' yes
  4645. do
  4646. # Use a header file that comes with gcc, so configuring glibc
  4647. # with a fresh cross-compiler works.
  4648. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4649. # <limits.h> exists even on freestanding compilers.
  4650. # On the NeXT, cc -E runs the code through the compiler's parser,
  4651. # not just through cpp. "Syntax error" is here to catch this case.
  4652. cat >conftest.$ac_ext <<_ACEOF
  4653. /* confdefs.h. */
  4654. _ACEOF
  4655. cat confdefs.h >>conftest.$ac_ext
  4656. cat >>conftest.$ac_ext <<_ACEOF
  4657. /* end confdefs.h. */
  4658. #ifdef __STDC__
  4659. # include <limits.h>
  4660. #else
  4661. # include <assert.h>
  4662. #endif
  4663. Syntax error
  4664. _ACEOF
  4665. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4666. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4667. ac_status=$?
  4668. grep -v '^ *+' conftest.er1 >conftest.err
  4669. rm -f conftest.er1
  4670. cat conftest.err >&5
  4671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4672. (exit $ac_status); } >/dev/null; then
  4673. if test -s conftest.err; then
  4674. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4675. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4676. else
  4677. ac_cpp_err=
  4678. fi
  4679. else
  4680. ac_cpp_err=yes
  4681. fi
  4682. if test -z "$ac_cpp_err"; then
  4683. :
  4684. else
  4685. echo "$as_me: failed program was:" >&5
  4686. sed 's/^/| /' conftest.$ac_ext >&5
  4687. # Broken: fails on valid input.
  4688. continue
  4689. fi
  4690. rm -f conftest.err conftest.$ac_ext
  4691. # OK, works on sane cases. Now check whether non-existent headers
  4692. # can be detected and how.
  4693. cat >conftest.$ac_ext <<_ACEOF
  4694. /* confdefs.h. */
  4695. _ACEOF
  4696. cat confdefs.h >>conftest.$ac_ext
  4697. cat >>conftest.$ac_ext <<_ACEOF
  4698. /* end confdefs.h. */
  4699. #include <ac_nonexistent.h>
  4700. _ACEOF
  4701. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4702. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4703. ac_status=$?
  4704. grep -v '^ *+' conftest.er1 >conftest.err
  4705. rm -f conftest.er1
  4706. cat conftest.err >&5
  4707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4708. (exit $ac_status); } >/dev/null; then
  4709. if test -s conftest.err; then
  4710. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4711. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4712. else
  4713. ac_cpp_err=
  4714. fi
  4715. else
  4716. ac_cpp_err=yes
  4717. fi
  4718. if test -z "$ac_cpp_err"; then
  4719. # Broken: success on invalid input.
  4720. continue
  4721. else
  4722. echo "$as_me: failed program was:" >&5
  4723. sed 's/^/| /' conftest.$ac_ext >&5
  4724. # Passes both tests.
  4725. ac_preproc_ok=:
  4726. break
  4727. fi
  4728. rm -f conftest.err conftest.$ac_ext
  4729. done
  4730. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4731. rm -f conftest.err conftest.$ac_ext
  4732. if $ac_preproc_ok; then
  4733. break
  4734. fi
  4735. done
  4736. ac_cv_prog_CXXCPP=$CXXCPP
  4737. fi
  4738. CXXCPP=$ac_cv_prog_CXXCPP
  4739. else
  4740. ac_cv_prog_CXXCPP=$CXXCPP
  4741. fi
  4742. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4743. echo "${ECHO_T}$CXXCPP" >&6
  4744. ac_preproc_ok=false
  4745. for ac_cxx_preproc_warn_flag in '' yes
  4746. do
  4747. # Use a header file that comes with gcc, so configuring glibc
  4748. # with a fresh cross-compiler works.
  4749. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4750. # <limits.h> exists even on freestanding compilers.
  4751. # On the NeXT, cc -E runs the code through the compiler's parser,
  4752. # not just through cpp. "Syntax error" is here to catch this case.
  4753. cat >conftest.$ac_ext <<_ACEOF
  4754. /* confdefs.h. */
  4755. _ACEOF
  4756. cat confdefs.h >>conftest.$ac_ext
  4757. cat >>conftest.$ac_ext <<_ACEOF
  4758. /* end confdefs.h. */
  4759. #ifdef __STDC__
  4760. # include <limits.h>
  4761. #else
  4762. # include <assert.h>
  4763. #endif
  4764. Syntax error
  4765. _ACEOF
  4766. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4767. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4768. ac_status=$?
  4769. grep -v '^ *+' conftest.er1 >conftest.err
  4770. rm -f conftest.er1
  4771. cat conftest.err >&5
  4772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4773. (exit $ac_status); } >/dev/null; then
  4774. if test -s conftest.err; then
  4775. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4776. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4777. else
  4778. ac_cpp_err=
  4779. fi
  4780. else
  4781. ac_cpp_err=yes
  4782. fi
  4783. if test -z "$ac_cpp_err"; then
  4784. :
  4785. else
  4786. echo "$as_me: failed program was:" >&5
  4787. sed 's/^/| /' conftest.$ac_ext >&5
  4788. # Broken: fails on valid input.
  4789. continue
  4790. fi
  4791. rm -f conftest.err conftest.$ac_ext
  4792. # OK, works on sane cases. Now check whether non-existent headers
  4793. # can be detected and how.
  4794. cat >conftest.$ac_ext <<_ACEOF
  4795. /* confdefs.h. */
  4796. _ACEOF
  4797. cat confdefs.h >>conftest.$ac_ext
  4798. cat >>conftest.$ac_ext <<_ACEOF
  4799. /* end confdefs.h. */
  4800. #include <ac_nonexistent.h>
  4801. _ACEOF
  4802. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4803. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4804. ac_status=$?
  4805. grep -v '^ *+' conftest.er1 >conftest.err
  4806. rm -f conftest.er1
  4807. cat conftest.err >&5
  4808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4809. (exit $ac_status); } >/dev/null; then
  4810. if test -s conftest.err; then
  4811. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4812. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4813. else
  4814. ac_cpp_err=
  4815. fi
  4816. else
  4817. ac_cpp_err=yes
  4818. fi
  4819. if test -z "$ac_cpp_err"; then
  4820. # Broken: success on invalid input.
  4821. continue
  4822. else
  4823. echo "$as_me: failed program was:" >&5
  4824. sed 's/^/| /' conftest.$ac_ext >&5
  4825. # Passes both tests.
  4826. ac_preproc_ok=:
  4827. break
  4828. fi
  4829. rm -f conftest.err conftest.$ac_ext
  4830. done
  4831. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4832. rm -f conftest.err conftest.$ac_ext
  4833. if $ac_preproc_ok; then
  4834. :
  4835. else
  4836. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4837. See \`config.log' for more details." >&5
  4838. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4839. See \`config.log' for more details." >&2;}
  4840. { (exit 1); exit 1; }; }
  4841. fi
  4842. ac_ext=cc
  4843. ac_cpp='$CXXCPP $CPPFLAGS'
  4844. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4845. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4846. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4847. fi
  4848. ac_ext=f
  4849. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4850. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4851. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4852. if test -n "$ac_tool_prefix"; then
  4853. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4854. do
  4855. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4856. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4857. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4858. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4859. if test "${ac_cv_prog_F77+set}" = set; then
  4860. echo $ECHO_N "(cached) $ECHO_C" >&6
  4861. else
  4862. if test -n "$F77"; then
  4863. ac_cv_prog_F77="$F77" # Let the user override the test.
  4864. else
  4865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4866. for as_dir in $PATH
  4867. do
  4868. IFS=$as_save_IFS
  4869. test -z "$as_dir" && as_dir=.
  4870. for ac_exec_ext in '' $ac_executable_extensions; do
  4871. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4872. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4873. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4874. break 2
  4875. fi
  4876. done
  4877. done
  4878. fi
  4879. fi
  4880. F77=$ac_cv_prog_F77
  4881. if test -n "$F77"; then
  4882. echo "$as_me:$LINENO: result: $F77" >&5
  4883. echo "${ECHO_T}$F77" >&6
  4884. else
  4885. echo "$as_me:$LINENO: result: no" >&5
  4886. echo "${ECHO_T}no" >&6
  4887. fi
  4888. test -n "$F77" && break
  4889. done
  4890. fi
  4891. if test -z "$F77"; then
  4892. ac_ct_F77=$F77
  4893. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4894. do
  4895. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4896. set dummy $ac_prog; ac_word=$2
  4897. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4898. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4899. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4900. echo $ECHO_N "(cached) $ECHO_C" >&6
  4901. else
  4902. if test -n "$ac_ct_F77"; then
  4903. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4912. ac_cv_prog_ac_ct_F77="$ac_prog"
  4913. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. fi
  4919. fi
  4920. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4921. if test -n "$ac_ct_F77"; then
  4922. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4923. echo "${ECHO_T}$ac_ct_F77" >&6
  4924. else
  4925. echo "$as_me:$LINENO: result: no" >&5
  4926. echo "${ECHO_T}no" >&6
  4927. fi
  4928. test -n "$ac_ct_F77" && break
  4929. done
  4930. F77=$ac_ct_F77
  4931. fi
  4932. # Provide some information about the compiler.
  4933. echo "$as_me:5444:" \
  4934. "checking for Fortran 77 compiler version" >&5
  4935. ac_compiler=`set X $ac_compile; echo $2`
  4936. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4937. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4938. ac_status=$?
  4939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4940. (exit $ac_status); }
  4941. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4942. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4943. ac_status=$?
  4944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4945. (exit $ac_status); }
  4946. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4947. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4948. ac_status=$?
  4949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4950. (exit $ac_status); }
  4951. rm -f a.out
  4952. # If we don't use `.F' as extension, the preprocessor is not run on the
  4953. # input file. (Note that this only needs to work for GNU compilers.)
  4954. ac_save_ext=$ac_ext
  4955. ac_ext=F
  4956. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4957. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4958. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4959. echo $ECHO_N "(cached) $ECHO_C" >&6
  4960. else
  4961. cat >conftest.$ac_ext <<_ACEOF
  4962. program main
  4963. #ifndef __GNUC__
  4964. choke me
  4965. #endif
  4966. end
  4967. _ACEOF
  4968. rm -f conftest.$ac_objext
  4969. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4970. (eval $ac_compile) 2>conftest.er1
  4971. ac_status=$?
  4972. grep -v '^ *+' conftest.er1 >conftest.err
  4973. rm -f conftest.er1
  4974. cat conftest.err >&5
  4975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4976. (exit $ac_status); } &&
  4977. { ac_try='test -z "$ac_f77_werror_flag"
  4978. || test ! -s conftest.err'
  4979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4980. (eval $ac_try) 2>&5
  4981. ac_status=$?
  4982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4983. (exit $ac_status); }; } &&
  4984. { ac_try='test -s conftest.$ac_objext'
  4985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4986. (eval $ac_try) 2>&5
  4987. ac_status=$?
  4988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4989. (exit $ac_status); }; }; then
  4990. ac_compiler_gnu=yes
  4991. else
  4992. echo "$as_me: failed program was:" >&5
  4993. sed 's/^/| /' conftest.$ac_ext >&5
  4994. ac_compiler_gnu=no
  4995. fi
  4996. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4997. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4998. fi
  4999. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5000. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5001. ac_ext=$ac_save_ext
  5002. ac_test_FFLAGS=${FFLAGS+set}
  5003. ac_save_FFLAGS=$FFLAGS
  5004. FFLAGS=
  5005. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5006. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5007. if test "${ac_cv_prog_f77_g+set}" = set; then
  5008. echo $ECHO_N "(cached) $ECHO_C" >&6
  5009. else
  5010. FFLAGS=-g
  5011. cat >conftest.$ac_ext <<_ACEOF
  5012. program main
  5013. end
  5014. _ACEOF
  5015. rm -f conftest.$ac_objext
  5016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5017. (eval $ac_compile) 2>conftest.er1
  5018. ac_status=$?
  5019. grep -v '^ *+' conftest.er1 >conftest.err
  5020. rm -f conftest.er1
  5021. cat conftest.err >&5
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); } &&
  5024. { ac_try='test -z "$ac_f77_werror_flag"
  5025. || test ! -s conftest.err'
  5026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5027. (eval $ac_try) 2>&5
  5028. ac_status=$?
  5029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. (exit $ac_status); }; } &&
  5031. { ac_try='test -s conftest.$ac_objext'
  5032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5033. (eval $ac_try) 2>&5
  5034. ac_status=$?
  5035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5036. (exit $ac_status); }; }; then
  5037. ac_cv_prog_f77_g=yes
  5038. else
  5039. echo "$as_me: failed program was:" >&5
  5040. sed 's/^/| /' conftest.$ac_ext >&5
  5041. ac_cv_prog_f77_g=no
  5042. fi
  5043. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5044. fi
  5045. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5046. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5047. if test "$ac_test_FFLAGS" = set; then
  5048. FFLAGS=$ac_save_FFLAGS
  5049. elif test $ac_cv_prog_f77_g = yes; then
  5050. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5051. FFLAGS="-g -O2"
  5052. else
  5053. FFLAGS="-g"
  5054. fi
  5055. else
  5056. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5057. FFLAGS="-O2"
  5058. else
  5059. FFLAGS=
  5060. fi
  5061. fi
  5062. G77=`test $ac_compiler_gnu = yes && echo yes`
  5063. ac_ext=c
  5064. ac_cpp='$CPP $CPPFLAGS'
  5065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5068. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5069. # find the maximum length of command line arguments
  5070. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5071. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5072. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5073. echo $ECHO_N "(cached) $ECHO_C" >&6
  5074. else
  5075. i=0
  5076. teststring="ABCD"
  5077. case $build_os in
  5078. msdosdjgpp*)
  5079. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5080. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5081. # during glob expansion). Even if it were fixed, the result of this
  5082. # check would be larger than it should be.
  5083. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5084. ;;
  5085. gnu*)
  5086. # Under GNU Hurd, this test is not required because there is
  5087. # no limit to the length of command line arguments.
  5088. # Libtool will interpret -1 as no limit whatsoever
  5089. lt_cv_sys_max_cmd_len=-1;
  5090. ;;
  5091. cygwin* | mingw*)
  5092. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5093. # about 5 minutes as the teststring grows exponentially.
  5094. # Worse, since 9x/ME are not pre-emptively multitasking,
  5095. # you end up with a "frozen" computer, even though with patience
  5096. # the test eventually succeeds (with a max line length of 256k).
  5097. # Instead, let's just punt: use the minimum linelength reported by
  5098. # all of the supported platforms: 8192 (on NT/2K/XP).
  5099. lt_cv_sys_max_cmd_len=8192;
  5100. ;;
  5101. amigaos*)
  5102. # On AmigaOS with pdksh, this test takes hours, literally.
  5103. # So we just punt and use a minimum line length of 8192.
  5104. lt_cv_sys_max_cmd_len=8192;
  5105. ;;
  5106. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5107. # This has been around since 386BSD, at least. Likely further.
  5108. if test -x /sbin/sysctl; then
  5109. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5110. elif test -x /usr/sbin/sysctl; then
  5111. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5112. else
  5113. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5114. fi
  5115. # And add a safety zone
  5116. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5117. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5118. ;;
  5119. interix*)
  5120. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5121. lt_cv_sys_max_cmd_len=196608
  5122. ;;
  5123. osf*)
  5124. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5125. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5126. # nice to cause kernel panics so lets avoid the loop below.
  5127. # First set a reasonable default.
  5128. lt_cv_sys_max_cmd_len=16384
  5129. #
  5130. if test -x /sbin/sysconfig; then
  5131. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5132. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5133. esac
  5134. fi
  5135. ;;
  5136. sco3.2v5*)
  5137. lt_cv_sys_max_cmd_len=102400
  5138. ;;
  5139. sysv5* | sco5v6* | sysv4.2uw2*)
  5140. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5141. if test -n "$kargmax"; then
  5142. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5143. else
  5144. lt_cv_sys_max_cmd_len=32768
  5145. fi
  5146. ;;
  5147. *)
  5148. # If test is not a shell built-in, we'll probably end up computing a
  5149. # maximum length that is only half of the actual maximum length, but
  5150. # we can't tell.
  5151. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5152. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5153. = "XX$teststring") >/dev/null 2>&1 &&
  5154. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5155. lt_cv_sys_max_cmd_len=$new_result &&
  5156. test $i != 17 # 1/2 MB should be enough
  5157. do
  5158. i=`expr $i + 1`
  5159. teststring=$teststring$teststring
  5160. done
  5161. teststring=
  5162. # Add a significant safety factor because C++ compilers can tack on massive
  5163. # amounts of additional arguments before passing them to the linker.
  5164. # It appears as though 1/2 is a usable value.
  5165. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5166. ;;
  5167. esac
  5168. fi
  5169. if test -n $lt_cv_sys_max_cmd_len ; then
  5170. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5171. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5172. else
  5173. echo "$as_me:$LINENO: result: none" >&5
  5174. echo "${ECHO_T}none" >&6
  5175. fi
  5176. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5177. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5178. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5179. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5180. echo $ECHO_N "(cached) $ECHO_C" >&6
  5181. else
  5182. # These are sane defaults that work on at least a few old systems.
  5183. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5184. # Character class describing NM global symbol codes.
  5185. symcode='[BCDEGRST]'
  5186. # Regexp to match symbols that can be accessed directly from C.
  5187. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5188. # Transform an extracted symbol line into a proper C declaration
  5189. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5190. # Transform an extracted symbol line into symbol name and symbol address
  5191. 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'"
  5192. # Define system-specific variables.
  5193. case $host_os in
  5194. aix*)
  5195. symcode='[BCDT]'
  5196. ;;
  5197. cygwin* | mingw* | pw32*)
  5198. symcode='[ABCDGISTW]'
  5199. ;;
  5200. hpux*) # Its linker distinguishes data from code symbols
  5201. if test "$host_cpu" = ia64; then
  5202. symcode='[ABCDEGRST]'
  5203. fi
  5204. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5205. 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'"
  5206. ;;
  5207. linux*)
  5208. if test "$host_cpu" = ia64; then
  5209. symcode='[ABCDGIRSTW]'
  5210. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5211. 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'"
  5212. fi
  5213. ;;
  5214. irix* | nonstopux*)
  5215. symcode='[BCDEGRST]'
  5216. ;;
  5217. osf*)
  5218. symcode='[BCDEGQRST]'
  5219. ;;
  5220. solaris*)
  5221. symcode='[BDRT]'
  5222. ;;
  5223. sco3.2v5*)
  5224. symcode='[DT]'
  5225. ;;
  5226. sysv4.2uw2*)
  5227. symcode='[DT]'
  5228. ;;
  5229. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5230. symcode='[ABDT]'
  5231. ;;
  5232. sysv4)
  5233. symcode='[DFNSTU]'
  5234. ;;
  5235. esac
  5236. # Handle CRLF in mingw tool chain
  5237. opt_cr=
  5238. case $build_os in
  5239. mingw*)
  5240. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5241. ;;
  5242. esac
  5243. # If we're using GNU nm, then use its standard symbol codes.
  5244. case `$NM -V 2>&1` in
  5245. *GNU* | *'with BFD'*)
  5246. symcode='[ABCDGIRSTW]' ;;
  5247. esac
  5248. # Try without a prefix undercore, then with it.
  5249. for ac_symprfx in "" "_"; do
  5250. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5251. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5252. # Write the raw and C identifiers.
  5253. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5254. # Check to see that the pipe works correctly.
  5255. pipe_works=no
  5256. rm -f conftest*
  5257. cat > conftest.$ac_ext <<EOF
  5258. #ifdef __cplusplus
  5259. extern "C" {
  5260. #endif
  5261. char nm_test_var;
  5262. void nm_test_func(){}
  5263. #ifdef __cplusplus
  5264. }
  5265. #endif
  5266. int main(){nm_test_var='a';nm_test_func();return(0);}
  5267. EOF
  5268. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5269. (eval $ac_compile) 2>&5
  5270. ac_status=$?
  5271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5272. (exit $ac_status); }; then
  5273. # Now try to grab the symbols.
  5274. nlist=conftest.nm
  5275. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5276. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5277. ac_status=$?
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); } && test -s "$nlist"; then
  5280. # Try sorting and uniquifying the output.
  5281. if sort "$nlist" | uniq > "$nlist"T; then
  5282. mv -f "$nlist"T "$nlist"
  5283. else
  5284. rm -f "$nlist"T
  5285. fi
  5286. # Make sure that we snagged all the symbols we need.
  5287. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5288. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5289. cat <<EOF > conftest.$ac_ext
  5290. #ifdef __cplusplus
  5291. extern "C" {
  5292. #endif
  5293. EOF
  5294. # Now generate the symbol file.
  5295. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5296. cat <<EOF >> conftest.$ac_ext
  5297. #if defined (__STDC__) && __STDC__
  5298. # define lt_ptr_t void *
  5299. #else
  5300. # define lt_ptr_t char *
  5301. # define const
  5302. #endif
  5303. /* The mapping between symbol names and symbols. */
  5304. const struct {
  5305. const char *name;
  5306. lt_ptr_t address;
  5307. }
  5308. lt_preloaded_symbols[] =
  5309. {
  5310. EOF
  5311. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5312. cat <<\EOF >> conftest.$ac_ext
  5313. {0, (lt_ptr_t) 0}
  5314. };
  5315. #ifdef __cplusplus
  5316. }
  5317. #endif
  5318. EOF
  5319. # Now try linking the two files.
  5320. mv conftest.$ac_objext conftstm.$ac_objext
  5321. lt_save_LIBS="$LIBS"
  5322. lt_save_CFLAGS="$CFLAGS"
  5323. LIBS="conftstm.$ac_objext"
  5324. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5325. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5326. (eval $ac_link) 2>&5
  5327. ac_status=$?
  5328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5329. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5330. pipe_works=yes
  5331. fi
  5332. LIBS="$lt_save_LIBS"
  5333. CFLAGS="$lt_save_CFLAGS"
  5334. else
  5335. echo "cannot find nm_test_func in $nlist" >&5
  5336. fi
  5337. else
  5338. echo "cannot find nm_test_var in $nlist" >&5
  5339. fi
  5340. else
  5341. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5342. fi
  5343. else
  5344. echo "$progname: failed program was:" >&5
  5345. cat conftest.$ac_ext >&5
  5346. fi
  5347. rm -f conftest* conftst*
  5348. # Do not use the global_symbol_pipe unless it works.
  5349. if test "$pipe_works" = yes; then
  5350. break
  5351. else
  5352. lt_cv_sys_global_symbol_pipe=
  5353. fi
  5354. done
  5355. fi
  5356. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5357. lt_cv_sys_global_symbol_to_cdecl=
  5358. fi
  5359. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5360. echo "$as_me:$LINENO: result: failed" >&5
  5361. echo "${ECHO_T}failed" >&6
  5362. else
  5363. echo "$as_me:$LINENO: result: ok" >&5
  5364. echo "${ECHO_T}ok" >&6
  5365. fi
  5366. echo "$as_me:$LINENO: checking for objdir" >&5
  5367. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5368. if test "${lt_cv_objdir+set}" = set; then
  5369. echo $ECHO_N "(cached) $ECHO_C" >&6
  5370. else
  5371. rm -f .libs 2>/dev/null
  5372. mkdir .libs 2>/dev/null
  5373. if test -d .libs; then
  5374. lt_cv_objdir=.libs
  5375. else
  5376. # MS-DOS does not allow filenames that begin with a dot.
  5377. lt_cv_objdir=_libs
  5378. fi
  5379. rmdir .libs 2>/dev/null
  5380. fi
  5381. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5382. echo "${ECHO_T}$lt_cv_objdir" >&6
  5383. objdir=$lt_cv_objdir
  5384. case $host_os in
  5385. aix3*)
  5386. # AIX sometimes has problems with the GCC collect2 program. For some
  5387. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5388. # vanish in a puff of smoke.
  5389. if test "X${COLLECT_NAMES+set}" != Xset; then
  5390. COLLECT_NAMES=
  5391. export COLLECT_NAMES
  5392. fi
  5393. ;;
  5394. esac
  5395. # Sed substitution that helps us do robust quoting. It backslashifies
  5396. # metacharacters that are still active within double-quoted strings.
  5397. Xsed='sed -e 1s/^X//'
  5398. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5399. # Same as above, but do not quote variable references.
  5400. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5401. # Sed substitution to delay expansion of an escaped shell variable in a
  5402. # double_quote_subst'ed string.
  5403. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5404. # Sed substitution to avoid accidental globbing in evaled expressions
  5405. no_glob_subst='s/\*/\\\*/g'
  5406. # Constants:
  5407. rm="rm -f"
  5408. # Global variables:
  5409. default_ofile=libtool
  5410. can_build_shared=yes
  5411. # All known linkers require a `.a' archive for static linking (except MSVC,
  5412. # which needs '.lib').
  5413. libext=a
  5414. ltmain="$ac_aux_dir/ltmain.sh"
  5415. ofile="$default_ofile"
  5416. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5417. if test -n "$ac_tool_prefix"; then
  5418. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5419. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5420. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5421. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5422. if test "${ac_cv_prog_AR+set}" = set; then
  5423. echo $ECHO_N "(cached) $ECHO_C" >&6
  5424. else
  5425. if test -n "$AR"; then
  5426. ac_cv_prog_AR="$AR" # Let the user override the test.
  5427. else
  5428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5429. for as_dir in $PATH
  5430. do
  5431. IFS=$as_save_IFS
  5432. test -z "$as_dir" && as_dir=.
  5433. for ac_exec_ext in '' $ac_executable_extensions; do
  5434. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5435. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5436. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5437. break 2
  5438. fi
  5439. done
  5440. done
  5441. fi
  5442. fi
  5443. AR=$ac_cv_prog_AR
  5444. if test -n "$AR"; then
  5445. echo "$as_me:$LINENO: result: $AR" >&5
  5446. echo "${ECHO_T}$AR" >&6
  5447. else
  5448. echo "$as_me:$LINENO: result: no" >&5
  5449. echo "${ECHO_T}no" >&6
  5450. fi
  5451. fi
  5452. if test -z "$ac_cv_prog_AR"; then
  5453. ac_ct_AR=$AR
  5454. # Extract the first word of "ar", so it can be a program name with args.
  5455. set dummy ar; ac_word=$2
  5456. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5457. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5458. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5459. echo $ECHO_N "(cached) $ECHO_C" >&6
  5460. else
  5461. if test -n "$ac_ct_AR"; then
  5462. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5463. else
  5464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5465. for as_dir in $PATH
  5466. do
  5467. IFS=$as_save_IFS
  5468. test -z "$as_dir" && as_dir=.
  5469. for ac_exec_ext in '' $ac_executable_extensions; do
  5470. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5471. ac_cv_prog_ac_ct_AR="ar"
  5472. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5473. break 2
  5474. fi
  5475. done
  5476. done
  5477. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5478. fi
  5479. fi
  5480. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5481. if test -n "$ac_ct_AR"; then
  5482. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5483. echo "${ECHO_T}$ac_ct_AR" >&6
  5484. else
  5485. echo "$as_me:$LINENO: result: no" >&5
  5486. echo "${ECHO_T}no" >&6
  5487. fi
  5488. AR=$ac_ct_AR
  5489. else
  5490. AR="$ac_cv_prog_AR"
  5491. fi
  5492. if test -n "$ac_tool_prefix"; then
  5493. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5494. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5495. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5496. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5497. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5498. echo $ECHO_N "(cached) $ECHO_C" >&6
  5499. else
  5500. if test -n "$RANLIB"; then
  5501. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5502. else
  5503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5504. for as_dir in $PATH
  5505. do
  5506. IFS=$as_save_IFS
  5507. test -z "$as_dir" && as_dir=.
  5508. for ac_exec_ext in '' $ac_executable_extensions; do
  5509. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5510. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5511. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5512. break 2
  5513. fi
  5514. done
  5515. done
  5516. fi
  5517. fi
  5518. RANLIB=$ac_cv_prog_RANLIB
  5519. if test -n "$RANLIB"; then
  5520. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5521. echo "${ECHO_T}$RANLIB" >&6
  5522. else
  5523. echo "$as_me:$LINENO: result: no" >&5
  5524. echo "${ECHO_T}no" >&6
  5525. fi
  5526. fi
  5527. if test -z "$ac_cv_prog_RANLIB"; then
  5528. ac_ct_RANLIB=$RANLIB
  5529. # Extract the first word of "ranlib", so it can be a program name with args.
  5530. set dummy ranlib; ac_word=$2
  5531. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5532. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5533. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5534. echo $ECHO_N "(cached) $ECHO_C" >&6
  5535. else
  5536. if test -n "$ac_ct_RANLIB"; then
  5537. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5538. else
  5539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5540. for as_dir in $PATH
  5541. do
  5542. IFS=$as_save_IFS
  5543. test -z "$as_dir" && as_dir=.
  5544. for ac_exec_ext in '' $ac_executable_extensions; do
  5545. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5546. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5547. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5548. break 2
  5549. fi
  5550. done
  5551. done
  5552. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5553. fi
  5554. fi
  5555. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5556. if test -n "$ac_ct_RANLIB"; then
  5557. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5558. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5559. else
  5560. echo "$as_me:$LINENO: result: no" >&5
  5561. echo "${ECHO_T}no" >&6
  5562. fi
  5563. RANLIB=$ac_ct_RANLIB
  5564. else
  5565. RANLIB="$ac_cv_prog_RANLIB"
  5566. fi
  5567. if test -n "$ac_tool_prefix"; then
  5568. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5569. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5570. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5571. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5572. if test "${ac_cv_prog_STRIP+set}" = set; then
  5573. echo $ECHO_N "(cached) $ECHO_C" >&6
  5574. else
  5575. if test -n "$STRIP"; then
  5576. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5577. else
  5578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5579. for as_dir in $PATH
  5580. do
  5581. IFS=$as_save_IFS
  5582. test -z "$as_dir" && as_dir=.
  5583. for ac_exec_ext in '' $ac_executable_extensions; do
  5584. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5585. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5586. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5587. break 2
  5588. fi
  5589. done
  5590. done
  5591. fi
  5592. fi
  5593. STRIP=$ac_cv_prog_STRIP
  5594. if test -n "$STRIP"; then
  5595. echo "$as_me:$LINENO: result: $STRIP" >&5
  5596. echo "${ECHO_T}$STRIP" >&6
  5597. else
  5598. echo "$as_me:$LINENO: result: no" >&5
  5599. echo "${ECHO_T}no" >&6
  5600. fi
  5601. fi
  5602. if test -z "$ac_cv_prog_STRIP"; then
  5603. ac_ct_STRIP=$STRIP
  5604. # Extract the first word of "strip", so it can be a program name with args.
  5605. set dummy strip; ac_word=$2
  5606. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5607. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5608. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5609. echo $ECHO_N "(cached) $ECHO_C" >&6
  5610. else
  5611. if test -n "$ac_ct_STRIP"; then
  5612. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5613. else
  5614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5615. for as_dir in $PATH
  5616. do
  5617. IFS=$as_save_IFS
  5618. test -z "$as_dir" && as_dir=.
  5619. for ac_exec_ext in '' $ac_executable_extensions; do
  5620. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5621. ac_cv_prog_ac_ct_STRIP="strip"
  5622. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5623. break 2
  5624. fi
  5625. done
  5626. done
  5627. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5628. fi
  5629. fi
  5630. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5631. if test -n "$ac_ct_STRIP"; then
  5632. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5633. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5634. else
  5635. echo "$as_me:$LINENO: result: no" >&5
  5636. echo "${ECHO_T}no" >&6
  5637. fi
  5638. STRIP=$ac_ct_STRIP
  5639. else
  5640. STRIP="$ac_cv_prog_STRIP"
  5641. fi
  5642. old_CC="$CC"
  5643. old_CFLAGS="$CFLAGS"
  5644. # Set sane defaults for various variables
  5645. test -z "$AR" && AR=ar
  5646. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5647. test -z "$AS" && AS=as
  5648. test -z "$CC" && CC=cc
  5649. test -z "$LTCC" && LTCC=$CC
  5650. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5651. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5652. test -z "$LD" && LD=ld
  5653. test -z "$LN_S" && LN_S="ln -s"
  5654. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5655. test -z "$NM" && NM=nm
  5656. test -z "$SED" && SED=sed
  5657. test -z "$OBJDUMP" && OBJDUMP=objdump
  5658. test -z "$RANLIB" && RANLIB=:
  5659. test -z "$STRIP" && STRIP=:
  5660. test -z "$ac_objext" && ac_objext=o
  5661. # Determine commands to create old-style static archives.
  5662. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5663. old_postinstall_cmds='chmod 644 $oldlib'
  5664. old_postuninstall_cmds=
  5665. if test -n "$RANLIB"; then
  5666. case $host_os in
  5667. openbsd*)
  5668. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5669. ;;
  5670. *)
  5671. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5672. ;;
  5673. esac
  5674. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5675. fi
  5676. for cc_temp in $compiler""; do
  5677. case $cc_temp in
  5678. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5679. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5680. \-*) ;;
  5681. *) break;;
  5682. esac
  5683. done
  5684. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5685. # Only perform the check for file, if the check method requires it
  5686. case $deplibs_check_method in
  5687. file_magic*)
  5688. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5689. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5690. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5691. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5692. echo $ECHO_N "(cached) $ECHO_C" >&6
  5693. else
  5694. case $MAGIC_CMD in
  5695. [\\/*] | ?:[\\/]*)
  5696. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5697. ;;
  5698. *)
  5699. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5700. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5701. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5702. for ac_dir in $ac_dummy; do
  5703. IFS="$lt_save_ifs"
  5704. test -z "$ac_dir" && ac_dir=.
  5705. if test -f $ac_dir/${ac_tool_prefix}file; then
  5706. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5707. if test -n "$file_magic_test_file"; then
  5708. case $deplibs_check_method in
  5709. "file_magic "*)
  5710. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5711. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5712. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5713. $EGREP "$file_magic_regex" > /dev/null; then
  5714. :
  5715. else
  5716. cat <<EOF 1>&2
  5717. *** Warning: the command libtool uses to detect shared libraries,
  5718. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5719. *** The result is that libtool may fail to recognize shared libraries
  5720. *** as such. This will affect the creation of libtool libraries that
  5721. *** depend on shared libraries, but programs linked with such libtool
  5722. *** libraries will work regardless of this problem. Nevertheless, you
  5723. *** may want to report the problem to your system manager and/or to
  5724. *** [email protected]
  5725. EOF
  5726. fi ;;
  5727. esac
  5728. fi
  5729. break
  5730. fi
  5731. done
  5732. IFS="$lt_save_ifs"
  5733. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5734. ;;
  5735. esac
  5736. fi
  5737. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5738. if test -n "$MAGIC_CMD"; then
  5739. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5740. echo "${ECHO_T}$MAGIC_CMD" >&6
  5741. else
  5742. echo "$as_me:$LINENO: result: no" >&5
  5743. echo "${ECHO_T}no" >&6
  5744. fi
  5745. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5746. if test -n "$ac_tool_prefix"; then
  5747. echo "$as_me:$LINENO: checking for file" >&5
  5748. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5749. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5750. echo $ECHO_N "(cached) $ECHO_C" >&6
  5751. else
  5752. case $MAGIC_CMD in
  5753. [\\/*] | ?:[\\/]*)
  5754. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5755. ;;
  5756. *)
  5757. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5758. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5759. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5760. for ac_dir in $ac_dummy; do
  5761. IFS="$lt_save_ifs"
  5762. test -z "$ac_dir" && ac_dir=.
  5763. if test -f $ac_dir/file; then
  5764. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5765. if test -n "$file_magic_test_file"; then
  5766. case $deplibs_check_method in
  5767. "file_magic "*)
  5768. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5769. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5770. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5771. $EGREP "$file_magic_regex" > /dev/null; then
  5772. :
  5773. else
  5774. cat <<EOF 1>&2
  5775. *** Warning: the command libtool uses to detect shared libraries,
  5776. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5777. *** The result is that libtool may fail to recognize shared libraries
  5778. *** as such. This will affect the creation of libtool libraries that
  5779. *** depend on shared libraries, but programs linked with such libtool
  5780. *** libraries will work regardless of this problem. Nevertheless, you
  5781. *** may want to report the problem to your system manager and/or to
  5782. *** [email protected]
  5783. EOF
  5784. fi ;;
  5785. esac
  5786. fi
  5787. break
  5788. fi
  5789. done
  5790. IFS="$lt_save_ifs"
  5791. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5792. ;;
  5793. esac
  5794. fi
  5795. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5796. if test -n "$MAGIC_CMD"; then
  5797. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5798. echo "${ECHO_T}$MAGIC_CMD" >&6
  5799. else
  5800. echo "$as_me:$LINENO: result: no" >&5
  5801. echo "${ECHO_T}no" >&6
  5802. fi
  5803. else
  5804. MAGIC_CMD=:
  5805. fi
  5806. fi
  5807. fi
  5808. ;;
  5809. esac
  5810. enable_dlopen=no
  5811. enable_win32_dll=no
  5812. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5813. if test "${enable_libtool_lock+set}" = set; then
  5814. enableval="$enable_libtool_lock"
  5815. fi;
  5816. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5817. # Check whether --with-pic or --without-pic was given.
  5818. if test "${with_pic+set}" = set; then
  5819. withval="$with_pic"
  5820. pic_mode="$withval"
  5821. else
  5822. pic_mode=default
  5823. fi;
  5824. test -z "$pic_mode" && pic_mode=default
  5825. # Use C for the default configuration in the libtool script
  5826. tagname=
  5827. lt_save_CC="$CC"
  5828. ac_ext=c
  5829. ac_cpp='$CPP $CPPFLAGS'
  5830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5833. # Source file extension for C test sources.
  5834. ac_ext=c
  5835. # Object file extension for compiled C test sources.
  5836. objext=o
  5837. objext=$objext
  5838. # Code to be used in simple compile tests
  5839. lt_simple_compile_test_code="int some_variable = 0;\n"
  5840. # Code to be used in simple link tests
  5841. lt_simple_link_test_code='int main(){return(0);}\n'
  5842. # If no C compiler was specified, use CC.
  5843. LTCC=${LTCC-"$CC"}
  5844. # If no C compiler flags were specified, use CFLAGS.
  5845. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5846. # Allow CC to be a program name with arguments.
  5847. compiler=$CC
  5848. # save warnings/boilerplate of simple test code
  5849. ac_outfile=conftest.$ac_objext
  5850. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5851. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5852. _lt_compiler_boilerplate=`cat conftest.err`
  5853. $rm conftest*
  5854. ac_outfile=conftest.$ac_objext
  5855. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5856. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5857. _lt_linker_boilerplate=`cat conftest.err`
  5858. $rm conftest*
  5859. lt_prog_compiler_no_builtin_flag=
  5860. if test "$GCC" = yes; then
  5861. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5862. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5863. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5864. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5865. echo $ECHO_N "(cached) $ECHO_C" >&6
  5866. else
  5867. lt_cv_prog_compiler_rtti_exceptions=no
  5868. ac_outfile=conftest.$ac_objext
  5869. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5870. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5871. # Insert the option either (1) after the last *FLAGS variable, or
  5872. # (2) before a word containing "conftest.", or (3) at the end.
  5873. # Note that $ac_compile itself does not contain backslashes and begins
  5874. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5875. # The option is referenced via a variable to avoid confusing sed.
  5876. lt_compile=`echo "$ac_compile" | $SED \
  5877. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5878. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5879. -e 's:$: $lt_compiler_flag:'`
  5880. (eval echo "\"\$as_me:6507: $lt_compile\"" >&5)
  5881. (eval "$lt_compile" 2>conftest.err)
  5882. ac_status=$?
  5883. cat conftest.err >&5
  5884. echo "$as_me:6511: \$? = $ac_status" >&5
  5885. if (exit $ac_status) && test -s "$ac_outfile"; then
  5886. # The compiler can only warn and ignore the option if not recognized
  5887. # So say no if there are warnings other than the usual output.
  5888. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5889. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5890. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5891. lt_cv_prog_compiler_rtti_exceptions=yes
  5892. fi
  5893. fi
  5894. $rm conftest*
  5895. fi
  5896. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5897. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5898. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5899. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5900. else
  5901. :
  5902. fi
  5903. fi
  5904. lt_prog_compiler_wl=
  5905. lt_prog_compiler_pic=
  5906. lt_prog_compiler_static=
  5907. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5908. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5909. if test "$GCC" = yes; then
  5910. lt_prog_compiler_wl='-Wl,'
  5911. lt_prog_compiler_static='-static'
  5912. case $host_os in
  5913. aix*)
  5914. # All AIX code is PIC.
  5915. if test "$host_cpu" = ia64; then
  5916. # AIX 5 now supports IA64 processor
  5917. lt_prog_compiler_static='-Bstatic'
  5918. fi
  5919. ;;
  5920. amigaos*)
  5921. # FIXME: we need at least 68020 code to build shared libraries, but
  5922. # adding the `-m68020' flag to GCC prevents building anything better,
  5923. # like `-m68040'.
  5924. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5925. ;;
  5926. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5927. # PIC is the default for these OSes.
  5928. ;;
  5929. mingw* | pw32* | os2*)
  5930. # This hack is so that the source file can tell whether it is being
  5931. # built for inclusion in a dll (and should export symbols for example).
  5932. lt_prog_compiler_pic='-DDLL_EXPORT'
  5933. ;;
  5934. darwin* | rhapsody*)
  5935. # PIC is the default on this platform
  5936. # Common symbols not allowed in MH_DYLIB files
  5937. lt_prog_compiler_pic='-fno-common'
  5938. ;;
  5939. interix3*)
  5940. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5941. # Instead, we relocate shared libraries at runtime.
  5942. ;;
  5943. msdosdjgpp*)
  5944. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5945. # on systems that don't support them.
  5946. lt_prog_compiler_can_build_shared=no
  5947. enable_shared=no
  5948. ;;
  5949. sysv4*MP*)
  5950. if test -d /usr/nec; then
  5951. lt_prog_compiler_pic=-Kconform_pic
  5952. fi
  5953. ;;
  5954. hpux*)
  5955. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5956. # not for PA HP-UX.
  5957. case $host_cpu in
  5958. hppa*64*|ia64*)
  5959. # +Z the default
  5960. ;;
  5961. *)
  5962. lt_prog_compiler_pic='-fPIC'
  5963. ;;
  5964. esac
  5965. ;;
  5966. *)
  5967. lt_prog_compiler_pic='-fPIC'
  5968. ;;
  5969. esac
  5970. else
  5971. # PORTME Check for flag to pass linker flags through the system compiler.
  5972. case $host_os in
  5973. aix*)
  5974. lt_prog_compiler_wl='-Wl,'
  5975. if test "$host_cpu" = ia64; then
  5976. # AIX 5 now supports IA64 processor
  5977. lt_prog_compiler_static='-Bstatic'
  5978. else
  5979. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5980. fi
  5981. ;;
  5982. darwin*)
  5983. # PIC is the default on this platform
  5984. # Common symbols not allowed in MH_DYLIB files
  5985. case $cc_basename in
  5986. xlc*)
  5987. lt_prog_compiler_pic='-qnocommon'
  5988. lt_prog_compiler_wl='-Wl,'
  5989. ;;
  5990. esac
  5991. ;;
  5992. mingw* | pw32* | os2*)
  5993. # This hack is so that the source file can tell whether it is being
  5994. # built for inclusion in a dll (and should export symbols for example).
  5995. lt_prog_compiler_pic='-DDLL_EXPORT'
  5996. ;;
  5997. hpux9* | hpux10* | hpux11*)
  5998. lt_prog_compiler_wl='-Wl,'
  5999. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6000. # not for PA HP-UX.
  6001. case $host_cpu in
  6002. hppa*64*|ia64*)
  6003. # +Z the default
  6004. ;;
  6005. *)
  6006. lt_prog_compiler_pic='+Z'
  6007. ;;
  6008. esac
  6009. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6010. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6011. ;;
  6012. irix5* | irix6* | nonstopux*)
  6013. lt_prog_compiler_wl='-Wl,'
  6014. # PIC (with -KPIC) is the default.
  6015. lt_prog_compiler_static='-non_shared'
  6016. ;;
  6017. newsos6)
  6018. lt_prog_compiler_pic='-KPIC'
  6019. lt_prog_compiler_static='-Bstatic'
  6020. ;;
  6021. linux*)
  6022. case $cc_basename in
  6023. icc* | ecc*)
  6024. lt_prog_compiler_wl='-Wl,'
  6025. lt_prog_compiler_pic='-KPIC'
  6026. lt_prog_compiler_static='-static'
  6027. ;;
  6028. pgcc* | pgf77* | pgf90* | pgf95*)
  6029. # Portland Group compilers (*not* the Pentium gcc compiler,
  6030. # which looks to be a dead project)
  6031. lt_prog_compiler_wl='-Wl,'
  6032. lt_prog_compiler_pic='-fpic'
  6033. lt_prog_compiler_static='-Bstatic'
  6034. ;;
  6035. ccc*)
  6036. lt_prog_compiler_wl='-Wl,'
  6037. # All Alpha code is PIC.
  6038. lt_prog_compiler_static='-non_shared'
  6039. ;;
  6040. esac
  6041. ;;
  6042. osf3* | osf4* | osf5*)
  6043. lt_prog_compiler_wl='-Wl,'
  6044. # All OSF/1 code is PIC.
  6045. lt_prog_compiler_static='-non_shared'
  6046. ;;
  6047. solaris*)
  6048. lt_prog_compiler_pic='-KPIC'
  6049. lt_prog_compiler_static='-Bstatic'
  6050. case $cc_basename in
  6051. f77* | f90* | f95*)
  6052. lt_prog_compiler_wl='-Qoption ld ';;
  6053. *)
  6054. lt_prog_compiler_wl='-Wl,';;
  6055. esac
  6056. ;;
  6057. sunos4*)
  6058. lt_prog_compiler_wl='-Qoption ld '
  6059. lt_prog_compiler_pic='-PIC'
  6060. lt_prog_compiler_static='-Bstatic'
  6061. ;;
  6062. sysv4 | sysv4.2uw2* | sysv4.3*)
  6063. lt_prog_compiler_wl='-Wl,'
  6064. lt_prog_compiler_pic='-KPIC'
  6065. lt_prog_compiler_static='-Bstatic'
  6066. ;;
  6067. sysv4*MP*)
  6068. if test -d /usr/nec ;then
  6069. lt_prog_compiler_pic='-Kconform_pic'
  6070. lt_prog_compiler_static='-Bstatic'
  6071. fi
  6072. ;;
  6073. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6074. lt_prog_compiler_wl='-Wl,'
  6075. lt_prog_compiler_pic='-KPIC'
  6076. lt_prog_compiler_static='-Bstatic'
  6077. ;;
  6078. unicos*)
  6079. lt_prog_compiler_wl='-Wl,'
  6080. lt_prog_compiler_can_build_shared=no
  6081. ;;
  6082. uts4*)
  6083. lt_prog_compiler_pic='-pic'
  6084. lt_prog_compiler_static='-Bstatic'
  6085. ;;
  6086. *)
  6087. lt_prog_compiler_can_build_shared=no
  6088. ;;
  6089. esac
  6090. fi
  6091. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6092. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6093. #
  6094. # Check to make sure the PIC flag actually works.
  6095. #
  6096. if test -n "$lt_prog_compiler_pic"; then
  6097. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6098. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6099. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6100. echo $ECHO_N "(cached) $ECHO_C" >&6
  6101. else
  6102. lt_prog_compiler_pic_works=no
  6103. ac_outfile=conftest.$ac_objext
  6104. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6105. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6106. # Insert the option either (1) after the last *FLAGS variable, or
  6107. # (2) before a word containing "conftest.", or (3) at the end.
  6108. # Note that $ac_compile itself does not contain backslashes and begins
  6109. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6110. # The option is referenced via a variable to avoid confusing sed.
  6111. lt_compile=`echo "$ac_compile" | $SED \
  6112. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6113. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6114. -e 's:$: $lt_compiler_flag:'`
  6115. (eval echo "\"\$as_me:6775: $lt_compile\"" >&5)
  6116. (eval "$lt_compile" 2>conftest.err)
  6117. ac_status=$?
  6118. cat conftest.err >&5
  6119. echo "$as_me:6779: \$? = $ac_status" >&5
  6120. if (exit $ac_status) && test -s "$ac_outfile"; then
  6121. # The compiler can only warn and ignore the option if not recognized
  6122. # So say no if there are warnings other than the usual output.
  6123. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6124. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6125. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6126. lt_prog_compiler_pic_works=yes
  6127. fi
  6128. fi
  6129. $rm conftest*
  6130. fi
  6131. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6132. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6133. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6134. case $lt_prog_compiler_pic in
  6135. "" | " "*) ;;
  6136. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6137. esac
  6138. else
  6139. lt_prog_compiler_pic=
  6140. lt_prog_compiler_can_build_shared=no
  6141. fi
  6142. fi
  6143. case $host_os in
  6144. # For platforms which do not support PIC, -DPIC is meaningless:
  6145. *djgpp*)
  6146. lt_prog_compiler_pic=
  6147. ;;
  6148. *)
  6149. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6150. ;;
  6151. esac
  6152. #
  6153. # Check to make sure the static flag actually works.
  6154. #
  6155. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6156. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6157. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6158. if test "${lt_prog_compiler_static_works+set}" = set; then
  6159. echo $ECHO_N "(cached) $ECHO_C" >&6
  6160. else
  6161. lt_prog_compiler_static_works=no
  6162. save_LDFLAGS="$LDFLAGS"
  6163. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6164. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6165. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6166. # The linker can only warn and ignore the option if not recognized
  6167. # So say no if there are warnings
  6168. if test -s conftest.err; then
  6169. # Append any errors to the config.log.
  6170. cat conftest.err 1>&5
  6171. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6172. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6173. if diff conftest.exp conftest.er2 >/dev/null; then
  6174. lt_prog_compiler_static_works=yes
  6175. fi
  6176. else
  6177. lt_prog_compiler_static_works=yes
  6178. fi
  6179. fi
  6180. $rm conftest*
  6181. LDFLAGS="$save_LDFLAGS"
  6182. fi
  6183. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6184. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6185. if test x"$lt_prog_compiler_static_works" = xyes; then
  6186. :
  6187. else
  6188. lt_prog_compiler_static=
  6189. fi
  6190. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6191. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6192. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6193. echo $ECHO_N "(cached) $ECHO_C" >&6
  6194. else
  6195. lt_cv_prog_compiler_c_o=no
  6196. $rm -r conftest 2>/dev/null
  6197. mkdir conftest
  6198. cd conftest
  6199. mkdir out
  6200. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6201. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6202. # Insert the option either (1) after the last *FLAGS variable, or
  6203. # (2) before a word containing "conftest.", or (3) at the end.
  6204. # Note that $ac_compile itself does not contain backslashes and begins
  6205. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6206. lt_compile=`echo "$ac_compile" | $SED \
  6207. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6208. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6209. -e 's:$: $lt_compiler_flag:'`
  6210. (eval echo "\"\$as_me:6879: $lt_compile\"" >&5)
  6211. (eval "$lt_compile" 2>out/conftest.err)
  6212. ac_status=$?
  6213. cat out/conftest.err >&5
  6214. echo "$as_me:6883: \$? = $ac_status" >&5
  6215. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6216. then
  6217. # The compiler can only warn and ignore the option if not recognized
  6218. # So say no if there are warnings
  6219. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6220. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6221. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6222. lt_cv_prog_compiler_c_o=yes
  6223. fi
  6224. fi
  6225. chmod u+w . 2>&5
  6226. $rm conftest*
  6227. # SGI C++ compiler will create directory out/ii_files/ for
  6228. # template instantiation
  6229. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6230. $rm out/* && rmdir out
  6231. cd ..
  6232. rmdir conftest
  6233. $rm conftest*
  6234. fi
  6235. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6236. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6237. hard_links="nottested"
  6238. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6239. # do not overwrite the value of need_locks provided by the user
  6240. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6241. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6242. hard_links=yes
  6243. $rm conftest*
  6244. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6245. touch conftest.a
  6246. ln conftest.a conftest.b 2>&5 || hard_links=no
  6247. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6248. echo "$as_me:$LINENO: result: $hard_links" >&5
  6249. echo "${ECHO_T}$hard_links" >&6
  6250. if test "$hard_links" = no; then
  6251. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6252. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6253. need_locks=warn
  6254. fi
  6255. else
  6256. need_locks=no
  6257. fi
  6258. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6259. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6260. runpath_var=
  6261. allow_undefined_flag=
  6262. enable_shared_with_static_runtimes=no
  6263. archive_cmds=
  6264. archive_expsym_cmds=
  6265. old_archive_From_new_cmds=
  6266. old_archive_from_expsyms_cmds=
  6267. export_dynamic_flag_spec=
  6268. whole_archive_flag_spec=
  6269. thread_safe_flag_spec=
  6270. hardcode_libdir_flag_spec=
  6271. hardcode_libdir_flag_spec_ld=
  6272. hardcode_libdir_separator=
  6273. hardcode_direct=no
  6274. hardcode_minus_L=no
  6275. hardcode_shlibpath_var=unsupported
  6276. link_all_deplibs=unknown
  6277. hardcode_automatic=no
  6278. module_cmds=
  6279. module_expsym_cmds=
  6280. always_export_symbols=no
  6281. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6282. # include_expsyms should be a list of space-separated symbols to be *always*
  6283. # included in the symbol list
  6284. include_expsyms=
  6285. # exclude_expsyms can be an extended regexp of symbols to exclude
  6286. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6287. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6288. # as well as any symbol that contains `d'.
  6289. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6290. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6291. # platforms (ab)use it in PIC code, but their linkers get confused if
  6292. # the symbol is explicitly referenced. Since portable code cannot
  6293. # rely on this symbol name, it's probably fine to never include it in
  6294. # preloaded symbol tables.
  6295. extract_expsyms_cmds=
  6296. # Just being paranoid about ensuring that cc_basename is set.
  6297. for cc_temp in $compiler""; do
  6298. case $cc_temp in
  6299. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6300. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6301. \-*) ;;
  6302. *) break;;
  6303. esac
  6304. done
  6305. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6306. case $host_os in
  6307. cygwin* | mingw* | pw32*)
  6308. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6309. # When not using gcc, we currently assume that we are using
  6310. # Microsoft Visual C++.
  6311. if test "$GCC" != yes; then
  6312. with_gnu_ld=no
  6313. fi
  6314. ;;
  6315. interix*)
  6316. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6317. with_gnu_ld=yes
  6318. ;;
  6319. openbsd*)
  6320. with_gnu_ld=no
  6321. ;;
  6322. esac
  6323. ld_shlibs=yes
  6324. if test "$with_gnu_ld" = yes; then
  6325. # If archive_cmds runs LD, not CC, wlarc should be empty
  6326. wlarc='${wl}'
  6327. # Set some defaults for GNU ld with shared library support. These
  6328. # are reset later if shared libraries are not supported. Putting them
  6329. # here allows them to be overridden if necessary.
  6330. runpath_var=LD_RUN_PATH
  6331. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6332. export_dynamic_flag_spec='${wl}--export-dynamic'
  6333. # ancient GNU ld didn't support --whole-archive et. al.
  6334. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6335. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6336. else
  6337. whole_archive_flag_spec=
  6338. fi
  6339. supports_anon_versioning=no
  6340. case `$LD -v 2>/dev/null` in
  6341. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6342. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6343. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6344. *\ 2.11.*) ;; # other 2.11 versions
  6345. *) supports_anon_versioning=yes ;;
  6346. esac
  6347. # See if GNU ld supports shared libraries.
  6348. case $host_os in
  6349. aix3* | aix4* | aix5*)
  6350. # On AIX/PPC, the GNU linker is very broken
  6351. if test "$host_cpu" != ia64; then
  6352. ld_shlibs=no
  6353. cat <<EOF 1>&2
  6354. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6355. *** to be unable to reliably create shared libraries on AIX.
  6356. *** Therefore, libtool is disabling shared libraries support. If you
  6357. *** really care for shared libraries, you may want to modify your PATH
  6358. *** so that a non-GNU linker is found, and then restart.
  6359. EOF
  6360. fi
  6361. ;;
  6362. amigaos*)
  6363. 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)'
  6364. hardcode_libdir_flag_spec='-L$libdir'
  6365. hardcode_minus_L=yes
  6366. # Samuel A. Falvo II <[email protected]> reports
  6367. # that the semantics of dynamic libraries on AmigaOS, at least up
  6368. # to version 4, is to share data among multiple programs linked
  6369. # with the same dynamic library. Since this doesn't match the
  6370. # behavior of shared libraries on other platforms, we can't use
  6371. # them.
  6372. ld_shlibs=no
  6373. ;;
  6374. beos*)
  6375. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6376. allow_undefined_flag=unsupported
  6377. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6378. # support --undefined. This deserves some investigation. FIXME
  6379. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6380. else
  6381. ld_shlibs=no
  6382. fi
  6383. ;;
  6384. cygwin* | mingw* | pw32*)
  6385. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6386. # as there is no search path for DLLs.
  6387. hardcode_libdir_flag_spec='-L$libdir'
  6388. allow_undefined_flag=unsupported
  6389. always_export_symbols=no
  6390. enable_shared_with_static_runtimes=yes
  6391. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6392. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6393. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6394. # If the export-symbols file already is a .def file (1st line
  6395. # is EXPORTS), use it as is; otherwise, prepend...
  6396. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6397. cp $export_symbols $output_objdir/$soname.def;
  6398. else
  6399. echo EXPORTS > $output_objdir/$soname.def;
  6400. cat $export_symbols >> $output_objdir/$soname.def;
  6401. fi~
  6402. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6403. else
  6404. ld_shlibs=no
  6405. fi
  6406. ;;
  6407. interix3*)
  6408. hardcode_direct=no
  6409. hardcode_shlibpath_var=no
  6410. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6411. export_dynamic_flag_spec='${wl}-E'
  6412. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6413. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6414. # default) and relocated if they conflict, which is a slow very memory
  6415. # consuming and fragmenting process. To avoid this, we pick a random,
  6416. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6417. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6418. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6419. 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'
  6420. ;;
  6421. linux*)
  6422. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6423. tmp_addflag=
  6424. case $cc_basename,$host_cpu in
  6425. pgcc*) # Portland Group C compiler
  6426. 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'
  6427. tmp_addflag=' $pic_flag'
  6428. ;;
  6429. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6430. 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'
  6431. tmp_addflag=' $pic_flag -Mnomain' ;;
  6432. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6433. tmp_addflag=' -i_dynamic' ;;
  6434. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6435. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6436. ifc* | ifort*) # Intel Fortran compiler
  6437. tmp_addflag=' -nofor_main' ;;
  6438. esac
  6439. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6440. if test $supports_anon_versioning = yes; then
  6441. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6442. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6443. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6444. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6445. fi
  6446. else
  6447. ld_shlibs=no
  6448. fi
  6449. ;;
  6450. netbsd*)
  6451. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6452. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6453. wlarc=
  6454. else
  6455. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6456. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6457. fi
  6458. ;;
  6459. solaris*)
  6460. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6461. ld_shlibs=no
  6462. cat <<EOF 1>&2
  6463. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6464. *** create shared libraries on Solaris systems. Therefore, libtool
  6465. *** is disabling shared libraries support. We urge you to upgrade GNU
  6466. *** binutils to release 2.9.1 or newer. Another option is to modify
  6467. *** your PATH or compiler configuration so that the native linker is
  6468. *** used, and then restart.
  6469. EOF
  6470. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6471. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6472. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6473. else
  6474. ld_shlibs=no
  6475. fi
  6476. ;;
  6477. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6478. case `$LD -v 2>&1` in
  6479. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6480. ld_shlibs=no
  6481. cat <<_LT_EOF 1>&2
  6482. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6483. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6484. *** is disabling shared libraries support. We urge you to upgrade GNU
  6485. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6486. *** your PATH or compiler configuration so that the native linker is
  6487. *** used, and then restart.
  6488. _LT_EOF
  6489. ;;
  6490. *)
  6491. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6492. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6493. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6494. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6495. else
  6496. ld_shlibs=no
  6497. fi
  6498. ;;
  6499. esac
  6500. ;;
  6501. sunos4*)
  6502. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6503. wlarc=
  6504. hardcode_direct=yes
  6505. hardcode_shlibpath_var=no
  6506. ;;
  6507. *)
  6508. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6509. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6510. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6511. else
  6512. ld_shlibs=no
  6513. fi
  6514. ;;
  6515. esac
  6516. if test "$ld_shlibs" = no; then
  6517. runpath_var=
  6518. hardcode_libdir_flag_spec=
  6519. export_dynamic_flag_spec=
  6520. whole_archive_flag_spec=
  6521. fi
  6522. else
  6523. # PORTME fill in a description of your system's linker (not GNU ld)
  6524. case $host_os in
  6525. aix3*)
  6526. allow_undefined_flag=unsupported
  6527. always_export_symbols=yes
  6528. 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'
  6529. # Note: this linker hardcodes the directories in LIBPATH if there
  6530. # are no directories specified by -L.
  6531. hardcode_minus_L=yes
  6532. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6533. # Neither direct hardcoding nor static linking is supported with a
  6534. # broken collect2.
  6535. hardcode_direct=unsupported
  6536. fi
  6537. ;;
  6538. aix4* | aix5*)
  6539. if test "$host_cpu" = ia64; then
  6540. # On IA64, the linker does run time linking by default, so we don't
  6541. # have to do anything special.
  6542. aix_use_runtimelinking=no
  6543. exp_sym_flag='-Bexport'
  6544. no_entry_flag=""
  6545. else
  6546. # If we're using GNU nm, then we don't want the "-C" option.
  6547. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6548. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6549. 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'
  6550. else
  6551. 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'
  6552. fi
  6553. aix_use_runtimelinking=no
  6554. # Test if we are trying to use run time linking or normal
  6555. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6556. # need to do runtime linking.
  6557. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6558. for ld_flag in $LDFLAGS; do
  6559. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6560. aix_use_runtimelinking=yes
  6561. break
  6562. fi
  6563. done
  6564. ;;
  6565. esac
  6566. exp_sym_flag='-bexport'
  6567. no_entry_flag='-bnoentry'
  6568. fi
  6569. # When large executables or shared objects are built, AIX ld can
  6570. # have problems creating the table of contents. If linking a library
  6571. # or program results in "error TOC overflow" add -mminimal-toc to
  6572. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6573. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6574. archive_cmds=''
  6575. hardcode_direct=yes
  6576. hardcode_libdir_separator=':'
  6577. link_all_deplibs=yes
  6578. if test "$GCC" = yes; then
  6579. case $host_os in aix4.[012]|aix4.[012].*)
  6580. # We only want to do this on AIX 4.2 and lower, the check
  6581. # below for broken collect2 doesn't work under 4.3+
  6582. collect2name=`${CC} -print-prog-name=collect2`
  6583. if test -f "$collect2name" && \
  6584. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6585. then
  6586. # We have reworked collect2
  6587. hardcode_direct=yes
  6588. else
  6589. # We have old collect2
  6590. hardcode_direct=unsupported
  6591. # It fails to find uninstalled libraries when the uninstalled
  6592. # path is not listed in the libpath. Setting hardcode_minus_L
  6593. # to unsupported forces relinking
  6594. hardcode_minus_L=yes
  6595. hardcode_libdir_flag_spec='-L$libdir'
  6596. hardcode_libdir_separator=
  6597. fi
  6598. ;;
  6599. esac
  6600. shared_flag='-shared'
  6601. if test "$aix_use_runtimelinking" = yes; then
  6602. shared_flag="$shared_flag "'${wl}-G'
  6603. fi
  6604. else
  6605. # not using gcc
  6606. if test "$host_cpu" = ia64; then
  6607. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6608. # chokes on -Wl,-G. The following line is correct:
  6609. shared_flag='-G'
  6610. else
  6611. if test "$aix_use_runtimelinking" = yes; then
  6612. shared_flag='${wl}-G'
  6613. else
  6614. shared_flag='${wl}-bM:SRE'
  6615. fi
  6616. fi
  6617. fi
  6618. # It seems that -bexpall does not export symbols beginning with
  6619. # underscore (_), so it is better to generate a list of symbols to export.
  6620. always_export_symbols=yes
  6621. if test "$aix_use_runtimelinking" = yes; then
  6622. # Warning - without using the other runtime loading flags (-brtl),
  6623. # -berok will link without error, but may produce a broken library.
  6624. allow_undefined_flag='-berok'
  6625. # Determine the default libpath from the value encoded in an empty executable.
  6626. cat >conftest.$ac_ext <<_ACEOF
  6627. /* confdefs.h. */
  6628. _ACEOF
  6629. cat confdefs.h >>conftest.$ac_ext
  6630. cat >>conftest.$ac_ext <<_ACEOF
  6631. /* end confdefs.h. */
  6632. int
  6633. main ()
  6634. {
  6635. ;
  6636. return 0;
  6637. }
  6638. _ACEOF
  6639. rm -f conftest.$ac_objext conftest$ac_exeext
  6640. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6641. (eval $ac_link) 2>conftest.er1
  6642. ac_status=$?
  6643. grep -v '^ *+' conftest.er1 >conftest.err
  6644. rm -f conftest.er1
  6645. cat conftest.err >&5
  6646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6647. (exit $ac_status); } &&
  6648. { ac_try='test -z "$ac_c_werror_flag"
  6649. || test ! -s conftest.err'
  6650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6651. (eval $ac_try) 2>&5
  6652. ac_status=$?
  6653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6654. (exit $ac_status); }; } &&
  6655. { ac_try='test -s conftest$ac_exeext'
  6656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6657. (eval $ac_try) 2>&5
  6658. ac_status=$?
  6659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6660. (exit $ac_status); }; }; then
  6661. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6662. }'`
  6663. # Check for a 64-bit object if we didn't find anything.
  6664. 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; }
  6665. }'`; fi
  6666. else
  6667. echo "$as_me: failed program was:" >&5
  6668. sed 's/^/| /' conftest.$ac_ext >&5
  6669. fi
  6670. rm -f conftest.err conftest.$ac_objext \
  6671. conftest$ac_exeext conftest.$ac_ext
  6672. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6673. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6674. 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"
  6675. else
  6676. if test "$host_cpu" = ia64; then
  6677. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6678. allow_undefined_flag="-z nodefs"
  6679. 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"
  6680. else
  6681. # Determine the default libpath from the value encoded in an empty executable.
  6682. cat >conftest.$ac_ext <<_ACEOF
  6683. /* confdefs.h. */
  6684. _ACEOF
  6685. cat confdefs.h >>conftest.$ac_ext
  6686. cat >>conftest.$ac_ext <<_ACEOF
  6687. /* end confdefs.h. */
  6688. int
  6689. main ()
  6690. {
  6691. ;
  6692. return 0;
  6693. }
  6694. _ACEOF
  6695. rm -f conftest.$ac_objext conftest$ac_exeext
  6696. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6697. (eval $ac_link) 2>conftest.er1
  6698. ac_status=$?
  6699. grep -v '^ *+' conftest.er1 >conftest.err
  6700. rm -f conftest.er1
  6701. cat conftest.err >&5
  6702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6703. (exit $ac_status); } &&
  6704. { ac_try='test -z "$ac_c_werror_flag"
  6705. || test ! -s conftest.err'
  6706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6707. (eval $ac_try) 2>&5
  6708. ac_status=$?
  6709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6710. (exit $ac_status); }; } &&
  6711. { ac_try='test -s conftest$ac_exeext'
  6712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6713. (eval $ac_try) 2>&5
  6714. ac_status=$?
  6715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6716. (exit $ac_status); }; }; then
  6717. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6718. }'`
  6719. # Check for a 64-bit object if we didn't find anything.
  6720. 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; }
  6721. }'`; fi
  6722. else
  6723. echo "$as_me: failed program was:" >&5
  6724. sed 's/^/| /' conftest.$ac_ext >&5
  6725. fi
  6726. rm -f conftest.err conftest.$ac_objext \
  6727. conftest$ac_exeext conftest.$ac_ext
  6728. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6729. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6730. # Warning - without using the other run time loading flags,
  6731. # -berok will link without error, but may produce a broken library.
  6732. no_undefined_flag=' ${wl}-bernotok'
  6733. allow_undefined_flag=' ${wl}-berok'
  6734. # Exported symbols can be pulled into shared objects from archives
  6735. whole_archive_flag_spec='$convenience'
  6736. archive_cmds_need_lc=yes
  6737. # This is similar to how AIX traditionally builds its shared libraries.
  6738. 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'
  6739. fi
  6740. fi
  6741. ;;
  6742. amigaos*)
  6743. 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)'
  6744. hardcode_libdir_flag_spec='-L$libdir'
  6745. hardcode_minus_L=yes
  6746. # see comment about different semantics on the GNU ld section
  6747. ld_shlibs=no
  6748. ;;
  6749. bsdi[45]*)
  6750. export_dynamic_flag_spec=-rdynamic
  6751. ;;
  6752. cygwin* | mingw* | pw32*)
  6753. # When not using gcc, we currently assume that we are using
  6754. # Microsoft Visual C++.
  6755. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6756. # no search path for DLLs.
  6757. hardcode_libdir_flag_spec=' '
  6758. allow_undefined_flag=unsupported
  6759. # Tell ltmain to make .lib files, not .a files.
  6760. libext=lib
  6761. # Tell ltmain to make .dll files, not .so files.
  6762. shrext_cmds=".dll"
  6763. # FIXME: Setting linknames here is a bad hack.
  6764. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6765. # The linker will automatically build a .lib file if we build a DLL.
  6766. old_archive_From_new_cmds='true'
  6767. # FIXME: Should let the user specify the lib program.
  6768. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6769. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6770. enable_shared_with_static_runtimes=yes
  6771. ;;
  6772. darwin* | rhapsody*)
  6773. case $host_os in
  6774. rhapsody* | darwin1.[012])
  6775. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6776. ;;
  6777. *) # Darwin 1.3 on
  6778. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6779. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6780. else
  6781. case ${MACOSX_DEPLOYMENT_TARGET} in
  6782. 10.[012])
  6783. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6784. ;;
  6785. 10.*)
  6786. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6787. ;;
  6788. esac
  6789. fi
  6790. ;;
  6791. esac
  6792. archive_cmds_need_lc=no
  6793. hardcode_direct=no
  6794. hardcode_automatic=yes
  6795. hardcode_shlibpath_var=unsupported
  6796. whole_archive_flag_spec=''
  6797. link_all_deplibs=yes
  6798. if test "$GCC" = yes ; then
  6799. output_verbose_link_cmd='echo'
  6800. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6801. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6802. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6803. 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}'
  6804. 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}'
  6805. else
  6806. case $cc_basename in
  6807. xlc*)
  6808. output_verbose_link_cmd='echo'
  6809. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6810. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6811. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6812. 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}'
  6813. 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}'
  6814. ;;
  6815. *)
  6816. ld_shlibs=no
  6817. ;;
  6818. esac
  6819. fi
  6820. ;;
  6821. dgux*)
  6822. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6823. hardcode_libdir_flag_spec='-L$libdir'
  6824. hardcode_shlibpath_var=no
  6825. ;;
  6826. freebsd1*)
  6827. ld_shlibs=no
  6828. ;;
  6829. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6830. # support. Future versions do this automatically, but an explicit c++rt0.o
  6831. # does not break anything, and helps significantly (at the cost of a little
  6832. # extra space).
  6833. freebsd2.2*)
  6834. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6835. hardcode_libdir_flag_spec='-R$libdir'
  6836. hardcode_direct=yes
  6837. hardcode_shlibpath_var=no
  6838. ;;
  6839. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6840. freebsd2*)
  6841. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6842. hardcode_direct=yes
  6843. hardcode_minus_L=yes
  6844. hardcode_shlibpath_var=no
  6845. ;;
  6846. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6847. freebsd* | kfreebsd*-gnu | dragonfly*)
  6848. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6849. hardcode_libdir_flag_spec='-R$libdir'
  6850. hardcode_direct=yes
  6851. hardcode_shlibpath_var=no
  6852. ;;
  6853. hpux9*)
  6854. if test "$GCC" = yes; then
  6855. 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'
  6856. else
  6857. 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'
  6858. fi
  6859. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6860. hardcode_libdir_separator=:
  6861. hardcode_direct=yes
  6862. # hardcode_minus_L: Not really in the search PATH,
  6863. # but as the default location of the library.
  6864. hardcode_minus_L=yes
  6865. export_dynamic_flag_spec='${wl}-E'
  6866. ;;
  6867. hpux10*)
  6868. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6869. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6870. else
  6871. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6872. fi
  6873. if test "$with_gnu_ld" = no; then
  6874. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6875. hardcode_libdir_separator=:
  6876. hardcode_direct=yes
  6877. export_dynamic_flag_spec='${wl}-E'
  6878. # hardcode_minus_L: Not really in the search PATH,
  6879. # but as the default location of the library.
  6880. hardcode_minus_L=yes
  6881. fi
  6882. ;;
  6883. hpux11*)
  6884. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6885. case $host_cpu in
  6886. hppa*64*)
  6887. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6888. ;;
  6889. ia64*)
  6890. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6891. ;;
  6892. *)
  6893. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6894. ;;
  6895. esac
  6896. else
  6897. case $host_cpu in
  6898. hppa*64*)
  6899. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6900. ;;
  6901. ia64*)
  6902. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6903. ;;
  6904. *)
  6905. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6906. ;;
  6907. esac
  6908. fi
  6909. if test "$with_gnu_ld" = no; then
  6910. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6911. hardcode_libdir_separator=:
  6912. case $host_cpu in
  6913. hppa*64*|ia64*)
  6914. hardcode_libdir_flag_spec_ld='+b $libdir'
  6915. hardcode_direct=no
  6916. hardcode_shlibpath_var=no
  6917. ;;
  6918. *)
  6919. hardcode_direct=yes
  6920. export_dynamic_flag_spec='${wl}-E'
  6921. # hardcode_minus_L: Not really in the search PATH,
  6922. # but as the default location of the library.
  6923. hardcode_minus_L=yes
  6924. ;;
  6925. esac
  6926. fi
  6927. ;;
  6928. irix5* | irix6* | nonstopux*)
  6929. if test "$GCC" = yes; then
  6930. 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'
  6931. else
  6932. 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'
  6933. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6934. fi
  6935. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6936. hardcode_libdir_separator=:
  6937. link_all_deplibs=yes
  6938. ;;
  6939. netbsd*)
  6940. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6941. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6942. else
  6943. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6944. fi
  6945. hardcode_libdir_flag_spec='-R$libdir'
  6946. hardcode_direct=yes
  6947. hardcode_shlibpath_var=no
  6948. ;;
  6949. newsos6)
  6950. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6951. hardcode_direct=yes
  6952. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6953. hardcode_libdir_separator=:
  6954. hardcode_shlibpath_var=no
  6955. ;;
  6956. openbsd*)
  6957. hardcode_direct=yes
  6958. hardcode_shlibpath_var=no
  6959. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6960. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6961. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6962. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6963. export_dynamic_flag_spec='${wl}-E'
  6964. else
  6965. case $host_os in
  6966. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6967. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6968. hardcode_libdir_flag_spec='-R$libdir'
  6969. ;;
  6970. *)
  6971. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6972. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6973. ;;
  6974. esac
  6975. fi
  6976. ;;
  6977. os2*)
  6978. hardcode_libdir_flag_spec='-L$libdir'
  6979. hardcode_minus_L=yes
  6980. allow_undefined_flag=unsupported
  6981. 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'
  6982. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6983. ;;
  6984. osf3*)
  6985. if test "$GCC" = yes; then
  6986. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6987. 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'
  6988. else
  6989. allow_undefined_flag=' -expect_unresolved \*'
  6990. 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'
  6991. fi
  6992. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6993. hardcode_libdir_separator=:
  6994. ;;
  6995. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6996. if test "$GCC" = yes; then
  6997. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6998. 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'
  6999. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7000. else
  7001. allow_undefined_flag=' -expect_unresolved \*'
  7002. 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'
  7003. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7004. $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'
  7005. # Both c and cxx compiler support -rpath directly
  7006. hardcode_libdir_flag_spec='-rpath $libdir'
  7007. fi
  7008. hardcode_libdir_separator=:
  7009. ;;
  7010. solaris*)
  7011. no_undefined_flag=' -z text'
  7012. if test "$GCC" = yes; then
  7013. wlarc='${wl}'
  7014. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7015. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7016. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7017. else
  7018. wlarc=''
  7019. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7020. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7021. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7022. fi
  7023. hardcode_libdir_flag_spec='-R$libdir'
  7024. hardcode_shlibpath_var=no
  7025. case $host_os in
  7026. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7027. *)
  7028. # The compiler driver will combine linker options so we
  7029. # cannot just pass the convience library names through
  7030. # without $wl, iff we do not link with $LD.
  7031. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7032. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7033. case $wlarc in
  7034. '')
  7035. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7036. *)
  7037. 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' ;;
  7038. esac ;;
  7039. esac
  7040. link_all_deplibs=yes
  7041. ;;
  7042. sunos4*)
  7043. if test "x$host_vendor" = xsequent; then
  7044. # Use $CC to link under sequent, because it throws in some extra .o
  7045. # files that make .init and .fini sections work.
  7046. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7047. else
  7048. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7049. fi
  7050. hardcode_libdir_flag_spec='-L$libdir'
  7051. hardcode_direct=yes
  7052. hardcode_minus_L=yes
  7053. hardcode_shlibpath_var=no
  7054. ;;
  7055. sysv4)
  7056. case $host_vendor in
  7057. sni)
  7058. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7059. hardcode_direct=yes # is this really true???
  7060. ;;
  7061. siemens)
  7062. ## LD is ld it makes a PLAMLIB
  7063. ## CC just makes a GrossModule.
  7064. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7065. reload_cmds='$CC -r -o $output$reload_objs'
  7066. hardcode_direct=no
  7067. ;;
  7068. motorola)
  7069. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7070. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7071. ;;
  7072. esac
  7073. runpath_var='LD_RUN_PATH'
  7074. hardcode_shlibpath_var=no
  7075. ;;
  7076. sysv4.3*)
  7077. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7078. hardcode_shlibpath_var=no
  7079. export_dynamic_flag_spec='-Bexport'
  7080. ;;
  7081. sysv4*MP*)
  7082. if test -d /usr/nec; then
  7083. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7084. hardcode_shlibpath_var=no
  7085. runpath_var=LD_RUN_PATH
  7086. hardcode_runpath_var=yes
  7087. ld_shlibs=yes
  7088. fi
  7089. ;;
  7090. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7091. no_undefined_flag='${wl}-z,text'
  7092. archive_cmds_need_lc=no
  7093. hardcode_shlibpath_var=no
  7094. runpath_var='LD_RUN_PATH'
  7095. if test "$GCC" = yes; then
  7096. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7097. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7098. else
  7099. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7100. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7101. fi
  7102. ;;
  7103. sysv5* | sco3.2v5* | sco5v6*)
  7104. # Note: We can NOT use -z defs as we might desire, because we do not
  7105. # link with -lc, and that would cause any symbols used from libc to
  7106. # always be unresolved, which means just about no library would
  7107. # ever link correctly. If we're not using GNU ld we use -z text
  7108. # though, which does catch some bad symbols but isn't as heavy-handed
  7109. # as -z defs.
  7110. no_undefined_flag='${wl}-z,text'
  7111. allow_undefined_flag='${wl}-z,nodefs'
  7112. archive_cmds_need_lc=no
  7113. hardcode_shlibpath_var=no
  7114. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7115. hardcode_libdir_separator=':'
  7116. link_all_deplibs=yes
  7117. export_dynamic_flag_spec='${wl}-Bexport'
  7118. runpath_var='LD_RUN_PATH'
  7119. if test "$GCC" = yes; then
  7120. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7121. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7122. else
  7123. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7124. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7125. fi
  7126. ;;
  7127. uts4*)
  7128. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7129. hardcode_libdir_flag_spec='-L$libdir'
  7130. hardcode_shlibpath_var=no
  7131. ;;
  7132. *)
  7133. ld_shlibs=no
  7134. ;;
  7135. esac
  7136. fi
  7137. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7138. echo "${ECHO_T}$ld_shlibs" >&6
  7139. test "$ld_shlibs" = no && can_build_shared=no
  7140. #
  7141. # Do we need to explicitly link libc?
  7142. #
  7143. case "x$archive_cmds_need_lc" in
  7144. x|xyes)
  7145. # Assume -lc should be added
  7146. archive_cmds_need_lc=yes
  7147. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7148. case $archive_cmds in
  7149. *'~'*)
  7150. # FIXME: we may have to deal with multi-command sequences.
  7151. ;;
  7152. '$CC '*)
  7153. # Test whether the compiler implicitly links with -lc since on some
  7154. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7155. # to ld, don't add -lc before -lgcc.
  7156. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7157. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7158. $rm conftest*
  7159. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7160. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7161. (eval $ac_compile) 2>&5
  7162. ac_status=$?
  7163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7164. (exit $ac_status); } 2>conftest.err; then
  7165. soname=conftest
  7166. lib=conftest
  7167. libobjs=conftest.$ac_objext
  7168. deplibs=
  7169. wl=$lt_prog_compiler_wl
  7170. pic_flag=$lt_prog_compiler_pic
  7171. compiler_flags=-v
  7172. linker_flags=-v
  7173. verstring=
  7174. output_objdir=.
  7175. libname=conftest
  7176. lt_save_allow_undefined_flag=$allow_undefined_flag
  7177. allow_undefined_flag=
  7178. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7179. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7180. ac_status=$?
  7181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7182. (exit $ac_status); }
  7183. then
  7184. archive_cmds_need_lc=no
  7185. else
  7186. archive_cmds_need_lc=yes
  7187. fi
  7188. allow_undefined_flag=$lt_save_allow_undefined_flag
  7189. else
  7190. cat conftest.err 1>&5
  7191. fi
  7192. $rm conftest*
  7193. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7194. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7195. ;;
  7196. esac
  7197. fi
  7198. ;;
  7199. esac
  7200. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7201. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7202. library_names_spec=
  7203. libname_spec='lib$name'
  7204. soname_spec=
  7205. shrext_cmds=".so"
  7206. postinstall_cmds=
  7207. postuninstall_cmds=
  7208. finish_cmds=
  7209. finish_eval=
  7210. shlibpath_var=
  7211. shlibpath_overrides_runpath=unknown
  7212. version_type=none
  7213. dynamic_linker="$host_os ld.so"
  7214. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7215. if test "$GCC" = yes; then
  7216. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7217. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7218. # if the path contains ";" then we assume it to be the separator
  7219. # otherwise default to the standard path separator (i.e. ":") - it is
  7220. # assumed that no part of a normal pathname contains ";" but that should
  7221. # okay in the real world where ";" in dirpaths is itself problematic.
  7222. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7223. else
  7224. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7225. fi
  7226. else
  7227. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7228. fi
  7229. need_lib_prefix=unknown
  7230. hardcode_into_libs=no
  7231. # when you set need_version to no, make sure it does not cause -set_version
  7232. # flags to be left without arguments
  7233. need_version=unknown
  7234. case $host_os in
  7235. aix3*)
  7236. version_type=linux
  7237. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7238. shlibpath_var=LIBPATH
  7239. # AIX 3 has no versioning support, so we append a major version to the name.
  7240. soname_spec='${libname}${release}${shared_ext}$major'
  7241. ;;
  7242. aix4* | aix5*)
  7243. version_type=linux
  7244. need_lib_prefix=no
  7245. need_version=no
  7246. hardcode_into_libs=yes
  7247. if test "$host_cpu" = ia64; then
  7248. # AIX 5 supports IA64
  7249. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7250. shlibpath_var=LD_LIBRARY_PATH
  7251. else
  7252. # With GCC up to 2.95.x, collect2 would create an import file
  7253. # for dependence libraries. The import file would start with
  7254. # the line `#! .'. This would cause the generated library to
  7255. # depend on `.', always an invalid library. This was fixed in
  7256. # development snapshots of GCC prior to 3.0.
  7257. case $host_os in
  7258. aix4 | aix4.[01] | aix4.[01].*)
  7259. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7260. echo ' yes '
  7261. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7262. :
  7263. else
  7264. can_build_shared=no
  7265. fi
  7266. ;;
  7267. esac
  7268. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7269. # soname into executable. Probably we can add versioning support to
  7270. # collect2, so additional links can be useful in future.
  7271. if test "$aix_use_runtimelinking" = yes; then
  7272. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7273. # instead of lib<name>.a to let people know that these are not
  7274. # typical AIX shared libraries.
  7275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7276. else
  7277. # We preserve .a as extension for shared libraries through AIX4.2
  7278. # and later when we are not doing run time linking.
  7279. library_names_spec='${libname}${release}.a $libname.a'
  7280. soname_spec='${libname}${release}${shared_ext}$major'
  7281. fi
  7282. shlibpath_var=LIBPATH
  7283. fi
  7284. ;;
  7285. amigaos*)
  7286. library_names_spec='$libname.ixlibrary $libname.a'
  7287. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7288. 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'
  7289. ;;
  7290. beos*)
  7291. library_names_spec='${libname}${shared_ext}'
  7292. dynamic_linker="$host_os ld.so"
  7293. shlibpath_var=LIBRARY_PATH
  7294. ;;
  7295. bsdi[45]*)
  7296. version_type=linux
  7297. need_version=no
  7298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7299. soname_spec='${libname}${release}${shared_ext}$major'
  7300. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7301. shlibpath_var=LD_LIBRARY_PATH
  7302. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7303. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7304. # the default ld.so.conf also contains /usr/contrib/lib and
  7305. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7306. # libtool to hard-code these into programs
  7307. ;;
  7308. cygwin* | mingw* | pw32*)
  7309. version_type=windows
  7310. shrext_cmds=".dll"
  7311. need_version=no
  7312. need_lib_prefix=no
  7313. case $GCC,$host_os in
  7314. yes,cygwin* | yes,mingw* | yes,pw32*)
  7315. library_names_spec='$libname.dll.a'
  7316. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7317. postinstall_cmds='base_file=`basename \${file}`~
  7318. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7319. dldir=$destdir/`dirname \$dlpath`~
  7320. test -d \$dldir || mkdir -p \$dldir~
  7321. $install_prog $dir/$dlname \$dldir/$dlname~
  7322. chmod a+x \$dldir/$dlname'
  7323. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7324. dlpath=$dir/\$dldll~
  7325. $rm \$dlpath'
  7326. shlibpath_overrides_runpath=yes
  7327. case $host_os in
  7328. cygwin*)
  7329. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7330. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7331. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7332. ;;
  7333. mingw*)
  7334. # MinGW DLLs use traditional 'lib' prefix
  7335. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7336. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7337. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7338. # It is most probably a Windows format PATH printed by
  7339. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7340. # path with ; separators, and with drive letters. We can handle the
  7341. # drive letters (cygwin fileutils understands them), so leave them,
  7342. # especially as we might pass files found there to a mingw objdump,
  7343. # which wouldn't understand a cygwinified path. Ahh.
  7344. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7345. else
  7346. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7347. fi
  7348. ;;
  7349. pw32*)
  7350. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7351. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7352. ;;
  7353. esac
  7354. ;;
  7355. *)
  7356. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7357. ;;
  7358. esac
  7359. dynamic_linker='Win32 ld.exe'
  7360. # FIXME: first we should search . and the directory the executable is in
  7361. shlibpath_var=PATH
  7362. ;;
  7363. darwin* | rhapsody*)
  7364. dynamic_linker="$host_os dyld"
  7365. version_type=darwin
  7366. need_lib_prefix=no
  7367. need_version=no
  7368. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7369. soname_spec='${libname}${release}${major}$shared_ext'
  7370. shlibpath_overrides_runpath=yes
  7371. shlibpath_var=DYLD_LIBRARY_PATH
  7372. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7373. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7374. if test "$GCC" = yes; then
  7375. 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"`
  7376. else
  7377. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7378. fi
  7379. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7380. ;;
  7381. dgux*)
  7382. version_type=linux
  7383. need_lib_prefix=no
  7384. need_version=no
  7385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7386. soname_spec='${libname}${release}${shared_ext}$major'
  7387. shlibpath_var=LD_LIBRARY_PATH
  7388. ;;
  7389. freebsd1*)
  7390. dynamic_linker=no
  7391. ;;
  7392. kfreebsd*-gnu)
  7393. version_type=linux
  7394. need_lib_prefix=no
  7395. need_version=no
  7396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7397. soname_spec='${libname}${release}${shared_ext}$major'
  7398. shlibpath_var=LD_LIBRARY_PATH
  7399. shlibpath_overrides_runpath=no
  7400. hardcode_into_libs=yes
  7401. dynamic_linker='GNU ld.so'
  7402. ;;
  7403. freebsd* | dragonfly*)
  7404. # DragonFly does not have aout. When/if they implement a new
  7405. # versioning mechanism, adjust this.
  7406. if test -x /usr/bin/objformat; then
  7407. objformat=`/usr/bin/objformat`
  7408. else
  7409. case $host_os in
  7410. freebsd[123]*) objformat=aout ;;
  7411. *) objformat=elf ;;
  7412. esac
  7413. fi
  7414. version_type=freebsd-$objformat
  7415. case $version_type in
  7416. freebsd-elf*)
  7417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7418. need_version=no
  7419. need_lib_prefix=no
  7420. ;;
  7421. freebsd-*)
  7422. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7423. need_version=yes
  7424. ;;
  7425. esac
  7426. shlibpath_var=LD_LIBRARY_PATH
  7427. case $host_os in
  7428. freebsd2*)
  7429. shlibpath_overrides_runpath=yes
  7430. ;;
  7431. freebsd3.[01]* | freebsdelf3.[01]*)
  7432. shlibpath_overrides_runpath=yes
  7433. hardcode_into_libs=yes
  7434. ;;
  7435. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7436. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7437. shlibpath_overrides_runpath=no
  7438. hardcode_into_libs=yes
  7439. ;;
  7440. freebsd*) # from 4.6 on
  7441. shlibpath_overrides_runpath=yes
  7442. hardcode_into_libs=yes
  7443. ;;
  7444. esac
  7445. ;;
  7446. gnu*)
  7447. version_type=linux
  7448. need_lib_prefix=no
  7449. need_version=no
  7450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7451. soname_spec='${libname}${release}${shared_ext}$major'
  7452. shlibpath_var=LD_LIBRARY_PATH
  7453. hardcode_into_libs=yes
  7454. ;;
  7455. hpux9* | hpux10* | hpux11*)
  7456. # Give a soname corresponding to the major version so that dld.sl refuses to
  7457. # link against other versions.
  7458. version_type=sunos
  7459. need_lib_prefix=no
  7460. need_version=no
  7461. case $host_cpu in
  7462. ia64*)
  7463. shrext_cmds='.so'
  7464. hardcode_into_libs=yes
  7465. dynamic_linker="$host_os dld.so"
  7466. shlibpath_var=LD_LIBRARY_PATH
  7467. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7469. soname_spec='${libname}${release}${shared_ext}$major'
  7470. if test "X$HPUX_IA64_MODE" = X32; then
  7471. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7472. else
  7473. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7474. fi
  7475. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7476. ;;
  7477. hppa*64*)
  7478. shrext_cmds='.sl'
  7479. hardcode_into_libs=yes
  7480. dynamic_linker="$host_os dld.sl"
  7481. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7482. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7484. soname_spec='${libname}${release}${shared_ext}$major'
  7485. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7486. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7487. ;;
  7488. *)
  7489. shrext_cmds='.sl'
  7490. dynamic_linker="$host_os dld.sl"
  7491. shlibpath_var=SHLIB_PATH
  7492. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7494. soname_spec='${libname}${release}${shared_ext}$major'
  7495. ;;
  7496. esac
  7497. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7498. postinstall_cmds='chmod 555 $lib'
  7499. ;;
  7500. interix3*)
  7501. version_type=linux
  7502. need_lib_prefix=no
  7503. need_version=no
  7504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7505. soname_spec='${libname}${release}${shared_ext}$major'
  7506. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7507. shlibpath_var=LD_LIBRARY_PATH
  7508. shlibpath_overrides_runpath=no
  7509. hardcode_into_libs=yes
  7510. ;;
  7511. irix5* | irix6* | nonstopux*)
  7512. case $host_os in
  7513. nonstopux*) version_type=nonstopux ;;
  7514. *)
  7515. if test "$lt_cv_prog_gnu_ld" = yes; then
  7516. version_type=linux
  7517. else
  7518. version_type=irix
  7519. fi ;;
  7520. esac
  7521. need_lib_prefix=no
  7522. need_version=no
  7523. soname_spec='${libname}${release}${shared_ext}$major'
  7524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7525. case $host_os in
  7526. irix5* | nonstopux*)
  7527. libsuff= shlibsuff=
  7528. ;;
  7529. *)
  7530. case $LD in # libtool.m4 will add one of these switches to LD
  7531. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7532. libsuff= shlibsuff= libmagic=32-bit;;
  7533. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7534. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7535. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7536. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7537. *) libsuff= shlibsuff= libmagic=never-match;;
  7538. esac
  7539. ;;
  7540. esac
  7541. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7542. shlibpath_overrides_runpath=no
  7543. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7544. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7545. hardcode_into_libs=yes
  7546. ;;
  7547. # No shared lib support for Linux oldld, aout, or coff.
  7548. linux*oldld* | linux*aout* | linux*coff*)
  7549. dynamic_linker=no
  7550. ;;
  7551. # This must be Linux ELF.
  7552. linux*)
  7553. version_type=linux
  7554. need_lib_prefix=no
  7555. need_version=no
  7556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7557. soname_spec='${libname}${release}${shared_ext}$major'
  7558. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7559. shlibpath_var=LD_LIBRARY_PATH
  7560. shlibpath_overrides_runpath=no
  7561. # This implies no fast_install, which is unacceptable.
  7562. # Some rework will be needed to allow for fast_install
  7563. # before this can be enabled.
  7564. hardcode_into_libs=yes
  7565. # Append ld.so.conf contents to the search path
  7566. if test -f /etc/ld.so.conf; then
  7567. 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' ' '`
  7568. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7569. fi
  7570. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7571. # powerpc, because MkLinux only supported shared libraries with the
  7572. # GNU dynamic linker. Since this was broken with cross compilers,
  7573. # most powerpc-linux boxes support dynamic linking these days and
  7574. # people can always --disable-shared, the test was removed, and we
  7575. # assume the GNU/Linux dynamic linker is in use.
  7576. dynamic_linker='GNU/Linux ld.so'
  7577. ;;
  7578. knetbsd*-gnu)
  7579. version_type=linux
  7580. need_lib_prefix=no
  7581. need_version=no
  7582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7583. soname_spec='${libname}${release}${shared_ext}$major'
  7584. shlibpath_var=LD_LIBRARY_PATH
  7585. shlibpath_overrides_runpath=no
  7586. hardcode_into_libs=yes
  7587. dynamic_linker='GNU ld.so'
  7588. ;;
  7589. netbsd*)
  7590. version_type=sunos
  7591. need_lib_prefix=no
  7592. need_version=no
  7593. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7595. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7596. dynamic_linker='NetBSD (a.out) ld.so'
  7597. else
  7598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7599. soname_spec='${libname}${release}${shared_ext}$major'
  7600. dynamic_linker='NetBSD ld.elf_so'
  7601. fi
  7602. shlibpath_var=LD_LIBRARY_PATH
  7603. shlibpath_overrides_runpath=yes
  7604. hardcode_into_libs=yes
  7605. ;;
  7606. newsos6)
  7607. version_type=linux
  7608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7609. shlibpath_var=LD_LIBRARY_PATH
  7610. shlibpath_overrides_runpath=yes
  7611. ;;
  7612. nto-qnx*)
  7613. version_type=linux
  7614. need_lib_prefix=no
  7615. need_version=no
  7616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7617. soname_spec='${libname}${release}${shared_ext}$major'
  7618. shlibpath_var=LD_LIBRARY_PATH
  7619. shlibpath_overrides_runpath=yes
  7620. ;;
  7621. openbsd*)
  7622. version_type=sunos
  7623. sys_lib_dlsearch_path_spec="/usr/lib"
  7624. need_lib_prefix=no
  7625. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7626. case $host_os in
  7627. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7628. *) need_version=no ;;
  7629. esac
  7630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7631. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7632. shlibpath_var=LD_LIBRARY_PATH
  7633. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7634. case $host_os in
  7635. openbsd2.[89] | openbsd2.[89].*)
  7636. shlibpath_overrides_runpath=no
  7637. ;;
  7638. *)
  7639. shlibpath_overrides_runpath=yes
  7640. ;;
  7641. esac
  7642. else
  7643. shlibpath_overrides_runpath=yes
  7644. fi
  7645. ;;
  7646. os2*)
  7647. libname_spec='$name'
  7648. shrext_cmds=".dll"
  7649. need_lib_prefix=no
  7650. library_names_spec='$libname${shared_ext} $libname.a'
  7651. dynamic_linker='OS/2 ld.exe'
  7652. shlibpath_var=LIBPATH
  7653. ;;
  7654. osf3* | osf4* | osf5*)
  7655. version_type=osf
  7656. need_lib_prefix=no
  7657. need_version=no
  7658. soname_spec='${libname}${release}${shared_ext}$major'
  7659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7660. shlibpath_var=LD_LIBRARY_PATH
  7661. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7662. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7663. ;;
  7664. solaris*)
  7665. version_type=linux
  7666. need_lib_prefix=no
  7667. need_version=no
  7668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7669. soname_spec='${libname}${release}${shared_ext}$major'
  7670. shlibpath_var=LD_LIBRARY_PATH
  7671. shlibpath_overrides_runpath=yes
  7672. hardcode_into_libs=yes
  7673. # ldd complains unless libraries are executable
  7674. postinstall_cmds='chmod +x $lib'
  7675. ;;
  7676. sunos4*)
  7677. version_type=sunos
  7678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7679. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7680. shlibpath_var=LD_LIBRARY_PATH
  7681. shlibpath_overrides_runpath=yes
  7682. if test "$with_gnu_ld" = yes; then
  7683. need_lib_prefix=no
  7684. fi
  7685. need_version=yes
  7686. ;;
  7687. sysv4 | sysv4.3*)
  7688. version_type=linux
  7689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7690. soname_spec='${libname}${release}${shared_ext}$major'
  7691. shlibpath_var=LD_LIBRARY_PATH
  7692. case $host_vendor in
  7693. sni)
  7694. shlibpath_overrides_runpath=no
  7695. need_lib_prefix=no
  7696. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7697. runpath_var=LD_RUN_PATH
  7698. ;;
  7699. siemens)
  7700. need_lib_prefix=no
  7701. ;;
  7702. motorola)
  7703. need_lib_prefix=no
  7704. need_version=no
  7705. shlibpath_overrides_runpath=no
  7706. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7707. ;;
  7708. esac
  7709. ;;
  7710. sysv4*MP*)
  7711. if test -d /usr/nec ;then
  7712. version_type=linux
  7713. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7714. soname_spec='$libname${shared_ext}.$major'
  7715. shlibpath_var=LD_LIBRARY_PATH
  7716. fi
  7717. ;;
  7718. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7719. version_type=freebsd-elf
  7720. need_lib_prefix=no
  7721. need_version=no
  7722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7723. soname_spec='${libname}${release}${shared_ext}$major'
  7724. shlibpath_var=LD_LIBRARY_PATH
  7725. hardcode_into_libs=yes
  7726. if test "$with_gnu_ld" = yes; then
  7727. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7728. shlibpath_overrides_runpath=no
  7729. else
  7730. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7731. shlibpath_overrides_runpath=yes
  7732. case $host_os in
  7733. sco3.2v5*)
  7734. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7735. ;;
  7736. esac
  7737. fi
  7738. sys_lib_dlsearch_path_spec='/usr/lib'
  7739. ;;
  7740. uts4*)
  7741. version_type=linux
  7742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7743. soname_spec='${libname}${release}${shared_ext}$major'
  7744. shlibpath_var=LD_LIBRARY_PATH
  7745. ;;
  7746. *)
  7747. dynamic_linker=no
  7748. ;;
  7749. esac
  7750. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7751. echo "${ECHO_T}$dynamic_linker" >&6
  7752. test "$dynamic_linker" = no && can_build_shared=no
  7753. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7754. if test "$GCC" = yes; then
  7755. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7756. fi
  7757. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7758. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7759. hardcode_action=
  7760. if test -n "$hardcode_libdir_flag_spec" || \
  7761. test -n "$runpath_var" || \
  7762. test "X$hardcode_automatic" = "Xyes" ; then
  7763. # We can hardcode non-existant directories.
  7764. if test "$hardcode_direct" != no &&
  7765. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7766. # have to relink, otherwise we might link with an installed library
  7767. # when we should be linking with a yet-to-be-installed one
  7768. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7769. test "$hardcode_minus_L" != no; then
  7770. # Linking always hardcodes the temporary library directory.
  7771. hardcode_action=relink
  7772. else
  7773. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7774. hardcode_action=immediate
  7775. fi
  7776. else
  7777. # We cannot hardcode anything, or else we can only hardcode existing
  7778. # directories.
  7779. hardcode_action=unsupported
  7780. fi
  7781. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7782. echo "${ECHO_T}$hardcode_action" >&6
  7783. if test "$hardcode_action" = relink; then
  7784. # Fast installation is not supported
  7785. enable_fast_install=no
  7786. elif test "$shlibpath_overrides_runpath" = yes ||
  7787. test "$enable_shared" = no; then
  7788. # Fast installation is not necessary
  7789. enable_fast_install=needless
  7790. fi
  7791. striplib=
  7792. old_striplib=
  7793. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7794. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7795. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7796. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7797. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7798. echo "$as_me:$LINENO: result: yes" >&5
  7799. echo "${ECHO_T}yes" >&6
  7800. else
  7801. # FIXME - insert some real tests, host_os isn't really good enough
  7802. case $host_os in
  7803. darwin*)
  7804. if test -n "$STRIP" ; then
  7805. striplib="$STRIP -x"
  7806. echo "$as_me:$LINENO: result: yes" >&5
  7807. echo "${ECHO_T}yes" >&6
  7808. else
  7809. echo "$as_me:$LINENO: result: no" >&5
  7810. echo "${ECHO_T}no" >&6
  7811. fi
  7812. ;;
  7813. *)
  7814. echo "$as_me:$LINENO: result: no" >&5
  7815. echo "${ECHO_T}no" >&6
  7816. ;;
  7817. esac
  7818. fi
  7819. if test "x$enable_dlopen" != xyes; then
  7820. enable_dlopen=unknown
  7821. enable_dlopen_self=unknown
  7822. enable_dlopen_self_static=unknown
  7823. else
  7824. lt_cv_dlopen=no
  7825. lt_cv_dlopen_libs=
  7826. case $host_os in
  7827. beos*)
  7828. lt_cv_dlopen="load_add_on"
  7829. lt_cv_dlopen_libs=
  7830. lt_cv_dlopen_self=yes
  7831. ;;
  7832. mingw* | pw32*)
  7833. lt_cv_dlopen="LoadLibrary"
  7834. lt_cv_dlopen_libs=
  7835. ;;
  7836. cygwin*)
  7837. lt_cv_dlopen="dlopen"
  7838. lt_cv_dlopen_libs=
  7839. ;;
  7840. darwin*)
  7841. # if libdl is installed we need to link against it
  7842. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7843. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7844. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7845. echo $ECHO_N "(cached) $ECHO_C" >&6
  7846. else
  7847. ac_check_lib_save_LIBS=$LIBS
  7848. LIBS="-ldl $LIBS"
  7849. cat >conftest.$ac_ext <<_ACEOF
  7850. /* confdefs.h. */
  7851. _ACEOF
  7852. cat confdefs.h >>conftest.$ac_ext
  7853. cat >>conftest.$ac_ext <<_ACEOF
  7854. /* end confdefs.h. */
  7855. /* Override any gcc2 internal prototype to avoid an error. */
  7856. #ifdef __cplusplus
  7857. extern "C"
  7858. #endif
  7859. /* We use char because int might match the return type of a gcc2
  7860. builtin and then its argument prototype would still apply. */
  7861. char dlopen ();
  7862. int
  7863. main ()
  7864. {
  7865. dlopen ();
  7866. ;
  7867. return 0;
  7868. }
  7869. _ACEOF
  7870. rm -f conftest.$ac_objext conftest$ac_exeext
  7871. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7872. (eval $ac_link) 2>conftest.er1
  7873. ac_status=$?
  7874. grep -v '^ *+' conftest.er1 >conftest.err
  7875. rm -f conftest.er1
  7876. cat conftest.err >&5
  7877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7878. (exit $ac_status); } &&
  7879. { ac_try='test -z "$ac_c_werror_flag"
  7880. || test ! -s conftest.err'
  7881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7882. (eval $ac_try) 2>&5
  7883. ac_status=$?
  7884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7885. (exit $ac_status); }; } &&
  7886. { ac_try='test -s conftest$ac_exeext'
  7887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7888. (eval $ac_try) 2>&5
  7889. ac_status=$?
  7890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7891. (exit $ac_status); }; }; then
  7892. ac_cv_lib_dl_dlopen=yes
  7893. else
  7894. echo "$as_me: failed program was:" >&5
  7895. sed 's/^/| /' conftest.$ac_ext >&5
  7896. ac_cv_lib_dl_dlopen=no
  7897. fi
  7898. rm -f conftest.err conftest.$ac_objext \
  7899. conftest$ac_exeext conftest.$ac_ext
  7900. LIBS=$ac_check_lib_save_LIBS
  7901. fi
  7902. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7903. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7904. if test $ac_cv_lib_dl_dlopen = yes; then
  7905. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7906. else
  7907. lt_cv_dlopen="dyld"
  7908. lt_cv_dlopen_libs=
  7909. lt_cv_dlopen_self=yes
  7910. fi
  7911. ;;
  7912. *)
  7913. echo "$as_me:$LINENO: checking for shl_load" >&5
  7914. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7915. if test "${ac_cv_func_shl_load+set}" = set; then
  7916. echo $ECHO_N "(cached) $ECHO_C" >&6
  7917. else
  7918. cat >conftest.$ac_ext <<_ACEOF
  7919. /* confdefs.h. */
  7920. _ACEOF
  7921. cat confdefs.h >>conftest.$ac_ext
  7922. cat >>conftest.$ac_ext <<_ACEOF
  7923. /* end confdefs.h. */
  7924. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7925. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7926. #define shl_load innocuous_shl_load
  7927. /* System header to define __stub macros and hopefully few prototypes,
  7928. which can conflict with char shl_load (); below.
  7929. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7930. <limits.h> exists even on freestanding compilers. */
  7931. #ifdef __STDC__
  7932. # include <limits.h>
  7933. #else
  7934. # include <assert.h>
  7935. #endif
  7936. #undef shl_load
  7937. /* Override any gcc2 internal prototype to avoid an error. */
  7938. #ifdef __cplusplus
  7939. extern "C"
  7940. {
  7941. #endif
  7942. /* We use char because int might match the return type of a gcc2
  7943. builtin and then its argument prototype would still apply. */
  7944. char shl_load ();
  7945. /* The GNU C library defines this for functions which it implements
  7946. to always fail with ENOSYS. Some functions are actually named
  7947. something starting with __ and the normal name is an alias. */
  7948. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7949. choke me
  7950. #else
  7951. char (*f) () = shl_load;
  7952. #endif
  7953. #ifdef __cplusplus
  7954. }
  7955. #endif
  7956. int
  7957. main ()
  7958. {
  7959. return f != shl_load;
  7960. ;
  7961. return 0;
  7962. }
  7963. _ACEOF
  7964. rm -f conftest.$ac_objext conftest$ac_exeext
  7965. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7966. (eval $ac_link) 2>conftest.er1
  7967. ac_status=$?
  7968. grep -v '^ *+' conftest.er1 >conftest.err
  7969. rm -f conftest.er1
  7970. cat conftest.err >&5
  7971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); } &&
  7973. { ac_try='test -z "$ac_c_werror_flag"
  7974. || test ! -s conftest.err'
  7975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7976. (eval $ac_try) 2>&5
  7977. ac_status=$?
  7978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7979. (exit $ac_status); }; } &&
  7980. { ac_try='test -s conftest$ac_exeext'
  7981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7982. (eval $ac_try) 2>&5
  7983. ac_status=$?
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); }; }; then
  7986. ac_cv_func_shl_load=yes
  7987. else
  7988. echo "$as_me: failed program was:" >&5
  7989. sed 's/^/| /' conftest.$ac_ext >&5
  7990. ac_cv_func_shl_load=no
  7991. fi
  7992. rm -f conftest.err conftest.$ac_objext \
  7993. conftest$ac_exeext conftest.$ac_ext
  7994. fi
  7995. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7996. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7997. if test $ac_cv_func_shl_load = yes; then
  7998. lt_cv_dlopen="shl_load"
  7999. else
  8000. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8001. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8002. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8003. echo $ECHO_N "(cached) $ECHO_C" >&6
  8004. else
  8005. ac_check_lib_save_LIBS=$LIBS
  8006. LIBS="-ldld $LIBS"
  8007. cat >conftest.$ac_ext <<_ACEOF
  8008. /* confdefs.h. */
  8009. _ACEOF
  8010. cat confdefs.h >>conftest.$ac_ext
  8011. cat >>conftest.$ac_ext <<_ACEOF
  8012. /* end confdefs.h. */
  8013. /* Override any gcc2 internal prototype to avoid an error. */
  8014. #ifdef __cplusplus
  8015. extern "C"
  8016. #endif
  8017. /* We use char because int might match the return type of a gcc2
  8018. builtin and then its argument prototype would still apply. */
  8019. char shl_load ();
  8020. int
  8021. main ()
  8022. {
  8023. shl_load ();
  8024. ;
  8025. return 0;
  8026. }
  8027. _ACEOF
  8028. rm -f conftest.$ac_objext conftest$ac_exeext
  8029. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8030. (eval $ac_link) 2>conftest.er1
  8031. ac_status=$?
  8032. grep -v '^ *+' conftest.er1 >conftest.err
  8033. rm -f conftest.er1
  8034. cat conftest.err >&5
  8035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8036. (exit $ac_status); } &&
  8037. { ac_try='test -z "$ac_c_werror_flag"
  8038. || test ! -s conftest.err'
  8039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8040. (eval $ac_try) 2>&5
  8041. ac_status=$?
  8042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8043. (exit $ac_status); }; } &&
  8044. { ac_try='test -s conftest$ac_exeext'
  8045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8046. (eval $ac_try) 2>&5
  8047. ac_status=$?
  8048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8049. (exit $ac_status); }; }; then
  8050. ac_cv_lib_dld_shl_load=yes
  8051. else
  8052. echo "$as_me: failed program was:" >&5
  8053. sed 's/^/| /' conftest.$ac_ext >&5
  8054. ac_cv_lib_dld_shl_load=no
  8055. fi
  8056. rm -f conftest.err conftest.$ac_objext \
  8057. conftest$ac_exeext conftest.$ac_ext
  8058. LIBS=$ac_check_lib_save_LIBS
  8059. fi
  8060. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8061. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8062. if test $ac_cv_lib_dld_shl_load = yes; then
  8063. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8064. else
  8065. echo "$as_me:$LINENO: checking for dlopen" >&5
  8066. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8067. if test "${ac_cv_func_dlopen+set}" = set; then
  8068. echo $ECHO_N "(cached) $ECHO_C" >&6
  8069. else
  8070. cat >conftest.$ac_ext <<_ACEOF
  8071. /* confdefs.h. */
  8072. _ACEOF
  8073. cat confdefs.h >>conftest.$ac_ext
  8074. cat >>conftest.$ac_ext <<_ACEOF
  8075. /* end confdefs.h. */
  8076. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8077. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8078. #define dlopen innocuous_dlopen
  8079. /* System header to define __stub macros and hopefully few prototypes,
  8080. which can conflict with char dlopen (); below.
  8081. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8082. <limits.h> exists even on freestanding compilers. */
  8083. #ifdef __STDC__
  8084. # include <limits.h>
  8085. #else
  8086. # include <assert.h>
  8087. #endif
  8088. #undef dlopen
  8089. /* Override any gcc2 internal prototype to avoid an error. */
  8090. #ifdef __cplusplus
  8091. extern "C"
  8092. {
  8093. #endif
  8094. /* We use char because int might match the return type of a gcc2
  8095. builtin and then its argument prototype would still apply. */
  8096. char dlopen ();
  8097. /* The GNU C library defines this for functions which it implements
  8098. to always fail with ENOSYS. Some functions are actually named
  8099. something starting with __ and the normal name is an alias. */
  8100. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8101. choke me
  8102. #else
  8103. char (*f) () = dlopen;
  8104. #endif
  8105. #ifdef __cplusplus
  8106. }
  8107. #endif
  8108. int
  8109. main ()
  8110. {
  8111. return f != dlopen;
  8112. ;
  8113. return 0;
  8114. }
  8115. _ACEOF
  8116. rm -f conftest.$ac_objext conftest$ac_exeext
  8117. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8118. (eval $ac_link) 2>conftest.er1
  8119. ac_status=$?
  8120. grep -v '^ *+' conftest.er1 >conftest.err
  8121. rm -f conftest.er1
  8122. cat conftest.err >&5
  8123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8124. (exit $ac_status); } &&
  8125. { ac_try='test -z "$ac_c_werror_flag"
  8126. || test ! -s conftest.err'
  8127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8128. (eval $ac_try) 2>&5
  8129. ac_status=$?
  8130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8131. (exit $ac_status); }; } &&
  8132. { ac_try='test -s conftest$ac_exeext'
  8133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8134. (eval $ac_try) 2>&5
  8135. ac_status=$?
  8136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8137. (exit $ac_status); }; }; then
  8138. ac_cv_func_dlopen=yes
  8139. else
  8140. echo "$as_me: failed program was:" >&5
  8141. sed 's/^/| /' conftest.$ac_ext >&5
  8142. ac_cv_func_dlopen=no
  8143. fi
  8144. rm -f conftest.err conftest.$ac_objext \
  8145. conftest$ac_exeext conftest.$ac_ext
  8146. fi
  8147. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8148. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8149. if test $ac_cv_func_dlopen = yes; then
  8150. lt_cv_dlopen="dlopen"
  8151. else
  8152. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8153. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8154. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8155. echo $ECHO_N "(cached) $ECHO_C" >&6
  8156. else
  8157. ac_check_lib_save_LIBS=$LIBS
  8158. LIBS="-ldl $LIBS"
  8159. cat >conftest.$ac_ext <<_ACEOF
  8160. /* confdefs.h. */
  8161. _ACEOF
  8162. cat confdefs.h >>conftest.$ac_ext
  8163. cat >>conftest.$ac_ext <<_ACEOF
  8164. /* end confdefs.h. */
  8165. /* Override any gcc2 internal prototype to avoid an error. */
  8166. #ifdef __cplusplus
  8167. extern "C"
  8168. #endif
  8169. /* We use char because int might match the return type of a gcc2
  8170. builtin and then its argument prototype would still apply. */
  8171. char dlopen ();
  8172. int
  8173. main ()
  8174. {
  8175. dlopen ();
  8176. ;
  8177. return 0;
  8178. }
  8179. _ACEOF
  8180. rm -f conftest.$ac_objext conftest$ac_exeext
  8181. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8182. (eval $ac_link) 2>conftest.er1
  8183. ac_status=$?
  8184. grep -v '^ *+' conftest.er1 >conftest.err
  8185. rm -f conftest.er1
  8186. cat conftest.err >&5
  8187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8188. (exit $ac_status); } &&
  8189. { ac_try='test -z "$ac_c_werror_flag"
  8190. || test ! -s conftest.err'
  8191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8192. (eval $ac_try) 2>&5
  8193. ac_status=$?
  8194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8195. (exit $ac_status); }; } &&
  8196. { ac_try='test -s conftest$ac_exeext'
  8197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8198. (eval $ac_try) 2>&5
  8199. ac_status=$?
  8200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8201. (exit $ac_status); }; }; then
  8202. ac_cv_lib_dl_dlopen=yes
  8203. else
  8204. echo "$as_me: failed program was:" >&5
  8205. sed 's/^/| /' conftest.$ac_ext >&5
  8206. ac_cv_lib_dl_dlopen=no
  8207. fi
  8208. rm -f conftest.err conftest.$ac_objext \
  8209. conftest$ac_exeext conftest.$ac_ext
  8210. LIBS=$ac_check_lib_save_LIBS
  8211. fi
  8212. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8213. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8214. if test $ac_cv_lib_dl_dlopen = yes; then
  8215. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8216. else
  8217. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8218. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8219. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8220. echo $ECHO_N "(cached) $ECHO_C" >&6
  8221. else
  8222. ac_check_lib_save_LIBS=$LIBS
  8223. LIBS="-lsvld $LIBS"
  8224. cat >conftest.$ac_ext <<_ACEOF
  8225. /* confdefs.h. */
  8226. _ACEOF
  8227. cat confdefs.h >>conftest.$ac_ext
  8228. cat >>conftest.$ac_ext <<_ACEOF
  8229. /* end confdefs.h. */
  8230. /* Override any gcc2 internal prototype to avoid an error. */
  8231. #ifdef __cplusplus
  8232. extern "C"
  8233. #endif
  8234. /* We use char because int might match the return type of a gcc2
  8235. builtin and then its argument prototype would still apply. */
  8236. char dlopen ();
  8237. int
  8238. main ()
  8239. {
  8240. dlopen ();
  8241. ;
  8242. return 0;
  8243. }
  8244. _ACEOF
  8245. rm -f conftest.$ac_objext conftest$ac_exeext
  8246. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8247. (eval $ac_link) 2>conftest.er1
  8248. ac_status=$?
  8249. grep -v '^ *+' conftest.er1 >conftest.err
  8250. rm -f conftest.er1
  8251. cat conftest.err >&5
  8252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8253. (exit $ac_status); } &&
  8254. { ac_try='test -z "$ac_c_werror_flag"
  8255. || test ! -s conftest.err'
  8256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8257. (eval $ac_try) 2>&5
  8258. ac_status=$?
  8259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8260. (exit $ac_status); }; } &&
  8261. { ac_try='test -s conftest$ac_exeext'
  8262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8263. (eval $ac_try) 2>&5
  8264. ac_status=$?
  8265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8266. (exit $ac_status); }; }; then
  8267. ac_cv_lib_svld_dlopen=yes
  8268. else
  8269. echo "$as_me: failed program was:" >&5
  8270. sed 's/^/| /' conftest.$ac_ext >&5
  8271. ac_cv_lib_svld_dlopen=no
  8272. fi
  8273. rm -f conftest.err conftest.$ac_objext \
  8274. conftest$ac_exeext conftest.$ac_ext
  8275. LIBS=$ac_check_lib_save_LIBS
  8276. fi
  8277. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8278. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8279. if test $ac_cv_lib_svld_dlopen = yes; then
  8280. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8281. else
  8282. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8283. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8284. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8285. echo $ECHO_N "(cached) $ECHO_C" >&6
  8286. else
  8287. ac_check_lib_save_LIBS=$LIBS
  8288. LIBS="-ldld $LIBS"
  8289. cat >conftest.$ac_ext <<_ACEOF
  8290. /* confdefs.h. */
  8291. _ACEOF
  8292. cat confdefs.h >>conftest.$ac_ext
  8293. cat >>conftest.$ac_ext <<_ACEOF
  8294. /* end confdefs.h. */
  8295. /* Override any gcc2 internal prototype to avoid an error. */
  8296. #ifdef __cplusplus
  8297. extern "C"
  8298. #endif
  8299. /* We use char because int might match the return type of a gcc2
  8300. builtin and then its argument prototype would still apply. */
  8301. char dld_link ();
  8302. int
  8303. main ()
  8304. {
  8305. dld_link ();
  8306. ;
  8307. return 0;
  8308. }
  8309. _ACEOF
  8310. rm -f conftest.$ac_objext conftest$ac_exeext
  8311. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8312. (eval $ac_link) 2>conftest.er1
  8313. ac_status=$?
  8314. grep -v '^ *+' conftest.er1 >conftest.err
  8315. rm -f conftest.er1
  8316. cat conftest.err >&5
  8317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8318. (exit $ac_status); } &&
  8319. { ac_try='test -z "$ac_c_werror_flag"
  8320. || test ! -s conftest.err'
  8321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8322. (eval $ac_try) 2>&5
  8323. ac_status=$?
  8324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8325. (exit $ac_status); }; } &&
  8326. { ac_try='test -s conftest$ac_exeext'
  8327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8328. (eval $ac_try) 2>&5
  8329. ac_status=$?
  8330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8331. (exit $ac_status); }; }; then
  8332. ac_cv_lib_dld_dld_link=yes
  8333. else
  8334. echo "$as_me: failed program was:" >&5
  8335. sed 's/^/| /' conftest.$ac_ext >&5
  8336. ac_cv_lib_dld_dld_link=no
  8337. fi
  8338. rm -f conftest.err conftest.$ac_objext \
  8339. conftest$ac_exeext conftest.$ac_ext
  8340. LIBS=$ac_check_lib_save_LIBS
  8341. fi
  8342. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8343. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8344. if test $ac_cv_lib_dld_dld_link = yes; then
  8345. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8346. fi
  8347. fi
  8348. fi
  8349. fi
  8350. fi
  8351. fi
  8352. ;;
  8353. esac
  8354. if test "x$lt_cv_dlopen" != xno; then
  8355. enable_dlopen=yes
  8356. else
  8357. enable_dlopen=no
  8358. fi
  8359. case $lt_cv_dlopen in
  8360. dlopen)
  8361. save_CPPFLAGS="$CPPFLAGS"
  8362. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8363. save_LDFLAGS="$LDFLAGS"
  8364. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8365. save_LIBS="$LIBS"
  8366. LIBS="$lt_cv_dlopen_libs $LIBS"
  8367. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8368. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8369. if test "${lt_cv_dlopen_self+set}" = set; then
  8370. echo $ECHO_N "(cached) $ECHO_C" >&6
  8371. else
  8372. if test "$cross_compiling" = yes; then :
  8373. lt_cv_dlopen_self=cross
  8374. else
  8375. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8376. lt_status=$lt_dlunknown
  8377. cat > conftest.$ac_ext <<EOF
  8378. #line 9224 "configure"
  8379. #include "confdefs.h"
  8380. #if HAVE_DLFCN_H
  8381. #include <dlfcn.h>
  8382. #endif
  8383. #include <stdio.h>
  8384. #ifdef RTLD_GLOBAL
  8385. # define LT_DLGLOBAL RTLD_GLOBAL
  8386. #else
  8387. # ifdef DL_GLOBAL
  8388. # define LT_DLGLOBAL DL_GLOBAL
  8389. # else
  8390. # define LT_DLGLOBAL 0
  8391. # endif
  8392. #endif
  8393. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8394. find out it does not work in some platform. */
  8395. #ifndef LT_DLLAZY_OR_NOW
  8396. # ifdef RTLD_LAZY
  8397. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8398. # else
  8399. # ifdef DL_LAZY
  8400. # define LT_DLLAZY_OR_NOW DL_LAZY
  8401. # else
  8402. # ifdef RTLD_NOW
  8403. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8404. # else
  8405. # ifdef DL_NOW
  8406. # define LT_DLLAZY_OR_NOW DL_NOW
  8407. # else
  8408. # define LT_DLLAZY_OR_NOW 0
  8409. # endif
  8410. # endif
  8411. # endif
  8412. # endif
  8413. #endif
  8414. #ifdef __cplusplus
  8415. extern "C" void exit (int);
  8416. #endif
  8417. void fnord() { int i=42;}
  8418. int main ()
  8419. {
  8420. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8421. int status = $lt_dlunknown;
  8422. if (self)
  8423. {
  8424. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8425. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8426. /* dlclose (self); */
  8427. }
  8428. else
  8429. puts (dlerror ());
  8430. exit (status);
  8431. }
  8432. EOF
  8433. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8434. (eval $ac_link) 2>&5
  8435. ac_status=$?
  8436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8437. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8438. (./conftest; exit; ) >&5 2>/dev/null
  8439. lt_status=$?
  8440. case x$lt_status in
  8441. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8442. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8443. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8444. esac
  8445. else :
  8446. # compilation failed
  8447. lt_cv_dlopen_self=no
  8448. fi
  8449. fi
  8450. rm -fr conftest*
  8451. fi
  8452. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8453. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8454. if test "x$lt_cv_dlopen_self" = xyes; then
  8455. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8456. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8457. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8458. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8459. echo $ECHO_N "(cached) $ECHO_C" >&6
  8460. else
  8461. if test "$cross_compiling" = yes; then :
  8462. lt_cv_dlopen_self_static=cross
  8463. else
  8464. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8465. lt_status=$lt_dlunknown
  8466. cat > conftest.$ac_ext <<EOF
  8467. #line 9324 "configure"
  8468. #include "confdefs.h"
  8469. #if HAVE_DLFCN_H
  8470. #include <dlfcn.h>
  8471. #endif
  8472. #include <stdio.h>
  8473. #ifdef RTLD_GLOBAL
  8474. # define LT_DLGLOBAL RTLD_GLOBAL
  8475. #else
  8476. # ifdef DL_GLOBAL
  8477. # define LT_DLGLOBAL DL_GLOBAL
  8478. # else
  8479. # define LT_DLGLOBAL 0
  8480. # endif
  8481. #endif
  8482. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8483. find out it does not work in some platform. */
  8484. #ifndef LT_DLLAZY_OR_NOW
  8485. # ifdef RTLD_LAZY
  8486. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8487. # else
  8488. # ifdef DL_LAZY
  8489. # define LT_DLLAZY_OR_NOW DL_LAZY
  8490. # else
  8491. # ifdef RTLD_NOW
  8492. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8493. # else
  8494. # ifdef DL_NOW
  8495. # define LT_DLLAZY_OR_NOW DL_NOW
  8496. # else
  8497. # define LT_DLLAZY_OR_NOW 0
  8498. # endif
  8499. # endif
  8500. # endif
  8501. # endif
  8502. #endif
  8503. #ifdef __cplusplus
  8504. extern "C" void exit (int);
  8505. #endif
  8506. void fnord() { int i=42;}
  8507. int main ()
  8508. {
  8509. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8510. int status = $lt_dlunknown;
  8511. if (self)
  8512. {
  8513. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8514. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8515. /* dlclose (self); */
  8516. }
  8517. else
  8518. puts (dlerror ());
  8519. exit (status);
  8520. }
  8521. EOF
  8522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8523. (eval $ac_link) 2>&5
  8524. ac_status=$?
  8525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8526. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8527. (./conftest; exit; ) >&5 2>/dev/null
  8528. lt_status=$?
  8529. case x$lt_status in
  8530. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8531. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8532. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8533. esac
  8534. else :
  8535. # compilation failed
  8536. lt_cv_dlopen_self_static=no
  8537. fi
  8538. fi
  8539. rm -fr conftest*
  8540. fi
  8541. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8542. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8543. fi
  8544. CPPFLAGS="$save_CPPFLAGS"
  8545. LDFLAGS="$save_LDFLAGS"
  8546. LIBS="$save_LIBS"
  8547. ;;
  8548. esac
  8549. case $lt_cv_dlopen_self in
  8550. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8551. *) enable_dlopen_self=unknown ;;
  8552. esac
  8553. case $lt_cv_dlopen_self_static in
  8554. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8555. *) enable_dlopen_self_static=unknown ;;
  8556. esac
  8557. fi
  8558. # Report which library types will actually be built
  8559. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8560. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8561. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8562. echo "${ECHO_T}$can_build_shared" >&6
  8563. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8564. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8565. test "$can_build_shared" = "no" && enable_shared=no
  8566. # On AIX, shared libraries and static libraries use the same namespace, and
  8567. # are all built from PIC.
  8568. case $host_os in
  8569. aix3*)
  8570. test "$enable_shared" = yes && enable_static=no
  8571. if test -n "$RANLIB"; then
  8572. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8573. postinstall_cmds='$RANLIB $lib'
  8574. fi
  8575. ;;
  8576. aix4* | aix5*)
  8577. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8578. test "$enable_shared" = yes && enable_static=no
  8579. fi
  8580. ;;
  8581. esac
  8582. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8583. echo "${ECHO_T}$enable_shared" >&6
  8584. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8585. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8586. # Make sure either enable_shared or enable_static is yes.
  8587. test "$enable_shared" = yes || enable_static=yes
  8588. echo "$as_me:$LINENO: result: $enable_static" >&5
  8589. echo "${ECHO_T}$enable_static" >&6
  8590. # The else clause should only fire when bootstrapping the
  8591. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8592. # with your package, and you will get complaints that there are
  8593. # no rules to generate ltmain.sh.
  8594. if test -f "$ltmain"; then
  8595. # See if we are running on zsh, and set the options which allow our commands through
  8596. # without removal of \ escapes.
  8597. if test -n "${ZSH_VERSION+set}" ; then
  8598. setopt NO_GLOB_SUBST
  8599. fi
  8600. # Now quote all the things that may contain metacharacters while being
  8601. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8602. # variables and quote the copies for generation of the libtool script.
  8603. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8604. SED SHELL STRIP \
  8605. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8606. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8607. deplibs_check_method reload_flag reload_cmds need_locks \
  8608. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8609. lt_cv_sys_global_symbol_to_c_name_address \
  8610. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8611. old_postinstall_cmds old_postuninstall_cmds \
  8612. compiler \
  8613. CC \
  8614. LD \
  8615. lt_prog_compiler_wl \
  8616. lt_prog_compiler_pic \
  8617. lt_prog_compiler_static \
  8618. lt_prog_compiler_no_builtin_flag \
  8619. export_dynamic_flag_spec \
  8620. thread_safe_flag_spec \
  8621. whole_archive_flag_spec \
  8622. enable_shared_with_static_runtimes \
  8623. old_archive_cmds \
  8624. old_archive_from_new_cmds \
  8625. predep_objects \
  8626. postdep_objects \
  8627. predeps \
  8628. postdeps \
  8629. compiler_lib_search_path \
  8630. archive_cmds \
  8631. archive_expsym_cmds \
  8632. postinstall_cmds \
  8633. postuninstall_cmds \
  8634. old_archive_from_expsyms_cmds \
  8635. allow_undefined_flag \
  8636. no_undefined_flag \
  8637. export_symbols_cmds \
  8638. hardcode_libdir_flag_spec \
  8639. hardcode_libdir_flag_spec_ld \
  8640. hardcode_libdir_separator \
  8641. hardcode_automatic \
  8642. module_cmds \
  8643. module_expsym_cmds \
  8644. lt_cv_prog_compiler_c_o \
  8645. exclude_expsyms \
  8646. include_expsyms; do
  8647. case $var in
  8648. old_archive_cmds | \
  8649. old_archive_from_new_cmds | \
  8650. archive_cmds | \
  8651. archive_expsym_cmds | \
  8652. module_cmds | \
  8653. module_expsym_cmds | \
  8654. old_archive_from_expsyms_cmds | \
  8655. export_symbols_cmds | \
  8656. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8657. postinstall_cmds | postuninstall_cmds | \
  8658. old_postinstall_cmds | old_postuninstall_cmds | \
  8659. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8660. # Double-quote double-evaled strings.
  8661. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8662. ;;
  8663. *)
  8664. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8665. ;;
  8666. esac
  8667. done
  8668. case $lt_echo in
  8669. *'\$0 --fallback-echo"')
  8670. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8671. ;;
  8672. esac
  8673. cfgfile="${ofile}T"
  8674. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8675. $rm -f "$cfgfile"
  8676. { echo "$as_me:$LINENO: creating $ofile" >&5
  8677. echo "$as_me: creating $ofile" >&6;}
  8678. cat <<__EOF__ >> "$cfgfile"
  8679. #! $SHELL
  8680. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8681. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8682. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8683. #
  8684. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8685. # Free Software Foundation, Inc.
  8686. #
  8687. # This file is part of GNU Libtool:
  8688. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8689. #
  8690. # This program is free software; you can redistribute it and/or modify
  8691. # it under the terms of the GNU General Public License as published by
  8692. # the Free Software Foundation; either version 2 of the License, or
  8693. # (at your option) any later version.
  8694. #
  8695. # This program is distributed in the hope that it will be useful, but
  8696. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8697. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8698. # General Public License for more details.
  8699. #
  8700. # You should have received a copy of the GNU General Public License
  8701. # along with this program; if not, write to the Free Software
  8702. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8703. #
  8704. # As a special exception to the GNU General Public License, if you
  8705. # distribute this file as part of a program that contains a
  8706. # configuration script generated by Autoconf, you may include it under
  8707. # the same distribution terms that you use for the rest of that program.
  8708. # A sed program that does not truncate output.
  8709. SED=$lt_SED
  8710. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8711. Xsed="$SED -e 1s/^X//"
  8712. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8713. # if CDPATH is set.
  8714. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8715. # The names of the tagged configurations supported by this script.
  8716. available_tags=
  8717. # ### BEGIN LIBTOOL CONFIG
  8718. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8719. # Shell to use when invoking shell scripts.
  8720. SHELL=$lt_SHELL
  8721. # Whether or not to build shared libraries.
  8722. build_libtool_libs=$enable_shared
  8723. # Whether or not to build static libraries.
  8724. build_old_libs=$enable_static
  8725. # Whether or not to add -lc for building shared libraries.
  8726. build_libtool_need_lc=$archive_cmds_need_lc
  8727. # Whether or not to disallow shared libs when runtime libs are static
  8728. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8729. # Whether or not to optimize for fast installation.
  8730. fast_install=$enable_fast_install
  8731. # The host system.
  8732. host_alias=$host_alias
  8733. host=$host
  8734. host_os=$host_os
  8735. # The build system.
  8736. build_alias=$build_alias
  8737. build=$build
  8738. build_os=$build_os
  8739. # An echo program that does not interpret backslashes.
  8740. echo=$lt_echo
  8741. # The archiver.
  8742. AR=$lt_AR
  8743. AR_FLAGS=$lt_AR_FLAGS
  8744. # A C compiler.
  8745. LTCC=$lt_LTCC
  8746. # LTCC compiler flags.
  8747. LTCFLAGS=$lt_LTCFLAGS
  8748. # A language-specific compiler.
  8749. CC=$lt_compiler
  8750. # Is the compiler the GNU C compiler?
  8751. with_gcc=$GCC
  8752. # An ERE matcher.
  8753. EGREP=$lt_EGREP
  8754. # The linker used to build libraries.
  8755. LD=$lt_LD
  8756. # Whether we need hard or soft links.
  8757. LN_S=$lt_LN_S
  8758. # A BSD-compatible nm program.
  8759. NM=$lt_NM
  8760. # A symbol stripping program
  8761. STRIP=$lt_STRIP
  8762. # Used to examine libraries when file_magic_cmd begins "file"
  8763. MAGIC_CMD=$MAGIC_CMD
  8764. # Used on cygwin: DLL creation program.
  8765. DLLTOOL="$DLLTOOL"
  8766. # Used on cygwin: object dumper.
  8767. OBJDUMP="$OBJDUMP"
  8768. # Used on cygwin: assembler.
  8769. AS="$AS"
  8770. # The name of the directory that contains temporary libtool files.
  8771. objdir=$objdir
  8772. # How to create reloadable object files.
  8773. reload_flag=$lt_reload_flag
  8774. reload_cmds=$lt_reload_cmds
  8775. # How to pass a linker flag through the compiler.
  8776. wl=$lt_lt_prog_compiler_wl
  8777. # Object file suffix (normally "o").
  8778. objext="$ac_objext"
  8779. # Old archive suffix (normally "a").
  8780. libext="$libext"
  8781. # Shared library suffix (normally ".so").
  8782. shrext_cmds='$shrext_cmds'
  8783. # Executable file suffix (normally "").
  8784. exeext="$exeext"
  8785. # Additional compiler flags for building library objects.
  8786. pic_flag=$lt_lt_prog_compiler_pic
  8787. pic_mode=$pic_mode
  8788. # What is the maximum length of a command?
  8789. max_cmd_len=$lt_cv_sys_max_cmd_len
  8790. # Does compiler simultaneously support -c and -o options?
  8791. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8792. # Must we lock files when doing compilation?
  8793. need_locks=$lt_need_locks
  8794. # Do we need the lib prefix for modules?
  8795. need_lib_prefix=$need_lib_prefix
  8796. # Do we need a version for libraries?
  8797. need_version=$need_version
  8798. # Whether dlopen is supported.
  8799. dlopen_support=$enable_dlopen
  8800. # Whether dlopen of programs is supported.
  8801. dlopen_self=$enable_dlopen_self
  8802. # Whether dlopen of statically linked programs is supported.
  8803. dlopen_self_static=$enable_dlopen_self_static
  8804. # Compiler flag to prevent dynamic linking.
  8805. link_static_flag=$lt_lt_prog_compiler_static
  8806. # Compiler flag to turn off builtin functions.
  8807. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8808. # Compiler flag to allow reflexive dlopens.
  8809. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8810. # Compiler flag to generate shared objects directly from archives.
  8811. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8812. # Compiler flag to generate thread-safe objects.
  8813. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8814. # Library versioning type.
  8815. version_type=$version_type
  8816. # Format of library name prefix.
  8817. libname_spec=$lt_libname_spec
  8818. # List of archive names. First name is the real one, the rest are links.
  8819. # The last name is the one that the linker finds with -lNAME.
  8820. library_names_spec=$lt_library_names_spec
  8821. # The coded name of the library, if different from the real name.
  8822. soname_spec=$lt_soname_spec
  8823. # Commands used to build and install an old-style archive.
  8824. RANLIB=$lt_RANLIB
  8825. old_archive_cmds=$lt_old_archive_cmds
  8826. old_postinstall_cmds=$lt_old_postinstall_cmds
  8827. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8828. # Create an old-style archive from a shared archive.
  8829. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8830. # Create a temporary old-style archive to link instead of a shared archive.
  8831. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8832. # Commands used to build and install a shared archive.
  8833. archive_cmds=$lt_archive_cmds
  8834. archive_expsym_cmds=$lt_archive_expsym_cmds
  8835. postinstall_cmds=$lt_postinstall_cmds
  8836. postuninstall_cmds=$lt_postuninstall_cmds
  8837. # Commands used to build a loadable module (assumed same as above if empty)
  8838. module_cmds=$lt_module_cmds
  8839. module_expsym_cmds=$lt_module_expsym_cmds
  8840. # Commands to strip libraries.
  8841. old_striplib=$lt_old_striplib
  8842. striplib=$lt_striplib
  8843. # Dependencies to place before the objects being linked to create a
  8844. # shared library.
  8845. predep_objects=$lt_predep_objects
  8846. # Dependencies to place after the objects being linked to create a
  8847. # shared library.
  8848. postdep_objects=$lt_postdep_objects
  8849. # Dependencies to place before the objects being linked to create a
  8850. # shared library.
  8851. predeps=$lt_predeps
  8852. # Dependencies to place after the objects being linked to create a
  8853. # shared library.
  8854. postdeps=$lt_postdeps
  8855. # The library search path used internally by the compiler when linking
  8856. # a shared library.
  8857. compiler_lib_search_path=$lt_compiler_lib_search_path
  8858. # Method to check whether dependent libraries are shared objects.
  8859. deplibs_check_method=$lt_deplibs_check_method
  8860. # Command to use when deplibs_check_method == file_magic.
  8861. file_magic_cmd=$lt_file_magic_cmd
  8862. # Flag that allows shared libraries with undefined symbols to be built.
  8863. allow_undefined_flag=$lt_allow_undefined_flag
  8864. # Flag that forces no undefined symbols.
  8865. no_undefined_flag=$lt_no_undefined_flag
  8866. # Commands used to finish a libtool library installation in a directory.
  8867. finish_cmds=$lt_finish_cmds
  8868. # Same as above, but a single script fragment to be evaled but not shown.
  8869. finish_eval=$lt_finish_eval
  8870. # Take the output of nm and produce a listing of raw symbols and C names.
  8871. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8872. # Transform the output of nm in a proper C declaration
  8873. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8874. # Transform the output of nm in a C name address pair
  8875. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8876. # This is the shared library runtime path variable.
  8877. runpath_var=$runpath_var
  8878. # This is the shared library path variable.
  8879. shlibpath_var=$shlibpath_var
  8880. # Is shlibpath searched before the hard-coded library search path?
  8881. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8882. # How to hardcode a shared library path into an executable.
  8883. hardcode_action=$hardcode_action
  8884. # Whether we should hardcode library paths into libraries.
  8885. hardcode_into_libs=$hardcode_into_libs
  8886. # Flag to hardcode \$libdir into a binary during linking.
  8887. # This must work even if \$libdir does not exist.
  8888. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8889. # If ld is used when linking, flag to hardcode \$libdir into
  8890. # a binary during linking. This must work even if \$libdir does
  8891. # not exist.
  8892. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8893. # Whether we need a single -rpath flag with a separated argument.
  8894. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8895. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8896. # resulting binary.
  8897. hardcode_direct=$hardcode_direct
  8898. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8899. # resulting binary.
  8900. hardcode_minus_L=$hardcode_minus_L
  8901. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8902. # the resulting binary.
  8903. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8904. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8905. # and all subsequent libraries and executables linked against it.
  8906. hardcode_automatic=$hardcode_automatic
  8907. # Variables whose values should be saved in libtool wrapper scripts and
  8908. # restored at relink time.
  8909. variables_saved_for_relink="$variables_saved_for_relink"
  8910. # Whether libtool must link a program against all its dependency libraries.
  8911. link_all_deplibs=$link_all_deplibs
  8912. # Compile-time system search path for libraries
  8913. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8914. # Run-time system search path for libraries
  8915. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8916. # Fix the shell variable \$srcfile for the compiler.
  8917. fix_srcfile_path="$fix_srcfile_path"
  8918. # Set to yes if exported symbols are required.
  8919. always_export_symbols=$always_export_symbols
  8920. # The commands to list exported symbols.
  8921. export_symbols_cmds=$lt_export_symbols_cmds
  8922. # The commands to extract the exported symbol list from a shared archive.
  8923. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8924. # Symbols that should not be listed in the preloaded symbols.
  8925. exclude_expsyms=$lt_exclude_expsyms
  8926. # Symbols that must always be exported.
  8927. include_expsyms=$lt_include_expsyms
  8928. # ### END LIBTOOL CONFIG
  8929. __EOF__
  8930. case $host_os in
  8931. aix3*)
  8932. cat <<\EOF >> "$cfgfile"
  8933. # AIX sometimes has problems with the GCC collect2 program. For some
  8934. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8935. # vanish in a puff of smoke.
  8936. if test "X${COLLECT_NAMES+set}" != Xset; then
  8937. COLLECT_NAMES=
  8938. export COLLECT_NAMES
  8939. fi
  8940. EOF
  8941. ;;
  8942. esac
  8943. # We use sed instead of cat because bash on DJGPP gets confused if
  8944. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8945. # text mode, it properly converts lines to CR/LF. This bash problem
  8946. # is reportedly fixed, but why not run on old versions too?
  8947. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8948. mv -f "$cfgfile" "$ofile" || \
  8949. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8950. chmod +x "$ofile"
  8951. else
  8952. # If there is no Makefile yet, we rely on a make rule to execute
  8953. # `config.status --recheck' to rerun these tests and create the
  8954. # libtool script then.
  8955. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8956. if test -f "$ltmain_in"; then
  8957. test -f Makefile && make "$ltmain"
  8958. fi
  8959. fi
  8960. ac_ext=c
  8961. ac_cpp='$CPP $CPPFLAGS'
  8962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8965. CC="$lt_save_CC"
  8966. # Check whether --with-tags or --without-tags was given.
  8967. if test "${with_tags+set}" = set; then
  8968. withval="$with_tags"
  8969. tagnames="$withval"
  8970. fi;
  8971. if test -f "$ltmain" && test -n "$tagnames"; then
  8972. if test ! -f "${ofile}"; then
  8973. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8974. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8975. fi
  8976. if test -z "$LTCC"; then
  8977. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8978. if test -z "$LTCC"; then
  8979. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8980. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8981. else
  8982. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8983. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8984. fi
  8985. fi
  8986. if test -z "$LTCFLAGS"; then
  8987. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8988. fi
  8989. # Extract list of available tagged configurations in $ofile.
  8990. # Note that this assumes the entire list is on one line.
  8991. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8992. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8993. for tagname in $tagnames; do
  8994. IFS="$lt_save_ifs"
  8995. # Check whether tagname contains only valid characters
  8996. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8997. "") ;;
  8998. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8999. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9000. { (exit 1); exit 1; }; }
  9001. ;;
  9002. esac
  9003. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9004. then
  9005. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9006. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9007. { (exit 1); exit 1; }; }
  9008. fi
  9009. # Update the list of available tags.
  9010. if test -n "$tagname"; then
  9011. echo appending configuration tag \"$tagname\" to $ofile
  9012. case $tagname in
  9013. CXX)
  9014. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9015. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9016. (test "X$CXX" != "Xg++"))) ; then
  9017. ac_ext=cc
  9018. ac_cpp='$CXXCPP $CPPFLAGS'
  9019. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9020. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9021. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9022. archive_cmds_need_lc_CXX=no
  9023. allow_undefined_flag_CXX=
  9024. always_export_symbols_CXX=no
  9025. archive_expsym_cmds_CXX=
  9026. export_dynamic_flag_spec_CXX=
  9027. hardcode_direct_CXX=no
  9028. hardcode_libdir_flag_spec_CXX=
  9029. hardcode_libdir_flag_spec_ld_CXX=
  9030. hardcode_libdir_separator_CXX=
  9031. hardcode_minus_L_CXX=no
  9032. hardcode_shlibpath_var_CXX=unsupported
  9033. hardcode_automatic_CXX=no
  9034. module_cmds_CXX=
  9035. module_expsym_cmds_CXX=
  9036. link_all_deplibs_CXX=unknown
  9037. old_archive_cmds_CXX=$old_archive_cmds
  9038. no_undefined_flag_CXX=
  9039. whole_archive_flag_spec_CXX=
  9040. enable_shared_with_static_runtimes_CXX=no
  9041. # Dependencies to place before and after the object being linked:
  9042. predep_objects_CXX=
  9043. postdep_objects_CXX=
  9044. predeps_CXX=
  9045. postdeps_CXX=
  9046. compiler_lib_search_path_CXX=
  9047. # Source file extension for C++ test sources.
  9048. ac_ext=cpp
  9049. # Object file extension for compiled C++ test sources.
  9050. objext=o
  9051. objext_CXX=$objext
  9052. # Code to be used in simple compile tests
  9053. lt_simple_compile_test_code="int some_variable = 0;\n"
  9054. # Code to be used in simple link tests
  9055. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9056. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9057. # If no C compiler was specified, use CC.
  9058. LTCC=${LTCC-"$CC"}
  9059. # If no C compiler flags were specified, use CFLAGS.
  9060. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9061. # Allow CC to be a program name with arguments.
  9062. compiler=$CC
  9063. # save warnings/boilerplate of simple test code
  9064. ac_outfile=conftest.$ac_objext
  9065. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9066. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9067. _lt_compiler_boilerplate=`cat conftest.err`
  9068. $rm conftest*
  9069. ac_outfile=conftest.$ac_objext
  9070. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9071. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9072. _lt_linker_boilerplate=`cat conftest.err`
  9073. $rm conftest*
  9074. # Allow CC to be a program name with arguments.
  9075. lt_save_CC=$CC
  9076. lt_save_LD=$LD
  9077. lt_save_GCC=$GCC
  9078. GCC=$GXX
  9079. lt_save_with_gnu_ld=$with_gnu_ld
  9080. lt_save_path_LD=$lt_cv_path_LD
  9081. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9082. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9083. else
  9084. $as_unset lt_cv_prog_gnu_ld
  9085. fi
  9086. if test -n "${lt_cv_path_LDCXX+set}"; then
  9087. lt_cv_path_LD=$lt_cv_path_LDCXX
  9088. else
  9089. $as_unset lt_cv_path_LD
  9090. fi
  9091. test -z "${LDCXX+set}" || LD=$LDCXX
  9092. CC=${CXX-"c++"}
  9093. compiler=$CC
  9094. compiler_CXX=$CC
  9095. for cc_temp in $compiler""; do
  9096. case $cc_temp in
  9097. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9098. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9099. \-*) ;;
  9100. *) break;;
  9101. esac
  9102. done
  9103. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9104. # We don't want -fno-exception wen compiling C++ code, so set the
  9105. # no_builtin_flag separately
  9106. if test "$GXX" = yes; then
  9107. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9108. else
  9109. lt_prog_compiler_no_builtin_flag_CXX=
  9110. fi
  9111. if test "$GXX" = yes; then
  9112. # Set up default GNU C++ configuration
  9113. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9114. if test "${with_gnu_ld+set}" = set; then
  9115. withval="$with_gnu_ld"
  9116. test "$withval" = no || with_gnu_ld=yes
  9117. else
  9118. with_gnu_ld=no
  9119. fi;
  9120. ac_prog=ld
  9121. if test "$GCC" = yes; then
  9122. # Check if gcc -print-prog-name=ld gives a path.
  9123. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9124. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9125. case $host in
  9126. *-*-mingw*)
  9127. # gcc leaves a trailing carriage return which upsets mingw
  9128. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9129. *)
  9130. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9131. esac
  9132. case $ac_prog in
  9133. # Accept absolute paths.
  9134. [\\/]* | ?:[\\/]*)
  9135. re_direlt='/[^/][^/]*/\.\./'
  9136. # Canonicalize the pathname of ld
  9137. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9138. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9139. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9140. done
  9141. test -z "$LD" && LD="$ac_prog"
  9142. ;;
  9143. "")
  9144. # If it fails, then pretend we aren't using GCC.
  9145. ac_prog=ld
  9146. ;;
  9147. *)
  9148. # If it is relative, then search for the first ld in PATH.
  9149. with_gnu_ld=unknown
  9150. ;;
  9151. esac
  9152. elif test "$with_gnu_ld" = yes; then
  9153. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9154. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9155. else
  9156. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9157. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9158. fi
  9159. if test "${lt_cv_path_LD+set}" = set; then
  9160. echo $ECHO_N "(cached) $ECHO_C" >&6
  9161. else
  9162. if test -z "$LD"; then
  9163. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9164. for ac_dir in $PATH; do
  9165. IFS="$lt_save_ifs"
  9166. test -z "$ac_dir" && ac_dir=.
  9167. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9168. lt_cv_path_LD="$ac_dir/$ac_prog"
  9169. # Check to see if the program is GNU ld. I'd rather use --version,
  9170. # but apparently some variants of GNU ld only accept -v.
  9171. # Break only if it was the GNU/non-GNU ld that we prefer.
  9172. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9173. *GNU* | *'with BFD'*)
  9174. test "$with_gnu_ld" != no && break
  9175. ;;
  9176. *)
  9177. test "$with_gnu_ld" != yes && break
  9178. ;;
  9179. esac
  9180. fi
  9181. done
  9182. IFS="$lt_save_ifs"
  9183. else
  9184. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9185. fi
  9186. fi
  9187. LD="$lt_cv_path_LD"
  9188. if test -n "$LD"; then
  9189. echo "$as_me:$LINENO: result: $LD" >&5
  9190. echo "${ECHO_T}$LD" >&6
  9191. else
  9192. echo "$as_me:$LINENO: result: no" >&5
  9193. echo "${ECHO_T}no" >&6
  9194. fi
  9195. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9196. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9197. { (exit 1); exit 1; }; }
  9198. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9199. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9200. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9201. echo $ECHO_N "(cached) $ECHO_C" >&6
  9202. else
  9203. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9204. case `$LD -v 2>&1 </dev/null` in
  9205. *GNU* | *'with BFD'*)
  9206. lt_cv_prog_gnu_ld=yes
  9207. ;;
  9208. *)
  9209. lt_cv_prog_gnu_ld=no
  9210. ;;
  9211. esac
  9212. fi
  9213. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9214. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9215. with_gnu_ld=$lt_cv_prog_gnu_ld
  9216. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9217. # archiving commands below assume that GNU ld is being used.
  9218. if test "$with_gnu_ld" = yes; then
  9219. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9220. 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'
  9221. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9222. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9223. # If archive_cmds runs LD, not CC, wlarc should be empty
  9224. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9225. # investigate it a little bit more. (MM)
  9226. wlarc='${wl}'
  9227. # ancient GNU ld didn't support --whole-archive et. al.
  9228. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9229. grep 'no-whole-archive' > /dev/null; then
  9230. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9231. else
  9232. whole_archive_flag_spec_CXX=
  9233. fi
  9234. else
  9235. with_gnu_ld=no
  9236. wlarc=
  9237. # A generic and very simple default shared library creation
  9238. # command for GNU C++ for the case where it uses the native
  9239. # linker, instead of GNU ld. If possible, this setting should
  9240. # overridden to take advantage of the native linker features on
  9241. # the platform it is being used on.
  9242. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9243. fi
  9244. # Commands to make compiler produce verbose output that lists
  9245. # what "hidden" libraries, object files and flags are used when
  9246. # linking a shared library.
  9247. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9248. else
  9249. GXX=no
  9250. with_gnu_ld=no
  9251. wlarc=
  9252. fi
  9253. # PORTME: fill in a description of your system's C++ link characteristics
  9254. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9255. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9256. ld_shlibs_CXX=yes
  9257. case $host_os in
  9258. aix3*)
  9259. # FIXME: insert proper C++ library support
  9260. ld_shlibs_CXX=no
  9261. ;;
  9262. aix4* | aix5*)
  9263. if test "$host_cpu" = ia64; then
  9264. # On IA64, the linker does run time linking by default, so we don't
  9265. # have to do anything special.
  9266. aix_use_runtimelinking=no
  9267. exp_sym_flag='-Bexport'
  9268. no_entry_flag=""
  9269. else
  9270. aix_use_runtimelinking=no
  9271. # Test if we are trying to use run time linking or normal
  9272. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9273. # need to do runtime linking.
  9274. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9275. for ld_flag in $LDFLAGS; do
  9276. case $ld_flag in
  9277. *-brtl*)
  9278. aix_use_runtimelinking=yes
  9279. break
  9280. ;;
  9281. esac
  9282. done
  9283. ;;
  9284. esac
  9285. exp_sym_flag='-bexport'
  9286. no_entry_flag='-bnoentry'
  9287. fi
  9288. # When large executables or shared objects are built, AIX ld can
  9289. # have problems creating the table of contents. If linking a library
  9290. # or program results in "error TOC overflow" add -mminimal-toc to
  9291. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9292. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9293. archive_cmds_CXX=''
  9294. hardcode_direct_CXX=yes
  9295. hardcode_libdir_separator_CXX=':'
  9296. link_all_deplibs_CXX=yes
  9297. if test "$GXX" = yes; then
  9298. case $host_os in aix4.[012]|aix4.[012].*)
  9299. # We only want to do this on AIX 4.2 and lower, the check
  9300. # below for broken collect2 doesn't work under 4.3+
  9301. collect2name=`${CC} -print-prog-name=collect2`
  9302. if test -f "$collect2name" && \
  9303. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9304. then
  9305. # We have reworked collect2
  9306. hardcode_direct_CXX=yes
  9307. else
  9308. # We have old collect2
  9309. hardcode_direct_CXX=unsupported
  9310. # It fails to find uninstalled libraries when the uninstalled
  9311. # path is not listed in the libpath. Setting hardcode_minus_L
  9312. # to unsupported forces relinking
  9313. hardcode_minus_L_CXX=yes
  9314. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9315. hardcode_libdir_separator_CXX=
  9316. fi
  9317. ;;
  9318. esac
  9319. shared_flag='-shared'
  9320. if test "$aix_use_runtimelinking" = yes; then
  9321. shared_flag="$shared_flag "'${wl}-G'
  9322. fi
  9323. else
  9324. # not using gcc
  9325. if test "$host_cpu" = ia64; then
  9326. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9327. # chokes on -Wl,-G. The following line is correct:
  9328. shared_flag='-G'
  9329. else
  9330. if test "$aix_use_runtimelinking" = yes; then
  9331. shared_flag='${wl}-G'
  9332. else
  9333. shared_flag='${wl}-bM:SRE'
  9334. fi
  9335. fi
  9336. fi
  9337. # It seems that -bexpall does not export symbols beginning with
  9338. # underscore (_), so it is better to generate a list of symbols to export.
  9339. always_export_symbols_CXX=yes
  9340. if test "$aix_use_runtimelinking" = yes; then
  9341. # Warning - without using the other runtime loading flags (-brtl),
  9342. # -berok will link without error, but may produce a broken library.
  9343. allow_undefined_flag_CXX='-berok'
  9344. # Determine the default libpath from the value encoded in an empty executable.
  9345. cat >conftest.$ac_ext <<_ACEOF
  9346. /* confdefs.h. */
  9347. _ACEOF
  9348. cat confdefs.h >>conftest.$ac_ext
  9349. cat >>conftest.$ac_ext <<_ACEOF
  9350. /* end confdefs.h. */
  9351. int
  9352. main ()
  9353. {
  9354. ;
  9355. return 0;
  9356. }
  9357. _ACEOF
  9358. rm -f conftest.$ac_objext conftest$ac_exeext
  9359. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9360. (eval $ac_link) 2>conftest.er1
  9361. ac_status=$?
  9362. grep -v '^ *+' conftest.er1 >conftest.err
  9363. rm -f conftest.er1
  9364. cat conftest.err >&5
  9365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9366. (exit $ac_status); } &&
  9367. { ac_try='test -z "$ac_cxx_werror_flag"
  9368. || test ! -s conftest.err'
  9369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9370. (eval $ac_try) 2>&5
  9371. ac_status=$?
  9372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9373. (exit $ac_status); }; } &&
  9374. { ac_try='test -s conftest$ac_exeext'
  9375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9376. (eval $ac_try) 2>&5
  9377. ac_status=$?
  9378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9379. (exit $ac_status); }; }; then
  9380. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9381. }'`
  9382. # Check for a 64-bit object if we didn't find anything.
  9383. 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; }
  9384. }'`; fi
  9385. else
  9386. echo "$as_me: failed program was:" >&5
  9387. sed 's/^/| /' conftest.$ac_ext >&5
  9388. fi
  9389. rm -f conftest.err conftest.$ac_objext \
  9390. conftest$ac_exeext conftest.$ac_ext
  9391. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9392. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9393. 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"
  9394. else
  9395. if test "$host_cpu" = ia64; then
  9396. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9397. allow_undefined_flag_CXX="-z nodefs"
  9398. 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"
  9399. else
  9400. # Determine the default libpath from the value encoded in an empty executable.
  9401. cat >conftest.$ac_ext <<_ACEOF
  9402. /* confdefs.h. */
  9403. _ACEOF
  9404. cat confdefs.h >>conftest.$ac_ext
  9405. cat >>conftest.$ac_ext <<_ACEOF
  9406. /* end confdefs.h. */
  9407. int
  9408. main ()
  9409. {
  9410. ;
  9411. return 0;
  9412. }
  9413. _ACEOF
  9414. rm -f conftest.$ac_objext conftest$ac_exeext
  9415. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9416. (eval $ac_link) 2>conftest.er1
  9417. ac_status=$?
  9418. grep -v '^ *+' conftest.er1 >conftest.err
  9419. rm -f conftest.er1
  9420. cat conftest.err >&5
  9421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9422. (exit $ac_status); } &&
  9423. { ac_try='test -z "$ac_cxx_werror_flag"
  9424. || test ! -s conftest.err'
  9425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9426. (eval $ac_try) 2>&5
  9427. ac_status=$?
  9428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9429. (exit $ac_status); }; } &&
  9430. { ac_try='test -s conftest$ac_exeext'
  9431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9432. (eval $ac_try) 2>&5
  9433. ac_status=$?
  9434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9435. (exit $ac_status); }; }; then
  9436. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9437. }'`
  9438. # Check for a 64-bit object if we didn't find anything.
  9439. 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; }
  9440. }'`; fi
  9441. else
  9442. echo "$as_me: failed program was:" >&5
  9443. sed 's/^/| /' conftest.$ac_ext >&5
  9444. fi
  9445. rm -f conftest.err conftest.$ac_objext \
  9446. conftest$ac_exeext conftest.$ac_ext
  9447. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9448. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9449. # Warning - without using the other run time loading flags,
  9450. # -berok will link without error, but may produce a broken library.
  9451. no_undefined_flag_CXX=' ${wl}-bernotok'
  9452. allow_undefined_flag_CXX=' ${wl}-berok'
  9453. # Exported symbols can be pulled into shared objects from archives
  9454. whole_archive_flag_spec_CXX='$convenience'
  9455. archive_cmds_need_lc_CXX=yes
  9456. # This is similar to how AIX traditionally builds its shared libraries.
  9457. 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'
  9458. fi
  9459. fi
  9460. ;;
  9461. beos*)
  9462. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9463. allow_undefined_flag_CXX=unsupported
  9464. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9465. # support --undefined. This deserves some investigation. FIXME
  9466. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9467. else
  9468. ld_shlibs_CXX=no
  9469. fi
  9470. ;;
  9471. chorus*)
  9472. case $cc_basename in
  9473. *)
  9474. # FIXME: insert proper C++ library support
  9475. ld_shlibs_CXX=no
  9476. ;;
  9477. esac
  9478. ;;
  9479. cygwin* | mingw* | pw32*)
  9480. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9481. # as there is no search path for DLLs.
  9482. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9483. allow_undefined_flag_CXX=unsupported
  9484. always_export_symbols_CXX=no
  9485. enable_shared_with_static_runtimes_CXX=yes
  9486. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9487. 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'
  9488. # If the export-symbols file already is a .def file (1st line
  9489. # is EXPORTS), use it as is; otherwise, prepend...
  9490. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9491. cp $export_symbols $output_objdir/$soname.def;
  9492. else
  9493. echo EXPORTS > $output_objdir/$soname.def;
  9494. cat $export_symbols >> $output_objdir/$soname.def;
  9495. fi~
  9496. $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'
  9497. else
  9498. ld_shlibs_CXX=no
  9499. fi
  9500. ;;
  9501. darwin* | rhapsody*)
  9502. case $host_os in
  9503. rhapsody* | darwin1.[012])
  9504. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9505. ;;
  9506. *) # Darwin 1.3 on
  9507. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9508. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9509. else
  9510. case ${MACOSX_DEPLOYMENT_TARGET} in
  9511. 10.[012])
  9512. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9513. ;;
  9514. 10.*)
  9515. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9516. ;;
  9517. esac
  9518. fi
  9519. ;;
  9520. esac
  9521. archive_cmds_need_lc_CXX=no
  9522. hardcode_direct_CXX=no
  9523. hardcode_automatic_CXX=yes
  9524. hardcode_shlibpath_var_CXX=unsupported
  9525. whole_archive_flag_spec_CXX=''
  9526. link_all_deplibs_CXX=yes
  9527. if test "$GXX" = yes ; then
  9528. lt_int_apple_cc_single_mod=no
  9529. output_verbose_link_cmd='echo'
  9530. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9531. lt_int_apple_cc_single_mod=yes
  9532. fi
  9533. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9534. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9535. else
  9536. 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'
  9537. fi
  9538. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9539. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9540. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9541. 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}'
  9542. else
  9543. 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}'
  9544. fi
  9545. 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}'
  9546. else
  9547. case $cc_basename in
  9548. xlc*)
  9549. output_verbose_link_cmd='echo'
  9550. 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'
  9551. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9552. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9553. 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}'
  9554. 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}'
  9555. ;;
  9556. *)
  9557. ld_shlibs_CXX=no
  9558. ;;
  9559. esac
  9560. fi
  9561. ;;
  9562. dgux*)
  9563. case $cc_basename in
  9564. ec++*)
  9565. # FIXME: insert proper C++ library support
  9566. ld_shlibs_CXX=no
  9567. ;;
  9568. ghcx*)
  9569. # Green Hills C++ Compiler
  9570. # FIXME: insert proper C++ library support
  9571. ld_shlibs_CXX=no
  9572. ;;
  9573. *)
  9574. # FIXME: insert proper C++ library support
  9575. ld_shlibs_CXX=no
  9576. ;;
  9577. esac
  9578. ;;
  9579. freebsd[12]*)
  9580. # C++ shared libraries reported to be fairly broken before switch to ELF
  9581. ld_shlibs_CXX=no
  9582. ;;
  9583. freebsd-elf*)
  9584. archive_cmds_need_lc_CXX=no
  9585. ;;
  9586. freebsd* | kfreebsd*-gnu | dragonfly*)
  9587. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9588. # conventions
  9589. ld_shlibs_CXX=yes
  9590. ;;
  9591. gnu*)
  9592. ;;
  9593. hpux9*)
  9594. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9595. hardcode_libdir_separator_CXX=:
  9596. export_dynamic_flag_spec_CXX='${wl}-E'
  9597. hardcode_direct_CXX=yes
  9598. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9599. # but as the default
  9600. # location of the library.
  9601. case $cc_basename in
  9602. CC*)
  9603. # FIXME: insert proper C++ library support
  9604. ld_shlibs_CXX=no
  9605. ;;
  9606. aCC*)
  9607. 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'
  9608. # Commands to make compiler produce verbose output that lists
  9609. # what "hidden" libraries, object files and flags are used when
  9610. # linking a shared library.
  9611. #
  9612. # There doesn't appear to be a way to prevent this compiler from
  9613. # explicitly linking system object files so we need to strip them
  9614. # from the output so that they don't get included in the library
  9615. # dependencies.
  9616. 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'
  9617. ;;
  9618. *)
  9619. if test "$GXX" = yes; then
  9620. 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'
  9621. else
  9622. # FIXME: insert proper C++ library support
  9623. ld_shlibs_CXX=no
  9624. fi
  9625. ;;
  9626. esac
  9627. ;;
  9628. hpux10*|hpux11*)
  9629. if test $with_gnu_ld = no; then
  9630. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9631. hardcode_libdir_separator_CXX=:
  9632. case $host_cpu in
  9633. hppa*64*|ia64*)
  9634. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9635. ;;
  9636. *)
  9637. export_dynamic_flag_spec_CXX='${wl}-E'
  9638. ;;
  9639. esac
  9640. fi
  9641. case $host_cpu in
  9642. hppa*64*|ia64*)
  9643. hardcode_direct_CXX=no
  9644. hardcode_shlibpath_var_CXX=no
  9645. ;;
  9646. *)
  9647. hardcode_direct_CXX=yes
  9648. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9649. # but as the default
  9650. # location of the library.
  9651. ;;
  9652. esac
  9653. case $cc_basename in
  9654. CC*)
  9655. # FIXME: insert proper C++ library support
  9656. ld_shlibs_CXX=no
  9657. ;;
  9658. aCC*)
  9659. case $host_cpu in
  9660. hppa*64*)
  9661. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9662. ;;
  9663. ia64*)
  9664. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9665. ;;
  9666. *)
  9667. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9668. ;;
  9669. esac
  9670. # Commands to make compiler produce verbose output that lists
  9671. # what "hidden" libraries, object files and flags are used when
  9672. # linking a shared library.
  9673. #
  9674. # There doesn't appear to be a way to prevent this compiler from
  9675. # explicitly linking system object files so we need to strip them
  9676. # from the output so that they don't get included in the library
  9677. # dependencies.
  9678. 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'
  9679. ;;
  9680. *)
  9681. if test "$GXX" = yes; then
  9682. if test $with_gnu_ld = no; then
  9683. case $host_cpu in
  9684. hppa*64*)
  9685. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9686. ;;
  9687. ia64*)
  9688. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9689. ;;
  9690. *)
  9691. 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'
  9692. ;;
  9693. esac
  9694. fi
  9695. else
  9696. # FIXME: insert proper C++ library support
  9697. ld_shlibs_CXX=no
  9698. fi
  9699. ;;
  9700. esac
  9701. ;;
  9702. interix3*)
  9703. hardcode_direct_CXX=no
  9704. hardcode_shlibpath_var_CXX=no
  9705. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9706. export_dynamic_flag_spec_CXX='${wl}-E'
  9707. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9708. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9709. # default) and relocated if they conflict, which is a slow very memory
  9710. # consuming and fragmenting process. To avoid this, we pick a random,
  9711. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9712. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9713. 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'
  9714. 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'
  9715. ;;
  9716. irix5* | irix6*)
  9717. case $cc_basename in
  9718. CC*)
  9719. # SGI C++
  9720. 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'
  9721. # Archives containing C++ object files must be created using
  9722. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9723. # necessary to make sure instantiated templates are included
  9724. # in the archive.
  9725. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9726. ;;
  9727. *)
  9728. if test "$GXX" = yes; then
  9729. if test "$with_gnu_ld" = no; then
  9730. 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'
  9731. else
  9732. 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'
  9733. fi
  9734. fi
  9735. link_all_deplibs_CXX=yes
  9736. ;;
  9737. esac
  9738. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9739. hardcode_libdir_separator_CXX=:
  9740. ;;
  9741. linux*)
  9742. case $cc_basename in
  9743. KCC*)
  9744. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9745. # KCC will only create a shared library if the output file
  9746. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9747. # to its proper name (with version) after linking.
  9748. 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'
  9749. 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'
  9750. # Commands to make compiler produce verbose output that lists
  9751. # what "hidden" libraries, object files and flags are used when
  9752. # linking a shared library.
  9753. #
  9754. # There doesn't appear to be a way to prevent this compiler from
  9755. # explicitly linking system object files so we need to strip them
  9756. # from the output so that they don't get included in the library
  9757. # dependencies.
  9758. 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'
  9759. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9760. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9761. # Archives containing C++ object files must be created using
  9762. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9763. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9764. ;;
  9765. icpc*)
  9766. # Intel C++
  9767. with_gnu_ld=yes
  9768. # version 8.0 and above of icpc choke on multiply defined symbols
  9769. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9770. # earlier do not add the objects themselves.
  9771. case `$CC -V 2>&1` in
  9772. *"Version 7."*)
  9773. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9774. 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'
  9775. ;;
  9776. *) # Version 8.0 or newer
  9777. tmp_idyn=
  9778. case $host_cpu in
  9779. ia64*) tmp_idyn=' -i_dynamic';;
  9780. esac
  9781. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9782. 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'
  9783. ;;
  9784. esac
  9785. archive_cmds_need_lc_CXX=no
  9786. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9787. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9788. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9789. ;;
  9790. pgCC*)
  9791. # Portland Group C++ compiler
  9792. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9793. 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'
  9794. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9795. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9796. 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'
  9797. ;;
  9798. cxx*)
  9799. # Compaq C++
  9800. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9801. 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'
  9802. runpath_var=LD_RUN_PATH
  9803. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9804. hardcode_libdir_separator_CXX=:
  9805. # Commands to make compiler produce verbose output that lists
  9806. # what "hidden" libraries, object files and flags are used when
  9807. # linking a shared library.
  9808. #
  9809. # There doesn't appear to be a way to prevent this compiler from
  9810. # explicitly linking system object files so we need to strip them
  9811. # from the output so that they don't get included in the library
  9812. # dependencies.
  9813. 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'
  9814. ;;
  9815. esac
  9816. ;;
  9817. lynxos*)
  9818. # FIXME: insert proper C++ library support
  9819. ld_shlibs_CXX=no
  9820. ;;
  9821. m88k*)
  9822. # FIXME: insert proper C++ library support
  9823. ld_shlibs_CXX=no
  9824. ;;
  9825. mvs*)
  9826. case $cc_basename in
  9827. cxx*)
  9828. # FIXME: insert proper C++ library support
  9829. ld_shlibs_CXX=no
  9830. ;;
  9831. *)
  9832. # FIXME: insert proper C++ library support
  9833. ld_shlibs_CXX=no
  9834. ;;
  9835. esac
  9836. ;;
  9837. netbsd*)
  9838. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9839. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9840. wlarc=
  9841. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9842. hardcode_direct_CXX=yes
  9843. hardcode_shlibpath_var_CXX=no
  9844. fi
  9845. # Workaround some broken pre-1.5 toolchains
  9846. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9847. ;;
  9848. openbsd2*)
  9849. # C++ shared libraries are fairly broken
  9850. ld_shlibs_CXX=no
  9851. ;;
  9852. openbsd*)
  9853. hardcode_direct_CXX=yes
  9854. hardcode_shlibpath_var_CXX=no
  9855. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9856. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9857. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9858. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9859. export_dynamic_flag_spec_CXX='${wl}-E'
  9860. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9861. fi
  9862. output_verbose_link_cmd='echo'
  9863. ;;
  9864. osf3*)
  9865. case $cc_basename in
  9866. KCC*)
  9867. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9868. # KCC will only create a shared library if the output file
  9869. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9870. # to its proper name (with version) after linking.
  9871. 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'
  9872. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9873. hardcode_libdir_separator_CXX=:
  9874. # Archives containing C++ object files must be created using
  9875. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9876. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9877. ;;
  9878. RCC*)
  9879. # Rational C++ 2.4.1
  9880. # FIXME: insert proper C++ library support
  9881. ld_shlibs_CXX=no
  9882. ;;
  9883. cxx*)
  9884. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9885. 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'
  9886. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9887. hardcode_libdir_separator_CXX=:
  9888. # Commands to make compiler produce verbose output that lists
  9889. # what "hidden" libraries, object files and flags are used when
  9890. # linking a shared library.
  9891. #
  9892. # There doesn't appear to be a way to prevent this compiler from
  9893. # explicitly linking system object files so we need to strip them
  9894. # from the output so that they don't get included in the library
  9895. # dependencies.
  9896. 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'
  9897. ;;
  9898. *)
  9899. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9900. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9901. 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'
  9902. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9903. hardcode_libdir_separator_CXX=:
  9904. # Commands to make compiler produce verbose output that lists
  9905. # what "hidden" libraries, object files and flags are used when
  9906. # linking a shared library.
  9907. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9908. else
  9909. # FIXME: insert proper C++ library support
  9910. ld_shlibs_CXX=no
  9911. fi
  9912. ;;
  9913. esac
  9914. ;;
  9915. osf4* | osf5*)
  9916. case $cc_basename in
  9917. KCC*)
  9918. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9919. # KCC will only create a shared library if the output file
  9920. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9921. # to its proper name (with version) after linking.
  9922. 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'
  9923. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9924. hardcode_libdir_separator_CXX=:
  9925. # Archives containing C++ object files must be created using
  9926. # the KAI C++ compiler.
  9927. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9928. ;;
  9929. RCC*)
  9930. # Rational C++ 2.4.1
  9931. # FIXME: insert proper C++ library support
  9932. ld_shlibs_CXX=no
  9933. ;;
  9934. cxx*)
  9935. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9936. 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'
  9937. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9938. echo "-hidden">> $lib.exp~
  9939. $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~
  9940. $rm $lib.exp'
  9941. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9942. hardcode_libdir_separator_CXX=:
  9943. # Commands to make compiler produce verbose output that lists
  9944. # what "hidden" libraries, object files and flags are used when
  9945. # linking a shared library.
  9946. #
  9947. # There doesn't appear to be a way to prevent this compiler from
  9948. # explicitly linking system object files so we need to strip them
  9949. # from the output so that they don't get included in the library
  9950. # dependencies.
  9951. 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'
  9952. ;;
  9953. *)
  9954. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9955. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9956. 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'
  9957. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9958. hardcode_libdir_separator_CXX=:
  9959. # Commands to make compiler produce verbose output that lists
  9960. # what "hidden" libraries, object files and flags are used when
  9961. # linking a shared library.
  9962. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9963. else
  9964. # FIXME: insert proper C++ library support
  9965. ld_shlibs_CXX=no
  9966. fi
  9967. ;;
  9968. esac
  9969. ;;
  9970. psos*)
  9971. # FIXME: insert proper C++ library support
  9972. ld_shlibs_CXX=no
  9973. ;;
  9974. sunos4*)
  9975. case $cc_basename in
  9976. CC*)
  9977. # Sun C++ 4.x
  9978. # FIXME: insert proper C++ library support
  9979. ld_shlibs_CXX=no
  9980. ;;
  9981. lcc*)
  9982. # Lucid
  9983. # FIXME: insert proper C++ library support
  9984. ld_shlibs_CXX=no
  9985. ;;
  9986. *)
  9987. # FIXME: insert proper C++ library support
  9988. ld_shlibs_CXX=no
  9989. ;;
  9990. esac
  9991. ;;
  9992. solaris*)
  9993. case $cc_basename in
  9994. CC*)
  9995. # Sun C++ 4.2, 5.x and Centerline C++
  9996. archive_cmds_need_lc_CXX=yes
  9997. no_undefined_flag_CXX=' -zdefs'
  9998. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9999. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10000. $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'
  10001. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10002. hardcode_shlibpath_var_CXX=no
  10003. case $host_os in
  10004. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10005. *)
  10006. # The C++ compiler is used as linker so we must use $wl
  10007. # flag to pass the commands to the underlying system
  10008. # linker. We must also pass each convience library through
  10009. # to the system linker between allextract/defaultextract.
  10010. # The C++ compiler will combine linker options so we
  10011. # cannot just pass the convience library names through
  10012. # without $wl.
  10013. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10014. 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'
  10015. ;;
  10016. esac
  10017. link_all_deplibs_CXX=yes
  10018. output_verbose_link_cmd='echo'
  10019. # Archives containing C++ object files must be created using
  10020. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10021. # necessary to make sure instantiated templates are included
  10022. # in the archive.
  10023. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10024. ;;
  10025. gcx*)
  10026. # Green Hills C++ Compiler
  10027. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10028. # The C++ compiler must be used to create the archive.
  10029. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10030. ;;
  10031. *)
  10032. # GNU C++ compiler with Solaris linker
  10033. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10034. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10035. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10036. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10037. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10038. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10039. # Commands to make compiler produce verbose output that lists
  10040. # what "hidden" libraries, object files and flags are used when
  10041. # linking a shared library.
  10042. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10043. else
  10044. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10045. # platform.
  10046. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10047. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10048. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10049. # Commands to make compiler produce verbose output that lists
  10050. # what "hidden" libraries, object files and flags are used when
  10051. # linking a shared library.
  10052. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10053. fi
  10054. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10055. fi
  10056. ;;
  10057. esac
  10058. ;;
  10059. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10060. no_undefined_flag_CXX='${wl}-z,text'
  10061. archive_cmds_need_lc_CXX=no
  10062. hardcode_shlibpath_var_CXX=no
  10063. runpath_var='LD_RUN_PATH'
  10064. case $cc_basename in
  10065. CC*)
  10066. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10067. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10068. ;;
  10069. *)
  10070. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10071. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10072. ;;
  10073. esac
  10074. ;;
  10075. sysv5* | sco3.2v5* | sco5v6*)
  10076. # Note: We can NOT use -z defs as we might desire, because we do not
  10077. # link with -lc, and that would cause any symbols used from libc to
  10078. # always be unresolved, which means just about no library would
  10079. # ever link correctly. If we're not using GNU ld we use -z text
  10080. # though, which does catch some bad symbols but isn't as heavy-handed
  10081. # as -z defs.
  10082. # For security reasons, it is highly recommended that you always
  10083. # use absolute paths for naming shared libraries, and exclude the
  10084. # DT_RUNPATH tag from executables and libraries. But doing so
  10085. # requires that you compile everything twice, which is a pain.
  10086. # So that behaviour is only enabled if SCOABSPATH is set to a
  10087. # non-empty value in the environment. Most likely only useful for
  10088. # creating official distributions of packages.
  10089. # This is a hack until libtool officially supports absolute path
  10090. # names for shared libraries.
  10091. no_undefined_flag_CXX='${wl}-z,text'
  10092. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10093. archive_cmds_need_lc_CXX=no
  10094. hardcode_shlibpath_var_CXX=no
  10095. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10096. hardcode_libdir_separator_CXX=':'
  10097. link_all_deplibs_CXX=yes
  10098. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10099. runpath_var='LD_RUN_PATH'
  10100. case $cc_basename in
  10101. CC*)
  10102. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10103. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10104. ;;
  10105. *)
  10106. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10107. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10108. ;;
  10109. esac
  10110. ;;
  10111. tandem*)
  10112. case $cc_basename in
  10113. NCC*)
  10114. # NonStop-UX NCC 3.20
  10115. # FIXME: insert proper C++ library support
  10116. ld_shlibs_CXX=no
  10117. ;;
  10118. *)
  10119. # FIXME: insert proper C++ library support
  10120. ld_shlibs_CXX=no
  10121. ;;
  10122. esac
  10123. ;;
  10124. vxworks*)
  10125. # FIXME: insert proper C++ library support
  10126. ld_shlibs_CXX=no
  10127. ;;
  10128. *)
  10129. # FIXME: insert proper C++ library support
  10130. ld_shlibs_CXX=no
  10131. ;;
  10132. esac
  10133. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10134. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10135. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10136. GCC_CXX="$GXX"
  10137. LD_CXX="$LD"
  10138. cat > conftest.$ac_ext <<EOF
  10139. class Foo
  10140. {
  10141. public:
  10142. Foo (void) { a = 0; }
  10143. private:
  10144. int a;
  10145. };
  10146. EOF
  10147. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10148. (eval $ac_compile) 2>&5
  10149. ac_status=$?
  10150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10151. (exit $ac_status); }; then
  10152. # Parse the compiler output and extract the necessary
  10153. # objects, libraries and library flags.
  10154. # Sentinel used to keep track of whether or not we are before
  10155. # the conftest object file.
  10156. pre_test_object_deps_done=no
  10157. # The `*' in the case matches for architectures that use `case' in
  10158. # $output_verbose_cmd can trigger glob expansion during the loop
  10159. # eval without this substitution.
  10160. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10161. for p in `eval $output_verbose_link_cmd`; do
  10162. case $p in
  10163. -L* | -R* | -l*)
  10164. # Some compilers place space between "-{L,R}" and the path.
  10165. # Remove the space.
  10166. if test $p = "-L" \
  10167. || test $p = "-R"; then
  10168. prev=$p
  10169. continue
  10170. else
  10171. prev=
  10172. fi
  10173. if test "$pre_test_object_deps_done" = no; then
  10174. case $p in
  10175. -L* | -R*)
  10176. # Internal compiler library paths should come after those
  10177. # provided the user. The postdeps already come after the
  10178. # user supplied libs so there is no need to process them.
  10179. if test -z "$compiler_lib_search_path_CXX"; then
  10180. compiler_lib_search_path_CXX="${prev}${p}"
  10181. else
  10182. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10183. fi
  10184. ;;
  10185. # The "-l" case would never come before the object being
  10186. # linked, so don't bother handling this case.
  10187. esac
  10188. else
  10189. if test -z "$postdeps_CXX"; then
  10190. postdeps_CXX="${prev}${p}"
  10191. else
  10192. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10193. fi
  10194. fi
  10195. ;;
  10196. *.$objext)
  10197. # This assumes that the test object file only shows up
  10198. # once in the compiler output.
  10199. if test "$p" = "conftest.$objext"; then
  10200. pre_test_object_deps_done=yes
  10201. continue
  10202. fi
  10203. if test "$pre_test_object_deps_done" = no; then
  10204. if test -z "$predep_objects_CXX"; then
  10205. predep_objects_CXX="$p"
  10206. else
  10207. predep_objects_CXX="$predep_objects_CXX $p"
  10208. fi
  10209. else
  10210. if test -z "$postdep_objects_CXX"; then
  10211. postdep_objects_CXX="$p"
  10212. else
  10213. postdep_objects_CXX="$postdep_objects_CXX $p"
  10214. fi
  10215. fi
  10216. ;;
  10217. *) ;; # Ignore the rest.
  10218. esac
  10219. done
  10220. # Clean up.
  10221. rm -f a.out a.exe
  10222. else
  10223. echo "libtool.m4: error: problem compiling CXX test program"
  10224. fi
  10225. $rm -f confest.$objext
  10226. # PORTME: override above test on systems where it is broken
  10227. case $host_os in
  10228. interix3*)
  10229. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10230. # hack all around it, let's just trust "g++" to DTRT.
  10231. predep_objects_CXX=
  10232. postdep_objects_CXX=
  10233. postdeps_CXX=
  10234. ;;
  10235. solaris*)
  10236. case $cc_basename in
  10237. CC*)
  10238. # Adding this requires a known-good setup of shared libraries for
  10239. # Sun compiler versions before 5.6, else PIC objects from an old
  10240. # archive will be linked into the output, leading to subtle bugs.
  10241. postdeps_CXX='-lCstd -lCrun'
  10242. ;;
  10243. esac
  10244. ;;
  10245. esac
  10246. case " $postdeps_CXX " in
  10247. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10248. esac
  10249. lt_prog_compiler_wl_CXX=
  10250. lt_prog_compiler_pic_CXX=
  10251. lt_prog_compiler_static_CXX=
  10252. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10253. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10254. # C++ specific cases for pic, static, wl, etc.
  10255. if test "$GXX" = yes; then
  10256. lt_prog_compiler_wl_CXX='-Wl,'
  10257. lt_prog_compiler_static_CXX='-static'
  10258. case $host_os in
  10259. aix*)
  10260. # All AIX code is PIC.
  10261. if test "$host_cpu" = ia64; then
  10262. # AIX 5 now supports IA64 processor
  10263. lt_prog_compiler_static_CXX='-Bstatic'
  10264. fi
  10265. ;;
  10266. amigaos*)
  10267. # FIXME: we need at least 68020 code to build shared libraries, but
  10268. # adding the `-m68020' flag to GCC prevents building anything better,
  10269. # like `-m68040'.
  10270. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10271. ;;
  10272. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10273. # PIC is the default for these OSes.
  10274. ;;
  10275. mingw* | os2* | pw32*)
  10276. # This hack is so that the source file can tell whether it is being
  10277. # built for inclusion in a dll (and should export symbols for example).
  10278. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10279. ;;
  10280. darwin* | rhapsody*)
  10281. # PIC is the default on this platform
  10282. # Common symbols not allowed in MH_DYLIB files
  10283. lt_prog_compiler_pic_CXX='-fno-common'
  10284. ;;
  10285. *djgpp*)
  10286. # DJGPP does not support shared libraries at all
  10287. lt_prog_compiler_pic_CXX=
  10288. ;;
  10289. interix3*)
  10290. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10291. # Instead, we relocate shared libraries at runtime.
  10292. ;;
  10293. sysv4*MP*)
  10294. if test -d /usr/nec; then
  10295. lt_prog_compiler_pic_CXX=-Kconform_pic
  10296. fi
  10297. ;;
  10298. hpux*)
  10299. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10300. # not for PA HP-UX.
  10301. case $host_cpu in
  10302. hppa*64*|ia64*)
  10303. ;;
  10304. *)
  10305. lt_prog_compiler_pic_CXX='-fPIC'
  10306. ;;
  10307. esac
  10308. ;;
  10309. *)
  10310. lt_prog_compiler_pic_CXX='-fPIC'
  10311. ;;
  10312. esac
  10313. else
  10314. case $host_os in
  10315. aix4* | aix5*)
  10316. # All AIX code is PIC.
  10317. if test "$host_cpu" = ia64; then
  10318. # AIX 5 now supports IA64 processor
  10319. lt_prog_compiler_static_CXX='-Bstatic'
  10320. else
  10321. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10322. fi
  10323. ;;
  10324. chorus*)
  10325. case $cc_basename in
  10326. cxch68*)
  10327. # Green Hills C++ Compiler
  10328. # _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"
  10329. ;;
  10330. esac
  10331. ;;
  10332. darwin*)
  10333. # PIC is the default on this platform
  10334. # Common symbols not allowed in MH_DYLIB files
  10335. case $cc_basename in
  10336. xlc*)
  10337. lt_prog_compiler_pic_CXX='-qnocommon'
  10338. lt_prog_compiler_wl_CXX='-Wl,'
  10339. ;;
  10340. esac
  10341. ;;
  10342. dgux*)
  10343. case $cc_basename in
  10344. ec++*)
  10345. lt_prog_compiler_pic_CXX='-KPIC'
  10346. ;;
  10347. ghcx*)
  10348. # Green Hills C++ Compiler
  10349. lt_prog_compiler_pic_CXX='-pic'
  10350. ;;
  10351. *)
  10352. ;;
  10353. esac
  10354. ;;
  10355. freebsd* | kfreebsd*-gnu | dragonfly*)
  10356. # FreeBSD uses GNU C++
  10357. ;;
  10358. hpux9* | hpux10* | hpux11*)
  10359. case $cc_basename in
  10360. CC*)
  10361. lt_prog_compiler_wl_CXX='-Wl,'
  10362. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10363. if test "$host_cpu" != ia64; then
  10364. lt_prog_compiler_pic_CXX='+Z'
  10365. fi
  10366. ;;
  10367. aCC*)
  10368. lt_prog_compiler_wl_CXX='-Wl,'
  10369. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10370. case $host_cpu in
  10371. hppa*64*|ia64*)
  10372. # +Z the default
  10373. ;;
  10374. *)
  10375. lt_prog_compiler_pic_CXX='+Z'
  10376. ;;
  10377. esac
  10378. ;;
  10379. *)
  10380. ;;
  10381. esac
  10382. ;;
  10383. interix*)
  10384. # This is c89, which is MS Visual C++ (no shared libs)
  10385. # Anyone wants to do a port?
  10386. ;;
  10387. irix5* | irix6* | nonstopux*)
  10388. case $cc_basename in
  10389. CC*)
  10390. lt_prog_compiler_wl_CXX='-Wl,'
  10391. lt_prog_compiler_static_CXX='-non_shared'
  10392. # CC pic flag -KPIC is the default.
  10393. ;;
  10394. *)
  10395. ;;
  10396. esac
  10397. ;;
  10398. linux*)
  10399. case $cc_basename in
  10400. KCC*)
  10401. # KAI C++ Compiler
  10402. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10403. lt_prog_compiler_pic_CXX='-fPIC'
  10404. ;;
  10405. icpc* | ecpc*)
  10406. # Intel C++
  10407. lt_prog_compiler_wl_CXX='-Wl,'
  10408. lt_prog_compiler_pic_CXX='-KPIC'
  10409. lt_prog_compiler_static_CXX='-static'
  10410. ;;
  10411. pgCC*)
  10412. # Portland Group C++ compiler.
  10413. lt_prog_compiler_wl_CXX='-Wl,'
  10414. lt_prog_compiler_pic_CXX='-fpic'
  10415. lt_prog_compiler_static_CXX='-Bstatic'
  10416. ;;
  10417. cxx*)
  10418. # Compaq C++
  10419. # Make sure the PIC flag is empty. It appears that all Alpha
  10420. # Linux and Compaq Tru64 Unix objects are PIC.
  10421. lt_prog_compiler_pic_CXX=
  10422. lt_prog_compiler_static_CXX='-non_shared'
  10423. ;;
  10424. *)
  10425. ;;
  10426. esac
  10427. ;;
  10428. lynxos*)
  10429. ;;
  10430. m88k*)
  10431. ;;
  10432. mvs*)
  10433. case $cc_basename in
  10434. cxx*)
  10435. lt_prog_compiler_pic_CXX='-W c,exportall'
  10436. ;;
  10437. *)
  10438. ;;
  10439. esac
  10440. ;;
  10441. netbsd*)
  10442. ;;
  10443. osf3* | osf4* | osf5*)
  10444. case $cc_basename in
  10445. KCC*)
  10446. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10447. ;;
  10448. RCC*)
  10449. # Rational C++ 2.4.1
  10450. lt_prog_compiler_pic_CXX='-pic'
  10451. ;;
  10452. cxx*)
  10453. # Digital/Compaq C++
  10454. lt_prog_compiler_wl_CXX='-Wl,'
  10455. # Make sure the PIC flag is empty. It appears that all Alpha
  10456. # Linux and Compaq Tru64 Unix objects are PIC.
  10457. lt_prog_compiler_pic_CXX=
  10458. lt_prog_compiler_static_CXX='-non_shared'
  10459. ;;
  10460. *)
  10461. ;;
  10462. esac
  10463. ;;
  10464. psos*)
  10465. ;;
  10466. solaris*)
  10467. case $cc_basename in
  10468. CC*)
  10469. # Sun C++ 4.2, 5.x and Centerline C++
  10470. lt_prog_compiler_pic_CXX='-KPIC'
  10471. lt_prog_compiler_static_CXX='-Bstatic'
  10472. lt_prog_compiler_wl_CXX='-Qoption ld '
  10473. ;;
  10474. gcx*)
  10475. # Green Hills C++ Compiler
  10476. lt_prog_compiler_pic_CXX='-PIC'
  10477. ;;
  10478. *)
  10479. ;;
  10480. esac
  10481. ;;
  10482. sunos4*)
  10483. case $cc_basename in
  10484. CC*)
  10485. # Sun C++ 4.x
  10486. lt_prog_compiler_pic_CXX='-pic'
  10487. lt_prog_compiler_static_CXX='-Bstatic'
  10488. ;;
  10489. lcc*)
  10490. # Lucid
  10491. lt_prog_compiler_pic_CXX='-pic'
  10492. ;;
  10493. *)
  10494. ;;
  10495. esac
  10496. ;;
  10497. tandem*)
  10498. case $cc_basename in
  10499. NCC*)
  10500. # NonStop-UX NCC 3.20
  10501. lt_prog_compiler_pic_CXX='-KPIC'
  10502. ;;
  10503. *)
  10504. ;;
  10505. esac
  10506. ;;
  10507. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10508. case $cc_basename in
  10509. CC*)
  10510. lt_prog_compiler_wl_CXX='-Wl,'
  10511. lt_prog_compiler_pic_CXX='-KPIC'
  10512. lt_prog_compiler_static_CXX='-Bstatic'
  10513. ;;
  10514. esac
  10515. ;;
  10516. vxworks*)
  10517. ;;
  10518. *)
  10519. lt_prog_compiler_can_build_shared_CXX=no
  10520. ;;
  10521. esac
  10522. fi
  10523. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10524. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10525. #
  10526. # Check to make sure the PIC flag actually works.
  10527. #
  10528. if test -n "$lt_prog_compiler_pic_CXX"; then
  10529. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10530. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10531. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10532. echo $ECHO_N "(cached) $ECHO_C" >&6
  10533. else
  10534. lt_prog_compiler_pic_works_CXX=no
  10535. ac_outfile=conftest.$ac_objext
  10536. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10537. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10538. # Insert the option either (1) after the last *FLAGS variable, or
  10539. # (2) before a word containing "conftest.", or (3) at the end.
  10540. # Note that $ac_compile itself does not contain backslashes and begins
  10541. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10542. # The option is referenced via a variable to avoid confusing sed.
  10543. lt_compile=`echo "$ac_compile" | $SED \
  10544. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10545. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10546. -e 's:$: $lt_compiler_flag:'`
  10547. (eval echo "\"\$as_me:11664: $lt_compile\"" >&5)
  10548. (eval "$lt_compile" 2>conftest.err)
  10549. ac_status=$?
  10550. cat conftest.err >&5
  10551. echo "$as_me:11668: \$? = $ac_status" >&5
  10552. if (exit $ac_status) && test -s "$ac_outfile"; then
  10553. # The compiler can only warn and ignore the option if not recognized
  10554. # So say no if there are warnings other than the usual output.
  10555. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10556. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10557. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10558. lt_prog_compiler_pic_works_CXX=yes
  10559. fi
  10560. fi
  10561. $rm conftest*
  10562. fi
  10563. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10564. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10565. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10566. case $lt_prog_compiler_pic_CXX in
  10567. "" | " "*) ;;
  10568. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10569. esac
  10570. else
  10571. lt_prog_compiler_pic_CXX=
  10572. lt_prog_compiler_can_build_shared_CXX=no
  10573. fi
  10574. fi
  10575. case $host_os in
  10576. # For platforms which do not support PIC, -DPIC is meaningless:
  10577. *djgpp*)
  10578. lt_prog_compiler_pic_CXX=
  10579. ;;
  10580. *)
  10581. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10582. ;;
  10583. esac
  10584. #
  10585. # Check to make sure the static flag actually works.
  10586. #
  10587. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10588. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10589. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10590. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10591. echo $ECHO_N "(cached) $ECHO_C" >&6
  10592. else
  10593. lt_prog_compiler_static_works_CXX=no
  10594. save_LDFLAGS="$LDFLAGS"
  10595. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10596. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10597. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10598. # The linker can only warn and ignore the option if not recognized
  10599. # So say no if there are warnings
  10600. if test -s conftest.err; then
  10601. # Append any errors to the config.log.
  10602. cat conftest.err 1>&5
  10603. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10604. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10605. if diff conftest.exp conftest.er2 >/dev/null; then
  10606. lt_prog_compiler_static_works_CXX=yes
  10607. fi
  10608. else
  10609. lt_prog_compiler_static_works_CXX=yes
  10610. fi
  10611. fi
  10612. $rm conftest*
  10613. LDFLAGS="$save_LDFLAGS"
  10614. fi
  10615. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10616. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10617. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10618. :
  10619. else
  10620. lt_prog_compiler_static_CXX=
  10621. fi
  10622. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10623. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10624. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10625. echo $ECHO_N "(cached) $ECHO_C" >&6
  10626. else
  10627. lt_cv_prog_compiler_c_o_CXX=no
  10628. $rm -r conftest 2>/dev/null
  10629. mkdir conftest
  10630. cd conftest
  10631. mkdir out
  10632. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10633. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10634. # Insert the option either (1) after the last *FLAGS variable, or
  10635. # (2) before a word containing "conftest.", or (3) at the end.
  10636. # Note that $ac_compile itself does not contain backslashes and begins
  10637. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10638. lt_compile=`echo "$ac_compile" | $SED \
  10639. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10640. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10641. -e 's:$: $lt_compiler_flag:'`
  10642. (eval echo "\"\$as_me:11768: $lt_compile\"" >&5)
  10643. (eval "$lt_compile" 2>out/conftest.err)
  10644. ac_status=$?
  10645. cat out/conftest.err >&5
  10646. echo "$as_me:11772: \$? = $ac_status" >&5
  10647. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10648. then
  10649. # The compiler can only warn and ignore the option if not recognized
  10650. # So say no if there are warnings
  10651. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10652. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10653. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10654. lt_cv_prog_compiler_c_o_CXX=yes
  10655. fi
  10656. fi
  10657. chmod u+w . 2>&5
  10658. $rm conftest*
  10659. # SGI C++ compiler will create directory out/ii_files/ for
  10660. # template instantiation
  10661. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10662. $rm out/* && rmdir out
  10663. cd ..
  10664. rmdir conftest
  10665. $rm conftest*
  10666. fi
  10667. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10668. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10669. hard_links="nottested"
  10670. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10671. # do not overwrite the value of need_locks provided by the user
  10672. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10673. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10674. hard_links=yes
  10675. $rm conftest*
  10676. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10677. touch conftest.a
  10678. ln conftest.a conftest.b 2>&5 || hard_links=no
  10679. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10680. echo "$as_me:$LINENO: result: $hard_links" >&5
  10681. echo "${ECHO_T}$hard_links" >&6
  10682. if test "$hard_links" = no; then
  10683. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10684. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10685. need_locks=warn
  10686. fi
  10687. else
  10688. need_locks=no
  10689. fi
  10690. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10691. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10692. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10693. case $host_os in
  10694. aix4* | aix5*)
  10695. # If we're using GNU nm, then we don't want the "-C" option.
  10696. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10697. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10698. 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'
  10699. else
  10700. 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'
  10701. fi
  10702. ;;
  10703. pw32*)
  10704. export_symbols_cmds_CXX="$ltdll_cmds"
  10705. ;;
  10706. cygwin* | mingw*)
  10707. 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'
  10708. ;;
  10709. *)
  10710. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10711. ;;
  10712. esac
  10713. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10714. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10715. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10716. #
  10717. # Do we need to explicitly link libc?
  10718. #
  10719. case "x$archive_cmds_need_lc_CXX" in
  10720. x|xyes)
  10721. # Assume -lc should be added
  10722. archive_cmds_need_lc_CXX=yes
  10723. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10724. case $archive_cmds_CXX in
  10725. *'~'*)
  10726. # FIXME: we may have to deal with multi-command sequences.
  10727. ;;
  10728. '$CC '*)
  10729. # Test whether the compiler implicitly links with -lc since on some
  10730. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10731. # to ld, don't add -lc before -lgcc.
  10732. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10733. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10734. $rm conftest*
  10735. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10736. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10737. (eval $ac_compile) 2>&5
  10738. ac_status=$?
  10739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10740. (exit $ac_status); } 2>conftest.err; then
  10741. soname=conftest
  10742. lib=conftest
  10743. libobjs=conftest.$ac_objext
  10744. deplibs=
  10745. wl=$lt_prog_compiler_wl_CXX
  10746. pic_flag=$lt_prog_compiler_pic_CXX
  10747. compiler_flags=-v
  10748. linker_flags=-v
  10749. verstring=
  10750. output_objdir=.
  10751. libname=conftest
  10752. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10753. allow_undefined_flag_CXX=
  10754. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10755. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10756. ac_status=$?
  10757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10758. (exit $ac_status); }
  10759. then
  10760. archive_cmds_need_lc_CXX=no
  10761. else
  10762. archive_cmds_need_lc_CXX=yes
  10763. fi
  10764. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10765. else
  10766. cat conftest.err 1>&5
  10767. fi
  10768. $rm conftest*
  10769. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10770. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10771. ;;
  10772. esac
  10773. fi
  10774. ;;
  10775. esac
  10776. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10777. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10778. library_names_spec=
  10779. libname_spec='lib$name'
  10780. soname_spec=
  10781. shrext_cmds=".so"
  10782. postinstall_cmds=
  10783. postuninstall_cmds=
  10784. finish_cmds=
  10785. finish_eval=
  10786. shlibpath_var=
  10787. shlibpath_overrides_runpath=unknown
  10788. version_type=none
  10789. dynamic_linker="$host_os ld.so"
  10790. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10791. if test "$GCC" = yes; then
  10792. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10793. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10794. # if the path contains ";" then we assume it to be the separator
  10795. # otherwise default to the standard path separator (i.e. ":") - it is
  10796. # assumed that no part of a normal pathname contains ";" but that should
  10797. # okay in the real world where ";" in dirpaths is itself problematic.
  10798. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10799. else
  10800. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10801. fi
  10802. else
  10803. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10804. fi
  10805. need_lib_prefix=unknown
  10806. hardcode_into_libs=no
  10807. # when you set need_version to no, make sure it does not cause -set_version
  10808. # flags to be left without arguments
  10809. need_version=unknown
  10810. case $host_os in
  10811. aix3*)
  10812. version_type=linux
  10813. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10814. shlibpath_var=LIBPATH
  10815. # AIX 3 has no versioning support, so we append a major version to the name.
  10816. soname_spec='${libname}${release}${shared_ext}$major'
  10817. ;;
  10818. aix4* | aix5*)
  10819. version_type=linux
  10820. need_lib_prefix=no
  10821. need_version=no
  10822. hardcode_into_libs=yes
  10823. if test "$host_cpu" = ia64; then
  10824. # AIX 5 supports IA64
  10825. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10826. shlibpath_var=LD_LIBRARY_PATH
  10827. else
  10828. # With GCC up to 2.95.x, collect2 would create an import file
  10829. # for dependence libraries. The import file would start with
  10830. # the line `#! .'. This would cause the generated library to
  10831. # depend on `.', always an invalid library. This was fixed in
  10832. # development snapshots of GCC prior to 3.0.
  10833. case $host_os in
  10834. aix4 | aix4.[01] | aix4.[01].*)
  10835. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10836. echo ' yes '
  10837. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10838. :
  10839. else
  10840. can_build_shared=no
  10841. fi
  10842. ;;
  10843. esac
  10844. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10845. # soname into executable. Probably we can add versioning support to
  10846. # collect2, so additional links can be useful in future.
  10847. if test "$aix_use_runtimelinking" = yes; then
  10848. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10849. # instead of lib<name>.a to let people know that these are not
  10850. # typical AIX shared libraries.
  10851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10852. else
  10853. # We preserve .a as extension for shared libraries through AIX4.2
  10854. # and later when we are not doing run time linking.
  10855. library_names_spec='${libname}${release}.a $libname.a'
  10856. soname_spec='${libname}${release}${shared_ext}$major'
  10857. fi
  10858. shlibpath_var=LIBPATH
  10859. fi
  10860. ;;
  10861. amigaos*)
  10862. library_names_spec='$libname.ixlibrary $libname.a'
  10863. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10864. 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'
  10865. ;;
  10866. beos*)
  10867. library_names_spec='${libname}${shared_ext}'
  10868. dynamic_linker="$host_os ld.so"
  10869. shlibpath_var=LIBRARY_PATH
  10870. ;;
  10871. bsdi[45]*)
  10872. version_type=linux
  10873. need_version=no
  10874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10875. soname_spec='${libname}${release}${shared_ext}$major'
  10876. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10877. shlibpath_var=LD_LIBRARY_PATH
  10878. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10879. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10880. # the default ld.so.conf also contains /usr/contrib/lib and
  10881. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10882. # libtool to hard-code these into programs
  10883. ;;
  10884. cygwin* | mingw* | pw32*)
  10885. version_type=windows
  10886. shrext_cmds=".dll"
  10887. need_version=no
  10888. need_lib_prefix=no
  10889. case $GCC,$host_os in
  10890. yes,cygwin* | yes,mingw* | yes,pw32*)
  10891. library_names_spec='$libname.dll.a'
  10892. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10893. postinstall_cmds='base_file=`basename \${file}`~
  10894. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10895. dldir=$destdir/`dirname \$dlpath`~
  10896. test -d \$dldir || mkdir -p \$dldir~
  10897. $install_prog $dir/$dlname \$dldir/$dlname~
  10898. chmod a+x \$dldir/$dlname'
  10899. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10900. dlpath=$dir/\$dldll~
  10901. $rm \$dlpath'
  10902. shlibpath_overrides_runpath=yes
  10903. case $host_os in
  10904. cygwin*)
  10905. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10906. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10907. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10908. ;;
  10909. mingw*)
  10910. # MinGW DLLs use traditional 'lib' prefix
  10911. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10912. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10913. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10914. # It is most probably a Windows format PATH printed by
  10915. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10916. # path with ; separators, and with drive letters. We can handle the
  10917. # drive letters (cygwin fileutils understands them), so leave them,
  10918. # especially as we might pass files found there to a mingw objdump,
  10919. # which wouldn't understand a cygwinified path. Ahh.
  10920. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10921. else
  10922. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10923. fi
  10924. ;;
  10925. pw32*)
  10926. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10927. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10928. ;;
  10929. esac
  10930. ;;
  10931. *)
  10932. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10933. ;;
  10934. esac
  10935. dynamic_linker='Win32 ld.exe'
  10936. # FIXME: first we should search . and the directory the executable is in
  10937. shlibpath_var=PATH
  10938. ;;
  10939. darwin* | rhapsody*)
  10940. dynamic_linker="$host_os dyld"
  10941. version_type=darwin
  10942. need_lib_prefix=no
  10943. need_version=no
  10944. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10945. soname_spec='${libname}${release}${major}$shared_ext'
  10946. shlibpath_overrides_runpath=yes
  10947. shlibpath_var=DYLD_LIBRARY_PATH
  10948. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10949. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10950. if test "$GCC" = yes; then
  10951. 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"`
  10952. else
  10953. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10954. fi
  10955. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10956. ;;
  10957. dgux*)
  10958. version_type=linux
  10959. need_lib_prefix=no
  10960. need_version=no
  10961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10962. soname_spec='${libname}${release}${shared_ext}$major'
  10963. shlibpath_var=LD_LIBRARY_PATH
  10964. ;;
  10965. freebsd1*)
  10966. dynamic_linker=no
  10967. ;;
  10968. kfreebsd*-gnu)
  10969. version_type=linux
  10970. need_lib_prefix=no
  10971. need_version=no
  10972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10973. soname_spec='${libname}${release}${shared_ext}$major'
  10974. shlibpath_var=LD_LIBRARY_PATH
  10975. shlibpath_overrides_runpath=no
  10976. hardcode_into_libs=yes
  10977. dynamic_linker='GNU ld.so'
  10978. ;;
  10979. freebsd* | dragonfly*)
  10980. # DragonFly does not have aout. When/if they implement a new
  10981. # versioning mechanism, adjust this.
  10982. if test -x /usr/bin/objformat; then
  10983. objformat=`/usr/bin/objformat`
  10984. else
  10985. case $host_os in
  10986. freebsd[123]*) objformat=aout ;;
  10987. *) objformat=elf ;;
  10988. esac
  10989. fi
  10990. version_type=freebsd-$objformat
  10991. case $version_type in
  10992. freebsd-elf*)
  10993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10994. need_version=no
  10995. need_lib_prefix=no
  10996. ;;
  10997. freebsd-*)
  10998. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10999. need_version=yes
  11000. ;;
  11001. esac
  11002. shlibpath_var=LD_LIBRARY_PATH
  11003. case $host_os in
  11004. freebsd2*)
  11005. shlibpath_overrides_runpath=yes
  11006. ;;
  11007. freebsd3.[01]* | freebsdelf3.[01]*)
  11008. shlibpath_overrides_runpath=yes
  11009. hardcode_into_libs=yes
  11010. ;;
  11011. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11012. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11013. shlibpath_overrides_runpath=no
  11014. hardcode_into_libs=yes
  11015. ;;
  11016. freebsd*) # from 4.6 on
  11017. shlibpath_overrides_runpath=yes
  11018. hardcode_into_libs=yes
  11019. ;;
  11020. esac
  11021. ;;
  11022. gnu*)
  11023. version_type=linux
  11024. need_lib_prefix=no
  11025. need_version=no
  11026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11027. soname_spec='${libname}${release}${shared_ext}$major'
  11028. shlibpath_var=LD_LIBRARY_PATH
  11029. hardcode_into_libs=yes
  11030. ;;
  11031. hpux9* | hpux10* | hpux11*)
  11032. # Give a soname corresponding to the major version so that dld.sl refuses to
  11033. # link against other versions.
  11034. version_type=sunos
  11035. need_lib_prefix=no
  11036. need_version=no
  11037. case $host_cpu in
  11038. ia64*)
  11039. shrext_cmds='.so'
  11040. hardcode_into_libs=yes
  11041. dynamic_linker="$host_os dld.so"
  11042. shlibpath_var=LD_LIBRARY_PATH
  11043. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11045. soname_spec='${libname}${release}${shared_ext}$major'
  11046. if test "X$HPUX_IA64_MODE" = X32; then
  11047. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11048. else
  11049. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11050. fi
  11051. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11052. ;;
  11053. hppa*64*)
  11054. shrext_cmds='.sl'
  11055. hardcode_into_libs=yes
  11056. dynamic_linker="$host_os dld.sl"
  11057. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11058. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11060. soname_spec='${libname}${release}${shared_ext}$major'
  11061. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11062. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11063. ;;
  11064. *)
  11065. shrext_cmds='.sl'
  11066. dynamic_linker="$host_os dld.sl"
  11067. shlibpath_var=SHLIB_PATH
  11068. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11070. soname_spec='${libname}${release}${shared_ext}$major'
  11071. ;;
  11072. esac
  11073. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11074. postinstall_cmds='chmod 555 $lib'
  11075. ;;
  11076. interix3*)
  11077. version_type=linux
  11078. need_lib_prefix=no
  11079. need_version=no
  11080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11081. soname_spec='${libname}${release}${shared_ext}$major'
  11082. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11083. shlibpath_var=LD_LIBRARY_PATH
  11084. shlibpath_overrides_runpath=no
  11085. hardcode_into_libs=yes
  11086. ;;
  11087. irix5* | irix6* | nonstopux*)
  11088. case $host_os in
  11089. nonstopux*) version_type=nonstopux ;;
  11090. *)
  11091. if test "$lt_cv_prog_gnu_ld" = yes; then
  11092. version_type=linux
  11093. else
  11094. version_type=irix
  11095. fi ;;
  11096. esac
  11097. need_lib_prefix=no
  11098. need_version=no
  11099. soname_spec='${libname}${release}${shared_ext}$major'
  11100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11101. case $host_os in
  11102. irix5* | nonstopux*)
  11103. libsuff= shlibsuff=
  11104. ;;
  11105. *)
  11106. case $LD in # libtool.m4 will add one of these switches to LD
  11107. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11108. libsuff= shlibsuff= libmagic=32-bit;;
  11109. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11110. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11111. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11112. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11113. *) libsuff= shlibsuff= libmagic=never-match;;
  11114. esac
  11115. ;;
  11116. esac
  11117. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11118. shlibpath_overrides_runpath=no
  11119. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11120. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11121. hardcode_into_libs=yes
  11122. ;;
  11123. # No shared lib support for Linux oldld, aout, or coff.
  11124. linux*oldld* | linux*aout* | linux*coff*)
  11125. dynamic_linker=no
  11126. ;;
  11127. # This must be Linux ELF.
  11128. linux*)
  11129. version_type=linux
  11130. need_lib_prefix=no
  11131. need_version=no
  11132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11133. soname_spec='${libname}${release}${shared_ext}$major'
  11134. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11135. shlibpath_var=LD_LIBRARY_PATH
  11136. shlibpath_overrides_runpath=no
  11137. # This implies no fast_install, which is unacceptable.
  11138. # Some rework will be needed to allow for fast_install
  11139. # before this can be enabled.
  11140. hardcode_into_libs=yes
  11141. # Append ld.so.conf contents to the search path
  11142. if test -f /etc/ld.so.conf; then
  11143. 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' ' '`
  11144. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11145. fi
  11146. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11147. # powerpc, because MkLinux only supported shared libraries with the
  11148. # GNU dynamic linker. Since this was broken with cross compilers,
  11149. # most powerpc-linux boxes support dynamic linking these days and
  11150. # people can always --disable-shared, the test was removed, and we
  11151. # assume the GNU/Linux dynamic linker is in use.
  11152. dynamic_linker='GNU/Linux ld.so'
  11153. ;;
  11154. knetbsd*-gnu)
  11155. version_type=linux
  11156. need_lib_prefix=no
  11157. need_version=no
  11158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11159. soname_spec='${libname}${release}${shared_ext}$major'
  11160. shlibpath_var=LD_LIBRARY_PATH
  11161. shlibpath_overrides_runpath=no
  11162. hardcode_into_libs=yes
  11163. dynamic_linker='GNU ld.so'
  11164. ;;
  11165. netbsd*)
  11166. version_type=sunos
  11167. need_lib_prefix=no
  11168. need_version=no
  11169. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11171. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11172. dynamic_linker='NetBSD (a.out) ld.so'
  11173. else
  11174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11175. soname_spec='${libname}${release}${shared_ext}$major'
  11176. dynamic_linker='NetBSD ld.elf_so'
  11177. fi
  11178. shlibpath_var=LD_LIBRARY_PATH
  11179. shlibpath_overrides_runpath=yes
  11180. hardcode_into_libs=yes
  11181. ;;
  11182. newsos6)
  11183. version_type=linux
  11184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11185. shlibpath_var=LD_LIBRARY_PATH
  11186. shlibpath_overrides_runpath=yes
  11187. ;;
  11188. nto-qnx*)
  11189. version_type=linux
  11190. need_lib_prefix=no
  11191. need_version=no
  11192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11193. soname_spec='${libname}${release}${shared_ext}$major'
  11194. shlibpath_var=LD_LIBRARY_PATH
  11195. shlibpath_overrides_runpath=yes
  11196. ;;
  11197. openbsd*)
  11198. version_type=sunos
  11199. sys_lib_dlsearch_path_spec="/usr/lib"
  11200. need_lib_prefix=no
  11201. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11202. case $host_os in
  11203. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11204. *) need_version=no ;;
  11205. esac
  11206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11207. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11208. shlibpath_var=LD_LIBRARY_PATH
  11209. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11210. case $host_os in
  11211. openbsd2.[89] | openbsd2.[89].*)
  11212. shlibpath_overrides_runpath=no
  11213. ;;
  11214. *)
  11215. shlibpath_overrides_runpath=yes
  11216. ;;
  11217. esac
  11218. else
  11219. shlibpath_overrides_runpath=yes
  11220. fi
  11221. ;;
  11222. os2*)
  11223. libname_spec='$name'
  11224. shrext_cmds=".dll"
  11225. need_lib_prefix=no
  11226. library_names_spec='$libname${shared_ext} $libname.a'
  11227. dynamic_linker='OS/2 ld.exe'
  11228. shlibpath_var=LIBPATH
  11229. ;;
  11230. osf3* | osf4* | osf5*)
  11231. version_type=osf
  11232. need_lib_prefix=no
  11233. need_version=no
  11234. soname_spec='${libname}${release}${shared_ext}$major'
  11235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11236. shlibpath_var=LD_LIBRARY_PATH
  11237. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11238. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11239. ;;
  11240. solaris*)
  11241. version_type=linux
  11242. need_lib_prefix=no
  11243. need_version=no
  11244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11245. soname_spec='${libname}${release}${shared_ext}$major'
  11246. shlibpath_var=LD_LIBRARY_PATH
  11247. shlibpath_overrides_runpath=yes
  11248. hardcode_into_libs=yes
  11249. # ldd complains unless libraries are executable
  11250. postinstall_cmds='chmod +x $lib'
  11251. ;;
  11252. sunos4*)
  11253. version_type=sunos
  11254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11255. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11256. shlibpath_var=LD_LIBRARY_PATH
  11257. shlibpath_overrides_runpath=yes
  11258. if test "$with_gnu_ld" = yes; then
  11259. need_lib_prefix=no
  11260. fi
  11261. need_version=yes
  11262. ;;
  11263. sysv4 | sysv4.3*)
  11264. version_type=linux
  11265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11266. soname_spec='${libname}${release}${shared_ext}$major'
  11267. shlibpath_var=LD_LIBRARY_PATH
  11268. case $host_vendor in
  11269. sni)
  11270. shlibpath_overrides_runpath=no
  11271. need_lib_prefix=no
  11272. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11273. runpath_var=LD_RUN_PATH
  11274. ;;
  11275. siemens)
  11276. need_lib_prefix=no
  11277. ;;
  11278. motorola)
  11279. need_lib_prefix=no
  11280. need_version=no
  11281. shlibpath_overrides_runpath=no
  11282. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11283. ;;
  11284. esac
  11285. ;;
  11286. sysv4*MP*)
  11287. if test -d /usr/nec ;then
  11288. version_type=linux
  11289. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11290. soname_spec='$libname${shared_ext}.$major'
  11291. shlibpath_var=LD_LIBRARY_PATH
  11292. fi
  11293. ;;
  11294. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11295. version_type=freebsd-elf
  11296. need_lib_prefix=no
  11297. need_version=no
  11298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11299. soname_spec='${libname}${release}${shared_ext}$major'
  11300. shlibpath_var=LD_LIBRARY_PATH
  11301. hardcode_into_libs=yes
  11302. if test "$with_gnu_ld" = yes; then
  11303. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11304. shlibpath_overrides_runpath=no
  11305. else
  11306. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11307. shlibpath_overrides_runpath=yes
  11308. case $host_os in
  11309. sco3.2v5*)
  11310. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11311. ;;
  11312. esac
  11313. fi
  11314. sys_lib_dlsearch_path_spec='/usr/lib'
  11315. ;;
  11316. uts4*)
  11317. version_type=linux
  11318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11319. soname_spec='${libname}${release}${shared_ext}$major'
  11320. shlibpath_var=LD_LIBRARY_PATH
  11321. ;;
  11322. *)
  11323. dynamic_linker=no
  11324. ;;
  11325. esac
  11326. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11327. echo "${ECHO_T}$dynamic_linker" >&6
  11328. test "$dynamic_linker" = no && can_build_shared=no
  11329. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11330. if test "$GCC" = yes; then
  11331. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11332. fi
  11333. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11334. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11335. hardcode_action_CXX=
  11336. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11337. test -n "$runpath_var_CXX" || \
  11338. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11339. # We can hardcode non-existant directories.
  11340. if test "$hardcode_direct_CXX" != no &&
  11341. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11342. # have to relink, otherwise we might link with an installed library
  11343. # when we should be linking with a yet-to-be-installed one
  11344. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11345. test "$hardcode_minus_L_CXX" != no; then
  11346. # Linking always hardcodes the temporary library directory.
  11347. hardcode_action_CXX=relink
  11348. else
  11349. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11350. hardcode_action_CXX=immediate
  11351. fi
  11352. else
  11353. # We cannot hardcode anything, or else we can only hardcode existing
  11354. # directories.
  11355. hardcode_action_CXX=unsupported
  11356. fi
  11357. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11358. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11359. if test "$hardcode_action_CXX" = relink; then
  11360. # Fast installation is not supported
  11361. enable_fast_install=no
  11362. elif test "$shlibpath_overrides_runpath" = yes ||
  11363. test "$enable_shared" = no; then
  11364. # Fast installation is not necessary
  11365. enable_fast_install=needless
  11366. fi
  11367. # The else clause should only fire when bootstrapping the
  11368. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11369. # with your package, and you will get complaints that there are
  11370. # no rules to generate ltmain.sh.
  11371. if test -f "$ltmain"; then
  11372. # See if we are running on zsh, and set the options which allow our commands through
  11373. # without removal of \ escapes.
  11374. if test -n "${ZSH_VERSION+set}" ; then
  11375. setopt NO_GLOB_SUBST
  11376. fi
  11377. # Now quote all the things that may contain metacharacters while being
  11378. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11379. # variables and quote the copies for generation of the libtool script.
  11380. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11381. SED SHELL STRIP \
  11382. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11383. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11384. deplibs_check_method reload_flag reload_cmds need_locks \
  11385. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11386. lt_cv_sys_global_symbol_to_c_name_address \
  11387. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11388. old_postinstall_cmds old_postuninstall_cmds \
  11389. compiler_CXX \
  11390. CC_CXX \
  11391. LD_CXX \
  11392. lt_prog_compiler_wl_CXX \
  11393. lt_prog_compiler_pic_CXX \
  11394. lt_prog_compiler_static_CXX \
  11395. lt_prog_compiler_no_builtin_flag_CXX \
  11396. export_dynamic_flag_spec_CXX \
  11397. thread_safe_flag_spec_CXX \
  11398. whole_archive_flag_spec_CXX \
  11399. enable_shared_with_static_runtimes_CXX \
  11400. old_archive_cmds_CXX \
  11401. old_archive_from_new_cmds_CXX \
  11402. predep_objects_CXX \
  11403. postdep_objects_CXX \
  11404. predeps_CXX \
  11405. postdeps_CXX \
  11406. compiler_lib_search_path_CXX \
  11407. archive_cmds_CXX \
  11408. archive_expsym_cmds_CXX \
  11409. postinstall_cmds_CXX \
  11410. postuninstall_cmds_CXX \
  11411. old_archive_from_expsyms_cmds_CXX \
  11412. allow_undefined_flag_CXX \
  11413. no_undefined_flag_CXX \
  11414. export_symbols_cmds_CXX \
  11415. hardcode_libdir_flag_spec_CXX \
  11416. hardcode_libdir_flag_spec_ld_CXX \
  11417. hardcode_libdir_separator_CXX \
  11418. hardcode_automatic_CXX \
  11419. module_cmds_CXX \
  11420. module_expsym_cmds_CXX \
  11421. lt_cv_prog_compiler_c_o_CXX \
  11422. exclude_expsyms_CXX \
  11423. include_expsyms_CXX; do
  11424. case $var in
  11425. old_archive_cmds_CXX | \
  11426. old_archive_from_new_cmds_CXX | \
  11427. archive_cmds_CXX | \
  11428. archive_expsym_cmds_CXX | \
  11429. module_cmds_CXX | \
  11430. module_expsym_cmds_CXX | \
  11431. old_archive_from_expsyms_cmds_CXX | \
  11432. export_symbols_cmds_CXX | \
  11433. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11434. postinstall_cmds | postuninstall_cmds | \
  11435. old_postinstall_cmds | old_postuninstall_cmds | \
  11436. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11437. # Double-quote double-evaled strings.
  11438. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11439. ;;
  11440. *)
  11441. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11442. ;;
  11443. esac
  11444. done
  11445. case $lt_echo in
  11446. *'\$0 --fallback-echo"')
  11447. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11448. ;;
  11449. esac
  11450. cfgfile="$ofile"
  11451. cat <<__EOF__ >> "$cfgfile"
  11452. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11453. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11454. # Shell to use when invoking shell scripts.
  11455. SHELL=$lt_SHELL
  11456. # Whether or not to build shared libraries.
  11457. build_libtool_libs=$enable_shared
  11458. # Whether or not to build static libraries.
  11459. build_old_libs=$enable_static
  11460. # Whether or not to add -lc for building shared libraries.
  11461. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11462. # Whether or not to disallow shared libs when runtime libs are static
  11463. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11464. # Whether or not to optimize for fast installation.
  11465. fast_install=$enable_fast_install
  11466. # The host system.
  11467. host_alias=$host_alias
  11468. host=$host
  11469. host_os=$host_os
  11470. # The build system.
  11471. build_alias=$build_alias
  11472. build=$build
  11473. build_os=$build_os
  11474. # An echo program that does not interpret backslashes.
  11475. echo=$lt_echo
  11476. # The archiver.
  11477. AR=$lt_AR
  11478. AR_FLAGS=$lt_AR_FLAGS
  11479. # A C compiler.
  11480. LTCC=$lt_LTCC
  11481. # LTCC compiler flags.
  11482. LTCFLAGS=$lt_LTCFLAGS
  11483. # A language-specific compiler.
  11484. CC=$lt_compiler_CXX
  11485. # Is the compiler the GNU C compiler?
  11486. with_gcc=$GCC_CXX
  11487. # An ERE matcher.
  11488. EGREP=$lt_EGREP
  11489. # The linker used to build libraries.
  11490. LD=$lt_LD_CXX
  11491. # Whether we need hard or soft links.
  11492. LN_S=$lt_LN_S
  11493. # A BSD-compatible nm program.
  11494. NM=$lt_NM
  11495. # A symbol stripping program
  11496. STRIP=$lt_STRIP
  11497. # Used to examine libraries when file_magic_cmd begins "file"
  11498. MAGIC_CMD=$MAGIC_CMD
  11499. # Used on cygwin: DLL creation program.
  11500. DLLTOOL="$DLLTOOL"
  11501. # Used on cygwin: object dumper.
  11502. OBJDUMP="$OBJDUMP"
  11503. # Used on cygwin: assembler.
  11504. AS="$AS"
  11505. # The name of the directory that contains temporary libtool files.
  11506. objdir=$objdir
  11507. # How to create reloadable object files.
  11508. reload_flag=$lt_reload_flag
  11509. reload_cmds=$lt_reload_cmds
  11510. # How to pass a linker flag through the compiler.
  11511. wl=$lt_lt_prog_compiler_wl_CXX
  11512. # Object file suffix (normally "o").
  11513. objext="$ac_objext"
  11514. # Old archive suffix (normally "a").
  11515. libext="$libext"
  11516. # Shared library suffix (normally ".so").
  11517. shrext_cmds='$shrext_cmds'
  11518. # Executable file suffix (normally "").
  11519. exeext="$exeext"
  11520. # Additional compiler flags for building library objects.
  11521. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11522. pic_mode=$pic_mode
  11523. # What is the maximum length of a command?
  11524. max_cmd_len=$lt_cv_sys_max_cmd_len
  11525. # Does compiler simultaneously support -c and -o options?
  11526. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11527. # Must we lock files when doing compilation?
  11528. need_locks=$lt_need_locks
  11529. # Do we need the lib prefix for modules?
  11530. need_lib_prefix=$need_lib_prefix
  11531. # Do we need a version for libraries?
  11532. need_version=$need_version
  11533. # Whether dlopen is supported.
  11534. dlopen_support=$enable_dlopen
  11535. # Whether dlopen of programs is supported.
  11536. dlopen_self=$enable_dlopen_self
  11537. # Whether dlopen of statically linked programs is supported.
  11538. dlopen_self_static=$enable_dlopen_self_static
  11539. # Compiler flag to prevent dynamic linking.
  11540. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11541. # Compiler flag to turn off builtin functions.
  11542. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11543. # Compiler flag to allow reflexive dlopens.
  11544. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11545. # Compiler flag to generate shared objects directly from archives.
  11546. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11547. # Compiler flag to generate thread-safe objects.
  11548. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11549. # Library versioning type.
  11550. version_type=$version_type
  11551. # Format of library name prefix.
  11552. libname_spec=$lt_libname_spec
  11553. # List of archive names. First name is the real one, the rest are links.
  11554. # The last name is the one that the linker finds with -lNAME.
  11555. library_names_spec=$lt_library_names_spec
  11556. # The coded name of the library, if different from the real name.
  11557. soname_spec=$lt_soname_spec
  11558. # Commands used to build and install an old-style archive.
  11559. RANLIB=$lt_RANLIB
  11560. old_archive_cmds=$lt_old_archive_cmds_CXX
  11561. old_postinstall_cmds=$lt_old_postinstall_cmds
  11562. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11563. # Create an old-style archive from a shared archive.
  11564. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11565. # Create a temporary old-style archive to link instead of a shared archive.
  11566. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11567. # Commands used to build and install a shared archive.
  11568. archive_cmds=$lt_archive_cmds_CXX
  11569. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11570. postinstall_cmds=$lt_postinstall_cmds
  11571. postuninstall_cmds=$lt_postuninstall_cmds
  11572. # Commands used to build a loadable module (assumed same as above if empty)
  11573. module_cmds=$lt_module_cmds_CXX
  11574. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11575. # Commands to strip libraries.
  11576. old_striplib=$lt_old_striplib
  11577. striplib=$lt_striplib
  11578. # Dependencies to place before the objects being linked to create a
  11579. # shared library.
  11580. predep_objects=$lt_predep_objects_CXX
  11581. # Dependencies to place after the objects being linked to create a
  11582. # shared library.
  11583. postdep_objects=$lt_postdep_objects_CXX
  11584. # Dependencies to place before the objects being linked to create a
  11585. # shared library.
  11586. predeps=$lt_predeps_CXX
  11587. # Dependencies to place after the objects being linked to create a
  11588. # shared library.
  11589. postdeps=$lt_postdeps_CXX
  11590. # The library search path used internally by the compiler when linking
  11591. # a shared library.
  11592. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11593. # Method to check whether dependent libraries are shared objects.
  11594. deplibs_check_method=$lt_deplibs_check_method
  11595. # Command to use when deplibs_check_method == file_magic.
  11596. file_magic_cmd=$lt_file_magic_cmd
  11597. # Flag that allows shared libraries with undefined symbols to be built.
  11598. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11599. # Flag that forces no undefined symbols.
  11600. no_undefined_flag=$lt_no_undefined_flag_CXX
  11601. # Commands used to finish a libtool library installation in a directory.
  11602. finish_cmds=$lt_finish_cmds
  11603. # Same as above, but a single script fragment to be evaled but not shown.
  11604. finish_eval=$lt_finish_eval
  11605. # Take the output of nm and produce a listing of raw symbols and C names.
  11606. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11607. # Transform the output of nm in a proper C declaration
  11608. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11609. # Transform the output of nm in a C name address pair
  11610. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11611. # This is the shared library runtime path variable.
  11612. runpath_var=$runpath_var
  11613. # This is the shared library path variable.
  11614. shlibpath_var=$shlibpath_var
  11615. # Is shlibpath searched before the hard-coded library search path?
  11616. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11617. # How to hardcode a shared library path into an executable.
  11618. hardcode_action=$hardcode_action_CXX
  11619. # Whether we should hardcode library paths into libraries.
  11620. hardcode_into_libs=$hardcode_into_libs
  11621. # Flag to hardcode \$libdir into a binary during linking.
  11622. # This must work even if \$libdir does not exist.
  11623. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11624. # If ld is used when linking, flag to hardcode \$libdir into
  11625. # a binary during linking. This must work even if \$libdir does
  11626. # not exist.
  11627. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11628. # Whether we need a single -rpath flag with a separated argument.
  11629. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11630. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11631. # resulting binary.
  11632. hardcode_direct=$hardcode_direct_CXX
  11633. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11634. # resulting binary.
  11635. hardcode_minus_L=$hardcode_minus_L_CXX
  11636. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11637. # the resulting binary.
  11638. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11639. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11640. # and all subsequent libraries and executables linked against it.
  11641. hardcode_automatic=$hardcode_automatic_CXX
  11642. # Variables whose values should be saved in libtool wrapper scripts and
  11643. # restored at relink time.
  11644. variables_saved_for_relink="$variables_saved_for_relink"
  11645. # Whether libtool must link a program against all its dependency libraries.
  11646. link_all_deplibs=$link_all_deplibs_CXX
  11647. # Compile-time system search path for libraries
  11648. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11649. # Run-time system search path for libraries
  11650. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11651. # Fix the shell variable \$srcfile for the compiler.
  11652. fix_srcfile_path="$fix_srcfile_path_CXX"
  11653. # Set to yes if exported symbols are required.
  11654. always_export_symbols=$always_export_symbols_CXX
  11655. # The commands to list exported symbols.
  11656. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11657. # The commands to extract the exported symbol list from a shared archive.
  11658. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11659. # Symbols that should not be listed in the preloaded symbols.
  11660. exclude_expsyms=$lt_exclude_expsyms_CXX
  11661. # Symbols that must always be exported.
  11662. include_expsyms=$lt_include_expsyms_CXX
  11663. # ### END LIBTOOL TAG CONFIG: $tagname
  11664. __EOF__
  11665. else
  11666. # If there is no Makefile yet, we rely on a make rule to execute
  11667. # `config.status --recheck' to rerun these tests and create the
  11668. # libtool script then.
  11669. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11670. if test -f "$ltmain_in"; then
  11671. test -f Makefile && make "$ltmain"
  11672. fi
  11673. fi
  11674. ac_ext=c
  11675. ac_cpp='$CPP $CPPFLAGS'
  11676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11679. CC=$lt_save_CC
  11680. LDCXX=$LD
  11681. LD=$lt_save_LD
  11682. GCC=$lt_save_GCC
  11683. with_gnu_ldcxx=$with_gnu_ld
  11684. with_gnu_ld=$lt_save_with_gnu_ld
  11685. lt_cv_path_LDCXX=$lt_cv_path_LD
  11686. lt_cv_path_LD=$lt_save_path_LD
  11687. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11688. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11689. else
  11690. tagname=""
  11691. fi
  11692. ;;
  11693. F77)
  11694. if test -n "$F77" && test "X$F77" != "Xno"; then
  11695. ac_ext=f
  11696. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11697. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11698. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11699. archive_cmds_need_lc_F77=no
  11700. allow_undefined_flag_F77=
  11701. always_export_symbols_F77=no
  11702. archive_expsym_cmds_F77=
  11703. export_dynamic_flag_spec_F77=
  11704. hardcode_direct_F77=no
  11705. hardcode_libdir_flag_spec_F77=
  11706. hardcode_libdir_flag_spec_ld_F77=
  11707. hardcode_libdir_separator_F77=
  11708. hardcode_minus_L_F77=no
  11709. hardcode_automatic_F77=no
  11710. module_cmds_F77=
  11711. module_expsym_cmds_F77=
  11712. link_all_deplibs_F77=unknown
  11713. old_archive_cmds_F77=$old_archive_cmds
  11714. no_undefined_flag_F77=
  11715. whole_archive_flag_spec_F77=
  11716. enable_shared_with_static_runtimes_F77=no
  11717. # Source file extension for f77 test sources.
  11718. ac_ext=f
  11719. # Object file extension for compiled f77 test sources.
  11720. objext=o
  11721. objext_F77=$objext
  11722. # Code to be used in simple compile tests
  11723. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11724. # Code to be used in simple link tests
  11725. lt_simple_link_test_code=" program t\n end\n"
  11726. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11727. # If no C compiler was specified, use CC.
  11728. LTCC=${LTCC-"$CC"}
  11729. # If no C compiler flags were specified, use CFLAGS.
  11730. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11731. # Allow CC to be a program name with arguments.
  11732. compiler=$CC
  11733. # save warnings/boilerplate of simple test code
  11734. ac_outfile=conftest.$ac_objext
  11735. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11736. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11737. _lt_compiler_boilerplate=`cat conftest.err`
  11738. $rm conftest*
  11739. ac_outfile=conftest.$ac_objext
  11740. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11741. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11742. _lt_linker_boilerplate=`cat conftest.err`
  11743. $rm conftest*
  11744. # Allow CC to be a program name with arguments.
  11745. lt_save_CC="$CC"
  11746. CC=${F77-"f77"}
  11747. compiler=$CC
  11748. compiler_F77=$CC
  11749. for cc_temp in $compiler""; do
  11750. case $cc_temp in
  11751. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11752. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11753. \-*) ;;
  11754. *) break;;
  11755. esac
  11756. done
  11757. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11758. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11759. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11760. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11761. echo "${ECHO_T}$can_build_shared" >&6
  11762. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11763. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11764. test "$can_build_shared" = "no" && enable_shared=no
  11765. # On AIX, shared libraries and static libraries use the same namespace, and
  11766. # are all built from PIC.
  11767. case $host_os in
  11768. aix3*)
  11769. test "$enable_shared" = yes && enable_static=no
  11770. if test -n "$RANLIB"; then
  11771. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11772. postinstall_cmds='$RANLIB $lib'
  11773. fi
  11774. ;;
  11775. aix4* | aix5*)
  11776. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11777. test "$enable_shared" = yes && enable_static=no
  11778. fi
  11779. ;;
  11780. esac
  11781. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11782. echo "${ECHO_T}$enable_shared" >&6
  11783. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11784. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11785. # Make sure either enable_shared or enable_static is yes.
  11786. test "$enable_shared" = yes || enable_static=yes
  11787. echo "$as_me:$LINENO: result: $enable_static" >&5
  11788. echo "${ECHO_T}$enable_static" >&6
  11789. GCC_F77="$G77"
  11790. LD_F77="$LD"
  11791. lt_prog_compiler_wl_F77=
  11792. lt_prog_compiler_pic_F77=
  11793. lt_prog_compiler_static_F77=
  11794. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11795. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11796. if test "$GCC" = yes; then
  11797. lt_prog_compiler_wl_F77='-Wl,'
  11798. lt_prog_compiler_static_F77='-static'
  11799. case $host_os in
  11800. aix*)
  11801. # All AIX code is PIC.
  11802. if test "$host_cpu" = ia64; then
  11803. # AIX 5 now supports IA64 processor
  11804. lt_prog_compiler_static_F77='-Bstatic'
  11805. fi
  11806. ;;
  11807. amigaos*)
  11808. # FIXME: we need at least 68020 code to build shared libraries, but
  11809. # adding the `-m68020' flag to GCC prevents building anything better,
  11810. # like `-m68040'.
  11811. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11812. ;;
  11813. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11814. # PIC is the default for these OSes.
  11815. ;;
  11816. mingw* | pw32* | os2*)
  11817. # This hack is so that the source file can tell whether it is being
  11818. # built for inclusion in a dll (and should export symbols for example).
  11819. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11820. ;;
  11821. darwin* | rhapsody*)
  11822. # PIC is the default on this platform
  11823. # Common symbols not allowed in MH_DYLIB files
  11824. lt_prog_compiler_pic_F77='-fno-common'
  11825. ;;
  11826. interix3*)
  11827. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11828. # Instead, we relocate shared libraries at runtime.
  11829. ;;
  11830. msdosdjgpp*)
  11831. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11832. # on systems that don't support them.
  11833. lt_prog_compiler_can_build_shared_F77=no
  11834. enable_shared=no
  11835. ;;
  11836. sysv4*MP*)
  11837. if test -d /usr/nec; then
  11838. lt_prog_compiler_pic_F77=-Kconform_pic
  11839. fi
  11840. ;;
  11841. hpux*)
  11842. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11843. # not for PA HP-UX.
  11844. case $host_cpu in
  11845. hppa*64*|ia64*)
  11846. # +Z the default
  11847. ;;
  11848. *)
  11849. lt_prog_compiler_pic_F77='-fPIC'
  11850. ;;
  11851. esac
  11852. ;;
  11853. *)
  11854. lt_prog_compiler_pic_F77='-fPIC'
  11855. ;;
  11856. esac
  11857. else
  11858. # PORTME Check for flag to pass linker flags through the system compiler.
  11859. case $host_os in
  11860. aix*)
  11861. lt_prog_compiler_wl_F77='-Wl,'
  11862. if test "$host_cpu" = ia64; then
  11863. # AIX 5 now supports IA64 processor
  11864. lt_prog_compiler_static_F77='-Bstatic'
  11865. else
  11866. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11867. fi
  11868. ;;
  11869. darwin*)
  11870. # PIC is the default on this platform
  11871. # Common symbols not allowed in MH_DYLIB files
  11872. case $cc_basename in
  11873. xlc*)
  11874. lt_prog_compiler_pic_F77='-qnocommon'
  11875. lt_prog_compiler_wl_F77='-Wl,'
  11876. ;;
  11877. esac
  11878. ;;
  11879. mingw* | pw32* | os2*)
  11880. # This hack is so that the source file can tell whether it is being
  11881. # built for inclusion in a dll (and should export symbols for example).
  11882. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11883. ;;
  11884. hpux9* | hpux10* | hpux11*)
  11885. lt_prog_compiler_wl_F77='-Wl,'
  11886. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11887. # not for PA HP-UX.
  11888. case $host_cpu in
  11889. hppa*64*|ia64*)
  11890. # +Z the default
  11891. ;;
  11892. *)
  11893. lt_prog_compiler_pic_F77='+Z'
  11894. ;;
  11895. esac
  11896. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11897. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11898. ;;
  11899. irix5* | irix6* | nonstopux*)
  11900. lt_prog_compiler_wl_F77='-Wl,'
  11901. # PIC (with -KPIC) is the default.
  11902. lt_prog_compiler_static_F77='-non_shared'
  11903. ;;
  11904. newsos6)
  11905. lt_prog_compiler_pic_F77='-KPIC'
  11906. lt_prog_compiler_static_F77='-Bstatic'
  11907. ;;
  11908. linux*)
  11909. case $cc_basename in
  11910. icc* | ecc*)
  11911. lt_prog_compiler_wl_F77='-Wl,'
  11912. lt_prog_compiler_pic_F77='-KPIC'
  11913. lt_prog_compiler_static_F77='-static'
  11914. ;;
  11915. pgcc* | pgf77* | pgf90* | pgf95*)
  11916. # Portland Group compilers (*not* the Pentium gcc compiler,
  11917. # which looks to be a dead project)
  11918. lt_prog_compiler_wl_F77='-Wl,'
  11919. lt_prog_compiler_pic_F77='-fpic'
  11920. lt_prog_compiler_static_F77='-Bstatic'
  11921. ;;
  11922. ccc*)
  11923. lt_prog_compiler_wl_F77='-Wl,'
  11924. # All Alpha code is PIC.
  11925. lt_prog_compiler_static_F77='-non_shared'
  11926. ;;
  11927. esac
  11928. ;;
  11929. osf3* | osf4* | osf5*)
  11930. lt_prog_compiler_wl_F77='-Wl,'
  11931. # All OSF/1 code is PIC.
  11932. lt_prog_compiler_static_F77='-non_shared'
  11933. ;;
  11934. solaris*)
  11935. lt_prog_compiler_pic_F77='-KPIC'
  11936. lt_prog_compiler_static_F77='-Bstatic'
  11937. case $cc_basename in
  11938. f77* | f90* | f95*)
  11939. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11940. *)
  11941. lt_prog_compiler_wl_F77='-Wl,';;
  11942. esac
  11943. ;;
  11944. sunos4*)
  11945. lt_prog_compiler_wl_F77='-Qoption ld '
  11946. lt_prog_compiler_pic_F77='-PIC'
  11947. lt_prog_compiler_static_F77='-Bstatic'
  11948. ;;
  11949. sysv4 | sysv4.2uw2* | sysv4.3*)
  11950. lt_prog_compiler_wl_F77='-Wl,'
  11951. lt_prog_compiler_pic_F77='-KPIC'
  11952. lt_prog_compiler_static_F77='-Bstatic'
  11953. ;;
  11954. sysv4*MP*)
  11955. if test -d /usr/nec ;then
  11956. lt_prog_compiler_pic_F77='-Kconform_pic'
  11957. lt_prog_compiler_static_F77='-Bstatic'
  11958. fi
  11959. ;;
  11960. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11961. lt_prog_compiler_wl_F77='-Wl,'
  11962. lt_prog_compiler_pic_F77='-KPIC'
  11963. lt_prog_compiler_static_F77='-Bstatic'
  11964. ;;
  11965. unicos*)
  11966. lt_prog_compiler_wl_F77='-Wl,'
  11967. lt_prog_compiler_can_build_shared_F77=no
  11968. ;;
  11969. uts4*)
  11970. lt_prog_compiler_pic_F77='-pic'
  11971. lt_prog_compiler_static_F77='-Bstatic'
  11972. ;;
  11973. *)
  11974. lt_prog_compiler_can_build_shared_F77=no
  11975. ;;
  11976. esac
  11977. fi
  11978. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11979. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11980. #
  11981. # Check to make sure the PIC flag actually works.
  11982. #
  11983. if test -n "$lt_prog_compiler_pic_F77"; then
  11984. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11985. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11986. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11987. echo $ECHO_N "(cached) $ECHO_C" >&6
  11988. else
  11989. lt_prog_compiler_pic_works_F77=no
  11990. ac_outfile=conftest.$ac_objext
  11991. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11992. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11993. # Insert the option either (1) after the last *FLAGS variable, or
  11994. # (2) before a word containing "conftest.", or (3) at the end.
  11995. # Note that $ac_compile itself does not contain backslashes and begins
  11996. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11997. # The option is referenced via a variable to avoid confusing sed.
  11998. lt_compile=`echo "$ac_compile" | $SED \
  11999. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12000. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12001. -e 's:$: $lt_compiler_flag:'`
  12002. (eval echo "\"\$as_me:13338: $lt_compile\"" >&5)
  12003. (eval "$lt_compile" 2>conftest.err)
  12004. ac_status=$?
  12005. cat conftest.err >&5
  12006. echo "$as_me:13342: \$? = $ac_status" >&5
  12007. if (exit $ac_status) && test -s "$ac_outfile"; then
  12008. # The compiler can only warn and ignore the option if not recognized
  12009. # So say no if there are warnings other than the usual output.
  12010. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12011. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12012. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12013. lt_prog_compiler_pic_works_F77=yes
  12014. fi
  12015. fi
  12016. $rm conftest*
  12017. fi
  12018. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12019. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12020. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12021. case $lt_prog_compiler_pic_F77 in
  12022. "" | " "*) ;;
  12023. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12024. esac
  12025. else
  12026. lt_prog_compiler_pic_F77=
  12027. lt_prog_compiler_can_build_shared_F77=no
  12028. fi
  12029. fi
  12030. case $host_os in
  12031. # For platforms which do not support PIC, -DPIC is meaningless:
  12032. *djgpp*)
  12033. lt_prog_compiler_pic_F77=
  12034. ;;
  12035. *)
  12036. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12037. ;;
  12038. esac
  12039. #
  12040. # Check to make sure the static flag actually works.
  12041. #
  12042. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12043. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12044. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12045. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12046. echo $ECHO_N "(cached) $ECHO_C" >&6
  12047. else
  12048. lt_prog_compiler_static_works_F77=no
  12049. save_LDFLAGS="$LDFLAGS"
  12050. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12051. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12052. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12053. # The linker can only warn and ignore the option if not recognized
  12054. # So say no if there are warnings
  12055. if test -s conftest.err; then
  12056. # Append any errors to the config.log.
  12057. cat conftest.err 1>&5
  12058. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12059. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12060. if diff conftest.exp conftest.er2 >/dev/null; then
  12061. lt_prog_compiler_static_works_F77=yes
  12062. fi
  12063. else
  12064. lt_prog_compiler_static_works_F77=yes
  12065. fi
  12066. fi
  12067. $rm conftest*
  12068. LDFLAGS="$save_LDFLAGS"
  12069. fi
  12070. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12071. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12072. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12073. :
  12074. else
  12075. lt_prog_compiler_static_F77=
  12076. fi
  12077. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12078. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12079. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12080. echo $ECHO_N "(cached) $ECHO_C" >&6
  12081. else
  12082. lt_cv_prog_compiler_c_o_F77=no
  12083. $rm -r conftest 2>/dev/null
  12084. mkdir conftest
  12085. cd conftest
  12086. mkdir out
  12087. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12088. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12089. # Insert the option either (1) after the last *FLAGS variable, or
  12090. # (2) before a word containing "conftest.", or (3) at the end.
  12091. # Note that $ac_compile itself does not contain backslashes and begins
  12092. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12093. lt_compile=`echo "$ac_compile" | $SED \
  12094. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12095. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12096. -e 's:$: $lt_compiler_flag:'`
  12097. (eval echo "\"\$as_me:13442: $lt_compile\"" >&5)
  12098. (eval "$lt_compile" 2>out/conftest.err)
  12099. ac_status=$?
  12100. cat out/conftest.err >&5
  12101. echo "$as_me:13446: \$? = $ac_status" >&5
  12102. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12103. then
  12104. # The compiler can only warn and ignore the option if not recognized
  12105. # So say no if there are warnings
  12106. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12107. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12108. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12109. lt_cv_prog_compiler_c_o_F77=yes
  12110. fi
  12111. fi
  12112. chmod u+w . 2>&5
  12113. $rm conftest*
  12114. # SGI C++ compiler will create directory out/ii_files/ for
  12115. # template instantiation
  12116. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12117. $rm out/* && rmdir out
  12118. cd ..
  12119. rmdir conftest
  12120. $rm conftest*
  12121. fi
  12122. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12123. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12124. hard_links="nottested"
  12125. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12126. # do not overwrite the value of need_locks provided by the user
  12127. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12128. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12129. hard_links=yes
  12130. $rm conftest*
  12131. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12132. touch conftest.a
  12133. ln conftest.a conftest.b 2>&5 || hard_links=no
  12134. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12135. echo "$as_me:$LINENO: result: $hard_links" >&5
  12136. echo "${ECHO_T}$hard_links" >&6
  12137. if test "$hard_links" = no; then
  12138. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12139. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12140. need_locks=warn
  12141. fi
  12142. else
  12143. need_locks=no
  12144. fi
  12145. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12146. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12147. runpath_var=
  12148. allow_undefined_flag_F77=
  12149. enable_shared_with_static_runtimes_F77=no
  12150. archive_cmds_F77=
  12151. archive_expsym_cmds_F77=
  12152. old_archive_From_new_cmds_F77=
  12153. old_archive_from_expsyms_cmds_F77=
  12154. export_dynamic_flag_spec_F77=
  12155. whole_archive_flag_spec_F77=
  12156. thread_safe_flag_spec_F77=
  12157. hardcode_libdir_flag_spec_F77=
  12158. hardcode_libdir_flag_spec_ld_F77=
  12159. hardcode_libdir_separator_F77=
  12160. hardcode_direct_F77=no
  12161. hardcode_minus_L_F77=no
  12162. hardcode_shlibpath_var_F77=unsupported
  12163. link_all_deplibs_F77=unknown
  12164. hardcode_automatic_F77=no
  12165. module_cmds_F77=
  12166. module_expsym_cmds_F77=
  12167. always_export_symbols_F77=no
  12168. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12169. # include_expsyms should be a list of space-separated symbols to be *always*
  12170. # included in the symbol list
  12171. include_expsyms_F77=
  12172. # exclude_expsyms can be an extended regexp of symbols to exclude
  12173. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12174. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12175. # as well as any symbol that contains `d'.
  12176. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12177. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12178. # platforms (ab)use it in PIC code, but their linkers get confused if
  12179. # the symbol is explicitly referenced. Since portable code cannot
  12180. # rely on this symbol name, it's probably fine to never include it in
  12181. # preloaded symbol tables.
  12182. extract_expsyms_cmds=
  12183. # Just being paranoid about ensuring that cc_basename is set.
  12184. for cc_temp in $compiler""; do
  12185. case $cc_temp in
  12186. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12187. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12188. \-*) ;;
  12189. *) break;;
  12190. esac
  12191. done
  12192. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12193. case $host_os in
  12194. cygwin* | mingw* | pw32*)
  12195. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12196. # When not using gcc, we currently assume that we are using
  12197. # Microsoft Visual C++.
  12198. if test "$GCC" != yes; then
  12199. with_gnu_ld=no
  12200. fi
  12201. ;;
  12202. interix*)
  12203. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12204. with_gnu_ld=yes
  12205. ;;
  12206. openbsd*)
  12207. with_gnu_ld=no
  12208. ;;
  12209. esac
  12210. ld_shlibs_F77=yes
  12211. if test "$with_gnu_ld" = yes; then
  12212. # If archive_cmds runs LD, not CC, wlarc should be empty
  12213. wlarc='${wl}'
  12214. # Set some defaults for GNU ld with shared library support. These
  12215. # are reset later if shared libraries are not supported. Putting them
  12216. # here allows them to be overridden if necessary.
  12217. runpath_var=LD_RUN_PATH
  12218. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12219. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12220. # ancient GNU ld didn't support --whole-archive et. al.
  12221. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12222. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12223. else
  12224. whole_archive_flag_spec_F77=
  12225. fi
  12226. supports_anon_versioning=no
  12227. case `$LD -v 2>/dev/null` in
  12228. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12229. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12230. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12231. *\ 2.11.*) ;; # other 2.11 versions
  12232. *) supports_anon_versioning=yes ;;
  12233. esac
  12234. # See if GNU ld supports shared libraries.
  12235. case $host_os in
  12236. aix3* | aix4* | aix5*)
  12237. # On AIX/PPC, the GNU linker is very broken
  12238. if test "$host_cpu" != ia64; then
  12239. ld_shlibs_F77=no
  12240. cat <<EOF 1>&2
  12241. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12242. *** to be unable to reliably create shared libraries on AIX.
  12243. *** Therefore, libtool is disabling shared libraries support. If you
  12244. *** really care for shared libraries, you may want to modify your PATH
  12245. *** so that a non-GNU linker is found, and then restart.
  12246. EOF
  12247. fi
  12248. ;;
  12249. amigaos*)
  12250. 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)'
  12251. hardcode_libdir_flag_spec_F77='-L$libdir'
  12252. hardcode_minus_L_F77=yes
  12253. # Samuel A. Falvo II <[email protected]> reports
  12254. # that the semantics of dynamic libraries on AmigaOS, at least up
  12255. # to version 4, is to share data among multiple programs linked
  12256. # with the same dynamic library. Since this doesn't match the
  12257. # behavior of shared libraries on other platforms, we can't use
  12258. # them.
  12259. ld_shlibs_F77=no
  12260. ;;
  12261. beos*)
  12262. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12263. allow_undefined_flag_F77=unsupported
  12264. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12265. # support --undefined. This deserves some investigation. FIXME
  12266. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12267. else
  12268. ld_shlibs_F77=no
  12269. fi
  12270. ;;
  12271. cygwin* | mingw* | pw32*)
  12272. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12273. # as there is no search path for DLLs.
  12274. hardcode_libdir_flag_spec_F77='-L$libdir'
  12275. allow_undefined_flag_F77=unsupported
  12276. always_export_symbols_F77=no
  12277. enable_shared_with_static_runtimes_F77=yes
  12278. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12279. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12280. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12281. # If the export-symbols file already is a .def file (1st line
  12282. # is EXPORTS), use it as is; otherwise, prepend...
  12283. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12284. cp $export_symbols $output_objdir/$soname.def;
  12285. else
  12286. echo EXPORTS > $output_objdir/$soname.def;
  12287. cat $export_symbols >> $output_objdir/$soname.def;
  12288. fi~
  12289. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12290. else
  12291. ld_shlibs_F77=no
  12292. fi
  12293. ;;
  12294. interix3*)
  12295. hardcode_direct_F77=no
  12296. hardcode_shlibpath_var_F77=no
  12297. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12298. export_dynamic_flag_spec_F77='${wl}-E'
  12299. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12300. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12301. # default) and relocated if they conflict, which is a slow very memory
  12302. # consuming and fragmenting process. To avoid this, we pick a random,
  12303. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12304. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12305. 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'
  12306. 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'
  12307. ;;
  12308. linux*)
  12309. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12310. tmp_addflag=
  12311. case $cc_basename,$host_cpu in
  12312. pgcc*) # Portland Group C compiler
  12313. 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'
  12314. tmp_addflag=' $pic_flag'
  12315. ;;
  12316. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12317. 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'
  12318. tmp_addflag=' $pic_flag -Mnomain' ;;
  12319. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12320. tmp_addflag=' -i_dynamic' ;;
  12321. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12322. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12323. ifc* | ifort*) # Intel Fortran compiler
  12324. tmp_addflag=' -nofor_main' ;;
  12325. esac
  12326. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12327. if test $supports_anon_versioning = yes; then
  12328. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12329. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12330. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12331. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12332. fi
  12333. else
  12334. ld_shlibs_F77=no
  12335. fi
  12336. ;;
  12337. netbsd*)
  12338. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12339. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12340. wlarc=
  12341. else
  12342. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12343. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12344. fi
  12345. ;;
  12346. solaris*)
  12347. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12348. ld_shlibs_F77=no
  12349. cat <<EOF 1>&2
  12350. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12351. *** create shared libraries on Solaris systems. Therefore, libtool
  12352. *** is disabling shared libraries support. We urge you to upgrade GNU
  12353. *** binutils to release 2.9.1 or newer. Another option is to modify
  12354. *** your PATH or compiler configuration so that the native linker is
  12355. *** used, and then restart.
  12356. EOF
  12357. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12358. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12359. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12360. else
  12361. ld_shlibs_F77=no
  12362. fi
  12363. ;;
  12364. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12365. case `$LD -v 2>&1` in
  12366. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12367. ld_shlibs_F77=no
  12368. cat <<_LT_EOF 1>&2
  12369. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12370. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12371. *** is disabling shared libraries support. We urge you to upgrade GNU
  12372. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12373. *** your PATH or compiler configuration so that the native linker is
  12374. *** used, and then restart.
  12375. _LT_EOF
  12376. ;;
  12377. *)
  12378. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12379. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12380. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12381. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12382. else
  12383. ld_shlibs_F77=no
  12384. fi
  12385. ;;
  12386. esac
  12387. ;;
  12388. sunos4*)
  12389. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12390. wlarc=
  12391. hardcode_direct_F77=yes
  12392. hardcode_shlibpath_var_F77=no
  12393. ;;
  12394. *)
  12395. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12396. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12397. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12398. else
  12399. ld_shlibs_F77=no
  12400. fi
  12401. ;;
  12402. esac
  12403. if test "$ld_shlibs_F77" = no; then
  12404. runpath_var=
  12405. hardcode_libdir_flag_spec_F77=
  12406. export_dynamic_flag_spec_F77=
  12407. whole_archive_flag_spec_F77=
  12408. fi
  12409. else
  12410. # PORTME fill in a description of your system's linker (not GNU ld)
  12411. case $host_os in
  12412. aix3*)
  12413. allow_undefined_flag_F77=unsupported
  12414. always_export_symbols_F77=yes
  12415. 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'
  12416. # Note: this linker hardcodes the directories in LIBPATH if there
  12417. # are no directories specified by -L.
  12418. hardcode_minus_L_F77=yes
  12419. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12420. # Neither direct hardcoding nor static linking is supported with a
  12421. # broken collect2.
  12422. hardcode_direct_F77=unsupported
  12423. fi
  12424. ;;
  12425. aix4* | aix5*)
  12426. if test "$host_cpu" = ia64; then
  12427. # On IA64, the linker does run time linking by default, so we don't
  12428. # have to do anything special.
  12429. aix_use_runtimelinking=no
  12430. exp_sym_flag='-Bexport'
  12431. no_entry_flag=""
  12432. else
  12433. # If we're using GNU nm, then we don't want the "-C" option.
  12434. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12435. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12436. 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'
  12437. else
  12438. 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'
  12439. fi
  12440. aix_use_runtimelinking=no
  12441. # Test if we are trying to use run time linking or normal
  12442. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12443. # need to do runtime linking.
  12444. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12445. for ld_flag in $LDFLAGS; do
  12446. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12447. aix_use_runtimelinking=yes
  12448. break
  12449. fi
  12450. done
  12451. ;;
  12452. esac
  12453. exp_sym_flag='-bexport'
  12454. no_entry_flag='-bnoentry'
  12455. fi
  12456. # When large executables or shared objects are built, AIX ld can
  12457. # have problems creating the table of contents. If linking a library
  12458. # or program results in "error TOC overflow" add -mminimal-toc to
  12459. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12460. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12461. archive_cmds_F77=''
  12462. hardcode_direct_F77=yes
  12463. hardcode_libdir_separator_F77=':'
  12464. link_all_deplibs_F77=yes
  12465. if test "$GCC" = yes; then
  12466. case $host_os in aix4.[012]|aix4.[012].*)
  12467. # We only want to do this on AIX 4.2 and lower, the check
  12468. # below for broken collect2 doesn't work under 4.3+
  12469. collect2name=`${CC} -print-prog-name=collect2`
  12470. if test -f "$collect2name" && \
  12471. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12472. then
  12473. # We have reworked collect2
  12474. hardcode_direct_F77=yes
  12475. else
  12476. # We have old collect2
  12477. hardcode_direct_F77=unsupported
  12478. # It fails to find uninstalled libraries when the uninstalled
  12479. # path is not listed in the libpath. Setting hardcode_minus_L
  12480. # to unsupported forces relinking
  12481. hardcode_minus_L_F77=yes
  12482. hardcode_libdir_flag_spec_F77='-L$libdir'
  12483. hardcode_libdir_separator_F77=
  12484. fi
  12485. ;;
  12486. esac
  12487. shared_flag='-shared'
  12488. if test "$aix_use_runtimelinking" = yes; then
  12489. shared_flag="$shared_flag "'${wl}-G'
  12490. fi
  12491. else
  12492. # not using gcc
  12493. if test "$host_cpu" = ia64; then
  12494. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12495. # chokes on -Wl,-G. The following line is correct:
  12496. shared_flag='-G'
  12497. else
  12498. if test "$aix_use_runtimelinking" = yes; then
  12499. shared_flag='${wl}-G'
  12500. else
  12501. shared_flag='${wl}-bM:SRE'
  12502. fi
  12503. fi
  12504. fi
  12505. # It seems that -bexpall does not export symbols beginning with
  12506. # underscore (_), so it is better to generate a list of symbols to export.
  12507. always_export_symbols_F77=yes
  12508. if test "$aix_use_runtimelinking" = yes; then
  12509. # Warning - without using the other runtime loading flags (-brtl),
  12510. # -berok will link without error, but may produce a broken library.
  12511. allow_undefined_flag_F77='-berok'
  12512. # Determine the default libpath from the value encoded in an empty executable.
  12513. cat >conftest.$ac_ext <<_ACEOF
  12514. program main
  12515. end
  12516. _ACEOF
  12517. rm -f conftest.$ac_objext conftest$ac_exeext
  12518. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12519. (eval $ac_link) 2>conftest.er1
  12520. ac_status=$?
  12521. grep -v '^ *+' conftest.er1 >conftest.err
  12522. rm -f conftest.er1
  12523. cat conftest.err >&5
  12524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12525. (exit $ac_status); } &&
  12526. { ac_try='test -z "$ac_f77_werror_flag"
  12527. || test ! -s conftest.err'
  12528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12529. (eval $ac_try) 2>&5
  12530. ac_status=$?
  12531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12532. (exit $ac_status); }; } &&
  12533. { ac_try='test -s conftest$ac_exeext'
  12534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12535. (eval $ac_try) 2>&5
  12536. ac_status=$?
  12537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12538. (exit $ac_status); }; }; then
  12539. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12540. }'`
  12541. # Check for a 64-bit object if we didn't find anything.
  12542. 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; }
  12543. }'`; fi
  12544. else
  12545. echo "$as_me: failed program was:" >&5
  12546. sed 's/^/| /' conftest.$ac_ext >&5
  12547. fi
  12548. rm -f conftest.err conftest.$ac_objext \
  12549. conftest$ac_exeext conftest.$ac_ext
  12550. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12551. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12552. 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"
  12553. else
  12554. if test "$host_cpu" = ia64; then
  12555. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12556. allow_undefined_flag_F77="-z nodefs"
  12557. 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"
  12558. else
  12559. # Determine the default libpath from the value encoded in an empty executable.
  12560. cat >conftest.$ac_ext <<_ACEOF
  12561. program main
  12562. end
  12563. _ACEOF
  12564. rm -f conftest.$ac_objext conftest$ac_exeext
  12565. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12566. (eval $ac_link) 2>conftest.er1
  12567. ac_status=$?
  12568. grep -v '^ *+' conftest.er1 >conftest.err
  12569. rm -f conftest.er1
  12570. cat conftest.err >&5
  12571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12572. (exit $ac_status); } &&
  12573. { ac_try='test -z "$ac_f77_werror_flag"
  12574. || test ! -s conftest.err'
  12575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12576. (eval $ac_try) 2>&5
  12577. ac_status=$?
  12578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12579. (exit $ac_status); }; } &&
  12580. { ac_try='test -s conftest$ac_exeext'
  12581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12582. (eval $ac_try) 2>&5
  12583. ac_status=$?
  12584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12585. (exit $ac_status); }; }; then
  12586. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12587. }'`
  12588. # Check for a 64-bit object if we didn't find anything.
  12589. 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; }
  12590. }'`; fi
  12591. else
  12592. echo "$as_me: failed program was:" >&5
  12593. sed 's/^/| /' conftest.$ac_ext >&5
  12594. fi
  12595. rm -f conftest.err conftest.$ac_objext \
  12596. conftest$ac_exeext conftest.$ac_ext
  12597. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12598. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12599. # Warning - without using the other run time loading flags,
  12600. # -berok will link without error, but may produce a broken library.
  12601. no_undefined_flag_F77=' ${wl}-bernotok'
  12602. allow_undefined_flag_F77=' ${wl}-berok'
  12603. # Exported symbols can be pulled into shared objects from archives
  12604. whole_archive_flag_spec_F77='$convenience'
  12605. archive_cmds_need_lc_F77=yes
  12606. # This is similar to how AIX traditionally builds its shared libraries.
  12607. 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'
  12608. fi
  12609. fi
  12610. ;;
  12611. amigaos*)
  12612. 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)'
  12613. hardcode_libdir_flag_spec_F77='-L$libdir'
  12614. hardcode_minus_L_F77=yes
  12615. # see comment about different semantics on the GNU ld section
  12616. ld_shlibs_F77=no
  12617. ;;
  12618. bsdi[45]*)
  12619. export_dynamic_flag_spec_F77=-rdynamic
  12620. ;;
  12621. cygwin* | mingw* | pw32*)
  12622. # When not using gcc, we currently assume that we are using
  12623. # Microsoft Visual C++.
  12624. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12625. # no search path for DLLs.
  12626. hardcode_libdir_flag_spec_F77=' '
  12627. allow_undefined_flag_F77=unsupported
  12628. # Tell ltmain to make .lib files, not .a files.
  12629. libext=lib
  12630. # Tell ltmain to make .dll files, not .so files.
  12631. shrext_cmds=".dll"
  12632. # FIXME: Setting linknames here is a bad hack.
  12633. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12634. # The linker will automatically build a .lib file if we build a DLL.
  12635. old_archive_From_new_cmds_F77='true'
  12636. # FIXME: Should let the user specify the lib program.
  12637. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12638. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12639. enable_shared_with_static_runtimes_F77=yes
  12640. ;;
  12641. darwin* | rhapsody*)
  12642. case $host_os in
  12643. rhapsody* | darwin1.[012])
  12644. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12645. ;;
  12646. *) # Darwin 1.3 on
  12647. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12648. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12649. else
  12650. case ${MACOSX_DEPLOYMENT_TARGET} in
  12651. 10.[012])
  12652. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12653. ;;
  12654. 10.*)
  12655. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12656. ;;
  12657. esac
  12658. fi
  12659. ;;
  12660. esac
  12661. archive_cmds_need_lc_F77=no
  12662. hardcode_direct_F77=no
  12663. hardcode_automatic_F77=yes
  12664. hardcode_shlibpath_var_F77=unsupported
  12665. whole_archive_flag_spec_F77=''
  12666. link_all_deplibs_F77=yes
  12667. if test "$GCC" = yes ; then
  12668. output_verbose_link_cmd='echo'
  12669. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12670. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12671. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12672. 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}'
  12673. 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}'
  12674. else
  12675. case $cc_basename in
  12676. xlc*)
  12677. output_verbose_link_cmd='echo'
  12678. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12679. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12680. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12681. 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}'
  12682. 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}'
  12683. ;;
  12684. *)
  12685. ld_shlibs_F77=no
  12686. ;;
  12687. esac
  12688. fi
  12689. ;;
  12690. dgux*)
  12691. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12692. hardcode_libdir_flag_spec_F77='-L$libdir'
  12693. hardcode_shlibpath_var_F77=no
  12694. ;;
  12695. freebsd1*)
  12696. ld_shlibs_F77=no
  12697. ;;
  12698. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12699. # support. Future versions do this automatically, but an explicit c++rt0.o
  12700. # does not break anything, and helps significantly (at the cost of a little
  12701. # extra space).
  12702. freebsd2.2*)
  12703. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12704. hardcode_libdir_flag_spec_F77='-R$libdir'
  12705. hardcode_direct_F77=yes
  12706. hardcode_shlibpath_var_F77=no
  12707. ;;
  12708. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12709. freebsd2*)
  12710. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12711. hardcode_direct_F77=yes
  12712. hardcode_minus_L_F77=yes
  12713. hardcode_shlibpath_var_F77=no
  12714. ;;
  12715. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12716. freebsd* | kfreebsd*-gnu | dragonfly*)
  12717. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12718. hardcode_libdir_flag_spec_F77='-R$libdir'
  12719. hardcode_direct_F77=yes
  12720. hardcode_shlibpath_var_F77=no
  12721. ;;
  12722. hpux9*)
  12723. if test "$GCC" = yes; then
  12724. 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'
  12725. else
  12726. 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'
  12727. fi
  12728. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12729. hardcode_libdir_separator_F77=:
  12730. hardcode_direct_F77=yes
  12731. # hardcode_minus_L: Not really in the search PATH,
  12732. # but as the default location of the library.
  12733. hardcode_minus_L_F77=yes
  12734. export_dynamic_flag_spec_F77='${wl}-E'
  12735. ;;
  12736. hpux10*)
  12737. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12738. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12739. else
  12740. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12741. fi
  12742. if test "$with_gnu_ld" = no; then
  12743. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12744. hardcode_libdir_separator_F77=:
  12745. hardcode_direct_F77=yes
  12746. export_dynamic_flag_spec_F77='${wl}-E'
  12747. # hardcode_minus_L: Not really in the search PATH,
  12748. # but as the default location of the library.
  12749. hardcode_minus_L_F77=yes
  12750. fi
  12751. ;;
  12752. hpux11*)
  12753. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12754. case $host_cpu in
  12755. hppa*64*)
  12756. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12757. ;;
  12758. ia64*)
  12759. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12760. ;;
  12761. *)
  12762. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12763. ;;
  12764. esac
  12765. else
  12766. case $host_cpu in
  12767. hppa*64*)
  12768. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12769. ;;
  12770. ia64*)
  12771. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12772. ;;
  12773. *)
  12774. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12775. ;;
  12776. esac
  12777. fi
  12778. if test "$with_gnu_ld" = no; then
  12779. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12780. hardcode_libdir_separator_F77=:
  12781. case $host_cpu in
  12782. hppa*64*|ia64*)
  12783. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12784. hardcode_direct_F77=no
  12785. hardcode_shlibpath_var_F77=no
  12786. ;;
  12787. *)
  12788. hardcode_direct_F77=yes
  12789. export_dynamic_flag_spec_F77='${wl}-E'
  12790. # hardcode_minus_L: Not really in the search PATH,
  12791. # but as the default location of the library.
  12792. hardcode_minus_L_F77=yes
  12793. ;;
  12794. esac
  12795. fi
  12796. ;;
  12797. irix5* | irix6* | nonstopux*)
  12798. if test "$GCC" = yes; then
  12799. 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'
  12800. else
  12801. 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'
  12802. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12803. fi
  12804. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12805. hardcode_libdir_separator_F77=:
  12806. link_all_deplibs_F77=yes
  12807. ;;
  12808. netbsd*)
  12809. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12810. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12811. else
  12812. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12813. fi
  12814. hardcode_libdir_flag_spec_F77='-R$libdir'
  12815. hardcode_direct_F77=yes
  12816. hardcode_shlibpath_var_F77=no
  12817. ;;
  12818. newsos6)
  12819. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12820. hardcode_direct_F77=yes
  12821. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12822. hardcode_libdir_separator_F77=:
  12823. hardcode_shlibpath_var_F77=no
  12824. ;;
  12825. openbsd*)
  12826. hardcode_direct_F77=yes
  12827. hardcode_shlibpath_var_F77=no
  12828. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12829. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12830. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12831. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12832. export_dynamic_flag_spec_F77='${wl}-E'
  12833. else
  12834. case $host_os in
  12835. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12836. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12837. hardcode_libdir_flag_spec_F77='-R$libdir'
  12838. ;;
  12839. *)
  12840. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12841. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12842. ;;
  12843. esac
  12844. fi
  12845. ;;
  12846. os2*)
  12847. hardcode_libdir_flag_spec_F77='-L$libdir'
  12848. hardcode_minus_L_F77=yes
  12849. allow_undefined_flag_F77=unsupported
  12850. 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'
  12851. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12852. ;;
  12853. osf3*)
  12854. if test "$GCC" = yes; then
  12855. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12856. 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'
  12857. else
  12858. allow_undefined_flag_F77=' -expect_unresolved \*'
  12859. 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'
  12860. fi
  12861. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12862. hardcode_libdir_separator_F77=:
  12863. ;;
  12864. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12865. if test "$GCC" = yes; then
  12866. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12867. 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'
  12868. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12869. else
  12870. allow_undefined_flag_F77=' -expect_unresolved \*'
  12871. 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'
  12872. 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~
  12873. $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'
  12874. # Both c and cxx compiler support -rpath directly
  12875. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12876. fi
  12877. hardcode_libdir_separator_F77=:
  12878. ;;
  12879. solaris*)
  12880. no_undefined_flag_F77=' -z text'
  12881. if test "$GCC" = yes; then
  12882. wlarc='${wl}'
  12883. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12884. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12885. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12886. else
  12887. wlarc=''
  12888. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12889. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12890. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12891. fi
  12892. hardcode_libdir_flag_spec_F77='-R$libdir'
  12893. hardcode_shlibpath_var_F77=no
  12894. case $host_os in
  12895. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12896. *)
  12897. # The compiler driver will combine linker options so we
  12898. # cannot just pass the convience library names through
  12899. # without $wl, iff we do not link with $LD.
  12900. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12901. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12902. case $wlarc in
  12903. '')
  12904. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12905. *)
  12906. 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' ;;
  12907. esac ;;
  12908. esac
  12909. link_all_deplibs_F77=yes
  12910. ;;
  12911. sunos4*)
  12912. if test "x$host_vendor" = xsequent; then
  12913. # Use $CC to link under sequent, because it throws in some extra .o
  12914. # files that make .init and .fini sections work.
  12915. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12916. else
  12917. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12918. fi
  12919. hardcode_libdir_flag_spec_F77='-L$libdir'
  12920. hardcode_direct_F77=yes
  12921. hardcode_minus_L_F77=yes
  12922. hardcode_shlibpath_var_F77=no
  12923. ;;
  12924. sysv4)
  12925. case $host_vendor in
  12926. sni)
  12927. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12928. hardcode_direct_F77=yes # is this really true???
  12929. ;;
  12930. siemens)
  12931. ## LD is ld it makes a PLAMLIB
  12932. ## CC just makes a GrossModule.
  12933. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12934. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12935. hardcode_direct_F77=no
  12936. ;;
  12937. motorola)
  12938. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12939. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12940. ;;
  12941. esac
  12942. runpath_var='LD_RUN_PATH'
  12943. hardcode_shlibpath_var_F77=no
  12944. ;;
  12945. sysv4.3*)
  12946. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12947. hardcode_shlibpath_var_F77=no
  12948. export_dynamic_flag_spec_F77='-Bexport'
  12949. ;;
  12950. sysv4*MP*)
  12951. if test -d /usr/nec; then
  12952. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12953. hardcode_shlibpath_var_F77=no
  12954. runpath_var=LD_RUN_PATH
  12955. hardcode_runpath_var=yes
  12956. ld_shlibs_F77=yes
  12957. fi
  12958. ;;
  12959. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  12960. no_undefined_flag_F77='${wl}-z,text'
  12961. archive_cmds_need_lc_F77=no
  12962. hardcode_shlibpath_var_F77=no
  12963. runpath_var='LD_RUN_PATH'
  12964. if test "$GCC" = yes; then
  12965. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12966. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12967. else
  12968. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12969. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12970. fi
  12971. ;;
  12972. sysv5* | sco3.2v5* | sco5v6*)
  12973. # Note: We can NOT use -z defs as we might desire, because we do not
  12974. # link with -lc, and that would cause any symbols used from libc to
  12975. # always be unresolved, which means just about no library would
  12976. # ever link correctly. If we're not using GNU ld we use -z text
  12977. # though, which does catch some bad symbols but isn't as heavy-handed
  12978. # as -z defs.
  12979. no_undefined_flag_F77='${wl}-z,text'
  12980. allow_undefined_flag_F77='${wl}-z,nodefs'
  12981. archive_cmds_need_lc_F77=no
  12982. hardcode_shlibpath_var_F77=no
  12983. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12984. hardcode_libdir_separator_F77=':'
  12985. link_all_deplibs_F77=yes
  12986. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12987. runpath_var='LD_RUN_PATH'
  12988. if test "$GCC" = yes; then
  12989. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12990. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12991. else
  12992. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12993. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12994. fi
  12995. ;;
  12996. uts4*)
  12997. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12998. hardcode_libdir_flag_spec_F77='-L$libdir'
  12999. hardcode_shlibpath_var_F77=no
  13000. ;;
  13001. *)
  13002. ld_shlibs_F77=no
  13003. ;;
  13004. esac
  13005. fi
  13006. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13007. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13008. test "$ld_shlibs_F77" = no && can_build_shared=no
  13009. #
  13010. # Do we need to explicitly link libc?
  13011. #
  13012. case "x$archive_cmds_need_lc_F77" in
  13013. x|xyes)
  13014. # Assume -lc should be added
  13015. archive_cmds_need_lc_F77=yes
  13016. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13017. case $archive_cmds_F77 in
  13018. *'~'*)
  13019. # FIXME: we may have to deal with multi-command sequences.
  13020. ;;
  13021. '$CC '*)
  13022. # Test whether the compiler implicitly links with -lc since on some
  13023. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13024. # to ld, don't add -lc before -lgcc.
  13025. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13026. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13027. $rm conftest*
  13028. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13029. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13030. (eval $ac_compile) 2>&5
  13031. ac_status=$?
  13032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13033. (exit $ac_status); } 2>conftest.err; then
  13034. soname=conftest
  13035. lib=conftest
  13036. libobjs=conftest.$ac_objext
  13037. deplibs=
  13038. wl=$lt_prog_compiler_wl_F77
  13039. pic_flag=$lt_prog_compiler_pic_F77
  13040. compiler_flags=-v
  13041. linker_flags=-v
  13042. verstring=
  13043. output_objdir=.
  13044. libname=conftest
  13045. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13046. allow_undefined_flag_F77=
  13047. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13048. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13049. ac_status=$?
  13050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13051. (exit $ac_status); }
  13052. then
  13053. archive_cmds_need_lc_F77=no
  13054. else
  13055. archive_cmds_need_lc_F77=yes
  13056. fi
  13057. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13058. else
  13059. cat conftest.err 1>&5
  13060. fi
  13061. $rm conftest*
  13062. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13063. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13064. ;;
  13065. esac
  13066. fi
  13067. ;;
  13068. esac
  13069. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13070. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13071. library_names_spec=
  13072. libname_spec='lib$name'
  13073. soname_spec=
  13074. shrext_cmds=".so"
  13075. postinstall_cmds=
  13076. postuninstall_cmds=
  13077. finish_cmds=
  13078. finish_eval=
  13079. shlibpath_var=
  13080. shlibpath_overrides_runpath=unknown
  13081. version_type=none
  13082. dynamic_linker="$host_os ld.so"
  13083. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13084. if test "$GCC" = yes; then
  13085. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13086. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13087. # if the path contains ";" then we assume it to be the separator
  13088. # otherwise default to the standard path separator (i.e. ":") - it is
  13089. # assumed that no part of a normal pathname contains ";" but that should
  13090. # okay in the real world where ";" in dirpaths is itself problematic.
  13091. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13092. else
  13093. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13094. fi
  13095. else
  13096. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13097. fi
  13098. need_lib_prefix=unknown
  13099. hardcode_into_libs=no
  13100. # when you set need_version to no, make sure it does not cause -set_version
  13101. # flags to be left without arguments
  13102. need_version=unknown
  13103. case $host_os in
  13104. aix3*)
  13105. version_type=linux
  13106. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13107. shlibpath_var=LIBPATH
  13108. # AIX 3 has no versioning support, so we append a major version to the name.
  13109. soname_spec='${libname}${release}${shared_ext}$major'
  13110. ;;
  13111. aix4* | aix5*)
  13112. version_type=linux
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. hardcode_into_libs=yes
  13116. if test "$host_cpu" = ia64; then
  13117. # AIX 5 supports IA64
  13118. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13119. shlibpath_var=LD_LIBRARY_PATH
  13120. else
  13121. # With GCC up to 2.95.x, collect2 would create an import file
  13122. # for dependence libraries. The import file would start with
  13123. # the line `#! .'. This would cause the generated library to
  13124. # depend on `.', always an invalid library. This was fixed in
  13125. # development snapshots of GCC prior to 3.0.
  13126. case $host_os in
  13127. aix4 | aix4.[01] | aix4.[01].*)
  13128. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13129. echo ' yes '
  13130. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13131. :
  13132. else
  13133. can_build_shared=no
  13134. fi
  13135. ;;
  13136. esac
  13137. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13138. # soname into executable. Probably we can add versioning support to
  13139. # collect2, so additional links can be useful in future.
  13140. if test "$aix_use_runtimelinking" = yes; then
  13141. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13142. # instead of lib<name>.a to let people know that these are not
  13143. # typical AIX shared libraries.
  13144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13145. else
  13146. # We preserve .a as extension for shared libraries through AIX4.2
  13147. # and later when we are not doing run time linking.
  13148. library_names_spec='${libname}${release}.a $libname.a'
  13149. soname_spec='${libname}${release}${shared_ext}$major'
  13150. fi
  13151. shlibpath_var=LIBPATH
  13152. fi
  13153. ;;
  13154. amigaos*)
  13155. library_names_spec='$libname.ixlibrary $libname.a'
  13156. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13157. 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'
  13158. ;;
  13159. beos*)
  13160. library_names_spec='${libname}${shared_ext}'
  13161. dynamic_linker="$host_os ld.so"
  13162. shlibpath_var=LIBRARY_PATH
  13163. ;;
  13164. bsdi[45]*)
  13165. version_type=linux
  13166. need_version=no
  13167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13168. soname_spec='${libname}${release}${shared_ext}$major'
  13169. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13170. shlibpath_var=LD_LIBRARY_PATH
  13171. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13172. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13173. # the default ld.so.conf also contains /usr/contrib/lib and
  13174. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13175. # libtool to hard-code these into programs
  13176. ;;
  13177. cygwin* | mingw* | pw32*)
  13178. version_type=windows
  13179. shrext_cmds=".dll"
  13180. need_version=no
  13181. need_lib_prefix=no
  13182. case $GCC,$host_os in
  13183. yes,cygwin* | yes,mingw* | yes,pw32*)
  13184. library_names_spec='$libname.dll.a'
  13185. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13186. postinstall_cmds='base_file=`basename \${file}`~
  13187. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13188. dldir=$destdir/`dirname \$dlpath`~
  13189. test -d \$dldir || mkdir -p \$dldir~
  13190. $install_prog $dir/$dlname \$dldir/$dlname~
  13191. chmod a+x \$dldir/$dlname'
  13192. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13193. dlpath=$dir/\$dldll~
  13194. $rm \$dlpath'
  13195. shlibpath_overrides_runpath=yes
  13196. case $host_os in
  13197. cygwin*)
  13198. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13199. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13200. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13201. ;;
  13202. mingw*)
  13203. # MinGW DLLs use traditional 'lib' prefix
  13204. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13205. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13206. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13207. # It is most probably a Windows format PATH printed by
  13208. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13209. # path with ; separators, and with drive letters. We can handle the
  13210. # drive letters (cygwin fileutils understands them), so leave them,
  13211. # especially as we might pass files found there to a mingw objdump,
  13212. # which wouldn't understand a cygwinified path. Ahh.
  13213. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13214. else
  13215. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13216. fi
  13217. ;;
  13218. pw32*)
  13219. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13220. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13221. ;;
  13222. esac
  13223. ;;
  13224. *)
  13225. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13226. ;;
  13227. esac
  13228. dynamic_linker='Win32 ld.exe'
  13229. # FIXME: first we should search . and the directory the executable is in
  13230. shlibpath_var=PATH
  13231. ;;
  13232. darwin* | rhapsody*)
  13233. dynamic_linker="$host_os dyld"
  13234. version_type=darwin
  13235. need_lib_prefix=no
  13236. need_version=no
  13237. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13238. soname_spec='${libname}${release}${major}$shared_ext'
  13239. shlibpath_overrides_runpath=yes
  13240. shlibpath_var=DYLD_LIBRARY_PATH
  13241. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13242. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13243. if test "$GCC" = yes; then
  13244. 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"`
  13245. else
  13246. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13247. fi
  13248. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13249. ;;
  13250. dgux*)
  13251. version_type=linux
  13252. need_lib_prefix=no
  13253. need_version=no
  13254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13255. soname_spec='${libname}${release}${shared_ext}$major'
  13256. shlibpath_var=LD_LIBRARY_PATH
  13257. ;;
  13258. freebsd1*)
  13259. dynamic_linker=no
  13260. ;;
  13261. kfreebsd*-gnu)
  13262. version_type=linux
  13263. need_lib_prefix=no
  13264. need_version=no
  13265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13266. soname_spec='${libname}${release}${shared_ext}$major'
  13267. shlibpath_var=LD_LIBRARY_PATH
  13268. shlibpath_overrides_runpath=no
  13269. hardcode_into_libs=yes
  13270. dynamic_linker='GNU ld.so'
  13271. ;;
  13272. freebsd* | dragonfly*)
  13273. # DragonFly does not have aout. When/if they implement a new
  13274. # versioning mechanism, adjust this.
  13275. if test -x /usr/bin/objformat; then
  13276. objformat=`/usr/bin/objformat`
  13277. else
  13278. case $host_os in
  13279. freebsd[123]*) objformat=aout ;;
  13280. *) objformat=elf ;;
  13281. esac
  13282. fi
  13283. version_type=freebsd-$objformat
  13284. case $version_type in
  13285. freebsd-elf*)
  13286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13287. need_version=no
  13288. need_lib_prefix=no
  13289. ;;
  13290. freebsd-*)
  13291. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13292. need_version=yes
  13293. ;;
  13294. esac
  13295. shlibpath_var=LD_LIBRARY_PATH
  13296. case $host_os in
  13297. freebsd2*)
  13298. shlibpath_overrides_runpath=yes
  13299. ;;
  13300. freebsd3.[01]* | freebsdelf3.[01]*)
  13301. shlibpath_overrides_runpath=yes
  13302. hardcode_into_libs=yes
  13303. ;;
  13304. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13305. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13306. shlibpath_overrides_runpath=no
  13307. hardcode_into_libs=yes
  13308. ;;
  13309. freebsd*) # from 4.6 on
  13310. shlibpath_overrides_runpath=yes
  13311. hardcode_into_libs=yes
  13312. ;;
  13313. esac
  13314. ;;
  13315. gnu*)
  13316. version_type=linux
  13317. need_lib_prefix=no
  13318. need_version=no
  13319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13320. soname_spec='${libname}${release}${shared_ext}$major'
  13321. shlibpath_var=LD_LIBRARY_PATH
  13322. hardcode_into_libs=yes
  13323. ;;
  13324. hpux9* | hpux10* | hpux11*)
  13325. # Give a soname corresponding to the major version so that dld.sl refuses to
  13326. # link against other versions.
  13327. version_type=sunos
  13328. need_lib_prefix=no
  13329. need_version=no
  13330. case $host_cpu in
  13331. ia64*)
  13332. shrext_cmds='.so'
  13333. hardcode_into_libs=yes
  13334. dynamic_linker="$host_os dld.so"
  13335. shlibpath_var=LD_LIBRARY_PATH
  13336. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13338. soname_spec='${libname}${release}${shared_ext}$major'
  13339. if test "X$HPUX_IA64_MODE" = X32; then
  13340. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13341. else
  13342. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13343. fi
  13344. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13345. ;;
  13346. hppa*64*)
  13347. shrext_cmds='.sl'
  13348. hardcode_into_libs=yes
  13349. dynamic_linker="$host_os dld.sl"
  13350. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13351. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13353. soname_spec='${libname}${release}${shared_ext}$major'
  13354. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13355. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13356. ;;
  13357. *)
  13358. shrext_cmds='.sl'
  13359. dynamic_linker="$host_os dld.sl"
  13360. shlibpath_var=SHLIB_PATH
  13361. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13363. soname_spec='${libname}${release}${shared_ext}$major'
  13364. ;;
  13365. esac
  13366. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13367. postinstall_cmds='chmod 555 $lib'
  13368. ;;
  13369. interix3*)
  13370. version_type=linux
  13371. need_lib_prefix=no
  13372. need_version=no
  13373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13374. soname_spec='${libname}${release}${shared_ext}$major'
  13375. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13376. shlibpath_var=LD_LIBRARY_PATH
  13377. shlibpath_overrides_runpath=no
  13378. hardcode_into_libs=yes
  13379. ;;
  13380. irix5* | irix6* | nonstopux*)
  13381. case $host_os in
  13382. nonstopux*) version_type=nonstopux ;;
  13383. *)
  13384. if test "$lt_cv_prog_gnu_ld" = yes; then
  13385. version_type=linux
  13386. else
  13387. version_type=irix
  13388. fi ;;
  13389. esac
  13390. need_lib_prefix=no
  13391. need_version=no
  13392. soname_spec='${libname}${release}${shared_ext}$major'
  13393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13394. case $host_os in
  13395. irix5* | nonstopux*)
  13396. libsuff= shlibsuff=
  13397. ;;
  13398. *)
  13399. case $LD in # libtool.m4 will add one of these switches to LD
  13400. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13401. libsuff= shlibsuff= libmagic=32-bit;;
  13402. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13403. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13404. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13405. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13406. *) libsuff= shlibsuff= libmagic=never-match;;
  13407. esac
  13408. ;;
  13409. esac
  13410. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13411. shlibpath_overrides_runpath=no
  13412. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13413. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13414. hardcode_into_libs=yes
  13415. ;;
  13416. # No shared lib support for Linux oldld, aout, or coff.
  13417. linux*oldld* | linux*aout* | linux*coff*)
  13418. dynamic_linker=no
  13419. ;;
  13420. # This must be Linux ELF.
  13421. linux*)
  13422. version_type=linux
  13423. need_lib_prefix=no
  13424. need_version=no
  13425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13426. soname_spec='${libname}${release}${shared_ext}$major'
  13427. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13428. shlibpath_var=LD_LIBRARY_PATH
  13429. shlibpath_overrides_runpath=no
  13430. # This implies no fast_install, which is unacceptable.
  13431. # Some rework will be needed to allow for fast_install
  13432. # before this can be enabled.
  13433. hardcode_into_libs=yes
  13434. # Append ld.so.conf contents to the search path
  13435. if test -f /etc/ld.so.conf; then
  13436. 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' ' '`
  13437. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13438. fi
  13439. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13440. # powerpc, because MkLinux only supported shared libraries with the
  13441. # GNU dynamic linker. Since this was broken with cross compilers,
  13442. # most powerpc-linux boxes support dynamic linking these days and
  13443. # people can always --disable-shared, the test was removed, and we
  13444. # assume the GNU/Linux dynamic linker is in use.
  13445. dynamic_linker='GNU/Linux ld.so'
  13446. ;;
  13447. knetbsd*-gnu)
  13448. version_type=linux
  13449. need_lib_prefix=no
  13450. need_version=no
  13451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13452. soname_spec='${libname}${release}${shared_ext}$major'
  13453. shlibpath_var=LD_LIBRARY_PATH
  13454. shlibpath_overrides_runpath=no
  13455. hardcode_into_libs=yes
  13456. dynamic_linker='GNU ld.so'
  13457. ;;
  13458. netbsd*)
  13459. version_type=sunos
  13460. need_lib_prefix=no
  13461. need_version=no
  13462. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13464. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13465. dynamic_linker='NetBSD (a.out) ld.so'
  13466. else
  13467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13468. soname_spec='${libname}${release}${shared_ext}$major'
  13469. dynamic_linker='NetBSD ld.elf_so'
  13470. fi
  13471. shlibpath_var=LD_LIBRARY_PATH
  13472. shlibpath_overrides_runpath=yes
  13473. hardcode_into_libs=yes
  13474. ;;
  13475. newsos6)
  13476. version_type=linux
  13477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13478. shlibpath_var=LD_LIBRARY_PATH
  13479. shlibpath_overrides_runpath=yes
  13480. ;;
  13481. nto-qnx*)
  13482. version_type=linux
  13483. need_lib_prefix=no
  13484. need_version=no
  13485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13486. soname_spec='${libname}${release}${shared_ext}$major'
  13487. shlibpath_var=LD_LIBRARY_PATH
  13488. shlibpath_overrides_runpath=yes
  13489. ;;
  13490. openbsd*)
  13491. version_type=sunos
  13492. sys_lib_dlsearch_path_spec="/usr/lib"
  13493. need_lib_prefix=no
  13494. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13495. case $host_os in
  13496. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13497. *) need_version=no ;;
  13498. esac
  13499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13500. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13501. shlibpath_var=LD_LIBRARY_PATH
  13502. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13503. case $host_os in
  13504. openbsd2.[89] | openbsd2.[89].*)
  13505. shlibpath_overrides_runpath=no
  13506. ;;
  13507. *)
  13508. shlibpath_overrides_runpath=yes
  13509. ;;
  13510. esac
  13511. else
  13512. shlibpath_overrides_runpath=yes
  13513. fi
  13514. ;;
  13515. os2*)
  13516. libname_spec='$name'
  13517. shrext_cmds=".dll"
  13518. need_lib_prefix=no
  13519. library_names_spec='$libname${shared_ext} $libname.a'
  13520. dynamic_linker='OS/2 ld.exe'
  13521. shlibpath_var=LIBPATH
  13522. ;;
  13523. osf3* | osf4* | osf5*)
  13524. version_type=osf
  13525. need_lib_prefix=no
  13526. need_version=no
  13527. soname_spec='${libname}${release}${shared_ext}$major'
  13528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13529. shlibpath_var=LD_LIBRARY_PATH
  13530. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13531. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13532. ;;
  13533. solaris*)
  13534. version_type=linux
  13535. need_lib_prefix=no
  13536. need_version=no
  13537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13538. soname_spec='${libname}${release}${shared_ext}$major'
  13539. shlibpath_var=LD_LIBRARY_PATH
  13540. shlibpath_overrides_runpath=yes
  13541. hardcode_into_libs=yes
  13542. # ldd complains unless libraries are executable
  13543. postinstall_cmds='chmod +x $lib'
  13544. ;;
  13545. sunos4*)
  13546. version_type=sunos
  13547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13548. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13549. shlibpath_var=LD_LIBRARY_PATH
  13550. shlibpath_overrides_runpath=yes
  13551. if test "$with_gnu_ld" = yes; then
  13552. need_lib_prefix=no
  13553. fi
  13554. need_version=yes
  13555. ;;
  13556. sysv4 | sysv4.3*)
  13557. version_type=linux
  13558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13559. soname_spec='${libname}${release}${shared_ext}$major'
  13560. shlibpath_var=LD_LIBRARY_PATH
  13561. case $host_vendor in
  13562. sni)
  13563. shlibpath_overrides_runpath=no
  13564. need_lib_prefix=no
  13565. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13566. runpath_var=LD_RUN_PATH
  13567. ;;
  13568. siemens)
  13569. need_lib_prefix=no
  13570. ;;
  13571. motorola)
  13572. need_lib_prefix=no
  13573. need_version=no
  13574. shlibpath_overrides_runpath=no
  13575. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13576. ;;
  13577. esac
  13578. ;;
  13579. sysv4*MP*)
  13580. if test -d /usr/nec ;then
  13581. version_type=linux
  13582. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13583. soname_spec='$libname${shared_ext}.$major'
  13584. shlibpath_var=LD_LIBRARY_PATH
  13585. fi
  13586. ;;
  13587. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13588. version_type=freebsd-elf
  13589. need_lib_prefix=no
  13590. need_version=no
  13591. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13592. soname_spec='${libname}${release}${shared_ext}$major'
  13593. shlibpath_var=LD_LIBRARY_PATH
  13594. hardcode_into_libs=yes
  13595. if test "$with_gnu_ld" = yes; then
  13596. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13597. shlibpath_overrides_runpath=no
  13598. else
  13599. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13600. shlibpath_overrides_runpath=yes
  13601. case $host_os in
  13602. sco3.2v5*)
  13603. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13604. ;;
  13605. esac
  13606. fi
  13607. sys_lib_dlsearch_path_spec='/usr/lib'
  13608. ;;
  13609. uts4*)
  13610. version_type=linux
  13611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13612. soname_spec='${libname}${release}${shared_ext}$major'
  13613. shlibpath_var=LD_LIBRARY_PATH
  13614. ;;
  13615. *)
  13616. dynamic_linker=no
  13617. ;;
  13618. esac
  13619. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13620. echo "${ECHO_T}$dynamic_linker" >&6
  13621. test "$dynamic_linker" = no && can_build_shared=no
  13622. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13623. if test "$GCC" = yes; then
  13624. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13625. fi
  13626. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13627. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13628. hardcode_action_F77=
  13629. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13630. test -n "$runpath_var_F77" || \
  13631. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13632. # We can hardcode non-existant directories.
  13633. if test "$hardcode_direct_F77" != no &&
  13634. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13635. # have to relink, otherwise we might link with an installed library
  13636. # when we should be linking with a yet-to-be-installed one
  13637. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13638. test "$hardcode_minus_L_F77" != no; then
  13639. # Linking always hardcodes the temporary library directory.
  13640. hardcode_action_F77=relink
  13641. else
  13642. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13643. hardcode_action_F77=immediate
  13644. fi
  13645. else
  13646. # We cannot hardcode anything, or else we can only hardcode existing
  13647. # directories.
  13648. hardcode_action_F77=unsupported
  13649. fi
  13650. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13651. echo "${ECHO_T}$hardcode_action_F77" >&6
  13652. if test "$hardcode_action_F77" = relink; then
  13653. # Fast installation is not supported
  13654. enable_fast_install=no
  13655. elif test "$shlibpath_overrides_runpath" = yes ||
  13656. test "$enable_shared" = no; then
  13657. # Fast installation is not necessary
  13658. enable_fast_install=needless
  13659. fi
  13660. # The else clause should only fire when bootstrapping the
  13661. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13662. # with your package, and you will get complaints that there are
  13663. # no rules to generate ltmain.sh.
  13664. if test -f "$ltmain"; then
  13665. # See if we are running on zsh, and set the options which allow our commands through
  13666. # without removal of \ escapes.
  13667. if test -n "${ZSH_VERSION+set}" ; then
  13668. setopt NO_GLOB_SUBST
  13669. fi
  13670. # Now quote all the things that may contain metacharacters while being
  13671. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13672. # variables and quote the copies for generation of the libtool script.
  13673. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13674. SED SHELL STRIP \
  13675. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13676. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13677. deplibs_check_method reload_flag reload_cmds need_locks \
  13678. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13679. lt_cv_sys_global_symbol_to_c_name_address \
  13680. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13681. old_postinstall_cmds old_postuninstall_cmds \
  13682. compiler_F77 \
  13683. CC_F77 \
  13684. LD_F77 \
  13685. lt_prog_compiler_wl_F77 \
  13686. lt_prog_compiler_pic_F77 \
  13687. lt_prog_compiler_static_F77 \
  13688. lt_prog_compiler_no_builtin_flag_F77 \
  13689. export_dynamic_flag_spec_F77 \
  13690. thread_safe_flag_spec_F77 \
  13691. whole_archive_flag_spec_F77 \
  13692. enable_shared_with_static_runtimes_F77 \
  13693. old_archive_cmds_F77 \
  13694. old_archive_from_new_cmds_F77 \
  13695. predep_objects_F77 \
  13696. postdep_objects_F77 \
  13697. predeps_F77 \
  13698. postdeps_F77 \
  13699. compiler_lib_search_path_F77 \
  13700. archive_cmds_F77 \
  13701. archive_expsym_cmds_F77 \
  13702. postinstall_cmds_F77 \
  13703. postuninstall_cmds_F77 \
  13704. old_archive_from_expsyms_cmds_F77 \
  13705. allow_undefined_flag_F77 \
  13706. no_undefined_flag_F77 \
  13707. export_symbols_cmds_F77 \
  13708. hardcode_libdir_flag_spec_F77 \
  13709. hardcode_libdir_flag_spec_ld_F77 \
  13710. hardcode_libdir_separator_F77 \
  13711. hardcode_automatic_F77 \
  13712. module_cmds_F77 \
  13713. module_expsym_cmds_F77 \
  13714. lt_cv_prog_compiler_c_o_F77 \
  13715. exclude_expsyms_F77 \
  13716. include_expsyms_F77; do
  13717. case $var in
  13718. old_archive_cmds_F77 | \
  13719. old_archive_from_new_cmds_F77 | \
  13720. archive_cmds_F77 | \
  13721. archive_expsym_cmds_F77 | \
  13722. module_cmds_F77 | \
  13723. module_expsym_cmds_F77 | \
  13724. old_archive_from_expsyms_cmds_F77 | \
  13725. export_symbols_cmds_F77 | \
  13726. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13727. postinstall_cmds | postuninstall_cmds | \
  13728. old_postinstall_cmds | old_postuninstall_cmds | \
  13729. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13730. # Double-quote double-evaled strings.
  13731. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13732. ;;
  13733. *)
  13734. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13735. ;;
  13736. esac
  13737. done
  13738. case $lt_echo in
  13739. *'\$0 --fallback-echo"')
  13740. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13741. ;;
  13742. esac
  13743. cfgfile="$ofile"
  13744. cat <<__EOF__ >> "$cfgfile"
  13745. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13746. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13747. # Shell to use when invoking shell scripts.
  13748. SHELL=$lt_SHELL
  13749. # Whether or not to build shared libraries.
  13750. build_libtool_libs=$enable_shared
  13751. # Whether or not to build static libraries.
  13752. build_old_libs=$enable_static
  13753. # Whether or not to add -lc for building shared libraries.
  13754. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13755. # Whether or not to disallow shared libs when runtime libs are static
  13756. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13757. # Whether or not to optimize for fast installation.
  13758. fast_install=$enable_fast_install
  13759. # The host system.
  13760. host_alias=$host_alias
  13761. host=$host
  13762. host_os=$host_os
  13763. # The build system.
  13764. build_alias=$build_alias
  13765. build=$build
  13766. build_os=$build_os
  13767. # An echo program that does not interpret backslashes.
  13768. echo=$lt_echo
  13769. # The archiver.
  13770. AR=$lt_AR
  13771. AR_FLAGS=$lt_AR_FLAGS
  13772. # A C compiler.
  13773. LTCC=$lt_LTCC
  13774. # LTCC compiler flags.
  13775. LTCFLAGS=$lt_LTCFLAGS
  13776. # A language-specific compiler.
  13777. CC=$lt_compiler_F77
  13778. # Is the compiler the GNU C compiler?
  13779. with_gcc=$GCC_F77
  13780. # An ERE matcher.
  13781. EGREP=$lt_EGREP
  13782. # The linker used to build libraries.
  13783. LD=$lt_LD_F77
  13784. # Whether we need hard or soft links.
  13785. LN_S=$lt_LN_S
  13786. # A BSD-compatible nm program.
  13787. NM=$lt_NM
  13788. # A symbol stripping program
  13789. STRIP=$lt_STRIP
  13790. # Used to examine libraries when file_magic_cmd begins "file"
  13791. MAGIC_CMD=$MAGIC_CMD
  13792. # Used on cygwin: DLL creation program.
  13793. DLLTOOL="$DLLTOOL"
  13794. # Used on cygwin: object dumper.
  13795. OBJDUMP="$OBJDUMP"
  13796. # Used on cygwin: assembler.
  13797. AS="$AS"
  13798. # The name of the directory that contains temporary libtool files.
  13799. objdir=$objdir
  13800. # How to create reloadable object files.
  13801. reload_flag=$lt_reload_flag
  13802. reload_cmds=$lt_reload_cmds
  13803. # How to pass a linker flag through the compiler.
  13804. wl=$lt_lt_prog_compiler_wl_F77
  13805. # Object file suffix (normally "o").
  13806. objext="$ac_objext"
  13807. # Old archive suffix (normally "a").
  13808. libext="$libext"
  13809. # Shared library suffix (normally ".so").
  13810. shrext_cmds='$shrext_cmds'
  13811. # Executable file suffix (normally "").
  13812. exeext="$exeext"
  13813. # Additional compiler flags for building library objects.
  13814. pic_flag=$lt_lt_prog_compiler_pic_F77
  13815. pic_mode=$pic_mode
  13816. # What is the maximum length of a command?
  13817. max_cmd_len=$lt_cv_sys_max_cmd_len
  13818. # Does compiler simultaneously support -c and -o options?
  13819. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13820. # Must we lock files when doing compilation?
  13821. need_locks=$lt_need_locks
  13822. # Do we need the lib prefix for modules?
  13823. need_lib_prefix=$need_lib_prefix
  13824. # Do we need a version for libraries?
  13825. need_version=$need_version
  13826. # Whether dlopen is supported.
  13827. dlopen_support=$enable_dlopen
  13828. # Whether dlopen of programs is supported.
  13829. dlopen_self=$enable_dlopen_self
  13830. # Whether dlopen of statically linked programs is supported.
  13831. dlopen_self_static=$enable_dlopen_self_static
  13832. # Compiler flag to prevent dynamic linking.
  13833. link_static_flag=$lt_lt_prog_compiler_static_F77
  13834. # Compiler flag to turn off builtin functions.
  13835. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13836. # Compiler flag to allow reflexive dlopens.
  13837. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13838. # Compiler flag to generate shared objects directly from archives.
  13839. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13840. # Compiler flag to generate thread-safe objects.
  13841. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13842. # Library versioning type.
  13843. version_type=$version_type
  13844. # Format of library name prefix.
  13845. libname_spec=$lt_libname_spec
  13846. # List of archive names. First name is the real one, the rest are links.
  13847. # The last name is the one that the linker finds with -lNAME.
  13848. library_names_spec=$lt_library_names_spec
  13849. # The coded name of the library, if different from the real name.
  13850. soname_spec=$lt_soname_spec
  13851. # Commands used to build and install an old-style archive.
  13852. RANLIB=$lt_RANLIB
  13853. old_archive_cmds=$lt_old_archive_cmds_F77
  13854. old_postinstall_cmds=$lt_old_postinstall_cmds
  13855. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13856. # Create an old-style archive from a shared archive.
  13857. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13858. # Create a temporary old-style archive to link instead of a shared archive.
  13859. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13860. # Commands used to build and install a shared archive.
  13861. archive_cmds=$lt_archive_cmds_F77
  13862. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13863. postinstall_cmds=$lt_postinstall_cmds
  13864. postuninstall_cmds=$lt_postuninstall_cmds
  13865. # Commands used to build a loadable module (assumed same as above if empty)
  13866. module_cmds=$lt_module_cmds_F77
  13867. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13868. # Commands to strip libraries.
  13869. old_striplib=$lt_old_striplib
  13870. striplib=$lt_striplib
  13871. # Dependencies to place before the objects being linked to create a
  13872. # shared library.
  13873. predep_objects=$lt_predep_objects_F77
  13874. # Dependencies to place after the objects being linked to create a
  13875. # shared library.
  13876. postdep_objects=$lt_postdep_objects_F77
  13877. # Dependencies to place before the objects being linked to create a
  13878. # shared library.
  13879. predeps=$lt_predeps_F77
  13880. # Dependencies to place after the objects being linked to create a
  13881. # shared library.
  13882. postdeps=$lt_postdeps_F77
  13883. # The library search path used internally by the compiler when linking
  13884. # a shared library.
  13885. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13886. # Method to check whether dependent libraries are shared objects.
  13887. deplibs_check_method=$lt_deplibs_check_method
  13888. # Command to use when deplibs_check_method == file_magic.
  13889. file_magic_cmd=$lt_file_magic_cmd
  13890. # Flag that allows shared libraries with undefined symbols to be built.
  13891. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13892. # Flag that forces no undefined symbols.
  13893. no_undefined_flag=$lt_no_undefined_flag_F77
  13894. # Commands used to finish a libtool library installation in a directory.
  13895. finish_cmds=$lt_finish_cmds
  13896. # Same as above, but a single script fragment to be evaled but not shown.
  13897. finish_eval=$lt_finish_eval
  13898. # Take the output of nm and produce a listing of raw symbols and C names.
  13899. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13900. # Transform the output of nm in a proper C declaration
  13901. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13902. # Transform the output of nm in a C name address pair
  13903. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13904. # This is the shared library runtime path variable.
  13905. runpath_var=$runpath_var
  13906. # This is the shared library path variable.
  13907. shlibpath_var=$shlibpath_var
  13908. # Is shlibpath searched before the hard-coded library search path?
  13909. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13910. # How to hardcode a shared library path into an executable.
  13911. hardcode_action=$hardcode_action_F77
  13912. # Whether we should hardcode library paths into libraries.
  13913. hardcode_into_libs=$hardcode_into_libs
  13914. # Flag to hardcode \$libdir into a binary during linking.
  13915. # This must work even if \$libdir does not exist.
  13916. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13917. # If ld is used when linking, flag to hardcode \$libdir into
  13918. # a binary during linking. This must work even if \$libdir does
  13919. # not exist.
  13920. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13921. # Whether we need a single -rpath flag with a separated argument.
  13922. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13923. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13924. # resulting binary.
  13925. hardcode_direct=$hardcode_direct_F77
  13926. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13927. # resulting binary.
  13928. hardcode_minus_L=$hardcode_minus_L_F77
  13929. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13930. # the resulting binary.
  13931. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13932. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13933. # and all subsequent libraries and executables linked against it.
  13934. hardcode_automatic=$hardcode_automatic_F77
  13935. # Variables whose values should be saved in libtool wrapper scripts and
  13936. # restored at relink time.
  13937. variables_saved_for_relink="$variables_saved_for_relink"
  13938. # Whether libtool must link a program against all its dependency libraries.
  13939. link_all_deplibs=$link_all_deplibs_F77
  13940. # Compile-time system search path for libraries
  13941. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13942. # Run-time system search path for libraries
  13943. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13944. # Fix the shell variable \$srcfile for the compiler.
  13945. fix_srcfile_path="$fix_srcfile_path_F77"
  13946. # Set to yes if exported symbols are required.
  13947. always_export_symbols=$always_export_symbols_F77
  13948. # The commands to list exported symbols.
  13949. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13950. # The commands to extract the exported symbol list from a shared archive.
  13951. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13952. # Symbols that should not be listed in the preloaded symbols.
  13953. exclude_expsyms=$lt_exclude_expsyms_F77
  13954. # Symbols that must always be exported.
  13955. include_expsyms=$lt_include_expsyms_F77
  13956. # ### END LIBTOOL TAG CONFIG: $tagname
  13957. __EOF__
  13958. else
  13959. # If there is no Makefile yet, we rely on a make rule to execute
  13960. # `config.status --recheck' to rerun these tests and create the
  13961. # libtool script then.
  13962. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13963. if test -f "$ltmain_in"; then
  13964. test -f Makefile && make "$ltmain"
  13965. fi
  13966. fi
  13967. ac_ext=c
  13968. ac_cpp='$CPP $CPPFLAGS'
  13969. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13970. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13971. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13972. CC="$lt_save_CC"
  13973. else
  13974. tagname=""
  13975. fi
  13976. ;;
  13977. GCJ)
  13978. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13979. # Source file extension for Java test sources.
  13980. ac_ext=java
  13981. # Object file extension for compiled Java test sources.
  13982. objext=o
  13983. objext_GCJ=$objext
  13984. # Code to be used in simple compile tests
  13985. lt_simple_compile_test_code="class foo {}\n"
  13986. # Code to be used in simple link tests
  13987. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13988. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13989. # If no C compiler was specified, use CC.
  13990. LTCC=${LTCC-"$CC"}
  13991. # If no C compiler flags were specified, use CFLAGS.
  13992. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13993. # Allow CC to be a program name with arguments.
  13994. compiler=$CC
  13995. # save warnings/boilerplate of simple test code
  13996. ac_outfile=conftest.$ac_objext
  13997. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13998. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13999. _lt_compiler_boilerplate=`cat conftest.err`
  14000. $rm conftest*
  14001. ac_outfile=conftest.$ac_objext
  14002. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14003. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14004. _lt_linker_boilerplate=`cat conftest.err`
  14005. $rm conftest*
  14006. # Allow CC to be a program name with arguments.
  14007. lt_save_CC="$CC"
  14008. CC=${GCJ-"gcj"}
  14009. compiler=$CC
  14010. compiler_GCJ=$CC
  14011. for cc_temp in $compiler""; do
  14012. case $cc_temp in
  14013. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14014. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14015. \-*) ;;
  14016. *) break;;
  14017. esac
  14018. done
  14019. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14020. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14021. archive_cmds_need_lc_GCJ=no
  14022. old_archive_cmds_GCJ=$old_archive_cmds
  14023. lt_prog_compiler_no_builtin_flag_GCJ=
  14024. if test "$GCC" = yes; then
  14025. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14026. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14027. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14028. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14029. echo $ECHO_N "(cached) $ECHO_C" >&6
  14030. else
  14031. lt_cv_prog_compiler_rtti_exceptions=no
  14032. ac_outfile=conftest.$ac_objext
  14033. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14034. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14035. # Insert the option either (1) after the last *FLAGS variable, or
  14036. # (2) before a word containing "conftest.", or (3) at the end.
  14037. # Note that $ac_compile itself does not contain backslashes and begins
  14038. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14039. # The option is referenced via a variable to avoid confusing sed.
  14040. lt_compile=`echo "$ac_compile" | $SED \
  14041. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14042. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14043. -e 's:$: $lt_compiler_flag:'`
  14044. (eval echo "\"\$as_me:15645: $lt_compile\"" >&5)
  14045. (eval "$lt_compile" 2>conftest.err)
  14046. ac_status=$?
  14047. cat conftest.err >&5
  14048. echo "$as_me:15649: \$? = $ac_status" >&5
  14049. if (exit $ac_status) && test -s "$ac_outfile"; then
  14050. # The compiler can only warn and ignore the option if not recognized
  14051. # So say no if there are warnings other than the usual output.
  14052. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14053. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14054. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14055. lt_cv_prog_compiler_rtti_exceptions=yes
  14056. fi
  14057. fi
  14058. $rm conftest*
  14059. fi
  14060. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14061. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14062. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14063. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14064. else
  14065. :
  14066. fi
  14067. fi
  14068. lt_prog_compiler_wl_GCJ=
  14069. lt_prog_compiler_pic_GCJ=
  14070. lt_prog_compiler_static_GCJ=
  14071. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14072. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14073. if test "$GCC" = yes; then
  14074. lt_prog_compiler_wl_GCJ='-Wl,'
  14075. lt_prog_compiler_static_GCJ='-static'
  14076. case $host_os in
  14077. aix*)
  14078. # All AIX code is PIC.
  14079. if test "$host_cpu" = ia64; then
  14080. # AIX 5 now supports IA64 processor
  14081. lt_prog_compiler_static_GCJ='-Bstatic'
  14082. fi
  14083. ;;
  14084. amigaos*)
  14085. # FIXME: we need at least 68020 code to build shared libraries, but
  14086. # adding the `-m68020' flag to GCC prevents building anything better,
  14087. # like `-m68040'.
  14088. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14089. ;;
  14090. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14091. # PIC is the default for these OSes.
  14092. ;;
  14093. mingw* | pw32* | os2*)
  14094. # This hack is so that the source file can tell whether it is being
  14095. # built for inclusion in a dll (and should export symbols for example).
  14096. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14097. ;;
  14098. darwin* | rhapsody*)
  14099. # PIC is the default on this platform
  14100. # Common symbols not allowed in MH_DYLIB files
  14101. lt_prog_compiler_pic_GCJ='-fno-common'
  14102. ;;
  14103. interix3*)
  14104. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14105. # Instead, we relocate shared libraries at runtime.
  14106. ;;
  14107. msdosdjgpp*)
  14108. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14109. # on systems that don't support them.
  14110. lt_prog_compiler_can_build_shared_GCJ=no
  14111. enable_shared=no
  14112. ;;
  14113. sysv4*MP*)
  14114. if test -d /usr/nec; then
  14115. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14116. fi
  14117. ;;
  14118. hpux*)
  14119. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14120. # not for PA HP-UX.
  14121. case $host_cpu in
  14122. hppa*64*|ia64*)
  14123. # +Z the default
  14124. ;;
  14125. *)
  14126. lt_prog_compiler_pic_GCJ='-fPIC'
  14127. ;;
  14128. esac
  14129. ;;
  14130. *)
  14131. lt_prog_compiler_pic_GCJ='-fPIC'
  14132. ;;
  14133. esac
  14134. else
  14135. # PORTME Check for flag to pass linker flags through the system compiler.
  14136. case $host_os in
  14137. aix*)
  14138. lt_prog_compiler_wl_GCJ='-Wl,'
  14139. if test "$host_cpu" = ia64; then
  14140. # AIX 5 now supports IA64 processor
  14141. lt_prog_compiler_static_GCJ='-Bstatic'
  14142. else
  14143. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14144. fi
  14145. ;;
  14146. darwin*)
  14147. # PIC is the default on this platform
  14148. # Common symbols not allowed in MH_DYLIB files
  14149. case $cc_basename in
  14150. xlc*)
  14151. lt_prog_compiler_pic_GCJ='-qnocommon'
  14152. lt_prog_compiler_wl_GCJ='-Wl,'
  14153. ;;
  14154. esac
  14155. ;;
  14156. mingw* | pw32* | os2*)
  14157. # This hack is so that the source file can tell whether it is being
  14158. # built for inclusion in a dll (and should export symbols for example).
  14159. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14160. ;;
  14161. hpux9* | hpux10* | hpux11*)
  14162. lt_prog_compiler_wl_GCJ='-Wl,'
  14163. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14164. # not for PA HP-UX.
  14165. case $host_cpu in
  14166. hppa*64*|ia64*)
  14167. # +Z the default
  14168. ;;
  14169. *)
  14170. lt_prog_compiler_pic_GCJ='+Z'
  14171. ;;
  14172. esac
  14173. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14174. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14175. ;;
  14176. irix5* | irix6* | nonstopux*)
  14177. lt_prog_compiler_wl_GCJ='-Wl,'
  14178. # PIC (with -KPIC) is the default.
  14179. lt_prog_compiler_static_GCJ='-non_shared'
  14180. ;;
  14181. newsos6)
  14182. lt_prog_compiler_pic_GCJ='-KPIC'
  14183. lt_prog_compiler_static_GCJ='-Bstatic'
  14184. ;;
  14185. linux*)
  14186. case $cc_basename in
  14187. icc* | ecc*)
  14188. lt_prog_compiler_wl_GCJ='-Wl,'
  14189. lt_prog_compiler_pic_GCJ='-KPIC'
  14190. lt_prog_compiler_static_GCJ='-static'
  14191. ;;
  14192. pgcc* | pgf77* | pgf90* | pgf95*)
  14193. # Portland Group compilers (*not* the Pentium gcc compiler,
  14194. # which looks to be a dead project)
  14195. lt_prog_compiler_wl_GCJ='-Wl,'
  14196. lt_prog_compiler_pic_GCJ='-fpic'
  14197. lt_prog_compiler_static_GCJ='-Bstatic'
  14198. ;;
  14199. ccc*)
  14200. lt_prog_compiler_wl_GCJ='-Wl,'
  14201. # All Alpha code is PIC.
  14202. lt_prog_compiler_static_GCJ='-non_shared'
  14203. ;;
  14204. esac
  14205. ;;
  14206. osf3* | osf4* | osf5*)
  14207. lt_prog_compiler_wl_GCJ='-Wl,'
  14208. # All OSF/1 code is PIC.
  14209. lt_prog_compiler_static_GCJ='-non_shared'
  14210. ;;
  14211. solaris*)
  14212. lt_prog_compiler_pic_GCJ='-KPIC'
  14213. lt_prog_compiler_static_GCJ='-Bstatic'
  14214. case $cc_basename in
  14215. f77* | f90* | f95*)
  14216. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14217. *)
  14218. lt_prog_compiler_wl_GCJ='-Wl,';;
  14219. esac
  14220. ;;
  14221. sunos4*)
  14222. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14223. lt_prog_compiler_pic_GCJ='-PIC'
  14224. lt_prog_compiler_static_GCJ='-Bstatic'
  14225. ;;
  14226. sysv4 | sysv4.2uw2* | sysv4.3*)
  14227. lt_prog_compiler_wl_GCJ='-Wl,'
  14228. lt_prog_compiler_pic_GCJ='-KPIC'
  14229. lt_prog_compiler_static_GCJ='-Bstatic'
  14230. ;;
  14231. sysv4*MP*)
  14232. if test -d /usr/nec ;then
  14233. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14234. lt_prog_compiler_static_GCJ='-Bstatic'
  14235. fi
  14236. ;;
  14237. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14238. lt_prog_compiler_wl_GCJ='-Wl,'
  14239. lt_prog_compiler_pic_GCJ='-KPIC'
  14240. lt_prog_compiler_static_GCJ='-Bstatic'
  14241. ;;
  14242. unicos*)
  14243. lt_prog_compiler_wl_GCJ='-Wl,'
  14244. lt_prog_compiler_can_build_shared_GCJ=no
  14245. ;;
  14246. uts4*)
  14247. lt_prog_compiler_pic_GCJ='-pic'
  14248. lt_prog_compiler_static_GCJ='-Bstatic'
  14249. ;;
  14250. *)
  14251. lt_prog_compiler_can_build_shared_GCJ=no
  14252. ;;
  14253. esac
  14254. fi
  14255. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14256. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14257. #
  14258. # Check to make sure the PIC flag actually works.
  14259. #
  14260. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14261. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14262. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14263. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14264. echo $ECHO_N "(cached) $ECHO_C" >&6
  14265. else
  14266. lt_prog_compiler_pic_works_GCJ=no
  14267. ac_outfile=conftest.$ac_objext
  14268. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14269. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14270. # Insert the option either (1) after the last *FLAGS variable, or
  14271. # (2) before a word containing "conftest.", or (3) at the end.
  14272. # Note that $ac_compile itself does not contain backslashes and begins
  14273. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14274. # The option is referenced via a variable to avoid confusing sed.
  14275. lt_compile=`echo "$ac_compile" | $SED \
  14276. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14277. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14278. -e 's:$: $lt_compiler_flag:'`
  14279. (eval echo "\"\$as_me:15913: $lt_compile\"" >&5)
  14280. (eval "$lt_compile" 2>conftest.err)
  14281. ac_status=$?
  14282. cat conftest.err >&5
  14283. echo "$as_me:15917: \$? = $ac_status" >&5
  14284. if (exit $ac_status) && test -s "$ac_outfile"; then
  14285. # The compiler can only warn and ignore the option if not recognized
  14286. # So say no if there are warnings other than the usual output.
  14287. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14288. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14289. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14290. lt_prog_compiler_pic_works_GCJ=yes
  14291. fi
  14292. fi
  14293. $rm conftest*
  14294. fi
  14295. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14296. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14297. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14298. case $lt_prog_compiler_pic_GCJ in
  14299. "" | " "*) ;;
  14300. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14301. esac
  14302. else
  14303. lt_prog_compiler_pic_GCJ=
  14304. lt_prog_compiler_can_build_shared_GCJ=no
  14305. fi
  14306. fi
  14307. case $host_os in
  14308. # For platforms which do not support PIC, -DPIC is meaningless:
  14309. *djgpp*)
  14310. lt_prog_compiler_pic_GCJ=
  14311. ;;
  14312. *)
  14313. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14314. ;;
  14315. esac
  14316. #
  14317. # Check to make sure the static flag actually works.
  14318. #
  14319. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14320. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14321. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14322. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14323. echo $ECHO_N "(cached) $ECHO_C" >&6
  14324. else
  14325. lt_prog_compiler_static_works_GCJ=no
  14326. save_LDFLAGS="$LDFLAGS"
  14327. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14328. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14329. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14330. # The linker can only warn and ignore the option if not recognized
  14331. # So say no if there are warnings
  14332. if test -s conftest.err; then
  14333. # Append any errors to the config.log.
  14334. cat conftest.err 1>&5
  14335. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14336. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14337. if diff conftest.exp conftest.er2 >/dev/null; then
  14338. lt_prog_compiler_static_works_GCJ=yes
  14339. fi
  14340. else
  14341. lt_prog_compiler_static_works_GCJ=yes
  14342. fi
  14343. fi
  14344. $rm conftest*
  14345. LDFLAGS="$save_LDFLAGS"
  14346. fi
  14347. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14348. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14349. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14350. :
  14351. else
  14352. lt_prog_compiler_static_GCJ=
  14353. fi
  14354. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14355. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14356. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14357. echo $ECHO_N "(cached) $ECHO_C" >&6
  14358. else
  14359. lt_cv_prog_compiler_c_o_GCJ=no
  14360. $rm -r conftest 2>/dev/null
  14361. mkdir conftest
  14362. cd conftest
  14363. mkdir out
  14364. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14365. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14366. # Insert the option either (1) after the last *FLAGS variable, or
  14367. # (2) before a word containing "conftest.", or (3) at the end.
  14368. # Note that $ac_compile itself does not contain backslashes and begins
  14369. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14370. lt_compile=`echo "$ac_compile" | $SED \
  14371. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14372. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14373. -e 's:$: $lt_compiler_flag:'`
  14374. (eval echo "\"\$as_me:16017: $lt_compile\"" >&5)
  14375. (eval "$lt_compile" 2>out/conftest.err)
  14376. ac_status=$?
  14377. cat out/conftest.err >&5
  14378. echo "$as_me:16021: \$? = $ac_status" >&5
  14379. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14380. then
  14381. # The compiler can only warn and ignore the option if not recognized
  14382. # So say no if there are warnings
  14383. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14384. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14385. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14386. lt_cv_prog_compiler_c_o_GCJ=yes
  14387. fi
  14388. fi
  14389. chmod u+w . 2>&5
  14390. $rm conftest*
  14391. # SGI C++ compiler will create directory out/ii_files/ for
  14392. # template instantiation
  14393. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14394. $rm out/* && rmdir out
  14395. cd ..
  14396. rmdir conftest
  14397. $rm conftest*
  14398. fi
  14399. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14400. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14401. hard_links="nottested"
  14402. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14403. # do not overwrite the value of need_locks provided by the user
  14404. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14405. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14406. hard_links=yes
  14407. $rm conftest*
  14408. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14409. touch conftest.a
  14410. ln conftest.a conftest.b 2>&5 || hard_links=no
  14411. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14412. echo "$as_me:$LINENO: result: $hard_links" >&5
  14413. echo "${ECHO_T}$hard_links" >&6
  14414. if test "$hard_links" = no; then
  14415. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14416. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14417. need_locks=warn
  14418. fi
  14419. else
  14420. need_locks=no
  14421. fi
  14422. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14423. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14424. runpath_var=
  14425. allow_undefined_flag_GCJ=
  14426. enable_shared_with_static_runtimes_GCJ=no
  14427. archive_cmds_GCJ=
  14428. archive_expsym_cmds_GCJ=
  14429. old_archive_From_new_cmds_GCJ=
  14430. old_archive_from_expsyms_cmds_GCJ=
  14431. export_dynamic_flag_spec_GCJ=
  14432. whole_archive_flag_spec_GCJ=
  14433. thread_safe_flag_spec_GCJ=
  14434. hardcode_libdir_flag_spec_GCJ=
  14435. hardcode_libdir_flag_spec_ld_GCJ=
  14436. hardcode_libdir_separator_GCJ=
  14437. hardcode_direct_GCJ=no
  14438. hardcode_minus_L_GCJ=no
  14439. hardcode_shlibpath_var_GCJ=unsupported
  14440. link_all_deplibs_GCJ=unknown
  14441. hardcode_automatic_GCJ=no
  14442. module_cmds_GCJ=
  14443. module_expsym_cmds_GCJ=
  14444. always_export_symbols_GCJ=no
  14445. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14446. # include_expsyms should be a list of space-separated symbols to be *always*
  14447. # included in the symbol list
  14448. include_expsyms_GCJ=
  14449. # exclude_expsyms can be an extended regexp of symbols to exclude
  14450. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14451. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14452. # as well as any symbol that contains `d'.
  14453. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14454. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14455. # platforms (ab)use it in PIC code, but their linkers get confused if
  14456. # the symbol is explicitly referenced. Since portable code cannot
  14457. # rely on this symbol name, it's probably fine to never include it in
  14458. # preloaded symbol tables.
  14459. extract_expsyms_cmds=
  14460. # Just being paranoid about ensuring that cc_basename is set.
  14461. for cc_temp in $compiler""; do
  14462. case $cc_temp in
  14463. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14464. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14465. \-*) ;;
  14466. *) break;;
  14467. esac
  14468. done
  14469. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14470. case $host_os in
  14471. cygwin* | mingw* | pw32*)
  14472. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14473. # When not using gcc, we currently assume that we are using
  14474. # Microsoft Visual C++.
  14475. if test "$GCC" != yes; then
  14476. with_gnu_ld=no
  14477. fi
  14478. ;;
  14479. interix*)
  14480. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14481. with_gnu_ld=yes
  14482. ;;
  14483. openbsd*)
  14484. with_gnu_ld=no
  14485. ;;
  14486. esac
  14487. ld_shlibs_GCJ=yes
  14488. if test "$with_gnu_ld" = yes; then
  14489. # If archive_cmds runs LD, not CC, wlarc should be empty
  14490. wlarc='${wl}'
  14491. # Set some defaults for GNU ld with shared library support. These
  14492. # are reset later if shared libraries are not supported. Putting them
  14493. # here allows them to be overridden if necessary.
  14494. runpath_var=LD_RUN_PATH
  14495. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14496. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14497. # ancient GNU ld didn't support --whole-archive et. al.
  14498. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14499. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14500. else
  14501. whole_archive_flag_spec_GCJ=
  14502. fi
  14503. supports_anon_versioning=no
  14504. case `$LD -v 2>/dev/null` in
  14505. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14506. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14507. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14508. *\ 2.11.*) ;; # other 2.11 versions
  14509. *) supports_anon_versioning=yes ;;
  14510. esac
  14511. # See if GNU ld supports shared libraries.
  14512. case $host_os in
  14513. aix3* | aix4* | aix5*)
  14514. # On AIX/PPC, the GNU linker is very broken
  14515. if test "$host_cpu" != ia64; then
  14516. ld_shlibs_GCJ=no
  14517. cat <<EOF 1>&2
  14518. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14519. *** to be unable to reliably create shared libraries on AIX.
  14520. *** Therefore, libtool is disabling shared libraries support. If you
  14521. *** really care for shared libraries, you may want to modify your PATH
  14522. *** so that a non-GNU linker is found, and then restart.
  14523. EOF
  14524. fi
  14525. ;;
  14526. amigaos*)
  14527. 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)'
  14528. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14529. hardcode_minus_L_GCJ=yes
  14530. # Samuel A. Falvo II <[email protected]> reports
  14531. # that the semantics of dynamic libraries on AmigaOS, at least up
  14532. # to version 4, is to share data among multiple programs linked
  14533. # with the same dynamic library. Since this doesn't match the
  14534. # behavior of shared libraries on other platforms, we can't use
  14535. # them.
  14536. ld_shlibs_GCJ=no
  14537. ;;
  14538. beos*)
  14539. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14540. allow_undefined_flag_GCJ=unsupported
  14541. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14542. # support --undefined. This deserves some investigation. FIXME
  14543. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14544. else
  14545. ld_shlibs_GCJ=no
  14546. fi
  14547. ;;
  14548. cygwin* | mingw* | pw32*)
  14549. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14550. # as there is no search path for DLLs.
  14551. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14552. allow_undefined_flag_GCJ=unsupported
  14553. always_export_symbols_GCJ=no
  14554. enable_shared_with_static_runtimes_GCJ=yes
  14555. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14556. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14557. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14558. # If the export-symbols file already is a .def file (1st line
  14559. # is EXPORTS), use it as is; otherwise, prepend...
  14560. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14561. cp $export_symbols $output_objdir/$soname.def;
  14562. else
  14563. echo EXPORTS > $output_objdir/$soname.def;
  14564. cat $export_symbols >> $output_objdir/$soname.def;
  14565. fi~
  14566. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14567. else
  14568. ld_shlibs_GCJ=no
  14569. fi
  14570. ;;
  14571. interix3*)
  14572. hardcode_direct_GCJ=no
  14573. hardcode_shlibpath_var_GCJ=no
  14574. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14575. export_dynamic_flag_spec_GCJ='${wl}-E'
  14576. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14577. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14578. # default) and relocated if they conflict, which is a slow very memory
  14579. # consuming and fragmenting process. To avoid this, we pick a random,
  14580. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14581. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14582. 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'
  14583. 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'
  14584. ;;
  14585. linux*)
  14586. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14587. tmp_addflag=
  14588. case $cc_basename,$host_cpu in
  14589. pgcc*) # Portland Group C compiler
  14590. 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'
  14591. tmp_addflag=' $pic_flag'
  14592. ;;
  14593. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14594. 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'
  14595. tmp_addflag=' $pic_flag -Mnomain' ;;
  14596. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14597. tmp_addflag=' -i_dynamic' ;;
  14598. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14599. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14600. ifc* | ifort*) # Intel Fortran compiler
  14601. tmp_addflag=' -nofor_main' ;;
  14602. esac
  14603. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14604. if test $supports_anon_versioning = yes; then
  14605. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14606. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14607. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14608. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14609. fi
  14610. else
  14611. ld_shlibs_GCJ=no
  14612. fi
  14613. ;;
  14614. netbsd*)
  14615. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14616. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14617. wlarc=
  14618. else
  14619. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14620. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14621. fi
  14622. ;;
  14623. solaris*)
  14624. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14625. ld_shlibs_GCJ=no
  14626. cat <<EOF 1>&2
  14627. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14628. *** create shared libraries on Solaris systems. Therefore, libtool
  14629. *** is disabling shared libraries support. We urge you to upgrade GNU
  14630. *** binutils to release 2.9.1 or newer. Another option is to modify
  14631. *** your PATH or compiler configuration so that the native linker is
  14632. *** used, and then restart.
  14633. EOF
  14634. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14635. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14636. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14637. else
  14638. ld_shlibs_GCJ=no
  14639. fi
  14640. ;;
  14641. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14642. case `$LD -v 2>&1` in
  14643. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14644. ld_shlibs_GCJ=no
  14645. cat <<_LT_EOF 1>&2
  14646. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14647. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14648. *** is disabling shared libraries support. We urge you to upgrade GNU
  14649. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14650. *** your PATH or compiler configuration so that the native linker is
  14651. *** used, and then restart.
  14652. _LT_EOF
  14653. ;;
  14654. *)
  14655. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14656. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14657. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14658. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14659. else
  14660. ld_shlibs_GCJ=no
  14661. fi
  14662. ;;
  14663. esac
  14664. ;;
  14665. sunos4*)
  14666. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14667. wlarc=
  14668. hardcode_direct_GCJ=yes
  14669. hardcode_shlibpath_var_GCJ=no
  14670. ;;
  14671. *)
  14672. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14673. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14674. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14675. else
  14676. ld_shlibs_GCJ=no
  14677. fi
  14678. ;;
  14679. esac
  14680. if test "$ld_shlibs_GCJ" = no; then
  14681. runpath_var=
  14682. hardcode_libdir_flag_spec_GCJ=
  14683. export_dynamic_flag_spec_GCJ=
  14684. whole_archive_flag_spec_GCJ=
  14685. fi
  14686. else
  14687. # PORTME fill in a description of your system's linker (not GNU ld)
  14688. case $host_os in
  14689. aix3*)
  14690. allow_undefined_flag_GCJ=unsupported
  14691. always_export_symbols_GCJ=yes
  14692. 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'
  14693. # Note: this linker hardcodes the directories in LIBPATH if there
  14694. # are no directories specified by -L.
  14695. hardcode_minus_L_GCJ=yes
  14696. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14697. # Neither direct hardcoding nor static linking is supported with a
  14698. # broken collect2.
  14699. hardcode_direct_GCJ=unsupported
  14700. fi
  14701. ;;
  14702. aix4* | aix5*)
  14703. if test "$host_cpu" = ia64; then
  14704. # On IA64, the linker does run time linking by default, so we don't
  14705. # have to do anything special.
  14706. aix_use_runtimelinking=no
  14707. exp_sym_flag='-Bexport'
  14708. no_entry_flag=""
  14709. else
  14710. # If we're using GNU nm, then we don't want the "-C" option.
  14711. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14712. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14713. 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'
  14714. else
  14715. 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'
  14716. fi
  14717. aix_use_runtimelinking=no
  14718. # Test if we are trying to use run time linking or normal
  14719. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14720. # need to do runtime linking.
  14721. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14722. for ld_flag in $LDFLAGS; do
  14723. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14724. aix_use_runtimelinking=yes
  14725. break
  14726. fi
  14727. done
  14728. ;;
  14729. esac
  14730. exp_sym_flag='-bexport'
  14731. no_entry_flag='-bnoentry'
  14732. fi
  14733. # When large executables or shared objects are built, AIX ld can
  14734. # have problems creating the table of contents. If linking a library
  14735. # or program results in "error TOC overflow" add -mminimal-toc to
  14736. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14737. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14738. archive_cmds_GCJ=''
  14739. hardcode_direct_GCJ=yes
  14740. hardcode_libdir_separator_GCJ=':'
  14741. link_all_deplibs_GCJ=yes
  14742. if test "$GCC" = yes; then
  14743. case $host_os in aix4.[012]|aix4.[012].*)
  14744. # We only want to do this on AIX 4.2 and lower, the check
  14745. # below for broken collect2 doesn't work under 4.3+
  14746. collect2name=`${CC} -print-prog-name=collect2`
  14747. if test -f "$collect2name" && \
  14748. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14749. then
  14750. # We have reworked collect2
  14751. hardcode_direct_GCJ=yes
  14752. else
  14753. # We have old collect2
  14754. hardcode_direct_GCJ=unsupported
  14755. # It fails to find uninstalled libraries when the uninstalled
  14756. # path is not listed in the libpath. Setting hardcode_minus_L
  14757. # to unsupported forces relinking
  14758. hardcode_minus_L_GCJ=yes
  14759. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14760. hardcode_libdir_separator_GCJ=
  14761. fi
  14762. ;;
  14763. esac
  14764. shared_flag='-shared'
  14765. if test "$aix_use_runtimelinking" = yes; then
  14766. shared_flag="$shared_flag "'${wl}-G'
  14767. fi
  14768. else
  14769. # not using gcc
  14770. if test "$host_cpu" = ia64; then
  14771. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14772. # chokes on -Wl,-G. The following line is correct:
  14773. shared_flag='-G'
  14774. else
  14775. if test "$aix_use_runtimelinking" = yes; then
  14776. shared_flag='${wl}-G'
  14777. else
  14778. shared_flag='${wl}-bM:SRE'
  14779. fi
  14780. fi
  14781. fi
  14782. # It seems that -bexpall does not export symbols beginning with
  14783. # underscore (_), so it is better to generate a list of symbols to export.
  14784. always_export_symbols_GCJ=yes
  14785. if test "$aix_use_runtimelinking" = yes; then
  14786. # Warning - without using the other runtime loading flags (-brtl),
  14787. # -berok will link without error, but may produce a broken library.
  14788. allow_undefined_flag_GCJ='-berok'
  14789. # Determine the default libpath from the value encoded in an empty executable.
  14790. cat >conftest.$ac_ext <<_ACEOF
  14791. /* confdefs.h. */
  14792. _ACEOF
  14793. cat confdefs.h >>conftest.$ac_ext
  14794. cat >>conftest.$ac_ext <<_ACEOF
  14795. /* end confdefs.h. */
  14796. int
  14797. main ()
  14798. {
  14799. ;
  14800. return 0;
  14801. }
  14802. _ACEOF
  14803. rm -f conftest.$ac_objext conftest$ac_exeext
  14804. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14805. (eval $ac_link) 2>conftest.er1
  14806. ac_status=$?
  14807. grep -v '^ *+' conftest.er1 >conftest.err
  14808. rm -f conftest.er1
  14809. cat conftest.err >&5
  14810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14811. (exit $ac_status); } &&
  14812. { ac_try='test -z "$ac_c_werror_flag"
  14813. || test ! -s conftest.err'
  14814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14815. (eval $ac_try) 2>&5
  14816. ac_status=$?
  14817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14818. (exit $ac_status); }; } &&
  14819. { ac_try='test -s conftest$ac_exeext'
  14820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14821. (eval $ac_try) 2>&5
  14822. ac_status=$?
  14823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14824. (exit $ac_status); }; }; then
  14825. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14826. }'`
  14827. # Check for a 64-bit object if we didn't find anything.
  14828. 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; }
  14829. }'`; fi
  14830. else
  14831. echo "$as_me: failed program was:" >&5
  14832. sed 's/^/| /' conftest.$ac_ext >&5
  14833. fi
  14834. rm -f conftest.err conftest.$ac_objext \
  14835. conftest$ac_exeext conftest.$ac_ext
  14836. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14837. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14838. 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"
  14839. else
  14840. if test "$host_cpu" = ia64; then
  14841. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14842. allow_undefined_flag_GCJ="-z nodefs"
  14843. 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"
  14844. else
  14845. # Determine the default libpath from the value encoded in an empty executable.
  14846. cat >conftest.$ac_ext <<_ACEOF
  14847. /* confdefs.h. */
  14848. _ACEOF
  14849. cat confdefs.h >>conftest.$ac_ext
  14850. cat >>conftest.$ac_ext <<_ACEOF
  14851. /* end confdefs.h. */
  14852. int
  14853. main ()
  14854. {
  14855. ;
  14856. return 0;
  14857. }
  14858. _ACEOF
  14859. rm -f conftest.$ac_objext conftest$ac_exeext
  14860. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14861. (eval $ac_link) 2>conftest.er1
  14862. ac_status=$?
  14863. grep -v '^ *+' conftest.er1 >conftest.err
  14864. rm -f conftest.er1
  14865. cat conftest.err >&5
  14866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14867. (exit $ac_status); } &&
  14868. { ac_try='test -z "$ac_c_werror_flag"
  14869. || test ! -s conftest.err'
  14870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14871. (eval $ac_try) 2>&5
  14872. ac_status=$?
  14873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14874. (exit $ac_status); }; } &&
  14875. { ac_try='test -s conftest$ac_exeext'
  14876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14877. (eval $ac_try) 2>&5
  14878. ac_status=$?
  14879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14880. (exit $ac_status); }; }; then
  14881. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14882. }'`
  14883. # Check for a 64-bit object if we didn't find anything.
  14884. 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; }
  14885. }'`; fi
  14886. else
  14887. echo "$as_me: failed program was:" >&5
  14888. sed 's/^/| /' conftest.$ac_ext >&5
  14889. fi
  14890. rm -f conftest.err conftest.$ac_objext \
  14891. conftest$ac_exeext conftest.$ac_ext
  14892. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14893. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14894. # Warning - without using the other run time loading flags,
  14895. # -berok will link without error, but may produce a broken library.
  14896. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14897. allow_undefined_flag_GCJ=' ${wl}-berok'
  14898. # Exported symbols can be pulled into shared objects from archives
  14899. whole_archive_flag_spec_GCJ='$convenience'
  14900. archive_cmds_need_lc_GCJ=yes
  14901. # This is similar to how AIX traditionally builds its shared libraries.
  14902. 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'
  14903. fi
  14904. fi
  14905. ;;
  14906. amigaos*)
  14907. 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)'
  14908. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14909. hardcode_minus_L_GCJ=yes
  14910. # see comment about different semantics on the GNU ld section
  14911. ld_shlibs_GCJ=no
  14912. ;;
  14913. bsdi[45]*)
  14914. export_dynamic_flag_spec_GCJ=-rdynamic
  14915. ;;
  14916. cygwin* | mingw* | pw32*)
  14917. # When not using gcc, we currently assume that we are using
  14918. # Microsoft Visual C++.
  14919. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14920. # no search path for DLLs.
  14921. hardcode_libdir_flag_spec_GCJ=' '
  14922. allow_undefined_flag_GCJ=unsupported
  14923. # Tell ltmain to make .lib files, not .a files.
  14924. libext=lib
  14925. # Tell ltmain to make .dll files, not .so files.
  14926. shrext_cmds=".dll"
  14927. # FIXME: Setting linknames here is a bad hack.
  14928. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14929. # The linker will automatically build a .lib file if we build a DLL.
  14930. old_archive_From_new_cmds_GCJ='true'
  14931. # FIXME: Should let the user specify the lib program.
  14932. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14933. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14934. enable_shared_with_static_runtimes_GCJ=yes
  14935. ;;
  14936. darwin* | rhapsody*)
  14937. case $host_os in
  14938. rhapsody* | darwin1.[012])
  14939. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14940. ;;
  14941. *) # Darwin 1.3 on
  14942. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14943. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14944. else
  14945. case ${MACOSX_DEPLOYMENT_TARGET} in
  14946. 10.[012])
  14947. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14948. ;;
  14949. 10.*)
  14950. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14951. ;;
  14952. esac
  14953. fi
  14954. ;;
  14955. esac
  14956. archive_cmds_need_lc_GCJ=no
  14957. hardcode_direct_GCJ=no
  14958. hardcode_automatic_GCJ=yes
  14959. hardcode_shlibpath_var_GCJ=unsupported
  14960. whole_archive_flag_spec_GCJ=''
  14961. link_all_deplibs_GCJ=yes
  14962. if test "$GCC" = yes ; then
  14963. output_verbose_link_cmd='echo'
  14964. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14965. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14966. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14967. 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}'
  14968. 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}'
  14969. else
  14970. case $cc_basename in
  14971. xlc*)
  14972. output_verbose_link_cmd='echo'
  14973. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14974. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14975. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14976. 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}'
  14977. 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}'
  14978. ;;
  14979. *)
  14980. ld_shlibs_GCJ=no
  14981. ;;
  14982. esac
  14983. fi
  14984. ;;
  14985. dgux*)
  14986. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14987. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14988. hardcode_shlibpath_var_GCJ=no
  14989. ;;
  14990. freebsd1*)
  14991. ld_shlibs_GCJ=no
  14992. ;;
  14993. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14994. # support. Future versions do this automatically, but an explicit c++rt0.o
  14995. # does not break anything, and helps significantly (at the cost of a little
  14996. # extra space).
  14997. freebsd2.2*)
  14998. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14999. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15000. hardcode_direct_GCJ=yes
  15001. hardcode_shlibpath_var_GCJ=no
  15002. ;;
  15003. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15004. freebsd2*)
  15005. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15006. hardcode_direct_GCJ=yes
  15007. hardcode_minus_L_GCJ=yes
  15008. hardcode_shlibpath_var_GCJ=no
  15009. ;;
  15010. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15011. freebsd* | kfreebsd*-gnu | dragonfly*)
  15012. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15013. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15014. hardcode_direct_GCJ=yes
  15015. hardcode_shlibpath_var_GCJ=no
  15016. ;;
  15017. hpux9*)
  15018. if test "$GCC" = yes; then
  15019. 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'
  15020. else
  15021. 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'
  15022. fi
  15023. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15024. hardcode_libdir_separator_GCJ=:
  15025. hardcode_direct_GCJ=yes
  15026. # hardcode_minus_L: Not really in the search PATH,
  15027. # but as the default location of the library.
  15028. hardcode_minus_L_GCJ=yes
  15029. export_dynamic_flag_spec_GCJ='${wl}-E'
  15030. ;;
  15031. hpux10*)
  15032. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15033. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15034. else
  15035. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15036. fi
  15037. if test "$with_gnu_ld" = no; then
  15038. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15039. hardcode_libdir_separator_GCJ=:
  15040. hardcode_direct_GCJ=yes
  15041. export_dynamic_flag_spec_GCJ='${wl}-E'
  15042. # hardcode_minus_L: Not really in the search PATH,
  15043. # but as the default location of the library.
  15044. hardcode_minus_L_GCJ=yes
  15045. fi
  15046. ;;
  15047. hpux11*)
  15048. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15049. case $host_cpu in
  15050. hppa*64*)
  15051. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15052. ;;
  15053. ia64*)
  15054. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15055. ;;
  15056. *)
  15057. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15058. ;;
  15059. esac
  15060. else
  15061. case $host_cpu in
  15062. hppa*64*)
  15063. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15064. ;;
  15065. ia64*)
  15066. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15067. ;;
  15068. *)
  15069. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15070. ;;
  15071. esac
  15072. fi
  15073. if test "$with_gnu_ld" = no; then
  15074. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15075. hardcode_libdir_separator_GCJ=:
  15076. case $host_cpu in
  15077. hppa*64*|ia64*)
  15078. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15079. hardcode_direct_GCJ=no
  15080. hardcode_shlibpath_var_GCJ=no
  15081. ;;
  15082. *)
  15083. hardcode_direct_GCJ=yes
  15084. export_dynamic_flag_spec_GCJ='${wl}-E'
  15085. # hardcode_minus_L: Not really in the search PATH,
  15086. # but as the default location of the library.
  15087. hardcode_minus_L_GCJ=yes
  15088. ;;
  15089. esac
  15090. fi
  15091. ;;
  15092. irix5* | irix6* | nonstopux*)
  15093. if test "$GCC" = yes; then
  15094. 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'
  15095. else
  15096. 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'
  15097. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15098. fi
  15099. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15100. hardcode_libdir_separator_GCJ=:
  15101. link_all_deplibs_GCJ=yes
  15102. ;;
  15103. netbsd*)
  15104. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15105. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15106. else
  15107. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15108. fi
  15109. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15110. hardcode_direct_GCJ=yes
  15111. hardcode_shlibpath_var_GCJ=no
  15112. ;;
  15113. newsos6)
  15114. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15115. hardcode_direct_GCJ=yes
  15116. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15117. hardcode_libdir_separator_GCJ=:
  15118. hardcode_shlibpath_var_GCJ=no
  15119. ;;
  15120. openbsd*)
  15121. hardcode_direct_GCJ=yes
  15122. hardcode_shlibpath_var_GCJ=no
  15123. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15124. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15125. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15126. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15127. export_dynamic_flag_spec_GCJ='${wl}-E'
  15128. else
  15129. case $host_os in
  15130. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15131. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15132. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15133. ;;
  15134. *)
  15135. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15136. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15137. ;;
  15138. esac
  15139. fi
  15140. ;;
  15141. os2*)
  15142. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15143. hardcode_minus_L_GCJ=yes
  15144. allow_undefined_flag_GCJ=unsupported
  15145. 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'
  15146. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15147. ;;
  15148. osf3*)
  15149. if test "$GCC" = yes; then
  15150. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15151. 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'
  15152. else
  15153. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15154. 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'
  15155. fi
  15156. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15157. hardcode_libdir_separator_GCJ=:
  15158. ;;
  15159. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15160. if test "$GCC" = yes; then
  15161. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15162. 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'
  15163. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15164. else
  15165. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15166. 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'
  15167. 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~
  15168. $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'
  15169. # Both c and cxx compiler support -rpath directly
  15170. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15171. fi
  15172. hardcode_libdir_separator_GCJ=:
  15173. ;;
  15174. solaris*)
  15175. no_undefined_flag_GCJ=' -z text'
  15176. if test "$GCC" = yes; then
  15177. wlarc='${wl}'
  15178. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15179. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15180. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15181. else
  15182. wlarc=''
  15183. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15184. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15185. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15186. fi
  15187. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15188. hardcode_shlibpath_var_GCJ=no
  15189. case $host_os in
  15190. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15191. *)
  15192. # The compiler driver will combine linker options so we
  15193. # cannot just pass the convience library names through
  15194. # without $wl, iff we do not link with $LD.
  15195. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15196. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15197. case $wlarc in
  15198. '')
  15199. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15200. *)
  15201. 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' ;;
  15202. esac ;;
  15203. esac
  15204. link_all_deplibs_GCJ=yes
  15205. ;;
  15206. sunos4*)
  15207. if test "x$host_vendor" = xsequent; then
  15208. # Use $CC to link under sequent, because it throws in some extra .o
  15209. # files that make .init and .fini sections work.
  15210. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15211. else
  15212. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15213. fi
  15214. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15215. hardcode_direct_GCJ=yes
  15216. hardcode_minus_L_GCJ=yes
  15217. hardcode_shlibpath_var_GCJ=no
  15218. ;;
  15219. sysv4)
  15220. case $host_vendor in
  15221. sni)
  15222. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15223. hardcode_direct_GCJ=yes # is this really true???
  15224. ;;
  15225. siemens)
  15226. ## LD is ld it makes a PLAMLIB
  15227. ## CC just makes a GrossModule.
  15228. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15229. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15230. hardcode_direct_GCJ=no
  15231. ;;
  15232. motorola)
  15233. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15234. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15235. ;;
  15236. esac
  15237. runpath_var='LD_RUN_PATH'
  15238. hardcode_shlibpath_var_GCJ=no
  15239. ;;
  15240. sysv4.3*)
  15241. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15242. hardcode_shlibpath_var_GCJ=no
  15243. export_dynamic_flag_spec_GCJ='-Bexport'
  15244. ;;
  15245. sysv4*MP*)
  15246. if test -d /usr/nec; then
  15247. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15248. hardcode_shlibpath_var_GCJ=no
  15249. runpath_var=LD_RUN_PATH
  15250. hardcode_runpath_var=yes
  15251. ld_shlibs_GCJ=yes
  15252. fi
  15253. ;;
  15254. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15255. no_undefined_flag_GCJ='${wl}-z,text'
  15256. archive_cmds_need_lc_GCJ=no
  15257. hardcode_shlibpath_var_GCJ=no
  15258. runpath_var='LD_RUN_PATH'
  15259. if test "$GCC" = yes; then
  15260. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15261. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15262. else
  15263. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15264. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15265. fi
  15266. ;;
  15267. sysv5* | sco3.2v5* | sco5v6*)
  15268. # Note: We can NOT use -z defs as we might desire, because we do not
  15269. # link with -lc, and that would cause any symbols used from libc to
  15270. # always be unresolved, which means just about no library would
  15271. # ever link correctly. If we're not using GNU ld we use -z text
  15272. # though, which does catch some bad symbols but isn't as heavy-handed
  15273. # as -z defs.
  15274. no_undefined_flag_GCJ='${wl}-z,text'
  15275. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15276. archive_cmds_need_lc_GCJ=no
  15277. hardcode_shlibpath_var_GCJ=no
  15278. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15279. hardcode_libdir_separator_GCJ=':'
  15280. link_all_deplibs_GCJ=yes
  15281. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15282. runpath_var='LD_RUN_PATH'
  15283. if test "$GCC" = yes; then
  15284. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15285. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15286. else
  15287. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15288. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15289. fi
  15290. ;;
  15291. uts4*)
  15292. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15293. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15294. hardcode_shlibpath_var_GCJ=no
  15295. ;;
  15296. *)
  15297. ld_shlibs_GCJ=no
  15298. ;;
  15299. esac
  15300. fi
  15301. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15302. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15303. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15304. #
  15305. # Do we need to explicitly link libc?
  15306. #
  15307. case "x$archive_cmds_need_lc_GCJ" in
  15308. x|xyes)
  15309. # Assume -lc should be added
  15310. archive_cmds_need_lc_GCJ=yes
  15311. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15312. case $archive_cmds_GCJ in
  15313. *'~'*)
  15314. # FIXME: we may have to deal with multi-command sequences.
  15315. ;;
  15316. '$CC '*)
  15317. # Test whether the compiler implicitly links with -lc since on some
  15318. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15319. # to ld, don't add -lc before -lgcc.
  15320. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15321. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15322. $rm conftest*
  15323. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15325. (eval $ac_compile) 2>&5
  15326. ac_status=$?
  15327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15328. (exit $ac_status); } 2>conftest.err; then
  15329. soname=conftest
  15330. lib=conftest
  15331. libobjs=conftest.$ac_objext
  15332. deplibs=
  15333. wl=$lt_prog_compiler_wl_GCJ
  15334. pic_flag=$lt_prog_compiler_pic_GCJ
  15335. compiler_flags=-v
  15336. linker_flags=-v
  15337. verstring=
  15338. output_objdir=.
  15339. libname=conftest
  15340. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15341. allow_undefined_flag_GCJ=
  15342. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15343. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15344. ac_status=$?
  15345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15346. (exit $ac_status); }
  15347. then
  15348. archive_cmds_need_lc_GCJ=no
  15349. else
  15350. archive_cmds_need_lc_GCJ=yes
  15351. fi
  15352. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15353. else
  15354. cat conftest.err 1>&5
  15355. fi
  15356. $rm conftest*
  15357. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15358. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15359. ;;
  15360. esac
  15361. fi
  15362. ;;
  15363. esac
  15364. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15365. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15366. library_names_spec=
  15367. libname_spec='lib$name'
  15368. soname_spec=
  15369. shrext_cmds=".so"
  15370. postinstall_cmds=
  15371. postuninstall_cmds=
  15372. finish_cmds=
  15373. finish_eval=
  15374. shlibpath_var=
  15375. shlibpath_overrides_runpath=unknown
  15376. version_type=none
  15377. dynamic_linker="$host_os ld.so"
  15378. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15379. if test "$GCC" = yes; then
  15380. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15381. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15382. # if the path contains ";" then we assume it to be the separator
  15383. # otherwise default to the standard path separator (i.e. ":") - it is
  15384. # assumed that no part of a normal pathname contains ";" but that should
  15385. # okay in the real world where ";" in dirpaths is itself problematic.
  15386. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15387. else
  15388. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15389. fi
  15390. else
  15391. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15392. fi
  15393. need_lib_prefix=unknown
  15394. hardcode_into_libs=no
  15395. # when you set need_version to no, make sure it does not cause -set_version
  15396. # flags to be left without arguments
  15397. need_version=unknown
  15398. case $host_os in
  15399. aix3*)
  15400. version_type=linux
  15401. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15402. shlibpath_var=LIBPATH
  15403. # AIX 3 has no versioning support, so we append a major version to the name.
  15404. soname_spec='${libname}${release}${shared_ext}$major'
  15405. ;;
  15406. aix4* | aix5*)
  15407. version_type=linux
  15408. need_lib_prefix=no
  15409. need_version=no
  15410. hardcode_into_libs=yes
  15411. if test "$host_cpu" = ia64; then
  15412. # AIX 5 supports IA64
  15413. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15414. shlibpath_var=LD_LIBRARY_PATH
  15415. else
  15416. # With GCC up to 2.95.x, collect2 would create an import file
  15417. # for dependence libraries. The import file would start with
  15418. # the line `#! .'. This would cause the generated library to
  15419. # depend on `.', always an invalid library. This was fixed in
  15420. # development snapshots of GCC prior to 3.0.
  15421. case $host_os in
  15422. aix4 | aix4.[01] | aix4.[01].*)
  15423. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15424. echo ' yes '
  15425. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15426. :
  15427. else
  15428. can_build_shared=no
  15429. fi
  15430. ;;
  15431. esac
  15432. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15433. # soname into executable. Probably we can add versioning support to
  15434. # collect2, so additional links can be useful in future.
  15435. if test "$aix_use_runtimelinking" = yes; then
  15436. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15437. # instead of lib<name>.a to let people know that these are not
  15438. # typical AIX shared libraries.
  15439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15440. else
  15441. # We preserve .a as extension for shared libraries through AIX4.2
  15442. # and later when we are not doing run time linking.
  15443. library_names_spec='${libname}${release}.a $libname.a'
  15444. soname_spec='${libname}${release}${shared_ext}$major'
  15445. fi
  15446. shlibpath_var=LIBPATH
  15447. fi
  15448. ;;
  15449. amigaos*)
  15450. library_names_spec='$libname.ixlibrary $libname.a'
  15451. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15452. 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'
  15453. ;;
  15454. beos*)
  15455. library_names_spec='${libname}${shared_ext}'
  15456. dynamic_linker="$host_os ld.so"
  15457. shlibpath_var=LIBRARY_PATH
  15458. ;;
  15459. bsdi[45]*)
  15460. version_type=linux
  15461. need_version=no
  15462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15463. soname_spec='${libname}${release}${shared_ext}$major'
  15464. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15465. shlibpath_var=LD_LIBRARY_PATH
  15466. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15467. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15468. # the default ld.so.conf also contains /usr/contrib/lib and
  15469. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15470. # libtool to hard-code these into programs
  15471. ;;
  15472. cygwin* | mingw* | pw32*)
  15473. version_type=windows
  15474. shrext_cmds=".dll"
  15475. need_version=no
  15476. need_lib_prefix=no
  15477. case $GCC,$host_os in
  15478. yes,cygwin* | yes,mingw* | yes,pw32*)
  15479. library_names_spec='$libname.dll.a'
  15480. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15481. postinstall_cmds='base_file=`basename \${file}`~
  15482. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15483. dldir=$destdir/`dirname \$dlpath`~
  15484. test -d \$dldir || mkdir -p \$dldir~
  15485. $install_prog $dir/$dlname \$dldir/$dlname~
  15486. chmod a+x \$dldir/$dlname'
  15487. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15488. dlpath=$dir/\$dldll~
  15489. $rm \$dlpath'
  15490. shlibpath_overrides_runpath=yes
  15491. case $host_os in
  15492. cygwin*)
  15493. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15494. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15495. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15496. ;;
  15497. mingw*)
  15498. # MinGW DLLs use traditional 'lib' prefix
  15499. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15500. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15501. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15502. # It is most probably a Windows format PATH printed by
  15503. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15504. # path with ; separators, and with drive letters. We can handle the
  15505. # drive letters (cygwin fileutils understands them), so leave them,
  15506. # especially as we might pass files found there to a mingw objdump,
  15507. # which wouldn't understand a cygwinified path. Ahh.
  15508. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15509. else
  15510. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15511. fi
  15512. ;;
  15513. pw32*)
  15514. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15515. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15516. ;;
  15517. esac
  15518. ;;
  15519. *)
  15520. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15521. ;;
  15522. esac
  15523. dynamic_linker='Win32 ld.exe'
  15524. # FIXME: first we should search . and the directory the executable is in
  15525. shlibpath_var=PATH
  15526. ;;
  15527. darwin* | rhapsody*)
  15528. dynamic_linker="$host_os dyld"
  15529. version_type=darwin
  15530. need_lib_prefix=no
  15531. need_version=no
  15532. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15533. soname_spec='${libname}${release}${major}$shared_ext'
  15534. shlibpath_overrides_runpath=yes
  15535. shlibpath_var=DYLD_LIBRARY_PATH
  15536. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15537. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15538. if test "$GCC" = yes; then
  15539. 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"`
  15540. else
  15541. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15542. fi
  15543. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15544. ;;
  15545. dgux*)
  15546. version_type=linux
  15547. need_lib_prefix=no
  15548. need_version=no
  15549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15550. soname_spec='${libname}${release}${shared_ext}$major'
  15551. shlibpath_var=LD_LIBRARY_PATH
  15552. ;;
  15553. freebsd1*)
  15554. dynamic_linker=no
  15555. ;;
  15556. kfreebsd*-gnu)
  15557. version_type=linux
  15558. need_lib_prefix=no
  15559. need_version=no
  15560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15561. soname_spec='${libname}${release}${shared_ext}$major'
  15562. shlibpath_var=LD_LIBRARY_PATH
  15563. shlibpath_overrides_runpath=no
  15564. hardcode_into_libs=yes
  15565. dynamic_linker='GNU ld.so'
  15566. ;;
  15567. freebsd* | dragonfly*)
  15568. # DragonFly does not have aout. When/if they implement a new
  15569. # versioning mechanism, adjust this.
  15570. if test -x /usr/bin/objformat; then
  15571. objformat=`/usr/bin/objformat`
  15572. else
  15573. case $host_os in
  15574. freebsd[123]*) objformat=aout ;;
  15575. *) objformat=elf ;;
  15576. esac
  15577. fi
  15578. version_type=freebsd-$objformat
  15579. case $version_type in
  15580. freebsd-elf*)
  15581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15582. need_version=no
  15583. need_lib_prefix=no
  15584. ;;
  15585. freebsd-*)
  15586. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15587. need_version=yes
  15588. ;;
  15589. esac
  15590. shlibpath_var=LD_LIBRARY_PATH
  15591. case $host_os in
  15592. freebsd2*)
  15593. shlibpath_overrides_runpath=yes
  15594. ;;
  15595. freebsd3.[01]* | freebsdelf3.[01]*)
  15596. shlibpath_overrides_runpath=yes
  15597. hardcode_into_libs=yes
  15598. ;;
  15599. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15600. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15601. shlibpath_overrides_runpath=no
  15602. hardcode_into_libs=yes
  15603. ;;
  15604. freebsd*) # from 4.6 on
  15605. shlibpath_overrides_runpath=yes
  15606. hardcode_into_libs=yes
  15607. ;;
  15608. esac
  15609. ;;
  15610. gnu*)
  15611. version_type=linux
  15612. need_lib_prefix=no
  15613. need_version=no
  15614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15615. soname_spec='${libname}${release}${shared_ext}$major'
  15616. shlibpath_var=LD_LIBRARY_PATH
  15617. hardcode_into_libs=yes
  15618. ;;
  15619. hpux9* | hpux10* | hpux11*)
  15620. # Give a soname corresponding to the major version so that dld.sl refuses to
  15621. # link against other versions.
  15622. version_type=sunos
  15623. need_lib_prefix=no
  15624. need_version=no
  15625. case $host_cpu in
  15626. ia64*)
  15627. shrext_cmds='.so'
  15628. hardcode_into_libs=yes
  15629. dynamic_linker="$host_os dld.so"
  15630. shlibpath_var=LD_LIBRARY_PATH
  15631. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15633. soname_spec='${libname}${release}${shared_ext}$major'
  15634. if test "X$HPUX_IA64_MODE" = X32; then
  15635. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15636. else
  15637. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15638. fi
  15639. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15640. ;;
  15641. hppa*64*)
  15642. shrext_cmds='.sl'
  15643. hardcode_into_libs=yes
  15644. dynamic_linker="$host_os dld.sl"
  15645. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15646. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15648. soname_spec='${libname}${release}${shared_ext}$major'
  15649. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15650. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15651. ;;
  15652. *)
  15653. shrext_cmds='.sl'
  15654. dynamic_linker="$host_os dld.sl"
  15655. shlibpath_var=SHLIB_PATH
  15656. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15658. soname_spec='${libname}${release}${shared_ext}$major'
  15659. ;;
  15660. esac
  15661. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15662. postinstall_cmds='chmod 555 $lib'
  15663. ;;
  15664. interix3*)
  15665. version_type=linux
  15666. need_lib_prefix=no
  15667. need_version=no
  15668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15669. soname_spec='${libname}${release}${shared_ext}$major'
  15670. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15671. shlibpath_var=LD_LIBRARY_PATH
  15672. shlibpath_overrides_runpath=no
  15673. hardcode_into_libs=yes
  15674. ;;
  15675. irix5* | irix6* | nonstopux*)
  15676. case $host_os in
  15677. nonstopux*) version_type=nonstopux ;;
  15678. *)
  15679. if test "$lt_cv_prog_gnu_ld" = yes; then
  15680. version_type=linux
  15681. else
  15682. version_type=irix
  15683. fi ;;
  15684. esac
  15685. need_lib_prefix=no
  15686. need_version=no
  15687. soname_spec='${libname}${release}${shared_ext}$major'
  15688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15689. case $host_os in
  15690. irix5* | nonstopux*)
  15691. libsuff= shlibsuff=
  15692. ;;
  15693. *)
  15694. case $LD in # libtool.m4 will add one of these switches to LD
  15695. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15696. libsuff= shlibsuff= libmagic=32-bit;;
  15697. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15698. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15699. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15700. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15701. *) libsuff= shlibsuff= libmagic=never-match;;
  15702. esac
  15703. ;;
  15704. esac
  15705. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15706. shlibpath_overrides_runpath=no
  15707. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15708. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15709. hardcode_into_libs=yes
  15710. ;;
  15711. # No shared lib support for Linux oldld, aout, or coff.
  15712. linux*oldld* | linux*aout* | linux*coff*)
  15713. dynamic_linker=no
  15714. ;;
  15715. # This must be Linux ELF.
  15716. linux*)
  15717. version_type=linux
  15718. need_lib_prefix=no
  15719. need_version=no
  15720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15721. soname_spec='${libname}${release}${shared_ext}$major'
  15722. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15723. shlibpath_var=LD_LIBRARY_PATH
  15724. shlibpath_overrides_runpath=no
  15725. # This implies no fast_install, which is unacceptable.
  15726. # Some rework will be needed to allow for fast_install
  15727. # before this can be enabled.
  15728. hardcode_into_libs=yes
  15729. # Append ld.so.conf contents to the search path
  15730. if test -f /etc/ld.so.conf; then
  15731. 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' ' '`
  15732. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15733. fi
  15734. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15735. # powerpc, because MkLinux only supported shared libraries with the
  15736. # GNU dynamic linker. Since this was broken with cross compilers,
  15737. # most powerpc-linux boxes support dynamic linking these days and
  15738. # people can always --disable-shared, the test was removed, and we
  15739. # assume the GNU/Linux dynamic linker is in use.
  15740. dynamic_linker='GNU/Linux ld.so'
  15741. ;;
  15742. knetbsd*-gnu)
  15743. version_type=linux
  15744. need_lib_prefix=no
  15745. need_version=no
  15746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15747. soname_spec='${libname}${release}${shared_ext}$major'
  15748. shlibpath_var=LD_LIBRARY_PATH
  15749. shlibpath_overrides_runpath=no
  15750. hardcode_into_libs=yes
  15751. dynamic_linker='GNU ld.so'
  15752. ;;
  15753. netbsd*)
  15754. version_type=sunos
  15755. need_lib_prefix=no
  15756. need_version=no
  15757. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15759. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15760. dynamic_linker='NetBSD (a.out) ld.so'
  15761. else
  15762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15763. soname_spec='${libname}${release}${shared_ext}$major'
  15764. dynamic_linker='NetBSD ld.elf_so'
  15765. fi
  15766. shlibpath_var=LD_LIBRARY_PATH
  15767. shlibpath_overrides_runpath=yes
  15768. hardcode_into_libs=yes
  15769. ;;
  15770. newsos6)
  15771. version_type=linux
  15772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15773. shlibpath_var=LD_LIBRARY_PATH
  15774. shlibpath_overrides_runpath=yes
  15775. ;;
  15776. nto-qnx*)
  15777. version_type=linux
  15778. need_lib_prefix=no
  15779. need_version=no
  15780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15781. soname_spec='${libname}${release}${shared_ext}$major'
  15782. shlibpath_var=LD_LIBRARY_PATH
  15783. shlibpath_overrides_runpath=yes
  15784. ;;
  15785. openbsd*)
  15786. version_type=sunos
  15787. sys_lib_dlsearch_path_spec="/usr/lib"
  15788. need_lib_prefix=no
  15789. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15790. case $host_os in
  15791. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15792. *) need_version=no ;;
  15793. esac
  15794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15795. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15796. shlibpath_var=LD_LIBRARY_PATH
  15797. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15798. case $host_os in
  15799. openbsd2.[89] | openbsd2.[89].*)
  15800. shlibpath_overrides_runpath=no
  15801. ;;
  15802. *)
  15803. shlibpath_overrides_runpath=yes
  15804. ;;
  15805. esac
  15806. else
  15807. shlibpath_overrides_runpath=yes
  15808. fi
  15809. ;;
  15810. os2*)
  15811. libname_spec='$name'
  15812. shrext_cmds=".dll"
  15813. need_lib_prefix=no
  15814. library_names_spec='$libname${shared_ext} $libname.a'
  15815. dynamic_linker='OS/2 ld.exe'
  15816. shlibpath_var=LIBPATH
  15817. ;;
  15818. osf3* | osf4* | osf5*)
  15819. version_type=osf
  15820. need_lib_prefix=no
  15821. need_version=no
  15822. soname_spec='${libname}${release}${shared_ext}$major'
  15823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15824. shlibpath_var=LD_LIBRARY_PATH
  15825. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15826. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15827. ;;
  15828. solaris*)
  15829. version_type=linux
  15830. need_lib_prefix=no
  15831. need_version=no
  15832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15833. soname_spec='${libname}${release}${shared_ext}$major'
  15834. shlibpath_var=LD_LIBRARY_PATH
  15835. shlibpath_overrides_runpath=yes
  15836. hardcode_into_libs=yes
  15837. # ldd complains unless libraries are executable
  15838. postinstall_cmds='chmod +x $lib'
  15839. ;;
  15840. sunos4*)
  15841. version_type=sunos
  15842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15843. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15844. shlibpath_var=LD_LIBRARY_PATH
  15845. shlibpath_overrides_runpath=yes
  15846. if test "$with_gnu_ld" = yes; then
  15847. need_lib_prefix=no
  15848. fi
  15849. need_version=yes
  15850. ;;
  15851. sysv4 | sysv4.3*)
  15852. version_type=linux
  15853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15854. soname_spec='${libname}${release}${shared_ext}$major'
  15855. shlibpath_var=LD_LIBRARY_PATH
  15856. case $host_vendor in
  15857. sni)
  15858. shlibpath_overrides_runpath=no
  15859. need_lib_prefix=no
  15860. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15861. runpath_var=LD_RUN_PATH
  15862. ;;
  15863. siemens)
  15864. need_lib_prefix=no
  15865. ;;
  15866. motorola)
  15867. need_lib_prefix=no
  15868. need_version=no
  15869. shlibpath_overrides_runpath=no
  15870. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15871. ;;
  15872. esac
  15873. ;;
  15874. sysv4*MP*)
  15875. if test -d /usr/nec ;then
  15876. version_type=linux
  15877. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15878. soname_spec='$libname${shared_ext}.$major'
  15879. shlibpath_var=LD_LIBRARY_PATH
  15880. fi
  15881. ;;
  15882. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15883. version_type=freebsd-elf
  15884. need_lib_prefix=no
  15885. need_version=no
  15886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15887. soname_spec='${libname}${release}${shared_ext}$major'
  15888. shlibpath_var=LD_LIBRARY_PATH
  15889. hardcode_into_libs=yes
  15890. if test "$with_gnu_ld" = yes; then
  15891. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15892. shlibpath_overrides_runpath=no
  15893. else
  15894. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15895. shlibpath_overrides_runpath=yes
  15896. case $host_os in
  15897. sco3.2v5*)
  15898. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15899. ;;
  15900. esac
  15901. fi
  15902. sys_lib_dlsearch_path_spec='/usr/lib'
  15903. ;;
  15904. uts4*)
  15905. version_type=linux
  15906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15907. soname_spec='${libname}${release}${shared_ext}$major'
  15908. shlibpath_var=LD_LIBRARY_PATH
  15909. ;;
  15910. *)
  15911. dynamic_linker=no
  15912. ;;
  15913. esac
  15914. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15915. echo "${ECHO_T}$dynamic_linker" >&6
  15916. test "$dynamic_linker" = no && can_build_shared=no
  15917. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15918. if test "$GCC" = yes; then
  15919. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15920. fi
  15921. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15922. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15923. hardcode_action_GCJ=
  15924. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15925. test -n "$runpath_var_GCJ" || \
  15926. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15927. # We can hardcode non-existant directories.
  15928. if test "$hardcode_direct_GCJ" != no &&
  15929. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15930. # have to relink, otherwise we might link with an installed library
  15931. # when we should be linking with a yet-to-be-installed one
  15932. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15933. test "$hardcode_minus_L_GCJ" != no; then
  15934. # Linking always hardcodes the temporary library directory.
  15935. hardcode_action_GCJ=relink
  15936. else
  15937. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15938. hardcode_action_GCJ=immediate
  15939. fi
  15940. else
  15941. # We cannot hardcode anything, or else we can only hardcode existing
  15942. # directories.
  15943. hardcode_action_GCJ=unsupported
  15944. fi
  15945. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15946. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15947. if test "$hardcode_action_GCJ" = relink; then
  15948. # Fast installation is not supported
  15949. enable_fast_install=no
  15950. elif test "$shlibpath_overrides_runpath" = yes ||
  15951. test "$enable_shared" = no; then
  15952. # Fast installation is not necessary
  15953. enable_fast_install=needless
  15954. fi
  15955. # The else clause should only fire when bootstrapping the
  15956. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15957. # with your package, and you will get complaints that there are
  15958. # no rules to generate ltmain.sh.
  15959. if test -f "$ltmain"; then
  15960. # See if we are running on zsh, and set the options which allow our commands through
  15961. # without removal of \ escapes.
  15962. if test -n "${ZSH_VERSION+set}" ; then
  15963. setopt NO_GLOB_SUBST
  15964. fi
  15965. # Now quote all the things that may contain metacharacters while being
  15966. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15967. # variables and quote the copies for generation of the libtool script.
  15968. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15969. SED SHELL STRIP \
  15970. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15971. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15972. deplibs_check_method reload_flag reload_cmds need_locks \
  15973. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15974. lt_cv_sys_global_symbol_to_c_name_address \
  15975. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15976. old_postinstall_cmds old_postuninstall_cmds \
  15977. compiler_GCJ \
  15978. CC_GCJ \
  15979. LD_GCJ \
  15980. lt_prog_compiler_wl_GCJ \
  15981. lt_prog_compiler_pic_GCJ \
  15982. lt_prog_compiler_static_GCJ \
  15983. lt_prog_compiler_no_builtin_flag_GCJ \
  15984. export_dynamic_flag_spec_GCJ \
  15985. thread_safe_flag_spec_GCJ \
  15986. whole_archive_flag_spec_GCJ \
  15987. enable_shared_with_static_runtimes_GCJ \
  15988. old_archive_cmds_GCJ \
  15989. old_archive_from_new_cmds_GCJ \
  15990. predep_objects_GCJ \
  15991. postdep_objects_GCJ \
  15992. predeps_GCJ \
  15993. postdeps_GCJ \
  15994. compiler_lib_search_path_GCJ \
  15995. archive_cmds_GCJ \
  15996. archive_expsym_cmds_GCJ \
  15997. postinstall_cmds_GCJ \
  15998. postuninstall_cmds_GCJ \
  15999. old_archive_from_expsyms_cmds_GCJ \
  16000. allow_undefined_flag_GCJ \
  16001. no_undefined_flag_GCJ \
  16002. export_symbols_cmds_GCJ \
  16003. hardcode_libdir_flag_spec_GCJ \
  16004. hardcode_libdir_flag_spec_ld_GCJ \
  16005. hardcode_libdir_separator_GCJ \
  16006. hardcode_automatic_GCJ \
  16007. module_cmds_GCJ \
  16008. module_expsym_cmds_GCJ \
  16009. lt_cv_prog_compiler_c_o_GCJ \
  16010. exclude_expsyms_GCJ \
  16011. include_expsyms_GCJ; do
  16012. case $var in
  16013. old_archive_cmds_GCJ | \
  16014. old_archive_from_new_cmds_GCJ | \
  16015. archive_cmds_GCJ | \
  16016. archive_expsym_cmds_GCJ | \
  16017. module_cmds_GCJ | \
  16018. module_expsym_cmds_GCJ | \
  16019. old_archive_from_expsyms_cmds_GCJ | \
  16020. export_symbols_cmds_GCJ | \
  16021. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16022. postinstall_cmds | postuninstall_cmds | \
  16023. old_postinstall_cmds | old_postuninstall_cmds | \
  16024. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16025. # Double-quote double-evaled strings.
  16026. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16027. ;;
  16028. *)
  16029. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16030. ;;
  16031. esac
  16032. done
  16033. case $lt_echo in
  16034. *'\$0 --fallback-echo"')
  16035. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16036. ;;
  16037. esac
  16038. cfgfile="$ofile"
  16039. cat <<__EOF__ >> "$cfgfile"
  16040. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16041. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16042. # Shell to use when invoking shell scripts.
  16043. SHELL=$lt_SHELL
  16044. # Whether or not to build shared libraries.
  16045. build_libtool_libs=$enable_shared
  16046. # Whether or not to build static libraries.
  16047. build_old_libs=$enable_static
  16048. # Whether or not to add -lc for building shared libraries.
  16049. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16050. # Whether or not to disallow shared libs when runtime libs are static
  16051. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16052. # Whether or not to optimize for fast installation.
  16053. fast_install=$enable_fast_install
  16054. # The host system.
  16055. host_alias=$host_alias
  16056. host=$host
  16057. host_os=$host_os
  16058. # The build system.
  16059. build_alias=$build_alias
  16060. build=$build
  16061. build_os=$build_os
  16062. # An echo program that does not interpret backslashes.
  16063. echo=$lt_echo
  16064. # The archiver.
  16065. AR=$lt_AR
  16066. AR_FLAGS=$lt_AR_FLAGS
  16067. # A C compiler.
  16068. LTCC=$lt_LTCC
  16069. # LTCC compiler flags.
  16070. LTCFLAGS=$lt_LTCFLAGS
  16071. # A language-specific compiler.
  16072. CC=$lt_compiler_GCJ
  16073. # Is the compiler the GNU C compiler?
  16074. with_gcc=$GCC_GCJ
  16075. # An ERE matcher.
  16076. EGREP=$lt_EGREP
  16077. # The linker used to build libraries.
  16078. LD=$lt_LD_GCJ
  16079. # Whether we need hard or soft links.
  16080. LN_S=$lt_LN_S
  16081. # A BSD-compatible nm program.
  16082. NM=$lt_NM
  16083. # A symbol stripping program
  16084. STRIP=$lt_STRIP
  16085. # Used to examine libraries when file_magic_cmd begins "file"
  16086. MAGIC_CMD=$MAGIC_CMD
  16087. # Used on cygwin: DLL creation program.
  16088. DLLTOOL="$DLLTOOL"
  16089. # Used on cygwin: object dumper.
  16090. OBJDUMP="$OBJDUMP"
  16091. # Used on cygwin: assembler.
  16092. AS="$AS"
  16093. # The name of the directory that contains temporary libtool files.
  16094. objdir=$objdir
  16095. # How to create reloadable object files.
  16096. reload_flag=$lt_reload_flag
  16097. reload_cmds=$lt_reload_cmds
  16098. # How to pass a linker flag through the compiler.
  16099. wl=$lt_lt_prog_compiler_wl_GCJ
  16100. # Object file suffix (normally "o").
  16101. objext="$ac_objext"
  16102. # Old archive suffix (normally "a").
  16103. libext="$libext"
  16104. # Shared library suffix (normally ".so").
  16105. shrext_cmds='$shrext_cmds'
  16106. # Executable file suffix (normally "").
  16107. exeext="$exeext"
  16108. # Additional compiler flags for building library objects.
  16109. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16110. pic_mode=$pic_mode
  16111. # What is the maximum length of a command?
  16112. max_cmd_len=$lt_cv_sys_max_cmd_len
  16113. # Does compiler simultaneously support -c and -o options?
  16114. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16115. # Must we lock files when doing compilation?
  16116. need_locks=$lt_need_locks
  16117. # Do we need the lib prefix for modules?
  16118. need_lib_prefix=$need_lib_prefix
  16119. # Do we need a version for libraries?
  16120. need_version=$need_version
  16121. # Whether dlopen is supported.
  16122. dlopen_support=$enable_dlopen
  16123. # Whether dlopen of programs is supported.
  16124. dlopen_self=$enable_dlopen_self
  16125. # Whether dlopen of statically linked programs is supported.
  16126. dlopen_self_static=$enable_dlopen_self_static
  16127. # Compiler flag to prevent dynamic linking.
  16128. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16129. # Compiler flag to turn off builtin functions.
  16130. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16131. # Compiler flag to allow reflexive dlopens.
  16132. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16133. # Compiler flag to generate shared objects directly from archives.
  16134. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16135. # Compiler flag to generate thread-safe objects.
  16136. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16137. # Library versioning type.
  16138. version_type=$version_type
  16139. # Format of library name prefix.
  16140. libname_spec=$lt_libname_spec
  16141. # List of archive names. First name is the real one, the rest are links.
  16142. # The last name is the one that the linker finds with -lNAME.
  16143. library_names_spec=$lt_library_names_spec
  16144. # The coded name of the library, if different from the real name.
  16145. soname_spec=$lt_soname_spec
  16146. # Commands used to build and install an old-style archive.
  16147. RANLIB=$lt_RANLIB
  16148. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16149. old_postinstall_cmds=$lt_old_postinstall_cmds
  16150. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16151. # Create an old-style archive from a shared archive.
  16152. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16153. # Create a temporary old-style archive to link instead of a shared archive.
  16154. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16155. # Commands used to build and install a shared archive.
  16156. archive_cmds=$lt_archive_cmds_GCJ
  16157. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16158. postinstall_cmds=$lt_postinstall_cmds
  16159. postuninstall_cmds=$lt_postuninstall_cmds
  16160. # Commands used to build a loadable module (assumed same as above if empty)
  16161. module_cmds=$lt_module_cmds_GCJ
  16162. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16163. # Commands to strip libraries.
  16164. old_striplib=$lt_old_striplib
  16165. striplib=$lt_striplib
  16166. # Dependencies to place before the objects being linked to create a
  16167. # shared library.
  16168. predep_objects=$lt_predep_objects_GCJ
  16169. # Dependencies to place after the objects being linked to create a
  16170. # shared library.
  16171. postdep_objects=$lt_postdep_objects_GCJ
  16172. # Dependencies to place before the objects being linked to create a
  16173. # shared library.
  16174. predeps=$lt_predeps_GCJ
  16175. # Dependencies to place after the objects being linked to create a
  16176. # shared library.
  16177. postdeps=$lt_postdeps_GCJ
  16178. # The library search path used internally by the compiler when linking
  16179. # a shared library.
  16180. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16181. # Method to check whether dependent libraries are shared objects.
  16182. deplibs_check_method=$lt_deplibs_check_method
  16183. # Command to use when deplibs_check_method == file_magic.
  16184. file_magic_cmd=$lt_file_magic_cmd
  16185. # Flag that allows shared libraries with undefined symbols to be built.
  16186. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16187. # Flag that forces no undefined symbols.
  16188. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16189. # Commands used to finish a libtool library installation in a directory.
  16190. finish_cmds=$lt_finish_cmds
  16191. # Same as above, but a single script fragment to be evaled but not shown.
  16192. finish_eval=$lt_finish_eval
  16193. # Take the output of nm and produce a listing of raw symbols and C names.
  16194. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16195. # Transform the output of nm in a proper C declaration
  16196. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16197. # Transform the output of nm in a C name address pair
  16198. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16199. # This is the shared library runtime path variable.
  16200. runpath_var=$runpath_var
  16201. # This is the shared library path variable.
  16202. shlibpath_var=$shlibpath_var
  16203. # Is shlibpath searched before the hard-coded library search path?
  16204. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16205. # How to hardcode a shared library path into an executable.
  16206. hardcode_action=$hardcode_action_GCJ
  16207. # Whether we should hardcode library paths into libraries.
  16208. hardcode_into_libs=$hardcode_into_libs
  16209. # Flag to hardcode \$libdir into a binary during linking.
  16210. # This must work even if \$libdir does not exist.
  16211. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16212. # If ld is used when linking, flag to hardcode \$libdir into
  16213. # a binary during linking. This must work even if \$libdir does
  16214. # not exist.
  16215. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16216. # Whether we need a single -rpath flag with a separated argument.
  16217. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16218. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16219. # resulting binary.
  16220. hardcode_direct=$hardcode_direct_GCJ
  16221. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16222. # resulting binary.
  16223. hardcode_minus_L=$hardcode_minus_L_GCJ
  16224. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16225. # the resulting binary.
  16226. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16227. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16228. # and all subsequent libraries and executables linked against it.
  16229. hardcode_automatic=$hardcode_automatic_GCJ
  16230. # Variables whose values should be saved in libtool wrapper scripts and
  16231. # restored at relink time.
  16232. variables_saved_for_relink="$variables_saved_for_relink"
  16233. # Whether libtool must link a program against all its dependency libraries.
  16234. link_all_deplibs=$link_all_deplibs_GCJ
  16235. # Compile-time system search path for libraries
  16236. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16237. # Run-time system search path for libraries
  16238. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16239. # Fix the shell variable \$srcfile for the compiler.
  16240. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16241. # Set to yes if exported symbols are required.
  16242. always_export_symbols=$always_export_symbols_GCJ
  16243. # The commands to list exported symbols.
  16244. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16245. # The commands to extract the exported symbol list from a shared archive.
  16246. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16247. # Symbols that should not be listed in the preloaded symbols.
  16248. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16249. # Symbols that must always be exported.
  16250. include_expsyms=$lt_include_expsyms_GCJ
  16251. # ### END LIBTOOL TAG CONFIG: $tagname
  16252. __EOF__
  16253. else
  16254. # If there is no Makefile yet, we rely on a make rule to execute
  16255. # `config.status --recheck' to rerun these tests and create the
  16256. # libtool script then.
  16257. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16258. if test -f "$ltmain_in"; then
  16259. test -f Makefile && make "$ltmain"
  16260. fi
  16261. fi
  16262. ac_ext=c
  16263. ac_cpp='$CPP $CPPFLAGS'
  16264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16267. CC="$lt_save_CC"
  16268. else
  16269. tagname=""
  16270. fi
  16271. ;;
  16272. RC)
  16273. # Source file extension for RC test sources.
  16274. ac_ext=rc
  16275. # Object file extension for compiled RC test sources.
  16276. objext=o
  16277. objext_RC=$objext
  16278. # Code to be used in simple compile tests
  16279. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16280. # Code to be used in simple link tests
  16281. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16282. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16283. # If no C compiler was specified, use CC.
  16284. LTCC=${LTCC-"$CC"}
  16285. # If no C compiler flags were specified, use CFLAGS.
  16286. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16287. # Allow CC to be a program name with arguments.
  16288. compiler=$CC
  16289. # save warnings/boilerplate of simple test code
  16290. ac_outfile=conftest.$ac_objext
  16291. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16292. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16293. _lt_compiler_boilerplate=`cat conftest.err`
  16294. $rm conftest*
  16295. ac_outfile=conftest.$ac_objext
  16296. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16297. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16298. _lt_linker_boilerplate=`cat conftest.err`
  16299. $rm conftest*
  16300. # Allow CC to be a program name with arguments.
  16301. lt_save_CC="$CC"
  16302. CC=${RC-"windres"}
  16303. compiler=$CC
  16304. compiler_RC=$CC
  16305. for cc_temp in $compiler""; do
  16306. case $cc_temp in
  16307. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16308. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16309. \-*) ;;
  16310. *) break;;
  16311. esac
  16312. done
  16313. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16314. lt_cv_prog_compiler_c_o_RC=yes
  16315. # The else clause should only fire when bootstrapping the
  16316. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16317. # with your package, and you will get complaints that there are
  16318. # no rules to generate ltmain.sh.
  16319. if test -f "$ltmain"; then
  16320. # See if we are running on zsh, and set the options which allow our commands through
  16321. # without removal of \ escapes.
  16322. if test -n "${ZSH_VERSION+set}" ; then
  16323. setopt NO_GLOB_SUBST
  16324. fi
  16325. # Now quote all the things that may contain metacharacters while being
  16326. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16327. # variables and quote the copies for generation of the libtool script.
  16328. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16329. SED SHELL STRIP \
  16330. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16331. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16332. deplibs_check_method reload_flag reload_cmds need_locks \
  16333. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16334. lt_cv_sys_global_symbol_to_c_name_address \
  16335. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16336. old_postinstall_cmds old_postuninstall_cmds \
  16337. compiler_RC \
  16338. CC_RC \
  16339. LD_RC \
  16340. lt_prog_compiler_wl_RC \
  16341. lt_prog_compiler_pic_RC \
  16342. lt_prog_compiler_static_RC \
  16343. lt_prog_compiler_no_builtin_flag_RC \
  16344. export_dynamic_flag_spec_RC \
  16345. thread_safe_flag_spec_RC \
  16346. whole_archive_flag_spec_RC \
  16347. enable_shared_with_static_runtimes_RC \
  16348. old_archive_cmds_RC \
  16349. old_archive_from_new_cmds_RC \
  16350. predep_objects_RC \
  16351. postdep_objects_RC \
  16352. predeps_RC \
  16353. postdeps_RC \
  16354. compiler_lib_search_path_RC \
  16355. archive_cmds_RC \
  16356. archive_expsym_cmds_RC \
  16357. postinstall_cmds_RC \
  16358. postuninstall_cmds_RC \
  16359. old_archive_from_expsyms_cmds_RC \
  16360. allow_undefined_flag_RC \
  16361. no_undefined_flag_RC \
  16362. export_symbols_cmds_RC \
  16363. hardcode_libdir_flag_spec_RC \
  16364. hardcode_libdir_flag_spec_ld_RC \
  16365. hardcode_libdir_separator_RC \
  16366. hardcode_automatic_RC \
  16367. module_cmds_RC \
  16368. module_expsym_cmds_RC \
  16369. lt_cv_prog_compiler_c_o_RC \
  16370. exclude_expsyms_RC \
  16371. include_expsyms_RC; do
  16372. case $var in
  16373. old_archive_cmds_RC | \
  16374. old_archive_from_new_cmds_RC | \
  16375. archive_cmds_RC | \
  16376. archive_expsym_cmds_RC | \
  16377. module_cmds_RC | \
  16378. module_expsym_cmds_RC | \
  16379. old_archive_from_expsyms_cmds_RC | \
  16380. export_symbols_cmds_RC | \
  16381. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16382. postinstall_cmds | postuninstall_cmds | \
  16383. old_postinstall_cmds | old_postuninstall_cmds | \
  16384. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16385. # Double-quote double-evaled strings.
  16386. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16387. ;;
  16388. *)
  16389. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16390. ;;
  16391. esac
  16392. done
  16393. case $lt_echo in
  16394. *'\$0 --fallback-echo"')
  16395. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16396. ;;
  16397. esac
  16398. cfgfile="$ofile"
  16399. cat <<__EOF__ >> "$cfgfile"
  16400. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16401. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16402. # Shell to use when invoking shell scripts.
  16403. SHELL=$lt_SHELL
  16404. # Whether or not to build shared libraries.
  16405. build_libtool_libs=$enable_shared
  16406. # Whether or not to build static libraries.
  16407. build_old_libs=$enable_static
  16408. # Whether or not to add -lc for building shared libraries.
  16409. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16410. # Whether or not to disallow shared libs when runtime libs are static
  16411. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16412. # Whether or not to optimize for fast installation.
  16413. fast_install=$enable_fast_install
  16414. # The host system.
  16415. host_alias=$host_alias
  16416. host=$host
  16417. host_os=$host_os
  16418. # The build system.
  16419. build_alias=$build_alias
  16420. build=$build
  16421. build_os=$build_os
  16422. # An echo program that does not interpret backslashes.
  16423. echo=$lt_echo
  16424. # The archiver.
  16425. AR=$lt_AR
  16426. AR_FLAGS=$lt_AR_FLAGS
  16427. # A C compiler.
  16428. LTCC=$lt_LTCC
  16429. # LTCC compiler flags.
  16430. LTCFLAGS=$lt_LTCFLAGS
  16431. # A language-specific compiler.
  16432. CC=$lt_compiler_RC
  16433. # Is the compiler the GNU C compiler?
  16434. with_gcc=$GCC_RC
  16435. # An ERE matcher.
  16436. EGREP=$lt_EGREP
  16437. # The linker used to build libraries.
  16438. LD=$lt_LD_RC
  16439. # Whether we need hard or soft links.
  16440. LN_S=$lt_LN_S
  16441. # A BSD-compatible nm program.
  16442. NM=$lt_NM
  16443. # A symbol stripping program
  16444. STRIP=$lt_STRIP
  16445. # Used to examine libraries when file_magic_cmd begins "file"
  16446. MAGIC_CMD=$MAGIC_CMD
  16447. # Used on cygwin: DLL creation program.
  16448. DLLTOOL="$DLLTOOL"
  16449. # Used on cygwin: object dumper.
  16450. OBJDUMP="$OBJDUMP"
  16451. # Used on cygwin: assembler.
  16452. AS="$AS"
  16453. # The name of the directory that contains temporary libtool files.
  16454. objdir=$objdir
  16455. # How to create reloadable object files.
  16456. reload_flag=$lt_reload_flag
  16457. reload_cmds=$lt_reload_cmds
  16458. # How to pass a linker flag through the compiler.
  16459. wl=$lt_lt_prog_compiler_wl_RC
  16460. # Object file suffix (normally "o").
  16461. objext="$ac_objext"
  16462. # Old archive suffix (normally "a").
  16463. libext="$libext"
  16464. # Shared library suffix (normally ".so").
  16465. shrext_cmds='$shrext_cmds'
  16466. # Executable file suffix (normally "").
  16467. exeext="$exeext"
  16468. # Additional compiler flags for building library objects.
  16469. pic_flag=$lt_lt_prog_compiler_pic_RC
  16470. pic_mode=$pic_mode
  16471. # What is the maximum length of a command?
  16472. max_cmd_len=$lt_cv_sys_max_cmd_len
  16473. # Does compiler simultaneously support -c and -o options?
  16474. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16475. # Must we lock files when doing compilation?
  16476. need_locks=$lt_need_locks
  16477. # Do we need the lib prefix for modules?
  16478. need_lib_prefix=$need_lib_prefix
  16479. # Do we need a version for libraries?
  16480. need_version=$need_version
  16481. # Whether dlopen is supported.
  16482. dlopen_support=$enable_dlopen
  16483. # Whether dlopen of programs is supported.
  16484. dlopen_self=$enable_dlopen_self
  16485. # Whether dlopen of statically linked programs is supported.
  16486. dlopen_self_static=$enable_dlopen_self_static
  16487. # Compiler flag to prevent dynamic linking.
  16488. link_static_flag=$lt_lt_prog_compiler_static_RC
  16489. # Compiler flag to turn off builtin functions.
  16490. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16491. # Compiler flag to allow reflexive dlopens.
  16492. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16493. # Compiler flag to generate shared objects directly from archives.
  16494. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16495. # Compiler flag to generate thread-safe objects.
  16496. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16497. # Library versioning type.
  16498. version_type=$version_type
  16499. # Format of library name prefix.
  16500. libname_spec=$lt_libname_spec
  16501. # List of archive names. First name is the real one, the rest are links.
  16502. # The last name is the one that the linker finds with -lNAME.
  16503. library_names_spec=$lt_library_names_spec
  16504. # The coded name of the library, if different from the real name.
  16505. soname_spec=$lt_soname_spec
  16506. # Commands used to build and install an old-style archive.
  16507. RANLIB=$lt_RANLIB
  16508. old_archive_cmds=$lt_old_archive_cmds_RC
  16509. old_postinstall_cmds=$lt_old_postinstall_cmds
  16510. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16511. # Create an old-style archive from a shared archive.
  16512. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16513. # Create a temporary old-style archive to link instead of a shared archive.
  16514. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16515. # Commands used to build and install a shared archive.
  16516. archive_cmds=$lt_archive_cmds_RC
  16517. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16518. postinstall_cmds=$lt_postinstall_cmds
  16519. postuninstall_cmds=$lt_postuninstall_cmds
  16520. # Commands used to build a loadable module (assumed same as above if empty)
  16521. module_cmds=$lt_module_cmds_RC
  16522. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16523. # Commands to strip libraries.
  16524. old_striplib=$lt_old_striplib
  16525. striplib=$lt_striplib
  16526. # Dependencies to place before the objects being linked to create a
  16527. # shared library.
  16528. predep_objects=$lt_predep_objects_RC
  16529. # Dependencies to place after the objects being linked to create a
  16530. # shared library.
  16531. postdep_objects=$lt_postdep_objects_RC
  16532. # Dependencies to place before the objects being linked to create a
  16533. # shared library.
  16534. predeps=$lt_predeps_RC
  16535. # Dependencies to place after the objects being linked to create a
  16536. # shared library.
  16537. postdeps=$lt_postdeps_RC
  16538. # The library search path used internally by the compiler when linking
  16539. # a shared library.
  16540. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16541. # Method to check whether dependent libraries are shared objects.
  16542. deplibs_check_method=$lt_deplibs_check_method
  16543. # Command to use when deplibs_check_method == file_magic.
  16544. file_magic_cmd=$lt_file_magic_cmd
  16545. # Flag that allows shared libraries with undefined symbols to be built.
  16546. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16547. # Flag that forces no undefined symbols.
  16548. no_undefined_flag=$lt_no_undefined_flag_RC
  16549. # Commands used to finish a libtool library installation in a directory.
  16550. finish_cmds=$lt_finish_cmds
  16551. # Same as above, but a single script fragment to be evaled but not shown.
  16552. finish_eval=$lt_finish_eval
  16553. # Take the output of nm and produce a listing of raw symbols and C names.
  16554. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16555. # Transform the output of nm in a proper C declaration
  16556. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16557. # Transform the output of nm in a C name address pair
  16558. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16559. # This is the shared library runtime path variable.
  16560. runpath_var=$runpath_var
  16561. # This is the shared library path variable.
  16562. shlibpath_var=$shlibpath_var
  16563. # Is shlibpath searched before the hard-coded library search path?
  16564. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16565. # How to hardcode a shared library path into an executable.
  16566. hardcode_action=$hardcode_action_RC
  16567. # Whether we should hardcode library paths into libraries.
  16568. hardcode_into_libs=$hardcode_into_libs
  16569. # Flag to hardcode \$libdir into a binary during linking.
  16570. # This must work even if \$libdir does not exist.
  16571. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16572. # If ld is used when linking, flag to hardcode \$libdir into
  16573. # a binary during linking. This must work even if \$libdir does
  16574. # not exist.
  16575. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16576. # Whether we need a single -rpath flag with a separated argument.
  16577. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16578. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16579. # resulting binary.
  16580. hardcode_direct=$hardcode_direct_RC
  16581. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16582. # resulting binary.
  16583. hardcode_minus_L=$hardcode_minus_L_RC
  16584. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16585. # the resulting binary.
  16586. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16587. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16588. # and all subsequent libraries and executables linked against it.
  16589. hardcode_automatic=$hardcode_automatic_RC
  16590. # Variables whose values should be saved in libtool wrapper scripts and
  16591. # restored at relink time.
  16592. variables_saved_for_relink="$variables_saved_for_relink"
  16593. # Whether libtool must link a program against all its dependency libraries.
  16594. link_all_deplibs=$link_all_deplibs_RC
  16595. # Compile-time system search path for libraries
  16596. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16597. # Run-time system search path for libraries
  16598. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16599. # Fix the shell variable \$srcfile for the compiler.
  16600. fix_srcfile_path="$fix_srcfile_path_RC"
  16601. # Set to yes if exported symbols are required.
  16602. always_export_symbols=$always_export_symbols_RC
  16603. # The commands to list exported symbols.
  16604. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16605. # The commands to extract the exported symbol list from a shared archive.
  16606. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16607. # Symbols that should not be listed in the preloaded symbols.
  16608. exclude_expsyms=$lt_exclude_expsyms_RC
  16609. # Symbols that must always be exported.
  16610. include_expsyms=$lt_include_expsyms_RC
  16611. # ### END LIBTOOL TAG CONFIG: $tagname
  16612. __EOF__
  16613. else
  16614. # If there is no Makefile yet, we rely on a make rule to execute
  16615. # `config.status --recheck' to rerun these tests and create the
  16616. # libtool script then.
  16617. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16618. if test -f "$ltmain_in"; then
  16619. test -f Makefile && make "$ltmain"
  16620. fi
  16621. fi
  16622. ac_ext=c
  16623. ac_cpp='$CPP $CPPFLAGS'
  16624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16627. CC="$lt_save_CC"
  16628. ;;
  16629. *)
  16630. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16631. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16632. { (exit 1); exit 1; }; }
  16633. ;;
  16634. esac
  16635. # Append the new tag name to the list of available tags.
  16636. if test -n "$tagname" ; then
  16637. available_tags="$available_tags $tagname"
  16638. fi
  16639. fi
  16640. done
  16641. IFS="$lt_save_ifs"
  16642. # Now substitute the updated list of available tags.
  16643. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16644. mv "${ofile}T" "$ofile"
  16645. chmod +x "$ofile"
  16646. else
  16647. rm -f "${ofile}T"
  16648. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16649. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16650. { (exit 1); exit 1; }; }
  16651. fi
  16652. fi
  16653. # This can be used to rebuild libtool when needed
  16654. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16655. # Always use our own libtool.
  16656. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16657. # Prevent multiple expansion
  16658. # Checks for header files.
  16659. ac_header_dirent=no
  16660. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16661. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16662. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16663. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16664. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16665. echo $ECHO_N "(cached) $ECHO_C" >&6
  16666. else
  16667. cat >conftest.$ac_ext <<_ACEOF
  16668. /* confdefs.h. */
  16669. _ACEOF
  16670. cat confdefs.h >>conftest.$ac_ext
  16671. cat >>conftest.$ac_ext <<_ACEOF
  16672. /* end confdefs.h. */
  16673. #include <sys/types.h>
  16674. #include <$ac_hdr>
  16675. int
  16676. main ()
  16677. {
  16678. if ((DIR *) 0)
  16679. return 0;
  16680. ;
  16681. return 0;
  16682. }
  16683. _ACEOF
  16684. rm -f conftest.$ac_objext
  16685. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16686. (eval $ac_compile) 2>conftest.er1
  16687. ac_status=$?
  16688. grep -v '^ *+' conftest.er1 >conftest.err
  16689. rm -f conftest.er1
  16690. cat conftest.err >&5
  16691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16692. (exit $ac_status); } &&
  16693. { ac_try='test -z "$ac_c_werror_flag"
  16694. || test ! -s conftest.err'
  16695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16696. (eval $ac_try) 2>&5
  16697. ac_status=$?
  16698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16699. (exit $ac_status); }; } &&
  16700. { ac_try='test -s conftest.$ac_objext'
  16701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16702. (eval $ac_try) 2>&5
  16703. ac_status=$?
  16704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16705. (exit $ac_status); }; }; then
  16706. eval "$as_ac_Header=yes"
  16707. else
  16708. echo "$as_me: failed program was:" >&5
  16709. sed 's/^/| /' conftest.$ac_ext >&5
  16710. eval "$as_ac_Header=no"
  16711. fi
  16712. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16713. fi
  16714. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16715. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16716. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16717. cat >>confdefs.h <<_ACEOF
  16718. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16719. _ACEOF
  16720. ac_header_dirent=$ac_hdr; break
  16721. fi
  16722. done
  16723. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16724. if test $ac_header_dirent = dirent.h; then
  16725. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16726. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16727. if test "${ac_cv_search_opendir+set}" = set; then
  16728. echo $ECHO_N "(cached) $ECHO_C" >&6
  16729. else
  16730. ac_func_search_save_LIBS=$LIBS
  16731. ac_cv_search_opendir=no
  16732. cat >conftest.$ac_ext <<_ACEOF
  16733. /* confdefs.h. */
  16734. _ACEOF
  16735. cat confdefs.h >>conftest.$ac_ext
  16736. cat >>conftest.$ac_ext <<_ACEOF
  16737. /* end confdefs.h. */
  16738. /* Override any gcc2 internal prototype to avoid an error. */
  16739. #ifdef __cplusplus
  16740. extern "C"
  16741. #endif
  16742. /* We use char because int might match the return type of a gcc2
  16743. builtin and then its argument prototype would still apply. */
  16744. char opendir ();
  16745. int
  16746. main ()
  16747. {
  16748. opendir ();
  16749. ;
  16750. return 0;
  16751. }
  16752. _ACEOF
  16753. rm -f conftest.$ac_objext conftest$ac_exeext
  16754. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16755. (eval $ac_link) 2>conftest.er1
  16756. ac_status=$?
  16757. grep -v '^ *+' conftest.er1 >conftest.err
  16758. rm -f conftest.er1
  16759. cat conftest.err >&5
  16760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16761. (exit $ac_status); } &&
  16762. { ac_try='test -z "$ac_c_werror_flag"
  16763. || test ! -s conftest.err'
  16764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16765. (eval $ac_try) 2>&5
  16766. ac_status=$?
  16767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16768. (exit $ac_status); }; } &&
  16769. { ac_try='test -s conftest$ac_exeext'
  16770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16771. (eval $ac_try) 2>&5
  16772. ac_status=$?
  16773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16774. (exit $ac_status); }; }; then
  16775. ac_cv_search_opendir="none required"
  16776. else
  16777. echo "$as_me: failed program was:" >&5
  16778. sed 's/^/| /' conftest.$ac_ext >&5
  16779. fi
  16780. rm -f conftest.err conftest.$ac_objext \
  16781. conftest$ac_exeext conftest.$ac_ext
  16782. if test "$ac_cv_search_opendir" = no; then
  16783. for ac_lib in dir; do
  16784. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16785. cat >conftest.$ac_ext <<_ACEOF
  16786. /* confdefs.h. */
  16787. _ACEOF
  16788. cat confdefs.h >>conftest.$ac_ext
  16789. cat >>conftest.$ac_ext <<_ACEOF
  16790. /* end confdefs.h. */
  16791. /* Override any gcc2 internal prototype to avoid an error. */
  16792. #ifdef __cplusplus
  16793. extern "C"
  16794. #endif
  16795. /* We use char because int might match the return type of a gcc2
  16796. builtin and then its argument prototype would still apply. */
  16797. char opendir ();
  16798. int
  16799. main ()
  16800. {
  16801. opendir ();
  16802. ;
  16803. return 0;
  16804. }
  16805. _ACEOF
  16806. rm -f conftest.$ac_objext conftest$ac_exeext
  16807. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16808. (eval $ac_link) 2>conftest.er1
  16809. ac_status=$?
  16810. grep -v '^ *+' conftest.er1 >conftest.err
  16811. rm -f conftest.er1
  16812. cat conftest.err >&5
  16813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16814. (exit $ac_status); } &&
  16815. { ac_try='test -z "$ac_c_werror_flag"
  16816. || test ! -s conftest.err'
  16817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16818. (eval $ac_try) 2>&5
  16819. ac_status=$?
  16820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16821. (exit $ac_status); }; } &&
  16822. { ac_try='test -s conftest$ac_exeext'
  16823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16824. (eval $ac_try) 2>&5
  16825. ac_status=$?
  16826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16827. (exit $ac_status); }; }; then
  16828. ac_cv_search_opendir="-l$ac_lib"
  16829. break
  16830. else
  16831. echo "$as_me: failed program was:" >&5
  16832. sed 's/^/| /' conftest.$ac_ext >&5
  16833. fi
  16834. rm -f conftest.err conftest.$ac_objext \
  16835. conftest$ac_exeext conftest.$ac_ext
  16836. done
  16837. fi
  16838. LIBS=$ac_func_search_save_LIBS
  16839. fi
  16840. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16841. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16842. if test "$ac_cv_search_opendir" != no; then
  16843. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16844. fi
  16845. else
  16846. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16847. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16848. if test "${ac_cv_search_opendir+set}" = set; then
  16849. echo $ECHO_N "(cached) $ECHO_C" >&6
  16850. else
  16851. ac_func_search_save_LIBS=$LIBS
  16852. ac_cv_search_opendir=no
  16853. cat >conftest.$ac_ext <<_ACEOF
  16854. /* confdefs.h. */
  16855. _ACEOF
  16856. cat confdefs.h >>conftest.$ac_ext
  16857. cat >>conftest.$ac_ext <<_ACEOF
  16858. /* end confdefs.h. */
  16859. /* Override any gcc2 internal prototype to avoid an error. */
  16860. #ifdef __cplusplus
  16861. extern "C"
  16862. #endif
  16863. /* We use char because int might match the return type of a gcc2
  16864. builtin and then its argument prototype would still apply. */
  16865. char opendir ();
  16866. int
  16867. main ()
  16868. {
  16869. opendir ();
  16870. ;
  16871. return 0;
  16872. }
  16873. _ACEOF
  16874. rm -f conftest.$ac_objext conftest$ac_exeext
  16875. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16876. (eval $ac_link) 2>conftest.er1
  16877. ac_status=$?
  16878. grep -v '^ *+' conftest.er1 >conftest.err
  16879. rm -f conftest.er1
  16880. cat conftest.err >&5
  16881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16882. (exit $ac_status); } &&
  16883. { ac_try='test -z "$ac_c_werror_flag"
  16884. || test ! -s conftest.err'
  16885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16886. (eval $ac_try) 2>&5
  16887. ac_status=$?
  16888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16889. (exit $ac_status); }; } &&
  16890. { ac_try='test -s conftest$ac_exeext'
  16891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16892. (eval $ac_try) 2>&5
  16893. ac_status=$?
  16894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16895. (exit $ac_status); }; }; then
  16896. ac_cv_search_opendir="none required"
  16897. else
  16898. echo "$as_me: failed program was:" >&5
  16899. sed 's/^/| /' conftest.$ac_ext >&5
  16900. fi
  16901. rm -f conftest.err conftest.$ac_objext \
  16902. conftest$ac_exeext conftest.$ac_ext
  16903. if test "$ac_cv_search_opendir" = no; then
  16904. for ac_lib in x; do
  16905. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16906. cat >conftest.$ac_ext <<_ACEOF
  16907. /* confdefs.h. */
  16908. _ACEOF
  16909. cat confdefs.h >>conftest.$ac_ext
  16910. cat >>conftest.$ac_ext <<_ACEOF
  16911. /* end confdefs.h. */
  16912. /* Override any gcc2 internal prototype to avoid an error. */
  16913. #ifdef __cplusplus
  16914. extern "C"
  16915. #endif
  16916. /* We use char because int might match the return type of a gcc2
  16917. builtin and then its argument prototype would still apply. */
  16918. char opendir ();
  16919. int
  16920. main ()
  16921. {
  16922. opendir ();
  16923. ;
  16924. return 0;
  16925. }
  16926. _ACEOF
  16927. rm -f conftest.$ac_objext conftest$ac_exeext
  16928. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16929. (eval $ac_link) 2>conftest.er1
  16930. ac_status=$?
  16931. grep -v '^ *+' conftest.er1 >conftest.err
  16932. rm -f conftest.er1
  16933. cat conftest.err >&5
  16934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16935. (exit $ac_status); } &&
  16936. { ac_try='test -z "$ac_c_werror_flag"
  16937. || test ! -s conftest.err'
  16938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16939. (eval $ac_try) 2>&5
  16940. ac_status=$?
  16941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16942. (exit $ac_status); }; } &&
  16943. { ac_try='test -s conftest$ac_exeext'
  16944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16945. (eval $ac_try) 2>&5
  16946. ac_status=$?
  16947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16948. (exit $ac_status); }; }; then
  16949. ac_cv_search_opendir="-l$ac_lib"
  16950. break
  16951. else
  16952. echo "$as_me: failed program was:" >&5
  16953. sed 's/^/| /' conftest.$ac_ext >&5
  16954. fi
  16955. rm -f conftest.err conftest.$ac_objext \
  16956. conftest$ac_exeext conftest.$ac_ext
  16957. done
  16958. fi
  16959. LIBS=$ac_func_search_save_LIBS
  16960. fi
  16961. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16962. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16963. if test "$ac_cv_search_opendir" != no; then
  16964. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16965. fi
  16966. fi
  16967. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  16968. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  16969. if test "${ac_cv_header_stdc+set}" = set; then
  16970. echo $ECHO_N "(cached) $ECHO_C" >&6
  16971. else
  16972. cat >conftest.$ac_ext <<_ACEOF
  16973. /* confdefs.h. */
  16974. _ACEOF
  16975. cat confdefs.h >>conftest.$ac_ext
  16976. cat >>conftest.$ac_ext <<_ACEOF
  16977. /* end confdefs.h. */
  16978. #include <stdlib.h>
  16979. #include <stdarg.h>
  16980. #include <string.h>
  16981. #include <float.h>
  16982. int
  16983. main ()
  16984. {
  16985. ;
  16986. return 0;
  16987. }
  16988. _ACEOF
  16989. rm -f conftest.$ac_objext
  16990. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16991. (eval $ac_compile) 2>conftest.er1
  16992. ac_status=$?
  16993. grep -v '^ *+' conftest.er1 >conftest.err
  16994. rm -f conftest.er1
  16995. cat conftest.err >&5
  16996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16997. (exit $ac_status); } &&
  16998. { ac_try='test -z "$ac_c_werror_flag"
  16999. || test ! -s conftest.err'
  17000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17001. (eval $ac_try) 2>&5
  17002. ac_status=$?
  17003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17004. (exit $ac_status); }; } &&
  17005. { ac_try='test -s conftest.$ac_objext'
  17006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17007. (eval $ac_try) 2>&5
  17008. ac_status=$?
  17009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17010. (exit $ac_status); }; }; then
  17011. ac_cv_header_stdc=yes
  17012. else
  17013. echo "$as_me: failed program was:" >&5
  17014. sed 's/^/| /' conftest.$ac_ext >&5
  17015. ac_cv_header_stdc=no
  17016. fi
  17017. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17018. if test $ac_cv_header_stdc = yes; then
  17019. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17020. cat >conftest.$ac_ext <<_ACEOF
  17021. /* confdefs.h. */
  17022. _ACEOF
  17023. cat confdefs.h >>conftest.$ac_ext
  17024. cat >>conftest.$ac_ext <<_ACEOF
  17025. /* end confdefs.h. */
  17026. #include <string.h>
  17027. _ACEOF
  17028. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17029. $EGREP "memchr" >/dev/null 2>&1; then
  17030. :
  17031. else
  17032. ac_cv_header_stdc=no
  17033. fi
  17034. rm -f conftest*
  17035. fi
  17036. if test $ac_cv_header_stdc = yes; then
  17037. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17038. cat >conftest.$ac_ext <<_ACEOF
  17039. /* confdefs.h. */
  17040. _ACEOF
  17041. cat confdefs.h >>conftest.$ac_ext
  17042. cat >>conftest.$ac_ext <<_ACEOF
  17043. /* end confdefs.h. */
  17044. #include <stdlib.h>
  17045. _ACEOF
  17046. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17047. $EGREP "free" >/dev/null 2>&1; then
  17048. :
  17049. else
  17050. ac_cv_header_stdc=no
  17051. fi
  17052. rm -f conftest*
  17053. fi
  17054. if test $ac_cv_header_stdc = yes; then
  17055. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17056. if test "$cross_compiling" = yes; then
  17057. :
  17058. else
  17059. cat >conftest.$ac_ext <<_ACEOF
  17060. /* confdefs.h. */
  17061. _ACEOF
  17062. cat confdefs.h >>conftest.$ac_ext
  17063. cat >>conftest.$ac_ext <<_ACEOF
  17064. /* end confdefs.h. */
  17065. #include <ctype.h>
  17066. #if ((' ' & 0x0FF) == 0x020)
  17067. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17068. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17069. #else
  17070. # define ISLOWER(c) \
  17071. (('a' <= (c) && (c) <= 'i') \
  17072. || ('j' <= (c) && (c) <= 'r') \
  17073. || ('s' <= (c) && (c) <= 'z'))
  17074. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17075. #endif
  17076. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17077. int
  17078. main ()
  17079. {
  17080. int i;
  17081. for (i = 0; i < 256; i++)
  17082. if (XOR (islower (i), ISLOWER (i))
  17083. || toupper (i) != TOUPPER (i))
  17084. exit(2);
  17085. exit (0);
  17086. }
  17087. _ACEOF
  17088. rm -f conftest$ac_exeext
  17089. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17090. (eval $ac_link) 2>&5
  17091. ac_status=$?
  17092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17093. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17095. (eval $ac_try) 2>&5
  17096. ac_status=$?
  17097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17098. (exit $ac_status); }; }; then
  17099. :
  17100. else
  17101. echo "$as_me: program exited with status $ac_status" >&5
  17102. echo "$as_me: failed program was:" >&5
  17103. sed 's/^/| /' conftest.$ac_ext >&5
  17104. ( exit $ac_status )
  17105. ac_cv_header_stdc=no
  17106. fi
  17107. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17108. fi
  17109. fi
  17110. fi
  17111. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17112. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17113. if test $ac_cv_header_stdc = yes; then
  17114. cat >>confdefs.h <<\_ACEOF
  17115. #define STDC_HEADERS 1
  17116. _ACEOF
  17117. fi
  17118. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17119. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17120. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17121. echo $ECHO_N "(cached) $ECHO_C" >&6
  17122. else
  17123. cat >conftest.$ac_ext <<_ACEOF
  17124. /* confdefs.h. */
  17125. _ACEOF
  17126. cat confdefs.h >>conftest.$ac_ext
  17127. cat >>conftest.$ac_ext <<_ACEOF
  17128. /* end confdefs.h. */
  17129. #include <sys/types.h>
  17130. #include <sys/wait.h>
  17131. #ifndef WEXITSTATUS
  17132. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17133. #endif
  17134. #ifndef WIFEXITED
  17135. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17136. #endif
  17137. int
  17138. main ()
  17139. {
  17140. int s;
  17141. wait (&s);
  17142. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17143. ;
  17144. return 0;
  17145. }
  17146. _ACEOF
  17147. rm -f conftest.$ac_objext
  17148. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17149. (eval $ac_compile) 2>conftest.er1
  17150. ac_status=$?
  17151. grep -v '^ *+' conftest.er1 >conftest.err
  17152. rm -f conftest.er1
  17153. cat conftest.err >&5
  17154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17155. (exit $ac_status); } &&
  17156. { ac_try='test -z "$ac_c_werror_flag"
  17157. || test ! -s conftest.err'
  17158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17159. (eval $ac_try) 2>&5
  17160. ac_status=$?
  17161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17162. (exit $ac_status); }; } &&
  17163. { ac_try='test -s conftest.$ac_objext'
  17164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17165. (eval $ac_try) 2>&5
  17166. ac_status=$?
  17167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17168. (exit $ac_status); }; }; then
  17169. ac_cv_header_sys_wait_h=yes
  17170. else
  17171. echo "$as_me: failed program was:" >&5
  17172. sed 's/^/| /' conftest.$ac_ext >&5
  17173. ac_cv_header_sys_wait_h=no
  17174. fi
  17175. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17176. fi
  17177. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17178. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17179. if test $ac_cv_header_sys_wait_h = yes; then
  17180. cat >>confdefs.h <<\_ACEOF
  17181. #define HAVE_SYS_WAIT_H 1
  17182. _ACEOF
  17183. fi
  17184. 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
  17185. do
  17186. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17187. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17188. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17189. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17190. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17191. echo $ECHO_N "(cached) $ECHO_C" >&6
  17192. fi
  17193. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17194. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17195. else
  17196. # Is the header compilable?
  17197. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17198. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17199. cat >conftest.$ac_ext <<_ACEOF
  17200. /* confdefs.h. */
  17201. _ACEOF
  17202. cat confdefs.h >>conftest.$ac_ext
  17203. cat >>conftest.$ac_ext <<_ACEOF
  17204. /* end confdefs.h. */
  17205. $ac_includes_default
  17206. #include <$ac_header>
  17207. _ACEOF
  17208. rm -f conftest.$ac_objext
  17209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17210. (eval $ac_compile) 2>conftest.er1
  17211. ac_status=$?
  17212. grep -v '^ *+' conftest.er1 >conftest.err
  17213. rm -f conftest.er1
  17214. cat conftest.err >&5
  17215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17216. (exit $ac_status); } &&
  17217. { ac_try='test -z "$ac_c_werror_flag"
  17218. || test ! -s conftest.err'
  17219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17220. (eval $ac_try) 2>&5
  17221. ac_status=$?
  17222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17223. (exit $ac_status); }; } &&
  17224. { ac_try='test -s conftest.$ac_objext'
  17225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17226. (eval $ac_try) 2>&5
  17227. ac_status=$?
  17228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17229. (exit $ac_status); }; }; then
  17230. ac_header_compiler=yes
  17231. else
  17232. echo "$as_me: failed program was:" >&5
  17233. sed 's/^/| /' conftest.$ac_ext >&5
  17234. ac_header_compiler=no
  17235. fi
  17236. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17237. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17238. echo "${ECHO_T}$ac_header_compiler" >&6
  17239. # Is the header present?
  17240. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17241. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17242. cat >conftest.$ac_ext <<_ACEOF
  17243. /* confdefs.h. */
  17244. _ACEOF
  17245. cat confdefs.h >>conftest.$ac_ext
  17246. cat >>conftest.$ac_ext <<_ACEOF
  17247. /* end confdefs.h. */
  17248. #include <$ac_header>
  17249. _ACEOF
  17250. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17251. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17252. ac_status=$?
  17253. grep -v '^ *+' conftest.er1 >conftest.err
  17254. rm -f conftest.er1
  17255. cat conftest.err >&5
  17256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17257. (exit $ac_status); } >/dev/null; then
  17258. if test -s conftest.err; then
  17259. ac_cpp_err=$ac_c_preproc_warn_flag
  17260. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17261. else
  17262. ac_cpp_err=
  17263. fi
  17264. else
  17265. ac_cpp_err=yes
  17266. fi
  17267. if test -z "$ac_cpp_err"; then
  17268. ac_header_preproc=yes
  17269. else
  17270. echo "$as_me: failed program was:" >&5
  17271. sed 's/^/| /' conftest.$ac_ext >&5
  17272. ac_header_preproc=no
  17273. fi
  17274. rm -f conftest.err conftest.$ac_ext
  17275. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17276. echo "${ECHO_T}$ac_header_preproc" >&6
  17277. # So? What about this header?
  17278. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17279. yes:no: )
  17280. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17281. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17282. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17283. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17284. ac_header_preproc=yes
  17285. ;;
  17286. no:yes:* )
  17287. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17288. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17289. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17290. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17291. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17292. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17293. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17294. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17295. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17296. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17297. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17298. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17299. (
  17300. cat <<\_ASBOX
  17301. ## ------------------------------------------ ##
  17302. ## Report this to http://bugzilla.redhat.com/ ##
  17303. ## ------------------------------------------ ##
  17304. _ASBOX
  17305. ) |
  17306. sed "s/^/$as_me: WARNING: /" >&2
  17307. ;;
  17308. esac
  17309. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17310. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17311. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17312. echo $ECHO_N "(cached) $ECHO_C" >&6
  17313. else
  17314. eval "$as_ac_Header=\$ac_header_preproc"
  17315. fi
  17316. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17317. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17318. fi
  17319. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17320. cat >>confdefs.h <<_ACEOF
  17321. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17322. _ACEOF
  17323. fi
  17324. done
  17325. # Checks for typedefs, structures, and compiler characteristics.
  17326. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17327. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17328. if test "${ac_cv_header_stat_broken+set}" = set; then
  17329. echo $ECHO_N "(cached) $ECHO_C" >&6
  17330. else
  17331. cat >conftest.$ac_ext <<_ACEOF
  17332. /* confdefs.h. */
  17333. _ACEOF
  17334. cat confdefs.h >>conftest.$ac_ext
  17335. cat >>conftest.$ac_ext <<_ACEOF
  17336. /* end confdefs.h. */
  17337. #include <sys/types.h>
  17338. #include <sys/stat.h>
  17339. #if defined(S_ISBLK) && defined(S_IFDIR)
  17340. # if S_ISBLK (S_IFDIR)
  17341. You lose.
  17342. # endif
  17343. #endif
  17344. #if defined(S_ISBLK) && defined(S_IFCHR)
  17345. # if S_ISBLK (S_IFCHR)
  17346. You lose.
  17347. # endif
  17348. #endif
  17349. #if defined(S_ISLNK) && defined(S_IFREG)
  17350. # if S_ISLNK (S_IFREG)
  17351. You lose.
  17352. # endif
  17353. #endif
  17354. #if defined(S_ISSOCK) && defined(S_IFREG)
  17355. # if S_ISSOCK (S_IFREG)
  17356. You lose.
  17357. # endif
  17358. #endif
  17359. _ACEOF
  17360. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17361. $EGREP "You lose" >/dev/null 2>&1; then
  17362. ac_cv_header_stat_broken=yes
  17363. else
  17364. ac_cv_header_stat_broken=no
  17365. fi
  17366. rm -f conftest*
  17367. fi
  17368. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17369. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17370. if test $ac_cv_header_stat_broken = yes; then
  17371. cat >>confdefs.h <<\_ACEOF
  17372. #define STAT_MACROS_BROKEN 1
  17373. _ACEOF
  17374. fi
  17375. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17376. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17377. if test "${ac_cv_c_const+set}" = set; then
  17378. echo $ECHO_N "(cached) $ECHO_C" >&6
  17379. else
  17380. cat >conftest.$ac_ext <<_ACEOF
  17381. /* confdefs.h. */
  17382. _ACEOF
  17383. cat confdefs.h >>conftest.$ac_ext
  17384. cat >>conftest.$ac_ext <<_ACEOF
  17385. /* end confdefs.h. */
  17386. int
  17387. main ()
  17388. {
  17389. /* FIXME: Include the comments suggested by Paul. */
  17390. #ifndef __cplusplus
  17391. /* Ultrix mips cc rejects this. */
  17392. typedef int charset[2];
  17393. const charset x;
  17394. /* SunOS 4.1.1 cc rejects this. */
  17395. char const *const *ccp;
  17396. char **p;
  17397. /* NEC SVR4.0.2 mips cc rejects this. */
  17398. struct point {int x, y;};
  17399. static struct point const zero = {0,0};
  17400. /* AIX XL C 1.02.0.0 rejects this.
  17401. It does not let you subtract one const X* pointer from another in
  17402. an arm of an if-expression whose if-part is not a constant
  17403. expression */
  17404. const char *g = "string";
  17405. ccp = &g + (g ? g-g : 0);
  17406. /* HPUX 7.0 cc rejects these. */
  17407. ++ccp;
  17408. p = (char**) ccp;
  17409. ccp = (char const *const *) p;
  17410. { /* SCO 3.2v4 cc rejects this. */
  17411. char *t;
  17412. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17413. *t++ = 0;
  17414. }
  17415. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17416. int x[] = {25, 17};
  17417. const int *foo = &x[0];
  17418. ++foo;
  17419. }
  17420. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17421. typedef const int *iptr;
  17422. iptr p = 0;
  17423. ++p;
  17424. }
  17425. { /* AIX XL C 1.02.0.0 rejects this saying
  17426. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17427. struct s { int j; const int *ap[3]; };
  17428. struct s *b; b->j = 5;
  17429. }
  17430. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17431. const int foo = 10;
  17432. }
  17433. #endif
  17434. ;
  17435. return 0;
  17436. }
  17437. _ACEOF
  17438. rm -f conftest.$ac_objext
  17439. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17440. (eval $ac_compile) 2>conftest.er1
  17441. ac_status=$?
  17442. grep -v '^ *+' conftest.er1 >conftest.err
  17443. rm -f conftest.er1
  17444. cat conftest.err >&5
  17445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17446. (exit $ac_status); } &&
  17447. { ac_try='test -z "$ac_c_werror_flag"
  17448. || test ! -s conftest.err'
  17449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17450. (eval $ac_try) 2>&5
  17451. ac_status=$?
  17452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17453. (exit $ac_status); }; } &&
  17454. { ac_try='test -s conftest.$ac_objext'
  17455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17456. (eval $ac_try) 2>&5
  17457. ac_status=$?
  17458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17459. (exit $ac_status); }; }; then
  17460. ac_cv_c_const=yes
  17461. else
  17462. echo "$as_me: failed program was:" >&5
  17463. sed 's/^/| /' conftest.$ac_ext >&5
  17464. ac_cv_c_const=no
  17465. fi
  17466. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17467. fi
  17468. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17469. echo "${ECHO_T}$ac_cv_c_const" >&6
  17470. if test $ac_cv_c_const = no; then
  17471. cat >>confdefs.h <<\_ACEOF
  17472. #define const
  17473. _ACEOF
  17474. fi
  17475. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17476. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17477. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17478. echo $ECHO_N "(cached) $ECHO_C" >&6
  17479. else
  17480. cat >conftest.$ac_ext <<_ACEOF
  17481. /* confdefs.h. */
  17482. _ACEOF
  17483. cat confdefs.h >>conftest.$ac_ext
  17484. cat >>conftest.$ac_ext <<_ACEOF
  17485. /* end confdefs.h. */
  17486. #include <stdbool.h>
  17487. #ifndef bool
  17488. # error bool is not defined
  17489. #endif
  17490. #ifndef false
  17491. # error false is not defined
  17492. #endif
  17493. #if false
  17494. # error false is not 0
  17495. #endif
  17496. #ifndef true
  17497. # error true is not defined
  17498. #endif
  17499. #if true != 1
  17500. # error true is not 1
  17501. #endif
  17502. #ifndef __bool_true_false_are_defined
  17503. # error __bool_true_false_are_defined is not defined
  17504. #endif
  17505. struct s { _Bool s: 1; _Bool t; } s;
  17506. char a[true == 1 ? 1 : -1];
  17507. char b[false == 0 ? 1 : -1];
  17508. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17509. char d[(bool) -0.5 == true ? 1 : -1];
  17510. bool e = &s;
  17511. char f[(_Bool) -0.0 == false ? 1 : -1];
  17512. char g[true];
  17513. char h[sizeof (_Bool)];
  17514. char i[sizeof s.t];
  17515. int
  17516. main ()
  17517. {
  17518. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17519. ;
  17520. return 0;
  17521. }
  17522. _ACEOF
  17523. rm -f conftest.$ac_objext
  17524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17525. (eval $ac_compile) 2>conftest.er1
  17526. ac_status=$?
  17527. grep -v '^ *+' conftest.er1 >conftest.err
  17528. rm -f conftest.er1
  17529. cat conftest.err >&5
  17530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17531. (exit $ac_status); } &&
  17532. { ac_try='test -z "$ac_c_werror_flag"
  17533. || test ! -s conftest.err'
  17534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17535. (eval $ac_try) 2>&5
  17536. ac_status=$?
  17537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17538. (exit $ac_status); }; } &&
  17539. { ac_try='test -s conftest.$ac_objext'
  17540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17541. (eval $ac_try) 2>&5
  17542. ac_status=$?
  17543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17544. (exit $ac_status); }; }; then
  17545. ac_cv_header_stdbool_h=yes
  17546. else
  17547. echo "$as_me: failed program was:" >&5
  17548. sed 's/^/| /' conftest.$ac_ext >&5
  17549. ac_cv_header_stdbool_h=no
  17550. fi
  17551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17552. fi
  17553. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17554. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17555. echo "$as_me:$LINENO: checking for _Bool" >&5
  17556. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17557. if test "${ac_cv_type__Bool+set}" = set; then
  17558. echo $ECHO_N "(cached) $ECHO_C" >&6
  17559. else
  17560. cat >conftest.$ac_ext <<_ACEOF
  17561. /* confdefs.h. */
  17562. _ACEOF
  17563. cat confdefs.h >>conftest.$ac_ext
  17564. cat >>conftest.$ac_ext <<_ACEOF
  17565. /* end confdefs.h. */
  17566. $ac_includes_default
  17567. int
  17568. main ()
  17569. {
  17570. if ((_Bool *) 0)
  17571. return 0;
  17572. if (sizeof (_Bool))
  17573. return 0;
  17574. ;
  17575. return 0;
  17576. }
  17577. _ACEOF
  17578. rm -f conftest.$ac_objext
  17579. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17580. (eval $ac_compile) 2>conftest.er1
  17581. ac_status=$?
  17582. grep -v '^ *+' conftest.er1 >conftest.err
  17583. rm -f conftest.er1
  17584. cat conftest.err >&5
  17585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17586. (exit $ac_status); } &&
  17587. { ac_try='test -z "$ac_c_werror_flag"
  17588. || test ! -s conftest.err'
  17589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17590. (eval $ac_try) 2>&5
  17591. ac_status=$?
  17592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17593. (exit $ac_status); }; } &&
  17594. { ac_try='test -s conftest.$ac_objext'
  17595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17596. (eval $ac_try) 2>&5
  17597. ac_status=$?
  17598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17599. (exit $ac_status); }; }; then
  17600. ac_cv_type__Bool=yes
  17601. else
  17602. echo "$as_me: failed program was:" >&5
  17603. sed 's/^/| /' conftest.$ac_ext >&5
  17604. ac_cv_type__Bool=no
  17605. fi
  17606. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17607. fi
  17608. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17609. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17610. if test $ac_cv_type__Bool = yes; then
  17611. cat >>confdefs.h <<_ACEOF
  17612. #define HAVE__BOOL 1
  17613. _ACEOF
  17614. fi
  17615. if test $ac_cv_header_stdbool_h = yes; then
  17616. cat >>confdefs.h <<\_ACEOF
  17617. #define HAVE_STDBOOL_H 1
  17618. _ACEOF
  17619. fi
  17620. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17621. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17622. if test "${ac_cv_type_uid_t+set}" = set; then
  17623. echo $ECHO_N "(cached) $ECHO_C" >&6
  17624. else
  17625. cat >conftest.$ac_ext <<_ACEOF
  17626. /* confdefs.h. */
  17627. _ACEOF
  17628. cat confdefs.h >>conftest.$ac_ext
  17629. cat >>conftest.$ac_ext <<_ACEOF
  17630. /* end confdefs.h. */
  17631. #include <sys/types.h>
  17632. _ACEOF
  17633. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17634. $EGREP "uid_t" >/dev/null 2>&1; then
  17635. ac_cv_type_uid_t=yes
  17636. else
  17637. ac_cv_type_uid_t=no
  17638. fi
  17639. rm -f conftest*
  17640. fi
  17641. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17642. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17643. if test $ac_cv_type_uid_t = no; then
  17644. cat >>confdefs.h <<\_ACEOF
  17645. #define uid_t int
  17646. _ACEOF
  17647. cat >>confdefs.h <<\_ACEOF
  17648. #define gid_t int
  17649. _ACEOF
  17650. fi
  17651. echo "$as_me:$LINENO: checking for pid_t" >&5
  17652. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17653. if test "${ac_cv_type_pid_t+set}" = set; then
  17654. echo $ECHO_N "(cached) $ECHO_C" >&6
  17655. else
  17656. cat >conftest.$ac_ext <<_ACEOF
  17657. /* confdefs.h. */
  17658. _ACEOF
  17659. cat confdefs.h >>conftest.$ac_ext
  17660. cat >>conftest.$ac_ext <<_ACEOF
  17661. /* end confdefs.h. */
  17662. $ac_includes_default
  17663. int
  17664. main ()
  17665. {
  17666. if ((pid_t *) 0)
  17667. return 0;
  17668. if (sizeof (pid_t))
  17669. return 0;
  17670. ;
  17671. return 0;
  17672. }
  17673. _ACEOF
  17674. rm -f conftest.$ac_objext
  17675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17676. (eval $ac_compile) 2>conftest.er1
  17677. ac_status=$?
  17678. grep -v '^ *+' conftest.er1 >conftest.err
  17679. rm -f conftest.er1
  17680. cat conftest.err >&5
  17681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17682. (exit $ac_status); } &&
  17683. { ac_try='test -z "$ac_c_werror_flag"
  17684. || test ! -s conftest.err'
  17685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17686. (eval $ac_try) 2>&5
  17687. ac_status=$?
  17688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17689. (exit $ac_status); }; } &&
  17690. { ac_try='test -s conftest.$ac_objext'
  17691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17692. (eval $ac_try) 2>&5
  17693. ac_status=$?
  17694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17695. (exit $ac_status); }; }; then
  17696. ac_cv_type_pid_t=yes
  17697. else
  17698. echo "$as_me: failed program was:" >&5
  17699. sed 's/^/| /' conftest.$ac_ext >&5
  17700. ac_cv_type_pid_t=no
  17701. fi
  17702. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17703. fi
  17704. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17705. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17706. if test $ac_cv_type_pid_t = yes; then
  17707. :
  17708. else
  17709. cat >>confdefs.h <<_ACEOF
  17710. #define pid_t int
  17711. _ACEOF
  17712. fi
  17713. echo "$as_me:$LINENO: checking for size_t" >&5
  17714. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17715. if test "${ac_cv_type_size_t+set}" = set; then
  17716. echo $ECHO_N "(cached) $ECHO_C" >&6
  17717. else
  17718. cat >conftest.$ac_ext <<_ACEOF
  17719. /* confdefs.h. */
  17720. _ACEOF
  17721. cat confdefs.h >>conftest.$ac_ext
  17722. cat >>conftest.$ac_ext <<_ACEOF
  17723. /* end confdefs.h. */
  17724. $ac_includes_default
  17725. int
  17726. main ()
  17727. {
  17728. if ((size_t *) 0)
  17729. return 0;
  17730. if (sizeof (size_t))
  17731. return 0;
  17732. ;
  17733. return 0;
  17734. }
  17735. _ACEOF
  17736. rm -f conftest.$ac_objext
  17737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17738. (eval $ac_compile) 2>conftest.er1
  17739. ac_status=$?
  17740. grep -v '^ *+' conftest.er1 >conftest.err
  17741. rm -f conftest.er1
  17742. cat conftest.err >&5
  17743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17744. (exit $ac_status); } &&
  17745. { ac_try='test -z "$ac_c_werror_flag"
  17746. || test ! -s conftest.err'
  17747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17748. (eval $ac_try) 2>&5
  17749. ac_status=$?
  17750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17751. (exit $ac_status); }; } &&
  17752. { ac_try='test -s conftest.$ac_objext'
  17753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17754. (eval $ac_try) 2>&5
  17755. ac_status=$?
  17756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17757. (exit $ac_status); }; }; then
  17758. ac_cv_type_size_t=yes
  17759. else
  17760. echo "$as_me: failed program was:" >&5
  17761. sed 's/^/| /' conftest.$ac_ext >&5
  17762. ac_cv_type_size_t=no
  17763. fi
  17764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17765. fi
  17766. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17767. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17768. if test $ac_cv_type_size_t = yes; then
  17769. :
  17770. else
  17771. cat >>confdefs.h <<_ACEOF
  17772. #define size_t unsigned
  17773. _ACEOF
  17774. fi
  17775. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17776. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17777. if test "${ac_cv_header_time+set}" = set; then
  17778. echo $ECHO_N "(cached) $ECHO_C" >&6
  17779. else
  17780. cat >conftest.$ac_ext <<_ACEOF
  17781. /* confdefs.h. */
  17782. _ACEOF
  17783. cat confdefs.h >>conftest.$ac_ext
  17784. cat >>conftest.$ac_ext <<_ACEOF
  17785. /* end confdefs.h. */
  17786. #include <sys/types.h>
  17787. #include <sys/time.h>
  17788. #include <time.h>
  17789. int
  17790. main ()
  17791. {
  17792. if ((struct tm *) 0)
  17793. return 0;
  17794. ;
  17795. return 0;
  17796. }
  17797. _ACEOF
  17798. rm -f conftest.$ac_objext
  17799. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17800. (eval $ac_compile) 2>conftest.er1
  17801. ac_status=$?
  17802. grep -v '^ *+' conftest.er1 >conftest.err
  17803. rm -f conftest.er1
  17804. cat conftest.err >&5
  17805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17806. (exit $ac_status); } &&
  17807. { ac_try='test -z "$ac_c_werror_flag"
  17808. || test ! -s conftest.err'
  17809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17810. (eval $ac_try) 2>&5
  17811. ac_status=$?
  17812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17813. (exit $ac_status); }; } &&
  17814. { ac_try='test -s conftest.$ac_objext'
  17815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17816. (eval $ac_try) 2>&5
  17817. ac_status=$?
  17818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17819. (exit $ac_status); }; }; then
  17820. ac_cv_header_time=yes
  17821. else
  17822. echo "$as_me: failed program was:" >&5
  17823. sed 's/^/| /' conftest.$ac_ext >&5
  17824. ac_cv_header_time=no
  17825. fi
  17826. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17827. fi
  17828. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17829. echo "${ECHO_T}$ac_cv_header_time" >&6
  17830. if test $ac_cv_header_time = yes; then
  17831. cat >>confdefs.h <<\_ACEOF
  17832. #define TIME_WITH_SYS_TIME 1
  17833. _ACEOF
  17834. fi
  17835. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17836. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17837. if test "${ac_cv_struct_tm+set}" = set; then
  17838. echo $ECHO_N "(cached) $ECHO_C" >&6
  17839. else
  17840. cat >conftest.$ac_ext <<_ACEOF
  17841. /* confdefs.h. */
  17842. _ACEOF
  17843. cat confdefs.h >>conftest.$ac_ext
  17844. cat >>conftest.$ac_ext <<_ACEOF
  17845. /* end confdefs.h. */
  17846. #include <sys/types.h>
  17847. #include <time.h>
  17848. int
  17849. main ()
  17850. {
  17851. struct tm *tp; tp->tm_sec;
  17852. ;
  17853. return 0;
  17854. }
  17855. _ACEOF
  17856. rm -f conftest.$ac_objext
  17857. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17858. (eval $ac_compile) 2>conftest.er1
  17859. ac_status=$?
  17860. grep -v '^ *+' conftest.er1 >conftest.err
  17861. rm -f conftest.er1
  17862. cat conftest.err >&5
  17863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17864. (exit $ac_status); } &&
  17865. { ac_try='test -z "$ac_c_werror_flag"
  17866. || test ! -s conftest.err'
  17867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17868. (eval $ac_try) 2>&5
  17869. ac_status=$?
  17870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17871. (exit $ac_status); }; } &&
  17872. { ac_try='test -s conftest.$ac_objext'
  17873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17874. (eval $ac_try) 2>&5
  17875. ac_status=$?
  17876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17877. (exit $ac_status); }; }; then
  17878. ac_cv_struct_tm=time.h
  17879. else
  17880. echo "$as_me: failed program was:" >&5
  17881. sed 's/^/| /' conftest.$ac_ext >&5
  17882. ac_cv_struct_tm=sys/time.h
  17883. fi
  17884. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17885. fi
  17886. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  17887. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  17888. if test $ac_cv_struct_tm = sys/time.h; then
  17889. cat >>confdefs.h <<\_ACEOF
  17890. #define TM_IN_SYS_TIME 1
  17891. _ACEOF
  17892. fi
  17893. # Checks for library functions.
  17894. for ac_header in unistd.h
  17895. do
  17896. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17897. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17898. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17899. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17900. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17901. echo $ECHO_N "(cached) $ECHO_C" >&6
  17902. fi
  17903. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17904. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17905. else
  17906. # Is the header compilable?
  17907. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17908. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17909. cat >conftest.$ac_ext <<_ACEOF
  17910. /* confdefs.h. */
  17911. _ACEOF
  17912. cat confdefs.h >>conftest.$ac_ext
  17913. cat >>conftest.$ac_ext <<_ACEOF
  17914. /* end confdefs.h. */
  17915. $ac_includes_default
  17916. #include <$ac_header>
  17917. _ACEOF
  17918. rm -f conftest.$ac_objext
  17919. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17920. (eval $ac_compile) 2>conftest.er1
  17921. ac_status=$?
  17922. grep -v '^ *+' conftest.er1 >conftest.err
  17923. rm -f conftest.er1
  17924. cat conftest.err >&5
  17925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17926. (exit $ac_status); } &&
  17927. { ac_try='test -z "$ac_c_werror_flag"
  17928. || test ! -s conftest.err'
  17929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17930. (eval $ac_try) 2>&5
  17931. ac_status=$?
  17932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17933. (exit $ac_status); }; } &&
  17934. { ac_try='test -s conftest.$ac_objext'
  17935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17936. (eval $ac_try) 2>&5
  17937. ac_status=$?
  17938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17939. (exit $ac_status); }; }; then
  17940. ac_header_compiler=yes
  17941. else
  17942. echo "$as_me: failed program was:" >&5
  17943. sed 's/^/| /' conftest.$ac_ext >&5
  17944. ac_header_compiler=no
  17945. fi
  17946. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17947. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17948. echo "${ECHO_T}$ac_header_compiler" >&6
  17949. # Is the header present?
  17950. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17951. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17952. cat >conftest.$ac_ext <<_ACEOF
  17953. /* confdefs.h. */
  17954. _ACEOF
  17955. cat confdefs.h >>conftest.$ac_ext
  17956. cat >>conftest.$ac_ext <<_ACEOF
  17957. /* end confdefs.h. */
  17958. #include <$ac_header>
  17959. _ACEOF
  17960. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17961. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17962. ac_status=$?
  17963. grep -v '^ *+' conftest.er1 >conftest.err
  17964. rm -f conftest.er1
  17965. cat conftest.err >&5
  17966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17967. (exit $ac_status); } >/dev/null; then
  17968. if test -s conftest.err; then
  17969. ac_cpp_err=$ac_c_preproc_warn_flag
  17970. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17971. else
  17972. ac_cpp_err=
  17973. fi
  17974. else
  17975. ac_cpp_err=yes
  17976. fi
  17977. if test -z "$ac_cpp_err"; then
  17978. ac_header_preproc=yes
  17979. else
  17980. echo "$as_me: failed program was:" >&5
  17981. sed 's/^/| /' conftest.$ac_ext >&5
  17982. ac_header_preproc=no
  17983. fi
  17984. rm -f conftest.err conftest.$ac_ext
  17985. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17986. echo "${ECHO_T}$ac_header_preproc" >&6
  17987. # So? What about this header?
  17988. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17989. yes:no: )
  17990. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17991. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17992. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17993. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17994. ac_header_preproc=yes
  17995. ;;
  17996. no:yes:* )
  17997. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17998. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17999. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18000. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18001. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18002. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18003. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18004. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18005. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18006. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18007. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18008. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18009. (
  18010. cat <<\_ASBOX
  18011. ## ------------------------------------------ ##
  18012. ## Report this to http://bugzilla.redhat.com/ ##
  18013. ## ------------------------------------------ ##
  18014. _ASBOX
  18015. ) |
  18016. sed "s/^/$as_me: WARNING: /" >&2
  18017. ;;
  18018. esac
  18019. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18020. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18021. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18022. echo $ECHO_N "(cached) $ECHO_C" >&6
  18023. else
  18024. eval "$as_ac_Header=\$ac_header_preproc"
  18025. fi
  18026. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18027. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18028. fi
  18029. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18030. cat >>confdefs.h <<_ACEOF
  18031. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18032. _ACEOF
  18033. fi
  18034. done
  18035. echo "$as_me:$LINENO: checking for working chown" >&5
  18036. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18037. if test "${ac_cv_func_chown_works+set}" = set; then
  18038. echo $ECHO_N "(cached) $ECHO_C" >&6
  18039. else
  18040. if test "$cross_compiling" = yes; then
  18041. ac_cv_func_chown_works=no
  18042. else
  18043. cat >conftest.$ac_ext <<_ACEOF
  18044. /* confdefs.h. */
  18045. _ACEOF
  18046. cat confdefs.h >>conftest.$ac_ext
  18047. cat >>conftest.$ac_ext <<_ACEOF
  18048. /* end confdefs.h. */
  18049. $ac_includes_default
  18050. #include <fcntl.h>
  18051. int
  18052. main ()
  18053. {
  18054. char *f = "conftest.chown";
  18055. struct stat before, after;
  18056. if (creat (f, 0600) < 0)
  18057. exit (1);
  18058. if (stat (f, &before) < 0)
  18059. exit (1);
  18060. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18061. exit (1);
  18062. if (stat (f, &after) < 0)
  18063. exit (1);
  18064. exit ((before.st_uid == after.st_uid
  18065. && before.st_gid == after.st_gid) ? 0 : 1);
  18066. ;
  18067. return 0;
  18068. }
  18069. _ACEOF
  18070. rm -f conftest$ac_exeext
  18071. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18072. (eval $ac_link) 2>&5
  18073. ac_status=$?
  18074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18075. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18077. (eval $ac_try) 2>&5
  18078. ac_status=$?
  18079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18080. (exit $ac_status); }; }; then
  18081. ac_cv_func_chown_works=yes
  18082. else
  18083. echo "$as_me: program exited with status $ac_status" >&5
  18084. echo "$as_me: failed program was:" >&5
  18085. sed 's/^/| /' conftest.$ac_ext >&5
  18086. ( exit $ac_status )
  18087. ac_cv_func_chown_works=no
  18088. fi
  18089. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18090. fi
  18091. rm -f conftest.chown
  18092. fi
  18093. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18094. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18095. if test $ac_cv_func_chown_works = yes; then
  18096. cat >>confdefs.h <<\_ACEOF
  18097. #define HAVE_CHOWN 1
  18098. _ACEOF
  18099. fi
  18100. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18101. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18102. if test "${ac_cv_func_closedir_void+set}" = set; then
  18103. echo $ECHO_N "(cached) $ECHO_C" >&6
  18104. else
  18105. if test "$cross_compiling" = yes; then
  18106. ac_cv_func_closedir_void=yes
  18107. else
  18108. cat >conftest.$ac_ext <<_ACEOF
  18109. /* confdefs.h. */
  18110. _ACEOF
  18111. cat confdefs.h >>conftest.$ac_ext
  18112. cat >>conftest.$ac_ext <<_ACEOF
  18113. /* end confdefs.h. */
  18114. $ac_includes_default
  18115. #include <$ac_header_dirent>
  18116. #ifndef __cplusplus
  18117. int closedir ();
  18118. #endif
  18119. int
  18120. main ()
  18121. {
  18122. exit (closedir (opendir (".")) != 0);
  18123. ;
  18124. return 0;
  18125. }
  18126. _ACEOF
  18127. rm -f conftest$ac_exeext
  18128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18129. (eval $ac_link) 2>&5
  18130. ac_status=$?
  18131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18132. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18134. (eval $ac_try) 2>&5
  18135. ac_status=$?
  18136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18137. (exit $ac_status); }; }; then
  18138. ac_cv_func_closedir_void=no
  18139. else
  18140. echo "$as_me: program exited with status $ac_status" >&5
  18141. echo "$as_me: failed program was:" >&5
  18142. sed 's/^/| /' conftest.$ac_ext >&5
  18143. ( exit $ac_status )
  18144. ac_cv_func_closedir_void=yes
  18145. fi
  18146. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18147. fi
  18148. fi
  18149. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18150. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18151. if test $ac_cv_func_closedir_void = yes; then
  18152. cat >>confdefs.h <<\_ACEOF
  18153. #define CLOSEDIR_VOID 1
  18154. _ACEOF
  18155. fi
  18156. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18157. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18158. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18159. echo $ECHO_N "(cached) $ECHO_C" >&6
  18160. else
  18161. cat >conftest.$ac_ext <<_ACEOF
  18162. /* confdefs.h. */
  18163. _ACEOF
  18164. cat confdefs.h >>conftest.$ac_ext
  18165. cat >>conftest.$ac_ext <<_ACEOF
  18166. /* end confdefs.h. */
  18167. $ac_includes_default
  18168. int
  18169. main ()
  18170. {
  18171. error_at_line (0, 0, "", 0, "");
  18172. ;
  18173. return 0;
  18174. }
  18175. _ACEOF
  18176. rm -f conftest.$ac_objext conftest$ac_exeext
  18177. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18178. (eval $ac_link) 2>conftest.er1
  18179. ac_status=$?
  18180. grep -v '^ *+' conftest.er1 >conftest.err
  18181. rm -f conftest.er1
  18182. cat conftest.err >&5
  18183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18184. (exit $ac_status); } &&
  18185. { ac_try='test -z "$ac_c_werror_flag"
  18186. || test ! -s conftest.err'
  18187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18188. (eval $ac_try) 2>&5
  18189. ac_status=$?
  18190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18191. (exit $ac_status); }; } &&
  18192. { ac_try='test -s conftest$ac_exeext'
  18193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18194. (eval $ac_try) 2>&5
  18195. ac_status=$?
  18196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18197. (exit $ac_status); }; }; then
  18198. ac_cv_lib_error_at_line=yes
  18199. else
  18200. echo "$as_me: failed program was:" >&5
  18201. sed 's/^/| /' conftest.$ac_ext >&5
  18202. ac_cv_lib_error_at_line=no
  18203. fi
  18204. rm -f conftest.err conftest.$ac_objext \
  18205. conftest$ac_exeext conftest.$ac_ext
  18206. fi
  18207. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18208. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18209. if test $ac_cv_lib_error_at_line = no; then
  18210. case $LIBOBJS in
  18211. "error.$ac_objext" | \
  18212. *" error.$ac_objext" | \
  18213. "error.$ac_objext "* | \
  18214. *" error.$ac_objext "* ) ;;
  18215. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18216. esac
  18217. fi
  18218. for ac_header in unistd.h vfork.h
  18219. do
  18220. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18221. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18222. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18223. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18224. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18225. echo $ECHO_N "(cached) $ECHO_C" >&6
  18226. fi
  18227. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18228. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18229. else
  18230. # Is the header compilable?
  18231. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18232. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18233. cat >conftest.$ac_ext <<_ACEOF
  18234. /* confdefs.h. */
  18235. _ACEOF
  18236. cat confdefs.h >>conftest.$ac_ext
  18237. cat >>conftest.$ac_ext <<_ACEOF
  18238. /* end confdefs.h. */
  18239. $ac_includes_default
  18240. #include <$ac_header>
  18241. _ACEOF
  18242. rm -f conftest.$ac_objext
  18243. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18244. (eval $ac_compile) 2>conftest.er1
  18245. ac_status=$?
  18246. grep -v '^ *+' conftest.er1 >conftest.err
  18247. rm -f conftest.er1
  18248. cat conftest.err >&5
  18249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18250. (exit $ac_status); } &&
  18251. { ac_try='test -z "$ac_c_werror_flag"
  18252. || test ! -s conftest.err'
  18253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18254. (eval $ac_try) 2>&5
  18255. ac_status=$?
  18256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18257. (exit $ac_status); }; } &&
  18258. { ac_try='test -s conftest.$ac_objext'
  18259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18260. (eval $ac_try) 2>&5
  18261. ac_status=$?
  18262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18263. (exit $ac_status); }; }; then
  18264. ac_header_compiler=yes
  18265. else
  18266. echo "$as_me: failed program was:" >&5
  18267. sed 's/^/| /' conftest.$ac_ext >&5
  18268. ac_header_compiler=no
  18269. fi
  18270. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18271. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18272. echo "${ECHO_T}$ac_header_compiler" >&6
  18273. # Is the header present?
  18274. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18275. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18276. cat >conftest.$ac_ext <<_ACEOF
  18277. /* confdefs.h. */
  18278. _ACEOF
  18279. cat confdefs.h >>conftest.$ac_ext
  18280. cat >>conftest.$ac_ext <<_ACEOF
  18281. /* end confdefs.h. */
  18282. #include <$ac_header>
  18283. _ACEOF
  18284. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18285. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18286. ac_status=$?
  18287. grep -v '^ *+' conftest.er1 >conftest.err
  18288. rm -f conftest.er1
  18289. cat conftest.err >&5
  18290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18291. (exit $ac_status); } >/dev/null; then
  18292. if test -s conftest.err; then
  18293. ac_cpp_err=$ac_c_preproc_warn_flag
  18294. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18295. else
  18296. ac_cpp_err=
  18297. fi
  18298. else
  18299. ac_cpp_err=yes
  18300. fi
  18301. if test -z "$ac_cpp_err"; then
  18302. ac_header_preproc=yes
  18303. else
  18304. echo "$as_me: failed program was:" >&5
  18305. sed 's/^/| /' conftest.$ac_ext >&5
  18306. ac_header_preproc=no
  18307. fi
  18308. rm -f conftest.err conftest.$ac_ext
  18309. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18310. echo "${ECHO_T}$ac_header_preproc" >&6
  18311. # So? What about this header?
  18312. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18313. yes:no: )
  18314. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18315. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18316. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18317. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18318. ac_header_preproc=yes
  18319. ;;
  18320. no:yes:* )
  18321. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18322. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18323. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18324. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18325. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18326. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18327. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18328. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18329. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18330. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18331. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18332. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18333. (
  18334. cat <<\_ASBOX
  18335. ## ------------------------------------------ ##
  18336. ## Report this to http://bugzilla.redhat.com/ ##
  18337. ## ------------------------------------------ ##
  18338. _ASBOX
  18339. ) |
  18340. sed "s/^/$as_me: WARNING: /" >&2
  18341. ;;
  18342. esac
  18343. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18344. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18345. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18346. echo $ECHO_N "(cached) $ECHO_C" >&6
  18347. else
  18348. eval "$as_ac_Header=\$ac_header_preproc"
  18349. fi
  18350. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18351. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18352. fi
  18353. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18354. cat >>confdefs.h <<_ACEOF
  18355. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18356. _ACEOF
  18357. fi
  18358. done
  18359. for ac_func in fork vfork
  18360. do
  18361. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18362. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18363. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18364. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18365. echo $ECHO_N "(cached) $ECHO_C" >&6
  18366. else
  18367. cat >conftest.$ac_ext <<_ACEOF
  18368. /* confdefs.h. */
  18369. _ACEOF
  18370. cat confdefs.h >>conftest.$ac_ext
  18371. cat >>conftest.$ac_ext <<_ACEOF
  18372. /* end confdefs.h. */
  18373. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18374. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18375. #define $ac_func innocuous_$ac_func
  18376. /* System header to define __stub macros and hopefully few prototypes,
  18377. which can conflict with char $ac_func (); below.
  18378. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18379. <limits.h> exists even on freestanding compilers. */
  18380. #ifdef __STDC__
  18381. # include <limits.h>
  18382. #else
  18383. # include <assert.h>
  18384. #endif
  18385. #undef $ac_func
  18386. /* Override any gcc2 internal prototype to avoid an error. */
  18387. #ifdef __cplusplus
  18388. extern "C"
  18389. {
  18390. #endif
  18391. /* We use char because int might match the return type of a gcc2
  18392. builtin and then its argument prototype would still apply. */
  18393. char $ac_func ();
  18394. /* The GNU C library defines this for functions which it implements
  18395. to always fail with ENOSYS. Some functions are actually named
  18396. something starting with __ and the normal name is an alias. */
  18397. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18398. choke me
  18399. #else
  18400. char (*f) () = $ac_func;
  18401. #endif
  18402. #ifdef __cplusplus
  18403. }
  18404. #endif
  18405. int
  18406. main ()
  18407. {
  18408. return f != $ac_func;
  18409. ;
  18410. return 0;
  18411. }
  18412. _ACEOF
  18413. rm -f conftest.$ac_objext conftest$ac_exeext
  18414. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18415. (eval $ac_link) 2>conftest.er1
  18416. ac_status=$?
  18417. grep -v '^ *+' conftest.er1 >conftest.err
  18418. rm -f conftest.er1
  18419. cat conftest.err >&5
  18420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18421. (exit $ac_status); } &&
  18422. { ac_try='test -z "$ac_c_werror_flag"
  18423. || test ! -s conftest.err'
  18424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18425. (eval $ac_try) 2>&5
  18426. ac_status=$?
  18427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18428. (exit $ac_status); }; } &&
  18429. { ac_try='test -s conftest$ac_exeext'
  18430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18431. (eval $ac_try) 2>&5
  18432. ac_status=$?
  18433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18434. (exit $ac_status); }; }; then
  18435. eval "$as_ac_var=yes"
  18436. else
  18437. echo "$as_me: failed program was:" >&5
  18438. sed 's/^/| /' conftest.$ac_ext >&5
  18439. eval "$as_ac_var=no"
  18440. fi
  18441. rm -f conftest.err conftest.$ac_objext \
  18442. conftest$ac_exeext conftest.$ac_ext
  18443. fi
  18444. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18445. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18446. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18447. cat >>confdefs.h <<_ACEOF
  18448. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18449. _ACEOF
  18450. fi
  18451. done
  18452. if test "x$ac_cv_func_fork" = xyes; then
  18453. echo "$as_me:$LINENO: checking for working fork" >&5
  18454. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18455. if test "${ac_cv_func_fork_works+set}" = set; then
  18456. echo $ECHO_N "(cached) $ECHO_C" >&6
  18457. else
  18458. if test "$cross_compiling" = yes; then
  18459. ac_cv_func_fork_works=cross
  18460. else
  18461. cat >conftest.$ac_ext <<_ACEOF
  18462. /* By Ruediger Kuhlmann. */
  18463. #include <sys/types.h>
  18464. #if HAVE_UNISTD_H
  18465. # include <unistd.h>
  18466. #endif
  18467. /* Some systems only have a dummy stub for fork() */
  18468. int main ()
  18469. {
  18470. if (fork() < 0)
  18471. exit (1);
  18472. exit (0);
  18473. }
  18474. _ACEOF
  18475. rm -f conftest$ac_exeext
  18476. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18477. (eval $ac_link) 2>&5
  18478. ac_status=$?
  18479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18480. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18482. (eval $ac_try) 2>&5
  18483. ac_status=$?
  18484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18485. (exit $ac_status); }; }; then
  18486. ac_cv_func_fork_works=yes
  18487. else
  18488. echo "$as_me: program exited with status $ac_status" >&5
  18489. echo "$as_me: failed program was:" >&5
  18490. sed 's/^/| /' conftest.$ac_ext >&5
  18491. ( exit $ac_status )
  18492. ac_cv_func_fork_works=no
  18493. fi
  18494. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18495. fi
  18496. fi
  18497. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18498. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18499. else
  18500. ac_cv_func_fork_works=$ac_cv_func_fork
  18501. fi
  18502. if test "x$ac_cv_func_fork_works" = xcross; then
  18503. case $host in
  18504. *-*-amigaos* | *-*-msdosdjgpp*)
  18505. # Override, as these systems have only a dummy fork() stub
  18506. ac_cv_func_fork_works=no
  18507. ;;
  18508. *)
  18509. ac_cv_func_fork_works=yes
  18510. ;;
  18511. esac
  18512. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18513. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18514. fi
  18515. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18516. if test "x$ac_cv_func_vfork" = xyes; then
  18517. echo "$as_me:$LINENO: checking for working vfork" >&5
  18518. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18519. if test "${ac_cv_func_vfork_works+set}" = set; then
  18520. echo $ECHO_N "(cached) $ECHO_C" >&6
  18521. else
  18522. if test "$cross_compiling" = yes; then
  18523. ac_cv_func_vfork_works=cross
  18524. else
  18525. cat >conftest.$ac_ext <<_ACEOF
  18526. /* confdefs.h. */
  18527. _ACEOF
  18528. cat confdefs.h >>conftest.$ac_ext
  18529. cat >>conftest.$ac_ext <<_ACEOF
  18530. /* end confdefs.h. */
  18531. /* Thanks to Paul Eggert for this test. */
  18532. #include <stdio.h>
  18533. #include <stdlib.h>
  18534. #include <sys/types.h>
  18535. #include <sys/stat.h>
  18536. #include <sys/wait.h>
  18537. #if HAVE_UNISTD_H
  18538. # include <unistd.h>
  18539. #endif
  18540. #if HAVE_VFORK_H
  18541. # include <vfork.h>
  18542. #endif
  18543. /* On some sparc systems, changes by the child to local and incoming
  18544. argument registers are propagated back to the parent. The compiler
  18545. is told about this with #include <vfork.h>, but some compilers
  18546. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18547. static variable whose address is put into a register that is
  18548. clobbered by the vfork. */
  18549. static void
  18550. #ifdef __cplusplus
  18551. sparc_address_test (int arg)
  18552. # else
  18553. sparc_address_test (arg) int arg;
  18554. #endif
  18555. {
  18556. static pid_t child;
  18557. if (!child) {
  18558. child = vfork ();
  18559. if (child < 0) {
  18560. perror ("vfork");
  18561. _exit(2);
  18562. }
  18563. if (!child) {
  18564. arg = getpid();
  18565. write(-1, "", 0);
  18566. _exit (arg);
  18567. }
  18568. }
  18569. }
  18570. int
  18571. main ()
  18572. {
  18573. pid_t parent = getpid ();
  18574. pid_t child;
  18575. sparc_address_test (0);
  18576. child = vfork ();
  18577. if (child == 0) {
  18578. /* Here is another test for sparc vfork register problems. This
  18579. test uses lots of local variables, at least as many local
  18580. variables as main has allocated so far including compiler
  18581. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18582. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18583. reuse the register of parent for one of the local variables,
  18584. since it will think that parent can't possibly be used any more
  18585. in this routine. Assigning to the local variable will thus
  18586. munge parent in the parent process. */
  18587. pid_t
  18588. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18589. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18590. /* Convince the compiler that p..p7 are live; otherwise, it might
  18591. use the same hardware register for all 8 local variables. */
  18592. if (p != p1 || p != p2 || p != p3 || p != p4
  18593. || p != p5 || p != p6 || p != p7)
  18594. _exit(1);
  18595. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18596. from child file descriptors. If the child closes a descriptor
  18597. before it execs or exits, this munges the parent's descriptor
  18598. as well. Test for this by closing stdout in the child. */
  18599. _exit(close(fileno(stdout)) != 0);
  18600. } else {
  18601. int status;
  18602. struct stat st;
  18603. while (wait(&status) != child)
  18604. ;
  18605. exit(
  18606. /* Was there some problem with vforking? */
  18607. child < 0
  18608. /* Did the child fail? (This shouldn't happen.) */
  18609. || status
  18610. /* Did the vfork/compiler bug occur? */
  18611. || parent != getpid()
  18612. /* Did the file descriptor bug occur? */
  18613. || fstat(fileno(stdout), &st) != 0
  18614. );
  18615. }
  18616. }
  18617. _ACEOF
  18618. rm -f conftest$ac_exeext
  18619. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18620. (eval $ac_link) 2>&5
  18621. ac_status=$?
  18622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18623. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18625. (eval $ac_try) 2>&5
  18626. ac_status=$?
  18627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18628. (exit $ac_status); }; }; then
  18629. ac_cv_func_vfork_works=yes
  18630. else
  18631. echo "$as_me: program exited with status $ac_status" >&5
  18632. echo "$as_me: failed program was:" >&5
  18633. sed 's/^/| /' conftest.$ac_ext >&5
  18634. ( exit $ac_status )
  18635. ac_cv_func_vfork_works=no
  18636. fi
  18637. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18638. fi
  18639. fi
  18640. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18641. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18642. fi;
  18643. if test "x$ac_cv_func_fork_works" = xcross; then
  18644. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18645. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18646. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18647. fi
  18648. if test "x$ac_cv_func_vfork_works" = xyes; then
  18649. cat >>confdefs.h <<\_ACEOF
  18650. #define HAVE_WORKING_VFORK 1
  18651. _ACEOF
  18652. else
  18653. cat >>confdefs.h <<\_ACEOF
  18654. #define vfork fork
  18655. _ACEOF
  18656. fi
  18657. if test "x$ac_cv_func_fork_works" = xyes; then
  18658. cat >>confdefs.h <<\_ACEOF
  18659. #define HAVE_WORKING_FORK 1
  18660. _ACEOF
  18661. fi
  18662. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18663. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18664. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18665. echo $ECHO_N "(cached) $ECHO_C" >&6
  18666. else
  18667. rm -f conftest.sym conftest.file
  18668. echo >conftest.file
  18669. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18670. if test "$cross_compiling" = yes; then
  18671. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18672. else
  18673. cat >conftest.$ac_ext <<_ACEOF
  18674. /* confdefs.h. */
  18675. _ACEOF
  18676. cat confdefs.h >>conftest.$ac_ext
  18677. cat >>conftest.$ac_ext <<_ACEOF
  18678. /* end confdefs.h. */
  18679. $ac_includes_default
  18680. int
  18681. main ()
  18682. {
  18683. struct stat sbuf;
  18684. /* Linux will dereference the symlink and fail.
  18685. That is better in the sense that it means we will not
  18686. have to compile and use the lstat wrapper. */
  18687. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18688. ;
  18689. return 0;
  18690. }
  18691. _ACEOF
  18692. rm -f conftest$ac_exeext
  18693. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18694. (eval $ac_link) 2>&5
  18695. ac_status=$?
  18696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18697. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18699. (eval $ac_try) 2>&5
  18700. ac_status=$?
  18701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18702. (exit $ac_status); }; }; then
  18703. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18704. else
  18705. echo "$as_me: program exited with status $ac_status" >&5
  18706. echo "$as_me: failed program was:" >&5
  18707. sed 's/^/| /' conftest.$ac_ext >&5
  18708. ( exit $ac_status )
  18709. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18710. fi
  18711. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18712. fi
  18713. else
  18714. # If the `ln -s' command failed, then we probably don't even
  18715. # have an lstat function.
  18716. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18717. fi
  18718. rm -f conftest.sym conftest.file
  18719. fi
  18720. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18721. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18722. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18723. cat >>confdefs.h <<_ACEOF
  18724. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18725. _ACEOF
  18726. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18727. case $LIBOBJS in
  18728. "lstat.$ac_objext" | \
  18729. *" lstat.$ac_objext" | \
  18730. "lstat.$ac_objext "* | \
  18731. *" lstat.$ac_objext "* ) ;;
  18732. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18733. esac
  18734. fi
  18735. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18736. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18737. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18738. echo $ECHO_N "(cached) $ECHO_C" >&6
  18739. else
  18740. if test "$cross_compiling" = yes; then
  18741. ac_cv_func_lstat_empty_string_bug=yes
  18742. else
  18743. cat >conftest.$ac_ext <<_ACEOF
  18744. /* confdefs.h. */
  18745. _ACEOF
  18746. cat confdefs.h >>conftest.$ac_ext
  18747. cat >>conftest.$ac_ext <<_ACEOF
  18748. /* end confdefs.h. */
  18749. $ac_includes_default
  18750. int
  18751. main ()
  18752. {
  18753. struct stat sbuf;
  18754. exit (lstat ("", &sbuf) ? 1 : 0);
  18755. ;
  18756. return 0;
  18757. }
  18758. _ACEOF
  18759. rm -f conftest$ac_exeext
  18760. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18761. (eval $ac_link) 2>&5
  18762. ac_status=$?
  18763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18764. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18766. (eval $ac_try) 2>&5
  18767. ac_status=$?
  18768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18769. (exit $ac_status); }; }; then
  18770. ac_cv_func_lstat_empty_string_bug=yes
  18771. else
  18772. echo "$as_me: program exited with status $ac_status" >&5
  18773. echo "$as_me: failed program was:" >&5
  18774. sed 's/^/| /' conftest.$ac_ext >&5
  18775. ( exit $ac_status )
  18776. ac_cv_func_lstat_empty_string_bug=no
  18777. fi
  18778. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18779. fi
  18780. fi
  18781. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18782. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18783. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18784. case $LIBOBJS in
  18785. "lstat.$ac_objext" | \
  18786. *" lstat.$ac_objext" | \
  18787. "lstat.$ac_objext "* | \
  18788. *" lstat.$ac_objext "* ) ;;
  18789. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18790. esac
  18791. cat >>confdefs.h <<_ACEOF
  18792. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18793. _ACEOF
  18794. fi
  18795. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18796. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18797. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18798. echo $ECHO_N "(cached) $ECHO_C" >&6
  18799. else
  18800. rm -f conftest.sym conftest.file
  18801. echo >conftest.file
  18802. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18803. if test "$cross_compiling" = yes; then
  18804. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18805. else
  18806. cat >conftest.$ac_ext <<_ACEOF
  18807. /* confdefs.h. */
  18808. _ACEOF
  18809. cat confdefs.h >>conftest.$ac_ext
  18810. cat >>conftest.$ac_ext <<_ACEOF
  18811. /* end confdefs.h. */
  18812. $ac_includes_default
  18813. int
  18814. main ()
  18815. {
  18816. struct stat sbuf;
  18817. /* Linux will dereference the symlink and fail.
  18818. That is better in the sense that it means we will not
  18819. have to compile and use the lstat wrapper. */
  18820. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18821. ;
  18822. return 0;
  18823. }
  18824. _ACEOF
  18825. rm -f conftest$ac_exeext
  18826. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18827. (eval $ac_link) 2>&5
  18828. ac_status=$?
  18829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18830. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18832. (eval $ac_try) 2>&5
  18833. ac_status=$?
  18834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18835. (exit $ac_status); }; }; then
  18836. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18837. else
  18838. echo "$as_me: program exited with status $ac_status" >&5
  18839. echo "$as_me: failed program was:" >&5
  18840. sed 's/^/| /' conftest.$ac_ext >&5
  18841. ( exit $ac_status )
  18842. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18843. fi
  18844. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18845. fi
  18846. else
  18847. # If the `ln -s' command failed, then we probably don't even
  18848. # have an lstat function.
  18849. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18850. fi
  18851. rm -f conftest.sym conftest.file
  18852. fi
  18853. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18854. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18855. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18856. cat >>confdefs.h <<_ACEOF
  18857. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18858. _ACEOF
  18859. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18860. case $LIBOBJS in
  18861. "lstat.$ac_objext" | \
  18862. *" lstat.$ac_objext" | \
  18863. "lstat.$ac_objext "* | \
  18864. *" lstat.$ac_objext "* ) ;;
  18865. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18866. esac
  18867. fi
  18868. for ac_header in stdlib.h
  18869. do
  18870. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18871. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18872. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18873. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18874. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18875. echo $ECHO_N "(cached) $ECHO_C" >&6
  18876. fi
  18877. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18878. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18879. else
  18880. # Is the header compilable?
  18881. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18882. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18883. cat >conftest.$ac_ext <<_ACEOF
  18884. /* confdefs.h. */
  18885. _ACEOF
  18886. cat confdefs.h >>conftest.$ac_ext
  18887. cat >>conftest.$ac_ext <<_ACEOF
  18888. /* end confdefs.h. */
  18889. $ac_includes_default
  18890. #include <$ac_header>
  18891. _ACEOF
  18892. rm -f conftest.$ac_objext
  18893. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18894. (eval $ac_compile) 2>conftest.er1
  18895. ac_status=$?
  18896. grep -v '^ *+' conftest.er1 >conftest.err
  18897. rm -f conftest.er1
  18898. cat conftest.err >&5
  18899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18900. (exit $ac_status); } &&
  18901. { ac_try='test -z "$ac_c_werror_flag"
  18902. || test ! -s conftest.err'
  18903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18904. (eval $ac_try) 2>&5
  18905. ac_status=$?
  18906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18907. (exit $ac_status); }; } &&
  18908. { ac_try='test -s conftest.$ac_objext'
  18909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18910. (eval $ac_try) 2>&5
  18911. ac_status=$?
  18912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18913. (exit $ac_status); }; }; then
  18914. ac_header_compiler=yes
  18915. else
  18916. echo "$as_me: failed program was:" >&5
  18917. sed 's/^/| /' conftest.$ac_ext >&5
  18918. ac_header_compiler=no
  18919. fi
  18920. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18921. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18922. echo "${ECHO_T}$ac_header_compiler" >&6
  18923. # Is the header present?
  18924. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18925. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18926. cat >conftest.$ac_ext <<_ACEOF
  18927. /* confdefs.h. */
  18928. _ACEOF
  18929. cat confdefs.h >>conftest.$ac_ext
  18930. cat >>conftest.$ac_ext <<_ACEOF
  18931. /* end confdefs.h. */
  18932. #include <$ac_header>
  18933. _ACEOF
  18934. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18935. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18936. ac_status=$?
  18937. grep -v '^ *+' conftest.er1 >conftest.err
  18938. rm -f conftest.er1
  18939. cat conftest.err >&5
  18940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18941. (exit $ac_status); } >/dev/null; then
  18942. if test -s conftest.err; then
  18943. ac_cpp_err=$ac_c_preproc_warn_flag
  18944. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18945. else
  18946. ac_cpp_err=
  18947. fi
  18948. else
  18949. ac_cpp_err=yes
  18950. fi
  18951. if test -z "$ac_cpp_err"; then
  18952. ac_header_preproc=yes
  18953. else
  18954. echo "$as_me: failed program was:" >&5
  18955. sed 's/^/| /' conftest.$ac_ext >&5
  18956. ac_header_preproc=no
  18957. fi
  18958. rm -f conftest.err conftest.$ac_ext
  18959. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18960. echo "${ECHO_T}$ac_header_preproc" >&6
  18961. # So? What about this header?
  18962. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18963. yes:no: )
  18964. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18965. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18966. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18967. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18968. ac_header_preproc=yes
  18969. ;;
  18970. no:yes:* )
  18971. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18972. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18973. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18974. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18975. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18976. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18977. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18978. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18979. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18980. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18981. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18982. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18983. (
  18984. cat <<\_ASBOX
  18985. ## ------------------------------------------ ##
  18986. ## Report this to http://bugzilla.redhat.com/ ##
  18987. ## ------------------------------------------ ##
  18988. _ASBOX
  18989. ) |
  18990. sed "s/^/$as_me: WARNING: /" >&2
  18991. ;;
  18992. esac
  18993. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18994. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18995. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18996. echo $ECHO_N "(cached) $ECHO_C" >&6
  18997. else
  18998. eval "$as_ac_Header=\$ac_header_preproc"
  18999. fi
  19000. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19001. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19002. fi
  19003. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19004. cat >>confdefs.h <<_ACEOF
  19005. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19006. _ACEOF
  19007. fi
  19008. done
  19009. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19010. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19011. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19012. echo $ECHO_N "(cached) $ECHO_C" >&6
  19013. else
  19014. if test "$cross_compiling" = yes; then
  19015. ac_cv_func_malloc_0_nonnull=no
  19016. else
  19017. cat >conftest.$ac_ext <<_ACEOF
  19018. /* confdefs.h. */
  19019. _ACEOF
  19020. cat confdefs.h >>conftest.$ac_ext
  19021. cat >>conftest.$ac_ext <<_ACEOF
  19022. /* end confdefs.h. */
  19023. #if STDC_HEADERS || HAVE_STDLIB_H
  19024. # include <stdlib.h>
  19025. #else
  19026. char *malloc ();
  19027. #endif
  19028. int
  19029. main ()
  19030. {
  19031. exit (malloc (0) ? 0 : 1);
  19032. ;
  19033. return 0;
  19034. }
  19035. _ACEOF
  19036. rm -f conftest$ac_exeext
  19037. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19038. (eval $ac_link) 2>&5
  19039. ac_status=$?
  19040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19041. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19043. (eval $ac_try) 2>&5
  19044. ac_status=$?
  19045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19046. (exit $ac_status); }; }; then
  19047. ac_cv_func_malloc_0_nonnull=yes
  19048. else
  19049. echo "$as_me: program exited with status $ac_status" >&5
  19050. echo "$as_me: failed program was:" >&5
  19051. sed 's/^/| /' conftest.$ac_ext >&5
  19052. ( exit $ac_status )
  19053. ac_cv_func_malloc_0_nonnull=no
  19054. fi
  19055. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19056. fi
  19057. fi
  19058. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19059. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19060. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19061. cat >>confdefs.h <<\_ACEOF
  19062. #define HAVE_MALLOC 1
  19063. _ACEOF
  19064. else
  19065. cat >>confdefs.h <<\_ACEOF
  19066. #define HAVE_MALLOC 0
  19067. _ACEOF
  19068. case $LIBOBJS in
  19069. "malloc.$ac_objext" | \
  19070. *" malloc.$ac_objext" | \
  19071. "malloc.$ac_objext "* | \
  19072. *" malloc.$ac_objext "* ) ;;
  19073. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19074. esac
  19075. cat >>confdefs.h <<\_ACEOF
  19076. #define malloc rpl_malloc
  19077. _ACEOF
  19078. fi
  19079. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19080. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19081. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19082. echo $ECHO_N "(cached) $ECHO_C" >&6
  19083. else
  19084. if test "$cross_compiling" = yes; then
  19085. ac_cv_func_memcmp_working=no
  19086. else
  19087. cat >conftest.$ac_ext <<_ACEOF
  19088. /* confdefs.h. */
  19089. _ACEOF
  19090. cat confdefs.h >>conftest.$ac_ext
  19091. cat >>conftest.$ac_ext <<_ACEOF
  19092. /* end confdefs.h. */
  19093. $ac_includes_default
  19094. int
  19095. main ()
  19096. {
  19097. /* Some versions of memcmp are not 8-bit clean. */
  19098. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19099. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19100. exit (1);
  19101. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19102. or more and with at least one buffer not starting on a 4-byte boundary.
  19103. William Lewis provided this test program. */
  19104. {
  19105. char foo[21];
  19106. char bar[21];
  19107. int i;
  19108. for (i = 0; i < 4; i++)
  19109. {
  19110. char *a = foo + i;
  19111. char *b = bar + i;
  19112. strcpy (a, "--------01111111");
  19113. strcpy (b, "--------10000000");
  19114. if (memcmp (a, b, 16) >= 0)
  19115. exit (1);
  19116. }
  19117. exit (0);
  19118. }
  19119. ;
  19120. return 0;
  19121. }
  19122. _ACEOF
  19123. rm -f conftest$ac_exeext
  19124. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19125. (eval $ac_link) 2>&5
  19126. ac_status=$?
  19127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19128. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19130. (eval $ac_try) 2>&5
  19131. ac_status=$?
  19132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19133. (exit $ac_status); }; }; then
  19134. ac_cv_func_memcmp_working=yes
  19135. else
  19136. echo "$as_me: program exited with status $ac_status" >&5
  19137. echo "$as_me: failed program was:" >&5
  19138. sed 's/^/| /' conftest.$ac_ext >&5
  19139. ( exit $ac_status )
  19140. ac_cv_func_memcmp_working=no
  19141. fi
  19142. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19143. fi
  19144. fi
  19145. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19146. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19147. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19148. "memcmp.$ac_objext" | \
  19149. *" memcmp.$ac_objext" | \
  19150. "memcmp.$ac_objext "* | \
  19151. *" memcmp.$ac_objext "* ) ;;
  19152. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19153. esac
  19154. for ac_header in stdlib.h unistd.h
  19155. do
  19156. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19157. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19158. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19159. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19160. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19161. echo $ECHO_N "(cached) $ECHO_C" >&6
  19162. fi
  19163. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19164. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19165. else
  19166. # Is the header compilable?
  19167. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19168. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19169. cat >conftest.$ac_ext <<_ACEOF
  19170. /* confdefs.h. */
  19171. _ACEOF
  19172. cat confdefs.h >>conftest.$ac_ext
  19173. cat >>conftest.$ac_ext <<_ACEOF
  19174. /* end confdefs.h. */
  19175. $ac_includes_default
  19176. #include <$ac_header>
  19177. _ACEOF
  19178. rm -f conftest.$ac_objext
  19179. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19180. (eval $ac_compile) 2>conftest.er1
  19181. ac_status=$?
  19182. grep -v '^ *+' conftest.er1 >conftest.err
  19183. rm -f conftest.er1
  19184. cat conftest.err >&5
  19185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19186. (exit $ac_status); } &&
  19187. { ac_try='test -z "$ac_c_werror_flag"
  19188. || test ! -s conftest.err'
  19189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19190. (eval $ac_try) 2>&5
  19191. ac_status=$?
  19192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19193. (exit $ac_status); }; } &&
  19194. { ac_try='test -s conftest.$ac_objext'
  19195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19196. (eval $ac_try) 2>&5
  19197. ac_status=$?
  19198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19199. (exit $ac_status); }; }; then
  19200. ac_header_compiler=yes
  19201. else
  19202. echo "$as_me: failed program was:" >&5
  19203. sed 's/^/| /' conftest.$ac_ext >&5
  19204. ac_header_compiler=no
  19205. fi
  19206. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19207. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19208. echo "${ECHO_T}$ac_header_compiler" >&6
  19209. # Is the header present?
  19210. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19211. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19212. cat >conftest.$ac_ext <<_ACEOF
  19213. /* confdefs.h. */
  19214. _ACEOF
  19215. cat confdefs.h >>conftest.$ac_ext
  19216. cat >>conftest.$ac_ext <<_ACEOF
  19217. /* end confdefs.h. */
  19218. #include <$ac_header>
  19219. _ACEOF
  19220. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19221. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19222. ac_status=$?
  19223. grep -v '^ *+' conftest.er1 >conftest.err
  19224. rm -f conftest.er1
  19225. cat conftest.err >&5
  19226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19227. (exit $ac_status); } >/dev/null; then
  19228. if test -s conftest.err; then
  19229. ac_cpp_err=$ac_c_preproc_warn_flag
  19230. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19231. else
  19232. ac_cpp_err=
  19233. fi
  19234. else
  19235. ac_cpp_err=yes
  19236. fi
  19237. if test -z "$ac_cpp_err"; then
  19238. ac_header_preproc=yes
  19239. else
  19240. echo "$as_me: failed program was:" >&5
  19241. sed 's/^/| /' conftest.$ac_ext >&5
  19242. ac_header_preproc=no
  19243. fi
  19244. rm -f conftest.err conftest.$ac_ext
  19245. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19246. echo "${ECHO_T}$ac_header_preproc" >&6
  19247. # So? What about this header?
  19248. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19249. yes:no: )
  19250. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19251. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19252. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19253. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19254. ac_header_preproc=yes
  19255. ;;
  19256. no:yes:* )
  19257. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19258. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19259. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19260. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19261. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19262. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19263. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19264. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19265. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19266. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19267. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19268. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19269. (
  19270. cat <<\_ASBOX
  19271. ## ------------------------------------------ ##
  19272. ## Report this to http://bugzilla.redhat.com/ ##
  19273. ## ------------------------------------------ ##
  19274. _ASBOX
  19275. ) |
  19276. sed "s/^/$as_me: WARNING: /" >&2
  19277. ;;
  19278. esac
  19279. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19280. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19281. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19282. echo $ECHO_N "(cached) $ECHO_C" >&6
  19283. else
  19284. eval "$as_ac_Header=\$ac_header_preproc"
  19285. fi
  19286. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19287. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19288. fi
  19289. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19290. cat >>confdefs.h <<_ACEOF
  19291. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19292. _ACEOF
  19293. fi
  19294. done
  19295. for ac_func in getpagesize
  19296. do
  19297. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19298. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19299. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19300. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19301. echo $ECHO_N "(cached) $ECHO_C" >&6
  19302. else
  19303. cat >conftest.$ac_ext <<_ACEOF
  19304. /* confdefs.h. */
  19305. _ACEOF
  19306. cat confdefs.h >>conftest.$ac_ext
  19307. cat >>conftest.$ac_ext <<_ACEOF
  19308. /* end confdefs.h. */
  19309. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19310. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19311. #define $ac_func innocuous_$ac_func
  19312. /* System header to define __stub macros and hopefully few prototypes,
  19313. which can conflict with char $ac_func (); below.
  19314. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19315. <limits.h> exists even on freestanding compilers. */
  19316. #ifdef __STDC__
  19317. # include <limits.h>
  19318. #else
  19319. # include <assert.h>
  19320. #endif
  19321. #undef $ac_func
  19322. /* Override any gcc2 internal prototype to avoid an error. */
  19323. #ifdef __cplusplus
  19324. extern "C"
  19325. {
  19326. #endif
  19327. /* We use char because int might match the return type of a gcc2
  19328. builtin and then its argument prototype would still apply. */
  19329. char $ac_func ();
  19330. /* The GNU C library defines this for functions which it implements
  19331. to always fail with ENOSYS. Some functions are actually named
  19332. something starting with __ and the normal name is an alias. */
  19333. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19334. choke me
  19335. #else
  19336. char (*f) () = $ac_func;
  19337. #endif
  19338. #ifdef __cplusplus
  19339. }
  19340. #endif
  19341. int
  19342. main ()
  19343. {
  19344. return f != $ac_func;
  19345. ;
  19346. return 0;
  19347. }
  19348. _ACEOF
  19349. rm -f conftest.$ac_objext conftest$ac_exeext
  19350. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19351. (eval $ac_link) 2>conftest.er1
  19352. ac_status=$?
  19353. grep -v '^ *+' conftest.er1 >conftest.err
  19354. rm -f conftest.er1
  19355. cat conftest.err >&5
  19356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19357. (exit $ac_status); } &&
  19358. { ac_try='test -z "$ac_c_werror_flag"
  19359. || test ! -s conftest.err'
  19360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19361. (eval $ac_try) 2>&5
  19362. ac_status=$?
  19363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19364. (exit $ac_status); }; } &&
  19365. { ac_try='test -s conftest$ac_exeext'
  19366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19367. (eval $ac_try) 2>&5
  19368. ac_status=$?
  19369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19370. (exit $ac_status); }; }; then
  19371. eval "$as_ac_var=yes"
  19372. else
  19373. echo "$as_me: failed program was:" >&5
  19374. sed 's/^/| /' conftest.$ac_ext >&5
  19375. eval "$as_ac_var=no"
  19376. fi
  19377. rm -f conftest.err conftest.$ac_objext \
  19378. conftest$ac_exeext conftest.$ac_ext
  19379. fi
  19380. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19381. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19382. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19383. cat >>confdefs.h <<_ACEOF
  19384. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19385. _ACEOF
  19386. fi
  19387. done
  19388. echo "$as_me:$LINENO: checking for working mmap" >&5
  19389. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19390. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19391. echo $ECHO_N "(cached) $ECHO_C" >&6
  19392. else
  19393. if test "$cross_compiling" = yes; then
  19394. ac_cv_func_mmap_fixed_mapped=no
  19395. else
  19396. cat >conftest.$ac_ext <<_ACEOF
  19397. /* confdefs.h. */
  19398. _ACEOF
  19399. cat confdefs.h >>conftest.$ac_ext
  19400. cat >>conftest.$ac_ext <<_ACEOF
  19401. /* end confdefs.h. */
  19402. $ac_includes_default
  19403. /* malloc might have been renamed as rpl_malloc. */
  19404. #undef malloc
  19405. /* Thanks to Mike Haertel and Jim Avera for this test.
  19406. Here is a matrix of mmap possibilities:
  19407. mmap private not fixed
  19408. mmap private fixed at somewhere currently unmapped
  19409. mmap private fixed at somewhere already mapped
  19410. mmap shared not fixed
  19411. mmap shared fixed at somewhere currently unmapped
  19412. mmap shared fixed at somewhere already mapped
  19413. For private mappings, we should verify that changes cannot be read()
  19414. back from the file, nor mmap's back from the file at a different
  19415. address. (There have been systems where private was not correctly
  19416. implemented like the infamous i386 svr4.0, and systems where the
  19417. VM page cache was not coherent with the file system buffer cache
  19418. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19419. For shared mappings, we should conversely verify that changes get
  19420. propagated back to all the places they're supposed to be.
  19421. Grep wants private fixed already mapped.
  19422. The main things grep needs to know about mmap are:
  19423. * does it exist and is it safe to write into the mmap'd area
  19424. * how to use it (BSD variants) */
  19425. #include <fcntl.h>
  19426. #include <sys/mman.h>
  19427. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19428. char *malloc ();
  19429. #endif
  19430. /* This mess was copied from the GNU getpagesize.h. */
  19431. #if !HAVE_GETPAGESIZE
  19432. /* Assume that all systems that can run configure have sys/param.h. */
  19433. # if !HAVE_SYS_PARAM_H
  19434. # define HAVE_SYS_PARAM_H 1
  19435. # endif
  19436. # ifdef _SC_PAGESIZE
  19437. # define getpagesize() sysconf(_SC_PAGESIZE)
  19438. # else /* no _SC_PAGESIZE */
  19439. # if HAVE_SYS_PARAM_H
  19440. # include <sys/param.h>
  19441. # ifdef EXEC_PAGESIZE
  19442. # define getpagesize() EXEC_PAGESIZE
  19443. # else /* no EXEC_PAGESIZE */
  19444. # ifdef NBPG
  19445. # define getpagesize() NBPG * CLSIZE
  19446. # ifndef CLSIZE
  19447. # define CLSIZE 1
  19448. # endif /* no CLSIZE */
  19449. # else /* no NBPG */
  19450. # ifdef NBPC
  19451. # define getpagesize() NBPC
  19452. # else /* no NBPC */
  19453. # ifdef PAGESIZE
  19454. # define getpagesize() PAGESIZE
  19455. # endif /* PAGESIZE */
  19456. # endif /* no NBPC */
  19457. # endif /* no NBPG */
  19458. # endif /* no EXEC_PAGESIZE */
  19459. # else /* no HAVE_SYS_PARAM_H */
  19460. # define getpagesize() 8192 /* punt totally */
  19461. # endif /* no HAVE_SYS_PARAM_H */
  19462. # endif /* no _SC_PAGESIZE */
  19463. #endif /* no HAVE_GETPAGESIZE */
  19464. int
  19465. main ()
  19466. {
  19467. char *data, *data2, *data3;
  19468. int i, pagesize;
  19469. int fd;
  19470. pagesize = getpagesize ();
  19471. /* First, make a file with some known garbage in it. */
  19472. data = (char *) malloc (pagesize);
  19473. if (!data)
  19474. exit (1);
  19475. for (i = 0; i < pagesize; ++i)
  19476. *(data + i) = rand ();
  19477. umask (0);
  19478. fd = creat ("conftest.mmap", 0600);
  19479. if (fd < 0)
  19480. exit (1);
  19481. if (write (fd, data, pagesize) != pagesize)
  19482. exit (1);
  19483. close (fd);
  19484. /* Next, try to mmap the file at a fixed address which already has
  19485. something else allocated at it. If we can, also make sure that
  19486. we see the same garbage. */
  19487. fd = open ("conftest.mmap", O_RDWR);
  19488. if (fd < 0)
  19489. exit (1);
  19490. data2 = (char *) malloc (2 * pagesize);
  19491. if (!data2)
  19492. exit (1);
  19493. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19494. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19495. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19496. exit (1);
  19497. for (i = 0; i < pagesize; ++i)
  19498. if (*(data + i) != *(data2 + i))
  19499. exit (1);
  19500. /* Finally, make sure that changes to the mapped area do not
  19501. percolate back to the file as seen by read(). (This is a bug on
  19502. some variants of i386 svr4.0.) */
  19503. for (i = 0; i < pagesize; ++i)
  19504. *(data2 + i) = *(data2 + i) + 1;
  19505. data3 = (char *) malloc (pagesize);
  19506. if (!data3)
  19507. exit (1);
  19508. if (read (fd, data3, pagesize) != pagesize)
  19509. exit (1);
  19510. for (i = 0; i < pagesize; ++i)
  19511. if (*(data + i) != *(data3 + i))
  19512. exit (1);
  19513. close (fd);
  19514. exit (0);
  19515. }
  19516. _ACEOF
  19517. rm -f conftest$ac_exeext
  19518. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19519. (eval $ac_link) 2>&5
  19520. ac_status=$?
  19521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19522. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19524. (eval $ac_try) 2>&5
  19525. ac_status=$?
  19526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19527. (exit $ac_status); }; }; then
  19528. ac_cv_func_mmap_fixed_mapped=yes
  19529. else
  19530. echo "$as_me: program exited with status $ac_status" >&5
  19531. echo "$as_me: failed program was:" >&5
  19532. sed 's/^/| /' conftest.$ac_ext >&5
  19533. ( exit $ac_status )
  19534. ac_cv_func_mmap_fixed_mapped=no
  19535. fi
  19536. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19537. fi
  19538. fi
  19539. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19540. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19541. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19542. cat >>confdefs.h <<\_ACEOF
  19543. #define HAVE_MMAP 1
  19544. _ACEOF
  19545. fi
  19546. rm -f conftest.mmap
  19547. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19548. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19549. if test "${ac_cv_type_signal+set}" = set; then
  19550. echo $ECHO_N "(cached) $ECHO_C" >&6
  19551. else
  19552. cat >conftest.$ac_ext <<_ACEOF
  19553. /* confdefs.h. */
  19554. _ACEOF
  19555. cat confdefs.h >>conftest.$ac_ext
  19556. cat >>conftest.$ac_ext <<_ACEOF
  19557. /* end confdefs.h. */
  19558. #include <sys/types.h>
  19559. #include <signal.h>
  19560. #ifdef signal
  19561. # undef signal
  19562. #endif
  19563. #ifdef __cplusplus
  19564. extern "C" void (*signal (int, void (*)(int)))(int);
  19565. #else
  19566. void (*signal ()) ();
  19567. #endif
  19568. int
  19569. main ()
  19570. {
  19571. int i;
  19572. ;
  19573. return 0;
  19574. }
  19575. _ACEOF
  19576. rm -f conftest.$ac_objext
  19577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19578. (eval $ac_compile) 2>conftest.er1
  19579. ac_status=$?
  19580. grep -v '^ *+' conftest.er1 >conftest.err
  19581. rm -f conftest.er1
  19582. cat conftest.err >&5
  19583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19584. (exit $ac_status); } &&
  19585. { ac_try='test -z "$ac_c_werror_flag"
  19586. || test ! -s conftest.err'
  19587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19588. (eval $ac_try) 2>&5
  19589. ac_status=$?
  19590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19591. (exit $ac_status); }; } &&
  19592. { ac_try='test -s conftest.$ac_objext'
  19593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19594. (eval $ac_try) 2>&5
  19595. ac_status=$?
  19596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19597. (exit $ac_status); }; }; then
  19598. ac_cv_type_signal=void
  19599. else
  19600. echo "$as_me: failed program was:" >&5
  19601. sed 's/^/| /' conftest.$ac_ext >&5
  19602. ac_cv_type_signal=int
  19603. fi
  19604. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19605. fi
  19606. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19607. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19608. cat >>confdefs.h <<_ACEOF
  19609. #define RETSIGTYPE $ac_cv_type_signal
  19610. _ACEOF
  19611. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19612. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19613. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19614. echo $ECHO_N "(cached) $ECHO_C" >&6
  19615. else
  19616. if test "$cross_compiling" = yes; then
  19617. ac_cv_func_stat_empty_string_bug=yes
  19618. else
  19619. cat >conftest.$ac_ext <<_ACEOF
  19620. /* confdefs.h. */
  19621. _ACEOF
  19622. cat confdefs.h >>conftest.$ac_ext
  19623. cat >>conftest.$ac_ext <<_ACEOF
  19624. /* end confdefs.h. */
  19625. $ac_includes_default
  19626. int
  19627. main ()
  19628. {
  19629. struct stat sbuf;
  19630. exit (stat ("", &sbuf) ? 1 : 0);
  19631. ;
  19632. return 0;
  19633. }
  19634. _ACEOF
  19635. rm -f conftest$ac_exeext
  19636. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19637. (eval $ac_link) 2>&5
  19638. ac_status=$?
  19639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19640. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19642. (eval $ac_try) 2>&5
  19643. ac_status=$?
  19644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19645. (exit $ac_status); }; }; then
  19646. ac_cv_func_stat_empty_string_bug=yes
  19647. else
  19648. echo "$as_me: program exited with status $ac_status" >&5
  19649. echo "$as_me: failed program was:" >&5
  19650. sed 's/^/| /' conftest.$ac_ext >&5
  19651. ( exit $ac_status )
  19652. ac_cv_func_stat_empty_string_bug=no
  19653. fi
  19654. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19655. fi
  19656. fi
  19657. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19658. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19659. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19660. case $LIBOBJS in
  19661. "stat.$ac_objext" | \
  19662. *" stat.$ac_objext" | \
  19663. "stat.$ac_objext "* | \
  19664. *" stat.$ac_objext "* ) ;;
  19665. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19666. esac
  19667. cat >>confdefs.h <<_ACEOF
  19668. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19669. _ACEOF
  19670. fi
  19671. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19672. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19673. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19674. echo $ECHO_N "(cached) $ECHO_C" >&6
  19675. else
  19676. cat >conftest.$ac_ext <<_ACEOF
  19677. /* confdefs.h. */
  19678. _ACEOF
  19679. cat confdefs.h >>conftest.$ac_ext
  19680. cat >>conftest.$ac_ext <<_ACEOF
  19681. /* end confdefs.h. */
  19682. $ac_includes_default
  19683. int
  19684. main ()
  19685. {
  19686. #ifndef strerror_r
  19687. char *p = (char *) strerror_r;
  19688. #endif
  19689. ;
  19690. return 0;
  19691. }
  19692. _ACEOF
  19693. rm -f conftest.$ac_objext
  19694. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19695. (eval $ac_compile) 2>conftest.er1
  19696. ac_status=$?
  19697. grep -v '^ *+' conftest.er1 >conftest.err
  19698. rm -f conftest.er1
  19699. cat conftest.err >&5
  19700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19701. (exit $ac_status); } &&
  19702. { ac_try='test -z "$ac_c_werror_flag"
  19703. || test ! -s conftest.err'
  19704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19705. (eval $ac_try) 2>&5
  19706. ac_status=$?
  19707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19708. (exit $ac_status); }; } &&
  19709. { ac_try='test -s conftest.$ac_objext'
  19710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19711. (eval $ac_try) 2>&5
  19712. ac_status=$?
  19713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19714. (exit $ac_status); }; }; then
  19715. ac_cv_have_decl_strerror_r=yes
  19716. else
  19717. echo "$as_me: failed program was:" >&5
  19718. sed 's/^/| /' conftest.$ac_ext >&5
  19719. ac_cv_have_decl_strerror_r=no
  19720. fi
  19721. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19722. fi
  19723. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19724. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19725. if test $ac_cv_have_decl_strerror_r = yes; then
  19726. cat >>confdefs.h <<_ACEOF
  19727. #define HAVE_DECL_STRERROR_R 1
  19728. _ACEOF
  19729. else
  19730. cat >>confdefs.h <<_ACEOF
  19731. #define HAVE_DECL_STRERROR_R 0
  19732. _ACEOF
  19733. fi
  19734. for ac_func in strerror_r
  19735. do
  19736. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19737. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19738. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19739. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19740. echo $ECHO_N "(cached) $ECHO_C" >&6
  19741. else
  19742. cat >conftest.$ac_ext <<_ACEOF
  19743. /* confdefs.h. */
  19744. _ACEOF
  19745. cat confdefs.h >>conftest.$ac_ext
  19746. cat >>conftest.$ac_ext <<_ACEOF
  19747. /* end confdefs.h. */
  19748. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19749. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19750. #define $ac_func innocuous_$ac_func
  19751. /* System header to define __stub macros and hopefully few prototypes,
  19752. which can conflict with char $ac_func (); below.
  19753. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19754. <limits.h> exists even on freestanding compilers. */
  19755. #ifdef __STDC__
  19756. # include <limits.h>
  19757. #else
  19758. # include <assert.h>
  19759. #endif
  19760. #undef $ac_func
  19761. /* Override any gcc2 internal prototype to avoid an error. */
  19762. #ifdef __cplusplus
  19763. extern "C"
  19764. {
  19765. #endif
  19766. /* We use char because int might match the return type of a gcc2
  19767. builtin and then its argument prototype would still apply. */
  19768. char $ac_func ();
  19769. /* The GNU C library defines this for functions which it implements
  19770. to always fail with ENOSYS. Some functions are actually named
  19771. something starting with __ and the normal name is an alias. */
  19772. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19773. choke me
  19774. #else
  19775. char (*f) () = $ac_func;
  19776. #endif
  19777. #ifdef __cplusplus
  19778. }
  19779. #endif
  19780. int
  19781. main ()
  19782. {
  19783. return f != $ac_func;
  19784. ;
  19785. return 0;
  19786. }
  19787. _ACEOF
  19788. rm -f conftest.$ac_objext conftest$ac_exeext
  19789. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19790. (eval $ac_link) 2>conftest.er1
  19791. ac_status=$?
  19792. grep -v '^ *+' conftest.er1 >conftest.err
  19793. rm -f conftest.er1
  19794. cat conftest.err >&5
  19795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19796. (exit $ac_status); } &&
  19797. { ac_try='test -z "$ac_c_werror_flag"
  19798. || test ! -s conftest.err'
  19799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19800. (eval $ac_try) 2>&5
  19801. ac_status=$?
  19802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19803. (exit $ac_status); }; } &&
  19804. { ac_try='test -s conftest$ac_exeext'
  19805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19806. (eval $ac_try) 2>&5
  19807. ac_status=$?
  19808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19809. (exit $ac_status); }; }; then
  19810. eval "$as_ac_var=yes"
  19811. else
  19812. echo "$as_me: failed program was:" >&5
  19813. sed 's/^/| /' conftest.$ac_ext >&5
  19814. eval "$as_ac_var=no"
  19815. fi
  19816. rm -f conftest.err conftest.$ac_objext \
  19817. conftest$ac_exeext conftest.$ac_ext
  19818. fi
  19819. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19820. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19821. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19822. cat >>confdefs.h <<_ACEOF
  19823. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19824. _ACEOF
  19825. fi
  19826. done
  19827. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19828. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19829. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19830. echo $ECHO_N "(cached) $ECHO_C" >&6
  19831. else
  19832. ac_cv_func_strerror_r_char_p=no
  19833. if test $ac_cv_have_decl_strerror_r = yes; then
  19834. cat >conftest.$ac_ext <<_ACEOF
  19835. /* confdefs.h. */
  19836. _ACEOF
  19837. cat confdefs.h >>conftest.$ac_ext
  19838. cat >>conftest.$ac_ext <<_ACEOF
  19839. /* end confdefs.h. */
  19840. $ac_includes_default
  19841. int
  19842. main ()
  19843. {
  19844. char buf[100];
  19845. char x = *strerror_r (0, buf, sizeof buf);
  19846. char *p = strerror_r (0, buf, sizeof buf);
  19847. ;
  19848. return 0;
  19849. }
  19850. _ACEOF
  19851. rm -f conftest.$ac_objext
  19852. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19853. (eval $ac_compile) 2>conftest.er1
  19854. ac_status=$?
  19855. grep -v '^ *+' conftest.er1 >conftest.err
  19856. rm -f conftest.er1
  19857. cat conftest.err >&5
  19858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19859. (exit $ac_status); } &&
  19860. { ac_try='test -z "$ac_c_werror_flag"
  19861. || test ! -s conftest.err'
  19862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19863. (eval $ac_try) 2>&5
  19864. ac_status=$?
  19865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19866. (exit $ac_status); }; } &&
  19867. { ac_try='test -s conftest.$ac_objext'
  19868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19869. (eval $ac_try) 2>&5
  19870. ac_status=$?
  19871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19872. (exit $ac_status); }; }; then
  19873. ac_cv_func_strerror_r_char_p=yes
  19874. else
  19875. echo "$as_me: failed program was:" >&5
  19876. sed 's/^/| /' conftest.$ac_ext >&5
  19877. fi
  19878. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19879. else
  19880. # strerror_r is not declared. Choose between
  19881. # systems that have relatively inaccessible declarations for the
  19882. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  19883. # former has a strerror_r that returns char*, while the latter
  19884. # has a strerror_r that returns `int'.
  19885. # This test should segfault on the DEC system.
  19886. if test "$cross_compiling" = yes; then
  19887. :
  19888. else
  19889. cat >conftest.$ac_ext <<_ACEOF
  19890. /* confdefs.h. */
  19891. _ACEOF
  19892. cat confdefs.h >>conftest.$ac_ext
  19893. cat >>conftest.$ac_ext <<_ACEOF
  19894. /* end confdefs.h. */
  19895. $ac_includes_default
  19896. extern char *strerror_r ();
  19897. int
  19898. main ()
  19899. {
  19900. char buf[100];
  19901. char x = *strerror_r (0, buf, sizeof buf);
  19902. exit (!isalpha (x));
  19903. ;
  19904. return 0;
  19905. }
  19906. _ACEOF
  19907. rm -f conftest$ac_exeext
  19908. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19909. (eval $ac_link) 2>&5
  19910. ac_status=$?
  19911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19912. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19914. (eval $ac_try) 2>&5
  19915. ac_status=$?
  19916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19917. (exit $ac_status); }; }; then
  19918. ac_cv_func_strerror_r_char_p=yes
  19919. else
  19920. echo "$as_me: program exited with status $ac_status" >&5
  19921. echo "$as_me: failed program was:" >&5
  19922. sed 's/^/| /' conftest.$ac_ext >&5
  19923. fi
  19924. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19925. fi
  19926. fi
  19927. fi
  19928. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  19929. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  19930. if test $ac_cv_func_strerror_r_char_p = yes; then
  19931. cat >>confdefs.h <<\_ACEOF
  19932. #define STRERROR_R_CHAR_P 1
  19933. _ACEOF
  19934. fi
  19935. for ac_func in strftime
  19936. do
  19937. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19938. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19939. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19940. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19941. echo $ECHO_N "(cached) $ECHO_C" >&6
  19942. else
  19943. cat >conftest.$ac_ext <<_ACEOF
  19944. /* confdefs.h. */
  19945. _ACEOF
  19946. cat confdefs.h >>conftest.$ac_ext
  19947. cat >>conftest.$ac_ext <<_ACEOF
  19948. /* end confdefs.h. */
  19949. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19950. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19951. #define $ac_func innocuous_$ac_func
  19952. /* System header to define __stub macros and hopefully few prototypes,
  19953. which can conflict with char $ac_func (); below.
  19954. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19955. <limits.h> exists even on freestanding compilers. */
  19956. #ifdef __STDC__
  19957. # include <limits.h>
  19958. #else
  19959. # include <assert.h>
  19960. #endif
  19961. #undef $ac_func
  19962. /* Override any gcc2 internal prototype to avoid an error. */
  19963. #ifdef __cplusplus
  19964. extern "C"
  19965. {
  19966. #endif
  19967. /* We use char because int might match the return type of a gcc2
  19968. builtin and then its argument prototype would still apply. */
  19969. char $ac_func ();
  19970. /* The GNU C library defines this for functions which it implements
  19971. to always fail with ENOSYS. Some functions are actually named
  19972. something starting with __ and the normal name is an alias. */
  19973. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19974. choke me
  19975. #else
  19976. char (*f) () = $ac_func;
  19977. #endif
  19978. #ifdef __cplusplus
  19979. }
  19980. #endif
  19981. int
  19982. main ()
  19983. {
  19984. return f != $ac_func;
  19985. ;
  19986. return 0;
  19987. }
  19988. _ACEOF
  19989. rm -f conftest.$ac_objext conftest$ac_exeext
  19990. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19991. (eval $ac_link) 2>conftest.er1
  19992. ac_status=$?
  19993. grep -v '^ *+' conftest.er1 >conftest.err
  19994. rm -f conftest.er1
  19995. cat conftest.err >&5
  19996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19997. (exit $ac_status); } &&
  19998. { ac_try='test -z "$ac_c_werror_flag"
  19999. || test ! -s conftest.err'
  20000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20001. (eval $ac_try) 2>&5
  20002. ac_status=$?
  20003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20004. (exit $ac_status); }; } &&
  20005. { ac_try='test -s conftest$ac_exeext'
  20006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20007. (eval $ac_try) 2>&5
  20008. ac_status=$?
  20009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20010. (exit $ac_status); }; }; then
  20011. eval "$as_ac_var=yes"
  20012. else
  20013. echo "$as_me: failed program was:" >&5
  20014. sed 's/^/| /' conftest.$ac_ext >&5
  20015. eval "$as_ac_var=no"
  20016. fi
  20017. rm -f conftest.err conftest.$ac_objext \
  20018. conftest$ac_exeext conftest.$ac_ext
  20019. fi
  20020. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20021. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20022. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20023. cat >>confdefs.h <<_ACEOF
  20024. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20025. _ACEOF
  20026. else
  20027. # strftime is in -lintl on SCO UNIX.
  20028. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20029. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20030. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20031. echo $ECHO_N "(cached) $ECHO_C" >&6
  20032. else
  20033. ac_check_lib_save_LIBS=$LIBS
  20034. LIBS="-lintl $LIBS"
  20035. cat >conftest.$ac_ext <<_ACEOF
  20036. /* confdefs.h. */
  20037. _ACEOF
  20038. cat confdefs.h >>conftest.$ac_ext
  20039. cat >>conftest.$ac_ext <<_ACEOF
  20040. /* end confdefs.h. */
  20041. /* Override any gcc2 internal prototype to avoid an error. */
  20042. #ifdef __cplusplus
  20043. extern "C"
  20044. #endif
  20045. /* We use char because int might match the return type of a gcc2
  20046. builtin and then its argument prototype would still apply. */
  20047. char strftime ();
  20048. int
  20049. main ()
  20050. {
  20051. strftime ();
  20052. ;
  20053. return 0;
  20054. }
  20055. _ACEOF
  20056. rm -f conftest.$ac_objext conftest$ac_exeext
  20057. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20058. (eval $ac_link) 2>conftest.er1
  20059. ac_status=$?
  20060. grep -v '^ *+' conftest.er1 >conftest.err
  20061. rm -f conftest.er1
  20062. cat conftest.err >&5
  20063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20064. (exit $ac_status); } &&
  20065. { ac_try='test -z "$ac_c_werror_flag"
  20066. || test ! -s conftest.err'
  20067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20068. (eval $ac_try) 2>&5
  20069. ac_status=$?
  20070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20071. (exit $ac_status); }; } &&
  20072. { ac_try='test -s conftest$ac_exeext'
  20073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20074. (eval $ac_try) 2>&5
  20075. ac_status=$?
  20076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20077. (exit $ac_status); }; }; then
  20078. ac_cv_lib_intl_strftime=yes
  20079. else
  20080. echo "$as_me: failed program was:" >&5
  20081. sed 's/^/| /' conftest.$ac_ext >&5
  20082. ac_cv_lib_intl_strftime=no
  20083. fi
  20084. rm -f conftest.err conftest.$ac_objext \
  20085. conftest$ac_exeext conftest.$ac_ext
  20086. LIBS=$ac_check_lib_save_LIBS
  20087. fi
  20088. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20089. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20090. if test $ac_cv_lib_intl_strftime = yes; then
  20091. cat >>confdefs.h <<\_ACEOF
  20092. #define HAVE_STRFTIME 1
  20093. _ACEOF
  20094. LIBS="-lintl $LIBS"
  20095. fi
  20096. fi
  20097. done
  20098. for ac_func in vprintf
  20099. do
  20100. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20101. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20102. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20103. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20104. echo $ECHO_N "(cached) $ECHO_C" >&6
  20105. else
  20106. cat >conftest.$ac_ext <<_ACEOF
  20107. /* confdefs.h. */
  20108. _ACEOF
  20109. cat confdefs.h >>conftest.$ac_ext
  20110. cat >>conftest.$ac_ext <<_ACEOF
  20111. /* end confdefs.h. */
  20112. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20113. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20114. #define $ac_func innocuous_$ac_func
  20115. /* System header to define __stub macros and hopefully few prototypes,
  20116. which can conflict with char $ac_func (); below.
  20117. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20118. <limits.h> exists even on freestanding compilers. */
  20119. #ifdef __STDC__
  20120. # include <limits.h>
  20121. #else
  20122. # include <assert.h>
  20123. #endif
  20124. #undef $ac_func
  20125. /* Override any gcc2 internal prototype to avoid an error. */
  20126. #ifdef __cplusplus
  20127. extern "C"
  20128. {
  20129. #endif
  20130. /* We use char because int might match the return type of a gcc2
  20131. builtin and then its argument prototype would still apply. */
  20132. char $ac_func ();
  20133. /* The GNU C library defines this for functions which it implements
  20134. to always fail with ENOSYS. Some functions are actually named
  20135. something starting with __ and the normal name is an alias. */
  20136. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20137. choke me
  20138. #else
  20139. char (*f) () = $ac_func;
  20140. #endif
  20141. #ifdef __cplusplus
  20142. }
  20143. #endif
  20144. int
  20145. main ()
  20146. {
  20147. return f != $ac_func;
  20148. ;
  20149. return 0;
  20150. }
  20151. _ACEOF
  20152. rm -f conftest.$ac_objext conftest$ac_exeext
  20153. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20154. (eval $ac_link) 2>conftest.er1
  20155. ac_status=$?
  20156. grep -v '^ *+' conftest.er1 >conftest.err
  20157. rm -f conftest.er1
  20158. cat conftest.err >&5
  20159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20160. (exit $ac_status); } &&
  20161. { ac_try='test -z "$ac_c_werror_flag"
  20162. || test ! -s conftest.err'
  20163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20164. (eval $ac_try) 2>&5
  20165. ac_status=$?
  20166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20167. (exit $ac_status); }; } &&
  20168. { ac_try='test -s conftest$ac_exeext'
  20169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20170. (eval $ac_try) 2>&5
  20171. ac_status=$?
  20172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20173. (exit $ac_status); }; }; then
  20174. eval "$as_ac_var=yes"
  20175. else
  20176. echo "$as_me: failed program was:" >&5
  20177. sed 's/^/| /' conftest.$ac_ext >&5
  20178. eval "$as_ac_var=no"
  20179. fi
  20180. rm -f conftest.err conftest.$ac_objext \
  20181. conftest$ac_exeext conftest.$ac_ext
  20182. fi
  20183. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20184. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20185. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20186. cat >>confdefs.h <<_ACEOF
  20187. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20188. _ACEOF
  20189. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20190. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20191. if test "${ac_cv_func__doprnt+set}" = set; then
  20192. echo $ECHO_N "(cached) $ECHO_C" >&6
  20193. else
  20194. cat >conftest.$ac_ext <<_ACEOF
  20195. /* confdefs.h. */
  20196. _ACEOF
  20197. cat confdefs.h >>conftest.$ac_ext
  20198. cat >>conftest.$ac_ext <<_ACEOF
  20199. /* end confdefs.h. */
  20200. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20201. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20202. #define _doprnt innocuous__doprnt
  20203. /* System header to define __stub macros and hopefully few prototypes,
  20204. which can conflict with char _doprnt (); below.
  20205. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20206. <limits.h> exists even on freestanding compilers. */
  20207. #ifdef __STDC__
  20208. # include <limits.h>
  20209. #else
  20210. # include <assert.h>
  20211. #endif
  20212. #undef _doprnt
  20213. /* Override any gcc2 internal prototype to avoid an error. */
  20214. #ifdef __cplusplus
  20215. extern "C"
  20216. {
  20217. #endif
  20218. /* We use char because int might match the return type of a gcc2
  20219. builtin and then its argument prototype would still apply. */
  20220. char _doprnt ();
  20221. /* The GNU C library defines this for functions which it implements
  20222. to always fail with ENOSYS. Some functions are actually named
  20223. something starting with __ and the normal name is an alias. */
  20224. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20225. choke me
  20226. #else
  20227. char (*f) () = _doprnt;
  20228. #endif
  20229. #ifdef __cplusplus
  20230. }
  20231. #endif
  20232. int
  20233. main ()
  20234. {
  20235. return f != _doprnt;
  20236. ;
  20237. return 0;
  20238. }
  20239. _ACEOF
  20240. rm -f conftest.$ac_objext conftest$ac_exeext
  20241. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20242. (eval $ac_link) 2>conftest.er1
  20243. ac_status=$?
  20244. grep -v '^ *+' conftest.er1 >conftest.err
  20245. rm -f conftest.er1
  20246. cat conftest.err >&5
  20247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20248. (exit $ac_status); } &&
  20249. { ac_try='test -z "$ac_c_werror_flag"
  20250. || test ! -s conftest.err'
  20251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20252. (eval $ac_try) 2>&5
  20253. ac_status=$?
  20254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20255. (exit $ac_status); }; } &&
  20256. { ac_try='test -s conftest$ac_exeext'
  20257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20258. (eval $ac_try) 2>&5
  20259. ac_status=$?
  20260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20261. (exit $ac_status); }; }; then
  20262. ac_cv_func__doprnt=yes
  20263. else
  20264. echo "$as_me: failed program was:" >&5
  20265. sed 's/^/| /' conftest.$ac_ext >&5
  20266. ac_cv_func__doprnt=no
  20267. fi
  20268. rm -f conftest.err conftest.$ac_objext \
  20269. conftest$ac_exeext conftest.$ac_ext
  20270. fi
  20271. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20272. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20273. if test $ac_cv_func__doprnt = yes; then
  20274. cat >>confdefs.h <<\_ACEOF
  20275. #define HAVE_DOPRNT 1
  20276. _ACEOF
  20277. fi
  20278. fi
  20279. done
  20280. 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
  20281. do
  20282. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20283. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20284. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20285. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20286. echo $ECHO_N "(cached) $ECHO_C" >&6
  20287. else
  20288. cat >conftest.$ac_ext <<_ACEOF
  20289. /* confdefs.h. */
  20290. _ACEOF
  20291. cat confdefs.h >>conftest.$ac_ext
  20292. cat >>conftest.$ac_ext <<_ACEOF
  20293. /* end confdefs.h. */
  20294. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20295. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20296. #define $ac_func innocuous_$ac_func
  20297. /* System header to define __stub macros and hopefully few prototypes,
  20298. which can conflict with char $ac_func (); below.
  20299. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20300. <limits.h> exists even on freestanding compilers. */
  20301. #ifdef __STDC__
  20302. # include <limits.h>
  20303. #else
  20304. # include <assert.h>
  20305. #endif
  20306. #undef $ac_func
  20307. /* Override any gcc2 internal prototype to avoid an error. */
  20308. #ifdef __cplusplus
  20309. extern "C"
  20310. {
  20311. #endif
  20312. /* We use char because int might match the return type of a gcc2
  20313. builtin and then its argument prototype would still apply. */
  20314. char $ac_func ();
  20315. /* The GNU C library defines this for functions which it implements
  20316. to always fail with ENOSYS. Some functions are actually named
  20317. something starting with __ and the normal name is an alias. */
  20318. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20319. choke me
  20320. #else
  20321. char (*f) () = $ac_func;
  20322. #endif
  20323. #ifdef __cplusplus
  20324. }
  20325. #endif
  20326. int
  20327. main ()
  20328. {
  20329. return f != $ac_func;
  20330. ;
  20331. return 0;
  20332. }
  20333. _ACEOF
  20334. rm -f conftest.$ac_objext conftest$ac_exeext
  20335. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20336. (eval $ac_link) 2>conftest.er1
  20337. ac_status=$?
  20338. grep -v '^ *+' conftest.er1 >conftest.err
  20339. rm -f conftest.er1
  20340. cat conftest.err >&5
  20341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20342. (exit $ac_status); } &&
  20343. { ac_try='test -z "$ac_c_werror_flag"
  20344. || test ! -s conftest.err'
  20345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20346. (eval $ac_try) 2>&5
  20347. ac_status=$?
  20348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20349. (exit $ac_status); }; } &&
  20350. { ac_try='test -s conftest$ac_exeext'
  20351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20352. (eval $ac_try) 2>&5
  20353. ac_status=$?
  20354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20355. (exit $ac_status); }; }; then
  20356. eval "$as_ac_var=yes"
  20357. else
  20358. echo "$as_me: failed program was:" >&5
  20359. sed 's/^/| /' conftest.$ac_ext >&5
  20360. eval "$as_ac_var=no"
  20361. fi
  20362. rm -f conftest.err conftest.$ac_objext \
  20363. conftest$ac_exeext conftest.$ac_ext
  20364. fi
  20365. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20366. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20367. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20368. cat >>confdefs.h <<_ACEOF
  20369. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20370. _ACEOF
  20371. fi
  20372. done
  20373. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20374. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20375. # Check whether --enable-debug or --disable-debug was given.
  20376. if test "${enable_debug+set}" = set; then
  20377. enableval="$enable_debug"
  20378. echo "$as_me:$LINENO: result: yes" >&5
  20379. echo "${ECHO_T}yes" >&6
  20380. debug_defs="-DDEBUG -DMCC_DEBUG"
  20381. else
  20382. echo "$as_me:$LINENO: result: no" >&5
  20383. echo "${ECHO_T}no" >&6
  20384. debug_defs=""
  20385. fi;
  20386. # Used for legacy style packaging where we bundle all of the dependencies.
  20387. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20388. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20389. # Check whether --enable-bundle or --disable-bundle was given.
  20390. if test "${enable_bundle+set}" = set; then
  20391. enableval="$enable_bundle"
  20392. echo "$as_me:$LINENO: result: yes" >&5
  20393. echo "${ECHO_T}yes" >&6
  20394. bundle="1";
  20395. else
  20396. echo "$as_me:$LINENO: result: no" >&5
  20397. echo "${ECHO_T}no" >&6
  20398. bundle="";
  20399. fi;
  20400. if test "$bundle" = "1"; then
  20401. BUNDLE_TRUE=
  20402. BUNDLE_FALSE='#'
  20403. else
  20404. BUNDLE_TRUE='#'
  20405. BUNDLE_FALSE=
  20406. fi
  20407. # these enables are for optional or experimental features
  20408. if test -z "$enable_pam_passthru" ; then
  20409. enable_pam_passthru=yes # if not set on cmdline, set default
  20410. fi
  20411. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20412. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20413. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20414. if test "${enable_pam_passthru+set}" = set; then
  20415. enableval="$enable_pam_passthru"
  20416. fi;
  20417. if test "$enable_pam_passthru" = yes ; then
  20418. echo "$as_me:$LINENO: result: yes" >&5
  20419. echo "${ECHO_T}yes" >&6
  20420. cat >>confdefs.h <<\_ACEOF
  20421. #define ENABLE_PAM_PASSTHRU 1
  20422. _ACEOF
  20423. else
  20424. echo "$as_me:$LINENO: result: no" >&5
  20425. echo "${ECHO_T}no" >&6
  20426. fi
  20427. if test "$enable_pam_passthru" = "yes"; then
  20428. enable_pam_passthru_TRUE=
  20429. enable_pam_passthru_FALSE='#'
  20430. else
  20431. enable_pam_passthru_TRUE='#'
  20432. enable_pam_passthru_FALSE=
  20433. fi
  20434. if test -z "$enable_dna" ; then
  20435. enable_dna=yes # if not set on cmdline, set default
  20436. fi
  20437. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20438. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20439. # Check whether --enable-dna or --disable-dna was given.
  20440. if test "${enable_dna+set}" = set; then
  20441. enableval="$enable_dna"
  20442. fi;
  20443. if test "$enable_dna" = yes ; then
  20444. echo "$as_me:$LINENO: result: yes" >&5
  20445. echo "${ECHO_T}yes" >&6
  20446. cat >>confdefs.h <<\_ACEOF
  20447. #define ENABLE_DNA 1
  20448. _ACEOF
  20449. else
  20450. echo "$as_me:$LINENO: result: no" >&5
  20451. echo "${ECHO_T}no" >&6
  20452. fi
  20453. if test "$enable_dna" = "yes"; then
  20454. enable_dna_TRUE=
  20455. enable_dna_FALSE='#'
  20456. else
  20457. enable_dna_TRUE='#'
  20458. enable_dna_FALSE=
  20459. fi
  20460. if test -z "$enable_ldapi" ; then
  20461. enable_ldapi=yes # if not set on cmdline, set default
  20462. fi
  20463. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20464. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20465. # Check whether --enable-ldapi or --disable-ldapi was given.
  20466. if test "${enable_ldapi+set}" = set; then
  20467. enableval="$enable_ldapi"
  20468. fi;
  20469. if test "$enable_ldapi" = yes ; then
  20470. echo "$as_me:$LINENO: result: yes" >&5
  20471. echo "${ECHO_T}yes" >&6
  20472. cat >>confdefs.h <<\_ACEOF
  20473. #define ENABLE_LDAPI 1
  20474. _ACEOF
  20475. else
  20476. echo "$as_me:$LINENO: result: no" >&5
  20477. echo "${ECHO_T}no" >&6
  20478. fi
  20479. if test "$enable_ldapi" = "yes"; then
  20480. enable_ldapi_TRUE=
  20481. enable_ldapi_FALSE='#'
  20482. else
  20483. enable_ldapi_TRUE='#'
  20484. enable_ldapi_FALSE=
  20485. fi
  20486. # the default prefix - override with --prefix or --with-fhs
  20487. # BEGIN COPYRIGHT BLOCK
  20488. # Copyright (C) 2006 Red Hat, Inc.
  20489. # All rights reserved.
  20490. #
  20491. # This program is free software; you can redistribute it and/or
  20492. # modify it under the terms of the GNU General Public License
  20493. # as published by the Free Software Foundation; either version 2
  20494. # of the License, or (at your option) any later version.
  20495. #
  20496. # This program is distributed in the hope that it will be useful,
  20497. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20498. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20499. # GNU General Public License for more details.
  20500. #
  20501. # You should have received a copy of the GNU General Public License
  20502. # along with this program; if not, write to the Free Software
  20503. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20504. #
  20505. # END COPYRIGHT BLOCK
  20506. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20507. echo "$as_me: checking for FHS..." >&6;}
  20508. # check for --with-fhs
  20509. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20510. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20511. # Check whether --with-fhs or --without-fhs was given.
  20512. if test "${with_fhs+set}" = set; then
  20513. withval="$with_fhs"
  20514. with_fhs=yes
  20515. else
  20516. echo "$as_me:$LINENO: result: no" >&5
  20517. echo "${ECHO_T}no" >&6
  20518. fi;
  20519. if test "$with_fhs" = "yes"; then
  20520. cat >>confdefs.h <<\_ACEOF
  20521. #define IS_FHS 1
  20522. _ACEOF
  20523. fi
  20524. # installation paths - by default, configure will just
  20525. # use /usr as the prefix for everything, which means
  20526. # /usr/etc and /usr/var. FHS sez to use /etc and /var.
  20527. if test "$with_fhs" = "yes"; then
  20528. ac_default_prefix=/usr
  20529. prefix=$ac_default_prefix
  20530. exec_prefix=$prefix
  20531. sysconfdir='/etc'
  20532. localstatedir='/var'
  20533. fi
  20534. # relative to sysconfdir
  20535. configdir=/$PACKAGE_NAME/config
  20536. # relative to datadir
  20537. sampledatadir=/$PACKAGE_NAME/data
  20538. # relative to sysconfdir
  20539. propertydir=/$PACKAGE_NAME/property
  20540. # relative to sysconfdir
  20541. schemadir=/$PACKAGE_NAME/schema
  20542. # relative to libdir
  20543. serverdir=/$PACKAGE_NAME
  20544. # relative to libdir
  20545. serverplugindir=/$PACKAGE_NAME/plugins
  20546. # relative to datadir
  20547. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20548. # check for --with-instconfigdir
  20549. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20550. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20551. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20552. if test "${with_instconfigdir+set}" = set; then
  20553. withval="$with_instconfigdir"
  20554. if test $withval = yes ; then
  20555. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20556. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20557. { (exit 1); exit 1; }; }
  20558. fi
  20559. instconfigdir="$withval"
  20560. else
  20561. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20562. fi;
  20563. # WINNT should be true if building on Windows system not using
  20564. # cygnus, mingw, or the like and using cmd.exe as the shell
  20565. if false; then
  20566. WINNT_TRUE=
  20567. WINNT_FALSE='#'
  20568. else
  20569. WINNT_TRUE='#'
  20570. WINNT_FALSE=
  20571. fi
  20572. # Deal with platform dependent defines
  20573. # relative to sysconfdir
  20574. initdir=/rc.d
  20575. case $host in
  20576. *-*-linux*)
  20577. cat >>confdefs.h <<\_ACEOF
  20578. #define XP_UNIX 1
  20579. _ACEOF
  20580. cat >>confdefs.h <<\_ACEOF
  20581. #define Linux 1
  20582. _ACEOF
  20583. cat >>confdefs.h <<\_ACEOF
  20584. #define LINUX 1
  20585. _ACEOF
  20586. cat >>confdefs.h <<\_ACEOF
  20587. #define LINUX2_0 1
  20588. _ACEOF
  20589. cat >>confdefs.h <<\_ACEOF
  20590. #define LINUX2_2 1
  20591. _ACEOF
  20592. cat >>confdefs.h <<\_ACEOF
  20593. #define LINUX2_4 1
  20594. _ACEOF
  20595. platform="linux"
  20596. # relative to sysconfdir
  20597. initdir=/rc.d/init.d
  20598. ;;
  20599. ia64-hp-hpux*)
  20600. cat >>confdefs.h <<\_ACEOF
  20601. #define XP_UNIX 1
  20602. _ACEOF
  20603. cat >>confdefs.h <<\_ACEOF
  20604. #define hpux 1
  20605. _ACEOF
  20606. cat >>confdefs.h <<\_ACEOF
  20607. #define HPUX 1
  20608. _ACEOF
  20609. cat >>confdefs.h <<\_ACEOF
  20610. #define HPUX11 1
  20611. _ACEOF
  20612. cat >>confdefs.h <<\_ACEOF
  20613. #define HPUX11_23 1
  20614. _ACEOF
  20615. cat >>confdefs.h <<\_ACEOF
  20616. #define CPU_ia64
  20617. _ACEOF
  20618. cat >>confdefs.h <<\_ACEOF
  20619. #define OS_hpux 1
  20620. _ACEOF
  20621. cat >>confdefs.h <<\_ACEOF
  20622. #define _POSIX_C_SOURCE 199506L
  20623. _ACEOF
  20624. cat >>confdefs.h <<\_ACEOF
  20625. #define _HPUX_SOURCE 1
  20626. _ACEOF
  20627. platform="hpux"
  20628. ;;
  20629. hppa*-hp-hpux*)
  20630. cat >>confdefs.h <<\_ACEOF
  20631. #define XP_UNIX 1
  20632. _ACEOF
  20633. cat >>confdefs.h <<\_ACEOF
  20634. #define hpux 1
  20635. _ACEOF
  20636. cat >>confdefs.h <<\_ACEOF
  20637. #define HPUX 1
  20638. _ACEOF
  20639. cat >>confdefs.h <<\_ACEOF
  20640. #define HPUX11 1
  20641. _ACEOF
  20642. cat >>confdefs.h <<\_ACEOF
  20643. #define HPUX11_11 1
  20644. _ACEOF
  20645. cat >>confdefs.h <<\_ACEOF
  20646. #define CPU_hppa
  20647. _ACEOF
  20648. cat >>confdefs.h <<\_ACEOF
  20649. #define OS_hpux 1
  20650. _ACEOF
  20651. cat >>confdefs.h <<\_ACEOF
  20652. #define _POSIX_C_SOURCE 199506L
  20653. _ACEOF
  20654. cat >>confdefs.h <<\_ACEOF
  20655. #define _HPUX_SOURCE 1
  20656. _ACEOF
  20657. platform="hpux"
  20658. ;;
  20659. sparc-sun-solaris*)
  20660. cat >>confdefs.h <<\_ACEOF
  20661. #define XP_UNIX 1
  20662. _ACEOF
  20663. cat >>confdefs.h <<\_ACEOF
  20664. #define SVR4 1
  20665. _ACEOF
  20666. cat >>confdefs.h <<\_ACEOF
  20667. #define __svr4 1
  20668. _ACEOF
  20669. cat >>confdefs.h <<\_ACEOF
  20670. #define __svr4__ 1
  20671. _ACEOF
  20672. cat >>confdefs.h <<\_ACEOF
  20673. #define _SVID_GETTOD 1
  20674. _ACEOF
  20675. cat >>confdefs.h <<\_ACEOF
  20676. #define SOLARIS 1
  20677. _ACEOF
  20678. cat >>confdefs.h <<\_ACEOF
  20679. #define CPU_sparc
  20680. _ACEOF
  20681. cat >>confdefs.h <<\_ACEOF
  20682. #define OS_solaris 1
  20683. _ACEOF
  20684. cat >>confdefs.h <<\_ACEOF
  20685. #define sunos5 1
  20686. _ACEOF
  20687. cat >>confdefs.h <<\_ACEOF
  20688. #define OSVERSION 509
  20689. _ACEOF
  20690. cat >>confdefs.h <<\_ACEOF
  20691. #define _REENTRANT 1
  20692. _ACEOF
  20693. LIBSOCKET=-lsocket
  20694. LIBSOCKET=$LIBSOCKET
  20695. LIBNSL=-lnsl
  20696. LIBNSL=$LIBNSL
  20697. LIBDL=-ldl
  20698. LIBDL=$LIBDL
  20699. LIBCSTD=-lCstd
  20700. LIBCSTD=$LIBCSTD
  20701. LIBCRUN=-lCrun
  20702. LIBCRUN=$LIBCRUN
  20703. platform="solaris"
  20704. # relative to sysconfdir
  20705. initdir=/init.d
  20706. ;;
  20707. *)
  20708. platform=""
  20709. ;;
  20710. esac
  20711. if test "$platform" = "hpux"; then
  20712. HPUX_TRUE=
  20713. HPUX_FALSE='#'
  20714. else
  20715. HPUX_TRUE='#'
  20716. HPUX_FALSE=
  20717. fi
  20718. if test "$platform" = "solaris"; then
  20719. SOLARIS_TRUE=
  20720. SOLARIS_FALSE='#'
  20721. else
  20722. SOLARIS_TRUE='#'
  20723. SOLARIS_FALSE=
  20724. fi
  20725. # Check for library dependencies
  20726. # BEGIN COPYRIGHT BLOCK
  20727. # Copyright (C) 2007 Red Hat, Inc.
  20728. # All rights reserved.
  20729. #
  20730. # This program is free software; you can redistribute it and/or
  20731. # modify it under the terms of the GNU General Public License
  20732. # as published by the Free Software Foundation; either version 2
  20733. # of the License, or (at your option) any later version.
  20734. #
  20735. # This program is distributed in the hope that it will be useful,
  20736. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20737. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20738. # GNU General Public License for more details.
  20739. #
  20740. # You should have received a copy of the GNU General Public License
  20741. # along with this program; if not, write to the Free Software
  20742. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20743. #
  20744. # END COPYRIGHT BLOCK
  20745. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  20746. echo "$as_me: checking for NSPR..." >&6;}
  20747. # check for --with-nspr
  20748. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  20749. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  20750. # Check whether --with-nspr or --without-nspr was given.
  20751. if test "${with_nspr+set}" = set; then
  20752. withval="$with_nspr"
  20753. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  20754. then
  20755. echo "$as_me:$LINENO: result: using $withval" >&5
  20756. echo "${ECHO_T}using $withval" >&6
  20757. NSPRDIR=$withval
  20758. nspr_inc="-I$NSPRDIR/include"
  20759. nspr_lib="-L$NSPRDIR/lib"
  20760. nspr_libdir="$NSPRDIR/lib"
  20761. else
  20762. echo
  20763. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20764. echo "$as_me: error: $withval not found" >&2;}
  20765. { (exit 1); exit 1; }; }
  20766. fi
  20767. else
  20768. echo "$as_me:$LINENO: result: no" >&5
  20769. echo "${ECHO_T}no" >&6
  20770. fi;
  20771. # check for --with-nspr-inc
  20772. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  20773. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  20774. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  20775. if test "${with_nspr_inc+set}" = set; then
  20776. withval="$with_nspr_inc"
  20777. if test -e "$withval"/nspr.h
  20778. then
  20779. echo "$as_me:$LINENO: result: using $withval" >&5
  20780. echo "${ECHO_T}using $withval" >&6
  20781. nspr_inc="-I$withval"
  20782. else
  20783. echo
  20784. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20785. echo "$as_me: error: $withval not found" >&2;}
  20786. { (exit 1); exit 1; }; }
  20787. fi
  20788. else
  20789. echo "$as_me:$LINENO: result: no" >&5
  20790. echo "${ECHO_T}no" >&6
  20791. fi;
  20792. # check for --with-nspr-lib
  20793. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  20794. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  20795. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  20796. if test "${with_nspr_lib+set}" = set; then
  20797. withval="$with_nspr_lib"
  20798. if test -d "$withval"
  20799. then
  20800. echo "$as_me:$LINENO: result: using $withval" >&5
  20801. echo "${ECHO_T}using $withval" >&6
  20802. nspr_lib="-L$withval"
  20803. nspr_libdir="$withval"
  20804. else
  20805. echo
  20806. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20807. echo "$as_me: error: $withval not found" >&2;}
  20808. { (exit 1); exit 1; }; }
  20809. fi
  20810. else
  20811. echo "$as_me:$LINENO: result: no" >&5
  20812. echo "${ECHO_T}no" >&6
  20813. fi;
  20814. # if NSPR is not found yet, try pkg-config
  20815. # last resort
  20816. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  20817. # Extract the first word of "pkg-config", so it can be a program name with args.
  20818. set dummy pkg-config; ac_word=$2
  20819. echo "$as_me:$LINENO: checking for $ac_word" >&5
  20820. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  20821. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  20822. echo $ECHO_N "(cached) $ECHO_C" >&6
  20823. else
  20824. case $PKG_CONFIG in
  20825. [\\/]* | ?:[\\/]*)
  20826. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20827. ;;
  20828. *)
  20829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20830. for as_dir in $PATH
  20831. do
  20832. IFS=$as_save_IFS
  20833. test -z "$as_dir" && as_dir=.
  20834. for ac_exec_ext in '' $ac_executable_extensions; do
  20835. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20836. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20837. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20838. break 2
  20839. fi
  20840. done
  20841. done
  20842. ;;
  20843. esac
  20844. fi
  20845. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20846. if test -n "$PKG_CONFIG"; then
  20847. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  20848. echo "${ECHO_T}$PKG_CONFIG" >&6
  20849. else
  20850. echo "$as_me:$LINENO: result: no" >&5
  20851. echo "${ECHO_T}no" >&6
  20852. fi
  20853. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  20854. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  20855. if test -n "$PKG_CONFIG"; then
  20856. if $PKG_CONFIG --exists nspr; then
  20857. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  20858. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  20859. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  20860. echo "$as_me:$LINENO: result: using system NSPR" >&5
  20861. echo "${ECHO_T}using system NSPR" >&6
  20862. elif $PKG_CONFIG --exists dirsec-nspr; then
  20863. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  20864. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  20865. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  20866. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  20867. echo "${ECHO_T}using system dirsec NSPR" >&6
  20868. else
  20869. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  20870. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  20871. { (exit 1); exit 1; }; }
  20872. fi
  20873. fi
  20874. fi
  20875. # BEGIN COPYRIGHT BLOCK
  20876. # Copyright (C) 2007 Red Hat, Inc.
  20877. # All rights reserved.
  20878. #
  20879. # This program is free software; you can redistribute it and/or
  20880. # modify it under the terms of the GNU General Public License
  20881. # as published by the Free Software Foundation; either version 2
  20882. # of the License, or (at your option) any later version.
  20883. #
  20884. # This program is distributed in the hope that it will be useful,
  20885. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20886. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20887. # GNU General Public License for more details.
  20888. #
  20889. # You should have received a copy of the GNU General Public License
  20890. # along with this program; if not, write to the Free Software
  20891. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20892. #
  20893. # END COPYRIGHT BLOCK
  20894. { echo "$as_me:$LINENO: checking for NSS..." >&5
  20895. echo "$as_me: checking for NSS..." >&6;}
  20896. # check for --with-nss
  20897. echo "$as_me:$LINENO: checking for --with-nss" >&5
  20898. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  20899. # Check whether --with-nss or --without-nss was given.
  20900. if test "${with_nss+set}" = set; then
  20901. withval="$with_nss"
  20902. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  20903. then
  20904. echo "$as_me:$LINENO: result: using $withval" >&5
  20905. echo "${ECHO_T}using $withval" >&6
  20906. NSSDIR=$withval
  20907. nss_inc="-I$NSSDIR/include"
  20908. nss_lib="-L$NSSDIR/lib"
  20909. nss_libdir="$NSSDIR/lib"
  20910. else
  20911. echo
  20912. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20913. echo "$as_me: error: $withval not found" >&2;}
  20914. { (exit 1); exit 1; }; }
  20915. fi
  20916. else
  20917. echo "$as_me:$LINENO: result: no" >&5
  20918. echo "${ECHO_T}no" >&6
  20919. fi;
  20920. # check for --with-nss-inc
  20921. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  20922. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  20923. # Check whether --with-nss-inc or --without-nss-inc was given.
  20924. if test "${with_nss_inc+set}" = set; then
  20925. withval="$with_nss_inc"
  20926. if test -e "$withval"/nss.h
  20927. then
  20928. echo "$as_me:$LINENO: result: using $withval" >&5
  20929. echo "${ECHO_T}using $withval" >&6
  20930. nss_inc="-I$withval"
  20931. else
  20932. echo
  20933. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20934. echo "$as_me: error: $withval not found" >&2;}
  20935. { (exit 1); exit 1; }; }
  20936. fi
  20937. else
  20938. echo "$as_me:$LINENO: result: no" >&5
  20939. echo "${ECHO_T}no" >&6
  20940. fi;
  20941. # check for --with-nss-lib
  20942. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  20943. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  20944. # Check whether --with-nss-lib or --without-nss-lib was given.
  20945. if test "${with_nss_lib+set}" = set; then
  20946. withval="$with_nss_lib"
  20947. if test -d "$withval"
  20948. then
  20949. echo "$as_me:$LINENO: result: using $withval" >&5
  20950. echo "${ECHO_T}using $withval" >&6
  20951. nss_lib="-L$withval"
  20952. nss_libdir="$withval"
  20953. else
  20954. echo
  20955. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20956. echo "$as_me: error: $withval not found" >&2;}
  20957. { (exit 1); exit 1; }; }
  20958. fi
  20959. else
  20960. echo "$as_me:$LINENO: result: no" >&5
  20961. echo "${ECHO_T}no" >&6
  20962. fi;
  20963. # if NSS is not found yet, try pkg-config
  20964. # last resort
  20965. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  20966. # Extract the first word of "pkg-config", so it can be a program name with args.
  20967. set dummy pkg-config; ac_word=$2
  20968. echo "$as_me:$LINENO: checking for $ac_word" >&5
  20969. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  20970. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  20971. echo $ECHO_N "(cached) $ECHO_C" >&6
  20972. else
  20973. case $PKG_CONFIG in
  20974. [\\/]* | ?:[\\/]*)
  20975. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20976. ;;
  20977. *)
  20978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20979. for as_dir in $PATH
  20980. do
  20981. IFS=$as_save_IFS
  20982. test -z "$as_dir" && as_dir=.
  20983. for ac_exec_ext in '' $ac_executable_extensions; do
  20984. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20985. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20986. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20987. break 2
  20988. fi
  20989. done
  20990. done
  20991. ;;
  20992. esac
  20993. fi
  20994. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20995. if test -n "$PKG_CONFIG"; then
  20996. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  20997. echo "${ECHO_T}$PKG_CONFIG" >&6
  20998. else
  20999. echo "$as_me:$LINENO: result: no" >&5
  21000. echo "${ECHO_T}no" >&6
  21001. fi
  21002. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21003. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21004. if test -n "$PKG_CONFIG"; then
  21005. if $PKG_CONFIG --exists nss; then
  21006. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21007. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21008. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21009. echo "$as_me:$LINENO: result: using system NSS" >&5
  21010. echo "${ECHO_T}using system NSS" >&6
  21011. elif $PKG_CONFIG --exists dirsec-nss; then
  21012. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21013. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21014. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21015. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21016. echo "${ECHO_T}using system dirsec NSS" >&6
  21017. else
  21018. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21019. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21020. { (exit 1); exit 1; }; }
  21021. fi
  21022. fi
  21023. fi
  21024. # BEGIN COPYRIGHT BLOCK
  21025. # Copyright (C) 2007 Red Hat, Inc.
  21026. # All rights reserved.
  21027. #
  21028. # This program is free software; you can redistribute it and/or
  21029. # modify it under the terms of the GNU General Public License
  21030. # as published by the Free Software Foundation; either version 2
  21031. # of the License, or (at your option) any later version.
  21032. #
  21033. # This program is distributed in the hope that it will be useful,
  21034. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21035. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21036. # GNU General Public License for more details.
  21037. #
  21038. # You should have received a copy of the GNU General Public License
  21039. # along with this program; if not, write to the Free Software
  21040. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21041. #
  21042. # END COPYRIGHT BLOCK
  21043. { echo "$as_me:$LINENO: checking for LDAPSDK..." >&5
  21044. echo "$as_me: checking for LDAPSDK..." >&6;}
  21045. # check for --with-ldapsdk
  21046. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  21047. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  21048. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  21049. if test "${with_ldapsdk+set}" = set; then
  21050. withval="$with_ldapsdk"
  21051. if test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21052. then
  21053. echo "$as_me:$LINENO: result: using $withval" >&5
  21054. echo "${ECHO_T}using $withval" >&6
  21055. LDAPSDKDIR=$withval
  21056. ldapsdk_inc="-I$LDAPSDKDIR/include"
  21057. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  21058. ldapsdk_libdir="$LDAPSDKDIR/lib"
  21059. ldapsdk_bindir="$LDAPSDKDIR/bin"
  21060. else
  21061. echo
  21062. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21063. echo "$as_me: error: $withval not found" >&2;}
  21064. { (exit 1); exit 1; }; }
  21065. fi
  21066. else
  21067. echo "$as_me:$LINENO: result: no" >&5
  21068. echo "${ECHO_T}no" >&6
  21069. fi;
  21070. # check for --with-ldapsdk-inc
  21071. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  21072. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  21073. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  21074. if test "${with_ldapsdk_inc+set}" = set; then
  21075. withval="$with_ldapsdk_inc"
  21076. if test -e "$withval"/ldap.h
  21077. then
  21078. echo "$as_me:$LINENO: result: using $withval" >&5
  21079. echo "${ECHO_T}using $withval" >&6
  21080. ldapsdk_inc="-I$withval"
  21081. else
  21082. echo
  21083. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21084. echo "$as_me: error: $withval not found" >&2;}
  21085. { (exit 1); exit 1; }; }
  21086. fi
  21087. else
  21088. echo "$as_me:$LINENO: result: no" >&5
  21089. echo "${ECHO_T}no" >&6
  21090. fi;
  21091. # check for --with-ldapsdk-lib
  21092. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  21093. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  21094. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  21095. if test "${with_ldapsdk_lib+set}" = set; then
  21096. withval="$with_ldapsdk_lib"
  21097. if test -d "$withval"
  21098. then
  21099. echo "$as_me:$LINENO: result: using $withval" >&5
  21100. echo "${ECHO_T}using $withval" >&6
  21101. ldapsdk_lib="-L$withval"
  21102. ldapsdk_libdir="$withval"
  21103. else
  21104. echo
  21105. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21106. echo "$as_me: error: $withval not found" >&2;}
  21107. { (exit 1); exit 1; }; }
  21108. fi
  21109. else
  21110. echo "$as_me:$LINENO: result: no" >&5
  21111. echo "${ECHO_T}no" >&6
  21112. fi;
  21113. # if LDAPSDK is not found yet, try pkg-config
  21114. # last resort
  21115. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  21116. # Extract the first word of "pkg-config", so it can be a program name with args.
  21117. set dummy pkg-config; ac_word=$2
  21118. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21119. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21120. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21121. echo $ECHO_N "(cached) $ECHO_C" >&6
  21122. else
  21123. case $PKG_CONFIG in
  21124. [\\/]* | ?:[\\/]*)
  21125. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21126. ;;
  21127. *)
  21128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21129. for as_dir in $PATH
  21130. do
  21131. IFS=$as_save_IFS
  21132. test -z "$as_dir" && as_dir=.
  21133. for ac_exec_ext in '' $ac_executable_extensions; do
  21134. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21135. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21136. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21137. break 2
  21138. fi
  21139. done
  21140. done
  21141. ;;
  21142. esac
  21143. fi
  21144. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21145. if test -n "$PKG_CONFIG"; then
  21146. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21147. echo "${ECHO_T}$PKG_CONFIG" >&6
  21148. else
  21149. echo "$as_me:$LINENO: result: no" >&5
  21150. echo "${ECHO_T}no" >&6
  21151. fi
  21152. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  21153. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  21154. if test -n "$PKG_CONFIG"; then
  21155. if $PKG_CONFIG --exists mozldap6; then
  21156. mozldappkg=mozldap6
  21157. elif $PKG_CONFIG --exists mozldap; then
  21158. mozldappkg=mozldap
  21159. else
  21160. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&5
  21161. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&2;}
  21162. { (exit 1); exit 1; }; }
  21163. fi
  21164. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  21165. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  21166. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  21167. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  21168. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  21169. echo "${ECHO_T}using system $mozldappkg" >&6
  21170. fi
  21171. fi
  21172. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  21173. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&5
  21174. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&2;}
  21175. { (exit 1); exit 1; }; }
  21176. fi
  21177. if test -z "$ldapsdk_bindir" ; then
  21178. if -d $libdir/mozldap6 ; then
  21179. ldapsdk_bindir=$libdir/mozldap6
  21180. else
  21181. ldapsdk_bindir=$libdir/mozldap
  21182. fi
  21183. fi
  21184. save_cppflags="$CPPFLAGS"
  21185. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  21186. echo "$as_me:$LINENO: checking for ldap.h" >&5
  21187. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  21188. if test "${ac_cv_header_ldap_h+set}" = set; then
  21189. echo $ECHO_N "(cached) $ECHO_C" >&6
  21190. else
  21191. cat >conftest.$ac_ext <<_ACEOF
  21192. /* confdefs.h. */
  21193. _ACEOF
  21194. cat confdefs.h >>conftest.$ac_ext
  21195. cat >>conftest.$ac_ext <<_ACEOF
  21196. /* end confdefs.h. */
  21197. #include <ldap-standard.h>
  21198. #if LDAP_VENDOR_VERSION < 600
  21199. #error The LDAP C SDK version is not supported
  21200. #endif
  21201. #include <ldap.h>
  21202. _ACEOF
  21203. rm -f conftest.$ac_objext
  21204. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21205. (eval $ac_compile) 2>conftest.er1
  21206. ac_status=$?
  21207. grep -v '^ *+' conftest.er1 >conftest.err
  21208. rm -f conftest.er1
  21209. cat conftest.err >&5
  21210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21211. (exit $ac_status); } &&
  21212. { ac_try='test -z "$ac_c_werror_flag"
  21213. || test ! -s conftest.err'
  21214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21215. (eval $ac_try) 2>&5
  21216. ac_status=$?
  21217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21218. (exit $ac_status); }; } &&
  21219. { ac_try='test -s conftest.$ac_objext'
  21220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21221. (eval $ac_try) 2>&5
  21222. ac_status=$?
  21223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21224. (exit $ac_status); }; }; then
  21225. ac_cv_header_ldap_h=yes
  21226. else
  21227. echo "$as_me: failed program was:" >&5
  21228. sed 's/^/| /' conftest.$ac_ext >&5
  21229. ac_cv_header_ldap_h=no
  21230. fi
  21231. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21232. fi
  21233. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  21234. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  21235. if test $ac_cv_header_ldap_h = yes; then
  21236. isversion6=1
  21237. else
  21238. isversion6=
  21239. fi
  21240. CPPFLAGS="$save_cppflags"
  21241. if test -z "$isversion6" ; then
  21242. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  21243. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  21244. { (exit 1); exit 1; }; }
  21245. fi
  21246. # BEGIN COPYRIGHT BLOCK
  21247. # Copyright (C) 2007 Red Hat, Inc.
  21248. # All rights reserved.
  21249. #
  21250. # This program is free software; you can redistribute it and/or
  21251. # modify it under the terms of the GNU General Public License
  21252. # as published by the Free Software Foundation; either version 2
  21253. # of the License, or (at your option) any later version.
  21254. #
  21255. # This program is distributed in the hope that it will be useful,
  21256. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21257. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21258. # GNU General Public License for more details.
  21259. #
  21260. # You should have received a copy of the GNU General Public License
  21261. # along with this program; if not, write to the Free Software
  21262. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21263. #
  21264. # END COPYRIGHT BLOCK
  21265. { echo "$as_me:$LINENO: checking for db..." >&5
  21266. echo "$as_me: checking for db..." >&6;}
  21267. echo "$as_me:$LINENO: checking for --with-db" >&5
  21268. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  21269. # Check whether --with-db or --without-db was given.
  21270. if test "${with_db+set}" = set; then
  21271. withval="$with_db"
  21272. if test "$withval" = "yes"; then
  21273. echo "$as_me:$LINENO: result: yes" >&5
  21274. echo "${ECHO_T}yes" >&6
  21275. if test -f "/usr/include/db.h"; then
  21276. db_incdir="/usr/include"
  21277. db_inc="-I/usr/include"
  21278. else
  21279. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  21280. echo "$as_me: error: db.h not found" >&2;}
  21281. { (exit 1); exit 1; }; }
  21282. fi
  21283. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21284. echo "$as_me:$LINENO: result: using $withval" >&5
  21285. echo "${ECHO_T}using $withval" >&6
  21286. DBDIR=$withval
  21287. db_lib="-L$DBDIR/lib"
  21288. db_libdir="$DBDIR/lib"
  21289. db_incdir="$DBDIR/include"
  21290. if ! test -e "$db_incdir/db.h" ; then
  21291. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21292. echo "$as_me: error: $withval include dir not found" >&2;}
  21293. { (exit 1); exit 1; }; }
  21294. fi
  21295. db_inc="-I$db_incdir"
  21296. else
  21297. echo
  21298. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21299. echo "$as_me: error: $withval not found" >&2;}
  21300. { (exit 1); exit 1; }; }
  21301. fi
  21302. else
  21303. echo "$as_me:$LINENO: result: no" >&5
  21304. echo "${ECHO_T}no" >&6
  21305. fi;
  21306. if test -z "$db_inc"; then
  21307. echo "$as_me:$LINENO: checking for db.h" >&5
  21308. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  21309. if test -f "/usr/include/db.h"; then
  21310. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  21311. echo "${ECHO_T}using /usr/include/db.h" >&6
  21312. db_incdir="/usr/include"
  21313. db_inc="-I/usr/include"
  21314. else
  21315. echo "$as_me:$LINENO: result: no" >&5
  21316. echo "${ECHO_T}no" >&6
  21317. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  21318. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  21319. { (exit 1); exit 1; }; }
  21320. fi
  21321. fi
  21322. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  21323. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  21324. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  21325. db_libver=${db_ver_maj}.${db_ver_min}
  21326. save_ldflags="$LDFLAGS"
  21327. LDFLAGS="$db_lib $LDFLAGS"
  21328. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  21329. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  21330. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  21331. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21332. echo $ECHO_N "(cached) $ECHO_C" >&6
  21333. else
  21334. ac_check_lib_save_LIBS=$LIBS
  21335. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  21336. cat >conftest.$ac_ext <<_ACEOF
  21337. /* confdefs.h. */
  21338. _ACEOF
  21339. cat confdefs.h >>conftest.$ac_ext
  21340. cat >>conftest.$ac_ext <<_ACEOF
  21341. /* end confdefs.h. */
  21342. /* Override any gcc2 internal prototype to avoid an error. */
  21343. #ifdef __cplusplus
  21344. extern "C"
  21345. #endif
  21346. /* We use char because int might match the return type of a gcc2
  21347. builtin and then its argument prototype would still apply. */
  21348. char db_create ();
  21349. int
  21350. main ()
  21351. {
  21352. db_create ();
  21353. ;
  21354. return 0;
  21355. }
  21356. _ACEOF
  21357. rm -f conftest.$ac_objext conftest$ac_exeext
  21358. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21359. (eval $ac_link) 2>conftest.er1
  21360. ac_status=$?
  21361. grep -v '^ *+' conftest.er1 >conftest.err
  21362. rm -f conftest.er1
  21363. cat conftest.err >&5
  21364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21365. (exit $ac_status); } &&
  21366. { ac_try='test -z "$ac_c_werror_flag"
  21367. || test ! -s conftest.err'
  21368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21369. (eval $ac_try) 2>&5
  21370. ac_status=$?
  21371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21372. (exit $ac_status); }; } &&
  21373. { ac_try='test -s conftest$ac_exeext'
  21374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21375. (eval $ac_try) 2>&5
  21376. ac_status=$?
  21377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21378. (exit $ac_status); }; }; then
  21379. eval "$as_ac_Lib=yes"
  21380. else
  21381. echo "$as_me: failed program was:" >&5
  21382. sed 's/^/| /' conftest.$ac_ext >&5
  21383. eval "$as_ac_Lib=no"
  21384. fi
  21385. rm -f conftest.err conftest.$ac_objext \
  21386. conftest$ac_exeext conftest.$ac_ext
  21387. LIBS=$ac_check_lib_save_LIBS
  21388. fi
  21389. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21390. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21391. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21392. true
  21393. else
  21394. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  21395. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  21396. { (exit 1); exit 1; }; }
  21397. fi
  21398. LDFLAGS="$save_ldflags"
  21399. # if DB is not found yet, try pkg-config
  21400. # last resort
  21401. # Although the other db_* variables are correctly assigned at this point,
  21402. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  21403. if $PKG_CONFIG --exists db; then
  21404. db_bindir=`$PKG_CONFIG --variable=bindir db`
  21405. else
  21406. db_bindir=/usr/bin
  21407. fi
  21408. # BEGIN COPYRIGHT BLOCK
  21409. # Copyright (C) 2007 Red Hat, Inc.
  21410. # All rights reserved.
  21411. #
  21412. # This program is free software; you can redistribute it and/or
  21413. # modify it under the terms of the GNU General Public License
  21414. # as published by the Free Software Foundation; either version 2
  21415. # of the License, or (at your option) any later version.
  21416. #
  21417. # This program is distributed in the hope that it will be useful,
  21418. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21419. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21420. # GNU General Public License for more details.
  21421. #
  21422. # You should have received a copy of the GNU General Public License
  21423. # along with this program; if not, write to the Free Software
  21424. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21425. #
  21426. # END COPYRIGHT BLOCK
  21427. # -*- tab-width: 4; -*-
  21428. # Configure paths for SASL
  21429. { echo "$as_me:$LINENO: checking for sasl..." >&5
  21430. echo "$as_me: checking for sasl..." >&6;}
  21431. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  21432. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  21433. # Check whether --with-sasl or --without-sasl was given.
  21434. if test "${with_sasl+set}" = set; then
  21435. withval="$with_sasl"
  21436. if test "$withval" = "yes"; then
  21437. echo "$as_me:$LINENO: result: yes" >&5
  21438. echo "${ECHO_T}yes" >&6
  21439. if test -f /usr/include/sasl/sasl.h; then
  21440. sasl_inc="-I/usr/include/sasl"
  21441. elif test -f /usr/include/sasl.h; then
  21442. sasl_inc="-I/usr/include"
  21443. else
  21444. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21445. echo "$as_me: error: sasl.h not found" >&2;}
  21446. { (exit 1); exit 1; }; }
  21447. fi
  21448. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21449. echo "$as_me:$LINENO: result: using $withval" >&5
  21450. echo "${ECHO_T}using $withval" >&6
  21451. if test -f "$withval/include/sasl/sasl.h"; then
  21452. sasl_inc="-I$withval/include/sasl"
  21453. elif test -f "$withval/include/sasl.h"; then
  21454. sasl_inc="-I$withval/include"
  21455. else
  21456. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21457. echo "$as_me: error: sasl.h not found" >&2;}
  21458. { (exit 1); exit 1; }; }
  21459. fi
  21460. sasl_lib="-L$withval/lib"
  21461. sasl_libdir="$withval/lib"
  21462. else
  21463. echo "$as_me:$LINENO: result: yes" >&5
  21464. echo "${ECHO_T}yes" >&6
  21465. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  21466. echo "$as_me: error: sasl not found in $withval" >&2;}
  21467. { (exit 1); exit 1; }; }
  21468. fi
  21469. else
  21470. echo "$as_me:$LINENO: result: no" >&5
  21471. echo "${ECHO_T}no" >&6
  21472. fi;
  21473. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  21474. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  21475. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  21476. if test "${with_sasl_inc+set}" = set; then
  21477. withval="$with_sasl_inc"
  21478. if test -f "$withval"/sasl.h; then
  21479. echo "$as_me:$LINENO: result: using $withval" >&5
  21480. echo "${ECHO_T}using $withval" >&6
  21481. sasl_inc="-I$withval"
  21482. else
  21483. echo
  21484. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  21485. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  21486. { (exit 1); exit 1; }; }
  21487. fi
  21488. else
  21489. echo "$as_me:$LINENO: result: no" >&5
  21490. echo "${ECHO_T}no" >&6
  21491. fi;
  21492. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  21493. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  21494. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  21495. if test "${with_sasl_lib+set}" = set; then
  21496. withval="$with_sasl_lib"
  21497. if test -d "$withval"; then
  21498. echo "$as_me:$LINENO: result: using $withval" >&5
  21499. echo "${ECHO_T}using $withval" >&6
  21500. sasl_lib="-L$withval"
  21501. sasl_libdir="$withval"
  21502. else
  21503. echo
  21504. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21505. echo "$as_me: error: $withval not found" >&2;}
  21506. { (exit 1); exit 1; }; }
  21507. fi
  21508. else
  21509. echo "$as_me:$LINENO: result: no" >&5
  21510. echo "${ECHO_T}no" >&6
  21511. fi;
  21512. if test -z "$sasl_inc"; then
  21513. echo "$as_me:$LINENO: checking for sasl.h" >&5
  21514. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  21515. if test -f /usr/include/sasl/sasl.h; then
  21516. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  21517. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  21518. sasl_inc="-I/usr/include/sasl"
  21519. elif test -f /usr/include/sasl.h; then
  21520. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  21521. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  21522. sasl_inc="-I/usr/include"
  21523. else
  21524. echo "$as_me:$LINENO: result: no" >&5
  21525. echo "${ECHO_T}no" >&6
  21526. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  21527. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  21528. { (exit 1); exit 1; }; }
  21529. fi
  21530. fi
  21531. # BEGIN COPYRIGHT BLOCK
  21532. # Copyright (C) 2007 Red Hat, Inc.
  21533. # All rights reserved.
  21534. #
  21535. # This program is free software; you can redistribute it and/or
  21536. # modify it under the terms of the GNU General Public License
  21537. # as published by the Free Software Foundation; either version 2
  21538. # of the License, or (at your option) any later version.
  21539. #
  21540. # This program is distributed in the hope that it will be useful,
  21541. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21542. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21543. # GNU General Public License for more details.
  21544. #
  21545. # You should have received a copy of the GNU General Public License
  21546. # along with this program; if not, write to the Free Software
  21547. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21548. #
  21549. # END COPYRIGHT BLOCK
  21550. #
  21551. # Configure paths for SVRCORE
  21552. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  21553. echo "$as_me: checking for svrcore..." >&6;}
  21554. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  21555. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  21556. # Check whether --with-svrcore or --without-svrcore was given.
  21557. if test "${with_svrcore+set}" = set; then
  21558. withval="$with_svrcore"
  21559. if test "$withval" = "yes"; then
  21560. echo "$as_me:$LINENO: result: yes" >&5
  21561. echo "${ECHO_T}yes" >&6
  21562. if test -f /usr/include/svrcore.h; then
  21563. svrcore_inc="-I/usr/include"
  21564. else
  21565. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21566. echo "$as_me: error: svrcore.h not found" >&2;}
  21567. { (exit 1); exit 1; }; }
  21568. fi
  21569. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21570. echo "$as_me:$LINENO: result: using $withval" >&5
  21571. echo "${ECHO_T}using $withval" >&6
  21572. if test -f "$withval/include/svrcore.h"; then
  21573. svrcore_inc="-I$withval/include"
  21574. else
  21575. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21576. echo "$as_me: error: svrcore.h not found" >&2;}
  21577. { (exit 1); exit 1; }; }
  21578. fi
  21579. svrcore_lib="-L$withval/lib"
  21580. else
  21581. echo "$as_me:$LINENO: result: yes" >&5
  21582. echo "${ECHO_T}yes" >&6
  21583. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  21584. echo "$as_me: error: svrcore not found in $withval" >&2;}
  21585. { (exit 1); exit 1; }; }
  21586. fi
  21587. else
  21588. echo "$as_me:$LINENO: result: no" >&5
  21589. echo "${ECHO_T}no" >&6
  21590. fi;
  21591. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  21592. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  21593. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  21594. if test "${with_svrcore_inc+set}" = set; then
  21595. withval="$with_svrcore_inc"
  21596. if test -f "$withval"/svrcore.h; then
  21597. echo "$as_me:$LINENO: result: using $withval" >&5
  21598. echo "${ECHO_T}using $withval" >&6
  21599. svrcore_inc="-I$withval"
  21600. else
  21601. echo
  21602. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  21603. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  21604. { (exit 1); exit 1; }; }
  21605. fi
  21606. else
  21607. echo "$as_me:$LINENO: result: no" >&5
  21608. echo "${ECHO_T}no" >&6
  21609. fi;
  21610. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  21611. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  21612. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  21613. if test "${with_svrcore_lib+set}" = set; then
  21614. withval="$with_svrcore_lib"
  21615. if test -d "$withval"; then
  21616. echo "$as_me:$LINENO: result: using $withval" >&5
  21617. echo "${ECHO_T}using $withval" >&6
  21618. svrcore_lib="-L$withval"
  21619. else
  21620. echo
  21621. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21622. echo "$as_me: error: $withval not found" >&2;}
  21623. { (exit 1); exit 1; }; }
  21624. fi
  21625. else
  21626. echo "$as_me:$LINENO: result: no" >&5
  21627. echo "${ECHO_T}no" >&6
  21628. fi;
  21629. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21630. # Extract the first word of "pkg-config", so it can be a program name with args.
  21631. set dummy pkg-config; ac_word=$2
  21632. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21633. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21634. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21635. echo $ECHO_N "(cached) $ECHO_C" >&6
  21636. else
  21637. case $PKG_CONFIG in
  21638. [\\/]* | ?:[\\/]*)
  21639. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21640. ;;
  21641. *)
  21642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21643. for as_dir in $PATH
  21644. do
  21645. IFS=$as_save_IFS
  21646. test -z "$as_dir" && as_dir=.
  21647. for ac_exec_ext in '' $ac_executable_extensions; do
  21648. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21649. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21650. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21651. break 2
  21652. fi
  21653. done
  21654. done
  21655. ;;
  21656. esac
  21657. fi
  21658. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21659. if test -n "$PKG_CONFIG"; then
  21660. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21661. echo "${ECHO_T}$PKG_CONFIG" >&6
  21662. else
  21663. echo "$as_me:$LINENO: result: no" >&5
  21664. echo "${ECHO_T}no" >&6
  21665. fi
  21666. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  21667. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  21668. if test -n "$PKG_CONFIG"; then
  21669. if $PKG_CONFIG --exists svrcore; then
  21670. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  21671. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  21672. echo "$as_me:$LINENO: result: using system svrcore" >&5
  21673. echo "${ECHO_T}using system svrcore" >&6
  21674. fi
  21675. fi
  21676. fi
  21677. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21678. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  21679. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  21680. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  21681. echo $ECHO_N "(cached) $ECHO_C" >&6
  21682. else
  21683. ac_check_lib_save_LIBS=$LIBS
  21684. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  21685. cat >conftest.$ac_ext <<_ACEOF
  21686. /* confdefs.h. */
  21687. _ACEOF
  21688. cat confdefs.h >>conftest.$ac_ext
  21689. cat >>conftest.$ac_ext <<_ACEOF
  21690. /* end confdefs.h. */
  21691. /* Override any gcc2 internal prototype to avoid an error. */
  21692. #ifdef __cplusplus
  21693. extern "C"
  21694. #endif
  21695. /* We use char because int might match the return type of a gcc2
  21696. builtin and then its argument prototype would still apply. */
  21697. char SVRCORE_GetRegisteredPinObj ();
  21698. int
  21699. main ()
  21700. {
  21701. SVRCORE_GetRegisteredPinObj ();
  21702. ;
  21703. return 0;
  21704. }
  21705. _ACEOF
  21706. rm -f conftest.$ac_objext conftest$ac_exeext
  21707. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21708. (eval $ac_link) 2>conftest.er1
  21709. ac_status=$?
  21710. grep -v '^ *+' conftest.er1 >conftest.err
  21711. rm -f conftest.er1
  21712. cat conftest.err >&5
  21713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21714. (exit $ac_status); } &&
  21715. { ac_try='test -z "$ac_c_werror_flag"
  21716. || test ! -s conftest.err'
  21717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21718. (eval $ac_try) 2>&5
  21719. ac_status=$?
  21720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21721. (exit $ac_status); }; } &&
  21722. { ac_try='test -s conftest$ac_exeext'
  21723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21724. (eval $ac_try) 2>&5
  21725. ac_status=$?
  21726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21727. (exit $ac_status); }; }; then
  21728. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  21729. else
  21730. echo "$as_me: failed program was:" >&5
  21731. sed 's/^/| /' conftest.$ac_ext >&5
  21732. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  21733. fi
  21734. rm -f conftest.err conftest.$ac_objext \
  21735. conftest$ac_exeext conftest.$ac_ext
  21736. LIBS=$ac_check_lib_save_LIBS
  21737. fi
  21738. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  21739. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  21740. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  21741. havesvrcore=1
  21742. fi
  21743. if test -n "$havesvrcore" ; then
  21744. save_cppflags="$CPPFLAGS"
  21745. CPPFLAGS="$nss_inc $nspr_inc"
  21746. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21747. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  21748. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  21749. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21750. echo $ECHO_N "(cached) $ECHO_C" >&6
  21751. fi
  21752. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  21753. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  21754. else
  21755. # Is the header compilable?
  21756. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  21757. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  21758. cat >conftest.$ac_ext <<_ACEOF
  21759. /* confdefs.h. */
  21760. _ACEOF
  21761. cat confdefs.h >>conftest.$ac_ext
  21762. cat >>conftest.$ac_ext <<_ACEOF
  21763. /* end confdefs.h. */
  21764. $ac_includes_default
  21765. #include <svrcore.h>
  21766. _ACEOF
  21767. rm -f conftest.$ac_objext
  21768. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21769. (eval $ac_compile) 2>conftest.er1
  21770. ac_status=$?
  21771. grep -v '^ *+' conftest.er1 >conftest.err
  21772. rm -f conftest.er1
  21773. cat conftest.err >&5
  21774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21775. (exit $ac_status); } &&
  21776. { ac_try='test -z "$ac_c_werror_flag"
  21777. || test ! -s conftest.err'
  21778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21779. (eval $ac_try) 2>&5
  21780. ac_status=$?
  21781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21782. (exit $ac_status); }; } &&
  21783. { ac_try='test -s conftest.$ac_objext'
  21784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21785. (eval $ac_try) 2>&5
  21786. ac_status=$?
  21787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21788. (exit $ac_status); }; }; then
  21789. ac_header_compiler=yes
  21790. else
  21791. echo "$as_me: failed program was:" >&5
  21792. sed 's/^/| /' conftest.$ac_ext >&5
  21793. ac_header_compiler=no
  21794. fi
  21795. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21796. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21797. echo "${ECHO_T}$ac_header_compiler" >&6
  21798. # Is the header present?
  21799. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  21800. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  21801. cat >conftest.$ac_ext <<_ACEOF
  21802. /* confdefs.h. */
  21803. _ACEOF
  21804. cat confdefs.h >>conftest.$ac_ext
  21805. cat >>conftest.$ac_ext <<_ACEOF
  21806. /* end confdefs.h. */
  21807. #include <svrcore.h>
  21808. _ACEOF
  21809. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21810. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21811. ac_status=$?
  21812. grep -v '^ *+' conftest.er1 >conftest.err
  21813. rm -f conftest.er1
  21814. cat conftest.err >&5
  21815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21816. (exit $ac_status); } >/dev/null; then
  21817. if test -s conftest.err; then
  21818. ac_cpp_err=$ac_c_preproc_warn_flag
  21819. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21820. else
  21821. ac_cpp_err=
  21822. fi
  21823. else
  21824. ac_cpp_err=yes
  21825. fi
  21826. if test -z "$ac_cpp_err"; then
  21827. ac_header_preproc=yes
  21828. else
  21829. echo "$as_me: failed program was:" >&5
  21830. sed 's/^/| /' conftest.$ac_ext >&5
  21831. ac_header_preproc=no
  21832. fi
  21833. rm -f conftest.err conftest.$ac_ext
  21834. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21835. echo "${ECHO_T}$ac_header_preproc" >&6
  21836. # So? What about this header?
  21837. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21838. yes:no: )
  21839. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21840. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21841. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  21842. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  21843. ac_header_preproc=yes
  21844. ;;
  21845. no:yes:* )
  21846. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  21847. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  21848. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  21849. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  21850. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  21851. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  21852. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  21853. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21854. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  21855. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  21856. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  21857. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  21858. (
  21859. cat <<\_ASBOX
  21860. ## ------------------------------------------ ##
  21861. ## Report this to http://bugzilla.redhat.com/ ##
  21862. ## ------------------------------------------ ##
  21863. _ASBOX
  21864. ) |
  21865. sed "s/^/$as_me: WARNING: /" >&2
  21866. ;;
  21867. esac
  21868. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  21869. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  21870. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21871. echo $ECHO_N "(cached) $ECHO_C" >&6
  21872. else
  21873. ac_cv_header_svrcore_h=$ac_header_preproc
  21874. fi
  21875. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  21876. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  21877. fi
  21878. if test $ac_cv_header_svrcore_h = yes; then
  21879. havesvrcore=1
  21880. else
  21881. havesvrcore=
  21882. fi
  21883. CPPFLAGS="$save_cppflags"
  21884. fi
  21885. if test -z "$havesvrcore" ; then
  21886. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  21887. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  21888. { (exit 1); exit 1; }; }
  21889. fi
  21890. fi
  21891. # BEGIN COPYRIGHT BLOCK
  21892. # Copyright (C) 2006 Red Hat, Inc.
  21893. # All rights reserved.
  21894. #
  21895. # This program is free software; you can redistribute it and/or
  21896. # modify it under the terms of the GNU General Public License
  21897. # as published by the Free Software Foundation; either version 2
  21898. # of the License, or (at your option) any later version.
  21899. #
  21900. # This program is distributed in the hope that it will be useful,
  21901. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21902. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21903. # GNU General Public License for more details.
  21904. #
  21905. # You should have received a copy of the GNU General Public License
  21906. # along with this program; if not, write to the Free Software
  21907. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21908. #
  21909. # END COPYRIGHT BLOCK
  21910. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  21911. echo "$as_me: checking for LIBICU..." >&6;}
  21912. # check for --with-icu
  21913. echo "$as_me:$LINENO: checking for --with-icu" >&5
  21914. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  21915. # Check whether --with-icu or --without-icu was given.
  21916. if test "${with_icu+set}" = set; then
  21917. withval="$with_icu"
  21918. if test -d "$withval"/lib
  21919. then
  21920. echo "$as_me:$LINENO: result: using $withval" >&5
  21921. echo "${ECHO_T}using $withval" >&6
  21922. ICUDIR=$withval
  21923. icu_lib="-L$ICUDIR/lib"
  21924. else
  21925. echo
  21926. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21927. echo "$as_me: error: $withval not found" >&2;}
  21928. { (exit 1); exit 1; }; }
  21929. fi
  21930. icu_inc="-I$withval/include"
  21931. icu_bin="$withval/bin"
  21932. else
  21933. echo "$as_me:$LINENO: result: no" >&5
  21934. echo "${ECHO_T}no" >&6
  21935. fi;
  21936. # check for --with-icu-inc
  21937. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  21938. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  21939. # Check whether --with-icu-inc or --without-icu-inc was given.
  21940. if test "${with_icu_inc+set}" = set; then
  21941. withval="$with_icu_inc"
  21942. if test -d "$withval"
  21943. then
  21944. echo "$as_me:$LINENO: result: using $withval" >&5
  21945. echo "${ECHO_T}using $withval" >&6
  21946. icu_inc="-I$withval"
  21947. else
  21948. echo
  21949. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21950. echo "$as_me: error: $withval not found" >&2;}
  21951. { (exit 1); exit 1; }; }
  21952. fi
  21953. else
  21954. echo "$as_me:$LINENO: result: no" >&5
  21955. echo "${ECHO_T}no" >&6
  21956. fi;
  21957. # check for --with-icu-lib
  21958. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  21959. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  21960. # Check whether --with-icu-lib or --without-icu-lib was given.
  21961. if test "${with_icu_lib+set}" = set; then
  21962. withval="$with_icu_lib"
  21963. if test -d "$withval"
  21964. then
  21965. echo "$as_me:$LINENO: result: using $withval" >&5
  21966. echo "${ECHO_T}using $withval" >&6
  21967. icu_lib="-L$withval"
  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. else
  21975. echo "$as_me:$LINENO: result: no" >&5
  21976. echo "${ECHO_T}no" >&6
  21977. fi;
  21978. # check for --with-icu-bin
  21979. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  21980. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  21981. # Check whether --with-icu-bin or --without-icu-bin was given.
  21982. if test "${with_icu_bin+set}" = set; then
  21983. withval="$with_icu_bin"
  21984. if test -d "$withval"
  21985. then
  21986. echo "$as_me:$LINENO: result: using $withval" >&5
  21987. echo "${ECHO_T}using $withval" >&6
  21988. icu_bin="$withval"
  21989. else
  21990. echo
  21991. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21992. echo "$as_me: error: $withval not found" >&2;}
  21993. { (exit 1); exit 1; }; }
  21994. fi
  21995. else
  21996. echo "$as_me:$LINENO: result: no" >&5
  21997. echo "${ECHO_T}no" >&6
  21998. fi;
  21999. # if ICU is not found yet, try pkg-config
  22000. # last resort
  22001. if test -z "$icu_lib"; then
  22002. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  22003. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  22004. # Extract the first word of "icu-config", so it can be a program name with args.
  22005. set dummy icu-config; ac_word=$2
  22006. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22007. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22008. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  22009. echo $ECHO_N "(cached) $ECHO_C" >&6
  22010. else
  22011. case $ICU_CONFIG in
  22012. [\\/]* | ?:[\\/]*)
  22013. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  22014. ;;
  22015. *)
  22016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22017. for as_dir in $PATH
  22018. do
  22019. IFS=$as_save_IFS
  22020. test -z "$as_dir" && as_dir=.
  22021. for ac_exec_ext in '' $ac_executable_extensions; do
  22022. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22023. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22024. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22025. break 2
  22026. fi
  22027. done
  22028. done
  22029. ;;
  22030. esac
  22031. fi
  22032. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  22033. if test -n "$ICU_CONFIG"; then
  22034. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  22035. echo "${ECHO_T}$ICU_CONFIG" >&6
  22036. else
  22037. echo "$as_me:$LINENO: result: no" >&5
  22038. echo "${ECHO_T}no" >&6
  22039. fi
  22040. if test -n "$ICU_CONFIG"; then
  22041. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  22042. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  22043. icu_bin=`$ICU_CONFIG --bindir`
  22044. echo "$as_me:$LINENO: result: using system ICU" >&5
  22045. echo "${ECHO_T}using system ICU" >&6
  22046. else
  22047. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  22048. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  22049. { (exit 1); exit 1; }; }
  22050. fi
  22051. fi
  22052. # BEGIN COPYRIGHT BLOCK
  22053. # Copyright (C) 2006 Red Hat, Inc.
  22054. # All rights reserved.
  22055. #
  22056. # This program is free software; you can redistribute it and/or
  22057. # modify it under the terms of the GNU General Public License
  22058. # as published by the Free Software Foundation; either version 2
  22059. # of the License, or (at your option) any later version.
  22060. #
  22061. # This program is distributed in the hope that it will be useful,
  22062. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22063. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22064. # GNU General Public License for more details.
  22065. #
  22066. # You should have received a copy of the GNU General Public License
  22067. # along with this program; if not, write to the Free Software
  22068. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22069. #
  22070. # END COPYRIGHT BLOCK
  22071. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  22072. echo "$as_me: checking for Net-SNMP..." >&6;}
  22073. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  22074. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  22075. # Check whether --with-netsnmp or --without-netsnmp was given.
  22076. if test "${with_netsnmp+set}" = set; then
  22077. withval="$with_netsnmp"
  22078. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  22079. echo "$as_me:$LINENO: result: using $withval" >&5
  22080. echo "${ECHO_T}using $withval" >&6
  22081. NETSNMPDIR=$withval
  22082. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  22083. netsnmp_inc="-I$withval/include"
  22084. else
  22085. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  22086. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  22087. { (exit 1); exit 1; }; }
  22088. fi
  22089. netsnmp_lib="-L$withval/lib"
  22090. netsnmp_libdir="$withval/lib"
  22091. else
  22092. echo "$as_me:$LINENO: result: yes" >&5
  22093. echo "${ECHO_T}yes" >&6
  22094. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22095. echo "$as_me: error: $withval not found" >&2;}
  22096. { (exit 1); exit 1; }; }
  22097. fi
  22098. else
  22099. echo "$as_me:$LINENO: result: no" >&5
  22100. echo "${ECHO_T}no" >&6
  22101. fi;
  22102. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  22103. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  22104. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  22105. if test "${with_netsnmp_inc+set}" = set; then
  22106. withval="$with_netsnmp_inc"
  22107. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  22108. echo "$as_me:$LINENO: result: using $withval" >&5
  22109. echo "${ECHO_T}using $withval" >&6
  22110. netsnmp_inc="-I$withval"
  22111. else
  22112. echo
  22113. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  22114. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  22115. { (exit 1); exit 1; }; }
  22116. fi
  22117. else
  22118. echo "$as_me:$LINENO: result: no" >&5
  22119. echo "${ECHO_T}no" >&6
  22120. fi;
  22121. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  22122. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  22123. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  22124. if test "${with_netsnmp_lib+set}" = set; then
  22125. withval="$with_netsnmp_lib"
  22126. if test -d "$withval"
  22127. then
  22128. echo "$as_me:$LINENO: result: using $withval" >&5
  22129. echo "${ECHO_T}using $withval" >&6
  22130. netsnmp_lib="-L$withval"
  22131. netsnmp_libdir="$withval"
  22132. else
  22133. echo
  22134. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22135. echo "$as_me: error: $withval not found" >&2;}
  22136. { (exit 1); exit 1; }; }
  22137. fi
  22138. else
  22139. echo "$as_me:$LINENO: result: no" >&5
  22140. echo "${ECHO_T}no" >&6
  22141. fi;
  22142. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  22143. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  22144. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  22145. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  22146. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  22147. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  22148. netsnmp_inc="-I/usr/include"
  22149. else
  22150. echo "$as_me:$LINENO: result: no" >&5
  22151. echo "${ECHO_T}no" >&6
  22152. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  22153. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  22154. { (exit 1); exit 1; }; }
  22155. fi
  22156. fi
  22157. if test -n "$netsnmp_inc"; then
  22158. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  22159. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  22160. else
  22161. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  22162. set dummy net-snmp-config; ac_word=$2
  22163. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22164. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22165. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  22166. echo $ECHO_N "(cached) $ECHO_C" >&6
  22167. else
  22168. case $NETSNMP_CONFIG in
  22169. [\\/]* | ?:[\\/]*)
  22170. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  22171. ;;
  22172. *)
  22173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22174. for as_dir in $PATH
  22175. do
  22176. IFS=$as_save_IFS
  22177. test -z "$as_dir" && as_dir=.
  22178. for ac_exec_ext in '' $ac_executable_extensions; do
  22179. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22180. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22181. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22182. break 2
  22183. fi
  22184. done
  22185. done
  22186. ;;
  22187. esac
  22188. fi
  22189. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  22190. if test -n "$NETSNMP_CONFIG"; then
  22191. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  22192. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  22193. else
  22194. echo "$as_me:$LINENO: result: no" >&5
  22195. echo "${ECHO_T}no" >&6
  22196. fi
  22197. fi
  22198. if test -n "$NETSNMP_CONFIG"; then
  22199. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  22200. else
  22201. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  22202. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  22203. { (exit 1); exit 1; }; }
  22204. fi
  22205. else
  22206. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  22207. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  22208. { (exit 1); exit 1; }; }
  22209. fi
  22210. # write out paths for binary components
  22211. cat >>confdefs.h <<\_ACEOF
  22212. #define LDAP_DEBUG 1
  22213. _ACEOF
  22214. cat >>confdefs.h <<\_ACEOF
  22215. #define LDAP_DONT_USE_SMARTHEAP 1
  22216. _ACEOF
  22217. # libtool on fedora/rhel contains some gcc-isms which cause problems
  22218. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  22219. # we remove them here
  22220. if test "$GCC" != yes ; then
  22221. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  22222. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  22223. cp -p libtool libtool.orig
  22224. cp -p libtool libtool.tmp
  22225. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  22226. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  22227. # perl produced write-only code . . .
  22228. sed -e '/^gcc_dir/ d' \
  22229. -e '/^gcc_ver/ d' \
  22230. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  22231. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  22232. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  22233. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  22234. libtool > libtool.tmp
  22235. cp -p libtool.tmp libtool
  22236. rm -f libtool.tmp
  22237. fi
  22238. ac_config_files="$ac_config_files Makefile"
  22239. cat >confcache <<\_ACEOF
  22240. # This file is a shell script that caches the results of configure
  22241. # tests run on this system so they can be shared between configure
  22242. # scripts and configure runs, see configure's option --config-cache.
  22243. # It is not useful on other systems. If it contains results you don't
  22244. # want to keep, you may remove or edit it.
  22245. #
  22246. # config.status only pays attention to the cache file if you give it
  22247. # the --recheck option to rerun configure.
  22248. #
  22249. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22250. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22251. # following values.
  22252. _ACEOF
  22253. # The following way of writing the cache mishandles newlines in values,
  22254. # but we know of no workaround that is simple, portable, and efficient.
  22255. # So, don't put newlines in cache variables' values.
  22256. # Ultrix sh set writes to stderr and can't be redirected directly,
  22257. # and sets the high bit in the cache file unless we assign to the vars.
  22258. {
  22259. (set) 2>&1 |
  22260. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  22261. *ac_space=\ *)
  22262. # `set' does not quote correctly, so add quotes (double-quote
  22263. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22264. sed -n \
  22265. "s/'/'\\\\''/g;
  22266. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22267. ;;
  22268. *)
  22269. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22270. sed -n \
  22271. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  22272. ;;
  22273. esac;
  22274. } |
  22275. sed '
  22276. t clear
  22277. : clear
  22278. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22279. t end
  22280. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22281. : end' >>confcache
  22282. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  22283. if test -w $cache_file; then
  22284. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  22285. cat confcache >$cache_file
  22286. else
  22287. echo "not updating unwritable cache $cache_file"
  22288. fi
  22289. fi
  22290. rm -f confcache
  22291. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22292. # Let make expand exec_prefix.
  22293. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22294. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22295. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22296. # trailing colons and then remove the whole line if VPATH becomes empty
  22297. # (actually we leave an empty line to preserve line numbers).
  22298. if test "x$srcdir" = x.; then
  22299. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22300. s/:*\$(srcdir):*/:/;
  22301. s/:*\${srcdir}:*/:/;
  22302. s/:*@srcdir@:*/:/;
  22303. s/^\([^=]*=[ ]*\):*/\1/;
  22304. s/:*$//;
  22305. s/^[^=]*=[ ]*$//;
  22306. }'
  22307. fi
  22308. DEFS=-DHAVE_CONFIG_H
  22309. ac_libobjs=
  22310. ac_ltlibobjs=
  22311. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22312. # 1. Remove the extension, and $U if already installed.
  22313. ac_i=`echo "$ac_i" |
  22314. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  22315. # 2. Add them.
  22316. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  22317. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  22318. done
  22319. LIBOBJS=$ac_libobjs
  22320. LTLIBOBJS=$ac_ltlibobjs
  22321. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22322. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  22323. Usually this means the macro was only invoked conditionally." >&5
  22324. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  22325. Usually this means the macro was only invoked conditionally." >&2;}
  22326. { (exit 1); exit 1; }; }
  22327. fi
  22328. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22329. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22330. Usually this means the macro was only invoked conditionally." >&5
  22331. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22332. Usually this means the macro was only invoked conditionally." >&2;}
  22333. { (exit 1); exit 1; }; }
  22334. fi
  22335. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22336. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22337. Usually this means the macro was only invoked conditionally." >&5
  22338. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22339. Usually this means the macro was only invoked conditionally." >&2;}
  22340. { (exit 1); exit 1; }; }
  22341. fi
  22342. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22343. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22344. Usually this means the macro was only invoked conditionally." >&5
  22345. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22346. Usually this means the macro was only invoked conditionally." >&2;}
  22347. { (exit 1); exit 1; }; }
  22348. fi
  22349. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  22350. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  22351. Usually this means the macro was only invoked conditionally." >&5
  22352. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  22353. Usually this means the macro was only invoked conditionally." >&2;}
  22354. { (exit 1); exit 1; }; }
  22355. fi
  22356. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  22357. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  22358. Usually this means the macro was only invoked conditionally." >&5
  22359. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  22360. Usually this means the macro was only invoked conditionally." >&2;}
  22361. { (exit 1); exit 1; }; }
  22362. fi
  22363. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  22364. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  22365. Usually this means the macro was only invoked conditionally." >&5
  22366. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  22367. Usually this means the macro was only invoked conditionally." >&2;}
  22368. { (exit 1); exit 1; }; }
  22369. fi
  22370. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  22371. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  22372. Usually this means the macro was only invoked conditionally." >&5
  22373. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  22374. Usually this means the macro was only invoked conditionally." >&2;}
  22375. { (exit 1); exit 1; }; }
  22376. fi
  22377. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  22378. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  22379. Usually this means the macro was only invoked conditionally." >&5
  22380. echo "$as_me: error: conditional \"WINNT\" was never defined.
  22381. Usually this means the macro was only invoked conditionally." >&2;}
  22382. { (exit 1); exit 1; }; }
  22383. fi
  22384. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  22385. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  22386. Usually this means the macro was only invoked conditionally." >&5
  22387. echo "$as_me: error: conditional \"HPUX\" was never defined.
  22388. Usually this means the macro was only invoked conditionally." >&2;}
  22389. { (exit 1); exit 1; }; }
  22390. fi
  22391. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  22392. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  22393. Usually this means the macro was only invoked conditionally." >&5
  22394. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  22395. Usually this means the macro was only invoked conditionally." >&2;}
  22396. { (exit 1); exit 1; }; }
  22397. fi
  22398. : ${CONFIG_STATUS=./config.status}
  22399. ac_clean_files_save=$ac_clean_files
  22400. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22401. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22402. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22403. cat >$CONFIG_STATUS <<_ACEOF
  22404. #! $SHELL
  22405. # Generated by $as_me.
  22406. # Run this file to recreate the current configuration.
  22407. # Compiler output produced by configure, useful for debugging
  22408. # configure, is in config.log if it exists.
  22409. debug=false
  22410. ac_cs_recheck=false
  22411. ac_cs_silent=false
  22412. SHELL=\${CONFIG_SHELL-$SHELL}
  22413. _ACEOF
  22414. cat >>$CONFIG_STATUS <<\_ACEOF
  22415. ## --------------------- ##
  22416. ## M4sh Initialization. ##
  22417. ## --------------------- ##
  22418. # Be Bourne compatible
  22419. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22420. emulate sh
  22421. NULLCMD=:
  22422. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  22423. # is contrary to our usage. Disable this feature.
  22424. alias -g '${1+"$@"}'='"$@"'
  22425. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22426. set -o posix
  22427. fi
  22428. DUALCASE=1; export DUALCASE # for MKS sh
  22429. # Support unset when possible.
  22430. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22431. as_unset=unset
  22432. else
  22433. as_unset=false
  22434. fi
  22435. # Work around bugs in pre-3.0 UWIN ksh.
  22436. $as_unset ENV MAIL MAILPATH
  22437. PS1='$ '
  22438. PS2='> '
  22439. PS4='+ '
  22440. # NLS nuisances.
  22441. for as_var in \
  22442. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  22443. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  22444. LC_TELEPHONE LC_TIME
  22445. do
  22446. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  22447. eval $as_var=C; export $as_var
  22448. else
  22449. $as_unset $as_var
  22450. fi
  22451. done
  22452. # Required to use basename.
  22453. if expr a : '\(a\)' >/dev/null 2>&1; then
  22454. as_expr=expr
  22455. else
  22456. as_expr=false
  22457. fi
  22458. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  22459. as_basename=basename
  22460. else
  22461. as_basename=false
  22462. fi
  22463. # Name of the executable.
  22464. as_me=`$as_basename "$0" ||
  22465. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22466. X"$0" : 'X\(//\)$' \| \
  22467. X"$0" : 'X\(/\)$' \| \
  22468. . : '\(.\)' 2>/dev/null ||
  22469. echo X/"$0" |
  22470. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  22471. /^X\/\(\/\/\)$/{ s//\1/; q; }
  22472. /^X\/\(\/\).*/{ s//\1/; q; }
  22473. s/.*/./; q'`
  22474. # PATH needs CR, and LINENO needs CR and PATH.
  22475. # Avoid depending upon Character Ranges.
  22476. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22477. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22478. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22479. as_cr_digits='0123456789'
  22480. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22481. # The user is always right.
  22482. if test "${PATH_SEPARATOR+set}" != set; then
  22483. echo "#! /bin/sh" >conf$$.sh
  22484. echo "exit 0" >>conf$$.sh
  22485. chmod +x conf$$.sh
  22486. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  22487. PATH_SEPARATOR=';'
  22488. else
  22489. PATH_SEPARATOR=:
  22490. fi
  22491. rm -f conf$$.sh
  22492. fi
  22493. as_lineno_1=$LINENO
  22494. as_lineno_2=$LINENO
  22495. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22496. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22497. test "x$as_lineno_3" = "x$as_lineno_2" || {
  22498. # Find who we are. Look in the path if we contain no path at all
  22499. # relative or not.
  22500. case $0 in
  22501. *[\\/]* ) as_myself=$0 ;;
  22502. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22503. for as_dir in $PATH
  22504. do
  22505. IFS=$as_save_IFS
  22506. test -z "$as_dir" && as_dir=.
  22507. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22508. done
  22509. ;;
  22510. esac
  22511. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22512. # in which case we are not to be found in the path.
  22513. if test "x$as_myself" = x; then
  22514. as_myself=$0
  22515. fi
  22516. if test ! -f "$as_myself"; then
  22517. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  22518. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  22519. { (exit 1); exit 1; }; }
  22520. fi
  22521. case $CONFIG_SHELL in
  22522. '')
  22523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22524. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  22525. do
  22526. IFS=$as_save_IFS
  22527. test -z "$as_dir" && as_dir=.
  22528. for as_base in sh bash ksh sh5; do
  22529. case $as_dir in
  22530. /*)
  22531. if ("$as_dir/$as_base" -c '
  22532. as_lineno_1=$LINENO
  22533. as_lineno_2=$LINENO
  22534. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22535. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22536. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  22537. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  22538. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  22539. CONFIG_SHELL=$as_dir/$as_base
  22540. export CONFIG_SHELL
  22541. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  22542. fi;;
  22543. esac
  22544. done
  22545. done
  22546. ;;
  22547. esac
  22548. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22549. # uniformly replaced by the line number. The first 'sed' inserts a
  22550. # line-number line before each line; the second 'sed' does the real
  22551. # work. The second script uses 'N' to pair each line-number line
  22552. # with the numbered line, and appends trailing '-' during
  22553. # substitution so that $LINENO is not a special case at line end.
  22554. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22555. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  22556. sed '=' <$as_myself |
  22557. sed '
  22558. N
  22559. s,$,-,
  22560. : loop
  22561. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  22562. t loop
  22563. s,-$,,
  22564. s,^['$as_cr_digits']*\n,,
  22565. ' >$as_me.lineno &&
  22566. chmod +x $as_me.lineno ||
  22567. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  22568. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  22569. { (exit 1); exit 1; }; }
  22570. # Don't try to exec as it changes $[0], causing all sort of problems
  22571. # (the dirname of $[0] is not the place where we might find the
  22572. # original and so on. Autoconf is especially sensible to this).
  22573. . ./$as_me.lineno
  22574. # Exit status is that of the last command.
  22575. exit
  22576. }
  22577. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  22578. *c*,-n*) ECHO_N= ECHO_C='
  22579. ' ECHO_T=' ' ;;
  22580. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  22581. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  22582. esac
  22583. if expr a : '\(a\)' >/dev/null 2>&1; then
  22584. as_expr=expr
  22585. else
  22586. as_expr=false
  22587. fi
  22588. rm -f conf$$ conf$$.exe conf$$.file
  22589. echo >conf$$.file
  22590. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22591. # We could just check for DJGPP; but this test a) works b) is more generic
  22592. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  22593. if test -f conf$$.exe; then
  22594. # Don't use ln at all; we don't have any links
  22595. as_ln_s='cp -p'
  22596. else
  22597. as_ln_s='ln -s'
  22598. fi
  22599. elif ln conf$$.file conf$$ 2>/dev/null; then
  22600. as_ln_s=ln
  22601. else
  22602. as_ln_s='cp -p'
  22603. fi
  22604. rm -f conf$$ conf$$.exe conf$$.file
  22605. if mkdir -p . 2>/dev/null; then
  22606. as_mkdir_p=:
  22607. else
  22608. test -d ./-p && rmdir ./-p
  22609. as_mkdir_p=false
  22610. fi
  22611. as_executable_p="test -f"
  22612. # Sed expression to map a string onto a valid CPP name.
  22613. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22614. # Sed expression to map a string onto a valid variable name.
  22615. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22616. # IFS
  22617. # We need space, tab and new line, in precisely that order.
  22618. as_nl='
  22619. '
  22620. IFS=" $as_nl"
  22621. # CDPATH.
  22622. $as_unset CDPATH
  22623. exec 6>&1
  22624. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  22625. # report actual input values of CONFIG_FILES etc. instead of their
  22626. # values after options handling. Logging --version etc. is OK.
  22627. exec 5>>config.log
  22628. {
  22629. echo
  22630. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22631. ## Running $as_me. ##
  22632. _ASBOX
  22633. } >&5
  22634. cat >&5 <<_CSEOF
  22635. This file was extended by fedora-ds $as_me 1.1.0a3, which was
  22636. generated by GNU Autoconf 2.59. Invocation command line was
  22637. CONFIG_FILES = $CONFIG_FILES
  22638. CONFIG_HEADERS = $CONFIG_HEADERS
  22639. CONFIG_LINKS = $CONFIG_LINKS
  22640. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22641. $ $0 $@
  22642. _CSEOF
  22643. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  22644. echo >&5
  22645. _ACEOF
  22646. # Files that config.status was made for.
  22647. if test -n "$ac_config_files"; then
  22648. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  22649. fi
  22650. if test -n "$ac_config_headers"; then
  22651. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  22652. fi
  22653. if test -n "$ac_config_links"; then
  22654. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  22655. fi
  22656. if test -n "$ac_config_commands"; then
  22657. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  22658. fi
  22659. cat >>$CONFIG_STATUS <<\_ACEOF
  22660. ac_cs_usage="\
  22661. \`$as_me' instantiates files from templates according to the
  22662. current configuration.
  22663. Usage: $0 [OPTIONS] [FILE]...
  22664. -h, --help print this help, then exit
  22665. -V, --version print version number, then exit
  22666. -q, --quiet do not print progress messages
  22667. -d, --debug don't remove temporary files
  22668. --recheck update $as_me by reconfiguring in the same conditions
  22669. --file=FILE[:TEMPLATE]
  22670. instantiate the configuration file FILE
  22671. --header=FILE[:TEMPLATE]
  22672. instantiate the configuration header FILE
  22673. Configuration files:
  22674. $config_files
  22675. Configuration headers:
  22676. $config_headers
  22677. Configuration commands:
  22678. $config_commands
  22679. Report bugs to <[email protected]>."
  22680. _ACEOF
  22681. cat >>$CONFIG_STATUS <<_ACEOF
  22682. ac_cs_version="\\
  22683. fedora-ds config.status 1.1.0a3
  22684. configured by $0, generated by GNU Autoconf 2.59,
  22685. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  22686. Copyright (C) 2003 Free Software Foundation, Inc.
  22687. This config.status script is free software; the Free Software Foundation
  22688. gives unlimited permission to copy, distribute and modify it."
  22689. srcdir=$srcdir
  22690. INSTALL="$INSTALL"
  22691. _ACEOF
  22692. cat >>$CONFIG_STATUS <<\_ACEOF
  22693. # If no file are specified by the user, then we need to provide default
  22694. # value. By we need to know if files were specified by the user.
  22695. ac_need_defaults=:
  22696. while test $# != 0
  22697. do
  22698. case $1 in
  22699. --*=*)
  22700. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  22701. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  22702. ac_shift=:
  22703. ;;
  22704. -*)
  22705. ac_option=$1
  22706. ac_optarg=$2
  22707. ac_shift=shift
  22708. ;;
  22709. *) # This is not an option, so the user has probably given explicit
  22710. # arguments.
  22711. ac_option=$1
  22712. ac_need_defaults=false;;
  22713. esac
  22714. case $ac_option in
  22715. # Handling of the options.
  22716. _ACEOF
  22717. cat >>$CONFIG_STATUS <<\_ACEOF
  22718. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22719. ac_cs_recheck=: ;;
  22720. --version | --vers* | -V )
  22721. echo "$ac_cs_version"; exit 0 ;;
  22722. --he | --h)
  22723. # Conflict between --help and --header
  22724. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  22725. Try \`$0 --help' for more information." >&5
  22726. echo "$as_me: error: ambiguous option: $1
  22727. Try \`$0 --help' for more information." >&2;}
  22728. { (exit 1); exit 1; }; };;
  22729. --help | --hel | -h )
  22730. echo "$ac_cs_usage"; exit 0 ;;
  22731. --debug | --d* | -d )
  22732. debug=: ;;
  22733. --file | --fil | --fi | --f )
  22734. $ac_shift
  22735. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  22736. ac_need_defaults=false;;
  22737. --header | --heade | --head | --hea )
  22738. $ac_shift
  22739. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  22740. ac_need_defaults=false;;
  22741. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22742. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22743. ac_cs_silent=: ;;
  22744. # This is an error.
  22745. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  22746. Try \`$0 --help' for more information." >&5
  22747. echo "$as_me: error: unrecognized option: $1
  22748. Try \`$0 --help' for more information." >&2;}
  22749. { (exit 1); exit 1; }; } ;;
  22750. *) ac_config_targets="$ac_config_targets $1" ;;
  22751. esac
  22752. shift
  22753. done
  22754. ac_configure_extra_args=
  22755. if $ac_cs_silent; then
  22756. exec 6>/dev/null
  22757. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22758. fi
  22759. _ACEOF
  22760. cat >>$CONFIG_STATUS <<_ACEOF
  22761. if \$ac_cs_recheck; then
  22762. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  22763. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22764. fi
  22765. _ACEOF
  22766. cat >>$CONFIG_STATUS <<_ACEOF
  22767. #
  22768. # INIT-COMMANDS section.
  22769. #
  22770. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22771. _ACEOF
  22772. cat >>$CONFIG_STATUS <<\_ACEOF
  22773. for ac_config_target in $ac_config_targets
  22774. do
  22775. case "$ac_config_target" in
  22776. # Handling of arguments.
  22777. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22778. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22779. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22780. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  22781. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  22782. { (exit 1); exit 1; }; };;
  22783. esac
  22784. done
  22785. # If the user did not use the arguments to specify the items to instantiate,
  22786. # then the envvar interface is used. Set only those that are not.
  22787. # We use the long form for the default assignment because of an extremely
  22788. # bizarre bug on SunOS 4.1.3.
  22789. if $ac_need_defaults; then
  22790. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22791. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22792. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22793. fi
  22794. # Have a temporary directory for convenience. Make it in the build tree
  22795. # simply because there is no reason to put it here, and in addition,
  22796. # creating and moving files from /tmp can sometimes cause problems.
  22797. # Create a temporary directory, and hook for its removal unless debugging.
  22798. $debug ||
  22799. {
  22800. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  22801. trap '{ (exit 1); exit 1; }' 1 2 13 15
  22802. }
  22803. # Create a (secure) tmp directory for tmp files.
  22804. {
  22805. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  22806. test -n "$tmp" && test -d "$tmp"
  22807. } ||
  22808. {
  22809. tmp=./confstat$$-$RANDOM
  22810. (umask 077 && mkdir $tmp)
  22811. } ||
  22812. {
  22813. echo "$me: cannot create a temporary directory in ." >&2
  22814. { (exit 1); exit 1; }
  22815. }
  22816. _ACEOF
  22817. cat >>$CONFIG_STATUS <<_ACEOF
  22818. #
  22819. # CONFIG_FILES section.
  22820. #
  22821. # No need to generate the scripts if there are no CONFIG_FILES.
  22822. # This happens for instance when ./config.status config.h
  22823. if test -n "\$CONFIG_FILES"; then
  22824. # Protect against being on the right side of a sed subst in config.status.
  22825. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  22826. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  22827. s,@SHELL@,$SHELL,;t t
  22828. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  22829. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  22830. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  22831. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  22832. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  22833. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  22834. s,@exec_prefix@,$exec_prefix,;t t
  22835. s,@prefix@,$prefix,;t t
  22836. s,@program_transform_name@,$program_transform_name,;t t
  22837. s,@bindir@,$bindir,;t t
  22838. s,@sbindir@,$sbindir,;t t
  22839. s,@libexecdir@,$libexecdir,;t t
  22840. s,@datadir@,$datadir,;t t
  22841. s,@sysconfdir@,$sysconfdir,;t t
  22842. s,@sharedstatedir@,$sharedstatedir,;t t
  22843. s,@localstatedir@,$localstatedir,;t t
  22844. s,@libdir@,$libdir,;t t
  22845. s,@includedir@,$includedir,;t t
  22846. s,@oldincludedir@,$oldincludedir,;t t
  22847. s,@infodir@,$infodir,;t t
  22848. s,@mandir@,$mandir,;t t
  22849. s,@build_alias@,$build_alias,;t t
  22850. s,@host_alias@,$host_alias,;t t
  22851. s,@target_alias@,$target_alias,;t t
  22852. s,@DEFS@,$DEFS,;t t
  22853. s,@ECHO_C@,$ECHO_C,;t t
  22854. s,@ECHO_N@,$ECHO_N,;t t
  22855. s,@ECHO_T@,$ECHO_T,;t t
  22856. s,@LIBS@,$LIBS,;t t
  22857. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  22858. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  22859. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  22860. s,@CYGPATH_W@,$CYGPATH_W,;t t
  22861. s,@PACKAGE@,$PACKAGE,;t t
  22862. s,@VERSION@,$VERSION,;t t
  22863. s,@ACLOCAL@,$ACLOCAL,;t t
  22864. s,@AUTOCONF@,$AUTOCONF,;t t
  22865. s,@AUTOMAKE@,$AUTOMAKE,;t t
  22866. s,@AUTOHEADER@,$AUTOHEADER,;t t
  22867. s,@MAKEINFO@,$MAKEINFO,;t t
  22868. s,@install_sh@,$install_sh,;t t
  22869. s,@STRIP@,$STRIP,;t t
  22870. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  22871. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  22872. s,@mkdir_p@,$mkdir_p,;t t
  22873. s,@AWK@,$AWK,;t t
  22874. s,@SET_MAKE@,$SET_MAKE,;t t
  22875. s,@am__leading_dot@,$am__leading_dot,;t t
  22876. s,@AMTAR@,$AMTAR,;t t
  22877. s,@am__tar@,$am__tar,;t t
  22878. s,@am__untar@,$am__untar,;t t
  22879. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  22880. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  22881. s,@MAINT@,$MAINT,;t t
  22882. s,@build@,$build,;t t
  22883. s,@build_cpu@,$build_cpu,;t t
  22884. s,@build_vendor@,$build_vendor,;t t
  22885. s,@build_os@,$build_os,;t t
  22886. s,@host@,$host,;t t
  22887. s,@host_cpu@,$host_cpu,;t t
  22888. s,@host_vendor@,$host_vendor,;t t
  22889. s,@host_os@,$host_os,;t t
  22890. s,@CXX@,$CXX,;t t
  22891. s,@CXXFLAGS@,$CXXFLAGS,;t t
  22892. s,@LDFLAGS@,$LDFLAGS,;t t
  22893. s,@CPPFLAGS@,$CPPFLAGS,;t t
  22894. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  22895. s,@EXEEXT@,$EXEEXT,;t t
  22896. s,@OBJEXT@,$OBJEXT,;t t
  22897. s,@DEPDIR@,$DEPDIR,;t t
  22898. s,@am__include@,$am__include,;t t
  22899. s,@am__quote@,$am__quote,;t t
  22900. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  22901. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  22902. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  22903. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  22904. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  22905. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  22906. s,@CC@,$CC,;t t
  22907. s,@CFLAGS@,$CFLAGS,;t t
  22908. s,@ac_ct_CC@,$ac_ct_CC,;t t
  22909. s,@CCDEPMODE@,$CCDEPMODE,;t t
  22910. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  22911. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  22912. s,@EGREP@,$EGREP,;t t
  22913. s,@LN_S@,$LN_S,;t t
  22914. s,@ECHO@,$ECHO,;t t
  22915. s,@AR@,$AR,;t t
  22916. s,@ac_ct_AR@,$ac_ct_AR,;t t
  22917. s,@RANLIB@,$RANLIB,;t t
  22918. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  22919. s,@CPP@,$CPP,;t t
  22920. s,@CXXCPP@,$CXXCPP,;t t
  22921. s,@F77@,$F77,;t t
  22922. s,@FFLAGS@,$FFLAGS,;t t
  22923. s,@ac_ct_F77@,$ac_ct_F77,;t t
  22924. s,@LIBTOOL@,$LIBTOOL,;t t
  22925. s,@LIBOBJS@,$LIBOBJS,;t t
  22926. s,@debug_defs@,$debug_defs,;t t
  22927. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  22928. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  22929. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  22930. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  22931. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  22932. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  22933. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  22934. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  22935. s,@configdir@,$configdir,;t t
  22936. s,@sampledatadir@,$sampledatadir,;t t
  22937. s,@propertydir@,$propertydir,;t t
  22938. s,@schemadir@,$schemadir,;t t
  22939. s,@serverdir@,$serverdir,;t t
  22940. s,@serverplugindir@,$serverplugindir,;t t
  22941. s,@scripttemplatedir@,$scripttemplatedir,;t t
  22942. s,@instconfigdir@,$instconfigdir,;t t
  22943. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  22944. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  22945. s,@LIBSOCKET@,$LIBSOCKET,;t t
  22946. s,@LIBNSL@,$LIBNSL,;t t
  22947. s,@LIBDL@,$LIBDL,;t t
  22948. s,@LIBCSTD@,$LIBCSTD,;t t
  22949. s,@LIBCRUN@,$LIBCRUN,;t t
  22950. s,@initdir@,$initdir,;t t
  22951. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  22952. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  22953. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  22954. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  22955. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  22956. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  22957. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  22958. s,@nspr_inc@,$nspr_inc,;t t
  22959. s,@nspr_lib@,$nspr_lib,;t t
  22960. s,@nspr_libdir@,$nspr_libdir,;t t
  22961. s,@nss_inc@,$nss_inc,;t t
  22962. s,@nss_lib@,$nss_lib,;t t
  22963. s,@nss_libdir@,$nss_libdir,;t t
  22964. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  22965. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  22966. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  22967. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  22968. s,@db_inc@,$db_inc,;t t
  22969. s,@db_incdir@,$db_incdir,;t t
  22970. s,@db_lib@,$db_lib,;t t
  22971. s,@db_libdir@,$db_libdir,;t t
  22972. s,@db_bindir@,$db_bindir,;t t
  22973. s,@db_libver@,$db_libver,;t t
  22974. s,@sasl_inc@,$sasl_inc,;t t
  22975. s,@sasl_lib@,$sasl_lib,;t t
  22976. s,@sasl_libdir@,$sasl_libdir,;t t
  22977. s,@svrcore_inc@,$svrcore_inc,;t t
  22978. s,@svrcore_lib@,$svrcore_lib,;t t
  22979. s,@icu_lib@,$icu_lib,;t t
  22980. s,@icu_inc@,$icu_inc,;t t
  22981. s,@icu_bin@,$icu_bin,;t t
  22982. s,@netsnmp_inc@,$netsnmp_inc,;t t
  22983. s,@netsnmp_lib@,$netsnmp_lib,;t t
  22984. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  22985. s,@netsnmp_link@,$netsnmp_link,;t t
  22986. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  22987. CEOF
  22988. _ACEOF
  22989. cat >>$CONFIG_STATUS <<\_ACEOF
  22990. # Split the substitutions into bite-sized pieces for seds with
  22991. # small command number limits, like on Digital OSF/1 and HP-UX.
  22992. ac_max_sed_lines=48
  22993. ac_sed_frag=1 # Number of current file.
  22994. ac_beg=1 # First line for current file.
  22995. ac_end=$ac_max_sed_lines # Line after last line for current file.
  22996. ac_more_lines=:
  22997. ac_sed_cmds=
  22998. while $ac_more_lines; do
  22999. if test $ac_beg -gt 1; then
  23000. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23001. else
  23002. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23003. fi
  23004. if test ! -s $tmp/subs.frag; then
  23005. ac_more_lines=false
  23006. else
  23007. # The purpose of the label and of the branching condition is to
  23008. # speed up the sed processing (if there are no `@' at all, there
  23009. # is no need to browse any of the substitutions).
  23010. # These are the two extra sed commands mentioned above.
  23011. (echo ':t
  23012. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  23013. if test -z "$ac_sed_cmds"; then
  23014. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  23015. else
  23016. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  23017. fi
  23018. ac_sed_frag=`expr $ac_sed_frag + 1`
  23019. ac_beg=$ac_end
  23020. ac_end=`expr $ac_end + $ac_max_sed_lines`
  23021. fi
  23022. done
  23023. if test -z "$ac_sed_cmds"; then
  23024. ac_sed_cmds=cat
  23025. fi
  23026. fi # test -n "$CONFIG_FILES"
  23027. _ACEOF
  23028. cat >>$CONFIG_STATUS <<\_ACEOF
  23029. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  23030. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23031. case $ac_file in
  23032. - | *:- | *:-:* ) # input from stdin
  23033. cat >$tmp/stdin
  23034. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23035. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23036. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23037. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23038. * ) ac_file_in=$ac_file.in ;;
  23039. esac
  23040. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  23041. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23042. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23043. X"$ac_file" : 'X\(//\)[^/]' \| \
  23044. X"$ac_file" : 'X\(//\)$' \| \
  23045. X"$ac_file" : 'X\(/\)' \| \
  23046. . : '\(.\)' 2>/dev/null ||
  23047. echo X"$ac_file" |
  23048. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23049. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23050. /^X\(\/\/\)$/{ s//\1/; q; }
  23051. /^X\(\/\).*/{ s//\1/; q; }
  23052. s/.*/./; q'`
  23053. { if $as_mkdir_p; then
  23054. mkdir -p "$ac_dir"
  23055. else
  23056. as_dir="$ac_dir"
  23057. as_dirs=
  23058. while test ! -d "$as_dir"; do
  23059. as_dirs="$as_dir $as_dirs"
  23060. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23061. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23062. X"$as_dir" : 'X\(//\)[^/]' \| \
  23063. X"$as_dir" : 'X\(//\)$' \| \
  23064. X"$as_dir" : 'X\(/\)' \| \
  23065. . : '\(.\)' 2>/dev/null ||
  23066. echo X"$as_dir" |
  23067. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23068. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23069. /^X\(\/\/\)$/{ s//\1/; q; }
  23070. /^X\(\/\).*/{ s//\1/; q; }
  23071. s/.*/./; q'`
  23072. done
  23073. test ! -n "$as_dirs" || mkdir $as_dirs
  23074. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23075. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23076. { (exit 1); exit 1; }; }; }
  23077. ac_builddir=.
  23078. if test "$ac_dir" != .; then
  23079. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23080. # A "../" for each directory in $ac_dir_suffix.
  23081. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23082. else
  23083. ac_dir_suffix= ac_top_builddir=
  23084. fi
  23085. case $srcdir in
  23086. .) # No --srcdir option. We are building in place.
  23087. ac_srcdir=.
  23088. if test -z "$ac_top_builddir"; then
  23089. ac_top_srcdir=.
  23090. else
  23091. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23092. fi ;;
  23093. [\\/]* | ?:[\\/]* ) # Absolute path.
  23094. ac_srcdir=$srcdir$ac_dir_suffix;
  23095. ac_top_srcdir=$srcdir ;;
  23096. *) # Relative path.
  23097. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23098. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23099. esac
  23100. # Do not use `cd foo && pwd` to compute absolute paths, because
  23101. # the directories may not exist.
  23102. case `pwd` in
  23103. .) ac_abs_builddir="$ac_dir";;
  23104. *)
  23105. case "$ac_dir" in
  23106. .) ac_abs_builddir=`pwd`;;
  23107. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23108. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23109. esac;;
  23110. esac
  23111. case $ac_abs_builddir in
  23112. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23113. *)
  23114. case ${ac_top_builddir}. in
  23115. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23116. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23117. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23118. esac;;
  23119. esac
  23120. case $ac_abs_builddir in
  23121. .) ac_abs_srcdir=$ac_srcdir;;
  23122. *)
  23123. case $ac_srcdir in
  23124. .) ac_abs_srcdir=$ac_abs_builddir;;
  23125. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23126. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23127. esac;;
  23128. esac
  23129. case $ac_abs_builddir in
  23130. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23131. *)
  23132. case $ac_top_srcdir in
  23133. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23134. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23135. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23136. esac;;
  23137. esac
  23138. case $INSTALL in
  23139. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23140. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  23141. esac
  23142. if test x"$ac_file" != x-; then
  23143. { echo "$as_me:$LINENO: creating $ac_file" >&5
  23144. echo "$as_me: creating $ac_file" >&6;}
  23145. rm -f "$ac_file"
  23146. fi
  23147. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23148. # use $as_me), people would be surprised to read:
  23149. # /* config.h. Generated by config.status. */
  23150. if test x"$ac_file" = x-; then
  23151. configure_input=
  23152. else
  23153. configure_input="$ac_file. "
  23154. fi
  23155. configure_input=$configure_input"Generated from `echo $ac_file_in |
  23156. sed 's,.*/,,'` by configure."
  23157. # First look for the input files in the build tree, otherwise in the
  23158. # src tree.
  23159. ac_file_inputs=`IFS=:
  23160. for f in $ac_file_in; do
  23161. case $f in
  23162. -) echo $tmp/stdin ;;
  23163. [\\/$]*)
  23164. # Absolute (can't be DOS-style, as IFS=:)
  23165. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23166. echo "$as_me: error: cannot find input file: $f" >&2;}
  23167. { (exit 1); exit 1; }; }
  23168. echo "$f";;
  23169. *) # Relative
  23170. if test -f "$f"; then
  23171. # Build tree
  23172. echo "$f"
  23173. elif test -f "$srcdir/$f"; then
  23174. # Source tree
  23175. echo "$srcdir/$f"
  23176. else
  23177. # /dev/null tree
  23178. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23179. echo "$as_me: error: cannot find input file: $f" >&2;}
  23180. { (exit 1); exit 1; }; }
  23181. fi;;
  23182. esac
  23183. done` || { (exit 1); exit 1; }
  23184. _ACEOF
  23185. cat >>$CONFIG_STATUS <<_ACEOF
  23186. sed "$ac_vpsub
  23187. $extrasub
  23188. _ACEOF
  23189. cat >>$CONFIG_STATUS <<\_ACEOF
  23190. :t
  23191. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23192. s,@configure_input@,$configure_input,;t t
  23193. s,@srcdir@,$ac_srcdir,;t t
  23194. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  23195. s,@top_srcdir@,$ac_top_srcdir,;t t
  23196. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  23197. s,@builddir@,$ac_builddir,;t t
  23198. s,@abs_builddir@,$ac_abs_builddir,;t t
  23199. s,@top_builddir@,$ac_top_builddir,;t t
  23200. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  23201. s,@INSTALL@,$ac_INSTALL,;t t
  23202. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  23203. rm -f $tmp/stdin
  23204. if test x"$ac_file" != x-; then
  23205. mv $tmp/out $ac_file
  23206. else
  23207. cat $tmp/out
  23208. rm -f $tmp/out
  23209. fi
  23210. done
  23211. _ACEOF
  23212. cat >>$CONFIG_STATUS <<\_ACEOF
  23213. #
  23214. # CONFIG_HEADER section.
  23215. #
  23216. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  23217. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  23218. #
  23219. # ac_d sets the value in "#define NAME VALUE" lines.
  23220. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  23221. ac_dB='[ ].*$,\1#\2'
  23222. ac_dC=' '
  23223. ac_dD=',;t'
  23224. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  23225. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  23226. ac_uB='$,\1#\2define\3'
  23227. ac_uC=' '
  23228. ac_uD=',;t'
  23229. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  23230. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23231. case $ac_file in
  23232. - | *:- | *:-:* ) # input from stdin
  23233. cat >$tmp/stdin
  23234. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23235. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23236. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23237. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23238. * ) ac_file_in=$ac_file.in ;;
  23239. esac
  23240. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  23241. echo "$as_me: creating $ac_file" >&6;}
  23242. # First look for the input files in the build tree, otherwise in the
  23243. # src tree.
  23244. ac_file_inputs=`IFS=:
  23245. for f in $ac_file_in; do
  23246. case $f in
  23247. -) echo $tmp/stdin ;;
  23248. [\\/$]*)
  23249. # Absolute (can't be DOS-style, as IFS=:)
  23250. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23251. echo "$as_me: error: cannot find input file: $f" >&2;}
  23252. { (exit 1); exit 1; }; }
  23253. # Do quote $f, to prevent DOS paths from being IFS'd.
  23254. echo "$f";;
  23255. *) # Relative
  23256. if test -f "$f"; then
  23257. # Build tree
  23258. echo "$f"
  23259. elif test -f "$srcdir/$f"; then
  23260. # Source tree
  23261. echo "$srcdir/$f"
  23262. else
  23263. # /dev/null tree
  23264. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23265. echo "$as_me: error: cannot find input file: $f" >&2;}
  23266. { (exit 1); exit 1; }; }
  23267. fi;;
  23268. esac
  23269. done` || { (exit 1); exit 1; }
  23270. # Remove the trailing spaces.
  23271. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  23272. _ACEOF
  23273. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  23274. # `conftest.undefs', that substitutes the proper values into
  23275. # config.h.in to produce config.h. The first handles `#define'
  23276. # templates, and the second `#undef' templates.
  23277. # And first: Protect against being on the right side of a sed subst in
  23278. # config.status. Protect against being in an unquoted here document
  23279. # in config.status.
  23280. rm -f conftest.defines conftest.undefs
  23281. # Using a here document instead of a string reduces the quoting nightmare.
  23282. # Putting comments in sed scripts is not portable.
  23283. #
  23284. # `end' is used to avoid that the second main sed command (meant for
  23285. # 0-ary CPP macros) applies to n-ary macro definitions.
  23286. # See the Autoconf documentation for `clear'.
  23287. cat >confdef2sed.sed <<\_ACEOF
  23288. s/[\\&,]/\\&/g
  23289. s,[\\$`],\\&,g
  23290. t clear
  23291. : clear
  23292. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  23293. t end
  23294. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  23295. : end
  23296. _ACEOF
  23297. # If some macros were called several times there might be several times
  23298. # the same #defines, which is useless. Nevertheless, we may not want to
  23299. # sort them, since we want the *last* AC-DEFINE to be honored.
  23300. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  23301. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  23302. rm -f confdef2sed.sed
  23303. # This sed command replaces #undef with comments. This is necessary, for
  23304. # example, in the case of _POSIX_SOURCE, which is predefined and required
  23305. # on some systems where configure will not decide to define it.
  23306. cat >>conftest.undefs <<\_ACEOF
  23307. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  23308. _ACEOF
  23309. # Break up conftest.defines because some shells have a limit on the size
  23310. # of here documents, and old seds have small limits too (100 cmds).
  23311. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  23312. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  23313. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  23314. echo ' :' >>$CONFIG_STATUS
  23315. rm -f conftest.tail
  23316. while grep . conftest.defines >/dev/null
  23317. do
  23318. # Write a limited-size here document to $tmp/defines.sed.
  23319. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  23320. # Speed up: don't consider the non `#define' lines.
  23321. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  23322. # Work around the forget-to-reset-the-flag bug.
  23323. echo 't clr' >>$CONFIG_STATUS
  23324. echo ': clr' >>$CONFIG_STATUS
  23325. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  23326. echo 'CEOF
  23327. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  23328. rm -f $tmp/in
  23329. mv $tmp/out $tmp/in
  23330. ' >>$CONFIG_STATUS
  23331. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  23332. rm -f conftest.defines
  23333. mv conftest.tail conftest.defines
  23334. done
  23335. rm -f conftest.defines
  23336. echo ' fi # grep' >>$CONFIG_STATUS
  23337. echo >>$CONFIG_STATUS
  23338. # Break up conftest.undefs because some shells have a limit on the size
  23339. # of here documents, and old seds have small limits too (100 cmds).
  23340. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  23341. rm -f conftest.tail
  23342. while grep . conftest.undefs >/dev/null
  23343. do
  23344. # Write a limited-size here document to $tmp/undefs.sed.
  23345. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  23346. # Speed up: don't consider the non `#undef'
  23347. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  23348. # Work around the forget-to-reset-the-flag bug.
  23349. echo 't clr' >>$CONFIG_STATUS
  23350. echo ': clr' >>$CONFIG_STATUS
  23351. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  23352. echo 'CEOF
  23353. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  23354. rm -f $tmp/in
  23355. mv $tmp/out $tmp/in
  23356. ' >>$CONFIG_STATUS
  23357. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  23358. rm -f conftest.undefs
  23359. mv conftest.tail conftest.undefs
  23360. done
  23361. rm -f conftest.undefs
  23362. cat >>$CONFIG_STATUS <<\_ACEOF
  23363. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23364. # use $as_me), people would be surprised to read:
  23365. # /* config.h. Generated by config.status. */
  23366. if test x"$ac_file" = x-; then
  23367. echo "/* Generated by configure. */" >$tmp/config.h
  23368. else
  23369. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  23370. fi
  23371. cat $tmp/in >>$tmp/config.h
  23372. rm -f $tmp/in
  23373. if test x"$ac_file" != x-; then
  23374. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  23375. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23376. echo "$as_me: $ac_file is unchanged" >&6;}
  23377. else
  23378. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23379. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23380. X"$ac_file" : 'X\(//\)[^/]' \| \
  23381. X"$ac_file" : 'X\(//\)$' \| \
  23382. X"$ac_file" : 'X\(/\)' \| \
  23383. . : '\(.\)' 2>/dev/null ||
  23384. echo X"$ac_file" |
  23385. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23386. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23387. /^X\(\/\/\)$/{ s//\1/; q; }
  23388. /^X\(\/\).*/{ s//\1/; q; }
  23389. s/.*/./; q'`
  23390. { if $as_mkdir_p; then
  23391. mkdir -p "$ac_dir"
  23392. else
  23393. as_dir="$ac_dir"
  23394. as_dirs=
  23395. while test ! -d "$as_dir"; do
  23396. as_dirs="$as_dir $as_dirs"
  23397. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23398. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23399. X"$as_dir" : 'X\(//\)[^/]' \| \
  23400. X"$as_dir" : 'X\(//\)$' \| \
  23401. X"$as_dir" : 'X\(/\)' \| \
  23402. . : '\(.\)' 2>/dev/null ||
  23403. echo X"$as_dir" |
  23404. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23405. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23406. /^X\(\/\/\)$/{ s//\1/; q; }
  23407. /^X\(\/\).*/{ s//\1/; q; }
  23408. s/.*/./; q'`
  23409. done
  23410. test ! -n "$as_dirs" || mkdir $as_dirs
  23411. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23412. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23413. { (exit 1); exit 1; }; }; }
  23414. rm -f $ac_file
  23415. mv $tmp/config.h $ac_file
  23416. fi
  23417. else
  23418. cat $tmp/config.h
  23419. rm -f $tmp/config.h
  23420. fi
  23421. # Compute $ac_file's index in $config_headers.
  23422. _am_stamp_count=1
  23423. for _am_header in $config_headers :; do
  23424. case $_am_header in
  23425. $ac_file | $ac_file:* )
  23426. break ;;
  23427. * )
  23428. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23429. esac
  23430. done
  23431. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  23432. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23433. X$ac_file : 'X\(//\)[^/]' \| \
  23434. X$ac_file : 'X\(//\)$' \| \
  23435. X$ac_file : 'X\(/\)' \| \
  23436. . : '\(.\)' 2>/dev/null ||
  23437. echo X$ac_file |
  23438. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23439. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23440. /^X\(\/\/\)$/{ s//\1/; q; }
  23441. /^X\(\/\).*/{ s//\1/; q; }
  23442. s/.*/./; q'`/stamp-h$_am_stamp_count
  23443. done
  23444. _ACEOF
  23445. cat >>$CONFIG_STATUS <<\_ACEOF
  23446. #
  23447. # CONFIG_COMMANDS section.
  23448. #
  23449. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  23450. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  23451. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23452. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  23453. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23454. X"$ac_dest" : 'X\(//\)[^/]' \| \
  23455. X"$ac_dest" : 'X\(//\)$' \| \
  23456. X"$ac_dest" : 'X\(/\)' \| \
  23457. . : '\(.\)' 2>/dev/null ||
  23458. echo X"$ac_dest" |
  23459. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23460. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23461. /^X\(\/\/\)$/{ s//\1/; q; }
  23462. /^X\(\/\).*/{ s//\1/; q; }
  23463. s/.*/./; q'`
  23464. { if $as_mkdir_p; then
  23465. mkdir -p "$ac_dir"
  23466. else
  23467. as_dir="$ac_dir"
  23468. as_dirs=
  23469. while test ! -d "$as_dir"; do
  23470. as_dirs="$as_dir $as_dirs"
  23471. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23472. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23473. X"$as_dir" : 'X\(//\)[^/]' \| \
  23474. X"$as_dir" : 'X\(//\)$' \| \
  23475. X"$as_dir" : 'X\(/\)' \| \
  23476. . : '\(.\)' 2>/dev/null ||
  23477. echo X"$as_dir" |
  23478. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23479. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23480. /^X\(\/\/\)$/{ s//\1/; q; }
  23481. /^X\(\/\).*/{ s//\1/; q; }
  23482. s/.*/./; q'`
  23483. done
  23484. test ! -n "$as_dirs" || mkdir $as_dirs
  23485. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23486. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23487. { (exit 1); exit 1; }; }; }
  23488. ac_builddir=.
  23489. if test "$ac_dir" != .; then
  23490. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23491. # A "../" for each directory in $ac_dir_suffix.
  23492. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23493. else
  23494. ac_dir_suffix= ac_top_builddir=
  23495. fi
  23496. case $srcdir in
  23497. .) # No --srcdir option. We are building in place.
  23498. ac_srcdir=.
  23499. if test -z "$ac_top_builddir"; then
  23500. ac_top_srcdir=.
  23501. else
  23502. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23503. fi ;;
  23504. [\\/]* | ?:[\\/]* ) # Absolute path.
  23505. ac_srcdir=$srcdir$ac_dir_suffix;
  23506. ac_top_srcdir=$srcdir ;;
  23507. *) # Relative path.
  23508. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23509. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23510. esac
  23511. # Do not use `cd foo && pwd` to compute absolute paths, because
  23512. # the directories may not exist.
  23513. case `pwd` in
  23514. .) ac_abs_builddir="$ac_dir";;
  23515. *)
  23516. case "$ac_dir" in
  23517. .) ac_abs_builddir=`pwd`;;
  23518. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23519. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23520. esac;;
  23521. esac
  23522. case $ac_abs_builddir in
  23523. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23524. *)
  23525. case ${ac_top_builddir}. in
  23526. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23527. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23528. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23529. esac;;
  23530. esac
  23531. case $ac_abs_builddir in
  23532. .) ac_abs_srcdir=$ac_srcdir;;
  23533. *)
  23534. case $ac_srcdir in
  23535. .) ac_abs_srcdir=$ac_abs_builddir;;
  23536. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23537. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23538. esac;;
  23539. esac
  23540. case $ac_abs_builddir in
  23541. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23542. *)
  23543. case $ac_top_srcdir in
  23544. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23545. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23546. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23547. esac;;
  23548. esac
  23549. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  23550. echo "$as_me: executing $ac_dest commands" >&6;}
  23551. case $ac_dest in
  23552. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  23553. # Strip MF so we end up with the name of the file.
  23554. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23555. # Check whether this is an Automake generated Makefile or not.
  23556. # We used to match only the files named `Makefile.in', but
  23557. # some people rename them; so instead we look at the file content.
  23558. # Grep'ing the first line is not enough: some people post-process
  23559. # each Makefile.in and add a new line on top of each file to say so.
  23560. # So let's grep whole file.
  23561. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  23562. dirpart=`(dirname "$mf") 2>/dev/null ||
  23563. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23564. X"$mf" : 'X\(//\)[^/]' \| \
  23565. X"$mf" : 'X\(//\)$' \| \
  23566. X"$mf" : 'X\(/\)' \| \
  23567. . : '\(.\)' 2>/dev/null ||
  23568. echo X"$mf" |
  23569. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23570. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23571. /^X\(\/\/\)$/{ s//\1/; q; }
  23572. /^X\(\/\).*/{ s//\1/; q; }
  23573. s/.*/./; q'`
  23574. else
  23575. continue
  23576. fi
  23577. # Extract the definition of DEPDIR, am__include, and am__quote
  23578. # from the Makefile without running `make'.
  23579. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23580. test -z "$DEPDIR" && continue
  23581. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23582. test -z "am__include" && continue
  23583. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23584. # When using ansi2knr, U may be empty or an underscore; expand it
  23585. U=`sed -n 's/^U = //p' < "$mf"`
  23586. # Find all dependency output files, they are included files with
  23587. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23588. # simplest approach to changing $(DEPDIR) to its actual value in the
  23589. # expansion.
  23590. for file in `sed -n "
  23591. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23592. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23593. # Make sure the directory exists.
  23594. test -f "$dirpart/$file" && continue
  23595. fdir=`(dirname "$file") 2>/dev/null ||
  23596. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23597. X"$file" : 'X\(//\)[^/]' \| \
  23598. X"$file" : 'X\(//\)$' \| \
  23599. X"$file" : 'X\(/\)' \| \
  23600. . : '\(.\)' 2>/dev/null ||
  23601. echo X"$file" |
  23602. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23603. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23604. /^X\(\/\/\)$/{ s//\1/; q; }
  23605. /^X\(\/\).*/{ s//\1/; q; }
  23606. s/.*/./; q'`
  23607. { if $as_mkdir_p; then
  23608. mkdir -p $dirpart/$fdir
  23609. else
  23610. as_dir=$dirpart/$fdir
  23611. as_dirs=
  23612. while test ! -d "$as_dir"; do
  23613. as_dirs="$as_dir $as_dirs"
  23614. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23615. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23616. X"$as_dir" : 'X\(//\)[^/]' \| \
  23617. X"$as_dir" : 'X\(//\)$' \| \
  23618. X"$as_dir" : 'X\(/\)' \| \
  23619. . : '\(.\)' 2>/dev/null ||
  23620. echo X"$as_dir" |
  23621. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23622. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23623. /^X\(\/\/\)$/{ s//\1/; q; }
  23624. /^X\(\/\).*/{ s//\1/; q; }
  23625. s/.*/./; q'`
  23626. done
  23627. test ! -n "$as_dirs" || mkdir $as_dirs
  23628. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  23629. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  23630. { (exit 1); exit 1; }; }; }
  23631. # echo "creating $dirpart/$file"
  23632. echo '# dummy' > "$dirpart/$file"
  23633. done
  23634. done
  23635. ;;
  23636. esac
  23637. done
  23638. _ACEOF
  23639. cat >>$CONFIG_STATUS <<\_ACEOF
  23640. { (exit 0); exit 0; }
  23641. _ACEOF
  23642. chmod +x $CONFIG_STATUS
  23643. ac_clean_files=$ac_clean_files_save
  23644. # configure is writing to config.log, and then calls config.status.
  23645. # config.status does its own redirection, appending to config.log.
  23646. # Unfortunately, on DOS this fails, as config.log is still kept open
  23647. # by configure, so config.status won't be able to write to it; its
  23648. # output is simply discarded. So we exec the FD to /dev/null,
  23649. # effectively closing config.log, so it can be properly (re)opened and
  23650. # appended to by config.status. When coming back to configure, we
  23651. # need to make the FD available again.
  23652. if test "$no_create" != yes; then
  23653. ac_cs_success=:
  23654. ac_config_status_args=
  23655. test "$silent" = yes &&
  23656. ac_config_status_args="$ac_config_status_args --quiet"
  23657. exec 5>/dev/null
  23658. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23659. exec 5>>config.log
  23660. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23661. # would make configure fail if this is the last instruction.
  23662. $ac_cs_success || { (exit 1); exit 1; }
  23663. fi