configure 911 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dirsrv 1.0.
  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='dirsrv'
  373. PACKAGE_TARNAME='dirsrv'
  374. PACKAGE_VERSION='1.0'
  375. PACKAGE_STRING='dirsrv 1.0'
  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 CONSOLE_VERSION 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 CCAS CCASFLAGS SED 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 enable_autobind_TRUE enable_autobind_FALSE enable_auto_dn_suffix_TRUE enable_auto_dn_suffix_FALSE enable_bitwise_TRUE enable_bitwise_FALSE enable_presence_TRUE enable_presence_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir updatedir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE THREADLIB LIBCRYPT LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec initconfigdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG KRB5_CONFIG_BIN kerberos_inc kerberos_lib kerberos_libdir with_selinux PACKAGE_BASE_VERSION SELINUX_TRUE SELINUX_FALSE OPENLDAP_TRUE OPENLDAP_FALSE nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib ldapsdk_libdir ldapsdk_bindir openldap_inc openldap_lib openldap_libdir openldap_bindir ol_libver db_inc db_incdir db_lib db_libdir db_bindir db_libver sasl_inc sasl_lib sasl_libdir sasl_path svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link pcre_inc pcre_lib pcre_libdir brand capbrand vendor 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_CCAS_set=${CCAS+set}
  822. ac_env_CCAS_value=$CCAS
  823. ac_cv_env_CCAS_set=${CCAS+set}
  824. ac_cv_env_CCAS_value=$CCAS
  825. ac_env_CCASFLAGS_set=${CCASFLAGS+set}
  826. ac_env_CCASFLAGS_value=$CCASFLAGS
  827. ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
  828. ac_cv_env_CCASFLAGS_value=$CCASFLAGS
  829. ac_env_CPP_set=${CPP+set}
  830. ac_env_CPP_value=$CPP
  831. ac_cv_env_CPP_set=${CPP+set}
  832. ac_cv_env_CPP_value=$CPP
  833. ac_env_CXXCPP_set=${CXXCPP+set}
  834. ac_env_CXXCPP_value=$CXXCPP
  835. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  836. ac_cv_env_CXXCPP_value=$CXXCPP
  837. ac_env_F77_set=${F77+set}
  838. ac_env_F77_value=$F77
  839. ac_cv_env_F77_set=${F77+set}
  840. ac_cv_env_F77_value=$F77
  841. ac_env_FFLAGS_set=${FFLAGS+set}
  842. ac_env_FFLAGS_value=$FFLAGS
  843. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  844. ac_cv_env_FFLAGS_value=$FFLAGS
  845. #
  846. # Report the --help message.
  847. #
  848. if test "$ac_init_help" = "long"; then
  849. # Omit some internal or obsolete options to make the list less imposing.
  850. # This message is too long to be a string in the A/UX 3.1 sh.
  851. cat <<_ACEOF
  852. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  853. Usage: $0 [OPTION]... [VAR=VALUE]...
  854. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  855. VAR=VALUE. See below for descriptions of some of the useful variables.
  856. Defaults for the options are specified in brackets.
  857. Configuration:
  858. -h, --help display this help and exit
  859. --help=short display options specific to this package
  860. --help=recursive display the short help of all the included packages
  861. -V, --version display version information and exit
  862. -q, --quiet, --silent do not print \`checking...' messages
  863. --cache-file=FILE cache test results in FILE [disabled]
  864. -C, --config-cache alias for \`--cache-file=config.cache'
  865. -n, --no-create do not create output files
  866. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  867. _ACEOF
  868. cat <<_ACEOF
  869. Installation directories:
  870. --prefix=PREFIX install architecture-independent files in PREFIX
  871. [$ac_default_prefix]
  872. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  873. [PREFIX]
  874. By default, \`make install' will install all the files in
  875. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  876. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  877. for instance \`--prefix=\$HOME'.
  878. For better control, use the options below.
  879. Fine tuning of the installation directories:
  880. --bindir=DIR user executables [EPREFIX/bin]
  881. --sbindir=DIR system admin executables [EPREFIX/sbin]
  882. --libexecdir=DIR program executables [EPREFIX/libexec]
  883. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  884. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  885. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  886. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  887. --libdir=DIR object code libraries [EPREFIX/lib]
  888. --includedir=DIR C header files [PREFIX/include]
  889. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  890. --infodir=DIR info documentation [PREFIX/info]
  891. --mandir=DIR man documentation [PREFIX/man]
  892. _ACEOF
  893. cat <<\_ACEOF
  894. Program names:
  895. --program-prefix=PREFIX prepend PREFIX to installed program names
  896. --program-suffix=SUFFIX append SUFFIX to installed program names
  897. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  898. System types:
  899. --build=BUILD configure for building on BUILD [guessed]
  900. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  901. _ACEOF
  902. fi
  903. if test -n "$ac_init_help"; then
  904. case $ac_init_help in
  905. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  906. esac
  907. cat <<\_ACEOF
  908. Optional Features:
  909. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  910. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  911. --enable-maintainer-mode enable make rules and dependencies not useful
  912. (and sometimes confusing) to the casual installer
  913. --disable-dependency-tracking speeds up one-time build
  914. --enable-dependency-tracking do not reject slow dependency extractors
  915. --enable-static[=PKGS]
  916. build static libraries [default=no]
  917. --enable-shared[=PKGS]
  918. build shared libraries [default=yes]
  919. --enable-fast-install[=PKGS]
  920. optimize for fast installation [default=yes]
  921. --disable-libtool-lock avoid locking (might break parallel builds)
  922. --enable-debug Enable debug features (default: no)
  923. --enable-bundle Enable bundled dependencies (default: no)
  924. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  925. yes)
  926. --enable-dna enable the Distributed Numeric Assignment (DNA)
  927. plugin (default: yes)
  928. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  929. (default: yes)
  930. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  931. support (default: no)
  932. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  933. domain socket (LDAPI) support (default: no)
  934. --enable-bitwise enable the bitwise matching rule plugin (default:
  935. yes)
  936. --enable-presence enable the presence plugin (default: no)
  937. Optional Packages:
  938. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  939. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  940. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  941. --with-pic try to use only PIC/non-PIC objects [default=use
  942. both]
  943. --with-tags[=TAGS]
  944. include additional configurations [automatic]
  945. --with-fhs Use FHS layout
  946. --with-fhs-opt Use FHS optional layout
  947. --with-instconfigdir=/path
  948. Base directory for instance specific writable
  949. configuration directories (default
  950. $sysconfdir/$PACKAGE_NAME)
  951. --with-initddir=/path Absolute path (not relative like some of the other
  952. options) that should contain the SysV init scripts
  953. (default '$(sysconfdir)/rc.d')
  954. --with-nspr[=PATH]
  955. Netscape Portable Runtime (NSPR) directory
  956. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  957. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  958. --with-nss[=PATH] Network Security Services (NSS) directory
  959. --with-nss-inc=PATH Network Security Services (NSS) include directory
  960. --with-nss-lib=PATH Network Security Services (NSS) library directory
  961. --with-openldap[=PATH]
  962. Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  963. --with-openldap-inc=PATH
  964. OpenLDAP SDK include directory
  965. --with-openldap-lib=PATH
  966. OpenLDAP SDK library directory
  967. --with-openldap-bin=PATH
  968. OpenLDAP SDK binary directory
  969. --with-ldapsdk[=PATH]
  970. Mozilla LDAP SDK directory
  971. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  972. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  973. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  974. --with-db[=PATH] Berkeley DB directory
  975. --with-db-inc=PATH Berkeley DB include file directory
  976. --with-db-lib=PATH Berkeley DB library directory
  977. --with-sasl[=PATH]
  978. Use SASL from supplied path
  979. --with-sasl-inc=PATH SASL include file directory
  980. --with-sasl-lib=PATH SASL library directory
  981. --with-svrcore[=PATH]
  982. Use system installed SVRCORE - optional path for
  983. SVRCORE
  984. --with-svrcore-inc=PATH SVRCORE include file directory
  985. --with-svrcore-lib=PATH SVRCORE library directory
  986. --with-icu[=PATH] ICU directory
  987. --with-icu-inc=PATH ICU include directory
  988. --with-icu-lib=PATH ICU library directory
  989. --with-icu-bin=PATH ICU binary directory
  990. --with-netsnmp[=PATH]
  991. Net-SNMP directory
  992. --with-netsnmp-inc=PATH Net-SNMP include directory
  993. --with-netsnmp-lib=PATH Net-SNMP library directory
  994. --with-kerberos[=PATH]
  995. Use the kerberos API in the server directly - allows
  996. the server to authenticate directly with a keytab -
  997. otherwise, SASL/GSSAPI auth depends on underlying
  998. SASL libraries and external kinit with a keytab - if
  999. PATH is not specified, look for kerberos in the
  1000. system locations. This will attempt to use
  1001. krb5-config from the PATH to find the libs and
  1002. include dirs - you can specify KRB5_CONFIG_BIN to
  1003. specify a different filename or absolute path. If
  1004. krb5-config does not work, this will attempt to look
  1005. in various system directories
  1006. --with-kerberos-inc=PATH
  1007. Allows you to explicitly set the directory
  1008. containing the kerberos include files - implies use
  1009. of kerberos
  1010. --with-kerberos-lib=PATH
  1011. Allows you to explicitly set the directory
  1012. containing the kerberos libraries - implies use of
  1013. kerberos
  1014. --with-pcre[=PATH]
  1015. Perl Compatible Regular Expression directory
  1016. --with-selinux Build SELinux policy
  1017. Some influential environment variables:
  1018. CXX C++ compiler command
  1019. CXXFLAGS C++ compiler flags
  1020. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1021. nonstandard directory <lib dir>
  1022. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1023. headers in a nonstandard directory <include dir>
  1024. CC C compiler command
  1025. CFLAGS C compiler flags
  1026. CCAS assembler compiler command (defaults to CC)
  1027. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1028. CPP C preprocessor
  1029. CXXCPP C++ preprocessor
  1030. F77 Fortran 77 compiler command
  1031. FFLAGS Fortran 77 compiler flags
  1032. Use these variables to override the choices made by `configure' or to help
  1033. it to find libraries and programs with nonstandard names/locations.
  1034. Report bugs to <http://bugzilla.redhat.com/>.
  1035. _ACEOF
  1036. fi
  1037. if test "$ac_init_help" = "recursive"; then
  1038. # If there are subdirs, report their specific --help.
  1039. ac_popdir=`pwd`
  1040. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1041. test -d $ac_dir || continue
  1042. ac_builddir=.
  1043. if test "$ac_dir" != .; then
  1044. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1045. # A "../" for each directory in $ac_dir_suffix.
  1046. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1047. else
  1048. ac_dir_suffix= ac_top_builddir=
  1049. fi
  1050. case $srcdir in
  1051. .) # No --srcdir option. We are building in place.
  1052. ac_srcdir=.
  1053. if test -z "$ac_top_builddir"; then
  1054. ac_top_srcdir=.
  1055. else
  1056. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1057. fi ;;
  1058. [\\/]* | ?:[\\/]* ) # Absolute path.
  1059. ac_srcdir=$srcdir$ac_dir_suffix;
  1060. ac_top_srcdir=$srcdir ;;
  1061. *) # Relative path.
  1062. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1063. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1064. esac
  1065. # Do not use `cd foo && pwd` to compute absolute paths, because
  1066. # the directories may not exist.
  1067. case `pwd` in
  1068. .) ac_abs_builddir="$ac_dir";;
  1069. *)
  1070. case "$ac_dir" in
  1071. .) ac_abs_builddir=`pwd`;;
  1072. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1073. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1074. esac;;
  1075. esac
  1076. case $ac_abs_builddir in
  1077. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1078. *)
  1079. case ${ac_top_builddir}. in
  1080. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1081. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1082. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1083. esac;;
  1084. esac
  1085. case $ac_abs_builddir in
  1086. .) ac_abs_srcdir=$ac_srcdir;;
  1087. *)
  1088. case $ac_srcdir in
  1089. .) ac_abs_srcdir=$ac_abs_builddir;;
  1090. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1091. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1092. esac;;
  1093. esac
  1094. case $ac_abs_builddir in
  1095. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1096. *)
  1097. case $ac_top_srcdir in
  1098. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1099. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1100. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1101. esac;;
  1102. esac
  1103. cd $ac_dir
  1104. # Check for guested configure; otherwise get Cygnus style configure.
  1105. if test -f $ac_srcdir/configure.gnu; then
  1106. echo
  1107. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1108. elif test -f $ac_srcdir/configure; then
  1109. echo
  1110. $SHELL $ac_srcdir/configure --help=recursive
  1111. elif test -f $ac_srcdir/configure.ac ||
  1112. test -f $ac_srcdir/configure.in; then
  1113. echo
  1114. $ac_configure --help
  1115. else
  1116. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1117. fi
  1118. cd $ac_popdir
  1119. done
  1120. fi
  1121. test -n "$ac_init_help" && exit 0
  1122. if $ac_init_version; then
  1123. cat <<\_ACEOF
  1124. dirsrv configure 1.0
  1125. generated by GNU Autoconf 2.59
  1126. Copyright (C) 2003 Free Software Foundation, Inc.
  1127. This configure script is free software; the Free Software Foundation
  1128. gives unlimited permission to copy, distribute and modify it.
  1129. _ACEOF
  1130. exit 0
  1131. fi
  1132. exec 5>config.log
  1133. cat >&5 <<_ACEOF
  1134. This file contains any messages produced by compilers while
  1135. running configure, to aid debugging if configure makes a mistake.
  1136. It was created by dirsrv $as_me 1.0, which was
  1137. generated by GNU Autoconf 2.59. Invocation command line was
  1138. $ $0 $@
  1139. _ACEOF
  1140. {
  1141. cat <<_ASUNAME
  1142. ## --------- ##
  1143. ## Platform. ##
  1144. ## --------- ##
  1145. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1146. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1147. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1148. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1149. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1150. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1151. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1152. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1153. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1154. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1155. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1156. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1157. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1158. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1159. _ASUNAME
  1160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1161. for as_dir in $PATH
  1162. do
  1163. IFS=$as_save_IFS
  1164. test -z "$as_dir" && as_dir=.
  1165. echo "PATH: $as_dir"
  1166. done
  1167. } >&5
  1168. cat >&5 <<_ACEOF
  1169. ## ----------- ##
  1170. ## Core tests. ##
  1171. ## ----------- ##
  1172. _ACEOF
  1173. # Keep a trace of the command line.
  1174. # Strip out --no-create and --no-recursion so they do not pile up.
  1175. # Strip out --silent because we don't want to record it for future runs.
  1176. # Also quote any args containing shell meta-characters.
  1177. # Make two passes to allow for proper duplicate-argument suppression.
  1178. ac_configure_args=
  1179. ac_configure_args0=
  1180. ac_configure_args1=
  1181. ac_sep=
  1182. ac_must_keep_next=false
  1183. for ac_pass in 1 2
  1184. do
  1185. for ac_arg
  1186. do
  1187. case $ac_arg in
  1188. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1189. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1190. | -silent | --silent | --silen | --sile | --sil)
  1191. continue ;;
  1192. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1193. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1194. esac
  1195. case $ac_pass in
  1196. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1197. 2)
  1198. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1199. if test $ac_must_keep_next = true; then
  1200. ac_must_keep_next=false # Got value, back to normal.
  1201. else
  1202. case $ac_arg in
  1203. *=* | --config-cache | -C | -disable-* | --disable-* \
  1204. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1205. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1206. | -with-* | --with-* | -without-* | --without-* | --x)
  1207. case "$ac_configure_args0 " in
  1208. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1209. esac
  1210. ;;
  1211. -* ) ac_must_keep_next=true ;;
  1212. esac
  1213. fi
  1214. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1215. # Get rid of the leading space.
  1216. ac_sep=" "
  1217. ;;
  1218. esac
  1219. done
  1220. done
  1221. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1222. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1223. # When interrupted or exit'd, cleanup temporary files, and complete
  1224. # config.log. We remove comments because anyway the quotes in there
  1225. # would cause problems or look ugly.
  1226. # WARNING: Be sure not to use single quotes in there, as some shells,
  1227. # such as our DU 5.0 friend, will then `close' the trap.
  1228. trap 'exit_status=$?
  1229. # Save into config.log some information that might help in debugging.
  1230. {
  1231. echo
  1232. cat <<\_ASBOX
  1233. ## ---------------- ##
  1234. ## Cache variables. ##
  1235. ## ---------------- ##
  1236. _ASBOX
  1237. echo
  1238. # The following way of writing the cache mishandles newlines in values,
  1239. {
  1240. (set) 2>&1 |
  1241. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1242. *ac_space=\ *)
  1243. sed -n \
  1244. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1245. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1246. ;;
  1247. *)
  1248. sed -n \
  1249. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1250. ;;
  1251. esac;
  1252. }
  1253. echo
  1254. cat <<\_ASBOX
  1255. ## ----------------- ##
  1256. ## Output variables. ##
  1257. ## ----------------- ##
  1258. _ASBOX
  1259. echo
  1260. for ac_var in $ac_subst_vars
  1261. do
  1262. eval ac_val=$`echo $ac_var`
  1263. echo "$ac_var='"'"'$ac_val'"'"'"
  1264. done | sort
  1265. echo
  1266. if test -n "$ac_subst_files"; then
  1267. cat <<\_ASBOX
  1268. ## ------------- ##
  1269. ## Output files. ##
  1270. ## ------------- ##
  1271. _ASBOX
  1272. echo
  1273. for ac_var in $ac_subst_files
  1274. do
  1275. eval ac_val=$`echo $ac_var`
  1276. echo "$ac_var='"'"'$ac_val'"'"'"
  1277. done | sort
  1278. echo
  1279. fi
  1280. if test -s confdefs.h; then
  1281. cat <<\_ASBOX
  1282. ## ----------- ##
  1283. ## confdefs.h. ##
  1284. ## ----------- ##
  1285. _ASBOX
  1286. echo
  1287. sed "/^$/d" confdefs.h | sort
  1288. echo
  1289. fi
  1290. test "$ac_signal" != 0 &&
  1291. echo "$as_me: caught signal $ac_signal"
  1292. echo "$as_me: exit $exit_status"
  1293. } >&5
  1294. rm -f core *.core &&
  1295. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1296. exit $exit_status
  1297. ' 0
  1298. for ac_signal in 1 2 13 15; do
  1299. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1300. done
  1301. ac_signal=0
  1302. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1303. rm -rf conftest* confdefs.h
  1304. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1305. echo >confdefs.h
  1306. # Predefined preprocessor variables.
  1307. cat >>confdefs.h <<_ACEOF
  1308. #define PACKAGE_NAME "$PACKAGE_NAME"
  1309. _ACEOF
  1310. cat >>confdefs.h <<_ACEOF
  1311. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1312. _ACEOF
  1313. cat >>confdefs.h <<_ACEOF
  1314. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1315. _ACEOF
  1316. cat >>confdefs.h <<_ACEOF
  1317. #define PACKAGE_STRING "$PACKAGE_STRING"
  1318. _ACEOF
  1319. cat >>confdefs.h <<_ACEOF
  1320. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1321. _ACEOF
  1322. # Let the site file select an alternate cache file if it wants to.
  1323. # Prefer explicitly selected file to automatically selected ones.
  1324. if test -z "$CONFIG_SITE"; then
  1325. if test "x$prefix" != xNONE; then
  1326. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1327. else
  1328. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1329. fi
  1330. fi
  1331. for ac_site_file in $CONFIG_SITE; do
  1332. if test -r "$ac_site_file"; then
  1333. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1334. echo "$as_me: loading site script $ac_site_file" >&6;}
  1335. sed 's/^/| /' "$ac_site_file" >&5
  1336. . "$ac_site_file"
  1337. fi
  1338. done
  1339. if test -r "$cache_file"; then
  1340. # Some versions of bash will fail to source /dev/null (special
  1341. # files actually), so we avoid doing that.
  1342. if test -f "$cache_file"; then
  1343. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1344. echo "$as_me: loading cache $cache_file" >&6;}
  1345. case $cache_file in
  1346. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1347. *) . ./$cache_file;;
  1348. esac
  1349. fi
  1350. else
  1351. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1352. echo "$as_me: creating cache $cache_file" >&6;}
  1353. >$cache_file
  1354. fi
  1355. # Check that the precious variables saved in the cache have kept the same
  1356. # value.
  1357. ac_cache_corrupted=false
  1358. for ac_var in `(set) 2>&1 |
  1359. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1360. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1361. eval ac_new_set=\$ac_env_${ac_var}_set
  1362. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1363. eval ac_new_val="\$ac_env_${ac_var}_value"
  1364. case $ac_old_set,$ac_new_set in
  1365. set,)
  1366. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1367. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1368. ac_cache_corrupted=: ;;
  1369. ,set)
  1370. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1371. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1372. ac_cache_corrupted=: ;;
  1373. ,);;
  1374. *)
  1375. if test "x$ac_old_val" != "x$ac_new_val"; then
  1376. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1377. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1378. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1379. echo "$as_me: former value: $ac_old_val" >&2;}
  1380. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1381. echo "$as_me: current value: $ac_new_val" >&2;}
  1382. ac_cache_corrupted=:
  1383. fi;;
  1384. esac
  1385. # Pass precious variables to config.status.
  1386. if test "$ac_new_set" = set; then
  1387. case $ac_new_val in
  1388. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1389. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1390. *) ac_arg=$ac_var=$ac_new_val ;;
  1391. esac
  1392. case " $ac_configure_args " in
  1393. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1394. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1395. esac
  1396. fi
  1397. done
  1398. if $ac_cache_corrupted; then
  1399. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1400. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1401. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1402. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1403. { (exit 1); exit 1; }; }
  1404. fi
  1405. ac_ext=c
  1406. ac_cpp='$CPP $CPPFLAGS'
  1407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1410. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1411. ac_config_headers="$ac_config_headers config.h"
  1412. # include the version information
  1413. . $srcdir/VERSION.sh
  1414. { echo "$as_me:$LINENO: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  1415. echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  1416. cat >>confdefs.h <<_ACEOF
  1417. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  1418. _ACEOF
  1419. cat >>confdefs.h <<_ACEOF
  1420. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1421. _ACEOF
  1422. cat >>confdefs.h <<_ACEOF
  1423. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1424. _ACEOF
  1425. cat >>confdefs.h <<_ACEOF
  1426. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  1427. _ACEOF
  1428. am__api_version="1.9"
  1429. ac_aux_dir=
  1430. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1431. if test -f $ac_dir/install-sh; then
  1432. ac_aux_dir=$ac_dir
  1433. ac_install_sh="$ac_aux_dir/install-sh -c"
  1434. break
  1435. elif test -f $ac_dir/install.sh; then
  1436. ac_aux_dir=$ac_dir
  1437. ac_install_sh="$ac_aux_dir/install.sh -c"
  1438. break
  1439. elif test -f $ac_dir/shtool; then
  1440. ac_aux_dir=$ac_dir
  1441. ac_install_sh="$ac_aux_dir/shtool install -c"
  1442. break
  1443. fi
  1444. done
  1445. if test -z "$ac_aux_dir"; then
  1446. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1447. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1448. { (exit 1); exit 1; }; }
  1449. fi
  1450. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1451. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1452. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1453. # Find a good install program. We prefer a C program (faster),
  1454. # so one script is as good as another. But avoid the broken or
  1455. # incompatible versions:
  1456. # SysV /etc/install, /usr/sbin/install
  1457. # SunOS /usr/etc/install
  1458. # IRIX /sbin/install
  1459. # AIX /bin/install
  1460. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1461. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1462. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1463. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1464. # OS/2's system install, which has a completely different semantic
  1465. # ./install, which can be erroneously created by make from ./install.sh.
  1466. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1467. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1468. if test -z "$INSTALL"; then
  1469. if test "${ac_cv_path_install+set}" = set; then
  1470. echo $ECHO_N "(cached) $ECHO_C" >&6
  1471. else
  1472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1473. for as_dir in $PATH
  1474. do
  1475. IFS=$as_save_IFS
  1476. test -z "$as_dir" && as_dir=.
  1477. # Account for people who put trailing slashes in PATH elements.
  1478. case $as_dir/ in
  1479. ./ | .// | /cC/* | \
  1480. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1481. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1482. /usr/ucb/* ) ;;
  1483. *)
  1484. # OSF1 and SCO ODT 3.0 have their own names for install.
  1485. # Don't use installbsd from OSF since it installs stuff as root
  1486. # by default.
  1487. for ac_prog in ginstall scoinst install; do
  1488. for ac_exec_ext in '' $ac_executable_extensions; do
  1489. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1490. if test $ac_prog = install &&
  1491. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1492. # AIX install. It has an incompatible calling convention.
  1493. :
  1494. elif test $ac_prog = install &&
  1495. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1496. # program-specific install script used by HP pwplus--don't use.
  1497. :
  1498. else
  1499. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1500. break 3
  1501. fi
  1502. fi
  1503. done
  1504. done
  1505. ;;
  1506. esac
  1507. done
  1508. fi
  1509. if test "${ac_cv_path_install+set}" = set; then
  1510. INSTALL=$ac_cv_path_install
  1511. else
  1512. # As a last resort, use the slow shell script. We don't cache a
  1513. # path for INSTALL within a source directory, because that will
  1514. # break other packages using the cache if that directory is
  1515. # removed, or if the path is relative.
  1516. INSTALL=$ac_install_sh
  1517. fi
  1518. fi
  1519. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1520. echo "${ECHO_T}$INSTALL" >&6
  1521. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1522. # It thinks the first close brace ends the variable substitution.
  1523. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1524. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1525. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1526. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1527. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1528. # Just in case
  1529. sleep 1
  1530. echo timestamp > conftest.file
  1531. # Do `set' in a subshell so we don't clobber the current shell's
  1532. # arguments. Must try -L first in case configure is actually a
  1533. # symlink; some systems play weird games with the mod time of symlinks
  1534. # (eg FreeBSD returns the mod time of the symlink's containing
  1535. # directory).
  1536. if (
  1537. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1538. if test "$*" = "X"; then
  1539. # -L didn't work.
  1540. set X `ls -t $srcdir/configure conftest.file`
  1541. fi
  1542. rm -f conftest.file
  1543. if test "$*" != "X $srcdir/configure conftest.file" \
  1544. && test "$*" != "X conftest.file $srcdir/configure"; then
  1545. # If neither matched, then we have a broken ls. This can happen
  1546. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1547. # broken ls alias from the environment. This has actually
  1548. # happened. Such a system could not be considered "sane".
  1549. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1550. alias in your environment" >&5
  1551. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1552. alias in your environment" >&2;}
  1553. { (exit 1); exit 1; }; }
  1554. fi
  1555. test "$2" = conftest.file
  1556. )
  1557. then
  1558. # Ok.
  1559. :
  1560. else
  1561. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1562. Check your system clock" >&5
  1563. echo "$as_me: error: newly created file is older than distributed files!
  1564. Check your system clock" >&2;}
  1565. { (exit 1); exit 1; }; }
  1566. fi
  1567. echo "$as_me:$LINENO: result: yes" >&5
  1568. echo "${ECHO_T}yes" >&6
  1569. test "$program_prefix" != NONE &&
  1570. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1571. # Use a double $ so make ignores it.
  1572. test "$program_suffix" != NONE &&
  1573. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1574. # Double any \ or $. echo might interpret backslashes.
  1575. # By default was `s,x,x', remove it if useless.
  1576. cat <<\_ACEOF >conftest.sed
  1577. s/[\\$]/&&/g;s/;s,x,x,$//
  1578. _ACEOF
  1579. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1580. rm conftest.sed
  1581. # expand $ac_aux_dir to an absolute path
  1582. am_aux_dir=`cd $ac_aux_dir && pwd`
  1583. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1584. # Use eval to expand $SHELL
  1585. if eval "$MISSING --run true"; then
  1586. am_missing_run="$MISSING --run "
  1587. else
  1588. am_missing_run=
  1589. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1590. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1591. fi
  1592. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1593. # We used to keeping the `.' as first argument, in order to
  1594. # allow $(mkdir_p) to be used without argument. As in
  1595. # $(mkdir_p) $(somedir)
  1596. # where $(somedir) is conditionally defined. However this is wrong
  1597. # for two reasons:
  1598. # 1. if the package is installed by a user who cannot write `.'
  1599. # make install will fail,
  1600. # 2. the above comment should most certainly read
  1601. # $(mkdir_p) $(DESTDIR)$(somedir)
  1602. # so it does not work when $(somedir) is undefined and
  1603. # $(DESTDIR) is not.
  1604. # To support the latter case, we have to write
  1605. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1606. # so the `.' trick is pointless.
  1607. mkdir_p='mkdir -p --'
  1608. else
  1609. # On NextStep and OpenStep, the `mkdir' command does not
  1610. # recognize any option. It will interpret all options as
  1611. # directories to create, and then abort because `.' already
  1612. # exists.
  1613. for d in ./-p ./--version;
  1614. do
  1615. test -d $d && rmdir $d
  1616. done
  1617. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1618. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1619. mkdir_p='$(mkinstalldirs)'
  1620. else
  1621. mkdir_p='$(install_sh) -d'
  1622. fi
  1623. fi
  1624. for ac_prog in gawk mawk nawk awk
  1625. do
  1626. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1627. set dummy $ac_prog; ac_word=$2
  1628. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1629. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1630. if test "${ac_cv_prog_AWK+set}" = set; then
  1631. echo $ECHO_N "(cached) $ECHO_C" >&6
  1632. else
  1633. if test -n "$AWK"; then
  1634. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1635. else
  1636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1637. for as_dir in $PATH
  1638. do
  1639. IFS=$as_save_IFS
  1640. test -z "$as_dir" && as_dir=.
  1641. for ac_exec_ext in '' $ac_executable_extensions; do
  1642. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1643. ac_cv_prog_AWK="$ac_prog"
  1644. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1645. break 2
  1646. fi
  1647. done
  1648. done
  1649. fi
  1650. fi
  1651. AWK=$ac_cv_prog_AWK
  1652. if test -n "$AWK"; then
  1653. echo "$as_me:$LINENO: result: $AWK" >&5
  1654. echo "${ECHO_T}$AWK" >&6
  1655. else
  1656. echo "$as_me:$LINENO: result: no" >&5
  1657. echo "${ECHO_T}no" >&6
  1658. fi
  1659. test -n "$AWK" && break
  1660. done
  1661. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1662. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1663. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1664. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1665. echo $ECHO_N "(cached) $ECHO_C" >&6
  1666. else
  1667. cat >conftest.make <<\_ACEOF
  1668. all:
  1669. @echo 'ac_maketemp="$(MAKE)"'
  1670. _ACEOF
  1671. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1672. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1673. if test -n "$ac_maketemp"; then
  1674. eval ac_cv_prog_make_${ac_make}_set=yes
  1675. else
  1676. eval ac_cv_prog_make_${ac_make}_set=no
  1677. fi
  1678. rm -f conftest.make
  1679. fi
  1680. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1681. echo "$as_me:$LINENO: result: yes" >&5
  1682. echo "${ECHO_T}yes" >&6
  1683. SET_MAKE=
  1684. else
  1685. echo "$as_me:$LINENO: result: no" >&5
  1686. echo "${ECHO_T}no" >&6
  1687. SET_MAKE="MAKE=${MAKE-make}"
  1688. fi
  1689. rm -rf .tst 2>/dev/null
  1690. mkdir .tst 2>/dev/null
  1691. if test -d .tst; then
  1692. am__leading_dot=.
  1693. else
  1694. am__leading_dot=_
  1695. fi
  1696. rmdir .tst 2>/dev/null
  1697. # test to see if srcdir already configured
  1698. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1699. test -f $srcdir/config.status; then
  1700. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1701. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1702. { (exit 1); exit 1; }; }
  1703. fi
  1704. # test whether we have cygpath
  1705. if test -z "$CYGPATH_W"; then
  1706. if (cygpath --version) >/dev/null 2>/dev/null; then
  1707. CYGPATH_W='cygpath -w'
  1708. else
  1709. CYGPATH_W=echo
  1710. fi
  1711. fi
  1712. # Define the identity of the package.
  1713. PACKAGE='dirsrv'
  1714. VERSION='1.0'
  1715. # Some tools Automake needs.
  1716. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1717. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1718. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1719. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1720. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1721. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1722. # Installed binaries are usually stripped using `strip' when the user
  1723. # run `make install-strip'. However `strip' might not be the right
  1724. # tool to use in cross-compilation environments, therefore Automake
  1725. # will honor the `STRIP' environment variable to overrule this program.
  1726. if test "$cross_compiling" != no; then
  1727. if test -n "$ac_tool_prefix"; then
  1728. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1729. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1730. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1731. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1732. if test "${ac_cv_prog_STRIP+set}" = set; then
  1733. echo $ECHO_N "(cached) $ECHO_C" >&6
  1734. else
  1735. if test -n "$STRIP"; then
  1736. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1737. else
  1738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1739. for as_dir in $PATH
  1740. do
  1741. IFS=$as_save_IFS
  1742. test -z "$as_dir" && as_dir=.
  1743. for ac_exec_ext in '' $ac_executable_extensions; do
  1744. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1745. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1746. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1747. break 2
  1748. fi
  1749. done
  1750. done
  1751. fi
  1752. fi
  1753. STRIP=$ac_cv_prog_STRIP
  1754. if test -n "$STRIP"; then
  1755. echo "$as_me:$LINENO: result: $STRIP" >&5
  1756. echo "${ECHO_T}$STRIP" >&6
  1757. else
  1758. echo "$as_me:$LINENO: result: no" >&5
  1759. echo "${ECHO_T}no" >&6
  1760. fi
  1761. fi
  1762. if test -z "$ac_cv_prog_STRIP"; then
  1763. ac_ct_STRIP=$STRIP
  1764. # Extract the first word of "strip", so it can be a program name with args.
  1765. set dummy strip; ac_word=$2
  1766. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1767. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1768. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1769. echo $ECHO_N "(cached) $ECHO_C" >&6
  1770. else
  1771. if test -n "$ac_ct_STRIP"; then
  1772. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1773. else
  1774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1775. for as_dir in $PATH
  1776. do
  1777. IFS=$as_save_IFS
  1778. test -z "$as_dir" && as_dir=.
  1779. for ac_exec_ext in '' $ac_executable_extensions; do
  1780. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1781. ac_cv_prog_ac_ct_STRIP="strip"
  1782. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1783. break 2
  1784. fi
  1785. done
  1786. done
  1787. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1788. fi
  1789. fi
  1790. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1791. if test -n "$ac_ct_STRIP"; then
  1792. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1793. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1794. else
  1795. echo "$as_me:$LINENO: result: no" >&5
  1796. echo "${ECHO_T}no" >&6
  1797. fi
  1798. STRIP=$ac_ct_STRIP
  1799. else
  1800. STRIP="$ac_cv_prog_STRIP"
  1801. fi
  1802. fi
  1803. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1804. # We need awk for the "check" target. The system "awk" is bad on
  1805. # some platforms.
  1806. # Always define AMTAR for backward compatibility.
  1807. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1808. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1809. # define these for automake distdir
  1810. VERSION=$PACKAGE_VERSION
  1811. PACKAGE=$PACKAGE_TARNAME
  1812. cat >>confdefs.h <<_ACEOF
  1813. #define VERSION "$VERSION"
  1814. _ACEOF
  1815. cat >>confdefs.h <<_ACEOF
  1816. #define PACKAGE "$PACKAGE"
  1817. _ACEOF
  1818. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1819. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1820. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1821. if test "${enable_maintainer_mode+set}" = set; then
  1822. enableval="$enable_maintainer_mode"
  1823. USE_MAINTAINER_MODE=$enableval
  1824. else
  1825. USE_MAINTAINER_MODE=no
  1826. fi;
  1827. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1828. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1829. if test $USE_MAINTAINER_MODE = yes; then
  1830. MAINTAINER_MODE_TRUE=
  1831. MAINTAINER_MODE_FALSE='#'
  1832. else
  1833. MAINTAINER_MODE_TRUE='#'
  1834. MAINTAINER_MODE_FALSE=
  1835. fi
  1836. MAINT=$MAINTAINER_MODE_TRUE
  1837. # Make sure we can run config.sub.
  1838. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1839. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1840. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1841. { (exit 1); exit 1; }; }
  1842. echo "$as_me:$LINENO: checking build system type" >&5
  1843. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1844. if test "${ac_cv_build+set}" = set; then
  1845. echo $ECHO_N "(cached) $ECHO_C" >&6
  1846. else
  1847. ac_cv_build_alias=$build_alias
  1848. test -z "$ac_cv_build_alias" &&
  1849. ac_cv_build_alias=`$ac_config_guess`
  1850. test -z "$ac_cv_build_alias" &&
  1851. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1852. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1853. { (exit 1); exit 1; }; }
  1854. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1855. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1856. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1857. { (exit 1); exit 1; }; }
  1858. fi
  1859. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1860. echo "${ECHO_T}$ac_cv_build" >&6
  1861. build=$ac_cv_build
  1862. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1863. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1864. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1865. echo "$as_me:$LINENO: checking host system type" >&5
  1866. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1867. if test "${ac_cv_host+set}" = set; then
  1868. echo $ECHO_N "(cached) $ECHO_C" >&6
  1869. else
  1870. ac_cv_host_alias=$host_alias
  1871. test -z "$ac_cv_host_alias" &&
  1872. ac_cv_host_alias=$ac_cv_build_alias
  1873. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1874. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1875. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1876. { (exit 1); exit 1; }; }
  1877. fi
  1878. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1879. echo "${ECHO_T}$ac_cv_host" >&6
  1880. host=$ac_cv_host
  1881. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1882. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1883. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1884. # Checks for programs.
  1885. ac_ext=cc
  1886. ac_cpp='$CXXCPP $CPPFLAGS'
  1887. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1888. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1889. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1890. if test -n "$ac_tool_prefix"; then
  1891. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1892. do
  1893. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1894. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1895. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1896. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1897. if test "${ac_cv_prog_CXX+set}" = set; then
  1898. echo $ECHO_N "(cached) $ECHO_C" >&6
  1899. else
  1900. if test -n "$CXX"; then
  1901. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1902. else
  1903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1904. for as_dir in $PATH
  1905. do
  1906. IFS=$as_save_IFS
  1907. test -z "$as_dir" && as_dir=.
  1908. for ac_exec_ext in '' $ac_executable_extensions; do
  1909. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1910. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1911. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1912. break 2
  1913. fi
  1914. done
  1915. done
  1916. fi
  1917. fi
  1918. CXX=$ac_cv_prog_CXX
  1919. if test -n "$CXX"; then
  1920. echo "$as_me:$LINENO: result: $CXX" >&5
  1921. echo "${ECHO_T}$CXX" >&6
  1922. else
  1923. echo "$as_me:$LINENO: result: no" >&5
  1924. echo "${ECHO_T}no" >&6
  1925. fi
  1926. test -n "$CXX" && break
  1927. done
  1928. fi
  1929. if test -z "$CXX"; then
  1930. ac_ct_CXX=$CXX
  1931. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1932. do
  1933. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1934. set dummy $ac_prog; ac_word=$2
  1935. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1936. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1937. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1938. echo $ECHO_N "(cached) $ECHO_C" >&6
  1939. else
  1940. if test -n "$ac_ct_CXX"; then
  1941. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1942. else
  1943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1944. for as_dir in $PATH
  1945. do
  1946. IFS=$as_save_IFS
  1947. test -z "$as_dir" && as_dir=.
  1948. for ac_exec_ext in '' $ac_executable_extensions; do
  1949. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1950. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1951. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1952. break 2
  1953. fi
  1954. done
  1955. done
  1956. fi
  1957. fi
  1958. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1959. if test -n "$ac_ct_CXX"; then
  1960. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1961. echo "${ECHO_T}$ac_ct_CXX" >&6
  1962. else
  1963. echo "$as_me:$LINENO: result: no" >&5
  1964. echo "${ECHO_T}no" >&6
  1965. fi
  1966. test -n "$ac_ct_CXX" && break
  1967. done
  1968. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1969. CXX=$ac_ct_CXX
  1970. fi
  1971. # Provide some information about the compiler.
  1972. echo "$as_me:$LINENO:" \
  1973. "checking for C++ compiler version" >&5
  1974. ac_compiler=`set X $ac_compile; echo $2`
  1975. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1976. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1977. ac_status=$?
  1978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1979. (exit $ac_status); }
  1980. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1981. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1982. ac_status=$?
  1983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1984. (exit $ac_status); }
  1985. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1986. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1987. ac_status=$?
  1988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1989. (exit $ac_status); }
  1990. cat >conftest.$ac_ext <<_ACEOF
  1991. /* confdefs.h. */
  1992. _ACEOF
  1993. cat confdefs.h >>conftest.$ac_ext
  1994. cat >>conftest.$ac_ext <<_ACEOF
  1995. /* end confdefs.h. */
  1996. int
  1997. main ()
  1998. {
  1999. ;
  2000. return 0;
  2001. }
  2002. _ACEOF
  2003. ac_clean_files_save=$ac_clean_files
  2004. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2005. # Try to create an executable without -o first, disregard a.out.
  2006. # It will help us diagnose broken compilers, and finding out an intuition
  2007. # of exeext.
  2008. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2009. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  2010. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2011. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2012. (eval $ac_link_default) 2>&5
  2013. ac_status=$?
  2014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2015. (exit $ac_status); }; then
  2016. # Find the output, starting from the most likely. This scheme is
  2017. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2018. # resort.
  2019. # Be careful to initialize this variable, since it used to be cached.
  2020. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2021. ac_cv_exeext=
  2022. # b.out is created by i960 compilers.
  2023. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2024. do
  2025. test -f "$ac_file" || continue
  2026. case $ac_file in
  2027. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2028. ;;
  2029. conftest.$ac_ext )
  2030. # This is the source file.
  2031. ;;
  2032. [ab].out )
  2033. # We found the default executable, but exeext='' is most
  2034. # certainly right.
  2035. break;;
  2036. *.* )
  2037. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2038. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2039. # but it would be cool to find out if it's true. Does anybody
  2040. # maintain Libtool? --akim.
  2041. export ac_cv_exeext
  2042. break;;
  2043. * )
  2044. break;;
  2045. esac
  2046. done
  2047. else
  2048. echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2051. See \`config.log' for more details." >&5
  2052. echo "$as_me: error: C++ compiler cannot create executables
  2053. See \`config.log' for more details." >&2;}
  2054. { (exit 77); exit 77; }; }
  2055. fi
  2056. ac_exeext=$ac_cv_exeext
  2057. echo "$as_me:$LINENO: result: $ac_file" >&5
  2058. echo "${ECHO_T}$ac_file" >&6
  2059. # Check the compiler produces executables we can run. If not, either
  2060. # the compiler is broken, or we cross compile.
  2061. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2062. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  2063. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2064. # If not cross compiling, check that we can run a simple program.
  2065. if test "$cross_compiling" != yes; then
  2066. if { ac_try='./$ac_file'
  2067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2068. (eval $ac_try) 2>&5
  2069. ac_status=$?
  2070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2071. (exit $ac_status); }; }; then
  2072. cross_compiling=no
  2073. else
  2074. if test "$cross_compiling" = maybe; then
  2075. cross_compiling=yes
  2076. else
  2077. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2078. If you meant to cross compile, use \`--host'.
  2079. See \`config.log' for more details." >&5
  2080. echo "$as_me: error: cannot run C++ compiled programs.
  2081. If you meant to cross compile, use \`--host'.
  2082. See \`config.log' for more details." >&2;}
  2083. { (exit 1); exit 1; }; }
  2084. fi
  2085. fi
  2086. fi
  2087. echo "$as_me:$LINENO: result: yes" >&5
  2088. echo "${ECHO_T}yes" >&6
  2089. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2090. ac_clean_files=$ac_clean_files_save
  2091. # Check the compiler produces executables we can run. If not, either
  2092. # the compiler is broken, or we cross compile.
  2093. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2094. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2095. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2096. echo "${ECHO_T}$cross_compiling" >&6
  2097. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2098. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2099. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2100. (eval $ac_link) 2>&5
  2101. ac_status=$?
  2102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2103. (exit $ac_status); }; then
  2104. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2105. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2106. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2107. # `rm'.
  2108. for ac_file in conftest.exe conftest conftest.*; do
  2109. test -f "$ac_file" || continue
  2110. case $ac_file in
  2111. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2112. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2113. export ac_cv_exeext
  2114. break;;
  2115. * ) break;;
  2116. esac
  2117. done
  2118. else
  2119. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2120. See \`config.log' for more details." >&5
  2121. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2122. See \`config.log' for more details." >&2;}
  2123. { (exit 1); exit 1; }; }
  2124. fi
  2125. rm -f conftest$ac_cv_exeext
  2126. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2127. echo "${ECHO_T}$ac_cv_exeext" >&6
  2128. rm -f conftest.$ac_ext
  2129. EXEEXT=$ac_cv_exeext
  2130. ac_exeext=$EXEEXT
  2131. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2132. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2133. if test "${ac_cv_objext+set}" = set; then
  2134. echo $ECHO_N "(cached) $ECHO_C" >&6
  2135. else
  2136. cat >conftest.$ac_ext <<_ACEOF
  2137. /* confdefs.h. */
  2138. _ACEOF
  2139. cat confdefs.h >>conftest.$ac_ext
  2140. cat >>conftest.$ac_ext <<_ACEOF
  2141. /* end confdefs.h. */
  2142. int
  2143. main ()
  2144. {
  2145. ;
  2146. return 0;
  2147. }
  2148. _ACEOF
  2149. rm -f conftest.o conftest.obj
  2150. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2151. (eval $ac_compile) 2>&5
  2152. ac_status=$?
  2153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2154. (exit $ac_status); }; then
  2155. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2156. case $ac_file in
  2157. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2158. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2159. break;;
  2160. esac
  2161. done
  2162. else
  2163. echo "$as_me: failed program was:" >&5
  2164. sed 's/^/| /' conftest.$ac_ext >&5
  2165. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2166. See \`config.log' for more details." >&5
  2167. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2168. See \`config.log' for more details." >&2;}
  2169. { (exit 1); exit 1; }; }
  2170. fi
  2171. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2172. fi
  2173. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2174. echo "${ECHO_T}$ac_cv_objext" >&6
  2175. OBJEXT=$ac_cv_objext
  2176. ac_objext=$OBJEXT
  2177. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2178. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2179. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2180. echo $ECHO_N "(cached) $ECHO_C" >&6
  2181. else
  2182. cat >conftest.$ac_ext <<_ACEOF
  2183. /* confdefs.h. */
  2184. _ACEOF
  2185. cat confdefs.h >>conftest.$ac_ext
  2186. cat >>conftest.$ac_ext <<_ACEOF
  2187. /* end confdefs.h. */
  2188. int
  2189. main ()
  2190. {
  2191. #ifndef __GNUC__
  2192. choke me
  2193. #endif
  2194. ;
  2195. return 0;
  2196. }
  2197. _ACEOF
  2198. rm -f conftest.$ac_objext
  2199. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2200. (eval $ac_compile) 2>conftest.er1
  2201. ac_status=$?
  2202. grep -v '^ *+' conftest.er1 >conftest.err
  2203. rm -f conftest.er1
  2204. cat conftest.err >&5
  2205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2206. (exit $ac_status); } &&
  2207. { ac_try='test -z "$ac_cxx_werror_flag"
  2208. || test ! -s conftest.err'
  2209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2210. (eval $ac_try) 2>&5
  2211. ac_status=$?
  2212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2213. (exit $ac_status); }; } &&
  2214. { ac_try='test -s conftest.$ac_objext'
  2215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2216. (eval $ac_try) 2>&5
  2217. ac_status=$?
  2218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2219. (exit $ac_status); }; }; then
  2220. ac_compiler_gnu=yes
  2221. else
  2222. echo "$as_me: failed program was:" >&5
  2223. sed 's/^/| /' conftest.$ac_ext >&5
  2224. ac_compiler_gnu=no
  2225. fi
  2226. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2227. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2228. fi
  2229. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2230. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2231. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2232. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2233. ac_save_CXXFLAGS=$CXXFLAGS
  2234. CXXFLAGS="-g"
  2235. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2236. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2237. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2238. echo $ECHO_N "(cached) $ECHO_C" >&6
  2239. else
  2240. cat >conftest.$ac_ext <<_ACEOF
  2241. /* confdefs.h. */
  2242. _ACEOF
  2243. cat confdefs.h >>conftest.$ac_ext
  2244. cat >>conftest.$ac_ext <<_ACEOF
  2245. /* end confdefs.h. */
  2246. int
  2247. main ()
  2248. {
  2249. ;
  2250. return 0;
  2251. }
  2252. _ACEOF
  2253. rm -f conftest.$ac_objext
  2254. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2255. (eval $ac_compile) 2>conftest.er1
  2256. ac_status=$?
  2257. grep -v '^ *+' conftest.er1 >conftest.err
  2258. rm -f conftest.er1
  2259. cat conftest.err >&5
  2260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2261. (exit $ac_status); } &&
  2262. { ac_try='test -z "$ac_cxx_werror_flag"
  2263. || test ! -s conftest.err'
  2264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2265. (eval $ac_try) 2>&5
  2266. ac_status=$?
  2267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2268. (exit $ac_status); }; } &&
  2269. { ac_try='test -s conftest.$ac_objext'
  2270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2271. (eval $ac_try) 2>&5
  2272. ac_status=$?
  2273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2274. (exit $ac_status); }; }; then
  2275. ac_cv_prog_cxx_g=yes
  2276. else
  2277. echo "$as_me: failed program was:" >&5
  2278. sed 's/^/| /' conftest.$ac_ext >&5
  2279. ac_cv_prog_cxx_g=no
  2280. fi
  2281. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2282. fi
  2283. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2284. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2285. if test "$ac_test_CXXFLAGS" = set; then
  2286. CXXFLAGS=$ac_save_CXXFLAGS
  2287. elif test $ac_cv_prog_cxx_g = yes; then
  2288. if test "$GXX" = yes; then
  2289. CXXFLAGS="-g -O2"
  2290. else
  2291. CXXFLAGS="-g"
  2292. fi
  2293. else
  2294. if test "$GXX" = yes; then
  2295. CXXFLAGS="-O2"
  2296. else
  2297. CXXFLAGS=
  2298. fi
  2299. fi
  2300. for ac_declaration in \
  2301. '' \
  2302. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2303. 'extern "C" void std::exit (int); using std::exit;' \
  2304. 'extern "C" void exit (int) throw ();' \
  2305. 'extern "C" void exit (int);' \
  2306. 'void exit (int);'
  2307. do
  2308. cat >conftest.$ac_ext <<_ACEOF
  2309. /* confdefs.h. */
  2310. _ACEOF
  2311. cat confdefs.h >>conftest.$ac_ext
  2312. cat >>conftest.$ac_ext <<_ACEOF
  2313. /* end confdefs.h. */
  2314. $ac_declaration
  2315. #include <stdlib.h>
  2316. int
  2317. main ()
  2318. {
  2319. exit (42);
  2320. ;
  2321. return 0;
  2322. }
  2323. _ACEOF
  2324. rm -f conftest.$ac_objext
  2325. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2326. (eval $ac_compile) 2>conftest.er1
  2327. ac_status=$?
  2328. grep -v '^ *+' conftest.er1 >conftest.err
  2329. rm -f conftest.er1
  2330. cat conftest.err >&5
  2331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2332. (exit $ac_status); } &&
  2333. { ac_try='test -z "$ac_cxx_werror_flag"
  2334. || test ! -s conftest.err'
  2335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2336. (eval $ac_try) 2>&5
  2337. ac_status=$?
  2338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2339. (exit $ac_status); }; } &&
  2340. { ac_try='test -s conftest.$ac_objext'
  2341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2342. (eval $ac_try) 2>&5
  2343. ac_status=$?
  2344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2345. (exit $ac_status); }; }; then
  2346. :
  2347. else
  2348. echo "$as_me: failed program was:" >&5
  2349. sed 's/^/| /' conftest.$ac_ext >&5
  2350. continue
  2351. fi
  2352. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2353. cat >conftest.$ac_ext <<_ACEOF
  2354. /* confdefs.h. */
  2355. _ACEOF
  2356. cat confdefs.h >>conftest.$ac_ext
  2357. cat >>conftest.$ac_ext <<_ACEOF
  2358. /* end confdefs.h. */
  2359. $ac_declaration
  2360. int
  2361. main ()
  2362. {
  2363. exit (42);
  2364. ;
  2365. return 0;
  2366. }
  2367. _ACEOF
  2368. rm -f conftest.$ac_objext
  2369. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2370. (eval $ac_compile) 2>conftest.er1
  2371. ac_status=$?
  2372. grep -v '^ *+' conftest.er1 >conftest.err
  2373. rm -f conftest.er1
  2374. cat conftest.err >&5
  2375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2376. (exit $ac_status); } &&
  2377. { ac_try='test -z "$ac_cxx_werror_flag"
  2378. || test ! -s conftest.err'
  2379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2380. (eval $ac_try) 2>&5
  2381. ac_status=$?
  2382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2383. (exit $ac_status); }; } &&
  2384. { ac_try='test -s conftest.$ac_objext'
  2385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2386. (eval $ac_try) 2>&5
  2387. ac_status=$?
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); }; }; then
  2390. break
  2391. else
  2392. echo "$as_me: failed program was:" >&5
  2393. sed 's/^/| /' conftest.$ac_ext >&5
  2394. fi
  2395. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2396. done
  2397. rm -f conftest*
  2398. if test -n "$ac_declaration"; then
  2399. echo '#ifdef __cplusplus' >>confdefs.h
  2400. echo $ac_declaration >>confdefs.h
  2401. echo '#endif' >>confdefs.h
  2402. fi
  2403. ac_ext=c
  2404. ac_cpp='$CPP $CPPFLAGS'
  2405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2408. DEPDIR="${am__leading_dot}deps"
  2409. ac_config_commands="$ac_config_commands depfiles"
  2410. am_make=${MAKE-make}
  2411. cat > confinc << 'END'
  2412. am__doit:
  2413. @echo done
  2414. .PHONY: am__doit
  2415. END
  2416. # If we don't find an include directive, just comment out the code.
  2417. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2418. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2419. am__include="#"
  2420. am__quote=
  2421. _am_result=none
  2422. # First try GNU make style include.
  2423. echo "include confinc" > confmf
  2424. # We grep out `Entering directory' and `Leaving directory'
  2425. # messages which can occur if `w' ends up in MAKEFLAGS.
  2426. # In particular we don't look at `^make:' because GNU make might
  2427. # be invoked under some other name (usually "gmake"), in which
  2428. # case it prints its new name instead of `make'.
  2429. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2430. am__include=include
  2431. am__quote=
  2432. _am_result=GNU
  2433. fi
  2434. # Now try BSD make style include.
  2435. if test "$am__include" = "#"; then
  2436. echo '.include "confinc"' > confmf
  2437. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2438. am__include=.include
  2439. am__quote="\""
  2440. _am_result=BSD
  2441. fi
  2442. fi
  2443. echo "$as_me:$LINENO: result: $_am_result" >&5
  2444. echo "${ECHO_T}$_am_result" >&6
  2445. rm -f confinc confmf
  2446. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2447. if test "${enable_dependency_tracking+set}" = set; then
  2448. enableval="$enable_dependency_tracking"
  2449. fi;
  2450. if test "x$enable_dependency_tracking" != xno; then
  2451. am_depcomp="$ac_aux_dir/depcomp"
  2452. AMDEPBACKSLASH='\'
  2453. fi
  2454. if test "x$enable_dependency_tracking" != xno; then
  2455. AMDEP_TRUE=
  2456. AMDEP_FALSE='#'
  2457. else
  2458. AMDEP_TRUE='#'
  2459. AMDEP_FALSE=
  2460. fi
  2461. depcc="$CXX" am_compiler_list=
  2462. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2463. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2464. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2465. echo $ECHO_N "(cached) $ECHO_C" >&6
  2466. else
  2467. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2468. # We make a subdir and do the tests there. Otherwise we can end up
  2469. # making bogus files that we don't know about and never remove. For
  2470. # instance it was reported that on HP-UX the gcc test will end up
  2471. # making a dummy file named `D' -- because `-MD' means `put the output
  2472. # in D'.
  2473. mkdir conftest.dir
  2474. # Copy depcomp to subdir because otherwise we won't find it if we're
  2475. # using a relative directory.
  2476. cp "$am_depcomp" conftest.dir
  2477. cd conftest.dir
  2478. # We will build objects and dependencies in a subdirectory because
  2479. # it helps to detect inapplicable dependency modes. For instance
  2480. # both Tru64's cc and ICC support -MD to output dependencies as a
  2481. # side effect of compilation, but ICC will put the dependencies in
  2482. # the current directory while Tru64 will put them in the object
  2483. # directory.
  2484. mkdir sub
  2485. am_cv_CXX_dependencies_compiler_type=none
  2486. if test "$am_compiler_list" = ""; then
  2487. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2488. fi
  2489. for depmode in $am_compiler_list; do
  2490. # Setup a source with many dependencies, because some compilers
  2491. # like to wrap large dependency lists on column 80 (with \), and
  2492. # we should not choose a depcomp mode which is confused by this.
  2493. #
  2494. # We need to recreate these files for each test, as the compiler may
  2495. # overwrite some of them when testing with obscure command lines.
  2496. # This happens at least with the AIX C compiler.
  2497. : > sub/conftest.c
  2498. for i in 1 2 3 4 5 6; do
  2499. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2500. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2501. # Solaris 8's {/usr,}/bin/sh.
  2502. touch sub/conftst$i.h
  2503. done
  2504. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2505. case $depmode in
  2506. nosideeffect)
  2507. # after this tag, mechanisms are not by side-effect, so they'll
  2508. # only be used when explicitly requested
  2509. if test "x$enable_dependency_tracking" = xyes; then
  2510. continue
  2511. else
  2512. break
  2513. fi
  2514. ;;
  2515. none) break ;;
  2516. esac
  2517. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2518. # mode. It turns out that the SunPro C++ compiler does not properly
  2519. # handle `-M -o', and we need to detect this.
  2520. if depmode=$depmode \
  2521. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2522. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2523. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2524. >/dev/null 2>conftest.err &&
  2525. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2526. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2527. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2528. # icc doesn't choke on unknown options, it will just issue warnings
  2529. # or remarks (even with -Werror). So we grep stderr for any message
  2530. # that says an option was ignored or not supported.
  2531. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2532. # icc: Command line warning: ignoring option '-M'; no argument required
  2533. # The diagnosis changed in icc 8.0:
  2534. # icc: Command line remark: option '-MP' not supported
  2535. if (grep 'ignoring option' conftest.err ||
  2536. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2537. am_cv_CXX_dependencies_compiler_type=$depmode
  2538. break
  2539. fi
  2540. fi
  2541. done
  2542. cd ..
  2543. rm -rf conftest.dir
  2544. else
  2545. am_cv_CXX_dependencies_compiler_type=none
  2546. fi
  2547. fi
  2548. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2549. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2550. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2551. if
  2552. test "x$enable_dependency_tracking" != xno \
  2553. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2554. am__fastdepCXX_TRUE=
  2555. am__fastdepCXX_FALSE='#'
  2556. else
  2557. am__fastdepCXX_TRUE='#'
  2558. am__fastdepCXX_FALSE=
  2559. fi
  2560. ac_ext=c
  2561. ac_cpp='$CPP $CPPFLAGS'
  2562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2565. if test -n "$ac_tool_prefix"; then
  2566. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2567. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2568. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2569. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2570. if test "${ac_cv_prog_CC+set}" = set; then
  2571. echo $ECHO_N "(cached) $ECHO_C" >&6
  2572. else
  2573. if test -n "$CC"; then
  2574. ac_cv_prog_CC="$CC" # Let the user override the test.
  2575. else
  2576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2577. for as_dir in $PATH
  2578. do
  2579. IFS=$as_save_IFS
  2580. test -z "$as_dir" && as_dir=.
  2581. for ac_exec_ext in '' $ac_executable_extensions; do
  2582. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2583. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2584. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2585. break 2
  2586. fi
  2587. done
  2588. done
  2589. fi
  2590. fi
  2591. CC=$ac_cv_prog_CC
  2592. if test -n "$CC"; then
  2593. echo "$as_me:$LINENO: result: $CC" >&5
  2594. echo "${ECHO_T}$CC" >&6
  2595. else
  2596. echo "$as_me:$LINENO: result: no" >&5
  2597. echo "${ECHO_T}no" >&6
  2598. fi
  2599. fi
  2600. if test -z "$ac_cv_prog_CC"; then
  2601. ac_ct_CC=$CC
  2602. # Extract the first word of "gcc", so it can be a program name with args.
  2603. set dummy gcc; ac_word=$2
  2604. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2605. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2606. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2607. echo $ECHO_N "(cached) $ECHO_C" >&6
  2608. else
  2609. if test -n "$ac_ct_CC"; then
  2610. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2611. else
  2612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2613. for as_dir in $PATH
  2614. do
  2615. IFS=$as_save_IFS
  2616. test -z "$as_dir" && as_dir=.
  2617. for ac_exec_ext in '' $ac_executable_extensions; do
  2618. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2619. ac_cv_prog_ac_ct_CC="gcc"
  2620. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2621. break 2
  2622. fi
  2623. done
  2624. done
  2625. fi
  2626. fi
  2627. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2628. if test -n "$ac_ct_CC"; then
  2629. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2630. echo "${ECHO_T}$ac_ct_CC" >&6
  2631. else
  2632. echo "$as_me:$LINENO: result: no" >&5
  2633. echo "${ECHO_T}no" >&6
  2634. fi
  2635. CC=$ac_ct_CC
  2636. else
  2637. CC="$ac_cv_prog_CC"
  2638. fi
  2639. if test -z "$CC"; then
  2640. if test -n "$ac_tool_prefix"; then
  2641. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2642. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2643. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2644. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2645. if test "${ac_cv_prog_CC+set}" = set; then
  2646. echo $ECHO_N "(cached) $ECHO_C" >&6
  2647. else
  2648. if test -n "$CC"; then
  2649. ac_cv_prog_CC="$CC" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2658. ac_cv_prog_CC="${ac_tool_prefix}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. fi
  2665. fi
  2666. CC=$ac_cv_prog_CC
  2667. if test -n "$CC"; then
  2668. echo "$as_me:$LINENO: result: $CC" >&5
  2669. echo "${ECHO_T}$CC" >&6
  2670. else
  2671. echo "$as_me:$LINENO: result: no" >&5
  2672. echo "${ECHO_T}no" >&6
  2673. fi
  2674. fi
  2675. if test -z "$ac_cv_prog_CC"; then
  2676. ac_ct_CC=$CC
  2677. # Extract the first word of "cc", so it can be a program name with args.
  2678. set dummy cc; ac_word=$2
  2679. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2680. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2681. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2682. echo $ECHO_N "(cached) $ECHO_C" >&6
  2683. else
  2684. if test -n "$ac_ct_CC"; then
  2685. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2686. else
  2687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2688. for as_dir in $PATH
  2689. do
  2690. IFS=$as_save_IFS
  2691. test -z "$as_dir" && as_dir=.
  2692. for ac_exec_ext in '' $ac_executable_extensions; do
  2693. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2694. ac_cv_prog_ac_ct_CC="cc"
  2695. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2696. break 2
  2697. fi
  2698. done
  2699. done
  2700. fi
  2701. fi
  2702. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2703. if test -n "$ac_ct_CC"; then
  2704. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2705. echo "${ECHO_T}$ac_ct_CC" >&6
  2706. else
  2707. echo "$as_me:$LINENO: result: no" >&5
  2708. echo "${ECHO_T}no" >&6
  2709. fi
  2710. CC=$ac_ct_CC
  2711. else
  2712. CC="$ac_cv_prog_CC"
  2713. fi
  2714. fi
  2715. if test -z "$CC"; then
  2716. # Extract the first word of "cc", so it can be a program name with args.
  2717. set dummy cc; ac_word=$2
  2718. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2719. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2720. if test "${ac_cv_prog_CC+set}" = set; then
  2721. echo $ECHO_N "(cached) $ECHO_C" >&6
  2722. else
  2723. if test -n "$CC"; then
  2724. ac_cv_prog_CC="$CC" # Let the user override the test.
  2725. else
  2726. ac_prog_rejected=no
  2727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2728. for as_dir in $PATH
  2729. do
  2730. IFS=$as_save_IFS
  2731. test -z "$as_dir" && as_dir=.
  2732. for ac_exec_ext in '' $ac_executable_extensions; do
  2733. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2734. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2735. ac_prog_rejected=yes
  2736. continue
  2737. fi
  2738. ac_cv_prog_CC="cc"
  2739. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2740. break 2
  2741. fi
  2742. done
  2743. done
  2744. if test $ac_prog_rejected = yes; then
  2745. # We found a bogon in the path, so make sure we never use it.
  2746. set dummy $ac_cv_prog_CC
  2747. shift
  2748. if test $# != 0; then
  2749. # We chose a different compiler from the bogus one.
  2750. # However, it has the same basename, so the bogon will be chosen
  2751. # first if we set CC to just the basename; use the full file name.
  2752. shift
  2753. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2754. fi
  2755. fi
  2756. fi
  2757. fi
  2758. CC=$ac_cv_prog_CC
  2759. if test -n "$CC"; then
  2760. echo "$as_me:$LINENO: result: $CC" >&5
  2761. echo "${ECHO_T}$CC" >&6
  2762. else
  2763. echo "$as_me:$LINENO: result: no" >&5
  2764. echo "${ECHO_T}no" >&6
  2765. fi
  2766. fi
  2767. if test -z "$CC"; then
  2768. if test -n "$ac_tool_prefix"; then
  2769. for ac_prog in cl
  2770. do
  2771. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2772. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2773. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2774. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2775. if test "${ac_cv_prog_CC+set}" = set; then
  2776. echo $ECHO_N "(cached) $ECHO_C" >&6
  2777. else
  2778. if test -n "$CC"; then
  2779. ac_cv_prog_CC="$CC" # Let the user override the test.
  2780. else
  2781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2782. for as_dir in $PATH
  2783. do
  2784. IFS=$as_save_IFS
  2785. test -z "$as_dir" && as_dir=.
  2786. for ac_exec_ext in '' $ac_executable_extensions; do
  2787. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2788. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2789. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2790. break 2
  2791. fi
  2792. done
  2793. done
  2794. fi
  2795. fi
  2796. CC=$ac_cv_prog_CC
  2797. if test -n "$CC"; then
  2798. echo "$as_me:$LINENO: result: $CC" >&5
  2799. echo "${ECHO_T}$CC" >&6
  2800. else
  2801. echo "$as_me:$LINENO: result: no" >&5
  2802. echo "${ECHO_T}no" >&6
  2803. fi
  2804. test -n "$CC" && break
  2805. done
  2806. fi
  2807. if test -z "$CC"; then
  2808. ac_ct_CC=$CC
  2809. for ac_prog in cl
  2810. do
  2811. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2812. set dummy $ac_prog; ac_word=$2
  2813. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2814. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2815. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2816. echo $ECHO_N "(cached) $ECHO_C" >&6
  2817. else
  2818. if test -n "$ac_ct_CC"; then
  2819. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2820. else
  2821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2822. for as_dir in $PATH
  2823. do
  2824. IFS=$as_save_IFS
  2825. test -z "$as_dir" && as_dir=.
  2826. for ac_exec_ext in '' $ac_executable_extensions; do
  2827. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2828. ac_cv_prog_ac_ct_CC="$ac_prog"
  2829. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2830. break 2
  2831. fi
  2832. done
  2833. done
  2834. fi
  2835. fi
  2836. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2837. if test -n "$ac_ct_CC"; then
  2838. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2839. echo "${ECHO_T}$ac_ct_CC" >&6
  2840. else
  2841. echo "$as_me:$LINENO: result: no" >&5
  2842. echo "${ECHO_T}no" >&6
  2843. fi
  2844. test -n "$ac_ct_CC" && break
  2845. done
  2846. CC=$ac_ct_CC
  2847. fi
  2848. fi
  2849. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2850. See \`config.log' for more details." >&5
  2851. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2852. See \`config.log' for more details." >&2;}
  2853. { (exit 1); exit 1; }; }
  2854. # Provide some information about the compiler.
  2855. echo "$as_me:$LINENO:" \
  2856. "checking for C compiler version" >&5
  2857. ac_compiler=`set X $ac_compile; echo $2`
  2858. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2859. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2860. ac_status=$?
  2861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2862. (exit $ac_status); }
  2863. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2864. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2865. ac_status=$?
  2866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2867. (exit $ac_status); }
  2868. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2869. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2870. ac_status=$?
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); }
  2873. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2874. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2875. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2876. echo $ECHO_N "(cached) $ECHO_C" >&6
  2877. else
  2878. cat >conftest.$ac_ext <<_ACEOF
  2879. /* confdefs.h. */
  2880. _ACEOF
  2881. cat confdefs.h >>conftest.$ac_ext
  2882. cat >>conftest.$ac_ext <<_ACEOF
  2883. /* end confdefs.h. */
  2884. int
  2885. main ()
  2886. {
  2887. #ifndef __GNUC__
  2888. choke me
  2889. #endif
  2890. ;
  2891. return 0;
  2892. }
  2893. _ACEOF
  2894. rm -f conftest.$ac_objext
  2895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2896. (eval $ac_compile) 2>conftest.er1
  2897. ac_status=$?
  2898. grep -v '^ *+' conftest.er1 >conftest.err
  2899. rm -f conftest.er1
  2900. cat conftest.err >&5
  2901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2902. (exit $ac_status); } &&
  2903. { ac_try='test -z "$ac_c_werror_flag"
  2904. || test ! -s conftest.err'
  2905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2906. (eval $ac_try) 2>&5
  2907. ac_status=$?
  2908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2909. (exit $ac_status); }; } &&
  2910. { ac_try='test -s conftest.$ac_objext'
  2911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2912. (eval $ac_try) 2>&5
  2913. ac_status=$?
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); }; }; then
  2916. ac_compiler_gnu=yes
  2917. else
  2918. echo "$as_me: failed program was:" >&5
  2919. sed 's/^/| /' conftest.$ac_ext >&5
  2920. ac_compiler_gnu=no
  2921. fi
  2922. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2923. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2924. fi
  2925. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2926. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2927. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2928. ac_test_CFLAGS=${CFLAGS+set}
  2929. ac_save_CFLAGS=$CFLAGS
  2930. CFLAGS="-g"
  2931. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2932. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2933. if test "${ac_cv_prog_cc_g+set}" = set; then
  2934. echo $ECHO_N "(cached) $ECHO_C" >&6
  2935. else
  2936. cat >conftest.$ac_ext <<_ACEOF
  2937. /* confdefs.h. */
  2938. _ACEOF
  2939. cat confdefs.h >>conftest.$ac_ext
  2940. cat >>conftest.$ac_ext <<_ACEOF
  2941. /* end confdefs.h. */
  2942. int
  2943. main ()
  2944. {
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. rm -f conftest.$ac_objext
  2950. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2951. (eval $ac_compile) 2>conftest.er1
  2952. ac_status=$?
  2953. grep -v '^ *+' conftest.er1 >conftest.err
  2954. rm -f conftest.er1
  2955. cat conftest.err >&5
  2956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2957. (exit $ac_status); } &&
  2958. { ac_try='test -z "$ac_c_werror_flag"
  2959. || test ! -s conftest.err'
  2960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2961. (eval $ac_try) 2>&5
  2962. ac_status=$?
  2963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2964. (exit $ac_status); }; } &&
  2965. { ac_try='test -s conftest.$ac_objext'
  2966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2967. (eval $ac_try) 2>&5
  2968. ac_status=$?
  2969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2970. (exit $ac_status); }; }; then
  2971. ac_cv_prog_cc_g=yes
  2972. else
  2973. echo "$as_me: failed program was:" >&5
  2974. sed 's/^/| /' conftest.$ac_ext >&5
  2975. ac_cv_prog_cc_g=no
  2976. fi
  2977. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2978. fi
  2979. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2980. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2981. if test "$ac_test_CFLAGS" = set; then
  2982. CFLAGS=$ac_save_CFLAGS
  2983. elif test $ac_cv_prog_cc_g = yes; then
  2984. if test "$GCC" = yes; then
  2985. CFLAGS="-g -O2"
  2986. else
  2987. CFLAGS="-g"
  2988. fi
  2989. else
  2990. if test "$GCC" = yes; then
  2991. CFLAGS="-O2"
  2992. else
  2993. CFLAGS=
  2994. fi
  2995. fi
  2996. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2997. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2998. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2999. echo $ECHO_N "(cached) $ECHO_C" >&6
  3000. else
  3001. ac_cv_prog_cc_stdc=no
  3002. ac_save_CC=$CC
  3003. cat >conftest.$ac_ext <<_ACEOF
  3004. /* confdefs.h. */
  3005. _ACEOF
  3006. cat confdefs.h >>conftest.$ac_ext
  3007. cat >>conftest.$ac_ext <<_ACEOF
  3008. /* end confdefs.h. */
  3009. #include <stdarg.h>
  3010. #include <stdio.h>
  3011. #include <sys/types.h>
  3012. #include <sys/stat.h>
  3013. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3014. struct buf { int x; };
  3015. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3016. static char *e (p, i)
  3017. char **p;
  3018. int i;
  3019. {
  3020. return p[i];
  3021. }
  3022. static char *f (char * (*g) (char **, int), char **p, ...)
  3023. {
  3024. char *s;
  3025. va_list v;
  3026. va_start (v,p);
  3027. s = g (p, va_arg (v,int));
  3028. va_end (v);
  3029. return s;
  3030. }
  3031. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3032. function prototypes and stuff, but not '\xHH' hex character constants.
  3033. These don't provoke an error unfortunately, instead are silently treated
  3034. as 'x'. The following induces an error, until -std1 is added to get
  3035. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3036. array size at least. It's necessary to write '\x00'==0 to get something
  3037. that's true only with -std1. */
  3038. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3039. int test (int i, double x);
  3040. struct s1 {int (*f) (int a);};
  3041. struct s2 {int (*f) (double a);};
  3042. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3043. int argc;
  3044. char **argv;
  3045. int
  3046. main ()
  3047. {
  3048. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3049. ;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. # Don't try gcc -ansi; that turns off useful extensions and
  3054. # breaks some systems' header files.
  3055. # AIX -qlanglvl=ansi
  3056. # Ultrix and OSF/1 -std1
  3057. # HP-UX 10.20 and later -Ae
  3058. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3059. # SVR4 -Xc -D__EXTENSIONS__
  3060. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3061. do
  3062. CC="$ac_save_CC $ac_arg"
  3063. rm -f conftest.$ac_objext
  3064. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3065. (eval $ac_compile) 2>conftest.er1
  3066. ac_status=$?
  3067. grep -v '^ *+' conftest.er1 >conftest.err
  3068. rm -f conftest.er1
  3069. cat conftest.err >&5
  3070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3071. (exit $ac_status); } &&
  3072. { ac_try='test -z "$ac_c_werror_flag"
  3073. || test ! -s conftest.err'
  3074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3075. (eval $ac_try) 2>&5
  3076. ac_status=$?
  3077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3078. (exit $ac_status); }; } &&
  3079. { ac_try='test -s conftest.$ac_objext'
  3080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3081. (eval $ac_try) 2>&5
  3082. ac_status=$?
  3083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3084. (exit $ac_status); }; }; then
  3085. ac_cv_prog_cc_stdc=$ac_arg
  3086. break
  3087. else
  3088. echo "$as_me: failed program was:" >&5
  3089. sed 's/^/| /' conftest.$ac_ext >&5
  3090. fi
  3091. rm -f conftest.err conftest.$ac_objext
  3092. done
  3093. rm -f conftest.$ac_ext conftest.$ac_objext
  3094. CC=$ac_save_CC
  3095. fi
  3096. case "x$ac_cv_prog_cc_stdc" in
  3097. x|xno)
  3098. echo "$as_me:$LINENO: result: none needed" >&5
  3099. echo "${ECHO_T}none needed" >&6 ;;
  3100. *)
  3101. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3102. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3103. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3104. esac
  3105. # Some people use a C++ compiler to compile C. Since we use `exit',
  3106. # in C++ we need to declare it. In case someone uses the same compiler
  3107. # for both compiling C and C++ we need to have the C++ compiler decide
  3108. # the declaration of exit, since it's the most demanding environment.
  3109. cat >conftest.$ac_ext <<_ACEOF
  3110. #ifndef __cplusplus
  3111. choke me
  3112. #endif
  3113. _ACEOF
  3114. rm -f conftest.$ac_objext
  3115. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3116. (eval $ac_compile) 2>conftest.er1
  3117. ac_status=$?
  3118. grep -v '^ *+' conftest.er1 >conftest.err
  3119. rm -f conftest.er1
  3120. cat conftest.err >&5
  3121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3122. (exit $ac_status); } &&
  3123. { ac_try='test -z "$ac_c_werror_flag"
  3124. || test ! -s conftest.err'
  3125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3126. (eval $ac_try) 2>&5
  3127. ac_status=$?
  3128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3129. (exit $ac_status); }; } &&
  3130. { ac_try='test -s conftest.$ac_objext'
  3131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3132. (eval $ac_try) 2>&5
  3133. ac_status=$?
  3134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3135. (exit $ac_status); }; }; then
  3136. for ac_declaration in \
  3137. '' \
  3138. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3139. 'extern "C" void std::exit (int); using std::exit;' \
  3140. 'extern "C" void exit (int) throw ();' \
  3141. 'extern "C" void exit (int);' \
  3142. 'void exit (int);'
  3143. do
  3144. cat >conftest.$ac_ext <<_ACEOF
  3145. /* confdefs.h. */
  3146. _ACEOF
  3147. cat confdefs.h >>conftest.$ac_ext
  3148. cat >>conftest.$ac_ext <<_ACEOF
  3149. /* end confdefs.h. */
  3150. $ac_declaration
  3151. #include <stdlib.h>
  3152. int
  3153. main ()
  3154. {
  3155. exit (42);
  3156. ;
  3157. return 0;
  3158. }
  3159. _ACEOF
  3160. rm -f conftest.$ac_objext
  3161. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3162. (eval $ac_compile) 2>conftest.er1
  3163. ac_status=$?
  3164. grep -v '^ *+' conftest.er1 >conftest.err
  3165. rm -f conftest.er1
  3166. cat conftest.err >&5
  3167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3168. (exit $ac_status); } &&
  3169. { ac_try='test -z "$ac_c_werror_flag"
  3170. || test ! -s conftest.err'
  3171. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3172. (eval $ac_try) 2>&5
  3173. ac_status=$?
  3174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3175. (exit $ac_status); }; } &&
  3176. { ac_try='test -s conftest.$ac_objext'
  3177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3178. (eval $ac_try) 2>&5
  3179. ac_status=$?
  3180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3181. (exit $ac_status); }; }; then
  3182. :
  3183. else
  3184. echo "$as_me: failed program was:" >&5
  3185. sed 's/^/| /' conftest.$ac_ext >&5
  3186. continue
  3187. fi
  3188. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3189. cat >conftest.$ac_ext <<_ACEOF
  3190. /* confdefs.h. */
  3191. _ACEOF
  3192. cat confdefs.h >>conftest.$ac_ext
  3193. cat >>conftest.$ac_ext <<_ACEOF
  3194. /* end confdefs.h. */
  3195. $ac_declaration
  3196. int
  3197. main ()
  3198. {
  3199. exit (42);
  3200. ;
  3201. return 0;
  3202. }
  3203. _ACEOF
  3204. rm -f conftest.$ac_objext
  3205. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3206. (eval $ac_compile) 2>conftest.er1
  3207. ac_status=$?
  3208. grep -v '^ *+' conftest.er1 >conftest.err
  3209. rm -f conftest.er1
  3210. cat conftest.err >&5
  3211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3212. (exit $ac_status); } &&
  3213. { ac_try='test -z "$ac_c_werror_flag"
  3214. || test ! -s conftest.err'
  3215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3216. (eval $ac_try) 2>&5
  3217. ac_status=$?
  3218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3219. (exit $ac_status); }; } &&
  3220. { ac_try='test -s conftest.$ac_objext'
  3221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3222. (eval $ac_try) 2>&5
  3223. ac_status=$?
  3224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3225. (exit $ac_status); }; }; then
  3226. break
  3227. else
  3228. echo "$as_me: failed program was:" >&5
  3229. sed 's/^/| /' conftest.$ac_ext >&5
  3230. fi
  3231. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3232. done
  3233. rm -f conftest*
  3234. if test -n "$ac_declaration"; then
  3235. echo '#ifdef __cplusplus' >>confdefs.h
  3236. echo $ac_declaration >>confdefs.h
  3237. echo '#endif' >>confdefs.h
  3238. fi
  3239. else
  3240. echo "$as_me: failed program was:" >&5
  3241. sed 's/^/| /' conftest.$ac_ext >&5
  3242. fi
  3243. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. ac_ext=c
  3245. ac_cpp='$CPP $CPPFLAGS'
  3246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3249. depcc="$CC" am_compiler_list=
  3250. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3251. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3252. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3253. echo $ECHO_N "(cached) $ECHO_C" >&6
  3254. else
  3255. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3256. # We make a subdir and do the tests there. Otherwise we can end up
  3257. # making bogus files that we don't know about and never remove. For
  3258. # instance it was reported that on HP-UX the gcc test will end up
  3259. # making a dummy file named `D' -- because `-MD' means `put the output
  3260. # in D'.
  3261. mkdir conftest.dir
  3262. # Copy depcomp to subdir because otherwise we won't find it if we're
  3263. # using a relative directory.
  3264. cp "$am_depcomp" conftest.dir
  3265. cd conftest.dir
  3266. # We will build objects and dependencies in a subdirectory because
  3267. # it helps to detect inapplicable dependency modes. For instance
  3268. # both Tru64's cc and ICC support -MD to output dependencies as a
  3269. # side effect of compilation, but ICC will put the dependencies in
  3270. # the current directory while Tru64 will put them in the object
  3271. # directory.
  3272. mkdir sub
  3273. am_cv_CC_dependencies_compiler_type=none
  3274. if test "$am_compiler_list" = ""; then
  3275. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3276. fi
  3277. for depmode in $am_compiler_list; do
  3278. # Setup a source with many dependencies, because some compilers
  3279. # like to wrap large dependency lists on column 80 (with \), and
  3280. # we should not choose a depcomp mode which is confused by this.
  3281. #
  3282. # We need to recreate these files for each test, as the compiler may
  3283. # overwrite some of them when testing with obscure command lines.
  3284. # This happens at least with the AIX C compiler.
  3285. : > sub/conftest.c
  3286. for i in 1 2 3 4 5 6; do
  3287. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3288. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3289. # Solaris 8's {/usr,}/bin/sh.
  3290. touch sub/conftst$i.h
  3291. done
  3292. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3293. case $depmode in
  3294. nosideeffect)
  3295. # after this tag, mechanisms are not by side-effect, so they'll
  3296. # only be used when explicitly requested
  3297. if test "x$enable_dependency_tracking" = xyes; then
  3298. continue
  3299. else
  3300. break
  3301. fi
  3302. ;;
  3303. none) break ;;
  3304. esac
  3305. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3306. # mode. It turns out that the SunPro C++ compiler does not properly
  3307. # handle `-M -o', and we need to detect this.
  3308. if depmode=$depmode \
  3309. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3310. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3311. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3312. >/dev/null 2>conftest.err &&
  3313. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3314. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3315. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3316. # icc doesn't choke on unknown options, it will just issue warnings
  3317. # or remarks (even with -Werror). So we grep stderr for any message
  3318. # that says an option was ignored or not supported.
  3319. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3320. # icc: Command line warning: ignoring option '-M'; no argument required
  3321. # The diagnosis changed in icc 8.0:
  3322. # icc: Command line remark: option '-MP' not supported
  3323. if (grep 'ignoring option' conftest.err ||
  3324. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3325. am_cv_CC_dependencies_compiler_type=$depmode
  3326. break
  3327. fi
  3328. fi
  3329. done
  3330. cd ..
  3331. rm -rf conftest.dir
  3332. else
  3333. am_cv_CC_dependencies_compiler_type=none
  3334. fi
  3335. fi
  3336. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3337. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3338. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3339. if
  3340. test "x$enable_dependency_tracking" != xno \
  3341. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3342. am__fastdepCC_TRUE=
  3343. am__fastdepCC_FALSE='#'
  3344. else
  3345. am__fastdepCC_TRUE='#'
  3346. am__fastdepCC_FALSE=
  3347. fi
  3348. if test "x$CC" != xcc; then
  3349. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3350. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3351. else
  3352. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3353. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3354. fi
  3355. set dummy $CC; ac_cc=`echo $2 |
  3356. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3357. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3358. echo $ECHO_N "(cached) $ECHO_C" >&6
  3359. else
  3360. cat >conftest.$ac_ext <<_ACEOF
  3361. /* confdefs.h. */
  3362. _ACEOF
  3363. cat confdefs.h >>conftest.$ac_ext
  3364. cat >>conftest.$ac_ext <<_ACEOF
  3365. /* end confdefs.h. */
  3366. int
  3367. main ()
  3368. {
  3369. ;
  3370. return 0;
  3371. }
  3372. _ACEOF
  3373. # Make sure it works both with $CC and with simple cc.
  3374. # We do the test twice because some compilers refuse to overwrite an
  3375. # existing .o file with -o, though they will create one.
  3376. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3377. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3378. (eval $ac_try) 2>&5
  3379. ac_status=$?
  3380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3381. (exit $ac_status); } &&
  3382. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3383. (eval $ac_try) 2>&5
  3384. ac_status=$?
  3385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386. (exit $ac_status); };
  3387. then
  3388. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3389. if test "x$CC" != xcc; then
  3390. # Test first that cc exists at all.
  3391. if { ac_try='cc -c conftest.$ac_ext >&5'
  3392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3393. (eval $ac_try) 2>&5
  3394. ac_status=$?
  3395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3396. (exit $ac_status); }; }; then
  3397. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3398. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3399. (eval $ac_try) 2>&5
  3400. ac_status=$?
  3401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3402. (exit $ac_status); } &&
  3403. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3404. (eval $ac_try) 2>&5
  3405. ac_status=$?
  3406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3407. (exit $ac_status); };
  3408. then
  3409. # cc works too.
  3410. :
  3411. else
  3412. # cc exists but doesn't like -o.
  3413. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3414. fi
  3415. fi
  3416. fi
  3417. else
  3418. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3419. fi
  3420. rm -f conftest*
  3421. fi
  3422. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3423. echo "$as_me:$LINENO: result: yes" >&5
  3424. echo "${ECHO_T}yes" >&6
  3425. else
  3426. echo "$as_me:$LINENO: result: no" >&5
  3427. echo "${ECHO_T}no" >&6
  3428. cat >>confdefs.h <<\_ACEOF
  3429. #define NO_MINUS_C_MINUS_O 1
  3430. _ACEOF
  3431. fi
  3432. # FIXME: we rely on the cache variable name because
  3433. # there is no other way.
  3434. set dummy $CC
  3435. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3436. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3437. # Losing compiler, so override with the script.
  3438. # FIXME: It is wrong to rewrite CC.
  3439. # But if we don't then we get into trouble of one sort or another.
  3440. # A longer-term fix would be to have automake use am__CC in this case,
  3441. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3442. CC="$am_aux_dir/compile $CC"
  3443. fi
  3444. # By default we simply use the C compiler to build assembly code.
  3445. test "${CCAS+set}" = set || CCAS=$CC
  3446. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3447. # disable static libs by default - we only use a couple
  3448. # Check whether --enable-static or --disable-static was given.
  3449. if test "${enable_static+set}" = set; then
  3450. enableval="$enable_static"
  3451. p=${PACKAGE-default}
  3452. case $enableval in
  3453. yes) enable_static=yes ;;
  3454. no) enable_static=no ;;
  3455. *)
  3456. enable_static=no
  3457. # Look at the argument we got. We use all the common list separators.
  3458. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3459. for pkg in $enableval; do
  3460. IFS="$lt_save_ifs"
  3461. if test "X$pkg" = "X$p"; then
  3462. enable_static=yes
  3463. fi
  3464. done
  3465. IFS="$lt_save_ifs"
  3466. ;;
  3467. esac
  3468. else
  3469. enable_static=no
  3470. fi;
  3471. # Check whether --enable-shared or --disable-shared was given.
  3472. if test "${enable_shared+set}" = set; then
  3473. enableval="$enable_shared"
  3474. p=${PACKAGE-default}
  3475. case $enableval in
  3476. yes) enable_shared=yes ;;
  3477. no) enable_shared=no ;;
  3478. *)
  3479. enable_shared=no
  3480. # Look at the argument we got. We use all the common list separators.
  3481. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3482. for pkg in $enableval; do
  3483. IFS="$lt_save_ifs"
  3484. if test "X$pkg" = "X$p"; then
  3485. enable_shared=yes
  3486. fi
  3487. done
  3488. IFS="$lt_save_ifs"
  3489. ;;
  3490. esac
  3491. else
  3492. enable_shared=yes
  3493. fi;
  3494. # Check whether --enable-fast-install or --disable-fast-install was given.
  3495. if test "${enable_fast_install+set}" = set; then
  3496. enableval="$enable_fast_install"
  3497. p=${PACKAGE-default}
  3498. case $enableval in
  3499. yes) enable_fast_install=yes ;;
  3500. no) enable_fast_install=no ;;
  3501. *)
  3502. enable_fast_install=no
  3503. # Look at the argument we got. We use all the common list separators.
  3504. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3505. for pkg in $enableval; do
  3506. IFS="$lt_save_ifs"
  3507. if test "X$pkg" = "X$p"; then
  3508. enable_fast_install=yes
  3509. fi
  3510. done
  3511. IFS="$lt_save_ifs"
  3512. ;;
  3513. esac
  3514. else
  3515. enable_fast_install=yes
  3516. fi;
  3517. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3518. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3519. if test "${lt_cv_path_SED+set}" = set; then
  3520. echo $ECHO_N "(cached) $ECHO_C" >&6
  3521. else
  3522. # Loop through the user's path and test for sed and gsed.
  3523. # Then use that list of sed's as ones to test for truncation.
  3524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3525. for as_dir in $PATH
  3526. do
  3527. IFS=$as_save_IFS
  3528. test -z "$as_dir" && as_dir=.
  3529. for lt_ac_prog in sed gsed; do
  3530. for ac_exec_ext in '' $ac_executable_extensions; do
  3531. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3532. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3533. fi
  3534. done
  3535. done
  3536. done
  3537. IFS=$as_save_IFS
  3538. lt_ac_max=0
  3539. lt_ac_count=0
  3540. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3541. # along with /bin/sed that truncates output.
  3542. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3543. test ! -f $lt_ac_sed && continue
  3544. cat /dev/null > conftest.in
  3545. lt_ac_count=0
  3546. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3547. # Check for GNU sed and select it if it is found.
  3548. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3549. lt_cv_path_SED=$lt_ac_sed
  3550. break
  3551. fi
  3552. while true; do
  3553. cat conftest.in conftest.in >conftest.tmp
  3554. mv conftest.tmp conftest.in
  3555. cp conftest.in conftest.nl
  3556. echo >>conftest.nl
  3557. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3558. cmp -s conftest.out conftest.nl || break
  3559. # 10000 chars as input seems more than enough
  3560. test $lt_ac_count -gt 10 && break
  3561. lt_ac_count=`expr $lt_ac_count + 1`
  3562. if test $lt_ac_count -gt $lt_ac_max; then
  3563. lt_ac_max=$lt_ac_count
  3564. lt_cv_path_SED=$lt_ac_sed
  3565. fi
  3566. done
  3567. done
  3568. fi
  3569. SED=$lt_cv_path_SED
  3570. echo "$as_me:$LINENO: result: $SED" >&5
  3571. echo "${ECHO_T}$SED" >&6
  3572. echo "$as_me:$LINENO: checking for egrep" >&5
  3573. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3574. if test "${ac_cv_prog_egrep+set}" = set; then
  3575. echo $ECHO_N "(cached) $ECHO_C" >&6
  3576. else
  3577. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3578. then ac_cv_prog_egrep='grep -E'
  3579. else ac_cv_prog_egrep='egrep'
  3580. fi
  3581. fi
  3582. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3583. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3584. EGREP=$ac_cv_prog_egrep
  3585. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3586. if test "${with_gnu_ld+set}" = set; then
  3587. withval="$with_gnu_ld"
  3588. test "$withval" = no || with_gnu_ld=yes
  3589. else
  3590. with_gnu_ld=no
  3591. fi;
  3592. ac_prog=ld
  3593. if test "$GCC" = yes; then
  3594. # Check if gcc -print-prog-name=ld gives a path.
  3595. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3596. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3597. case $host in
  3598. *-*-mingw*)
  3599. # gcc leaves a trailing carriage return which upsets mingw
  3600. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3601. *)
  3602. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3603. esac
  3604. case $ac_prog in
  3605. # Accept absolute paths.
  3606. [\\/]* | ?:[\\/]*)
  3607. re_direlt='/[^/][^/]*/\.\./'
  3608. # Canonicalize the pathname of ld
  3609. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3610. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3611. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3612. done
  3613. test -z "$LD" && LD="$ac_prog"
  3614. ;;
  3615. "")
  3616. # If it fails, then pretend we aren't using GCC.
  3617. ac_prog=ld
  3618. ;;
  3619. *)
  3620. # If it is relative, then search for the first ld in PATH.
  3621. with_gnu_ld=unknown
  3622. ;;
  3623. esac
  3624. elif test "$with_gnu_ld" = yes; then
  3625. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3626. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3627. else
  3628. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3629. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3630. fi
  3631. if test "${lt_cv_path_LD+set}" = set; then
  3632. echo $ECHO_N "(cached) $ECHO_C" >&6
  3633. else
  3634. if test -z "$LD"; then
  3635. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3636. for ac_dir in $PATH; do
  3637. IFS="$lt_save_ifs"
  3638. test -z "$ac_dir" && ac_dir=.
  3639. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3640. lt_cv_path_LD="$ac_dir/$ac_prog"
  3641. # Check to see if the program is GNU ld. I'd rather use --version,
  3642. # but apparently some variants of GNU ld only accept -v.
  3643. # Break only if it was the GNU/non-GNU ld that we prefer.
  3644. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3645. *GNU* | *'with BFD'*)
  3646. test "$with_gnu_ld" != no && break
  3647. ;;
  3648. *)
  3649. test "$with_gnu_ld" != yes && break
  3650. ;;
  3651. esac
  3652. fi
  3653. done
  3654. IFS="$lt_save_ifs"
  3655. else
  3656. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3657. fi
  3658. fi
  3659. LD="$lt_cv_path_LD"
  3660. if test -n "$LD"; then
  3661. echo "$as_me:$LINENO: result: $LD" >&5
  3662. echo "${ECHO_T}$LD" >&6
  3663. else
  3664. echo "$as_me:$LINENO: result: no" >&5
  3665. echo "${ECHO_T}no" >&6
  3666. fi
  3667. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3668. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3669. { (exit 1); exit 1; }; }
  3670. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3671. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3672. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3673. echo $ECHO_N "(cached) $ECHO_C" >&6
  3674. else
  3675. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3676. case `$LD -v 2>&1 </dev/null` in
  3677. *GNU* | *'with BFD'*)
  3678. lt_cv_prog_gnu_ld=yes
  3679. ;;
  3680. *)
  3681. lt_cv_prog_gnu_ld=no
  3682. ;;
  3683. esac
  3684. fi
  3685. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3686. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3687. with_gnu_ld=$lt_cv_prog_gnu_ld
  3688. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3689. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3690. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3691. echo $ECHO_N "(cached) $ECHO_C" >&6
  3692. else
  3693. lt_cv_ld_reload_flag='-r'
  3694. fi
  3695. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3696. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3697. reload_flag=$lt_cv_ld_reload_flag
  3698. case $reload_flag in
  3699. "" | " "*) ;;
  3700. *) reload_flag=" $reload_flag" ;;
  3701. esac
  3702. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3703. case $host_os in
  3704. darwin*)
  3705. if test "$GCC" = yes; then
  3706. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3707. else
  3708. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3709. fi
  3710. ;;
  3711. esac
  3712. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3713. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3714. if test "${lt_cv_path_NM+set}" = set; then
  3715. echo $ECHO_N "(cached) $ECHO_C" >&6
  3716. else
  3717. if test -n "$NM"; then
  3718. # Let the user override the test.
  3719. lt_cv_path_NM="$NM"
  3720. else
  3721. lt_nm_to_check="${ac_tool_prefix}nm"
  3722. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3723. lt_nm_to_check="$lt_nm_to_check nm"
  3724. fi
  3725. for lt_tmp_nm in $lt_nm_to_check; do
  3726. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3727. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3728. IFS="$lt_save_ifs"
  3729. test -z "$ac_dir" && ac_dir=.
  3730. tmp_nm="$ac_dir/$lt_tmp_nm"
  3731. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3732. # Check to see if the nm accepts a BSD-compat flag.
  3733. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3734. # nm: unknown option "B" ignored
  3735. # Tru64's nm complains that /dev/null is an invalid object file
  3736. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3737. */dev/null* | *'Invalid file or object type'*)
  3738. lt_cv_path_NM="$tmp_nm -B"
  3739. break
  3740. ;;
  3741. *)
  3742. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3743. */dev/null*)
  3744. lt_cv_path_NM="$tmp_nm -p"
  3745. break
  3746. ;;
  3747. *)
  3748. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3749. continue # so that we can try to find one that supports BSD flags
  3750. ;;
  3751. esac
  3752. ;;
  3753. esac
  3754. fi
  3755. done
  3756. IFS="$lt_save_ifs"
  3757. done
  3758. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3759. fi
  3760. fi
  3761. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3762. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3763. NM="$lt_cv_path_NM"
  3764. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3765. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3766. LN_S=$as_ln_s
  3767. if test "$LN_S" = "ln -s"; then
  3768. echo "$as_me:$LINENO: result: yes" >&5
  3769. echo "${ECHO_T}yes" >&6
  3770. else
  3771. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3772. echo "${ECHO_T}no, using $LN_S" >&6
  3773. fi
  3774. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3775. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3776. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3777. echo $ECHO_N "(cached) $ECHO_C" >&6
  3778. else
  3779. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3780. lt_cv_file_magic_test_file=
  3781. lt_cv_deplibs_check_method='unknown'
  3782. # Need to set the preceding variable on all platforms that support
  3783. # interlibrary dependencies.
  3784. # 'none' -- dependencies not supported.
  3785. # `unknown' -- same as none, but documents that we really don't know.
  3786. # 'pass_all' -- all dependencies passed with no checks.
  3787. # 'test_compile' -- check by making test program.
  3788. # 'file_magic [[regex]]' -- check by looking for files in library path
  3789. # which responds to the $file_magic_cmd with a given extended regex.
  3790. # If you have `file' or equivalent on your system and you're not sure
  3791. # whether `pass_all' will *always* work, you probably want this one.
  3792. case $host_os in
  3793. aix4* | aix5*)
  3794. lt_cv_deplibs_check_method=pass_all
  3795. ;;
  3796. beos*)
  3797. lt_cv_deplibs_check_method=pass_all
  3798. ;;
  3799. bsdi[45]*)
  3800. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3801. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3802. lt_cv_file_magic_test_file=/shlib/libc.so
  3803. ;;
  3804. cygwin*)
  3805. # func_win32_libid is a shell function defined in ltmain.sh
  3806. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3807. lt_cv_file_magic_cmd='func_win32_libid'
  3808. ;;
  3809. mingw* | pw32*)
  3810. # Base MSYS/MinGW do not provide the 'file' command needed by
  3811. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3812. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3813. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3814. ;;
  3815. darwin* | rhapsody*)
  3816. lt_cv_deplibs_check_method=pass_all
  3817. ;;
  3818. freebsd* | kfreebsd*-gnu | dragonfly*)
  3819. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3820. case $host_cpu in
  3821. i*86 )
  3822. # Not sure whether the presence of OpenBSD here was a mistake.
  3823. # Let's accept both of them until this is cleared up.
  3824. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3825. lt_cv_file_magic_cmd=/usr/bin/file
  3826. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3827. ;;
  3828. esac
  3829. else
  3830. lt_cv_deplibs_check_method=pass_all
  3831. fi
  3832. ;;
  3833. gnu*)
  3834. lt_cv_deplibs_check_method=pass_all
  3835. ;;
  3836. hpux10.20* | hpux11*)
  3837. lt_cv_file_magic_cmd=/usr/bin/file
  3838. case $host_cpu in
  3839. ia64*)
  3840. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3841. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3842. ;;
  3843. hppa*64*)
  3844. 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]'
  3845. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3846. ;;
  3847. *)
  3848. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3849. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3850. ;;
  3851. esac
  3852. ;;
  3853. interix3*)
  3854. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3855. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3856. ;;
  3857. irix5* | irix6* | nonstopux*)
  3858. case $LD in
  3859. *-32|*"-32 ") libmagic=32-bit;;
  3860. *-n32|*"-n32 ") libmagic=N32;;
  3861. *-64|*"-64 ") libmagic=64-bit;;
  3862. *) libmagic=never-match;;
  3863. esac
  3864. lt_cv_deplibs_check_method=pass_all
  3865. ;;
  3866. # This must be Linux ELF.
  3867. linux*)
  3868. lt_cv_deplibs_check_method=pass_all
  3869. ;;
  3870. netbsd*)
  3871. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3872. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3873. else
  3874. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3875. fi
  3876. ;;
  3877. newos6*)
  3878. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3879. lt_cv_file_magic_cmd=/usr/bin/file
  3880. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3881. ;;
  3882. nto-qnx*)
  3883. lt_cv_deplibs_check_method=unknown
  3884. ;;
  3885. openbsd*)
  3886. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3887. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3888. else
  3889. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3890. fi
  3891. ;;
  3892. osf3* | osf4* | osf5*)
  3893. lt_cv_deplibs_check_method=pass_all
  3894. ;;
  3895. solaris*)
  3896. lt_cv_deplibs_check_method=pass_all
  3897. ;;
  3898. sysv4 | sysv4.3*)
  3899. case $host_vendor in
  3900. motorola)
  3901. 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]'
  3902. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3903. ;;
  3904. ncr)
  3905. lt_cv_deplibs_check_method=pass_all
  3906. ;;
  3907. sequent)
  3908. lt_cv_file_magic_cmd='/bin/file'
  3909. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3910. ;;
  3911. sni)
  3912. lt_cv_file_magic_cmd='/bin/file'
  3913. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3914. lt_cv_file_magic_test_file=/lib/libc.so
  3915. ;;
  3916. siemens)
  3917. lt_cv_deplibs_check_method=pass_all
  3918. ;;
  3919. pc)
  3920. lt_cv_deplibs_check_method=pass_all
  3921. ;;
  3922. esac
  3923. ;;
  3924. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3925. lt_cv_deplibs_check_method=pass_all
  3926. ;;
  3927. esac
  3928. fi
  3929. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3930. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3931. file_magic_cmd=$lt_cv_file_magic_cmd
  3932. deplibs_check_method=$lt_cv_deplibs_check_method
  3933. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3934. # If no C compiler was specified, use CC.
  3935. LTCC=${LTCC-"$CC"}
  3936. # If no C compiler flags were specified, use CFLAGS.
  3937. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3938. # Allow CC to be a program name with arguments.
  3939. compiler=$CC
  3940. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3941. if test "${enable_libtool_lock+set}" = set; then
  3942. enableval="$enable_libtool_lock"
  3943. fi;
  3944. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3945. # Some flags need to be propagated to the compiler or linker for good
  3946. # libtool support.
  3947. case $host in
  3948. ia64-*-hpux*)
  3949. # Find out which ABI we are using.
  3950. echo 'int i;' > conftest.$ac_ext
  3951. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3952. (eval $ac_compile) 2>&5
  3953. ac_status=$?
  3954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3955. (exit $ac_status); }; then
  3956. case `/usr/bin/file conftest.$ac_objext` in
  3957. *ELF-32*)
  3958. HPUX_IA64_MODE="32"
  3959. ;;
  3960. *ELF-64*)
  3961. HPUX_IA64_MODE="64"
  3962. ;;
  3963. esac
  3964. fi
  3965. rm -rf conftest*
  3966. ;;
  3967. *-*-irix6*)
  3968. # Find out which ABI we are using.
  3969. echo '#line 4408 "configure"' > conftest.$ac_ext
  3970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3971. (eval $ac_compile) 2>&5
  3972. ac_status=$?
  3973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974. (exit $ac_status); }; then
  3975. if test "$lt_cv_prog_gnu_ld" = yes; then
  3976. case `/usr/bin/file conftest.$ac_objext` in
  3977. *32-bit*)
  3978. LD="${LD-ld} -melf32bsmip"
  3979. ;;
  3980. *N32*)
  3981. LD="${LD-ld} -melf32bmipn32"
  3982. ;;
  3983. *64-bit*)
  3984. LD="${LD-ld} -melf64bmip"
  3985. ;;
  3986. esac
  3987. else
  3988. case `/usr/bin/file conftest.$ac_objext` in
  3989. *32-bit*)
  3990. LD="${LD-ld} -32"
  3991. ;;
  3992. *N32*)
  3993. LD="${LD-ld} -n32"
  3994. ;;
  3995. *64-bit*)
  3996. LD="${LD-ld} -64"
  3997. ;;
  3998. esac
  3999. fi
  4000. fi
  4001. rm -rf conftest*
  4002. ;;
  4003. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4004. # Find out which ABI we are using.
  4005. echo 'int i;' > conftest.$ac_ext
  4006. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4007. (eval $ac_compile) 2>&5
  4008. ac_status=$?
  4009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4010. (exit $ac_status); }; then
  4011. case `/usr/bin/file conftest.o` in
  4012. *32-bit*)
  4013. case $host in
  4014. x86_64-*linux*)
  4015. LD="${LD-ld} -m elf_i386"
  4016. ;;
  4017. ppc64-*linux*|powerpc64-*linux*)
  4018. LD="${LD-ld} -m elf32ppclinux"
  4019. ;;
  4020. s390x-*linux*)
  4021. LD="${LD-ld} -m elf_s390"
  4022. ;;
  4023. sparc64-*linux*)
  4024. LD="${LD-ld} -m elf32_sparc"
  4025. ;;
  4026. esac
  4027. ;;
  4028. *64-bit*)
  4029. case $host in
  4030. x86_64-*linux*)
  4031. LD="${LD-ld} -m elf_x86_64"
  4032. ;;
  4033. ppc*-*linux*|powerpc*-*linux*)
  4034. LD="${LD-ld} -m elf64ppc"
  4035. ;;
  4036. s390*-*linux*)
  4037. LD="${LD-ld} -m elf64_s390"
  4038. ;;
  4039. sparc*-*linux*)
  4040. LD="${LD-ld} -m elf64_sparc"
  4041. ;;
  4042. esac
  4043. ;;
  4044. esac
  4045. fi
  4046. rm -rf conftest*
  4047. ;;
  4048. *-*-sco3.2v5*)
  4049. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4050. SAVE_CFLAGS="$CFLAGS"
  4051. CFLAGS="$CFLAGS -belf"
  4052. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4053. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4054. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4055. echo $ECHO_N "(cached) $ECHO_C" >&6
  4056. else
  4057. ac_ext=c
  4058. ac_cpp='$CPP $CPPFLAGS'
  4059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4062. cat >conftest.$ac_ext <<_ACEOF
  4063. /* confdefs.h. */
  4064. _ACEOF
  4065. cat confdefs.h >>conftest.$ac_ext
  4066. cat >>conftest.$ac_ext <<_ACEOF
  4067. /* end confdefs.h. */
  4068. int
  4069. main ()
  4070. {
  4071. ;
  4072. return 0;
  4073. }
  4074. _ACEOF
  4075. rm -f conftest.$ac_objext conftest$ac_exeext
  4076. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4077. (eval $ac_link) 2>conftest.er1
  4078. ac_status=$?
  4079. grep -v '^ *+' conftest.er1 >conftest.err
  4080. rm -f conftest.er1
  4081. cat conftest.err >&5
  4082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); } &&
  4084. { ac_try='test -z "$ac_c_werror_flag"
  4085. || test ! -s conftest.err'
  4086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4087. (eval $ac_try) 2>&5
  4088. ac_status=$?
  4089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4090. (exit $ac_status); }; } &&
  4091. { ac_try='test -s conftest$ac_exeext'
  4092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4093. (eval $ac_try) 2>&5
  4094. ac_status=$?
  4095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4096. (exit $ac_status); }; }; then
  4097. lt_cv_cc_needs_belf=yes
  4098. else
  4099. echo "$as_me: failed program was:" >&5
  4100. sed 's/^/| /' conftest.$ac_ext >&5
  4101. lt_cv_cc_needs_belf=no
  4102. fi
  4103. rm -f conftest.err conftest.$ac_objext \
  4104. conftest$ac_exeext conftest.$ac_ext
  4105. ac_ext=c
  4106. ac_cpp='$CPP $CPPFLAGS'
  4107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4110. fi
  4111. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4112. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4113. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4114. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4115. CFLAGS="$SAVE_CFLAGS"
  4116. fi
  4117. ;;
  4118. sparc*-*solaris*)
  4119. # Find out which ABI we are using.
  4120. echo 'int i;' > conftest.$ac_ext
  4121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4122. (eval $ac_compile) 2>&5
  4123. ac_status=$?
  4124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4125. (exit $ac_status); }; then
  4126. case `/usr/bin/file conftest.o` in
  4127. *64-bit*)
  4128. case $lt_cv_prog_gnu_ld in
  4129. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4130. *) LD="${LD-ld} -64" ;;
  4131. esac
  4132. ;;
  4133. esac
  4134. fi
  4135. rm -rf conftest*
  4136. ;;
  4137. esac
  4138. need_locks="$enable_libtool_lock"
  4139. ac_ext=c
  4140. ac_cpp='$CPP $CPPFLAGS'
  4141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4144. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4145. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4146. # On Suns, sometimes $CPP names a directory.
  4147. if test -n "$CPP" && test -d "$CPP"; then
  4148. CPP=
  4149. fi
  4150. if test -z "$CPP"; then
  4151. if test "${ac_cv_prog_CPP+set}" = set; then
  4152. echo $ECHO_N "(cached) $ECHO_C" >&6
  4153. else
  4154. # Double quotes because CPP needs to be expanded
  4155. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4156. do
  4157. ac_preproc_ok=false
  4158. for ac_c_preproc_warn_flag in '' yes
  4159. do
  4160. # Use a header file that comes with gcc, so configuring glibc
  4161. # with a fresh cross-compiler works.
  4162. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4163. # <limits.h> exists even on freestanding compilers.
  4164. # On the NeXT, cc -E runs the code through the compiler's parser,
  4165. # not just through cpp. "Syntax error" is here to catch this case.
  4166. cat >conftest.$ac_ext <<_ACEOF
  4167. /* confdefs.h. */
  4168. _ACEOF
  4169. cat confdefs.h >>conftest.$ac_ext
  4170. cat >>conftest.$ac_ext <<_ACEOF
  4171. /* end confdefs.h. */
  4172. #ifdef __STDC__
  4173. # include <limits.h>
  4174. #else
  4175. # include <assert.h>
  4176. #endif
  4177. Syntax error
  4178. _ACEOF
  4179. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4180. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4181. ac_status=$?
  4182. grep -v '^ *+' conftest.er1 >conftest.err
  4183. rm -f conftest.er1
  4184. cat conftest.err >&5
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); } >/dev/null; then
  4187. if test -s conftest.err; then
  4188. ac_cpp_err=$ac_c_preproc_warn_flag
  4189. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4190. else
  4191. ac_cpp_err=
  4192. fi
  4193. else
  4194. ac_cpp_err=yes
  4195. fi
  4196. if test -z "$ac_cpp_err"; then
  4197. :
  4198. else
  4199. echo "$as_me: failed program was:" >&5
  4200. sed 's/^/| /' conftest.$ac_ext >&5
  4201. # Broken: fails on valid input.
  4202. continue
  4203. fi
  4204. rm -f conftest.err conftest.$ac_ext
  4205. # OK, works on sane cases. Now check whether non-existent headers
  4206. # can be detected and how.
  4207. cat >conftest.$ac_ext <<_ACEOF
  4208. /* confdefs.h. */
  4209. _ACEOF
  4210. cat confdefs.h >>conftest.$ac_ext
  4211. cat >>conftest.$ac_ext <<_ACEOF
  4212. /* end confdefs.h. */
  4213. #include <ac_nonexistent.h>
  4214. _ACEOF
  4215. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4216. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4217. ac_status=$?
  4218. grep -v '^ *+' conftest.er1 >conftest.err
  4219. rm -f conftest.er1
  4220. cat conftest.err >&5
  4221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4222. (exit $ac_status); } >/dev/null; then
  4223. if test -s conftest.err; then
  4224. ac_cpp_err=$ac_c_preproc_warn_flag
  4225. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4226. else
  4227. ac_cpp_err=
  4228. fi
  4229. else
  4230. ac_cpp_err=yes
  4231. fi
  4232. if test -z "$ac_cpp_err"; then
  4233. # Broken: success on invalid input.
  4234. continue
  4235. else
  4236. echo "$as_me: failed program was:" >&5
  4237. sed 's/^/| /' conftest.$ac_ext >&5
  4238. # Passes both tests.
  4239. ac_preproc_ok=:
  4240. break
  4241. fi
  4242. rm -f conftest.err conftest.$ac_ext
  4243. done
  4244. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4245. rm -f conftest.err conftest.$ac_ext
  4246. if $ac_preproc_ok; then
  4247. break
  4248. fi
  4249. done
  4250. ac_cv_prog_CPP=$CPP
  4251. fi
  4252. CPP=$ac_cv_prog_CPP
  4253. else
  4254. ac_cv_prog_CPP=$CPP
  4255. fi
  4256. echo "$as_me:$LINENO: result: $CPP" >&5
  4257. echo "${ECHO_T}$CPP" >&6
  4258. ac_preproc_ok=false
  4259. for ac_c_preproc_warn_flag in '' yes
  4260. do
  4261. # Use a header file that comes with gcc, so configuring glibc
  4262. # with a fresh cross-compiler works.
  4263. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4264. # <limits.h> exists even on freestanding compilers.
  4265. # On the NeXT, cc -E runs the code through the compiler's parser,
  4266. # not just through cpp. "Syntax error" is here to catch this case.
  4267. cat >conftest.$ac_ext <<_ACEOF
  4268. /* confdefs.h. */
  4269. _ACEOF
  4270. cat confdefs.h >>conftest.$ac_ext
  4271. cat >>conftest.$ac_ext <<_ACEOF
  4272. /* end confdefs.h. */
  4273. #ifdef __STDC__
  4274. # include <limits.h>
  4275. #else
  4276. # include <assert.h>
  4277. #endif
  4278. Syntax error
  4279. _ACEOF
  4280. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4281. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4282. ac_status=$?
  4283. grep -v '^ *+' conftest.er1 >conftest.err
  4284. rm -f conftest.er1
  4285. cat conftest.err >&5
  4286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4287. (exit $ac_status); } >/dev/null; then
  4288. if test -s conftest.err; then
  4289. ac_cpp_err=$ac_c_preproc_warn_flag
  4290. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4291. else
  4292. ac_cpp_err=
  4293. fi
  4294. else
  4295. ac_cpp_err=yes
  4296. fi
  4297. if test -z "$ac_cpp_err"; then
  4298. :
  4299. else
  4300. echo "$as_me: failed program was:" >&5
  4301. sed 's/^/| /' conftest.$ac_ext >&5
  4302. # Broken: fails on valid input.
  4303. continue
  4304. fi
  4305. rm -f conftest.err conftest.$ac_ext
  4306. # OK, works on sane cases. Now check whether non-existent headers
  4307. # can be detected and how.
  4308. cat >conftest.$ac_ext <<_ACEOF
  4309. /* confdefs.h. */
  4310. _ACEOF
  4311. cat confdefs.h >>conftest.$ac_ext
  4312. cat >>conftest.$ac_ext <<_ACEOF
  4313. /* end confdefs.h. */
  4314. #include <ac_nonexistent.h>
  4315. _ACEOF
  4316. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4317. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4318. ac_status=$?
  4319. grep -v '^ *+' conftest.er1 >conftest.err
  4320. rm -f conftest.er1
  4321. cat conftest.err >&5
  4322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4323. (exit $ac_status); } >/dev/null; then
  4324. if test -s conftest.err; then
  4325. ac_cpp_err=$ac_c_preproc_warn_flag
  4326. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4327. else
  4328. ac_cpp_err=
  4329. fi
  4330. else
  4331. ac_cpp_err=yes
  4332. fi
  4333. if test -z "$ac_cpp_err"; then
  4334. # Broken: success on invalid input.
  4335. continue
  4336. else
  4337. echo "$as_me: failed program was:" >&5
  4338. sed 's/^/| /' conftest.$ac_ext >&5
  4339. # Passes both tests.
  4340. ac_preproc_ok=:
  4341. break
  4342. fi
  4343. rm -f conftest.err conftest.$ac_ext
  4344. done
  4345. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4346. rm -f conftest.err conftest.$ac_ext
  4347. if $ac_preproc_ok; then
  4348. :
  4349. else
  4350. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4351. See \`config.log' for more details." >&5
  4352. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4353. See \`config.log' for more details." >&2;}
  4354. { (exit 1); exit 1; }; }
  4355. fi
  4356. ac_ext=c
  4357. ac_cpp='$CPP $CPPFLAGS'
  4358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4361. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4362. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4363. if test "${ac_cv_header_stdc+set}" = set; then
  4364. echo $ECHO_N "(cached) $ECHO_C" >&6
  4365. else
  4366. cat >conftest.$ac_ext <<_ACEOF
  4367. /* confdefs.h. */
  4368. _ACEOF
  4369. cat confdefs.h >>conftest.$ac_ext
  4370. cat >>conftest.$ac_ext <<_ACEOF
  4371. /* end confdefs.h. */
  4372. #include <stdlib.h>
  4373. #include <stdarg.h>
  4374. #include <string.h>
  4375. #include <float.h>
  4376. int
  4377. main ()
  4378. {
  4379. ;
  4380. return 0;
  4381. }
  4382. _ACEOF
  4383. rm -f conftest.$ac_objext
  4384. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4385. (eval $ac_compile) 2>conftest.er1
  4386. ac_status=$?
  4387. grep -v '^ *+' conftest.er1 >conftest.err
  4388. rm -f conftest.er1
  4389. cat conftest.err >&5
  4390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4391. (exit $ac_status); } &&
  4392. { ac_try='test -z "$ac_c_werror_flag"
  4393. || test ! -s conftest.err'
  4394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4395. (eval $ac_try) 2>&5
  4396. ac_status=$?
  4397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4398. (exit $ac_status); }; } &&
  4399. { ac_try='test -s conftest.$ac_objext'
  4400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4401. (eval $ac_try) 2>&5
  4402. ac_status=$?
  4403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. (exit $ac_status); }; }; then
  4405. ac_cv_header_stdc=yes
  4406. else
  4407. echo "$as_me: failed program was:" >&5
  4408. sed 's/^/| /' conftest.$ac_ext >&5
  4409. ac_cv_header_stdc=no
  4410. fi
  4411. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4412. if test $ac_cv_header_stdc = yes; then
  4413. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4414. cat >conftest.$ac_ext <<_ACEOF
  4415. /* confdefs.h. */
  4416. _ACEOF
  4417. cat confdefs.h >>conftest.$ac_ext
  4418. cat >>conftest.$ac_ext <<_ACEOF
  4419. /* end confdefs.h. */
  4420. #include <string.h>
  4421. _ACEOF
  4422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4423. $EGREP "memchr" >/dev/null 2>&1; then
  4424. :
  4425. else
  4426. ac_cv_header_stdc=no
  4427. fi
  4428. rm -f conftest*
  4429. fi
  4430. if test $ac_cv_header_stdc = yes; then
  4431. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4432. cat >conftest.$ac_ext <<_ACEOF
  4433. /* confdefs.h. */
  4434. _ACEOF
  4435. cat confdefs.h >>conftest.$ac_ext
  4436. cat >>conftest.$ac_ext <<_ACEOF
  4437. /* end confdefs.h. */
  4438. #include <stdlib.h>
  4439. _ACEOF
  4440. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4441. $EGREP "free" >/dev/null 2>&1; then
  4442. :
  4443. else
  4444. ac_cv_header_stdc=no
  4445. fi
  4446. rm -f conftest*
  4447. fi
  4448. if test $ac_cv_header_stdc = yes; then
  4449. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4450. if test "$cross_compiling" = yes; then
  4451. :
  4452. else
  4453. cat >conftest.$ac_ext <<_ACEOF
  4454. /* confdefs.h. */
  4455. _ACEOF
  4456. cat confdefs.h >>conftest.$ac_ext
  4457. cat >>conftest.$ac_ext <<_ACEOF
  4458. /* end confdefs.h. */
  4459. #include <ctype.h>
  4460. #if ((' ' & 0x0FF) == 0x020)
  4461. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4462. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4463. #else
  4464. # define ISLOWER(c) \
  4465. (('a' <= (c) && (c) <= 'i') \
  4466. || ('j' <= (c) && (c) <= 'r') \
  4467. || ('s' <= (c) && (c) <= 'z'))
  4468. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4469. #endif
  4470. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4471. int
  4472. main ()
  4473. {
  4474. int i;
  4475. for (i = 0; i < 256; i++)
  4476. if (XOR (islower (i), ISLOWER (i))
  4477. || toupper (i) != TOUPPER (i))
  4478. exit(2);
  4479. exit (0);
  4480. }
  4481. _ACEOF
  4482. rm -f conftest$ac_exeext
  4483. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4484. (eval $ac_link) 2>&5
  4485. ac_status=$?
  4486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4487. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4489. (eval $ac_try) 2>&5
  4490. ac_status=$?
  4491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4492. (exit $ac_status); }; }; then
  4493. :
  4494. else
  4495. echo "$as_me: program exited with status $ac_status" >&5
  4496. echo "$as_me: failed program was:" >&5
  4497. sed 's/^/| /' conftest.$ac_ext >&5
  4498. ( exit $ac_status )
  4499. ac_cv_header_stdc=no
  4500. fi
  4501. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4502. fi
  4503. fi
  4504. fi
  4505. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4506. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4507. if test $ac_cv_header_stdc = yes; then
  4508. cat >>confdefs.h <<\_ACEOF
  4509. #define STDC_HEADERS 1
  4510. _ACEOF
  4511. fi
  4512. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4513. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4514. inttypes.h stdint.h unistd.h
  4515. do
  4516. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4517. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4518. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4519. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4520. echo $ECHO_N "(cached) $ECHO_C" >&6
  4521. else
  4522. cat >conftest.$ac_ext <<_ACEOF
  4523. /* confdefs.h. */
  4524. _ACEOF
  4525. cat confdefs.h >>conftest.$ac_ext
  4526. cat >>conftest.$ac_ext <<_ACEOF
  4527. /* end confdefs.h. */
  4528. $ac_includes_default
  4529. #include <$ac_header>
  4530. _ACEOF
  4531. rm -f conftest.$ac_objext
  4532. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4533. (eval $ac_compile) 2>conftest.er1
  4534. ac_status=$?
  4535. grep -v '^ *+' conftest.er1 >conftest.err
  4536. rm -f conftest.er1
  4537. cat conftest.err >&5
  4538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4539. (exit $ac_status); } &&
  4540. { ac_try='test -z "$ac_c_werror_flag"
  4541. || test ! -s conftest.err'
  4542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4543. (eval $ac_try) 2>&5
  4544. ac_status=$?
  4545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4546. (exit $ac_status); }; } &&
  4547. { ac_try='test -s conftest.$ac_objext'
  4548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4549. (eval $ac_try) 2>&5
  4550. ac_status=$?
  4551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4552. (exit $ac_status); }; }; then
  4553. eval "$as_ac_Header=yes"
  4554. else
  4555. echo "$as_me: failed program was:" >&5
  4556. sed 's/^/| /' conftest.$ac_ext >&5
  4557. eval "$as_ac_Header=no"
  4558. fi
  4559. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4560. fi
  4561. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4562. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4563. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4564. cat >>confdefs.h <<_ACEOF
  4565. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4566. _ACEOF
  4567. fi
  4568. done
  4569. for ac_header in dlfcn.h
  4570. do
  4571. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4572. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4573. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4574. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4575. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4576. echo $ECHO_N "(cached) $ECHO_C" >&6
  4577. fi
  4578. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4579. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4580. else
  4581. # Is the header compilable?
  4582. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4583. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4584. cat >conftest.$ac_ext <<_ACEOF
  4585. /* confdefs.h. */
  4586. _ACEOF
  4587. cat confdefs.h >>conftest.$ac_ext
  4588. cat >>conftest.$ac_ext <<_ACEOF
  4589. /* end confdefs.h. */
  4590. $ac_includes_default
  4591. #include <$ac_header>
  4592. _ACEOF
  4593. rm -f conftest.$ac_objext
  4594. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4595. (eval $ac_compile) 2>conftest.er1
  4596. ac_status=$?
  4597. grep -v '^ *+' conftest.er1 >conftest.err
  4598. rm -f conftest.er1
  4599. cat conftest.err >&5
  4600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4601. (exit $ac_status); } &&
  4602. { ac_try='test -z "$ac_c_werror_flag"
  4603. || test ! -s conftest.err'
  4604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4605. (eval $ac_try) 2>&5
  4606. ac_status=$?
  4607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4608. (exit $ac_status); }; } &&
  4609. { ac_try='test -s conftest.$ac_objext'
  4610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4611. (eval $ac_try) 2>&5
  4612. ac_status=$?
  4613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4614. (exit $ac_status); }; }; then
  4615. ac_header_compiler=yes
  4616. else
  4617. echo "$as_me: failed program was:" >&5
  4618. sed 's/^/| /' conftest.$ac_ext >&5
  4619. ac_header_compiler=no
  4620. fi
  4621. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4622. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4623. echo "${ECHO_T}$ac_header_compiler" >&6
  4624. # Is the header present?
  4625. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4626. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4627. cat >conftest.$ac_ext <<_ACEOF
  4628. /* confdefs.h. */
  4629. _ACEOF
  4630. cat confdefs.h >>conftest.$ac_ext
  4631. cat >>conftest.$ac_ext <<_ACEOF
  4632. /* end confdefs.h. */
  4633. #include <$ac_header>
  4634. _ACEOF
  4635. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4636. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4637. ac_status=$?
  4638. grep -v '^ *+' conftest.er1 >conftest.err
  4639. rm -f conftest.er1
  4640. cat conftest.err >&5
  4641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4642. (exit $ac_status); } >/dev/null; then
  4643. if test -s conftest.err; then
  4644. ac_cpp_err=$ac_c_preproc_warn_flag
  4645. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4646. else
  4647. ac_cpp_err=
  4648. fi
  4649. else
  4650. ac_cpp_err=yes
  4651. fi
  4652. if test -z "$ac_cpp_err"; then
  4653. ac_header_preproc=yes
  4654. else
  4655. echo "$as_me: failed program was:" >&5
  4656. sed 's/^/| /' conftest.$ac_ext >&5
  4657. ac_header_preproc=no
  4658. fi
  4659. rm -f conftest.err conftest.$ac_ext
  4660. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4661. echo "${ECHO_T}$ac_header_preproc" >&6
  4662. # So? What about this header?
  4663. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4664. yes:no: )
  4665. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4666. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4667. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4668. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4669. ac_header_preproc=yes
  4670. ;;
  4671. no:yes:* )
  4672. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4673. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4674. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4675. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4676. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4677. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4678. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4679. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4680. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4681. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4682. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4683. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4684. (
  4685. cat <<\_ASBOX
  4686. ## ------------------------------------------ ##
  4687. ## Report this to http://bugzilla.redhat.com/ ##
  4688. ## ------------------------------------------ ##
  4689. _ASBOX
  4690. ) |
  4691. sed "s/^/$as_me: WARNING: /" >&2
  4692. ;;
  4693. esac
  4694. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4695. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4696. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4697. echo $ECHO_N "(cached) $ECHO_C" >&6
  4698. else
  4699. eval "$as_ac_Header=\$ac_header_preproc"
  4700. fi
  4701. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4702. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4703. fi
  4704. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4705. cat >>confdefs.h <<_ACEOF
  4706. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4707. _ACEOF
  4708. fi
  4709. done
  4710. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4711. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4712. (test "X$CXX" != "Xg++"))) ; then
  4713. ac_ext=cc
  4714. ac_cpp='$CXXCPP $CPPFLAGS'
  4715. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4716. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4717. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4718. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4719. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4720. if test -z "$CXXCPP"; then
  4721. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4722. echo $ECHO_N "(cached) $ECHO_C" >&6
  4723. else
  4724. # Double quotes because CXXCPP needs to be expanded
  4725. for CXXCPP in "$CXX -E" "/lib/cpp"
  4726. do
  4727. ac_preproc_ok=false
  4728. for ac_cxx_preproc_warn_flag in '' yes
  4729. do
  4730. # Use a header file that comes with gcc, so configuring glibc
  4731. # with a fresh cross-compiler works.
  4732. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4733. # <limits.h> exists even on freestanding compilers.
  4734. # On the NeXT, cc -E runs the code through the compiler's parser,
  4735. # not just through cpp. "Syntax error" is here to catch this case.
  4736. cat >conftest.$ac_ext <<_ACEOF
  4737. /* confdefs.h. */
  4738. _ACEOF
  4739. cat confdefs.h >>conftest.$ac_ext
  4740. cat >>conftest.$ac_ext <<_ACEOF
  4741. /* end confdefs.h. */
  4742. #ifdef __STDC__
  4743. # include <limits.h>
  4744. #else
  4745. # include <assert.h>
  4746. #endif
  4747. Syntax error
  4748. _ACEOF
  4749. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4750. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4751. ac_status=$?
  4752. grep -v '^ *+' conftest.er1 >conftest.err
  4753. rm -f conftest.er1
  4754. cat conftest.err >&5
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } >/dev/null; then
  4757. if test -s conftest.err; then
  4758. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4759. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4760. else
  4761. ac_cpp_err=
  4762. fi
  4763. else
  4764. ac_cpp_err=yes
  4765. fi
  4766. if test -z "$ac_cpp_err"; then
  4767. :
  4768. else
  4769. echo "$as_me: failed program was:" >&5
  4770. sed 's/^/| /' conftest.$ac_ext >&5
  4771. # Broken: fails on valid input.
  4772. continue
  4773. fi
  4774. rm -f conftest.err conftest.$ac_ext
  4775. # OK, works on sane cases. Now check whether non-existent headers
  4776. # can be detected and how.
  4777. cat >conftest.$ac_ext <<_ACEOF
  4778. /* confdefs.h. */
  4779. _ACEOF
  4780. cat confdefs.h >>conftest.$ac_ext
  4781. cat >>conftest.$ac_ext <<_ACEOF
  4782. /* end confdefs.h. */
  4783. #include <ac_nonexistent.h>
  4784. _ACEOF
  4785. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4786. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4787. ac_status=$?
  4788. grep -v '^ *+' conftest.er1 >conftest.err
  4789. rm -f conftest.er1
  4790. cat conftest.err >&5
  4791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4792. (exit $ac_status); } >/dev/null; then
  4793. if test -s conftest.err; then
  4794. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4795. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4796. else
  4797. ac_cpp_err=
  4798. fi
  4799. else
  4800. ac_cpp_err=yes
  4801. fi
  4802. if test -z "$ac_cpp_err"; then
  4803. # Broken: success on invalid input.
  4804. continue
  4805. else
  4806. echo "$as_me: failed program was:" >&5
  4807. sed 's/^/| /' conftest.$ac_ext >&5
  4808. # Passes both tests.
  4809. ac_preproc_ok=:
  4810. break
  4811. fi
  4812. rm -f conftest.err conftest.$ac_ext
  4813. done
  4814. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4815. rm -f conftest.err conftest.$ac_ext
  4816. if $ac_preproc_ok; then
  4817. break
  4818. fi
  4819. done
  4820. ac_cv_prog_CXXCPP=$CXXCPP
  4821. fi
  4822. CXXCPP=$ac_cv_prog_CXXCPP
  4823. else
  4824. ac_cv_prog_CXXCPP=$CXXCPP
  4825. fi
  4826. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4827. echo "${ECHO_T}$CXXCPP" >&6
  4828. ac_preproc_ok=false
  4829. for ac_cxx_preproc_warn_flag in '' yes
  4830. do
  4831. # Use a header file that comes with gcc, so configuring glibc
  4832. # with a fresh cross-compiler works.
  4833. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4834. # <limits.h> exists even on freestanding compilers.
  4835. # On the NeXT, cc -E runs the code through the compiler's parser,
  4836. # not just through cpp. "Syntax error" is here to catch this case.
  4837. cat >conftest.$ac_ext <<_ACEOF
  4838. /* confdefs.h. */
  4839. _ACEOF
  4840. cat confdefs.h >>conftest.$ac_ext
  4841. cat >>conftest.$ac_ext <<_ACEOF
  4842. /* end confdefs.h. */
  4843. #ifdef __STDC__
  4844. # include <limits.h>
  4845. #else
  4846. # include <assert.h>
  4847. #endif
  4848. Syntax error
  4849. _ACEOF
  4850. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4851. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4852. ac_status=$?
  4853. grep -v '^ *+' conftest.er1 >conftest.err
  4854. rm -f conftest.er1
  4855. cat conftest.err >&5
  4856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4857. (exit $ac_status); } >/dev/null; then
  4858. if test -s conftest.err; then
  4859. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4860. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4861. else
  4862. ac_cpp_err=
  4863. fi
  4864. else
  4865. ac_cpp_err=yes
  4866. fi
  4867. if test -z "$ac_cpp_err"; then
  4868. :
  4869. else
  4870. echo "$as_me: failed program was:" >&5
  4871. sed 's/^/| /' conftest.$ac_ext >&5
  4872. # Broken: fails on valid input.
  4873. continue
  4874. fi
  4875. rm -f conftest.err conftest.$ac_ext
  4876. # OK, works on sane cases. Now check whether non-existent headers
  4877. # can be detected and how.
  4878. cat >conftest.$ac_ext <<_ACEOF
  4879. /* confdefs.h. */
  4880. _ACEOF
  4881. cat confdefs.h >>conftest.$ac_ext
  4882. cat >>conftest.$ac_ext <<_ACEOF
  4883. /* end confdefs.h. */
  4884. #include <ac_nonexistent.h>
  4885. _ACEOF
  4886. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4887. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4888. ac_status=$?
  4889. grep -v '^ *+' conftest.er1 >conftest.err
  4890. rm -f conftest.er1
  4891. cat conftest.err >&5
  4892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4893. (exit $ac_status); } >/dev/null; then
  4894. if test -s conftest.err; then
  4895. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4896. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4897. else
  4898. ac_cpp_err=
  4899. fi
  4900. else
  4901. ac_cpp_err=yes
  4902. fi
  4903. if test -z "$ac_cpp_err"; then
  4904. # Broken: success on invalid input.
  4905. continue
  4906. else
  4907. echo "$as_me: failed program was:" >&5
  4908. sed 's/^/| /' conftest.$ac_ext >&5
  4909. # Passes both tests.
  4910. ac_preproc_ok=:
  4911. break
  4912. fi
  4913. rm -f conftest.err conftest.$ac_ext
  4914. done
  4915. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4916. rm -f conftest.err conftest.$ac_ext
  4917. if $ac_preproc_ok; then
  4918. :
  4919. else
  4920. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4921. See \`config.log' for more details." >&5
  4922. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4923. See \`config.log' for more details." >&2;}
  4924. { (exit 1); exit 1; }; }
  4925. fi
  4926. ac_ext=cc
  4927. ac_cpp='$CXXCPP $CPPFLAGS'
  4928. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4929. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4930. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4931. fi
  4932. ac_ext=f
  4933. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4934. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4935. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4936. if test -n "$ac_tool_prefix"; then
  4937. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4938. do
  4939. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4940. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4941. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4942. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4943. if test "${ac_cv_prog_F77+set}" = set; then
  4944. echo $ECHO_N "(cached) $ECHO_C" >&6
  4945. else
  4946. if test -n "$F77"; then
  4947. ac_cv_prog_F77="$F77" # Let the user override the test.
  4948. else
  4949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4950. for as_dir in $PATH
  4951. do
  4952. IFS=$as_save_IFS
  4953. test -z "$as_dir" && as_dir=.
  4954. for ac_exec_ext in '' $ac_executable_extensions; do
  4955. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4956. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4957. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4958. break 2
  4959. fi
  4960. done
  4961. done
  4962. fi
  4963. fi
  4964. F77=$ac_cv_prog_F77
  4965. if test -n "$F77"; then
  4966. echo "$as_me:$LINENO: result: $F77" >&5
  4967. echo "${ECHO_T}$F77" >&6
  4968. else
  4969. echo "$as_me:$LINENO: result: no" >&5
  4970. echo "${ECHO_T}no" >&6
  4971. fi
  4972. test -n "$F77" && break
  4973. done
  4974. fi
  4975. if test -z "$F77"; then
  4976. ac_ct_F77=$F77
  4977. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4978. do
  4979. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4980. set dummy $ac_prog; ac_word=$2
  4981. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4982. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4983. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4984. echo $ECHO_N "(cached) $ECHO_C" >&6
  4985. else
  4986. if test -n "$ac_ct_F77"; then
  4987. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4988. else
  4989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4990. for as_dir in $PATH
  4991. do
  4992. IFS=$as_save_IFS
  4993. test -z "$as_dir" && as_dir=.
  4994. for ac_exec_ext in '' $ac_executable_extensions; do
  4995. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4996. ac_cv_prog_ac_ct_F77="$ac_prog"
  4997. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4998. break 2
  4999. fi
  5000. done
  5001. done
  5002. fi
  5003. fi
  5004. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5005. if test -n "$ac_ct_F77"; then
  5006. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5007. echo "${ECHO_T}$ac_ct_F77" >&6
  5008. else
  5009. echo "$as_me:$LINENO: result: no" >&5
  5010. echo "${ECHO_T}no" >&6
  5011. fi
  5012. test -n "$ac_ct_F77" && break
  5013. done
  5014. F77=$ac_ct_F77
  5015. fi
  5016. # Provide some information about the compiler.
  5017. echo "$as_me:5543:" \
  5018. "checking for Fortran 77 compiler version" >&5
  5019. ac_compiler=`set X $ac_compile; echo $2`
  5020. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5021. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5022. ac_status=$?
  5023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. (exit $ac_status); }
  5025. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5026. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5027. ac_status=$?
  5028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5029. (exit $ac_status); }
  5030. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5031. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5032. ac_status=$?
  5033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. (exit $ac_status); }
  5035. rm -f a.out
  5036. # If we don't use `.F' as extension, the preprocessor is not run on the
  5037. # input file. (Note that this only needs to work for GNU compilers.)
  5038. ac_save_ext=$ac_ext
  5039. ac_ext=F
  5040. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5041. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  5042. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5043. echo $ECHO_N "(cached) $ECHO_C" >&6
  5044. else
  5045. cat >conftest.$ac_ext <<_ACEOF
  5046. program main
  5047. #ifndef __GNUC__
  5048. choke me
  5049. #endif
  5050. end
  5051. _ACEOF
  5052. rm -f conftest.$ac_objext
  5053. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5054. (eval $ac_compile) 2>conftest.er1
  5055. ac_status=$?
  5056. grep -v '^ *+' conftest.er1 >conftest.err
  5057. rm -f conftest.er1
  5058. cat conftest.err >&5
  5059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5060. (exit $ac_status); } &&
  5061. { ac_try='test -z "$ac_f77_werror_flag"
  5062. || test ! -s conftest.err'
  5063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5064. (eval $ac_try) 2>&5
  5065. ac_status=$?
  5066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5067. (exit $ac_status); }; } &&
  5068. { ac_try='test -s conftest.$ac_objext'
  5069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5070. (eval $ac_try) 2>&5
  5071. ac_status=$?
  5072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5073. (exit $ac_status); }; }; then
  5074. ac_compiler_gnu=yes
  5075. else
  5076. echo "$as_me: failed program was:" >&5
  5077. sed 's/^/| /' conftest.$ac_ext >&5
  5078. ac_compiler_gnu=no
  5079. fi
  5080. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5081. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5082. fi
  5083. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5084. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5085. ac_ext=$ac_save_ext
  5086. ac_test_FFLAGS=${FFLAGS+set}
  5087. ac_save_FFLAGS=$FFLAGS
  5088. FFLAGS=
  5089. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5090. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5091. if test "${ac_cv_prog_f77_g+set}" = set; then
  5092. echo $ECHO_N "(cached) $ECHO_C" >&6
  5093. else
  5094. FFLAGS=-g
  5095. cat >conftest.$ac_ext <<_ACEOF
  5096. program main
  5097. end
  5098. _ACEOF
  5099. rm -f conftest.$ac_objext
  5100. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5101. (eval $ac_compile) 2>conftest.er1
  5102. ac_status=$?
  5103. grep -v '^ *+' conftest.er1 >conftest.err
  5104. rm -f conftest.er1
  5105. cat conftest.err >&5
  5106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5107. (exit $ac_status); } &&
  5108. { ac_try='test -z "$ac_f77_werror_flag"
  5109. || test ! -s conftest.err'
  5110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5111. (eval $ac_try) 2>&5
  5112. ac_status=$?
  5113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5114. (exit $ac_status); }; } &&
  5115. { ac_try='test -s conftest.$ac_objext'
  5116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5117. (eval $ac_try) 2>&5
  5118. ac_status=$?
  5119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5120. (exit $ac_status); }; }; then
  5121. ac_cv_prog_f77_g=yes
  5122. else
  5123. echo "$as_me: failed program was:" >&5
  5124. sed 's/^/| /' conftest.$ac_ext >&5
  5125. ac_cv_prog_f77_g=no
  5126. fi
  5127. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5128. fi
  5129. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5130. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5131. if test "$ac_test_FFLAGS" = set; then
  5132. FFLAGS=$ac_save_FFLAGS
  5133. elif test $ac_cv_prog_f77_g = yes; then
  5134. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5135. FFLAGS="-g -O2"
  5136. else
  5137. FFLAGS="-g"
  5138. fi
  5139. else
  5140. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5141. FFLAGS="-O2"
  5142. else
  5143. FFLAGS=
  5144. fi
  5145. fi
  5146. G77=`test $ac_compiler_gnu = yes && echo yes`
  5147. ac_ext=c
  5148. ac_cpp='$CPP $CPPFLAGS'
  5149. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5150. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5151. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5152. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5153. # find the maximum length of command line arguments
  5154. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5155. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5156. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5157. echo $ECHO_N "(cached) $ECHO_C" >&6
  5158. else
  5159. i=0
  5160. teststring="ABCD"
  5161. case $build_os in
  5162. msdosdjgpp*)
  5163. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5164. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5165. # during glob expansion). Even if it were fixed, the result of this
  5166. # check would be larger than it should be.
  5167. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5168. ;;
  5169. gnu*)
  5170. # Under GNU Hurd, this test is not required because there is
  5171. # no limit to the length of command line arguments.
  5172. # Libtool will interpret -1 as no limit whatsoever
  5173. lt_cv_sys_max_cmd_len=-1;
  5174. ;;
  5175. cygwin* | mingw*)
  5176. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5177. # about 5 minutes as the teststring grows exponentially.
  5178. # Worse, since 9x/ME are not pre-emptively multitasking,
  5179. # you end up with a "frozen" computer, even though with patience
  5180. # the test eventually succeeds (with a max line length of 256k).
  5181. # Instead, let's just punt: use the minimum linelength reported by
  5182. # all of the supported platforms: 8192 (on NT/2K/XP).
  5183. lt_cv_sys_max_cmd_len=8192;
  5184. ;;
  5185. amigaos*)
  5186. # On AmigaOS with pdksh, this test takes hours, literally.
  5187. # So we just punt and use a minimum line length of 8192.
  5188. lt_cv_sys_max_cmd_len=8192;
  5189. ;;
  5190. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5191. # This has been around since 386BSD, at least. Likely further.
  5192. if test -x /sbin/sysctl; then
  5193. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5194. elif test -x /usr/sbin/sysctl; then
  5195. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5196. else
  5197. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5198. fi
  5199. # And add a safety zone
  5200. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5201. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5202. ;;
  5203. interix*)
  5204. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5205. lt_cv_sys_max_cmd_len=196608
  5206. ;;
  5207. osf*)
  5208. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5209. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5210. # nice to cause kernel panics so lets avoid the loop below.
  5211. # First set a reasonable default.
  5212. lt_cv_sys_max_cmd_len=16384
  5213. #
  5214. if test -x /sbin/sysconfig; then
  5215. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5216. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5217. esac
  5218. fi
  5219. ;;
  5220. sco3.2v5*)
  5221. lt_cv_sys_max_cmd_len=102400
  5222. ;;
  5223. sysv5* | sco5v6* | sysv4.2uw2*)
  5224. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5225. if test -n "$kargmax"; then
  5226. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5227. else
  5228. lt_cv_sys_max_cmd_len=32768
  5229. fi
  5230. ;;
  5231. *)
  5232. # If test is not a shell built-in, we'll probably end up computing a
  5233. # maximum length that is only half of the actual maximum length, but
  5234. # we can't tell.
  5235. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5236. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5237. = "XX$teststring") >/dev/null 2>&1 &&
  5238. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5239. lt_cv_sys_max_cmd_len=$new_result &&
  5240. test $i != 17 # 1/2 MB should be enough
  5241. do
  5242. i=`expr $i + 1`
  5243. teststring=$teststring$teststring
  5244. done
  5245. teststring=
  5246. # Add a significant safety factor because C++ compilers can tack on massive
  5247. # amounts of additional arguments before passing them to the linker.
  5248. # It appears as though 1/2 is a usable value.
  5249. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5250. ;;
  5251. esac
  5252. fi
  5253. if test -n $lt_cv_sys_max_cmd_len ; then
  5254. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5255. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5256. else
  5257. echo "$as_me:$LINENO: result: none" >&5
  5258. echo "${ECHO_T}none" >&6
  5259. fi
  5260. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5261. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5262. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5263. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5264. echo $ECHO_N "(cached) $ECHO_C" >&6
  5265. else
  5266. # These are sane defaults that work on at least a few old systems.
  5267. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5268. # Character class describing NM global symbol codes.
  5269. symcode='[BCDEGRST]'
  5270. # Regexp to match symbols that can be accessed directly from C.
  5271. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5272. # Transform an extracted symbol line into a proper C declaration
  5273. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5274. # Transform an extracted symbol line into symbol name and symbol address
  5275. 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'"
  5276. # Define system-specific variables.
  5277. case $host_os in
  5278. aix*)
  5279. symcode='[BCDT]'
  5280. ;;
  5281. cygwin* | mingw* | pw32*)
  5282. symcode='[ABCDGISTW]'
  5283. ;;
  5284. hpux*) # Its linker distinguishes data from code symbols
  5285. if test "$host_cpu" = ia64; then
  5286. symcode='[ABCDEGRST]'
  5287. fi
  5288. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5289. 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'"
  5290. ;;
  5291. linux*)
  5292. if test "$host_cpu" = ia64; then
  5293. symcode='[ABCDGIRSTW]'
  5294. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5295. 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'"
  5296. fi
  5297. ;;
  5298. irix* | nonstopux*)
  5299. symcode='[BCDEGRST]'
  5300. ;;
  5301. osf*)
  5302. symcode='[BCDEGQRST]'
  5303. ;;
  5304. solaris*)
  5305. symcode='[BDRT]'
  5306. ;;
  5307. sco3.2v5*)
  5308. symcode='[DT]'
  5309. ;;
  5310. sysv4.2uw2*)
  5311. symcode='[DT]'
  5312. ;;
  5313. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5314. symcode='[ABDT]'
  5315. ;;
  5316. sysv4)
  5317. symcode='[DFNSTU]'
  5318. ;;
  5319. esac
  5320. # Handle CRLF in mingw tool chain
  5321. opt_cr=
  5322. case $build_os in
  5323. mingw*)
  5324. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5325. ;;
  5326. esac
  5327. # If we're using GNU nm, then use its standard symbol codes.
  5328. case `$NM -V 2>&1` in
  5329. *GNU* | *'with BFD'*)
  5330. symcode='[ABCDGIRSTW]' ;;
  5331. esac
  5332. # Try without a prefix undercore, then with it.
  5333. for ac_symprfx in "" "_"; do
  5334. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5335. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5336. # Write the raw and C identifiers.
  5337. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5338. # Check to see that the pipe works correctly.
  5339. pipe_works=no
  5340. rm -f conftest*
  5341. cat > conftest.$ac_ext <<EOF
  5342. #ifdef __cplusplus
  5343. extern "C" {
  5344. #endif
  5345. char nm_test_var;
  5346. void nm_test_func(){}
  5347. #ifdef __cplusplus
  5348. }
  5349. #endif
  5350. int main(){nm_test_var='a';nm_test_func();return(0);}
  5351. EOF
  5352. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5353. (eval $ac_compile) 2>&5
  5354. ac_status=$?
  5355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5356. (exit $ac_status); }; then
  5357. # Now try to grab the symbols.
  5358. nlist=conftest.nm
  5359. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5360. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5361. ac_status=$?
  5362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5363. (exit $ac_status); } && test -s "$nlist"; then
  5364. # Try sorting and uniquifying the output.
  5365. if sort "$nlist" | uniq > "$nlist"T; then
  5366. mv -f "$nlist"T "$nlist"
  5367. else
  5368. rm -f "$nlist"T
  5369. fi
  5370. # Make sure that we snagged all the symbols we need.
  5371. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5372. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5373. cat <<EOF > conftest.$ac_ext
  5374. #ifdef __cplusplus
  5375. extern "C" {
  5376. #endif
  5377. EOF
  5378. # Now generate the symbol file.
  5379. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5380. cat <<EOF >> conftest.$ac_ext
  5381. #if defined (__STDC__) && __STDC__
  5382. # define lt_ptr_t void *
  5383. #else
  5384. # define lt_ptr_t char *
  5385. # define const
  5386. #endif
  5387. /* The mapping between symbol names and symbols. */
  5388. const struct {
  5389. const char *name;
  5390. lt_ptr_t address;
  5391. }
  5392. lt_preloaded_symbols[] =
  5393. {
  5394. EOF
  5395. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5396. cat <<\EOF >> conftest.$ac_ext
  5397. {0, (lt_ptr_t) 0}
  5398. };
  5399. #ifdef __cplusplus
  5400. }
  5401. #endif
  5402. EOF
  5403. # Now try linking the two files.
  5404. mv conftest.$ac_objext conftstm.$ac_objext
  5405. lt_save_LIBS="$LIBS"
  5406. lt_save_CFLAGS="$CFLAGS"
  5407. LIBS="conftstm.$ac_objext"
  5408. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5409. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5410. (eval $ac_link) 2>&5
  5411. ac_status=$?
  5412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5413. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5414. pipe_works=yes
  5415. fi
  5416. LIBS="$lt_save_LIBS"
  5417. CFLAGS="$lt_save_CFLAGS"
  5418. else
  5419. echo "cannot find nm_test_func in $nlist" >&5
  5420. fi
  5421. else
  5422. echo "cannot find nm_test_var in $nlist" >&5
  5423. fi
  5424. else
  5425. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5426. fi
  5427. else
  5428. echo "$progname: failed program was:" >&5
  5429. cat conftest.$ac_ext >&5
  5430. fi
  5431. rm -f conftest* conftst*
  5432. # Do not use the global_symbol_pipe unless it works.
  5433. if test "$pipe_works" = yes; then
  5434. break
  5435. else
  5436. lt_cv_sys_global_symbol_pipe=
  5437. fi
  5438. done
  5439. fi
  5440. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5441. lt_cv_sys_global_symbol_to_cdecl=
  5442. fi
  5443. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5444. echo "$as_me:$LINENO: result: failed" >&5
  5445. echo "${ECHO_T}failed" >&6
  5446. else
  5447. echo "$as_me:$LINENO: result: ok" >&5
  5448. echo "${ECHO_T}ok" >&6
  5449. fi
  5450. echo "$as_me:$LINENO: checking for objdir" >&5
  5451. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5452. if test "${lt_cv_objdir+set}" = set; then
  5453. echo $ECHO_N "(cached) $ECHO_C" >&6
  5454. else
  5455. rm -f .libs 2>/dev/null
  5456. mkdir .libs 2>/dev/null
  5457. if test -d .libs; then
  5458. lt_cv_objdir=.libs
  5459. else
  5460. # MS-DOS does not allow filenames that begin with a dot.
  5461. lt_cv_objdir=_libs
  5462. fi
  5463. rmdir .libs 2>/dev/null
  5464. fi
  5465. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5466. echo "${ECHO_T}$lt_cv_objdir" >&6
  5467. objdir=$lt_cv_objdir
  5468. case $host_os in
  5469. aix3*)
  5470. # AIX sometimes has problems with the GCC collect2 program. For some
  5471. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5472. # vanish in a puff of smoke.
  5473. if test "X${COLLECT_NAMES+set}" != Xset; then
  5474. COLLECT_NAMES=
  5475. export COLLECT_NAMES
  5476. fi
  5477. ;;
  5478. esac
  5479. # Sed substitution that helps us do robust quoting. It backslashifies
  5480. # metacharacters that are still active within double-quoted strings.
  5481. Xsed='sed -e 1s/^X//'
  5482. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5483. # Same as above, but do not quote variable references.
  5484. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5485. # Sed substitution to delay expansion of an escaped shell variable in a
  5486. # double_quote_subst'ed string.
  5487. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5488. # Sed substitution to avoid accidental globbing in evaled expressions
  5489. no_glob_subst='s/\*/\\\*/g'
  5490. # Constants:
  5491. rm="rm -f"
  5492. # Global variables:
  5493. default_ofile=libtool
  5494. can_build_shared=yes
  5495. # All known linkers require a `.a' archive for static linking (except MSVC,
  5496. # which needs '.lib').
  5497. libext=a
  5498. ltmain="$ac_aux_dir/ltmain.sh"
  5499. ofile="$default_ofile"
  5500. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5501. if test -n "$ac_tool_prefix"; then
  5502. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5503. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5504. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5505. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5506. if test "${ac_cv_prog_AR+set}" = set; then
  5507. echo $ECHO_N "(cached) $ECHO_C" >&6
  5508. else
  5509. if test -n "$AR"; then
  5510. ac_cv_prog_AR="$AR" # Let the user override the test.
  5511. else
  5512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5513. for as_dir in $PATH
  5514. do
  5515. IFS=$as_save_IFS
  5516. test -z "$as_dir" && as_dir=.
  5517. for ac_exec_ext in '' $ac_executable_extensions; do
  5518. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5519. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5520. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5521. break 2
  5522. fi
  5523. done
  5524. done
  5525. fi
  5526. fi
  5527. AR=$ac_cv_prog_AR
  5528. if test -n "$AR"; then
  5529. echo "$as_me:$LINENO: result: $AR" >&5
  5530. echo "${ECHO_T}$AR" >&6
  5531. else
  5532. echo "$as_me:$LINENO: result: no" >&5
  5533. echo "${ECHO_T}no" >&6
  5534. fi
  5535. fi
  5536. if test -z "$ac_cv_prog_AR"; then
  5537. ac_ct_AR=$AR
  5538. # Extract the first word of "ar", so it can be a program name with args.
  5539. set dummy ar; ac_word=$2
  5540. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5541. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5542. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5543. echo $ECHO_N "(cached) $ECHO_C" >&6
  5544. else
  5545. if test -n "$ac_ct_AR"; then
  5546. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. test -z "$as_dir" && as_dir=.
  5553. for ac_exec_ext in '' $ac_executable_extensions; do
  5554. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5555. ac_cv_prog_ac_ct_AR="ar"
  5556. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5557. break 2
  5558. fi
  5559. done
  5560. done
  5561. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5562. fi
  5563. fi
  5564. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5565. if test -n "$ac_ct_AR"; then
  5566. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5567. echo "${ECHO_T}$ac_ct_AR" >&6
  5568. else
  5569. echo "$as_me:$LINENO: result: no" >&5
  5570. echo "${ECHO_T}no" >&6
  5571. fi
  5572. AR=$ac_ct_AR
  5573. else
  5574. AR="$ac_cv_prog_AR"
  5575. fi
  5576. if test -n "$ac_tool_prefix"; then
  5577. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5578. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5579. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5580. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5581. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5582. echo $ECHO_N "(cached) $ECHO_C" >&6
  5583. else
  5584. if test -n "$RANLIB"; then
  5585. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5586. else
  5587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5588. for as_dir in $PATH
  5589. do
  5590. IFS=$as_save_IFS
  5591. test -z "$as_dir" && as_dir=.
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5594. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5595. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. fi
  5601. fi
  5602. RANLIB=$ac_cv_prog_RANLIB
  5603. if test -n "$RANLIB"; then
  5604. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5605. echo "${ECHO_T}$RANLIB" >&6
  5606. else
  5607. echo "$as_me:$LINENO: result: no" >&5
  5608. echo "${ECHO_T}no" >&6
  5609. fi
  5610. fi
  5611. if test -z "$ac_cv_prog_RANLIB"; then
  5612. ac_ct_RANLIB=$RANLIB
  5613. # Extract the first word of "ranlib", so it can be a program name with args.
  5614. set dummy ranlib; ac_word=$2
  5615. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5616. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5617. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5618. echo $ECHO_N "(cached) $ECHO_C" >&6
  5619. else
  5620. if test -n "$ac_ct_RANLIB"; then
  5621. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5622. else
  5623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5624. for as_dir in $PATH
  5625. do
  5626. IFS=$as_save_IFS
  5627. test -z "$as_dir" && as_dir=.
  5628. for ac_exec_ext in '' $ac_executable_extensions; do
  5629. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5630. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5631. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5632. break 2
  5633. fi
  5634. done
  5635. done
  5636. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5637. fi
  5638. fi
  5639. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5640. if test -n "$ac_ct_RANLIB"; then
  5641. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5642. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5643. else
  5644. echo "$as_me:$LINENO: result: no" >&5
  5645. echo "${ECHO_T}no" >&6
  5646. fi
  5647. RANLIB=$ac_ct_RANLIB
  5648. else
  5649. RANLIB="$ac_cv_prog_RANLIB"
  5650. fi
  5651. if test -n "$ac_tool_prefix"; then
  5652. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5653. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5654. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5655. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5656. if test "${ac_cv_prog_STRIP+set}" = set; then
  5657. echo $ECHO_N "(cached) $ECHO_C" >&6
  5658. else
  5659. if test -n "$STRIP"; then
  5660. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5661. else
  5662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663. for as_dir in $PATH
  5664. do
  5665. IFS=$as_save_IFS
  5666. test -z "$as_dir" && as_dir=.
  5667. for ac_exec_ext in '' $ac_executable_extensions; do
  5668. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5669. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5670. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671. break 2
  5672. fi
  5673. done
  5674. done
  5675. fi
  5676. fi
  5677. STRIP=$ac_cv_prog_STRIP
  5678. if test -n "$STRIP"; then
  5679. echo "$as_me:$LINENO: result: $STRIP" >&5
  5680. echo "${ECHO_T}$STRIP" >&6
  5681. else
  5682. echo "$as_me:$LINENO: result: no" >&5
  5683. echo "${ECHO_T}no" >&6
  5684. fi
  5685. fi
  5686. if test -z "$ac_cv_prog_STRIP"; then
  5687. ac_ct_STRIP=$STRIP
  5688. # Extract the first word of "strip", so it can be a program name with args.
  5689. set dummy strip; ac_word=$2
  5690. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5691. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5692. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5693. echo $ECHO_N "(cached) $ECHO_C" >&6
  5694. else
  5695. if test -n "$ac_ct_STRIP"; then
  5696. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5697. else
  5698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5699. for as_dir in $PATH
  5700. do
  5701. IFS=$as_save_IFS
  5702. test -z "$as_dir" && as_dir=.
  5703. for ac_exec_ext in '' $ac_executable_extensions; do
  5704. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5705. ac_cv_prog_ac_ct_STRIP="strip"
  5706. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5707. break 2
  5708. fi
  5709. done
  5710. done
  5711. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5712. fi
  5713. fi
  5714. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5715. if test -n "$ac_ct_STRIP"; then
  5716. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5717. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5718. else
  5719. echo "$as_me:$LINENO: result: no" >&5
  5720. echo "${ECHO_T}no" >&6
  5721. fi
  5722. STRIP=$ac_ct_STRIP
  5723. else
  5724. STRIP="$ac_cv_prog_STRIP"
  5725. fi
  5726. old_CC="$CC"
  5727. old_CFLAGS="$CFLAGS"
  5728. # Set sane defaults for various variables
  5729. test -z "$AR" && AR=ar
  5730. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5731. test -z "$AS" && AS=as
  5732. test -z "$CC" && CC=cc
  5733. test -z "$LTCC" && LTCC=$CC
  5734. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5735. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5736. test -z "$LD" && LD=ld
  5737. test -z "$LN_S" && LN_S="ln -s"
  5738. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5739. test -z "$NM" && NM=nm
  5740. test -z "$SED" && SED=sed
  5741. test -z "$OBJDUMP" && OBJDUMP=objdump
  5742. test -z "$RANLIB" && RANLIB=:
  5743. test -z "$STRIP" && STRIP=:
  5744. test -z "$ac_objext" && ac_objext=o
  5745. # Determine commands to create old-style static archives.
  5746. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5747. old_postinstall_cmds='chmod 644 $oldlib'
  5748. old_postuninstall_cmds=
  5749. if test -n "$RANLIB"; then
  5750. case $host_os in
  5751. openbsd*)
  5752. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5753. ;;
  5754. *)
  5755. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5756. ;;
  5757. esac
  5758. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5759. fi
  5760. for cc_temp in $compiler""; do
  5761. case $cc_temp in
  5762. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5763. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5764. \-*) ;;
  5765. *) break;;
  5766. esac
  5767. done
  5768. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5769. # Only perform the check for file, if the check method requires it
  5770. case $deplibs_check_method in
  5771. file_magic*)
  5772. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5773. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5774. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5775. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5776. echo $ECHO_N "(cached) $ECHO_C" >&6
  5777. else
  5778. case $MAGIC_CMD in
  5779. [\\/*] | ?:[\\/]*)
  5780. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5781. ;;
  5782. *)
  5783. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5784. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5785. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5786. for ac_dir in $ac_dummy; do
  5787. IFS="$lt_save_ifs"
  5788. test -z "$ac_dir" && ac_dir=.
  5789. if test -f $ac_dir/${ac_tool_prefix}file; then
  5790. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5791. if test -n "$file_magic_test_file"; then
  5792. case $deplibs_check_method in
  5793. "file_magic "*)
  5794. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5795. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5796. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5797. $EGREP "$file_magic_regex" > /dev/null; then
  5798. :
  5799. else
  5800. cat <<EOF 1>&2
  5801. *** Warning: the command libtool uses to detect shared libraries,
  5802. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5803. *** The result is that libtool may fail to recognize shared libraries
  5804. *** as such. This will affect the creation of libtool libraries that
  5805. *** depend on shared libraries, but programs linked with such libtool
  5806. *** libraries will work regardless of this problem. Nevertheless, you
  5807. *** may want to report the problem to your system manager and/or to
  5808. *** [email protected]
  5809. EOF
  5810. fi ;;
  5811. esac
  5812. fi
  5813. break
  5814. fi
  5815. done
  5816. IFS="$lt_save_ifs"
  5817. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5818. ;;
  5819. esac
  5820. fi
  5821. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5822. if test -n "$MAGIC_CMD"; then
  5823. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5824. echo "${ECHO_T}$MAGIC_CMD" >&6
  5825. else
  5826. echo "$as_me:$LINENO: result: no" >&5
  5827. echo "${ECHO_T}no" >&6
  5828. fi
  5829. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5830. if test -n "$ac_tool_prefix"; then
  5831. echo "$as_me:$LINENO: checking for file" >&5
  5832. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5833. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5834. echo $ECHO_N "(cached) $ECHO_C" >&6
  5835. else
  5836. case $MAGIC_CMD in
  5837. [\\/*] | ?:[\\/]*)
  5838. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5839. ;;
  5840. *)
  5841. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5842. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5843. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5844. for ac_dir in $ac_dummy; do
  5845. IFS="$lt_save_ifs"
  5846. test -z "$ac_dir" && ac_dir=.
  5847. if test -f $ac_dir/file; then
  5848. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5849. if test -n "$file_magic_test_file"; then
  5850. case $deplibs_check_method in
  5851. "file_magic "*)
  5852. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5853. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5854. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5855. $EGREP "$file_magic_regex" > /dev/null; then
  5856. :
  5857. else
  5858. cat <<EOF 1>&2
  5859. *** Warning: the command libtool uses to detect shared libraries,
  5860. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5861. *** The result is that libtool may fail to recognize shared libraries
  5862. *** as such. This will affect the creation of libtool libraries that
  5863. *** depend on shared libraries, but programs linked with such libtool
  5864. *** libraries will work regardless of this problem. Nevertheless, you
  5865. *** may want to report the problem to your system manager and/or to
  5866. *** [email protected]
  5867. EOF
  5868. fi ;;
  5869. esac
  5870. fi
  5871. break
  5872. fi
  5873. done
  5874. IFS="$lt_save_ifs"
  5875. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5876. ;;
  5877. esac
  5878. fi
  5879. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5880. if test -n "$MAGIC_CMD"; then
  5881. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5882. echo "${ECHO_T}$MAGIC_CMD" >&6
  5883. else
  5884. echo "$as_me:$LINENO: result: no" >&5
  5885. echo "${ECHO_T}no" >&6
  5886. fi
  5887. else
  5888. MAGIC_CMD=:
  5889. fi
  5890. fi
  5891. fi
  5892. ;;
  5893. esac
  5894. enable_dlopen=no
  5895. enable_win32_dll=no
  5896. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5897. if test "${enable_libtool_lock+set}" = set; then
  5898. enableval="$enable_libtool_lock"
  5899. fi;
  5900. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5901. # Check whether --with-pic or --without-pic was given.
  5902. if test "${with_pic+set}" = set; then
  5903. withval="$with_pic"
  5904. pic_mode="$withval"
  5905. else
  5906. pic_mode=default
  5907. fi;
  5908. test -z "$pic_mode" && pic_mode=default
  5909. # Use C for the default configuration in the libtool script
  5910. tagname=
  5911. lt_save_CC="$CC"
  5912. ac_ext=c
  5913. ac_cpp='$CPP $CPPFLAGS'
  5914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5917. # Source file extension for C test sources.
  5918. ac_ext=c
  5919. # Object file extension for compiled C test sources.
  5920. objext=o
  5921. objext=$objext
  5922. # Code to be used in simple compile tests
  5923. lt_simple_compile_test_code="int some_variable = 0;\n"
  5924. # Code to be used in simple link tests
  5925. lt_simple_link_test_code='int main(){return(0);}\n'
  5926. # If no C compiler was specified, use CC.
  5927. LTCC=${LTCC-"$CC"}
  5928. # If no C compiler flags were specified, use CFLAGS.
  5929. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5930. # Allow CC to be a program name with arguments.
  5931. compiler=$CC
  5932. # save warnings/boilerplate of simple test code
  5933. ac_outfile=conftest.$ac_objext
  5934. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5935. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5936. _lt_compiler_boilerplate=`cat conftest.err`
  5937. $rm conftest*
  5938. ac_outfile=conftest.$ac_objext
  5939. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5940. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5941. _lt_linker_boilerplate=`cat conftest.err`
  5942. $rm conftest*
  5943. lt_prog_compiler_no_builtin_flag=
  5944. if test "$GCC" = yes; then
  5945. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5946. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5947. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5948. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5949. echo $ECHO_N "(cached) $ECHO_C" >&6
  5950. else
  5951. lt_cv_prog_compiler_rtti_exceptions=no
  5952. ac_outfile=conftest.$ac_objext
  5953. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5954. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5955. # Insert the option either (1) after the last *FLAGS variable, or
  5956. # (2) before a word containing "conftest.", or (3) at the end.
  5957. # Note that $ac_compile itself does not contain backslashes and begins
  5958. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5959. # The option is referenced via a variable to avoid confusing sed.
  5960. lt_compile=`echo "$ac_compile" | $SED \
  5961. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5962. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5963. -e 's:$: $lt_compiler_flag:'`
  5964. (eval echo "\"\$as_me:6606: $lt_compile\"" >&5)
  5965. (eval "$lt_compile" 2>conftest.err)
  5966. ac_status=$?
  5967. cat conftest.err >&5
  5968. echo "$as_me:6610: \$? = $ac_status" >&5
  5969. if (exit $ac_status) && test -s "$ac_outfile"; then
  5970. # The compiler can only warn and ignore the option if not recognized
  5971. # So say no if there are warnings other than the usual output.
  5972. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5973. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5974. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5975. lt_cv_prog_compiler_rtti_exceptions=yes
  5976. fi
  5977. fi
  5978. $rm conftest*
  5979. fi
  5980. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5981. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5982. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5983. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5984. else
  5985. :
  5986. fi
  5987. fi
  5988. lt_prog_compiler_wl=
  5989. lt_prog_compiler_pic=
  5990. lt_prog_compiler_static=
  5991. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5992. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5993. if test "$GCC" = yes; then
  5994. lt_prog_compiler_wl='-Wl,'
  5995. lt_prog_compiler_static='-static'
  5996. case $host_os in
  5997. aix*)
  5998. # All AIX code is PIC.
  5999. if test "$host_cpu" = ia64; then
  6000. # AIX 5 now supports IA64 processor
  6001. lt_prog_compiler_static='-Bstatic'
  6002. fi
  6003. ;;
  6004. amigaos*)
  6005. # FIXME: we need at least 68020 code to build shared libraries, but
  6006. # adding the `-m68020' flag to GCC prevents building anything better,
  6007. # like `-m68040'.
  6008. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6009. ;;
  6010. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6011. # PIC is the default for these OSes.
  6012. ;;
  6013. mingw* | pw32* | os2*)
  6014. # This hack is so that the source file can tell whether it is being
  6015. # built for inclusion in a dll (and should export symbols for example).
  6016. lt_prog_compiler_pic='-DDLL_EXPORT'
  6017. ;;
  6018. darwin* | rhapsody*)
  6019. # PIC is the default on this platform
  6020. # Common symbols not allowed in MH_DYLIB files
  6021. lt_prog_compiler_pic='-fno-common'
  6022. ;;
  6023. interix3*)
  6024. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6025. # Instead, we relocate shared libraries at runtime.
  6026. ;;
  6027. msdosdjgpp*)
  6028. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6029. # on systems that don't support them.
  6030. lt_prog_compiler_can_build_shared=no
  6031. enable_shared=no
  6032. ;;
  6033. sysv4*MP*)
  6034. if test -d /usr/nec; then
  6035. lt_prog_compiler_pic=-Kconform_pic
  6036. fi
  6037. ;;
  6038. hpux*)
  6039. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6040. # not for PA HP-UX.
  6041. case $host_cpu in
  6042. hppa*64*|ia64*)
  6043. # +Z the default
  6044. ;;
  6045. *)
  6046. lt_prog_compiler_pic='-fPIC'
  6047. ;;
  6048. esac
  6049. ;;
  6050. *)
  6051. lt_prog_compiler_pic='-fPIC'
  6052. ;;
  6053. esac
  6054. else
  6055. # PORTME Check for flag to pass linker flags through the system compiler.
  6056. case $host_os in
  6057. aix*)
  6058. lt_prog_compiler_wl='-Wl,'
  6059. if test "$host_cpu" = ia64; then
  6060. # AIX 5 now supports IA64 processor
  6061. lt_prog_compiler_static='-Bstatic'
  6062. else
  6063. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6064. fi
  6065. ;;
  6066. darwin*)
  6067. # PIC is the default on this platform
  6068. # Common symbols not allowed in MH_DYLIB files
  6069. case $cc_basename in
  6070. xlc*)
  6071. lt_prog_compiler_pic='-qnocommon'
  6072. lt_prog_compiler_wl='-Wl,'
  6073. ;;
  6074. esac
  6075. ;;
  6076. mingw* | pw32* | os2*)
  6077. # This hack is so that the source file can tell whether it is being
  6078. # built for inclusion in a dll (and should export symbols for example).
  6079. lt_prog_compiler_pic='-DDLL_EXPORT'
  6080. ;;
  6081. hpux9* | hpux10* | hpux11*)
  6082. lt_prog_compiler_wl='-Wl,'
  6083. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6084. # not for PA HP-UX.
  6085. case $host_cpu in
  6086. hppa*64*|ia64*)
  6087. # +Z the default
  6088. ;;
  6089. *)
  6090. lt_prog_compiler_pic='+Z'
  6091. ;;
  6092. esac
  6093. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6094. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6095. ;;
  6096. irix5* | irix6* | nonstopux*)
  6097. lt_prog_compiler_wl='-Wl,'
  6098. # PIC (with -KPIC) is the default.
  6099. lt_prog_compiler_static='-non_shared'
  6100. ;;
  6101. newsos6)
  6102. lt_prog_compiler_pic='-KPIC'
  6103. lt_prog_compiler_static='-Bstatic'
  6104. ;;
  6105. linux*)
  6106. case $cc_basename in
  6107. icc* | ecc*)
  6108. lt_prog_compiler_wl='-Wl,'
  6109. lt_prog_compiler_pic='-KPIC'
  6110. lt_prog_compiler_static='-static'
  6111. ;;
  6112. pgcc* | pgf77* | pgf90* | pgf95*)
  6113. # Portland Group compilers (*not* the Pentium gcc compiler,
  6114. # which looks to be a dead project)
  6115. lt_prog_compiler_wl='-Wl,'
  6116. lt_prog_compiler_pic='-fpic'
  6117. lt_prog_compiler_static='-Bstatic'
  6118. ;;
  6119. ccc*)
  6120. lt_prog_compiler_wl='-Wl,'
  6121. # All Alpha code is PIC.
  6122. lt_prog_compiler_static='-non_shared'
  6123. ;;
  6124. esac
  6125. ;;
  6126. osf3* | osf4* | osf5*)
  6127. lt_prog_compiler_wl='-Wl,'
  6128. # All OSF/1 code is PIC.
  6129. lt_prog_compiler_static='-non_shared'
  6130. ;;
  6131. solaris*)
  6132. lt_prog_compiler_pic='-KPIC'
  6133. lt_prog_compiler_static='-Bstatic'
  6134. case $cc_basename in
  6135. f77* | f90* | f95*)
  6136. lt_prog_compiler_wl='-Qoption ld ';;
  6137. *)
  6138. lt_prog_compiler_wl='-Wl,';;
  6139. esac
  6140. ;;
  6141. sunos4*)
  6142. lt_prog_compiler_wl='-Qoption ld '
  6143. lt_prog_compiler_pic='-PIC'
  6144. lt_prog_compiler_static='-Bstatic'
  6145. ;;
  6146. sysv4 | sysv4.2uw2* | sysv4.3*)
  6147. lt_prog_compiler_wl='-Wl,'
  6148. lt_prog_compiler_pic='-KPIC'
  6149. lt_prog_compiler_static='-Bstatic'
  6150. ;;
  6151. sysv4*MP*)
  6152. if test -d /usr/nec ;then
  6153. lt_prog_compiler_pic='-Kconform_pic'
  6154. lt_prog_compiler_static='-Bstatic'
  6155. fi
  6156. ;;
  6157. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6158. lt_prog_compiler_wl='-Wl,'
  6159. lt_prog_compiler_pic='-KPIC'
  6160. lt_prog_compiler_static='-Bstatic'
  6161. ;;
  6162. unicos*)
  6163. lt_prog_compiler_wl='-Wl,'
  6164. lt_prog_compiler_can_build_shared=no
  6165. ;;
  6166. uts4*)
  6167. lt_prog_compiler_pic='-pic'
  6168. lt_prog_compiler_static='-Bstatic'
  6169. ;;
  6170. *)
  6171. lt_prog_compiler_can_build_shared=no
  6172. ;;
  6173. esac
  6174. fi
  6175. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6176. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6177. #
  6178. # Check to make sure the PIC flag actually works.
  6179. #
  6180. if test -n "$lt_prog_compiler_pic"; then
  6181. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6182. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6183. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6184. echo $ECHO_N "(cached) $ECHO_C" >&6
  6185. else
  6186. lt_prog_compiler_pic_works=no
  6187. ac_outfile=conftest.$ac_objext
  6188. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6189. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6190. # Insert the option either (1) after the last *FLAGS variable, or
  6191. # (2) before a word containing "conftest.", or (3) at the end.
  6192. # Note that $ac_compile itself does not contain backslashes and begins
  6193. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6194. # The option is referenced via a variable to avoid confusing sed.
  6195. lt_compile=`echo "$ac_compile" | $SED \
  6196. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6197. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6198. -e 's:$: $lt_compiler_flag:'`
  6199. (eval echo "\"\$as_me:6874: $lt_compile\"" >&5)
  6200. (eval "$lt_compile" 2>conftest.err)
  6201. ac_status=$?
  6202. cat conftest.err >&5
  6203. echo "$as_me:6878: \$? = $ac_status" >&5
  6204. if (exit $ac_status) && test -s "$ac_outfile"; then
  6205. # The compiler can only warn and ignore the option if not recognized
  6206. # So say no if there are warnings other than the usual output.
  6207. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6208. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6209. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6210. lt_prog_compiler_pic_works=yes
  6211. fi
  6212. fi
  6213. $rm conftest*
  6214. fi
  6215. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6216. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6217. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6218. case $lt_prog_compiler_pic in
  6219. "" | " "*) ;;
  6220. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6221. esac
  6222. else
  6223. lt_prog_compiler_pic=
  6224. lt_prog_compiler_can_build_shared=no
  6225. fi
  6226. fi
  6227. case $host_os in
  6228. # For platforms which do not support PIC, -DPIC is meaningless:
  6229. *djgpp*)
  6230. lt_prog_compiler_pic=
  6231. ;;
  6232. *)
  6233. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6234. ;;
  6235. esac
  6236. #
  6237. # Check to make sure the static flag actually works.
  6238. #
  6239. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6240. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6241. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6242. if test "${lt_prog_compiler_static_works+set}" = set; then
  6243. echo $ECHO_N "(cached) $ECHO_C" >&6
  6244. else
  6245. lt_prog_compiler_static_works=no
  6246. save_LDFLAGS="$LDFLAGS"
  6247. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6248. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6249. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6250. # The linker can only warn and ignore the option if not recognized
  6251. # So say no if there are warnings
  6252. if test -s conftest.err; then
  6253. # Append any errors to the config.log.
  6254. cat conftest.err 1>&5
  6255. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6256. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6257. if diff conftest.exp conftest.er2 >/dev/null; then
  6258. lt_prog_compiler_static_works=yes
  6259. fi
  6260. else
  6261. lt_prog_compiler_static_works=yes
  6262. fi
  6263. fi
  6264. $rm conftest*
  6265. LDFLAGS="$save_LDFLAGS"
  6266. fi
  6267. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6268. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6269. if test x"$lt_prog_compiler_static_works" = xyes; then
  6270. :
  6271. else
  6272. lt_prog_compiler_static=
  6273. fi
  6274. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6275. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6276. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6277. echo $ECHO_N "(cached) $ECHO_C" >&6
  6278. else
  6279. lt_cv_prog_compiler_c_o=no
  6280. $rm -r conftest 2>/dev/null
  6281. mkdir conftest
  6282. cd conftest
  6283. mkdir out
  6284. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6285. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6286. # Insert the option either (1) after the last *FLAGS variable, or
  6287. # (2) before a word containing "conftest.", or (3) at the end.
  6288. # Note that $ac_compile itself does not contain backslashes and begins
  6289. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6290. lt_compile=`echo "$ac_compile" | $SED \
  6291. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6292. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6293. -e 's:$: $lt_compiler_flag:'`
  6294. (eval echo "\"\$as_me:6978: $lt_compile\"" >&5)
  6295. (eval "$lt_compile" 2>out/conftest.err)
  6296. ac_status=$?
  6297. cat out/conftest.err >&5
  6298. echo "$as_me:6982: \$? = $ac_status" >&5
  6299. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6300. then
  6301. # The compiler can only warn and ignore the option if not recognized
  6302. # So say no if there are warnings
  6303. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6304. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6305. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6306. lt_cv_prog_compiler_c_o=yes
  6307. fi
  6308. fi
  6309. chmod u+w . 2>&5
  6310. $rm conftest*
  6311. # SGI C++ compiler will create directory out/ii_files/ for
  6312. # template instantiation
  6313. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6314. $rm out/* && rmdir out
  6315. cd ..
  6316. rmdir conftest
  6317. $rm conftest*
  6318. fi
  6319. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6320. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6321. hard_links="nottested"
  6322. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6323. # do not overwrite the value of need_locks provided by the user
  6324. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6325. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6326. hard_links=yes
  6327. $rm conftest*
  6328. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6329. touch conftest.a
  6330. ln conftest.a conftest.b 2>&5 || hard_links=no
  6331. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6332. echo "$as_me:$LINENO: result: $hard_links" >&5
  6333. echo "${ECHO_T}$hard_links" >&6
  6334. if test "$hard_links" = no; then
  6335. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6336. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6337. need_locks=warn
  6338. fi
  6339. else
  6340. need_locks=no
  6341. fi
  6342. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6343. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6344. runpath_var=
  6345. allow_undefined_flag=
  6346. enable_shared_with_static_runtimes=no
  6347. archive_cmds=
  6348. archive_expsym_cmds=
  6349. old_archive_From_new_cmds=
  6350. old_archive_from_expsyms_cmds=
  6351. export_dynamic_flag_spec=
  6352. whole_archive_flag_spec=
  6353. thread_safe_flag_spec=
  6354. hardcode_libdir_flag_spec=
  6355. hardcode_libdir_flag_spec_ld=
  6356. hardcode_libdir_separator=
  6357. hardcode_direct=no
  6358. hardcode_minus_L=no
  6359. hardcode_shlibpath_var=unsupported
  6360. link_all_deplibs=unknown
  6361. hardcode_automatic=no
  6362. module_cmds=
  6363. module_expsym_cmds=
  6364. always_export_symbols=no
  6365. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6366. # include_expsyms should be a list of space-separated symbols to be *always*
  6367. # included in the symbol list
  6368. include_expsyms=
  6369. # exclude_expsyms can be an extended regexp of symbols to exclude
  6370. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6371. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6372. # as well as any symbol that contains `d'.
  6373. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6374. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6375. # platforms (ab)use it in PIC code, but their linkers get confused if
  6376. # the symbol is explicitly referenced. Since portable code cannot
  6377. # rely on this symbol name, it's probably fine to never include it in
  6378. # preloaded symbol tables.
  6379. extract_expsyms_cmds=
  6380. # Just being paranoid about ensuring that cc_basename is set.
  6381. for cc_temp in $compiler""; do
  6382. case $cc_temp in
  6383. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6384. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6385. \-*) ;;
  6386. *) break;;
  6387. esac
  6388. done
  6389. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6390. case $host_os in
  6391. cygwin* | mingw* | pw32*)
  6392. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6393. # When not using gcc, we currently assume that we are using
  6394. # Microsoft Visual C++.
  6395. if test "$GCC" != yes; then
  6396. with_gnu_ld=no
  6397. fi
  6398. ;;
  6399. interix*)
  6400. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6401. with_gnu_ld=yes
  6402. ;;
  6403. openbsd*)
  6404. with_gnu_ld=no
  6405. ;;
  6406. esac
  6407. ld_shlibs=yes
  6408. if test "$with_gnu_ld" = yes; then
  6409. # If archive_cmds runs LD, not CC, wlarc should be empty
  6410. wlarc='${wl}'
  6411. # Set some defaults for GNU ld with shared library support. These
  6412. # are reset later if shared libraries are not supported. Putting them
  6413. # here allows them to be overridden if necessary.
  6414. runpath_var=LD_RUN_PATH
  6415. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6416. export_dynamic_flag_spec='${wl}--export-dynamic'
  6417. # ancient GNU ld didn't support --whole-archive et. al.
  6418. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6419. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6420. else
  6421. whole_archive_flag_spec=
  6422. fi
  6423. supports_anon_versioning=no
  6424. case `$LD -v 2>/dev/null` in
  6425. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6426. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6427. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6428. *\ 2.11.*) ;; # other 2.11 versions
  6429. *) supports_anon_versioning=yes ;;
  6430. esac
  6431. # See if GNU ld supports shared libraries.
  6432. case $host_os in
  6433. aix3* | aix4* | aix5*)
  6434. # On AIX/PPC, the GNU linker is very broken
  6435. if test "$host_cpu" != ia64; then
  6436. ld_shlibs=no
  6437. cat <<EOF 1>&2
  6438. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6439. *** to be unable to reliably create shared libraries on AIX.
  6440. *** Therefore, libtool is disabling shared libraries support. If you
  6441. *** really care for shared libraries, you may want to modify your PATH
  6442. *** so that a non-GNU linker is found, and then restart.
  6443. EOF
  6444. fi
  6445. ;;
  6446. amigaos*)
  6447. 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)'
  6448. hardcode_libdir_flag_spec='-L$libdir'
  6449. hardcode_minus_L=yes
  6450. # Samuel A. Falvo II <[email protected]> reports
  6451. # that the semantics of dynamic libraries on AmigaOS, at least up
  6452. # to version 4, is to share data among multiple programs linked
  6453. # with the same dynamic library. Since this doesn't match the
  6454. # behavior of shared libraries on other platforms, we can't use
  6455. # them.
  6456. ld_shlibs=no
  6457. ;;
  6458. beos*)
  6459. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6460. allow_undefined_flag=unsupported
  6461. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6462. # support --undefined. This deserves some investigation. FIXME
  6463. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6464. else
  6465. ld_shlibs=no
  6466. fi
  6467. ;;
  6468. cygwin* | mingw* | pw32*)
  6469. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6470. # as there is no search path for DLLs.
  6471. hardcode_libdir_flag_spec='-L$libdir'
  6472. allow_undefined_flag=unsupported
  6473. always_export_symbols=no
  6474. enable_shared_with_static_runtimes=yes
  6475. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6476. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6477. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6478. # If the export-symbols file already is a .def file (1st line
  6479. # is EXPORTS), use it as is; otherwise, prepend...
  6480. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6481. cp $export_symbols $output_objdir/$soname.def;
  6482. else
  6483. echo EXPORTS > $output_objdir/$soname.def;
  6484. cat $export_symbols >> $output_objdir/$soname.def;
  6485. fi~
  6486. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6487. else
  6488. ld_shlibs=no
  6489. fi
  6490. ;;
  6491. interix3*)
  6492. hardcode_direct=no
  6493. hardcode_shlibpath_var=no
  6494. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6495. export_dynamic_flag_spec='${wl}-E'
  6496. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6497. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6498. # default) and relocated if they conflict, which is a slow very memory
  6499. # consuming and fragmenting process. To avoid this, we pick a random,
  6500. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6501. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6502. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6503. 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'
  6504. ;;
  6505. linux*)
  6506. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6507. tmp_addflag=
  6508. case $cc_basename,$host_cpu in
  6509. pgcc*) # Portland Group C compiler
  6510. 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'
  6511. tmp_addflag=' $pic_flag'
  6512. ;;
  6513. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6514. 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'
  6515. tmp_addflag=' $pic_flag -Mnomain' ;;
  6516. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6517. tmp_addflag=' -i_dynamic' ;;
  6518. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6519. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6520. ifc* | ifort*) # Intel Fortran compiler
  6521. tmp_addflag=' -nofor_main' ;;
  6522. esac
  6523. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6524. if test $supports_anon_versioning = yes; then
  6525. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6526. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6527. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6528. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6529. fi
  6530. else
  6531. ld_shlibs=no
  6532. fi
  6533. ;;
  6534. netbsd*)
  6535. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6536. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6537. wlarc=
  6538. else
  6539. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6540. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6541. fi
  6542. ;;
  6543. solaris*)
  6544. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6545. ld_shlibs=no
  6546. cat <<EOF 1>&2
  6547. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6548. *** create shared libraries on Solaris systems. Therefore, libtool
  6549. *** is disabling shared libraries support. We urge you to upgrade GNU
  6550. *** binutils to release 2.9.1 or newer. Another option is to modify
  6551. *** your PATH or compiler configuration so that the native linker is
  6552. *** used, and then restart.
  6553. EOF
  6554. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6555. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6556. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6557. else
  6558. ld_shlibs=no
  6559. fi
  6560. ;;
  6561. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6562. case `$LD -v 2>&1` in
  6563. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6564. ld_shlibs=no
  6565. cat <<_LT_EOF 1>&2
  6566. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6567. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6568. *** is disabling shared libraries support. We urge you to upgrade GNU
  6569. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6570. *** your PATH or compiler configuration so that the native linker is
  6571. *** used, and then restart.
  6572. _LT_EOF
  6573. ;;
  6574. *)
  6575. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6576. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6577. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6578. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6579. else
  6580. ld_shlibs=no
  6581. fi
  6582. ;;
  6583. esac
  6584. ;;
  6585. sunos4*)
  6586. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6587. wlarc=
  6588. hardcode_direct=yes
  6589. hardcode_shlibpath_var=no
  6590. ;;
  6591. *)
  6592. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6593. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6594. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6595. else
  6596. ld_shlibs=no
  6597. fi
  6598. ;;
  6599. esac
  6600. if test "$ld_shlibs" = no; then
  6601. runpath_var=
  6602. hardcode_libdir_flag_spec=
  6603. export_dynamic_flag_spec=
  6604. whole_archive_flag_spec=
  6605. fi
  6606. else
  6607. # PORTME fill in a description of your system's linker (not GNU ld)
  6608. case $host_os in
  6609. aix3*)
  6610. allow_undefined_flag=unsupported
  6611. always_export_symbols=yes
  6612. 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'
  6613. # Note: this linker hardcodes the directories in LIBPATH if there
  6614. # are no directories specified by -L.
  6615. hardcode_minus_L=yes
  6616. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6617. # Neither direct hardcoding nor static linking is supported with a
  6618. # broken collect2.
  6619. hardcode_direct=unsupported
  6620. fi
  6621. ;;
  6622. aix4* | aix5*)
  6623. if test "$host_cpu" = ia64; then
  6624. # On IA64, the linker does run time linking by default, so we don't
  6625. # have to do anything special.
  6626. aix_use_runtimelinking=no
  6627. exp_sym_flag='-Bexport'
  6628. no_entry_flag=""
  6629. else
  6630. # If we're using GNU nm, then we don't want the "-C" option.
  6631. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6632. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6633. 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'
  6634. else
  6635. 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'
  6636. fi
  6637. aix_use_runtimelinking=no
  6638. # Test if we are trying to use run time linking or normal
  6639. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6640. # need to do runtime linking.
  6641. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6642. for ld_flag in $LDFLAGS; do
  6643. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6644. aix_use_runtimelinking=yes
  6645. break
  6646. fi
  6647. done
  6648. ;;
  6649. esac
  6650. exp_sym_flag='-bexport'
  6651. no_entry_flag='-bnoentry'
  6652. fi
  6653. # When large executables or shared objects are built, AIX ld can
  6654. # have problems creating the table of contents. If linking a library
  6655. # or program results in "error TOC overflow" add -mminimal-toc to
  6656. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6657. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6658. archive_cmds=''
  6659. hardcode_direct=yes
  6660. hardcode_libdir_separator=':'
  6661. link_all_deplibs=yes
  6662. if test "$GCC" = yes; then
  6663. case $host_os in aix4.[012]|aix4.[012].*)
  6664. # We only want to do this on AIX 4.2 and lower, the check
  6665. # below for broken collect2 doesn't work under 4.3+
  6666. collect2name=`${CC} -print-prog-name=collect2`
  6667. if test -f "$collect2name" && \
  6668. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6669. then
  6670. # We have reworked collect2
  6671. hardcode_direct=yes
  6672. else
  6673. # We have old collect2
  6674. hardcode_direct=unsupported
  6675. # It fails to find uninstalled libraries when the uninstalled
  6676. # path is not listed in the libpath. Setting hardcode_minus_L
  6677. # to unsupported forces relinking
  6678. hardcode_minus_L=yes
  6679. hardcode_libdir_flag_spec='-L$libdir'
  6680. hardcode_libdir_separator=
  6681. fi
  6682. ;;
  6683. esac
  6684. shared_flag='-shared'
  6685. if test "$aix_use_runtimelinking" = yes; then
  6686. shared_flag="$shared_flag "'${wl}-G'
  6687. fi
  6688. else
  6689. # not using gcc
  6690. if test "$host_cpu" = ia64; then
  6691. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6692. # chokes on -Wl,-G. The following line is correct:
  6693. shared_flag='-G'
  6694. else
  6695. if test "$aix_use_runtimelinking" = yes; then
  6696. shared_flag='${wl}-G'
  6697. else
  6698. shared_flag='${wl}-bM:SRE'
  6699. fi
  6700. fi
  6701. fi
  6702. # It seems that -bexpall does not export symbols beginning with
  6703. # underscore (_), so it is better to generate a list of symbols to export.
  6704. always_export_symbols=yes
  6705. if test "$aix_use_runtimelinking" = yes; then
  6706. # Warning - without using the other runtime loading flags (-brtl),
  6707. # -berok will link without error, but may produce a broken library.
  6708. allow_undefined_flag='-berok'
  6709. # Determine the default libpath from the value encoded in an empty executable.
  6710. cat >conftest.$ac_ext <<_ACEOF
  6711. /* confdefs.h. */
  6712. _ACEOF
  6713. cat confdefs.h >>conftest.$ac_ext
  6714. cat >>conftest.$ac_ext <<_ACEOF
  6715. /* end confdefs.h. */
  6716. int
  6717. main ()
  6718. {
  6719. ;
  6720. return 0;
  6721. }
  6722. _ACEOF
  6723. rm -f conftest.$ac_objext conftest$ac_exeext
  6724. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6725. (eval $ac_link) 2>conftest.er1
  6726. ac_status=$?
  6727. grep -v '^ *+' conftest.er1 >conftest.err
  6728. rm -f conftest.er1
  6729. cat conftest.err >&5
  6730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6731. (exit $ac_status); } &&
  6732. { ac_try='test -z "$ac_c_werror_flag"
  6733. || test ! -s conftest.err'
  6734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6735. (eval $ac_try) 2>&5
  6736. ac_status=$?
  6737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6738. (exit $ac_status); }; } &&
  6739. { ac_try='test -s conftest$ac_exeext'
  6740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6741. (eval $ac_try) 2>&5
  6742. ac_status=$?
  6743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6744. (exit $ac_status); }; }; then
  6745. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6746. }'`
  6747. # Check for a 64-bit object if we didn't find anything.
  6748. 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; }
  6749. }'`; fi
  6750. else
  6751. echo "$as_me: failed program was:" >&5
  6752. sed 's/^/| /' conftest.$ac_ext >&5
  6753. fi
  6754. rm -f conftest.err conftest.$ac_objext \
  6755. conftest$ac_exeext conftest.$ac_ext
  6756. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6757. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6758. 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"
  6759. else
  6760. if test "$host_cpu" = ia64; then
  6761. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6762. allow_undefined_flag="-z nodefs"
  6763. 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"
  6764. else
  6765. # Determine the default libpath from the value encoded in an empty executable.
  6766. cat >conftest.$ac_ext <<_ACEOF
  6767. /* confdefs.h. */
  6768. _ACEOF
  6769. cat confdefs.h >>conftest.$ac_ext
  6770. cat >>conftest.$ac_ext <<_ACEOF
  6771. /* end confdefs.h. */
  6772. int
  6773. main ()
  6774. {
  6775. ;
  6776. return 0;
  6777. }
  6778. _ACEOF
  6779. rm -f conftest.$ac_objext conftest$ac_exeext
  6780. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6781. (eval $ac_link) 2>conftest.er1
  6782. ac_status=$?
  6783. grep -v '^ *+' conftest.er1 >conftest.err
  6784. rm -f conftest.er1
  6785. cat conftest.err >&5
  6786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6787. (exit $ac_status); } &&
  6788. { ac_try='test -z "$ac_c_werror_flag"
  6789. || test ! -s conftest.err'
  6790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6791. (eval $ac_try) 2>&5
  6792. ac_status=$?
  6793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6794. (exit $ac_status); }; } &&
  6795. { ac_try='test -s conftest$ac_exeext'
  6796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6797. (eval $ac_try) 2>&5
  6798. ac_status=$?
  6799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6800. (exit $ac_status); }; }; then
  6801. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6802. }'`
  6803. # Check for a 64-bit object if we didn't find anything.
  6804. 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; }
  6805. }'`; fi
  6806. else
  6807. echo "$as_me: failed program was:" >&5
  6808. sed 's/^/| /' conftest.$ac_ext >&5
  6809. fi
  6810. rm -f conftest.err conftest.$ac_objext \
  6811. conftest$ac_exeext conftest.$ac_ext
  6812. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6813. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6814. # Warning - without using the other run time loading flags,
  6815. # -berok will link without error, but may produce a broken library.
  6816. no_undefined_flag=' ${wl}-bernotok'
  6817. allow_undefined_flag=' ${wl}-berok'
  6818. # Exported symbols can be pulled into shared objects from archives
  6819. whole_archive_flag_spec='$convenience'
  6820. archive_cmds_need_lc=yes
  6821. # This is similar to how AIX traditionally builds its shared libraries.
  6822. 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'
  6823. fi
  6824. fi
  6825. ;;
  6826. amigaos*)
  6827. 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)'
  6828. hardcode_libdir_flag_spec='-L$libdir'
  6829. hardcode_minus_L=yes
  6830. # see comment about different semantics on the GNU ld section
  6831. ld_shlibs=no
  6832. ;;
  6833. bsdi[45]*)
  6834. export_dynamic_flag_spec=-rdynamic
  6835. ;;
  6836. cygwin* | mingw* | pw32*)
  6837. # When not using gcc, we currently assume that we are using
  6838. # Microsoft Visual C++.
  6839. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6840. # no search path for DLLs.
  6841. hardcode_libdir_flag_spec=' '
  6842. allow_undefined_flag=unsupported
  6843. # Tell ltmain to make .lib files, not .a files.
  6844. libext=lib
  6845. # Tell ltmain to make .dll files, not .so files.
  6846. shrext_cmds=".dll"
  6847. # FIXME: Setting linknames here is a bad hack.
  6848. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6849. # The linker will automatically build a .lib file if we build a DLL.
  6850. old_archive_From_new_cmds='true'
  6851. # FIXME: Should let the user specify the lib program.
  6852. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6853. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6854. enable_shared_with_static_runtimes=yes
  6855. ;;
  6856. darwin* | rhapsody*)
  6857. case $host_os in
  6858. rhapsody* | darwin1.[012])
  6859. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6860. ;;
  6861. *) # Darwin 1.3 on
  6862. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6863. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6864. else
  6865. case ${MACOSX_DEPLOYMENT_TARGET} in
  6866. 10.[012])
  6867. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6868. ;;
  6869. 10.*)
  6870. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6871. ;;
  6872. esac
  6873. fi
  6874. ;;
  6875. esac
  6876. archive_cmds_need_lc=no
  6877. hardcode_direct=no
  6878. hardcode_automatic=yes
  6879. hardcode_shlibpath_var=unsupported
  6880. whole_archive_flag_spec=''
  6881. link_all_deplibs=yes
  6882. if test "$GCC" = yes ; then
  6883. output_verbose_link_cmd='echo'
  6884. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6885. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6886. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6887. 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}'
  6888. 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}'
  6889. else
  6890. case $cc_basename in
  6891. xlc*)
  6892. output_verbose_link_cmd='echo'
  6893. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6894. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6895. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6896. 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}'
  6897. 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}'
  6898. ;;
  6899. *)
  6900. ld_shlibs=no
  6901. ;;
  6902. esac
  6903. fi
  6904. ;;
  6905. dgux*)
  6906. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6907. hardcode_libdir_flag_spec='-L$libdir'
  6908. hardcode_shlibpath_var=no
  6909. ;;
  6910. freebsd1*)
  6911. ld_shlibs=no
  6912. ;;
  6913. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6914. # support. Future versions do this automatically, but an explicit c++rt0.o
  6915. # does not break anything, and helps significantly (at the cost of a little
  6916. # extra space).
  6917. freebsd2.2*)
  6918. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6919. hardcode_libdir_flag_spec='-R$libdir'
  6920. hardcode_direct=yes
  6921. hardcode_shlibpath_var=no
  6922. ;;
  6923. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6924. freebsd2*)
  6925. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6926. hardcode_direct=yes
  6927. hardcode_minus_L=yes
  6928. hardcode_shlibpath_var=no
  6929. ;;
  6930. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6931. freebsd* | kfreebsd*-gnu | dragonfly*)
  6932. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6933. hardcode_libdir_flag_spec='-R$libdir'
  6934. hardcode_direct=yes
  6935. hardcode_shlibpath_var=no
  6936. ;;
  6937. hpux9*)
  6938. if test "$GCC" = yes; then
  6939. 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'
  6940. else
  6941. 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'
  6942. fi
  6943. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6944. hardcode_libdir_separator=:
  6945. hardcode_direct=yes
  6946. # hardcode_minus_L: Not really in the search PATH,
  6947. # but as the default location of the library.
  6948. hardcode_minus_L=yes
  6949. export_dynamic_flag_spec='${wl}-E'
  6950. ;;
  6951. hpux10*)
  6952. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6953. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6954. else
  6955. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6956. fi
  6957. if test "$with_gnu_ld" = no; then
  6958. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6959. hardcode_libdir_separator=:
  6960. hardcode_direct=yes
  6961. export_dynamic_flag_spec='${wl}-E'
  6962. # hardcode_minus_L: Not really in the search PATH,
  6963. # but as the default location of the library.
  6964. hardcode_minus_L=yes
  6965. fi
  6966. ;;
  6967. hpux11*)
  6968. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6969. case $host_cpu in
  6970. hppa*64*)
  6971. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6972. ;;
  6973. ia64*)
  6974. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6975. ;;
  6976. *)
  6977. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6978. ;;
  6979. esac
  6980. else
  6981. case $host_cpu in
  6982. hppa*64*)
  6983. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6984. ;;
  6985. ia64*)
  6986. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6987. ;;
  6988. *)
  6989. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6990. ;;
  6991. esac
  6992. fi
  6993. if test "$with_gnu_ld" = no; then
  6994. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6995. hardcode_libdir_separator=:
  6996. case $host_cpu in
  6997. hppa*64*|ia64*)
  6998. hardcode_libdir_flag_spec_ld='+b $libdir'
  6999. hardcode_direct=no
  7000. hardcode_shlibpath_var=no
  7001. ;;
  7002. *)
  7003. hardcode_direct=yes
  7004. export_dynamic_flag_spec='${wl}-E'
  7005. # hardcode_minus_L: Not really in the search PATH,
  7006. # but as the default location of the library.
  7007. hardcode_minus_L=yes
  7008. ;;
  7009. esac
  7010. fi
  7011. ;;
  7012. irix5* | irix6* | nonstopux*)
  7013. if test "$GCC" = yes; then
  7014. 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'
  7015. else
  7016. 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'
  7017. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7018. fi
  7019. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7020. hardcode_libdir_separator=:
  7021. link_all_deplibs=yes
  7022. ;;
  7023. netbsd*)
  7024. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7025. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7026. else
  7027. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7028. fi
  7029. hardcode_libdir_flag_spec='-R$libdir'
  7030. hardcode_direct=yes
  7031. hardcode_shlibpath_var=no
  7032. ;;
  7033. newsos6)
  7034. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7035. hardcode_direct=yes
  7036. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7037. hardcode_libdir_separator=:
  7038. hardcode_shlibpath_var=no
  7039. ;;
  7040. openbsd*)
  7041. hardcode_direct=yes
  7042. hardcode_shlibpath_var=no
  7043. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7044. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7045. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7046. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7047. export_dynamic_flag_spec='${wl}-E'
  7048. else
  7049. case $host_os in
  7050. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7051. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7052. hardcode_libdir_flag_spec='-R$libdir'
  7053. ;;
  7054. *)
  7055. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7056. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7057. ;;
  7058. esac
  7059. fi
  7060. ;;
  7061. os2*)
  7062. hardcode_libdir_flag_spec='-L$libdir'
  7063. hardcode_minus_L=yes
  7064. allow_undefined_flag=unsupported
  7065. 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'
  7066. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7067. ;;
  7068. osf3*)
  7069. if test "$GCC" = yes; then
  7070. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7071. 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'
  7072. else
  7073. allow_undefined_flag=' -expect_unresolved \*'
  7074. 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'
  7075. fi
  7076. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7077. hardcode_libdir_separator=:
  7078. ;;
  7079. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7080. if test "$GCC" = yes; then
  7081. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7082. 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'
  7083. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7084. else
  7085. allow_undefined_flag=' -expect_unresolved \*'
  7086. 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'
  7087. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7088. $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'
  7089. # Both c and cxx compiler support -rpath directly
  7090. hardcode_libdir_flag_spec='-rpath $libdir'
  7091. fi
  7092. hardcode_libdir_separator=:
  7093. ;;
  7094. solaris*)
  7095. no_undefined_flag=' -z text'
  7096. if test "$GCC" = yes; then
  7097. wlarc='${wl}'
  7098. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7099. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7100. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7101. else
  7102. wlarc=''
  7103. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7104. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7105. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7106. fi
  7107. hardcode_libdir_flag_spec='-R$libdir'
  7108. hardcode_shlibpath_var=no
  7109. case $host_os in
  7110. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7111. *)
  7112. # The compiler driver will combine linker options so we
  7113. # cannot just pass the convience library names through
  7114. # without $wl, iff we do not link with $LD.
  7115. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7116. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7117. case $wlarc in
  7118. '')
  7119. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7120. *)
  7121. 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' ;;
  7122. esac ;;
  7123. esac
  7124. link_all_deplibs=yes
  7125. ;;
  7126. sunos4*)
  7127. if test "x$host_vendor" = xsequent; then
  7128. # Use $CC to link under sequent, because it throws in some extra .o
  7129. # files that make .init and .fini sections work.
  7130. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7131. else
  7132. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7133. fi
  7134. hardcode_libdir_flag_spec='-L$libdir'
  7135. hardcode_direct=yes
  7136. hardcode_minus_L=yes
  7137. hardcode_shlibpath_var=no
  7138. ;;
  7139. sysv4)
  7140. case $host_vendor in
  7141. sni)
  7142. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7143. hardcode_direct=yes # is this really true???
  7144. ;;
  7145. siemens)
  7146. ## LD is ld it makes a PLAMLIB
  7147. ## CC just makes a GrossModule.
  7148. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7149. reload_cmds='$CC -r -o $output$reload_objs'
  7150. hardcode_direct=no
  7151. ;;
  7152. motorola)
  7153. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7154. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7155. ;;
  7156. esac
  7157. runpath_var='LD_RUN_PATH'
  7158. hardcode_shlibpath_var=no
  7159. ;;
  7160. sysv4.3*)
  7161. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7162. hardcode_shlibpath_var=no
  7163. export_dynamic_flag_spec='-Bexport'
  7164. ;;
  7165. sysv4*MP*)
  7166. if test -d /usr/nec; then
  7167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7168. hardcode_shlibpath_var=no
  7169. runpath_var=LD_RUN_PATH
  7170. hardcode_runpath_var=yes
  7171. ld_shlibs=yes
  7172. fi
  7173. ;;
  7174. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7175. no_undefined_flag='${wl}-z,text'
  7176. archive_cmds_need_lc=no
  7177. hardcode_shlibpath_var=no
  7178. runpath_var='LD_RUN_PATH'
  7179. if test "$GCC" = yes; then
  7180. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7181. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7182. else
  7183. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7184. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7185. fi
  7186. ;;
  7187. sysv5* | sco3.2v5* | sco5v6*)
  7188. # Note: We can NOT use -z defs as we might desire, because we do not
  7189. # link with -lc, and that would cause any symbols used from libc to
  7190. # always be unresolved, which means just about no library would
  7191. # ever link correctly. If we're not using GNU ld we use -z text
  7192. # though, which does catch some bad symbols but isn't as heavy-handed
  7193. # as -z defs.
  7194. no_undefined_flag='${wl}-z,text'
  7195. allow_undefined_flag='${wl}-z,nodefs'
  7196. archive_cmds_need_lc=no
  7197. hardcode_shlibpath_var=no
  7198. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7199. hardcode_libdir_separator=':'
  7200. link_all_deplibs=yes
  7201. export_dynamic_flag_spec='${wl}-Bexport'
  7202. runpath_var='LD_RUN_PATH'
  7203. if test "$GCC" = yes; then
  7204. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7205. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7206. else
  7207. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7208. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7209. fi
  7210. ;;
  7211. uts4*)
  7212. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7213. hardcode_libdir_flag_spec='-L$libdir'
  7214. hardcode_shlibpath_var=no
  7215. ;;
  7216. *)
  7217. ld_shlibs=no
  7218. ;;
  7219. esac
  7220. fi
  7221. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7222. echo "${ECHO_T}$ld_shlibs" >&6
  7223. test "$ld_shlibs" = no && can_build_shared=no
  7224. #
  7225. # Do we need to explicitly link libc?
  7226. #
  7227. case "x$archive_cmds_need_lc" in
  7228. x|xyes)
  7229. # Assume -lc should be added
  7230. archive_cmds_need_lc=yes
  7231. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7232. case $archive_cmds in
  7233. *'~'*)
  7234. # FIXME: we may have to deal with multi-command sequences.
  7235. ;;
  7236. '$CC '*)
  7237. # Test whether the compiler implicitly links with -lc since on some
  7238. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7239. # to ld, don't add -lc before -lgcc.
  7240. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7241. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7242. $rm conftest*
  7243. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7245. (eval $ac_compile) 2>&5
  7246. ac_status=$?
  7247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7248. (exit $ac_status); } 2>conftest.err; then
  7249. soname=conftest
  7250. lib=conftest
  7251. libobjs=conftest.$ac_objext
  7252. deplibs=
  7253. wl=$lt_prog_compiler_wl
  7254. pic_flag=$lt_prog_compiler_pic
  7255. compiler_flags=-v
  7256. linker_flags=-v
  7257. verstring=
  7258. output_objdir=.
  7259. libname=conftest
  7260. lt_save_allow_undefined_flag=$allow_undefined_flag
  7261. allow_undefined_flag=
  7262. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7263. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7264. ac_status=$?
  7265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7266. (exit $ac_status); }
  7267. then
  7268. archive_cmds_need_lc=no
  7269. else
  7270. archive_cmds_need_lc=yes
  7271. fi
  7272. allow_undefined_flag=$lt_save_allow_undefined_flag
  7273. else
  7274. cat conftest.err 1>&5
  7275. fi
  7276. $rm conftest*
  7277. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7278. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7279. ;;
  7280. esac
  7281. fi
  7282. ;;
  7283. esac
  7284. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7285. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7286. library_names_spec=
  7287. libname_spec='lib$name'
  7288. soname_spec=
  7289. shrext_cmds=".so"
  7290. postinstall_cmds=
  7291. postuninstall_cmds=
  7292. finish_cmds=
  7293. finish_eval=
  7294. shlibpath_var=
  7295. shlibpath_overrides_runpath=unknown
  7296. version_type=none
  7297. dynamic_linker="$host_os ld.so"
  7298. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7299. if test "$GCC" = yes; then
  7300. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7301. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7302. # if the path contains ";" then we assume it to be the separator
  7303. # otherwise default to the standard path separator (i.e. ":") - it is
  7304. # assumed that no part of a normal pathname contains ";" but that should
  7305. # okay in the real world where ";" in dirpaths is itself problematic.
  7306. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7307. else
  7308. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7309. fi
  7310. else
  7311. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7312. fi
  7313. need_lib_prefix=unknown
  7314. hardcode_into_libs=no
  7315. # when you set need_version to no, make sure it does not cause -set_version
  7316. # flags to be left without arguments
  7317. need_version=unknown
  7318. case $host_os in
  7319. aix3*)
  7320. version_type=linux
  7321. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7322. shlibpath_var=LIBPATH
  7323. # AIX 3 has no versioning support, so we append a major version to the name.
  7324. soname_spec='${libname}${release}${shared_ext}$major'
  7325. ;;
  7326. aix4* | aix5*)
  7327. version_type=linux
  7328. need_lib_prefix=no
  7329. need_version=no
  7330. hardcode_into_libs=yes
  7331. if test "$host_cpu" = ia64; then
  7332. # AIX 5 supports IA64
  7333. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7334. shlibpath_var=LD_LIBRARY_PATH
  7335. else
  7336. # With GCC up to 2.95.x, collect2 would create an import file
  7337. # for dependence libraries. The import file would start with
  7338. # the line `#! .'. This would cause the generated library to
  7339. # depend on `.', always an invalid library. This was fixed in
  7340. # development snapshots of GCC prior to 3.0.
  7341. case $host_os in
  7342. aix4 | aix4.[01] | aix4.[01].*)
  7343. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7344. echo ' yes '
  7345. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7346. :
  7347. else
  7348. can_build_shared=no
  7349. fi
  7350. ;;
  7351. esac
  7352. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7353. # soname into executable. Probably we can add versioning support to
  7354. # collect2, so additional links can be useful in future.
  7355. if test "$aix_use_runtimelinking" = yes; then
  7356. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7357. # instead of lib<name>.a to let people know that these are not
  7358. # typical AIX shared libraries.
  7359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7360. else
  7361. # We preserve .a as extension for shared libraries through AIX4.2
  7362. # and later when we are not doing run time linking.
  7363. library_names_spec='${libname}${release}.a $libname.a'
  7364. soname_spec='${libname}${release}${shared_ext}$major'
  7365. fi
  7366. shlibpath_var=LIBPATH
  7367. fi
  7368. ;;
  7369. amigaos*)
  7370. library_names_spec='$libname.ixlibrary $libname.a'
  7371. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7372. 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'
  7373. ;;
  7374. beos*)
  7375. library_names_spec='${libname}${shared_ext}'
  7376. dynamic_linker="$host_os ld.so"
  7377. shlibpath_var=LIBRARY_PATH
  7378. ;;
  7379. bsdi[45]*)
  7380. version_type=linux
  7381. need_version=no
  7382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7383. soname_spec='${libname}${release}${shared_ext}$major'
  7384. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7385. shlibpath_var=LD_LIBRARY_PATH
  7386. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7387. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7388. # the default ld.so.conf also contains /usr/contrib/lib and
  7389. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7390. # libtool to hard-code these into programs
  7391. ;;
  7392. cygwin* | mingw* | pw32*)
  7393. version_type=windows
  7394. shrext_cmds=".dll"
  7395. need_version=no
  7396. need_lib_prefix=no
  7397. case $GCC,$host_os in
  7398. yes,cygwin* | yes,mingw* | yes,pw32*)
  7399. library_names_spec='$libname.dll.a'
  7400. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7401. postinstall_cmds='base_file=`basename \${file}`~
  7402. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7403. dldir=$destdir/`dirname \$dlpath`~
  7404. test -d \$dldir || mkdir -p \$dldir~
  7405. $install_prog $dir/$dlname \$dldir/$dlname~
  7406. chmod a+x \$dldir/$dlname'
  7407. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7408. dlpath=$dir/\$dldll~
  7409. $rm \$dlpath'
  7410. shlibpath_overrides_runpath=yes
  7411. case $host_os in
  7412. cygwin*)
  7413. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7414. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7415. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7416. ;;
  7417. mingw*)
  7418. # MinGW DLLs use traditional 'lib' prefix
  7419. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7420. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7421. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7422. # It is most probably a Windows format PATH printed by
  7423. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7424. # path with ; separators, and with drive letters. We can handle the
  7425. # drive letters (cygwin fileutils understands them), so leave them,
  7426. # especially as we might pass files found there to a mingw objdump,
  7427. # which wouldn't understand a cygwinified path. Ahh.
  7428. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7429. else
  7430. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7431. fi
  7432. ;;
  7433. pw32*)
  7434. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7435. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7436. ;;
  7437. esac
  7438. ;;
  7439. *)
  7440. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7441. ;;
  7442. esac
  7443. dynamic_linker='Win32 ld.exe'
  7444. # FIXME: first we should search . and the directory the executable is in
  7445. shlibpath_var=PATH
  7446. ;;
  7447. darwin* | rhapsody*)
  7448. dynamic_linker="$host_os dyld"
  7449. version_type=darwin
  7450. need_lib_prefix=no
  7451. need_version=no
  7452. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7453. soname_spec='${libname}${release}${major}$shared_ext'
  7454. shlibpath_overrides_runpath=yes
  7455. shlibpath_var=DYLD_LIBRARY_PATH
  7456. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7457. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7458. if test "$GCC" = yes; then
  7459. 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"`
  7460. else
  7461. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7462. fi
  7463. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7464. ;;
  7465. dgux*)
  7466. version_type=linux
  7467. need_lib_prefix=no
  7468. need_version=no
  7469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7470. soname_spec='${libname}${release}${shared_ext}$major'
  7471. shlibpath_var=LD_LIBRARY_PATH
  7472. ;;
  7473. freebsd1*)
  7474. dynamic_linker=no
  7475. ;;
  7476. kfreebsd*-gnu)
  7477. version_type=linux
  7478. need_lib_prefix=no
  7479. need_version=no
  7480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7481. soname_spec='${libname}${release}${shared_ext}$major'
  7482. shlibpath_var=LD_LIBRARY_PATH
  7483. shlibpath_overrides_runpath=no
  7484. hardcode_into_libs=yes
  7485. dynamic_linker='GNU ld.so'
  7486. ;;
  7487. freebsd* | dragonfly*)
  7488. # DragonFly does not have aout. When/if they implement a new
  7489. # versioning mechanism, adjust this.
  7490. if test -x /usr/bin/objformat; then
  7491. objformat=`/usr/bin/objformat`
  7492. else
  7493. case $host_os in
  7494. freebsd[123]*) objformat=aout ;;
  7495. *) objformat=elf ;;
  7496. esac
  7497. fi
  7498. version_type=freebsd-$objformat
  7499. case $version_type in
  7500. freebsd-elf*)
  7501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7502. need_version=no
  7503. need_lib_prefix=no
  7504. ;;
  7505. freebsd-*)
  7506. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7507. need_version=yes
  7508. ;;
  7509. esac
  7510. shlibpath_var=LD_LIBRARY_PATH
  7511. case $host_os in
  7512. freebsd2*)
  7513. shlibpath_overrides_runpath=yes
  7514. ;;
  7515. freebsd3.[01]* | freebsdelf3.[01]*)
  7516. shlibpath_overrides_runpath=yes
  7517. hardcode_into_libs=yes
  7518. ;;
  7519. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7520. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7521. shlibpath_overrides_runpath=no
  7522. hardcode_into_libs=yes
  7523. ;;
  7524. freebsd*) # from 4.6 on
  7525. shlibpath_overrides_runpath=yes
  7526. hardcode_into_libs=yes
  7527. ;;
  7528. esac
  7529. ;;
  7530. gnu*)
  7531. version_type=linux
  7532. need_lib_prefix=no
  7533. need_version=no
  7534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7535. soname_spec='${libname}${release}${shared_ext}$major'
  7536. shlibpath_var=LD_LIBRARY_PATH
  7537. hardcode_into_libs=yes
  7538. ;;
  7539. hpux9* | hpux10* | hpux11*)
  7540. # Give a soname corresponding to the major version so that dld.sl refuses to
  7541. # link against other versions.
  7542. version_type=sunos
  7543. need_lib_prefix=no
  7544. need_version=no
  7545. case $host_cpu in
  7546. ia64*)
  7547. shrext_cmds='.so'
  7548. hardcode_into_libs=yes
  7549. dynamic_linker="$host_os dld.so"
  7550. shlibpath_var=LD_LIBRARY_PATH
  7551. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7553. soname_spec='${libname}${release}${shared_ext}$major'
  7554. if test "X$HPUX_IA64_MODE" = X32; then
  7555. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7556. else
  7557. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7558. fi
  7559. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7560. ;;
  7561. hppa*64*)
  7562. shrext_cmds='.sl'
  7563. hardcode_into_libs=yes
  7564. dynamic_linker="$host_os dld.sl"
  7565. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7566. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7568. soname_spec='${libname}${release}${shared_ext}$major'
  7569. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7570. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7571. ;;
  7572. *)
  7573. shrext_cmds='.sl'
  7574. dynamic_linker="$host_os dld.sl"
  7575. shlibpath_var=SHLIB_PATH
  7576. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7578. soname_spec='${libname}${release}${shared_ext}$major'
  7579. ;;
  7580. esac
  7581. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7582. postinstall_cmds='chmod 555 $lib'
  7583. ;;
  7584. interix3*)
  7585. version_type=linux
  7586. need_lib_prefix=no
  7587. need_version=no
  7588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7589. soname_spec='${libname}${release}${shared_ext}$major'
  7590. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7591. shlibpath_var=LD_LIBRARY_PATH
  7592. shlibpath_overrides_runpath=no
  7593. hardcode_into_libs=yes
  7594. ;;
  7595. irix5* | irix6* | nonstopux*)
  7596. case $host_os in
  7597. nonstopux*) version_type=nonstopux ;;
  7598. *)
  7599. if test "$lt_cv_prog_gnu_ld" = yes; then
  7600. version_type=linux
  7601. else
  7602. version_type=irix
  7603. fi ;;
  7604. esac
  7605. need_lib_prefix=no
  7606. need_version=no
  7607. soname_spec='${libname}${release}${shared_ext}$major'
  7608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7609. case $host_os in
  7610. irix5* | nonstopux*)
  7611. libsuff= shlibsuff=
  7612. ;;
  7613. *)
  7614. case $LD in # libtool.m4 will add one of these switches to LD
  7615. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7616. libsuff= shlibsuff= libmagic=32-bit;;
  7617. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7618. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7619. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7620. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7621. *) libsuff= shlibsuff= libmagic=never-match;;
  7622. esac
  7623. ;;
  7624. esac
  7625. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7626. shlibpath_overrides_runpath=no
  7627. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7628. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7629. hardcode_into_libs=yes
  7630. ;;
  7631. # No shared lib support for Linux oldld, aout, or coff.
  7632. linux*oldld* | linux*aout* | linux*coff*)
  7633. dynamic_linker=no
  7634. ;;
  7635. # This must be Linux ELF.
  7636. linux*)
  7637. version_type=linux
  7638. need_lib_prefix=no
  7639. need_version=no
  7640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7641. soname_spec='${libname}${release}${shared_ext}$major'
  7642. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7643. shlibpath_var=LD_LIBRARY_PATH
  7644. shlibpath_overrides_runpath=no
  7645. # This implies no fast_install, which is unacceptable.
  7646. # Some rework will be needed to allow for fast_install
  7647. # before this can be enabled.
  7648. hardcode_into_libs=yes
  7649. # find out which ABI we are using
  7650. libsuff=
  7651. case "$host_cpu" in
  7652. x86_64*|s390x*|powerpc64*)
  7653. echo '#line 8447 "configure"' > conftest.$ac_ext
  7654. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7655. (eval $ac_compile) 2>&5
  7656. ac_status=$?
  7657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. (exit $ac_status); }; then
  7659. case `/usr/bin/file conftest.$ac_objext` in
  7660. *64-bit*)
  7661. libsuff=64
  7662. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7663. ;;
  7664. esac
  7665. fi
  7666. rm -rf conftest*
  7667. ;;
  7668. esac
  7669. # Append ld.so.conf contents to the search path
  7670. if test -f /etc/ld.so.conf; then
  7671. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7672. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7673. fi
  7674. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7675. # powerpc, because MkLinux only supported shared libraries with the
  7676. # GNU dynamic linker. Since this was broken with cross compilers,
  7677. # most powerpc-linux boxes support dynamic linking these days and
  7678. # people can always --disable-shared, the test was removed, and we
  7679. # assume the GNU/Linux dynamic linker is in use.
  7680. dynamic_linker='GNU/Linux ld.so'
  7681. ;;
  7682. knetbsd*-gnu)
  7683. version_type=linux
  7684. need_lib_prefix=no
  7685. need_version=no
  7686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7687. soname_spec='${libname}${release}${shared_ext}$major'
  7688. shlibpath_var=LD_LIBRARY_PATH
  7689. shlibpath_overrides_runpath=no
  7690. hardcode_into_libs=yes
  7691. dynamic_linker='GNU ld.so'
  7692. ;;
  7693. netbsd*)
  7694. version_type=sunos
  7695. need_lib_prefix=no
  7696. need_version=no
  7697. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7699. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7700. dynamic_linker='NetBSD (a.out) ld.so'
  7701. else
  7702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7703. soname_spec='${libname}${release}${shared_ext}$major'
  7704. dynamic_linker='NetBSD ld.elf_so'
  7705. fi
  7706. shlibpath_var=LD_LIBRARY_PATH
  7707. shlibpath_overrides_runpath=yes
  7708. hardcode_into_libs=yes
  7709. ;;
  7710. newsos6)
  7711. version_type=linux
  7712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7713. shlibpath_var=LD_LIBRARY_PATH
  7714. shlibpath_overrides_runpath=yes
  7715. ;;
  7716. nto-qnx*)
  7717. version_type=linux
  7718. need_lib_prefix=no
  7719. need_version=no
  7720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7721. soname_spec='${libname}${release}${shared_ext}$major'
  7722. shlibpath_var=LD_LIBRARY_PATH
  7723. shlibpath_overrides_runpath=yes
  7724. ;;
  7725. openbsd*)
  7726. version_type=sunos
  7727. sys_lib_dlsearch_path_spec="/usr/lib"
  7728. need_lib_prefix=no
  7729. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7730. case $host_os in
  7731. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7732. *) need_version=no ;;
  7733. esac
  7734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7735. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7736. shlibpath_var=LD_LIBRARY_PATH
  7737. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7738. case $host_os in
  7739. openbsd2.[89] | openbsd2.[89].*)
  7740. shlibpath_overrides_runpath=no
  7741. ;;
  7742. *)
  7743. shlibpath_overrides_runpath=yes
  7744. ;;
  7745. esac
  7746. else
  7747. shlibpath_overrides_runpath=yes
  7748. fi
  7749. ;;
  7750. os2*)
  7751. libname_spec='$name'
  7752. shrext_cmds=".dll"
  7753. need_lib_prefix=no
  7754. library_names_spec='$libname${shared_ext} $libname.a'
  7755. dynamic_linker='OS/2 ld.exe'
  7756. shlibpath_var=LIBPATH
  7757. ;;
  7758. osf3* | osf4* | osf5*)
  7759. version_type=osf
  7760. need_lib_prefix=no
  7761. need_version=no
  7762. soname_spec='${libname}${release}${shared_ext}$major'
  7763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7764. shlibpath_var=LD_LIBRARY_PATH
  7765. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7766. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7767. ;;
  7768. solaris*)
  7769. version_type=linux
  7770. need_lib_prefix=no
  7771. need_version=no
  7772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7773. soname_spec='${libname}${release}${shared_ext}$major'
  7774. shlibpath_var=LD_LIBRARY_PATH
  7775. shlibpath_overrides_runpath=yes
  7776. hardcode_into_libs=yes
  7777. # ldd complains unless libraries are executable
  7778. postinstall_cmds='chmod +x $lib'
  7779. ;;
  7780. sunos4*)
  7781. version_type=sunos
  7782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7783. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7784. shlibpath_var=LD_LIBRARY_PATH
  7785. shlibpath_overrides_runpath=yes
  7786. if test "$with_gnu_ld" = yes; then
  7787. need_lib_prefix=no
  7788. fi
  7789. need_version=yes
  7790. ;;
  7791. sysv4 | sysv4.3*)
  7792. version_type=linux
  7793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7794. soname_spec='${libname}${release}${shared_ext}$major'
  7795. shlibpath_var=LD_LIBRARY_PATH
  7796. case $host_vendor in
  7797. sni)
  7798. shlibpath_overrides_runpath=no
  7799. need_lib_prefix=no
  7800. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7801. runpath_var=LD_RUN_PATH
  7802. ;;
  7803. siemens)
  7804. need_lib_prefix=no
  7805. ;;
  7806. motorola)
  7807. need_lib_prefix=no
  7808. need_version=no
  7809. shlibpath_overrides_runpath=no
  7810. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7811. ;;
  7812. esac
  7813. ;;
  7814. sysv4*MP*)
  7815. if test -d /usr/nec ;then
  7816. version_type=linux
  7817. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7818. soname_spec='$libname${shared_ext}.$major'
  7819. shlibpath_var=LD_LIBRARY_PATH
  7820. fi
  7821. ;;
  7822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7823. version_type=freebsd-elf
  7824. need_lib_prefix=no
  7825. need_version=no
  7826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7827. soname_spec='${libname}${release}${shared_ext}$major'
  7828. shlibpath_var=LD_LIBRARY_PATH
  7829. hardcode_into_libs=yes
  7830. if test "$with_gnu_ld" = yes; then
  7831. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7832. shlibpath_overrides_runpath=no
  7833. else
  7834. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7835. shlibpath_overrides_runpath=yes
  7836. case $host_os in
  7837. sco3.2v5*)
  7838. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7839. ;;
  7840. esac
  7841. fi
  7842. sys_lib_dlsearch_path_spec='/usr/lib'
  7843. ;;
  7844. uts4*)
  7845. version_type=linux
  7846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7847. soname_spec='${libname}${release}${shared_ext}$major'
  7848. shlibpath_var=LD_LIBRARY_PATH
  7849. ;;
  7850. *)
  7851. dynamic_linker=no
  7852. ;;
  7853. esac
  7854. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7855. echo "${ECHO_T}$dynamic_linker" >&6
  7856. test "$dynamic_linker" = no && can_build_shared=no
  7857. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7858. if test "$GCC" = yes; then
  7859. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7860. fi
  7861. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7862. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7863. hardcode_action=
  7864. if test -n "$hardcode_libdir_flag_spec" || \
  7865. test -n "$runpath_var" || \
  7866. test "X$hardcode_automatic" = "Xyes" ; then
  7867. # We can hardcode non-existant directories.
  7868. if test "$hardcode_direct" != no &&
  7869. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7870. # have to relink, otherwise we might link with an installed library
  7871. # when we should be linking with a yet-to-be-installed one
  7872. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7873. test "$hardcode_minus_L" != no; then
  7874. # Linking always hardcodes the temporary library directory.
  7875. hardcode_action=relink
  7876. else
  7877. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7878. hardcode_action=immediate
  7879. fi
  7880. else
  7881. # We cannot hardcode anything, or else we can only hardcode existing
  7882. # directories.
  7883. hardcode_action=unsupported
  7884. fi
  7885. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7886. echo "${ECHO_T}$hardcode_action" >&6
  7887. if test "$hardcode_action" = relink; then
  7888. # Fast installation is not supported
  7889. enable_fast_install=no
  7890. elif test "$shlibpath_overrides_runpath" = yes ||
  7891. test "$enable_shared" = no; then
  7892. # Fast installation is not necessary
  7893. enable_fast_install=needless
  7894. fi
  7895. striplib=
  7896. old_striplib=
  7897. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7898. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7899. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7900. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7901. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7902. echo "$as_me:$LINENO: result: yes" >&5
  7903. echo "${ECHO_T}yes" >&6
  7904. else
  7905. # FIXME - insert some real tests, host_os isn't really good enough
  7906. case $host_os in
  7907. darwin*)
  7908. if test -n "$STRIP" ; then
  7909. striplib="$STRIP -x"
  7910. echo "$as_me:$LINENO: result: yes" >&5
  7911. echo "${ECHO_T}yes" >&6
  7912. else
  7913. echo "$as_me:$LINENO: result: no" >&5
  7914. echo "${ECHO_T}no" >&6
  7915. fi
  7916. ;;
  7917. *)
  7918. echo "$as_me:$LINENO: result: no" >&5
  7919. echo "${ECHO_T}no" >&6
  7920. ;;
  7921. esac
  7922. fi
  7923. if test "x$enable_dlopen" != xyes; then
  7924. enable_dlopen=unknown
  7925. enable_dlopen_self=unknown
  7926. enable_dlopen_self_static=unknown
  7927. else
  7928. lt_cv_dlopen=no
  7929. lt_cv_dlopen_libs=
  7930. case $host_os in
  7931. beos*)
  7932. lt_cv_dlopen="load_add_on"
  7933. lt_cv_dlopen_libs=
  7934. lt_cv_dlopen_self=yes
  7935. ;;
  7936. mingw* | pw32*)
  7937. lt_cv_dlopen="LoadLibrary"
  7938. lt_cv_dlopen_libs=
  7939. ;;
  7940. cygwin*)
  7941. lt_cv_dlopen="dlopen"
  7942. lt_cv_dlopen_libs=
  7943. ;;
  7944. darwin*)
  7945. # if libdl is installed we need to link against it
  7946. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7947. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7948. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7949. echo $ECHO_N "(cached) $ECHO_C" >&6
  7950. else
  7951. ac_check_lib_save_LIBS=$LIBS
  7952. LIBS="-ldl $LIBS"
  7953. cat >conftest.$ac_ext <<_ACEOF
  7954. /* confdefs.h. */
  7955. _ACEOF
  7956. cat confdefs.h >>conftest.$ac_ext
  7957. cat >>conftest.$ac_ext <<_ACEOF
  7958. /* end confdefs.h. */
  7959. /* Override any gcc2 internal prototype to avoid an error. */
  7960. #ifdef __cplusplus
  7961. extern "C"
  7962. #endif
  7963. /* We use char because int might match the return type of a gcc2
  7964. builtin and then its argument prototype would still apply. */
  7965. char dlopen ();
  7966. int
  7967. main ()
  7968. {
  7969. dlopen ();
  7970. ;
  7971. return 0;
  7972. }
  7973. _ACEOF
  7974. rm -f conftest.$ac_objext conftest$ac_exeext
  7975. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7976. (eval $ac_link) 2>conftest.er1
  7977. ac_status=$?
  7978. grep -v '^ *+' conftest.er1 >conftest.err
  7979. rm -f conftest.er1
  7980. cat conftest.err >&5
  7981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7982. (exit $ac_status); } &&
  7983. { ac_try='test -z "$ac_c_werror_flag"
  7984. || test ! -s conftest.err'
  7985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7986. (eval $ac_try) 2>&5
  7987. ac_status=$?
  7988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989. (exit $ac_status); }; } &&
  7990. { ac_try='test -s conftest$ac_exeext'
  7991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7992. (eval $ac_try) 2>&5
  7993. ac_status=$?
  7994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7995. (exit $ac_status); }; }; then
  7996. ac_cv_lib_dl_dlopen=yes
  7997. else
  7998. echo "$as_me: failed program was:" >&5
  7999. sed 's/^/| /' conftest.$ac_ext >&5
  8000. ac_cv_lib_dl_dlopen=no
  8001. fi
  8002. rm -f conftest.err conftest.$ac_objext \
  8003. conftest$ac_exeext conftest.$ac_ext
  8004. LIBS=$ac_check_lib_save_LIBS
  8005. fi
  8006. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8007. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8008. if test $ac_cv_lib_dl_dlopen = yes; then
  8009. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8010. else
  8011. lt_cv_dlopen="dyld"
  8012. lt_cv_dlopen_libs=
  8013. lt_cv_dlopen_self=yes
  8014. fi
  8015. ;;
  8016. *)
  8017. echo "$as_me:$LINENO: checking for shl_load" >&5
  8018. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8019. if test "${ac_cv_func_shl_load+set}" = set; then
  8020. echo $ECHO_N "(cached) $ECHO_C" >&6
  8021. else
  8022. cat >conftest.$ac_ext <<_ACEOF
  8023. /* confdefs.h. */
  8024. _ACEOF
  8025. cat confdefs.h >>conftest.$ac_ext
  8026. cat >>conftest.$ac_ext <<_ACEOF
  8027. /* end confdefs.h. */
  8028. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8029. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8030. #define shl_load innocuous_shl_load
  8031. /* System header to define __stub macros and hopefully few prototypes,
  8032. which can conflict with char shl_load (); below.
  8033. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8034. <limits.h> exists even on freestanding compilers. */
  8035. #ifdef __STDC__
  8036. # include <limits.h>
  8037. #else
  8038. # include <assert.h>
  8039. #endif
  8040. #undef shl_load
  8041. /* Override any gcc2 internal prototype to avoid an error. */
  8042. #ifdef __cplusplus
  8043. extern "C"
  8044. {
  8045. #endif
  8046. /* We use char because int might match the return type of a gcc2
  8047. builtin and then its argument prototype would still apply. */
  8048. char shl_load ();
  8049. /* The GNU C library defines this for functions which it implements
  8050. to always fail with ENOSYS. Some functions are actually named
  8051. something starting with __ and the normal name is an alias. */
  8052. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8053. choke me
  8054. #else
  8055. char (*f) () = shl_load;
  8056. #endif
  8057. #ifdef __cplusplus
  8058. }
  8059. #endif
  8060. int
  8061. main ()
  8062. {
  8063. return f != shl_load;
  8064. ;
  8065. return 0;
  8066. }
  8067. _ACEOF
  8068. rm -f conftest.$ac_objext conftest$ac_exeext
  8069. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8070. (eval $ac_link) 2>conftest.er1
  8071. ac_status=$?
  8072. grep -v '^ *+' conftest.er1 >conftest.err
  8073. rm -f conftest.er1
  8074. cat conftest.err >&5
  8075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8076. (exit $ac_status); } &&
  8077. { ac_try='test -z "$ac_c_werror_flag"
  8078. || test ! -s conftest.err'
  8079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8080. (eval $ac_try) 2>&5
  8081. ac_status=$?
  8082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8083. (exit $ac_status); }; } &&
  8084. { ac_try='test -s conftest$ac_exeext'
  8085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8086. (eval $ac_try) 2>&5
  8087. ac_status=$?
  8088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8089. (exit $ac_status); }; }; then
  8090. ac_cv_func_shl_load=yes
  8091. else
  8092. echo "$as_me: failed program was:" >&5
  8093. sed 's/^/| /' conftest.$ac_ext >&5
  8094. ac_cv_func_shl_load=no
  8095. fi
  8096. rm -f conftest.err conftest.$ac_objext \
  8097. conftest$ac_exeext conftest.$ac_ext
  8098. fi
  8099. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8100. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8101. if test $ac_cv_func_shl_load = yes; then
  8102. lt_cv_dlopen="shl_load"
  8103. else
  8104. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8105. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8106. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8107. echo $ECHO_N "(cached) $ECHO_C" >&6
  8108. else
  8109. ac_check_lib_save_LIBS=$LIBS
  8110. LIBS="-ldld $LIBS"
  8111. cat >conftest.$ac_ext <<_ACEOF
  8112. /* confdefs.h. */
  8113. _ACEOF
  8114. cat confdefs.h >>conftest.$ac_ext
  8115. cat >>conftest.$ac_ext <<_ACEOF
  8116. /* end confdefs.h. */
  8117. /* Override any gcc2 internal prototype to avoid an error. */
  8118. #ifdef __cplusplus
  8119. extern "C"
  8120. #endif
  8121. /* We use char because int might match the return type of a gcc2
  8122. builtin and then its argument prototype would still apply. */
  8123. char shl_load ();
  8124. int
  8125. main ()
  8126. {
  8127. shl_load ();
  8128. ;
  8129. return 0;
  8130. }
  8131. _ACEOF
  8132. rm -f conftest.$ac_objext conftest$ac_exeext
  8133. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8134. (eval $ac_link) 2>conftest.er1
  8135. ac_status=$?
  8136. grep -v '^ *+' conftest.er1 >conftest.err
  8137. rm -f conftest.er1
  8138. cat conftest.err >&5
  8139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8140. (exit $ac_status); } &&
  8141. { ac_try='test -z "$ac_c_werror_flag"
  8142. || test ! -s conftest.err'
  8143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8144. (eval $ac_try) 2>&5
  8145. ac_status=$?
  8146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8147. (exit $ac_status); }; } &&
  8148. { ac_try='test -s conftest$ac_exeext'
  8149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8150. (eval $ac_try) 2>&5
  8151. ac_status=$?
  8152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8153. (exit $ac_status); }; }; then
  8154. ac_cv_lib_dld_shl_load=yes
  8155. else
  8156. echo "$as_me: failed program was:" >&5
  8157. sed 's/^/| /' conftest.$ac_ext >&5
  8158. ac_cv_lib_dld_shl_load=no
  8159. fi
  8160. rm -f conftest.err conftest.$ac_objext \
  8161. conftest$ac_exeext conftest.$ac_ext
  8162. LIBS=$ac_check_lib_save_LIBS
  8163. fi
  8164. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8165. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8166. if test $ac_cv_lib_dld_shl_load = yes; then
  8167. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8168. else
  8169. echo "$as_me:$LINENO: checking for dlopen" >&5
  8170. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8171. if test "${ac_cv_func_dlopen+set}" = set; then
  8172. echo $ECHO_N "(cached) $ECHO_C" >&6
  8173. else
  8174. cat >conftest.$ac_ext <<_ACEOF
  8175. /* confdefs.h. */
  8176. _ACEOF
  8177. cat confdefs.h >>conftest.$ac_ext
  8178. cat >>conftest.$ac_ext <<_ACEOF
  8179. /* end confdefs.h. */
  8180. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8181. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8182. #define dlopen innocuous_dlopen
  8183. /* System header to define __stub macros and hopefully few prototypes,
  8184. which can conflict with char dlopen (); below.
  8185. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8186. <limits.h> exists even on freestanding compilers. */
  8187. #ifdef __STDC__
  8188. # include <limits.h>
  8189. #else
  8190. # include <assert.h>
  8191. #endif
  8192. #undef dlopen
  8193. /* Override any gcc2 internal prototype to avoid an error. */
  8194. #ifdef __cplusplus
  8195. extern "C"
  8196. {
  8197. #endif
  8198. /* We use char because int might match the return type of a gcc2
  8199. builtin and then its argument prototype would still apply. */
  8200. char dlopen ();
  8201. /* The GNU C library defines this for functions which it implements
  8202. to always fail with ENOSYS. Some functions are actually named
  8203. something starting with __ and the normal name is an alias. */
  8204. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8205. choke me
  8206. #else
  8207. char (*f) () = dlopen;
  8208. #endif
  8209. #ifdef __cplusplus
  8210. }
  8211. #endif
  8212. int
  8213. main ()
  8214. {
  8215. return f != dlopen;
  8216. ;
  8217. return 0;
  8218. }
  8219. _ACEOF
  8220. rm -f conftest.$ac_objext conftest$ac_exeext
  8221. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8222. (eval $ac_link) 2>conftest.er1
  8223. ac_status=$?
  8224. grep -v '^ *+' conftest.er1 >conftest.err
  8225. rm -f conftest.er1
  8226. cat conftest.err >&5
  8227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8228. (exit $ac_status); } &&
  8229. { ac_try='test -z "$ac_c_werror_flag"
  8230. || test ! -s conftest.err'
  8231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8232. (eval $ac_try) 2>&5
  8233. ac_status=$?
  8234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8235. (exit $ac_status); }; } &&
  8236. { ac_try='test -s conftest$ac_exeext'
  8237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8238. (eval $ac_try) 2>&5
  8239. ac_status=$?
  8240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8241. (exit $ac_status); }; }; then
  8242. ac_cv_func_dlopen=yes
  8243. else
  8244. echo "$as_me: failed program was:" >&5
  8245. sed 's/^/| /' conftest.$ac_ext >&5
  8246. ac_cv_func_dlopen=no
  8247. fi
  8248. rm -f conftest.err conftest.$ac_objext \
  8249. conftest$ac_exeext conftest.$ac_ext
  8250. fi
  8251. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8252. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8253. if test $ac_cv_func_dlopen = yes; then
  8254. lt_cv_dlopen="dlopen"
  8255. else
  8256. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8257. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8258. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8259. echo $ECHO_N "(cached) $ECHO_C" >&6
  8260. else
  8261. ac_check_lib_save_LIBS=$LIBS
  8262. LIBS="-ldl $LIBS"
  8263. cat >conftest.$ac_ext <<_ACEOF
  8264. /* confdefs.h. */
  8265. _ACEOF
  8266. cat confdefs.h >>conftest.$ac_ext
  8267. cat >>conftest.$ac_ext <<_ACEOF
  8268. /* end confdefs.h. */
  8269. /* Override any gcc2 internal prototype to avoid an error. */
  8270. #ifdef __cplusplus
  8271. extern "C"
  8272. #endif
  8273. /* We use char because int might match the return type of a gcc2
  8274. builtin and then its argument prototype would still apply. */
  8275. char dlopen ();
  8276. int
  8277. main ()
  8278. {
  8279. dlopen ();
  8280. ;
  8281. return 0;
  8282. }
  8283. _ACEOF
  8284. rm -f conftest.$ac_objext conftest$ac_exeext
  8285. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8286. (eval $ac_link) 2>conftest.er1
  8287. ac_status=$?
  8288. grep -v '^ *+' conftest.er1 >conftest.err
  8289. rm -f conftest.er1
  8290. cat conftest.err >&5
  8291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8292. (exit $ac_status); } &&
  8293. { ac_try='test -z "$ac_c_werror_flag"
  8294. || test ! -s conftest.err'
  8295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8296. (eval $ac_try) 2>&5
  8297. ac_status=$?
  8298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8299. (exit $ac_status); }; } &&
  8300. { ac_try='test -s conftest$ac_exeext'
  8301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8302. (eval $ac_try) 2>&5
  8303. ac_status=$?
  8304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8305. (exit $ac_status); }; }; then
  8306. ac_cv_lib_dl_dlopen=yes
  8307. else
  8308. echo "$as_me: failed program was:" >&5
  8309. sed 's/^/| /' conftest.$ac_ext >&5
  8310. ac_cv_lib_dl_dlopen=no
  8311. fi
  8312. rm -f conftest.err conftest.$ac_objext \
  8313. conftest$ac_exeext conftest.$ac_ext
  8314. LIBS=$ac_check_lib_save_LIBS
  8315. fi
  8316. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8317. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8318. if test $ac_cv_lib_dl_dlopen = yes; then
  8319. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8320. else
  8321. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8322. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8323. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8324. echo $ECHO_N "(cached) $ECHO_C" >&6
  8325. else
  8326. ac_check_lib_save_LIBS=$LIBS
  8327. LIBS="-lsvld $LIBS"
  8328. cat >conftest.$ac_ext <<_ACEOF
  8329. /* confdefs.h. */
  8330. _ACEOF
  8331. cat confdefs.h >>conftest.$ac_ext
  8332. cat >>conftest.$ac_ext <<_ACEOF
  8333. /* end confdefs.h. */
  8334. /* Override any gcc2 internal prototype to avoid an error. */
  8335. #ifdef __cplusplus
  8336. extern "C"
  8337. #endif
  8338. /* We use char because int might match the return type of a gcc2
  8339. builtin and then its argument prototype would still apply. */
  8340. char dlopen ();
  8341. int
  8342. main ()
  8343. {
  8344. dlopen ();
  8345. ;
  8346. return 0;
  8347. }
  8348. _ACEOF
  8349. rm -f conftest.$ac_objext conftest$ac_exeext
  8350. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8351. (eval $ac_link) 2>conftest.er1
  8352. ac_status=$?
  8353. grep -v '^ *+' conftest.er1 >conftest.err
  8354. rm -f conftest.er1
  8355. cat conftest.err >&5
  8356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8357. (exit $ac_status); } &&
  8358. { ac_try='test -z "$ac_c_werror_flag"
  8359. || test ! -s conftest.err'
  8360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8361. (eval $ac_try) 2>&5
  8362. ac_status=$?
  8363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8364. (exit $ac_status); }; } &&
  8365. { ac_try='test -s conftest$ac_exeext'
  8366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8367. (eval $ac_try) 2>&5
  8368. ac_status=$?
  8369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8370. (exit $ac_status); }; }; then
  8371. ac_cv_lib_svld_dlopen=yes
  8372. else
  8373. echo "$as_me: failed program was:" >&5
  8374. sed 's/^/| /' conftest.$ac_ext >&5
  8375. ac_cv_lib_svld_dlopen=no
  8376. fi
  8377. rm -f conftest.err conftest.$ac_objext \
  8378. conftest$ac_exeext conftest.$ac_ext
  8379. LIBS=$ac_check_lib_save_LIBS
  8380. fi
  8381. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8382. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8383. if test $ac_cv_lib_svld_dlopen = yes; then
  8384. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8385. else
  8386. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8387. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8388. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8389. echo $ECHO_N "(cached) $ECHO_C" >&6
  8390. else
  8391. ac_check_lib_save_LIBS=$LIBS
  8392. LIBS="-ldld $LIBS"
  8393. cat >conftest.$ac_ext <<_ACEOF
  8394. /* confdefs.h. */
  8395. _ACEOF
  8396. cat confdefs.h >>conftest.$ac_ext
  8397. cat >>conftest.$ac_ext <<_ACEOF
  8398. /* end confdefs.h. */
  8399. /* Override any gcc2 internal prototype to avoid an error. */
  8400. #ifdef __cplusplus
  8401. extern "C"
  8402. #endif
  8403. /* We use char because int might match the return type of a gcc2
  8404. builtin and then its argument prototype would still apply. */
  8405. char dld_link ();
  8406. int
  8407. main ()
  8408. {
  8409. dld_link ();
  8410. ;
  8411. return 0;
  8412. }
  8413. _ACEOF
  8414. rm -f conftest.$ac_objext conftest$ac_exeext
  8415. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8416. (eval $ac_link) 2>conftest.er1
  8417. ac_status=$?
  8418. grep -v '^ *+' conftest.er1 >conftest.err
  8419. rm -f conftest.er1
  8420. cat conftest.err >&5
  8421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8422. (exit $ac_status); } &&
  8423. { ac_try='test -z "$ac_c_werror_flag"
  8424. || test ! -s conftest.err'
  8425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8426. (eval $ac_try) 2>&5
  8427. ac_status=$?
  8428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8429. (exit $ac_status); }; } &&
  8430. { ac_try='test -s conftest$ac_exeext'
  8431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8432. (eval $ac_try) 2>&5
  8433. ac_status=$?
  8434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8435. (exit $ac_status); }; }; then
  8436. ac_cv_lib_dld_dld_link=yes
  8437. else
  8438. echo "$as_me: failed program was:" >&5
  8439. sed 's/^/| /' conftest.$ac_ext >&5
  8440. ac_cv_lib_dld_dld_link=no
  8441. fi
  8442. rm -f conftest.err conftest.$ac_objext \
  8443. conftest$ac_exeext conftest.$ac_ext
  8444. LIBS=$ac_check_lib_save_LIBS
  8445. fi
  8446. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8447. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8448. if test $ac_cv_lib_dld_dld_link = yes; then
  8449. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8450. fi
  8451. fi
  8452. fi
  8453. fi
  8454. fi
  8455. fi
  8456. ;;
  8457. esac
  8458. if test "x$lt_cv_dlopen" != xno; then
  8459. enable_dlopen=yes
  8460. else
  8461. enable_dlopen=no
  8462. fi
  8463. case $lt_cv_dlopen in
  8464. dlopen)
  8465. save_CPPFLAGS="$CPPFLAGS"
  8466. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8467. save_LDFLAGS="$LDFLAGS"
  8468. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8469. save_LIBS="$LIBS"
  8470. LIBS="$lt_cv_dlopen_libs $LIBS"
  8471. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8472. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8473. if test "${lt_cv_dlopen_self+set}" = set; then
  8474. echo $ECHO_N "(cached) $ECHO_C" >&6
  8475. else
  8476. if test "$cross_compiling" = yes; then :
  8477. lt_cv_dlopen_self=cross
  8478. else
  8479. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8480. lt_status=$lt_dlunknown
  8481. cat > conftest.$ac_ext <<EOF
  8482. #line 9344 "configure"
  8483. #include "confdefs.h"
  8484. #if HAVE_DLFCN_H
  8485. #include <dlfcn.h>
  8486. #endif
  8487. #include <stdio.h>
  8488. #ifdef RTLD_GLOBAL
  8489. # define LT_DLGLOBAL RTLD_GLOBAL
  8490. #else
  8491. # ifdef DL_GLOBAL
  8492. # define LT_DLGLOBAL DL_GLOBAL
  8493. # else
  8494. # define LT_DLGLOBAL 0
  8495. # endif
  8496. #endif
  8497. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8498. find out it does not work in some platform. */
  8499. #ifndef LT_DLLAZY_OR_NOW
  8500. # ifdef RTLD_LAZY
  8501. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8502. # else
  8503. # ifdef DL_LAZY
  8504. # define LT_DLLAZY_OR_NOW DL_LAZY
  8505. # else
  8506. # ifdef RTLD_NOW
  8507. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8508. # else
  8509. # ifdef DL_NOW
  8510. # define LT_DLLAZY_OR_NOW DL_NOW
  8511. # else
  8512. # define LT_DLLAZY_OR_NOW 0
  8513. # endif
  8514. # endif
  8515. # endif
  8516. # endif
  8517. #endif
  8518. #ifdef __cplusplus
  8519. extern "C" void exit (int);
  8520. #endif
  8521. void fnord() { int i=42;}
  8522. int main ()
  8523. {
  8524. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8525. int status = $lt_dlunknown;
  8526. if (self)
  8527. {
  8528. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8529. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8530. /* dlclose (self); */
  8531. }
  8532. else
  8533. puts (dlerror ());
  8534. exit (status);
  8535. }
  8536. EOF
  8537. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8538. (eval $ac_link) 2>&5
  8539. ac_status=$?
  8540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8541. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8542. (./conftest; exit; ) >&5 2>/dev/null
  8543. lt_status=$?
  8544. case x$lt_status in
  8545. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8546. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8547. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8548. esac
  8549. else :
  8550. # compilation failed
  8551. lt_cv_dlopen_self=no
  8552. fi
  8553. fi
  8554. rm -fr conftest*
  8555. fi
  8556. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8557. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8558. if test "x$lt_cv_dlopen_self" = xyes; then
  8559. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8560. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8561. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8562. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8563. echo $ECHO_N "(cached) $ECHO_C" >&6
  8564. else
  8565. if test "$cross_compiling" = yes; then :
  8566. lt_cv_dlopen_self_static=cross
  8567. else
  8568. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8569. lt_status=$lt_dlunknown
  8570. cat > conftest.$ac_ext <<EOF
  8571. #line 9444 "configure"
  8572. #include "confdefs.h"
  8573. #if HAVE_DLFCN_H
  8574. #include <dlfcn.h>
  8575. #endif
  8576. #include <stdio.h>
  8577. #ifdef RTLD_GLOBAL
  8578. # define LT_DLGLOBAL RTLD_GLOBAL
  8579. #else
  8580. # ifdef DL_GLOBAL
  8581. # define LT_DLGLOBAL DL_GLOBAL
  8582. # else
  8583. # define LT_DLGLOBAL 0
  8584. # endif
  8585. #endif
  8586. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8587. find out it does not work in some platform. */
  8588. #ifndef LT_DLLAZY_OR_NOW
  8589. # ifdef RTLD_LAZY
  8590. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8591. # else
  8592. # ifdef DL_LAZY
  8593. # define LT_DLLAZY_OR_NOW DL_LAZY
  8594. # else
  8595. # ifdef RTLD_NOW
  8596. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8597. # else
  8598. # ifdef DL_NOW
  8599. # define LT_DLLAZY_OR_NOW DL_NOW
  8600. # else
  8601. # define LT_DLLAZY_OR_NOW 0
  8602. # endif
  8603. # endif
  8604. # endif
  8605. # endif
  8606. #endif
  8607. #ifdef __cplusplus
  8608. extern "C" void exit (int);
  8609. #endif
  8610. void fnord() { int i=42;}
  8611. int main ()
  8612. {
  8613. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8614. int status = $lt_dlunknown;
  8615. if (self)
  8616. {
  8617. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8618. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8619. /* dlclose (self); */
  8620. }
  8621. else
  8622. puts (dlerror ());
  8623. exit (status);
  8624. }
  8625. EOF
  8626. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8627. (eval $ac_link) 2>&5
  8628. ac_status=$?
  8629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8630. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8631. (./conftest; exit; ) >&5 2>/dev/null
  8632. lt_status=$?
  8633. case x$lt_status in
  8634. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8635. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8636. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8637. esac
  8638. else :
  8639. # compilation failed
  8640. lt_cv_dlopen_self_static=no
  8641. fi
  8642. fi
  8643. rm -fr conftest*
  8644. fi
  8645. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8646. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8647. fi
  8648. CPPFLAGS="$save_CPPFLAGS"
  8649. LDFLAGS="$save_LDFLAGS"
  8650. LIBS="$save_LIBS"
  8651. ;;
  8652. esac
  8653. case $lt_cv_dlopen_self in
  8654. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8655. *) enable_dlopen_self=unknown ;;
  8656. esac
  8657. case $lt_cv_dlopen_self_static in
  8658. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8659. *) enable_dlopen_self_static=unknown ;;
  8660. esac
  8661. fi
  8662. # Report which library types will actually be built
  8663. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8664. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8665. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8666. echo "${ECHO_T}$can_build_shared" >&6
  8667. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8668. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8669. test "$can_build_shared" = "no" && enable_shared=no
  8670. # On AIX, shared libraries and static libraries use the same namespace, and
  8671. # are all built from PIC.
  8672. case $host_os in
  8673. aix3*)
  8674. test "$enable_shared" = yes && enable_static=no
  8675. if test -n "$RANLIB"; then
  8676. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8677. postinstall_cmds='$RANLIB $lib'
  8678. fi
  8679. ;;
  8680. aix4* | aix5*)
  8681. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8682. test "$enable_shared" = yes && enable_static=no
  8683. fi
  8684. ;;
  8685. esac
  8686. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8687. echo "${ECHO_T}$enable_shared" >&6
  8688. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8689. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8690. # Make sure either enable_shared or enable_static is yes.
  8691. test "$enable_shared" = yes || enable_static=yes
  8692. echo "$as_me:$LINENO: result: $enable_static" >&5
  8693. echo "${ECHO_T}$enable_static" >&6
  8694. # The else clause should only fire when bootstrapping the
  8695. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8696. # with your package, and you will get complaints that there are
  8697. # no rules to generate ltmain.sh.
  8698. if test -f "$ltmain"; then
  8699. # See if we are running on zsh, and set the options which allow our commands through
  8700. # without removal of \ escapes.
  8701. if test -n "${ZSH_VERSION+set}" ; then
  8702. setopt NO_GLOB_SUBST
  8703. fi
  8704. # Now quote all the things that may contain metacharacters while being
  8705. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8706. # variables and quote the copies for generation of the libtool script.
  8707. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8708. SED SHELL STRIP \
  8709. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8710. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8711. deplibs_check_method reload_flag reload_cmds need_locks \
  8712. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8713. lt_cv_sys_global_symbol_to_c_name_address \
  8714. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8715. old_postinstall_cmds old_postuninstall_cmds \
  8716. compiler \
  8717. CC \
  8718. LD \
  8719. lt_prog_compiler_wl \
  8720. lt_prog_compiler_pic \
  8721. lt_prog_compiler_static \
  8722. lt_prog_compiler_no_builtin_flag \
  8723. export_dynamic_flag_spec \
  8724. thread_safe_flag_spec \
  8725. whole_archive_flag_spec \
  8726. enable_shared_with_static_runtimes \
  8727. old_archive_cmds \
  8728. old_archive_from_new_cmds \
  8729. predep_objects \
  8730. postdep_objects \
  8731. predeps \
  8732. postdeps \
  8733. compiler_lib_search_path \
  8734. archive_cmds \
  8735. archive_expsym_cmds \
  8736. postinstall_cmds \
  8737. postuninstall_cmds \
  8738. old_archive_from_expsyms_cmds \
  8739. allow_undefined_flag \
  8740. no_undefined_flag \
  8741. export_symbols_cmds \
  8742. hardcode_libdir_flag_spec \
  8743. hardcode_libdir_flag_spec_ld \
  8744. hardcode_libdir_separator \
  8745. hardcode_automatic \
  8746. module_cmds \
  8747. module_expsym_cmds \
  8748. lt_cv_prog_compiler_c_o \
  8749. exclude_expsyms \
  8750. include_expsyms; do
  8751. case $var in
  8752. old_archive_cmds | \
  8753. old_archive_from_new_cmds | \
  8754. archive_cmds | \
  8755. archive_expsym_cmds | \
  8756. module_cmds | \
  8757. module_expsym_cmds | \
  8758. old_archive_from_expsyms_cmds | \
  8759. export_symbols_cmds | \
  8760. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8761. postinstall_cmds | postuninstall_cmds | \
  8762. old_postinstall_cmds | old_postuninstall_cmds | \
  8763. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8764. # Double-quote double-evaled strings.
  8765. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8766. ;;
  8767. *)
  8768. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8769. ;;
  8770. esac
  8771. done
  8772. case $lt_echo in
  8773. *'\$0 --fallback-echo"')
  8774. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8775. ;;
  8776. esac
  8777. cfgfile="${ofile}T"
  8778. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8779. $rm -f "$cfgfile"
  8780. { echo "$as_me:$LINENO: creating $ofile" >&5
  8781. echo "$as_me: creating $ofile" >&6;}
  8782. cat <<__EOF__ >> "$cfgfile"
  8783. #! $SHELL
  8784. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8785. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8786. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8787. #
  8788. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8789. # Free Software Foundation, Inc.
  8790. #
  8791. # This file is part of GNU Libtool:
  8792. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8793. #
  8794. # This program is free software; you can redistribute it and/or modify
  8795. # it under the terms of the GNU General Public License as published by
  8796. # the Free Software Foundation; either version 2 of the License, or
  8797. # (at your option) any later version.
  8798. #
  8799. # This program is distributed in the hope that it will be useful, but
  8800. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8801. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8802. # General Public License for more details.
  8803. #
  8804. # You should have received a copy of the GNU General Public License
  8805. # along with this program; if not, write to the Free Software
  8806. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8807. #
  8808. # As a special exception to the GNU General Public License, if you
  8809. # distribute this file as part of a program that contains a
  8810. # configuration script generated by Autoconf, you may include it under
  8811. # the same distribution terms that you use for the rest of that program.
  8812. # A sed program that does not truncate output.
  8813. SED=$lt_SED
  8814. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8815. Xsed="$SED -e 1s/^X//"
  8816. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8817. # if CDPATH is set.
  8818. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8819. # The names of the tagged configurations supported by this script.
  8820. available_tags=
  8821. # ### BEGIN LIBTOOL CONFIG
  8822. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8823. # Shell to use when invoking shell scripts.
  8824. SHELL=$lt_SHELL
  8825. # Whether or not to build shared libraries.
  8826. build_libtool_libs=$enable_shared
  8827. # Whether or not to build static libraries.
  8828. build_old_libs=$enable_static
  8829. # Whether or not to add -lc for building shared libraries.
  8830. build_libtool_need_lc=$archive_cmds_need_lc
  8831. # Whether or not to disallow shared libs when runtime libs are static
  8832. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8833. # Whether or not to optimize for fast installation.
  8834. fast_install=$enable_fast_install
  8835. # The host system.
  8836. host_alias=$host_alias
  8837. host=$host
  8838. host_os=$host_os
  8839. # The build system.
  8840. build_alias=$build_alias
  8841. build=$build
  8842. build_os=$build_os
  8843. # An echo program that does not interpret backslashes.
  8844. echo=$lt_echo
  8845. # The archiver.
  8846. AR=$lt_AR
  8847. AR_FLAGS=$lt_AR_FLAGS
  8848. # A C compiler.
  8849. LTCC=$lt_LTCC
  8850. # LTCC compiler flags.
  8851. LTCFLAGS=$lt_LTCFLAGS
  8852. # A language-specific compiler.
  8853. CC=$lt_compiler
  8854. # Is the compiler the GNU C compiler?
  8855. with_gcc=$GCC
  8856. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  8857. gcc_ver=\`gcc -dumpversion\`
  8858. # An ERE matcher.
  8859. EGREP=$lt_EGREP
  8860. # The linker used to build libraries.
  8861. LD=$lt_LD
  8862. # Whether we need hard or soft links.
  8863. LN_S=$lt_LN_S
  8864. # A BSD-compatible nm program.
  8865. NM=$lt_NM
  8866. # A symbol stripping program
  8867. STRIP=$lt_STRIP
  8868. # Used to examine libraries when file_magic_cmd begins "file"
  8869. MAGIC_CMD=$MAGIC_CMD
  8870. # Used on cygwin: DLL creation program.
  8871. DLLTOOL="$DLLTOOL"
  8872. # Used on cygwin: object dumper.
  8873. OBJDUMP="$OBJDUMP"
  8874. # Used on cygwin: assembler.
  8875. AS="$AS"
  8876. # The name of the directory that contains temporary libtool files.
  8877. objdir=$objdir
  8878. # How to create reloadable object files.
  8879. reload_flag=$lt_reload_flag
  8880. reload_cmds=$lt_reload_cmds
  8881. # How to pass a linker flag through the compiler.
  8882. wl=$lt_lt_prog_compiler_wl
  8883. # Object file suffix (normally "o").
  8884. objext="$ac_objext"
  8885. # Old archive suffix (normally "a").
  8886. libext="$libext"
  8887. # Shared library suffix (normally ".so").
  8888. shrext_cmds='$shrext_cmds'
  8889. # Executable file suffix (normally "").
  8890. exeext="$exeext"
  8891. # Additional compiler flags for building library objects.
  8892. pic_flag=$lt_lt_prog_compiler_pic
  8893. pic_mode=$pic_mode
  8894. # What is the maximum length of a command?
  8895. max_cmd_len=$lt_cv_sys_max_cmd_len
  8896. # Does compiler simultaneously support -c and -o options?
  8897. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8898. # Must we lock files when doing compilation?
  8899. need_locks=$lt_need_locks
  8900. # Do we need the lib prefix for modules?
  8901. need_lib_prefix=$need_lib_prefix
  8902. # Do we need a version for libraries?
  8903. need_version=$need_version
  8904. # Whether dlopen is supported.
  8905. dlopen_support=$enable_dlopen
  8906. # Whether dlopen of programs is supported.
  8907. dlopen_self=$enable_dlopen_self
  8908. # Whether dlopen of statically linked programs is supported.
  8909. dlopen_self_static=$enable_dlopen_self_static
  8910. # Compiler flag to prevent dynamic linking.
  8911. link_static_flag=$lt_lt_prog_compiler_static
  8912. # Compiler flag to turn off builtin functions.
  8913. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8914. # Compiler flag to allow reflexive dlopens.
  8915. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8916. # Compiler flag to generate shared objects directly from archives.
  8917. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8918. # Compiler flag to generate thread-safe objects.
  8919. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8920. # Library versioning type.
  8921. version_type=$version_type
  8922. # Format of library name prefix.
  8923. libname_spec=$lt_libname_spec
  8924. # List of archive names. First name is the real one, the rest are links.
  8925. # The last name is the one that the linker finds with -lNAME.
  8926. library_names_spec=$lt_library_names_spec
  8927. # The coded name of the library, if different from the real name.
  8928. soname_spec=$lt_soname_spec
  8929. # Commands used to build and install an old-style archive.
  8930. RANLIB=$lt_RANLIB
  8931. old_archive_cmds=$lt_old_archive_cmds
  8932. old_postinstall_cmds=$lt_old_postinstall_cmds
  8933. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8934. # Create an old-style archive from a shared archive.
  8935. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8936. # Create a temporary old-style archive to link instead of a shared archive.
  8937. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8938. # Commands used to build and install a shared archive.
  8939. archive_cmds=$lt_archive_cmds
  8940. archive_expsym_cmds=$lt_archive_expsym_cmds
  8941. postinstall_cmds=$lt_postinstall_cmds
  8942. postuninstall_cmds=$lt_postuninstall_cmds
  8943. # Commands used to build a loadable module (assumed same as above if empty)
  8944. module_cmds=$lt_module_cmds
  8945. module_expsym_cmds=$lt_module_expsym_cmds
  8946. # Commands to strip libraries.
  8947. old_striplib=$lt_old_striplib
  8948. striplib=$lt_striplib
  8949. # Dependencies to place before the objects being linked to create a
  8950. # shared library.
  8951. predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8952. # Dependencies to place after the objects being linked to create a
  8953. # shared library.
  8954. postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8955. # Dependencies to place before the objects being linked to create a
  8956. # shared library.
  8957. predeps=$lt_predeps
  8958. # Dependencies to place after the objects being linked to create a
  8959. # shared library.
  8960. postdeps=$lt_postdeps
  8961. # The library search path used internally by the compiler when linking
  8962. # a shared library.
  8963. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8964. # Method to check whether dependent libraries are shared objects.
  8965. deplibs_check_method=$lt_deplibs_check_method
  8966. # Command to use when deplibs_check_method == file_magic.
  8967. file_magic_cmd=$lt_file_magic_cmd
  8968. # Flag that allows shared libraries with undefined symbols to be built.
  8969. allow_undefined_flag=$lt_allow_undefined_flag
  8970. # Flag that forces no undefined symbols.
  8971. no_undefined_flag=$lt_no_undefined_flag
  8972. # Commands used to finish a libtool library installation in a directory.
  8973. finish_cmds=$lt_finish_cmds
  8974. # Same as above, but a single script fragment to be evaled but not shown.
  8975. finish_eval=$lt_finish_eval
  8976. # Take the output of nm and produce a listing of raw symbols and C names.
  8977. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8978. # Transform the output of nm in a proper C declaration
  8979. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8980. # Transform the output of nm in a C name address pair
  8981. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8982. # This is the shared library runtime path variable.
  8983. runpath_var=$runpath_var
  8984. # This is the shared library path variable.
  8985. shlibpath_var=$shlibpath_var
  8986. # Is shlibpath searched before the hard-coded library search path?
  8987. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8988. # How to hardcode a shared library path into an executable.
  8989. hardcode_action=$hardcode_action
  8990. # Whether we should hardcode library paths into libraries.
  8991. hardcode_into_libs=$hardcode_into_libs
  8992. # Flag to hardcode \$libdir into a binary during linking.
  8993. # This must work even if \$libdir does not exist.
  8994. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8995. # If ld is used when linking, flag to hardcode \$libdir into
  8996. # a binary during linking. This must work even if \$libdir does
  8997. # not exist.
  8998. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8999. # Whether we need a single -rpath flag with a separated argument.
  9000. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9001. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9002. # resulting binary.
  9003. hardcode_direct=$hardcode_direct
  9004. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9005. # resulting binary.
  9006. hardcode_minus_L=$hardcode_minus_L
  9007. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9008. # the resulting binary.
  9009. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9010. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9011. # and all subsequent libraries and executables linked against it.
  9012. hardcode_automatic=$hardcode_automatic
  9013. # Variables whose values should be saved in libtool wrapper scripts and
  9014. # restored at relink time.
  9015. variables_saved_for_relink="$variables_saved_for_relink"
  9016. # Whether libtool must link a program against all its dependency libraries.
  9017. link_all_deplibs=$link_all_deplibs
  9018. # Compile-time system search path for libraries
  9019. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  9020. # Run-time system search path for libraries
  9021. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9022. # Fix the shell variable \$srcfile for the compiler.
  9023. fix_srcfile_path="$fix_srcfile_path"
  9024. # Set to yes if exported symbols are required.
  9025. always_export_symbols=$always_export_symbols
  9026. # The commands to list exported symbols.
  9027. export_symbols_cmds=$lt_export_symbols_cmds
  9028. # The commands to extract the exported symbol list from a shared archive.
  9029. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9030. # Symbols that should not be listed in the preloaded symbols.
  9031. exclude_expsyms=$lt_exclude_expsyms
  9032. # Symbols that must always be exported.
  9033. include_expsyms=$lt_include_expsyms
  9034. # ### END LIBTOOL CONFIG
  9035. __EOF__
  9036. case $host_os in
  9037. aix3*)
  9038. cat <<\EOF >> "$cfgfile"
  9039. # AIX sometimes has problems with the GCC collect2 program. For some
  9040. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9041. # vanish in a puff of smoke.
  9042. if test "X${COLLECT_NAMES+set}" != Xset; then
  9043. COLLECT_NAMES=
  9044. export COLLECT_NAMES
  9045. fi
  9046. EOF
  9047. ;;
  9048. esac
  9049. # We use sed instead of cat because bash on DJGPP gets confused if
  9050. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9051. # text mode, it properly converts lines to CR/LF. This bash problem
  9052. # is reportedly fixed, but why not run on old versions too?
  9053. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9054. mv -f "$cfgfile" "$ofile" || \
  9055. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9056. chmod +x "$ofile"
  9057. else
  9058. # If there is no Makefile yet, we rely on a make rule to execute
  9059. # `config.status --recheck' to rerun these tests and create the
  9060. # libtool script then.
  9061. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9062. if test -f "$ltmain_in"; then
  9063. test -f Makefile && make "$ltmain"
  9064. fi
  9065. fi
  9066. ac_ext=c
  9067. ac_cpp='$CPP $CPPFLAGS'
  9068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9071. CC="$lt_save_CC"
  9072. # Check whether --with-tags or --without-tags was given.
  9073. if test "${with_tags+set}" = set; then
  9074. withval="$with_tags"
  9075. tagnames="$withval"
  9076. fi;
  9077. if test -f "$ltmain" && test -n "$tagnames"; then
  9078. if test ! -f "${ofile}"; then
  9079. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9080. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9081. fi
  9082. if test -z "$LTCC"; then
  9083. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9084. if test -z "$LTCC"; then
  9085. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9086. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9087. else
  9088. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9089. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9090. fi
  9091. fi
  9092. if test -z "$LTCFLAGS"; then
  9093. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9094. fi
  9095. # Extract list of available tagged configurations in $ofile.
  9096. # Note that this assumes the entire list is on one line.
  9097. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9098. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9099. for tagname in $tagnames; do
  9100. IFS="$lt_save_ifs"
  9101. # Check whether tagname contains only valid characters
  9102. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9103. "") ;;
  9104. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9105. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9106. { (exit 1); exit 1; }; }
  9107. ;;
  9108. esac
  9109. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9110. then
  9111. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9112. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9113. { (exit 1); exit 1; }; }
  9114. fi
  9115. # Update the list of available tags.
  9116. if test -n "$tagname"; then
  9117. echo appending configuration tag \"$tagname\" to $ofile
  9118. case $tagname in
  9119. CXX)
  9120. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9121. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9122. (test "X$CXX" != "Xg++"))) ; then
  9123. ac_ext=cc
  9124. ac_cpp='$CXXCPP $CPPFLAGS'
  9125. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9126. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9127. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9128. archive_cmds_need_lc_CXX=no
  9129. allow_undefined_flag_CXX=
  9130. always_export_symbols_CXX=no
  9131. archive_expsym_cmds_CXX=
  9132. export_dynamic_flag_spec_CXX=
  9133. hardcode_direct_CXX=no
  9134. hardcode_libdir_flag_spec_CXX=
  9135. hardcode_libdir_flag_spec_ld_CXX=
  9136. hardcode_libdir_separator_CXX=
  9137. hardcode_minus_L_CXX=no
  9138. hardcode_shlibpath_var_CXX=unsupported
  9139. hardcode_automatic_CXX=no
  9140. module_cmds_CXX=
  9141. module_expsym_cmds_CXX=
  9142. link_all_deplibs_CXX=unknown
  9143. old_archive_cmds_CXX=$old_archive_cmds
  9144. no_undefined_flag_CXX=
  9145. whole_archive_flag_spec_CXX=
  9146. enable_shared_with_static_runtimes_CXX=no
  9147. # Dependencies to place before and after the object being linked:
  9148. predep_objects_CXX=
  9149. postdep_objects_CXX=
  9150. predeps_CXX=
  9151. postdeps_CXX=
  9152. compiler_lib_search_path_CXX=
  9153. # Source file extension for C++ test sources.
  9154. ac_ext=cpp
  9155. # Object file extension for compiled C++ test sources.
  9156. objext=o
  9157. objext_CXX=$objext
  9158. # Code to be used in simple compile tests
  9159. lt_simple_compile_test_code="int some_variable = 0;\n"
  9160. # Code to be used in simple link tests
  9161. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9162. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9163. # If no C compiler was specified, use CC.
  9164. LTCC=${LTCC-"$CC"}
  9165. # If no C compiler flags were specified, use CFLAGS.
  9166. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9167. # Allow CC to be a program name with arguments.
  9168. compiler=$CC
  9169. # save warnings/boilerplate of simple test code
  9170. ac_outfile=conftest.$ac_objext
  9171. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9172. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9173. _lt_compiler_boilerplate=`cat conftest.err`
  9174. $rm conftest*
  9175. ac_outfile=conftest.$ac_objext
  9176. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9177. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9178. _lt_linker_boilerplate=`cat conftest.err`
  9179. $rm conftest*
  9180. # Allow CC to be a program name with arguments.
  9181. lt_save_CC=$CC
  9182. lt_save_LD=$LD
  9183. lt_save_GCC=$GCC
  9184. GCC=$GXX
  9185. lt_save_with_gnu_ld=$with_gnu_ld
  9186. lt_save_path_LD=$lt_cv_path_LD
  9187. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9188. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9189. else
  9190. $as_unset lt_cv_prog_gnu_ld
  9191. fi
  9192. if test -n "${lt_cv_path_LDCXX+set}"; then
  9193. lt_cv_path_LD=$lt_cv_path_LDCXX
  9194. else
  9195. $as_unset lt_cv_path_LD
  9196. fi
  9197. test -z "${LDCXX+set}" || LD=$LDCXX
  9198. CC=${CXX-"c++"}
  9199. compiler=$CC
  9200. compiler_CXX=$CC
  9201. for cc_temp in $compiler""; do
  9202. case $cc_temp in
  9203. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9204. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9205. \-*) ;;
  9206. *) break;;
  9207. esac
  9208. done
  9209. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9210. # We don't want -fno-exception wen compiling C++ code, so set the
  9211. # no_builtin_flag separately
  9212. if test "$GXX" = yes; then
  9213. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9214. else
  9215. lt_prog_compiler_no_builtin_flag_CXX=
  9216. fi
  9217. if test "$GXX" = yes; then
  9218. # Set up default GNU C++ configuration
  9219. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9220. if test "${with_gnu_ld+set}" = set; then
  9221. withval="$with_gnu_ld"
  9222. test "$withval" = no || with_gnu_ld=yes
  9223. else
  9224. with_gnu_ld=no
  9225. fi;
  9226. ac_prog=ld
  9227. if test "$GCC" = yes; then
  9228. # Check if gcc -print-prog-name=ld gives a path.
  9229. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9230. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9231. case $host in
  9232. *-*-mingw*)
  9233. # gcc leaves a trailing carriage return which upsets mingw
  9234. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9235. *)
  9236. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9237. esac
  9238. case $ac_prog in
  9239. # Accept absolute paths.
  9240. [\\/]* | ?:[\\/]*)
  9241. re_direlt='/[^/][^/]*/\.\./'
  9242. # Canonicalize the pathname of ld
  9243. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9244. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9245. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9246. done
  9247. test -z "$LD" && LD="$ac_prog"
  9248. ;;
  9249. "")
  9250. # If it fails, then pretend we aren't using GCC.
  9251. ac_prog=ld
  9252. ;;
  9253. *)
  9254. # If it is relative, then search for the first ld in PATH.
  9255. with_gnu_ld=unknown
  9256. ;;
  9257. esac
  9258. elif test "$with_gnu_ld" = yes; then
  9259. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9260. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9261. else
  9262. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9263. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9264. fi
  9265. if test "${lt_cv_path_LD+set}" = set; then
  9266. echo $ECHO_N "(cached) $ECHO_C" >&6
  9267. else
  9268. if test -z "$LD"; then
  9269. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9270. for ac_dir in $PATH; do
  9271. IFS="$lt_save_ifs"
  9272. test -z "$ac_dir" && ac_dir=.
  9273. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9274. lt_cv_path_LD="$ac_dir/$ac_prog"
  9275. # Check to see if the program is GNU ld. I'd rather use --version,
  9276. # but apparently some variants of GNU ld only accept -v.
  9277. # Break only if it was the GNU/non-GNU ld that we prefer.
  9278. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9279. *GNU* | *'with BFD'*)
  9280. test "$with_gnu_ld" != no && break
  9281. ;;
  9282. *)
  9283. test "$with_gnu_ld" != yes && break
  9284. ;;
  9285. esac
  9286. fi
  9287. done
  9288. IFS="$lt_save_ifs"
  9289. else
  9290. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9291. fi
  9292. fi
  9293. LD="$lt_cv_path_LD"
  9294. if test -n "$LD"; then
  9295. echo "$as_me:$LINENO: result: $LD" >&5
  9296. echo "${ECHO_T}$LD" >&6
  9297. else
  9298. echo "$as_me:$LINENO: result: no" >&5
  9299. echo "${ECHO_T}no" >&6
  9300. fi
  9301. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9302. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9303. { (exit 1); exit 1; }; }
  9304. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9305. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9306. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9307. echo $ECHO_N "(cached) $ECHO_C" >&6
  9308. else
  9309. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9310. case `$LD -v 2>&1 </dev/null` in
  9311. *GNU* | *'with BFD'*)
  9312. lt_cv_prog_gnu_ld=yes
  9313. ;;
  9314. *)
  9315. lt_cv_prog_gnu_ld=no
  9316. ;;
  9317. esac
  9318. fi
  9319. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9320. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9321. with_gnu_ld=$lt_cv_prog_gnu_ld
  9322. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9323. # archiving commands below assume that GNU ld is being used.
  9324. if test "$with_gnu_ld" = yes; then
  9325. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9326. 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'
  9327. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9328. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9329. # If archive_cmds runs LD, not CC, wlarc should be empty
  9330. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9331. # investigate it a little bit more. (MM)
  9332. wlarc='${wl}'
  9333. # ancient GNU ld didn't support --whole-archive et. al.
  9334. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9335. grep 'no-whole-archive' > /dev/null; then
  9336. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9337. else
  9338. whole_archive_flag_spec_CXX=
  9339. fi
  9340. else
  9341. with_gnu_ld=no
  9342. wlarc=
  9343. # A generic and very simple default shared library creation
  9344. # command for GNU C++ for the case where it uses the native
  9345. # linker, instead of GNU ld. If possible, this setting should
  9346. # overridden to take advantage of the native linker features on
  9347. # the platform it is being used on.
  9348. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9349. fi
  9350. # Commands to make compiler produce verbose output that lists
  9351. # what "hidden" libraries, object files and flags are used when
  9352. # linking a shared library.
  9353. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9354. else
  9355. GXX=no
  9356. with_gnu_ld=no
  9357. wlarc=
  9358. fi
  9359. # PORTME: fill in a description of your system's C++ link characteristics
  9360. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9361. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9362. ld_shlibs_CXX=yes
  9363. case $host_os in
  9364. aix3*)
  9365. # FIXME: insert proper C++ library support
  9366. ld_shlibs_CXX=no
  9367. ;;
  9368. aix4* | aix5*)
  9369. if test "$host_cpu" = ia64; then
  9370. # On IA64, the linker does run time linking by default, so we don't
  9371. # have to do anything special.
  9372. aix_use_runtimelinking=no
  9373. exp_sym_flag='-Bexport'
  9374. no_entry_flag=""
  9375. else
  9376. aix_use_runtimelinking=no
  9377. # Test if we are trying to use run time linking or normal
  9378. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9379. # need to do runtime linking.
  9380. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9381. for ld_flag in $LDFLAGS; do
  9382. case $ld_flag in
  9383. *-brtl*)
  9384. aix_use_runtimelinking=yes
  9385. break
  9386. ;;
  9387. esac
  9388. done
  9389. ;;
  9390. esac
  9391. exp_sym_flag='-bexport'
  9392. no_entry_flag='-bnoentry'
  9393. fi
  9394. # When large executables or shared objects are built, AIX ld can
  9395. # have problems creating the table of contents. If linking a library
  9396. # or program results in "error TOC overflow" add -mminimal-toc to
  9397. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9398. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9399. archive_cmds_CXX=''
  9400. hardcode_direct_CXX=yes
  9401. hardcode_libdir_separator_CXX=':'
  9402. link_all_deplibs_CXX=yes
  9403. if test "$GXX" = yes; then
  9404. case $host_os in aix4.[012]|aix4.[012].*)
  9405. # We only want to do this on AIX 4.2 and lower, the check
  9406. # below for broken collect2 doesn't work under 4.3+
  9407. collect2name=`${CC} -print-prog-name=collect2`
  9408. if test -f "$collect2name" && \
  9409. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9410. then
  9411. # We have reworked collect2
  9412. hardcode_direct_CXX=yes
  9413. else
  9414. # We have old collect2
  9415. hardcode_direct_CXX=unsupported
  9416. # It fails to find uninstalled libraries when the uninstalled
  9417. # path is not listed in the libpath. Setting hardcode_minus_L
  9418. # to unsupported forces relinking
  9419. hardcode_minus_L_CXX=yes
  9420. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9421. hardcode_libdir_separator_CXX=
  9422. fi
  9423. ;;
  9424. esac
  9425. shared_flag='-shared'
  9426. if test "$aix_use_runtimelinking" = yes; then
  9427. shared_flag="$shared_flag "'${wl}-G'
  9428. fi
  9429. else
  9430. # not using gcc
  9431. if test "$host_cpu" = ia64; then
  9432. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9433. # chokes on -Wl,-G. The following line is correct:
  9434. shared_flag='-G'
  9435. else
  9436. if test "$aix_use_runtimelinking" = yes; then
  9437. shared_flag='${wl}-G'
  9438. else
  9439. shared_flag='${wl}-bM:SRE'
  9440. fi
  9441. fi
  9442. fi
  9443. # It seems that -bexpall does not export symbols beginning with
  9444. # underscore (_), so it is better to generate a list of symbols to export.
  9445. always_export_symbols_CXX=yes
  9446. if test "$aix_use_runtimelinking" = yes; then
  9447. # Warning - without using the other runtime loading flags (-brtl),
  9448. # -berok will link without error, but may produce a broken library.
  9449. allow_undefined_flag_CXX='-berok'
  9450. # Determine the default libpath from the value encoded in an empty executable.
  9451. cat >conftest.$ac_ext <<_ACEOF
  9452. /* confdefs.h. */
  9453. _ACEOF
  9454. cat confdefs.h >>conftest.$ac_ext
  9455. cat >>conftest.$ac_ext <<_ACEOF
  9456. /* end confdefs.h. */
  9457. int
  9458. main ()
  9459. {
  9460. ;
  9461. return 0;
  9462. }
  9463. _ACEOF
  9464. rm -f conftest.$ac_objext conftest$ac_exeext
  9465. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9466. (eval $ac_link) 2>conftest.er1
  9467. ac_status=$?
  9468. grep -v '^ *+' conftest.er1 >conftest.err
  9469. rm -f conftest.er1
  9470. cat conftest.err >&5
  9471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9472. (exit $ac_status); } &&
  9473. { ac_try='test -z "$ac_cxx_werror_flag"
  9474. || test ! -s conftest.err'
  9475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9476. (eval $ac_try) 2>&5
  9477. ac_status=$?
  9478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9479. (exit $ac_status); }; } &&
  9480. { ac_try='test -s conftest$ac_exeext'
  9481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9482. (eval $ac_try) 2>&5
  9483. ac_status=$?
  9484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9485. (exit $ac_status); }; }; then
  9486. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9487. }'`
  9488. # Check for a 64-bit object if we didn't find anything.
  9489. 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; }
  9490. }'`; fi
  9491. else
  9492. echo "$as_me: failed program was:" >&5
  9493. sed 's/^/| /' conftest.$ac_ext >&5
  9494. fi
  9495. rm -f conftest.err conftest.$ac_objext \
  9496. conftest$ac_exeext conftest.$ac_ext
  9497. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9498. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9499. 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"
  9500. else
  9501. if test "$host_cpu" = ia64; then
  9502. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9503. allow_undefined_flag_CXX="-z nodefs"
  9504. 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"
  9505. else
  9506. # Determine the default libpath from the value encoded in an empty executable.
  9507. cat >conftest.$ac_ext <<_ACEOF
  9508. /* confdefs.h. */
  9509. _ACEOF
  9510. cat confdefs.h >>conftest.$ac_ext
  9511. cat >>conftest.$ac_ext <<_ACEOF
  9512. /* end confdefs.h. */
  9513. int
  9514. main ()
  9515. {
  9516. ;
  9517. return 0;
  9518. }
  9519. _ACEOF
  9520. rm -f conftest.$ac_objext conftest$ac_exeext
  9521. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9522. (eval $ac_link) 2>conftest.er1
  9523. ac_status=$?
  9524. grep -v '^ *+' conftest.er1 >conftest.err
  9525. rm -f conftest.er1
  9526. cat conftest.err >&5
  9527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9528. (exit $ac_status); } &&
  9529. { ac_try='test -z "$ac_cxx_werror_flag"
  9530. || test ! -s conftest.err'
  9531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9532. (eval $ac_try) 2>&5
  9533. ac_status=$?
  9534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9535. (exit $ac_status); }; } &&
  9536. { ac_try='test -s conftest$ac_exeext'
  9537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9538. (eval $ac_try) 2>&5
  9539. ac_status=$?
  9540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9541. (exit $ac_status); }; }; then
  9542. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9543. }'`
  9544. # Check for a 64-bit object if we didn't find anything.
  9545. 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; }
  9546. }'`; fi
  9547. else
  9548. echo "$as_me: failed program was:" >&5
  9549. sed 's/^/| /' conftest.$ac_ext >&5
  9550. fi
  9551. rm -f conftest.err conftest.$ac_objext \
  9552. conftest$ac_exeext conftest.$ac_ext
  9553. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9554. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9555. # Warning - without using the other run time loading flags,
  9556. # -berok will link without error, but may produce a broken library.
  9557. no_undefined_flag_CXX=' ${wl}-bernotok'
  9558. allow_undefined_flag_CXX=' ${wl}-berok'
  9559. # Exported symbols can be pulled into shared objects from archives
  9560. whole_archive_flag_spec_CXX='$convenience'
  9561. archive_cmds_need_lc_CXX=yes
  9562. # This is similar to how AIX traditionally builds its shared libraries.
  9563. 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'
  9564. fi
  9565. fi
  9566. ;;
  9567. beos*)
  9568. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9569. allow_undefined_flag_CXX=unsupported
  9570. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9571. # support --undefined. This deserves some investigation. FIXME
  9572. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9573. else
  9574. ld_shlibs_CXX=no
  9575. fi
  9576. ;;
  9577. chorus*)
  9578. case $cc_basename in
  9579. *)
  9580. # FIXME: insert proper C++ library support
  9581. ld_shlibs_CXX=no
  9582. ;;
  9583. esac
  9584. ;;
  9585. cygwin* | mingw* | pw32*)
  9586. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9587. # as there is no search path for DLLs.
  9588. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9589. allow_undefined_flag_CXX=unsupported
  9590. always_export_symbols_CXX=no
  9591. enable_shared_with_static_runtimes_CXX=yes
  9592. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9593. 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'
  9594. # If the export-symbols file already is a .def file (1st line
  9595. # is EXPORTS), use it as is; otherwise, prepend...
  9596. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9597. cp $export_symbols $output_objdir/$soname.def;
  9598. else
  9599. echo EXPORTS > $output_objdir/$soname.def;
  9600. cat $export_symbols >> $output_objdir/$soname.def;
  9601. fi~
  9602. $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'
  9603. else
  9604. ld_shlibs_CXX=no
  9605. fi
  9606. ;;
  9607. darwin* | rhapsody*)
  9608. case $host_os in
  9609. rhapsody* | darwin1.[012])
  9610. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9611. ;;
  9612. *) # Darwin 1.3 on
  9613. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9614. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9615. else
  9616. case ${MACOSX_DEPLOYMENT_TARGET} in
  9617. 10.[012])
  9618. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9619. ;;
  9620. 10.*)
  9621. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9622. ;;
  9623. esac
  9624. fi
  9625. ;;
  9626. esac
  9627. archive_cmds_need_lc_CXX=no
  9628. hardcode_direct_CXX=no
  9629. hardcode_automatic_CXX=yes
  9630. hardcode_shlibpath_var_CXX=unsupported
  9631. whole_archive_flag_spec_CXX=''
  9632. link_all_deplibs_CXX=yes
  9633. if test "$GXX" = yes ; then
  9634. lt_int_apple_cc_single_mod=no
  9635. output_verbose_link_cmd='echo'
  9636. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9637. lt_int_apple_cc_single_mod=yes
  9638. fi
  9639. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9640. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9641. else
  9642. 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'
  9643. fi
  9644. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9645. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9646. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9647. 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}'
  9648. else
  9649. 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}'
  9650. fi
  9651. 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}'
  9652. else
  9653. case $cc_basename in
  9654. xlc*)
  9655. output_verbose_link_cmd='echo'
  9656. 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'
  9657. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9658. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9659. 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}'
  9660. 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}'
  9661. ;;
  9662. *)
  9663. ld_shlibs_CXX=no
  9664. ;;
  9665. esac
  9666. fi
  9667. ;;
  9668. dgux*)
  9669. case $cc_basename in
  9670. ec++*)
  9671. # FIXME: insert proper C++ library support
  9672. ld_shlibs_CXX=no
  9673. ;;
  9674. ghcx*)
  9675. # Green Hills C++ Compiler
  9676. # FIXME: insert proper C++ library support
  9677. ld_shlibs_CXX=no
  9678. ;;
  9679. *)
  9680. # FIXME: insert proper C++ library support
  9681. ld_shlibs_CXX=no
  9682. ;;
  9683. esac
  9684. ;;
  9685. freebsd[12]*)
  9686. # C++ shared libraries reported to be fairly broken before switch to ELF
  9687. ld_shlibs_CXX=no
  9688. ;;
  9689. freebsd-elf*)
  9690. archive_cmds_need_lc_CXX=no
  9691. ;;
  9692. freebsd* | kfreebsd*-gnu | dragonfly*)
  9693. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9694. # conventions
  9695. ld_shlibs_CXX=yes
  9696. ;;
  9697. gnu*)
  9698. ;;
  9699. hpux9*)
  9700. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9701. hardcode_libdir_separator_CXX=:
  9702. export_dynamic_flag_spec_CXX='${wl}-E'
  9703. hardcode_direct_CXX=yes
  9704. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9705. # but as the default
  9706. # location of the library.
  9707. case $cc_basename in
  9708. CC*)
  9709. # FIXME: insert proper C++ library support
  9710. ld_shlibs_CXX=no
  9711. ;;
  9712. aCC*)
  9713. 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'
  9714. # Commands to make compiler produce verbose output that lists
  9715. # what "hidden" libraries, object files and flags are used when
  9716. # linking a shared library.
  9717. #
  9718. # There doesn't appear to be a way to prevent this compiler from
  9719. # explicitly linking system object files so we need to strip them
  9720. # from the output so that they don't get included in the library
  9721. # dependencies.
  9722. 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'
  9723. ;;
  9724. *)
  9725. if test "$GXX" = yes; then
  9726. 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'
  9727. else
  9728. # FIXME: insert proper C++ library support
  9729. ld_shlibs_CXX=no
  9730. fi
  9731. ;;
  9732. esac
  9733. ;;
  9734. hpux10*|hpux11*)
  9735. if test $with_gnu_ld = no; then
  9736. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9737. hardcode_libdir_separator_CXX=:
  9738. case $host_cpu in
  9739. hppa*64*|ia64*)
  9740. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9741. ;;
  9742. *)
  9743. export_dynamic_flag_spec_CXX='${wl}-E'
  9744. ;;
  9745. esac
  9746. fi
  9747. case $host_cpu in
  9748. hppa*64*|ia64*)
  9749. hardcode_direct_CXX=no
  9750. hardcode_shlibpath_var_CXX=no
  9751. ;;
  9752. *)
  9753. hardcode_direct_CXX=yes
  9754. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9755. # but as the default
  9756. # location of the library.
  9757. ;;
  9758. esac
  9759. case $cc_basename in
  9760. CC*)
  9761. # FIXME: insert proper C++ library support
  9762. ld_shlibs_CXX=no
  9763. ;;
  9764. aCC*)
  9765. case $host_cpu in
  9766. hppa*64*)
  9767. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9768. ;;
  9769. ia64*)
  9770. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9771. ;;
  9772. *)
  9773. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9774. ;;
  9775. esac
  9776. # Commands to make compiler produce verbose output that lists
  9777. # what "hidden" libraries, object files and flags are used when
  9778. # linking a shared library.
  9779. #
  9780. # There doesn't appear to be a way to prevent this compiler from
  9781. # explicitly linking system object files so we need to strip them
  9782. # from the output so that they don't get included in the library
  9783. # dependencies.
  9784. 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'
  9785. ;;
  9786. *)
  9787. if test "$GXX" = yes; then
  9788. if test $with_gnu_ld = no; then
  9789. case $host_cpu in
  9790. hppa*64*)
  9791. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9792. ;;
  9793. ia64*)
  9794. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9795. ;;
  9796. *)
  9797. 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'
  9798. ;;
  9799. esac
  9800. fi
  9801. else
  9802. # FIXME: insert proper C++ library support
  9803. ld_shlibs_CXX=no
  9804. fi
  9805. ;;
  9806. esac
  9807. ;;
  9808. interix3*)
  9809. hardcode_direct_CXX=no
  9810. hardcode_shlibpath_var_CXX=no
  9811. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9812. export_dynamic_flag_spec_CXX='${wl}-E'
  9813. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9814. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9815. # default) and relocated if they conflict, which is a slow very memory
  9816. # consuming and fragmenting process. To avoid this, we pick a random,
  9817. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9818. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9819. 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'
  9820. 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'
  9821. ;;
  9822. irix5* | irix6*)
  9823. case $cc_basename in
  9824. CC*)
  9825. # SGI C++
  9826. 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'
  9827. # Archives containing C++ object files must be created using
  9828. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9829. # necessary to make sure instantiated templates are included
  9830. # in the archive.
  9831. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9832. ;;
  9833. *)
  9834. if test "$GXX" = yes; then
  9835. if test "$with_gnu_ld" = no; then
  9836. 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'
  9837. else
  9838. 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'
  9839. fi
  9840. fi
  9841. link_all_deplibs_CXX=yes
  9842. ;;
  9843. esac
  9844. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9845. hardcode_libdir_separator_CXX=:
  9846. ;;
  9847. linux*)
  9848. case $cc_basename in
  9849. KCC*)
  9850. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9851. # KCC will only create a shared library if the output file
  9852. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9853. # to its proper name (with version) after linking.
  9854. 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'
  9855. 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'
  9856. # Commands to make compiler produce verbose output that lists
  9857. # what "hidden" libraries, object files and flags are used when
  9858. # linking a shared library.
  9859. #
  9860. # There doesn't appear to be a way to prevent this compiler from
  9861. # explicitly linking system object files so we need to strip them
  9862. # from the output so that they don't get included in the library
  9863. # dependencies.
  9864. 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'
  9865. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9866. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9867. # Archives containing C++ object files must be created using
  9868. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9869. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9870. ;;
  9871. icpc*)
  9872. # Intel C++
  9873. with_gnu_ld=yes
  9874. # version 8.0 and above of icpc choke on multiply defined symbols
  9875. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9876. # earlier do not add the objects themselves.
  9877. case `$CC -V 2>&1` in
  9878. *"Version 7."*)
  9879. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9880. 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'
  9881. ;;
  9882. *) # Version 8.0 or newer
  9883. tmp_idyn=
  9884. case $host_cpu in
  9885. ia64*) tmp_idyn=' -i_dynamic';;
  9886. esac
  9887. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9888. 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'
  9889. ;;
  9890. esac
  9891. archive_cmds_need_lc_CXX=no
  9892. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9893. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9894. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9895. ;;
  9896. pgCC*)
  9897. # Portland Group C++ compiler
  9898. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9899. 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'
  9900. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9901. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9902. 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'
  9903. ;;
  9904. cxx*)
  9905. # Compaq C++
  9906. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9907. 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'
  9908. runpath_var=LD_RUN_PATH
  9909. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9910. hardcode_libdir_separator_CXX=:
  9911. # Commands to make compiler produce verbose output that lists
  9912. # what "hidden" libraries, object files and flags are used when
  9913. # linking a shared library.
  9914. #
  9915. # There doesn't appear to be a way to prevent this compiler from
  9916. # explicitly linking system object files so we need to strip them
  9917. # from the output so that they don't get included in the library
  9918. # dependencies.
  9919. 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'
  9920. ;;
  9921. esac
  9922. ;;
  9923. lynxos*)
  9924. # FIXME: insert proper C++ library support
  9925. ld_shlibs_CXX=no
  9926. ;;
  9927. m88k*)
  9928. # FIXME: insert proper C++ library support
  9929. ld_shlibs_CXX=no
  9930. ;;
  9931. mvs*)
  9932. case $cc_basename in
  9933. cxx*)
  9934. # FIXME: insert proper C++ library support
  9935. ld_shlibs_CXX=no
  9936. ;;
  9937. *)
  9938. # FIXME: insert proper C++ library support
  9939. ld_shlibs_CXX=no
  9940. ;;
  9941. esac
  9942. ;;
  9943. netbsd*)
  9944. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9945. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9946. wlarc=
  9947. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9948. hardcode_direct_CXX=yes
  9949. hardcode_shlibpath_var_CXX=no
  9950. fi
  9951. # Workaround some broken pre-1.5 toolchains
  9952. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9953. ;;
  9954. openbsd2*)
  9955. # C++ shared libraries are fairly broken
  9956. ld_shlibs_CXX=no
  9957. ;;
  9958. openbsd*)
  9959. hardcode_direct_CXX=yes
  9960. hardcode_shlibpath_var_CXX=no
  9961. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9962. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9963. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9964. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9965. export_dynamic_flag_spec_CXX='${wl}-E'
  9966. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9967. fi
  9968. output_verbose_link_cmd='echo'
  9969. ;;
  9970. osf3*)
  9971. case $cc_basename in
  9972. KCC*)
  9973. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9974. # KCC will only create a shared library if the output file
  9975. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9976. # to its proper name (with version) after linking.
  9977. 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'
  9978. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9979. hardcode_libdir_separator_CXX=:
  9980. # Archives containing C++ object files must be created using
  9981. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9982. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9983. ;;
  9984. RCC*)
  9985. # Rational C++ 2.4.1
  9986. # FIXME: insert proper C++ library support
  9987. ld_shlibs_CXX=no
  9988. ;;
  9989. cxx*)
  9990. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9991. 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'
  9992. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9993. hardcode_libdir_separator_CXX=:
  9994. # Commands to make compiler produce verbose output that lists
  9995. # what "hidden" libraries, object files and flags are used when
  9996. # linking a shared library.
  9997. #
  9998. # There doesn't appear to be a way to prevent this compiler from
  9999. # explicitly linking system object files so we need to strip them
  10000. # from the output so that they don't get included in the library
  10001. # dependencies.
  10002. 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'
  10003. ;;
  10004. *)
  10005. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10006. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10007. 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'
  10008. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10009. hardcode_libdir_separator_CXX=:
  10010. # Commands to make compiler produce verbose output that lists
  10011. # what "hidden" libraries, object files and flags are used when
  10012. # linking a shared library.
  10013. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10014. else
  10015. # FIXME: insert proper C++ library support
  10016. ld_shlibs_CXX=no
  10017. fi
  10018. ;;
  10019. esac
  10020. ;;
  10021. osf4* | osf5*)
  10022. case $cc_basename in
  10023. KCC*)
  10024. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10025. # KCC will only create a shared library if the output file
  10026. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10027. # to its proper name (with version) after linking.
  10028. 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'
  10029. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10030. hardcode_libdir_separator_CXX=:
  10031. # Archives containing C++ object files must be created using
  10032. # the KAI C++ compiler.
  10033. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10034. ;;
  10035. RCC*)
  10036. # Rational C++ 2.4.1
  10037. # FIXME: insert proper C++ library support
  10038. ld_shlibs_CXX=no
  10039. ;;
  10040. cxx*)
  10041. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10042. 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'
  10043. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10044. echo "-hidden">> $lib.exp~
  10045. $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~
  10046. $rm $lib.exp'
  10047. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10048. hardcode_libdir_separator_CXX=:
  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. #
  10053. # There doesn't appear to be a way to prevent this compiler from
  10054. # explicitly linking system object files so we need to strip them
  10055. # from the output so that they don't get included in the library
  10056. # dependencies.
  10057. 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'
  10058. ;;
  10059. *)
  10060. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10061. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10062. 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'
  10063. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10064. hardcode_libdir_separator_CXX=:
  10065. # Commands to make compiler produce verbose output that lists
  10066. # what "hidden" libraries, object files and flags are used when
  10067. # linking a shared library.
  10068. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10069. else
  10070. # FIXME: insert proper C++ library support
  10071. ld_shlibs_CXX=no
  10072. fi
  10073. ;;
  10074. esac
  10075. ;;
  10076. psos*)
  10077. # FIXME: insert proper C++ library support
  10078. ld_shlibs_CXX=no
  10079. ;;
  10080. sunos4*)
  10081. case $cc_basename in
  10082. CC*)
  10083. # Sun C++ 4.x
  10084. # FIXME: insert proper C++ library support
  10085. ld_shlibs_CXX=no
  10086. ;;
  10087. lcc*)
  10088. # Lucid
  10089. # FIXME: insert proper C++ library support
  10090. ld_shlibs_CXX=no
  10091. ;;
  10092. *)
  10093. # FIXME: insert proper C++ library support
  10094. ld_shlibs_CXX=no
  10095. ;;
  10096. esac
  10097. ;;
  10098. solaris*)
  10099. case $cc_basename in
  10100. CC*)
  10101. # Sun C++ 4.2, 5.x and Centerline C++
  10102. archive_cmds_need_lc_CXX=yes
  10103. no_undefined_flag_CXX=' -zdefs'
  10104. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10105. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10106. $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'
  10107. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10108. hardcode_shlibpath_var_CXX=no
  10109. case $host_os in
  10110. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10111. *)
  10112. # The C++ compiler is used as linker so we must use $wl
  10113. # flag to pass the commands to the underlying system
  10114. # linker. We must also pass each convience library through
  10115. # to the system linker between allextract/defaultextract.
  10116. # The C++ compiler will combine linker options so we
  10117. # cannot just pass the convience library names through
  10118. # without $wl.
  10119. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10120. 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'
  10121. ;;
  10122. esac
  10123. link_all_deplibs_CXX=yes
  10124. output_verbose_link_cmd='echo'
  10125. # Archives containing C++ object files must be created using
  10126. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10127. # necessary to make sure instantiated templates are included
  10128. # in the archive.
  10129. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10130. ;;
  10131. gcx*)
  10132. # Green Hills C++ Compiler
  10133. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10134. # The C++ compiler must be used to create the archive.
  10135. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10136. ;;
  10137. *)
  10138. # GNU C++ compiler with Solaris linker
  10139. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10140. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10141. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10142. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10143. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10144. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10145. # Commands to make compiler produce verbose output that lists
  10146. # what "hidden" libraries, object files and flags are used when
  10147. # linking a shared library.
  10148. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10149. else
  10150. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10151. # platform.
  10152. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10153. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10154. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10155. # Commands to make compiler produce verbose output that lists
  10156. # what "hidden" libraries, object files and flags are used when
  10157. # linking a shared library.
  10158. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10159. fi
  10160. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10161. fi
  10162. ;;
  10163. esac
  10164. ;;
  10165. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10166. no_undefined_flag_CXX='${wl}-z,text'
  10167. archive_cmds_need_lc_CXX=no
  10168. hardcode_shlibpath_var_CXX=no
  10169. runpath_var='LD_RUN_PATH'
  10170. case $cc_basename in
  10171. CC*)
  10172. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10173. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10174. ;;
  10175. *)
  10176. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10177. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10178. ;;
  10179. esac
  10180. ;;
  10181. sysv5* | sco3.2v5* | sco5v6*)
  10182. # Note: We can NOT use -z defs as we might desire, because we do not
  10183. # link with -lc, and that would cause any symbols used from libc to
  10184. # always be unresolved, which means just about no library would
  10185. # ever link correctly. If we're not using GNU ld we use -z text
  10186. # though, which does catch some bad symbols but isn't as heavy-handed
  10187. # as -z defs.
  10188. # For security reasons, it is highly recommended that you always
  10189. # use absolute paths for naming shared libraries, and exclude the
  10190. # DT_RUNPATH tag from executables and libraries. But doing so
  10191. # requires that you compile everything twice, which is a pain.
  10192. # So that behaviour is only enabled if SCOABSPATH is set to a
  10193. # non-empty value in the environment. Most likely only useful for
  10194. # creating official distributions of packages.
  10195. # This is a hack until libtool officially supports absolute path
  10196. # names for shared libraries.
  10197. no_undefined_flag_CXX='${wl}-z,text'
  10198. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10199. archive_cmds_need_lc_CXX=no
  10200. hardcode_shlibpath_var_CXX=no
  10201. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10202. hardcode_libdir_separator_CXX=':'
  10203. link_all_deplibs_CXX=yes
  10204. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10205. runpath_var='LD_RUN_PATH'
  10206. case $cc_basename in
  10207. CC*)
  10208. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10209. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10210. ;;
  10211. *)
  10212. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10213. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10214. ;;
  10215. esac
  10216. ;;
  10217. tandem*)
  10218. case $cc_basename in
  10219. NCC*)
  10220. # NonStop-UX NCC 3.20
  10221. # FIXME: insert proper C++ library support
  10222. ld_shlibs_CXX=no
  10223. ;;
  10224. *)
  10225. # FIXME: insert proper C++ library support
  10226. ld_shlibs_CXX=no
  10227. ;;
  10228. esac
  10229. ;;
  10230. vxworks*)
  10231. # FIXME: insert proper C++ library support
  10232. ld_shlibs_CXX=no
  10233. ;;
  10234. *)
  10235. # FIXME: insert proper C++ library support
  10236. ld_shlibs_CXX=no
  10237. ;;
  10238. esac
  10239. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10240. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10241. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10242. GCC_CXX="$GXX"
  10243. LD_CXX="$LD"
  10244. cat > conftest.$ac_ext <<EOF
  10245. class Foo
  10246. {
  10247. public:
  10248. Foo (void) { a = 0; }
  10249. private:
  10250. int a;
  10251. };
  10252. EOF
  10253. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10254. (eval $ac_compile) 2>&5
  10255. ac_status=$?
  10256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10257. (exit $ac_status); }; then
  10258. # Parse the compiler output and extract the necessary
  10259. # objects, libraries and library flags.
  10260. # Sentinel used to keep track of whether or not we are before
  10261. # the conftest object file.
  10262. pre_test_object_deps_done=no
  10263. # The `*' in the case matches for architectures that use `case' in
  10264. # $output_verbose_cmd can trigger glob expansion during the loop
  10265. # eval without this substitution.
  10266. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10267. for p in `eval $output_verbose_link_cmd`; do
  10268. case $p in
  10269. -L* | -R* | -l*)
  10270. # Some compilers place space between "-{L,R}" and the path.
  10271. # Remove the space.
  10272. if test $p = "-L" \
  10273. || test $p = "-R"; then
  10274. prev=$p
  10275. continue
  10276. else
  10277. prev=
  10278. fi
  10279. if test "$pre_test_object_deps_done" = no; then
  10280. case $p in
  10281. -L* | -R*)
  10282. # Internal compiler library paths should come after those
  10283. # provided the user. The postdeps already come after the
  10284. # user supplied libs so there is no need to process them.
  10285. if test -z "$compiler_lib_search_path_CXX"; then
  10286. compiler_lib_search_path_CXX="${prev}${p}"
  10287. else
  10288. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10289. fi
  10290. ;;
  10291. # The "-l" case would never come before the object being
  10292. # linked, so don't bother handling this case.
  10293. esac
  10294. else
  10295. if test -z "$postdeps_CXX"; then
  10296. postdeps_CXX="${prev}${p}"
  10297. else
  10298. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10299. fi
  10300. fi
  10301. ;;
  10302. *.$objext)
  10303. # This assumes that the test object file only shows up
  10304. # once in the compiler output.
  10305. if test "$p" = "conftest.$objext"; then
  10306. pre_test_object_deps_done=yes
  10307. continue
  10308. fi
  10309. if test "$pre_test_object_deps_done" = no; then
  10310. if test -z "$predep_objects_CXX"; then
  10311. predep_objects_CXX="$p"
  10312. else
  10313. predep_objects_CXX="$predep_objects_CXX $p"
  10314. fi
  10315. else
  10316. if test -z "$postdep_objects_CXX"; then
  10317. postdep_objects_CXX="$p"
  10318. else
  10319. postdep_objects_CXX="$postdep_objects_CXX $p"
  10320. fi
  10321. fi
  10322. ;;
  10323. *) ;; # Ignore the rest.
  10324. esac
  10325. done
  10326. # Clean up.
  10327. rm -f a.out a.exe
  10328. else
  10329. echo "libtool.m4: error: problem compiling CXX test program"
  10330. fi
  10331. $rm -f confest.$objext
  10332. # PORTME: override above test on systems where it is broken
  10333. case $host_os in
  10334. interix3*)
  10335. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10336. # hack all around it, let's just trust "g++" to DTRT.
  10337. predep_objects_CXX=
  10338. postdep_objects_CXX=
  10339. postdeps_CXX=
  10340. ;;
  10341. solaris*)
  10342. case $cc_basename in
  10343. CC*)
  10344. # Adding this requires a known-good setup of shared libraries for
  10345. # Sun compiler versions before 5.6, else PIC objects from an old
  10346. # archive will be linked into the output, leading to subtle bugs.
  10347. postdeps_CXX='-lCstd -lCrun'
  10348. ;;
  10349. esac
  10350. ;;
  10351. esac
  10352. case " $postdeps_CXX " in
  10353. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10354. esac
  10355. lt_prog_compiler_wl_CXX=
  10356. lt_prog_compiler_pic_CXX=
  10357. lt_prog_compiler_static_CXX=
  10358. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10359. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10360. # C++ specific cases for pic, static, wl, etc.
  10361. if test "$GXX" = yes; then
  10362. lt_prog_compiler_wl_CXX='-Wl,'
  10363. lt_prog_compiler_static_CXX='-static'
  10364. case $host_os in
  10365. aix*)
  10366. # All AIX code is PIC.
  10367. if test "$host_cpu" = ia64; then
  10368. # AIX 5 now supports IA64 processor
  10369. lt_prog_compiler_static_CXX='-Bstatic'
  10370. fi
  10371. ;;
  10372. amigaos*)
  10373. # FIXME: we need at least 68020 code to build shared libraries, but
  10374. # adding the `-m68020' flag to GCC prevents building anything better,
  10375. # like `-m68040'.
  10376. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10377. ;;
  10378. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10379. # PIC is the default for these OSes.
  10380. ;;
  10381. mingw* | os2* | pw32*)
  10382. # This hack is so that the source file can tell whether it is being
  10383. # built for inclusion in a dll (and should export symbols for example).
  10384. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10385. ;;
  10386. darwin* | rhapsody*)
  10387. # PIC is the default on this platform
  10388. # Common symbols not allowed in MH_DYLIB files
  10389. lt_prog_compiler_pic_CXX='-fno-common'
  10390. ;;
  10391. *djgpp*)
  10392. # DJGPP does not support shared libraries at all
  10393. lt_prog_compiler_pic_CXX=
  10394. ;;
  10395. interix3*)
  10396. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10397. # Instead, we relocate shared libraries at runtime.
  10398. ;;
  10399. sysv4*MP*)
  10400. if test -d /usr/nec; then
  10401. lt_prog_compiler_pic_CXX=-Kconform_pic
  10402. fi
  10403. ;;
  10404. hpux*)
  10405. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10406. # not for PA HP-UX.
  10407. case $host_cpu in
  10408. hppa*64*|ia64*)
  10409. ;;
  10410. *)
  10411. lt_prog_compiler_pic_CXX='-fPIC'
  10412. ;;
  10413. esac
  10414. ;;
  10415. *)
  10416. lt_prog_compiler_pic_CXX='-fPIC'
  10417. ;;
  10418. esac
  10419. else
  10420. case $host_os in
  10421. aix4* | aix5*)
  10422. # All AIX code is PIC.
  10423. if test "$host_cpu" = ia64; then
  10424. # AIX 5 now supports IA64 processor
  10425. lt_prog_compiler_static_CXX='-Bstatic'
  10426. else
  10427. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10428. fi
  10429. ;;
  10430. chorus*)
  10431. case $cc_basename in
  10432. cxch68*)
  10433. # Green Hills C++ Compiler
  10434. # _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"
  10435. ;;
  10436. esac
  10437. ;;
  10438. darwin*)
  10439. # PIC is the default on this platform
  10440. # Common symbols not allowed in MH_DYLIB files
  10441. case $cc_basename in
  10442. xlc*)
  10443. lt_prog_compiler_pic_CXX='-qnocommon'
  10444. lt_prog_compiler_wl_CXX='-Wl,'
  10445. ;;
  10446. esac
  10447. ;;
  10448. dgux*)
  10449. case $cc_basename in
  10450. ec++*)
  10451. lt_prog_compiler_pic_CXX='-KPIC'
  10452. ;;
  10453. ghcx*)
  10454. # Green Hills C++ Compiler
  10455. lt_prog_compiler_pic_CXX='-pic'
  10456. ;;
  10457. *)
  10458. ;;
  10459. esac
  10460. ;;
  10461. freebsd* | kfreebsd*-gnu | dragonfly*)
  10462. # FreeBSD uses GNU C++
  10463. ;;
  10464. hpux9* | hpux10* | hpux11*)
  10465. case $cc_basename in
  10466. CC*)
  10467. lt_prog_compiler_wl_CXX='-Wl,'
  10468. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10469. if test "$host_cpu" != ia64; then
  10470. lt_prog_compiler_pic_CXX='+Z'
  10471. fi
  10472. ;;
  10473. aCC*)
  10474. lt_prog_compiler_wl_CXX='-Wl,'
  10475. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10476. case $host_cpu in
  10477. hppa*64*|ia64*)
  10478. # +Z the default
  10479. ;;
  10480. *)
  10481. lt_prog_compiler_pic_CXX='+Z'
  10482. ;;
  10483. esac
  10484. ;;
  10485. *)
  10486. ;;
  10487. esac
  10488. ;;
  10489. interix*)
  10490. # This is c89, which is MS Visual C++ (no shared libs)
  10491. # Anyone wants to do a port?
  10492. ;;
  10493. irix5* | irix6* | nonstopux*)
  10494. case $cc_basename in
  10495. CC*)
  10496. lt_prog_compiler_wl_CXX='-Wl,'
  10497. lt_prog_compiler_static_CXX='-non_shared'
  10498. # CC pic flag -KPIC is the default.
  10499. ;;
  10500. *)
  10501. ;;
  10502. esac
  10503. ;;
  10504. linux*)
  10505. case $cc_basename in
  10506. KCC*)
  10507. # KAI C++ Compiler
  10508. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10509. lt_prog_compiler_pic_CXX='-fPIC'
  10510. ;;
  10511. icpc* | ecpc*)
  10512. # Intel C++
  10513. lt_prog_compiler_wl_CXX='-Wl,'
  10514. lt_prog_compiler_pic_CXX='-KPIC'
  10515. lt_prog_compiler_static_CXX='-static'
  10516. ;;
  10517. pgCC*)
  10518. # Portland Group C++ compiler.
  10519. lt_prog_compiler_wl_CXX='-Wl,'
  10520. lt_prog_compiler_pic_CXX='-fpic'
  10521. lt_prog_compiler_static_CXX='-Bstatic'
  10522. ;;
  10523. cxx*)
  10524. # Compaq C++
  10525. # Make sure the PIC flag is empty. It appears that all Alpha
  10526. # Linux and Compaq Tru64 Unix objects are PIC.
  10527. lt_prog_compiler_pic_CXX=
  10528. lt_prog_compiler_static_CXX='-non_shared'
  10529. ;;
  10530. *)
  10531. ;;
  10532. esac
  10533. ;;
  10534. lynxos*)
  10535. ;;
  10536. m88k*)
  10537. ;;
  10538. mvs*)
  10539. case $cc_basename in
  10540. cxx*)
  10541. lt_prog_compiler_pic_CXX='-W c,exportall'
  10542. ;;
  10543. *)
  10544. ;;
  10545. esac
  10546. ;;
  10547. netbsd*)
  10548. ;;
  10549. osf3* | osf4* | osf5*)
  10550. case $cc_basename in
  10551. KCC*)
  10552. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10553. ;;
  10554. RCC*)
  10555. # Rational C++ 2.4.1
  10556. lt_prog_compiler_pic_CXX='-pic'
  10557. ;;
  10558. cxx*)
  10559. # Digital/Compaq C++
  10560. lt_prog_compiler_wl_CXX='-Wl,'
  10561. # Make sure the PIC flag is empty. It appears that all Alpha
  10562. # Linux and Compaq Tru64 Unix objects are PIC.
  10563. lt_prog_compiler_pic_CXX=
  10564. lt_prog_compiler_static_CXX='-non_shared'
  10565. ;;
  10566. *)
  10567. ;;
  10568. esac
  10569. ;;
  10570. psos*)
  10571. ;;
  10572. solaris*)
  10573. case $cc_basename in
  10574. CC*)
  10575. # Sun C++ 4.2, 5.x and Centerline C++
  10576. lt_prog_compiler_pic_CXX='-KPIC'
  10577. lt_prog_compiler_static_CXX='-Bstatic'
  10578. lt_prog_compiler_wl_CXX='-Qoption ld '
  10579. ;;
  10580. gcx*)
  10581. # Green Hills C++ Compiler
  10582. lt_prog_compiler_pic_CXX='-PIC'
  10583. ;;
  10584. *)
  10585. ;;
  10586. esac
  10587. ;;
  10588. sunos4*)
  10589. case $cc_basename in
  10590. CC*)
  10591. # Sun C++ 4.x
  10592. lt_prog_compiler_pic_CXX='-pic'
  10593. lt_prog_compiler_static_CXX='-Bstatic'
  10594. ;;
  10595. lcc*)
  10596. # Lucid
  10597. lt_prog_compiler_pic_CXX='-pic'
  10598. ;;
  10599. *)
  10600. ;;
  10601. esac
  10602. ;;
  10603. tandem*)
  10604. case $cc_basename in
  10605. NCC*)
  10606. # NonStop-UX NCC 3.20
  10607. lt_prog_compiler_pic_CXX='-KPIC'
  10608. ;;
  10609. *)
  10610. ;;
  10611. esac
  10612. ;;
  10613. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10614. case $cc_basename in
  10615. CC*)
  10616. lt_prog_compiler_wl_CXX='-Wl,'
  10617. lt_prog_compiler_pic_CXX='-KPIC'
  10618. lt_prog_compiler_static_CXX='-Bstatic'
  10619. ;;
  10620. esac
  10621. ;;
  10622. vxworks*)
  10623. ;;
  10624. *)
  10625. lt_prog_compiler_can_build_shared_CXX=no
  10626. ;;
  10627. esac
  10628. fi
  10629. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10630. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10631. #
  10632. # Check to make sure the PIC flag actually works.
  10633. #
  10634. if test -n "$lt_prog_compiler_pic_CXX"; then
  10635. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10636. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10637. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10638. echo $ECHO_N "(cached) $ECHO_C" >&6
  10639. else
  10640. lt_prog_compiler_pic_works_CXX=no
  10641. ac_outfile=conftest.$ac_objext
  10642. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10643. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10644. # Insert the option either (1) after the last *FLAGS variable, or
  10645. # (2) before a word containing "conftest.", or (3) at the end.
  10646. # Note that $ac_compile itself does not contain backslashes and begins
  10647. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10648. # The option is referenced via a variable to avoid confusing sed.
  10649. lt_compile=`echo "$ac_compile" | $SED \
  10650. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10651. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10652. -e 's:$: $lt_compiler_flag:'`
  10653. (eval echo "\"\$as_me:11787: $lt_compile\"" >&5)
  10654. (eval "$lt_compile" 2>conftest.err)
  10655. ac_status=$?
  10656. cat conftest.err >&5
  10657. echo "$as_me:11791: \$? = $ac_status" >&5
  10658. if (exit $ac_status) && test -s "$ac_outfile"; then
  10659. # The compiler can only warn and ignore the option if not recognized
  10660. # So say no if there are warnings other than the usual output.
  10661. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10662. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10663. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10664. lt_prog_compiler_pic_works_CXX=yes
  10665. fi
  10666. fi
  10667. $rm conftest*
  10668. fi
  10669. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10670. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10671. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10672. case $lt_prog_compiler_pic_CXX in
  10673. "" | " "*) ;;
  10674. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10675. esac
  10676. else
  10677. lt_prog_compiler_pic_CXX=
  10678. lt_prog_compiler_can_build_shared_CXX=no
  10679. fi
  10680. fi
  10681. case $host_os in
  10682. # For platforms which do not support PIC, -DPIC is meaningless:
  10683. *djgpp*)
  10684. lt_prog_compiler_pic_CXX=
  10685. ;;
  10686. *)
  10687. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10688. ;;
  10689. esac
  10690. #
  10691. # Check to make sure the static flag actually works.
  10692. #
  10693. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10694. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10695. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10696. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10697. echo $ECHO_N "(cached) $ECHO_C" >&6
  10698. else
  10699. lt_prog_compiler_static_works_CXX=no
  10700. save_LDFLAGS="$LDFLAGS"
  10701. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10702. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10703. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10704. # The linker can only warn and ignore the option if not recognized
  10705. # So say no if there are warnings
  10706. if test -s conftest.err; then
  10707. # Append any errors to the config.log.
  10708. cat conftest.err 1>&5
  10709. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10710. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10711. if diff conftest.exp conftest.er2 >/dev/null; then
  10712. lt_prog_compiler_static_works_CXX=yes
  10713. fi
  10714. else
  10715. lt_prog_compiler_static_works_CXX=yes
  10716. fi
  10717. fi
  10718. $rm conftest*
  10719. LDFLAGS="$save_LDFLAGS"
  10720. fi
  10721. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10722. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10723. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10724. :
  10725. else
  10726. lt_prog_compiler_static_CXX=
  10727. fi
  10728. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10729. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10730. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10731. echo $ECHO_N "(cached) $ECHO_C" >&6
  10732. else
  10733. lt_cv_prog_compiler_c_o_CXX=no
  10734. $rm -r conftest 2>/dev/null
  10735. mkdir conftest
  10736. cd conftest
  10737. mkdir out
  10738. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10739. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10740. # Insert the option either (1) after the last *FLAGS variable, or
  10741. # (2) before a word containing "conftest.", or (3) at the end.
  10742. # Note that $ac_compile itself does not contain backslashes and begins
  10743. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10744. lt_compile=`echo "$ac_compile" | $SED \
  10745. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10746. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10747. -e 's:$: $lt_compiler_flag:'`
  10748. (eval echo "\"\$as_me:11891: $lt_compile\"" >&5)
  10749. (eval "$lt_compile" 2>out/conftest.err)
  10750. ac_status=$?
  10751. cat out/conftest.err >&5
  10752. echo "$as_me:11895: \$? = $ac_status" >&5
  10753. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10754. then
  10755. # The compiler can only warn and ignore the option if not recognized
  10756. # So say no if there are warnings
  10757. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10758. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10759. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10760. lt_cv_prog_compiler_c_o_CXX=yes
  10761. fi
  10762. fi
  10763. chmod u+w . 2>&5
  10764. $rm conftest*
  10765. # SGI C++ compiler will create directory out/ii_files/ for
  10766. # template instantiation
  10767. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10768. $rm out/* && rmdir out
  10769. cd ..
  10770. rmdir conftest
  10771. $rm conftest*
  10772. fi
  10773. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10774. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10775. hard_links="nottested"
  10776. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10777. # do not overwrite the value of need_locks provided by the user
  10778. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10779. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10780. hard_links=yes
  10781. $rm conftest*
  10782. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10783. touch conftest.a
  10784. ln conftest.a conftest.b 2>&5 || hard_links=no
  10785. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10786. echo "$as_me:$LINENO: result: $hard_links" >&5
  10787. echo "${ECHO_T}$hard_links" >&6
  10788. if test "$hard_links" = no; then
  10789. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10790. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10791. need_locks=warn
  10792. fi
  10793. else
  10794. need_locks=no
  10795. fi
  10796. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10797. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10798. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10799. case $host_os in
  10800. aix4* | aix5*)
  10801. # If we're using GNU nm, then we don't want the "-C" option.
  10802. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10803. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10804. 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'
  10805. else
  10806. 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'
  10807. fi
  10808. ;;
  10809. pw32*)
  10810. export_symbols_cmds_CXX="$ltdll_cmds"
  10811. ;;
  10812. cygwin* | mingw*)
  10813. 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'
  10814. ;;
  10815. *)
  10816. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10817. ;;
  10818. esac
  10819. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10820. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10821. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10822. #
  10823. # Do we need to explicitly link libc?
  10824. #
  10825. case "x$archive_cmds_need_lc_CXX" in
  10826. x|xyes)
  10827. # Assume -lc should be added
  10828. archive_cmds_need_lc_CXX=yes
  10829. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10830. case $archive_cmds_CXX in
  10831. *'~'*)
  10832. # FIXME: we may have to deal with multi-command sequences.
  10833. ;;
  10834. '$CC '*)
  10835. # Test whether the compiler implicitly links with -lc since on some
  10836. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10837. # to ld, don't add -lc before -lgcc.
  10838. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10839. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10840. $rm conftest*
  10841. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10842. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10843. (eval $ac_compile) 2>&5
  10844. ac_status=$?
  10845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10846. (exit $ac_status); } 2>conftest.err; then
  10847. soname=conftest
  10848. lib=conftest
  10849. libobjs=conftest.$ac_objext
  10850. deplibs=
  10851. wl=$lt_prog_compiler_wl_CXX
  10852. pic_flag=$lt_prog_compiler_pic_CXX
  10853. compiler_flags=-v
  10854. linker_flags=-v
  10855. verstring=
  10856. output_objdir=.
  10857. libname=conftest
  10858. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10859. allow_undefined_flag_CXX=
  10860. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10861. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10862. ac_status=$?
  10863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10864. (exit $ac_status); }
  10865. then
  10866. archive_cmds_need_lc_CXX=no
  10867. else
  10868. archive_cmds_need_lc_CXX=yes
  10869. fi
  10870. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10871. else
  10872. cat conftest.err 1>&5
  10873. fi
  10874. $rm conftest*
  10875. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10876. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10877. ;;
  10878. esac
  10879. fi
  10880. ;;
  10881. esac
  10882. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10883. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10884. library_names_spec=
  10885. libname_spec='lib$name'
  10886. soname_spec=
  10887. shrext_cmds=".so"
  10888. postinstall_cmds=
  10889. postuninstall_cmds=
  10890. finish_cmds=
  10891. finish_eval=
  10892. shlibpath_var=
  10893. shlibpath_overrides_runpath=unknown
  10894. version_type=none
  10895. dynamic_linker="$host_os ld.so"
  10896. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10897. if test "$GCC" = yes; then
  10898. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10899. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10900. # if the path contains ";" then we assume it to be the separator
  10901. # otherwise default to the standard path separator (i.e. ":") - it is
  10902. # assumed that no part of a normal pathname contains ";" but that should
  10903. # okay in the real world where ";" in dirpaths is itself problematic.
  10904. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10905. else
  10906. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10907. fi
  10908. else
  10909. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10910. fi
  10911. need_lib_prefix=unknown
  10912. hardcode_into_libs=no
  10913. # when you set need_version to no, make sure it does not cause -set_version
  10914. # flags to be left without arguments
  10915. need_version=unknown
  10916. case $host_os in
  10917. aix3*)
  10918. version_type=linux
  10919. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10920. shlibpath_var=LIBPATH
  10921. # AIX 3 has no versioning support, so we append a major version to the name.
  10922. soname_spec='${libname}${release}${shared_ext}$major'
  10923. ;;
  10924. aix4* | aix5*)
  10925. version_type=linux
  10926. need_lib_prefix=no
  10927. need_version=no
  10928. hardcode_into_libs=yes
  10929. if test "$host_cpu" = ia64; then
  10930. # AIX 5 supports IA64
  10931. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10932. shlibpath_var=LD_LIBRARY_PATH
  10933. else
  10934. # With GCC up to 2.95.x, collect2 would create an import file
  10935. # for dependence libraries. The import file would start with
  10936. # the line `#! .'. This would cause the generated library to
  10937. # depend on `.', always an invalid library. This was fixed in
  10938. # development snapshots of GCC prior to 3.0.
  10939. case $host_os in
  10940. aix4 | aix4.[01] | aix4.[01].*)
  10941. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10942. echo ' yes '
  10943. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10944. :
  10945. else
  10946. can_build_shared=no
  10947. fi
  10948. ;;
  10949. esac
  10950. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10951. # soname into executable. Probably we can add versioning support to
  10952. # collect2, so additional links can be useful in future.
  10953. if test "$aix_use_runtimelinking" = yes; then
  10954. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10955. # instead of lib<name>.a to let people know that these are not
  10956. # typical AIX shared libraries.
  10957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10958. else
  10959. # We preserve .a as extension for shared libraries through AIX4.2
  10960. # and later when we are not doing run time linking.
  10961. library_names_spec='${libname}${release}.a $libname.a'
  10962. soname_spec='${libname}${release}${shared_ext}$major'
  10963. fi
  10964. shlibpath_var=LIBPATH
  10965. fi
  10966. ;;
  10967. amigaos*)
  10968. library_names_spec='$libname.ixlibrary $libname.a'
  10969. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10970. 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'
  10971. ;;
  10972. beos*)
  10973. library_names_spec='${libname}${shared_ext}'
  10974. dynamic_linker="$host_os ld.so"
  10975. shlibpath_var=LIBRARY_PATH
  10976. ;;
  10977. bsdi[45]*)
  10978. version_type=linux
  10979. need_version=no
  10980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10981. soname_spec='${libname}${release}${shared_ext}$major'
  10982. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10983. shlibpath_var=LD_LIBRARY_PATH
  10984. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10985. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10986. # the default ld.so.conf also contains /usr/contrib/lib and
  10987. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10988. # libtool to hard-code these into programs
  10989. ;;
  10990. cygwin* | mingw* | pw32*)
  10991. version_type=windows
  10992. shrext_cmds=".dll"
  10993. need_version=no
  10994. need_lib_prefix=no
  10995. case $GCC,$host_os in
  10996. yes,cygwin* | yes,mingw* | yes,pw32*)
  10997. library_names_spec='$libname.dll.a'
  10998. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10999. postinstall_cmds='base_file=`basename \${file}`~
  11000. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11001. dldir=$destdir/`dirname \$dlpath`~
  11002. test -d \$dldir || mkdir -p \$dldir~
  11003. $install_prog $dir/$dlname \$dldir/$dlname~
  11004. chmod a+x \$dldir/$dlname'
  11005. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11006. dlpath=$dir/\$dldll~
  11007. $rm \$dlpath'
  11008. shlibpath_overrides_runpath=yes
  11009. case $host_os in
  11010. cygwin*)
  11011. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11012. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11013. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11014. ;;
  11015. mingw*)
  11016. # MinGW DLLs use traditional 'lib' prefix
  11017. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11018. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11019. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11020. # It is most probably a Windows format PATH printed by
  11021. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11022. # path with ; separators, and with drive letters. We can handle the
  11023. # drive letters (cygwin fileutils understands them), so leave them,
  11024. # especially as we might pass files found there to a mingw objdump,
  11025. # which wouldn't understand a cygwinified path. Ahh.
  11026. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11027. else
  11028. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11029. fi
  11030. ;;
  11031. pw32*)
  11032. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11033. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11034. ;;
  11035. esac
  11036. ;;
  11037. *)
  11038. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11039. ;;
  11040. esac
  11041. dynamic_linker='Win32 ld.exe'
  11042. # FIXME: first we should search . and the directory the executable is in
  11043. shlibpath_var=PATH
  11044. ;;
  11045. darwin* | rhapsody*)
  11046. dynamic_linker="$host_os dyld"
  11047. version_type=darwin
  11048. need_lib_prefix=no
  11049. need_version=no
  11050. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11051. soname_spec='${libname}${release}${major}$shared_ext'
  11052. shlibpath_overrides_runpath=yes
  11053. shlibpath_var=DYLD_LIBRARY_PATH
  11054. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11055. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11056. if test "$GCC" = yes; then
  11057. 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"`
  11058. else
  11059. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11060. fi
  11061. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11062. ;;
  11063. dgux*)
  11064. version_type=linux
  11065. need_lib_prefix=no
  11066. need_version=no
  11067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11068. soname_spec='${libname}${release}${shared_ext}$major'
  11069. shlibpath_var=LD_LIBRARY_PATH
  11070. ;;
  11071. freebsd1*)
  11072. dynamic_linker=no
  11073. ;;
  11074. kfreebsd*-gnu)
  11075. version_type=linux
  11076. need_lib_prefix=no
  11077. need_version=no
  11078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11079. soname_spec='${libname}${release}${shared_ext}$major'
  11080. shlibpath_var=LD_LIBRARY_PATH
  11081. shlibpath_overrides_runpath=no
  11082. hardcode_into_libs=yes
  11083. dynamic_linker='GNU ld.so'
  11084. ;;
  11085. freebsd* | dragonfly*)
  11086. # DragonFly does not have aout. When/if they implement a new
  11087. # versioning mechanism, adjust this.
  11088. if test -x /usr/bin/objformat; then
  11089. objformat=`/usr/bin/objformat`
  11090. else
  11091. case $host_os in
  11092. freebsd[123]*) objformat=aout ;;
  11093. *) objformat=elf ;;
  11094. esac
  11095. fi
  11096. version_type=freebsd-$objformat
  11097. case $version_type in
  11098. freebsd-elf*)
  11099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11100. need_version=no
  11101. need_lib_prefix=no
  11102. ;;
  11103. freebsd-*)
  11104. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11105. need_version=yes
  11106. ;;
  11107. esac
  11108. shlibpath_var=LD_LIBRARY_PATH
  11109. case $host_os in
  11110. freebsd2*)
  11111. shlibpath_overrides_runpath=yes
  11112. ;;
  11113. freebsd3.[01]* | freebsdelf3.[01]*)
  11114. shlibpath_overrides_runpath=yes
  11115. hardcode_into_libs=yes
  11116. ;;
  11117. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11118. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11119. shlibpath_overrides_runpath=no
  11120. hardcode_into_libs=yes
  11121. ;;
  11122. freebsd*) # from 4.6 on
  11123. shlibpath_overrides_runpath=yes
  11124. hardcode_into_libs=yes
  11125. ;;
  11126. esac
  11127. ;;
  11128. gnu*)
  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. shlibpath_var=LD_LIBRARY_PATH
  11135. hardcode_into_libs=yes
  11136. ;;
  11137. hpux9* | hpux10* | hpux11*)
  11138. # Give a soname corresponding to the major version so that dld.sl refuses to
  11139. # link against other versions.
  11140. version_type=sunos
  11141. need_lib_prefix=no
  11142. need_version=no
  11143. case $host_cpu in
  11144. ia64*)
  11145. shrext_cmds='.so'
  11146. hardcode_into_libs=yes
  11147. dynamic_linker="$host_os dld.so"
  11148. shlibpath_var=LD_LIBRARY_PATH
  11149. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11151. soname_spec='${libname}${release}${shared_ext}$major'
  11152. if test "X$HPUX_IA64_MODE" = X32; then
  11153. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11154. else
  11155. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11156. fi
  11157. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11158. ;;
  11159. hppa*64*)
  11160. shrext_cmds='.sl'
  11161. hardcode_into_libs=yes
  11162. dynamic_linker="$host_os dld.sl"
  11163. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11164. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11166. soname_spec='${libname}${release}${shared_ext}$major'
  11167. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11168. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11169. ;;
  11170. *)
  11171. shrext_cmds='.sl'
  11172. dynamic_linker="$host_os dld.sl"
  11173. shlibpath_var=SHLIB_PATH
  11174. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11176. soname_spec='${libname}${release}${shared_ext}$major'
  11177. ;;
  11178. esac
  11179. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11180. postinstall_cmds='chmod 555 $lib'
  11181. ;;
  11182. interix3*)
  11183. version_type=linux
  11184. need_lib_prefix=no
  11185. need_version=no
  11186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11187. soname_spec='${libname}${release}${shared_ext}$major'
  11188. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11189. shlibpath_var=LD_LIBRARY_PATH
  11190. shlibpath_overrides_runpath=no
  11191. hardcode_into_libs=yes
  11192. ;;
  11193. irix5* | irix6* | nonstopux*)
  11194. case $host_os in
  11195. nonstopux*) version_type=nonstopux ;;
  11196. *)
  11197. if test "$lt_cv_prog_gnu_ld" = yes; then
  11198. version_type=linux
  11199. else
  11200. version_type=irix
  11201. fi ;;
  11202. esac
  11203. need_lib_prefix=no
  11204. need_version=no
  11205. soname_spec='${libname}${release}${shared_ext}$major'
  11206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11207. case $host_os in
  11208. irix5* | nonstopux*)
  11209. libsuff= shlibsuff=
  11210. ;;
  11211. *)
  11212. case $LD in # libtool.m4 will add one of these switches to LD
  11213. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11214. libsuff= shlibsuff= libmagic=32-bit;;
  11215. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11216. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11217. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11218. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11219. *) libsuff= shlibsuff= libmagic=never-match;;
  11220. esac
  11221. ;;
  11222. esac
  11223. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11224. shlibpath_overrides_runpath=no
  11225. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11226. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11227. hardcode_into_libs=yes
  11228. ;;
  11229. # No shared lib support for Linux oldld, aout, or coff.
  11230. linux*oldld* | linux*aout* | linux*coff*)
  11231. dynamic_linker=no
  11232. ;;
  11233. # This must be Linux ELF.
  11234. linux*)
  11235. version_type=linux
  11236. need_lib_prefix=no
  11237. need_version=no
  11238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11239. soname_spec='${libname}${release}${shared_ext}$major'
  11240. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11241. shlibpath_var=LD_LIBRARY_PATH
  11242. shlibpath_overrides_runpath=no
  11243. # This implies no fast_install, which is unacceptable.
  11244. # Some rework will be needed to allow for fast_install
  11245. # before this can be enabled.
  11246. hardcode_into_libs=yes
  11247. # find out which ABI we are using
  11248. libsuff=
  11249. case "$host_cpu" in
  11250. x86_64*|s390x*|powerpc64*)
  11251. echo '#line 12427 "configure"' > conftest.$ac_ext
  11252. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11253. (eval $ac_compile) 2>&5
  11254. ac_status=$?
  11255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11256. (exit $ac_status); }; then
  11257. case `/usr/bin/file conftest.$ac_objext` in
  11258. *64-bit*)
  11259. libsuff=64
  11260. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  11261. ;;
  11262. esac
  11263. fi
  11264. rm -rf conftest*
  11265. ;;
  11266. esac
  11267. # Append ld.so.conf contents to the search path
  11268. if test -f /etc/ld.so.conf; then
  11269. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11270. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  11271. fi
  11272. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11273. # powerpc, because MkLinux only supported shared libraries with the
  11274. # GNU dynamic linker. Since this was broken with cross compilers,
  11275. # most powerpc-linux boxes support dynamic linking these days and
  11276. # people can always --disable-shared, the test was removed, and we
  11277. # assume the GNU/Linux dynamic linker is in use.
  11278. dynamic_linker='GNU/Linux ld.so'
  11279. ;;
  11280. knetbsd*-gnu)
  11281. version_type=linux
  11282. need_lib_prefix=no
  11283. need_version=no
  11284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11285. soname_spec='${libname}${release}${shared_ext}$major'
  11286. shlibpath_var=LD_LIBRARY_PATH
  11287. shlibpath_overrides_runpath=no
  11288. hardcode_into_libs=yes
  11289. dynamic_linker='GNU ld.so'
  11290. ;;
  11291. netbsd*)
  11292. version_type=sunos
  11293. need_lib_prefix=no
  11294. need_version=no
  11295. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11297. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11298. dynamic_linker='NetBSD (a.out) ld.so'
  11299. else
  11300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11301. soname_spec='${libname}${release}${shared_ext}$major'
  11302. dynamic_linker='NetBSD ld.elf_so'
  11303. fi
  11304. shlibpath_var=LD_LIBRARY_PATH
  11305. shlibpath_overrides_runpath=yes
  11306. hardcode_into_libs=yes
  11307. ;;
  11308. newsos6)
  11309. version_type=linux
  11310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11311. shlibpath_var=LD_LIBRARY_PATH
  11312. shlibpath_overrides_runpath=yes
  11313. ;;
  11314. nto-qnx*)
  11315. version_type=linux
  11316. need_lib_prefix=no
  11317. need_version=no
  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. shlibpath_overrides_runpath=yes
  11322. ;;
  11323. openbsd*)
  11324. version_type=sunos
  11325. sys_lib_dlsearch_path_spec="/usr/lib"
  11326. need_lib_prefix=no
  11327. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11328. case $host_os in
  11329. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11330. *) need_version=no ;;
  11331. esac
  11332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11333. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11334. shlibpath_var=LD_LIBRARY_PATH
  11335. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11336. case $host_os in
  11337. openbsd2.[89] | openbsd2.[89].*)
  11338. shlibpath_overrides_runpath=no
  11339. ;;
  11340. *)
  11341. shlibpath_overrides_runpath=yes
  11342. ;;
  11343. esac
  11344. else
  11345. shlibpath_overrides_runpath=yes
  11346. fi
  11347. ;;
  11348. os2*)
  11349. libname_spec='$name'
  11350. shrext_cmds=".dll"
  11351. need_lib_prefix=no
  11352. library_names_spec='$libname${shared_ext} $libname.a'
  11353. dynamic_linker='OS/2 ld.exe'
  11354. shlibpath_var=LIBPATH
  11355. ;;
  11356. osf3* | osf4* | osf5*)
  11357. version_type=osf
  11358. need_lib_prefix=no
  11359. need_version=no
  11360. soname_spec='${libname}${release}${shared_ext}$major'
  11361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11362. shlibpath_var=LD_LIBRARY_PATH
  11363. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11364. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11365. ;;
  11366. solaris*)
  11367. version_type=linux
  11368. need_lib_prefix=no
  11369. need_version=no
  11370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11371. soname_spec='${libname}${release}${shared_ext}$major'
  11372. shlibpath_var=LD_LIBRARY_PATH
  11373. shlibpath_overrides_runpath=yes
  11374. hardcode_into_libs=yes
  11375. # ldd complains unless libraries are executable
  11376. postinstall_cmds='chmod +x $lib'
  11377. ;;
  11378. sunos4*)
  11379. version_type=sunos
  11380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11381. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11382. shlibpath_var=LD_LIBRARY_PATH
  11383. shlibpath_overrides_runpath=yes
  11384. if test "$with_gnu_ld" = yes; then
  11385. need_lib_prefix=no
  11386. fi
  11387. need_version=yes
  11388. ;;
  11389. sysv4 | sysv4.3*)
  11390. version_type=linux
  11391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11392. soname_spec='${libname}${release}${shared_ext}$major'
  11393. shlibpath_var=LD_LIBRARY_PATH
  11394. case $host_vendor in
  11395. sni)
  11396. shlibpath_overrides_runpath=no
  11397. need_lib_prefix=no
  11398. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11399. runpath_var=LD_RUN_PATH
  11400. ;;
  11401. siemens)
  11402. need_lib_prefix=no
  11403. ;;
  11404. motorola)
  11405. need_lib_prefix=no
  11406. need_version=no
  11407. shlibpath_overrides_runpath=no
  11408. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11409. ;;
  11410. esac
  11411. ;;
  11412. sysv4*MP*)
  11413. if test -d /usr/nec ;then
  11414. version_type=linux
  11415. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11416. soname_spec='$libname${shared_ext}.$major'
  11417. shlibpath_var=LD_LIBRARY_PATH
  11418. fi
  11419. ;;
  11420. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11421. version_type=freebsd-elf
  11422. need_lib_prefix=no
  11423. need_version=no
  11424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11425. soname_spec='${libname}${release}${shared_ext}$major'
  11426. shlibpath_var=LD_LIBRARY_PATH
  11427. hardcode_into_libs=yes
  11428. if test "$with_gnu_ld" = yes; then
  11429. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11430. shlibpath_overrides_runpath=no
  11431. else
  11432. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11433. shlibpath_overrides_runpath=yes
  11434. case $host_os in
  11435. sco3.2v5*)
  11436. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11437. ;;
  11438. esac
  11439. fi
  11440. sys_lib_dlsearch_path_spec='/usr/lib'
  11441. ;;
  11442. uts4*)
  11443. version_type=linux
  11444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11445. soname_spec='${libname}${release}${shared_ext}$major'
  11446. shlibpath_var=LD_LIBRARY_PATH
  11447. ;;
  11448. *)
  11449. dynamic_linker=no
  11450. ;;
  11451. esac
  11452. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11453. echo "${ECHO_T}$dynamic_linker" >&6
  11454. test "$dynamic_linker" = no && can_build_shared=no
  11455. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11456. if test "$GCC" = yes; then
  11457. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11458. fi
  11459. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11460. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11461. hardcode_action_CXX=
  11462. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11463. test -n "$runpath_var_CXX" || \
  11464. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11465. # We can hardcode non-existant directories.
  11466. if test "$hardcode_direct_CXX" != no &&
  11467. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11468. # have to relink, otherwise we might link with an installed library
  11469. # when we should be linking with a yet-to-be-installed one
  11470. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11471. test "$hardcode_minus_L_CXX" != no; then
  11472. # Linking always hardcodes the temporary library directory.
  11473. hardcode_action_CXX=relink
  11474. else
  11475. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11476. hardcode_action_CXX=immediate
  11477. fi
  11478. else
  11479. # We cannot hardcode anything, or else we can only hardcode existing
  11480. # directories.
  11481. hardcode_action_CXX=unsupported
  11482. fi
  11483. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11484. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11485. if test "$hardcode_action_CXX" = relink; then
  11486. # Fast installation is not supported
  11487. enable_fast_install=no
  11488. elif test "$shlibpath_overrides_runpath" = yes ||
  11489. test "$enable_shared" = no; then
  11490. # Fast installation is not necessary
  11491. enable_fast_install=needless
  11492. fi
  11493. # The else clause should only fire when bootstrapping the
  11494. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11495. # with your package, and you will get complaints that there are
  11496. # no rules to generate ltmain.sh.
  11497. if test -f "$ltmain"; then
  11498. # See if we are running on zsh, and set the options which allow our commands through
  11499. # without removal of \ escapes.
  11500. if test -n "${ZSH_VERSION+set}" ; then
  11501. setopt NO_GLOB_SUBST
  11502. fi
  11503. # Now quote all the things that may contain metacharacters while being
  11504. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11505. # variables and quote the copies for generation of the libtool script.
  11506. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11507. SED SHELL STRIP \
  11508. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11509. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11510. deplibs_check_method reload_flag reload_cmds need_locks \
  11511. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11512. lt_cv_sys_global_symbol_to_c_name_address \
  11513. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11514. old_postinstall_cmds old_postuninstall_cmds \
  11515. compiler_CXX \
  11516. CC_CXX \
  11517. LD_CXX \
  11518. lt_prog_compiler_wl_CXX \
  11519. lt_prog_compiler_pic_CXX \
  11520. lt_prog_compiler_static_CXX \
  11521. lt_prog_compiler_no_builtin_flag_CXX \
  11522. export_dynamic_flag_spec_CXX \
  11523. thread_safe_flag_spec_CXX \
  11524. whole_archive_flag_spec_CXX \
  11525. enable_shared_with_static_runtimes_CXX \
  11526. old_archive_cmds_CXX \
  11527. old_archive_from_new_cmds_CXX \
  11528. predep_objects_CXX \
  11529. postdep_objects_CXX \
  11530. predeps_CXX \
  11531. postdeps_CXX \
  11532. compiler_lib_search_path_CXX \
  11533. archive_cmds_CXX \
  11534. archive_expsym_cmds_CXX \
  11535. postinstall_cmds_CXX \
  11536. postuninstall_cmds_CXX \
  11537. old_archive_from_expsyms_cmds_CXX \
  11538. allow_undefined_flag_CXX \
  11539. no_undefined_flag_CXX \
  11540. export_symbols_cmds_CXX \
  11541. hardcode_libdir_flag_spec_CXX \
  11542. hardcode_libdir_flag_spec_ld_CXX \
  11543. hardcode_libdir_separator_CXX \
  11544. hardcode_automatic_CXX \
  11545. module_cmds_CXX \
  11546. module_expsym_cmds_CXX \
  11547. lt_cv_prog_compiler_c_o_CXX \
  11548. exclude_expsyms_CXX \
  11549. include_expsyms_CXX; do
  11550. case $var in
  11551. old_archive_cmds_CXX | \
  11552. old_archive_from_new_cmds_CXX | \
  11553. archive_cmds_CXX | \
  11554. archive_expsym_cmds_CXX | \
  11555. module_cmds_CXX | \
  11556. module_expsym_cmds_CXX | \
  11557. old_archive_from_expsyms_cmds_CXX | \
  11558. export_symbols_cmds_CXX | \
  11559. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11560. postinstall_cmds | postuninstall_cmds | \
  11561. old_postinstall_cmds | old_postuninstall_cmds | \
  11562. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11563. # Double-quote double-evaled strings.
  11564. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11565. ;;
  11566. *)
  11567. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11568. ;;
  11569. esac
  11570. done
  11571. case $lt_echo in
  11572. *'\$0 --fallback-echo"')
  11573. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11574. ;;
  11575. esac
  11576. cfgfile="$ofile"
  11577. cat <<__EOF__ >> "$cfgfile"
  11578. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11579. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11580. # Shell to use when invoking shell scripts.
  11581. SHELL=$lt_SHELL
  11582. # Whether or not to build shared libraries.
  11583. build_libtool_libs=$enable_shared
  11584. # Whether or not to build static libraries.
  11585. build_old_libs=$enable_static
  11586. # Whether or not to add -lc for building shared libraries.
  11587. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11588. # Whether or not to disallow shared libs when runtime libs are static
  11589. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11590. # Whether or not to optimize for fast installation.
  11591. fast_install=$enable_fast_install
  11592. # The host system.
  11593. host_alias=$host_alias
  11594. host=$host
  11595. host_os=$host_os
  11596. # The build system.
  11597. build_alias=$build_alias
  11598. build=$build
  11599. build_os=$build_os
  11600. # An echo program that does not interpret backslashes.
  11601. echo=$lt_echo
  11602. # The archiver.
  11603. AR=$lt_AR
  11604. AR_FLAGS=$lt_AR_FLAGS
  11605. # A C compiler.
  11606. LTCC=$lt_LTCC
  11607. # LTCC compiler flags.
  11608. LTCFLAGS=$lt_LTCFLAGS
  11609. # A language-specific compiler.
  11610. CC=$lt_compiler_CXX
  11611. # Is the compiler the GNU C compiler?
  11612. with_gcc=$GCC_CXX
  11613. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  11614. gcc_ver=\`gcc -dumpversion\`
  11615. # An ERE matcher.
  11616. EGREP=$lt_EGREP
  11617. # The linker used to build libraries.
  11618. LD=$lt_LD_CXX
  11619. # Whether we need hard or soft links.
  11620. LN_S=$lt_LN_S
  11621. # A BSD-compatible nm program.
  11622. NM=$lt_NM
  11623. # A symbol stripping program
  11624. STRIP=$lt_STRIP
  11625. # Used to examine libraries when file_magic_cmd begins "file"
  11626. MAGIC_CMD=$MAGIC_CMD
  11627. # Used on cygwin: DLL creation program.
  11628. DLLTOOL="$DLLTOOL"
  11629. # Used on cygwin: object dumper.
  11630. OBJDUMP="$OBJDUMP"
  11631. # Used on cygwin: assembler.
  11632. AS="$AS"
  11633. # The name of the directory that contains temporary libtool files.
  11634. objdir=$objdir
  11635. # How to create reloadable object files.
  11636. reload_flag=$lt_reload_flag
  11637. reload_cmds=$lt_reload_cmds
  11638. # How to pass a linker flag through the compiler.
  11639. wl=$lt_lt_prog_compiler_wl_CXX
  11640. # Object file suffix (normally "o").
  11641. objext="$ac_objext"
  11642. # Old archive suffix (normally "a").
  11643. libext="$libext"
  11644. # Shared library suffix (normally ".so").
  11645. shrext_cmds='$shrext_cmds'
  11646. # Executable file suffix (normally "").
  11647. exeext="$exeext"
  11648. # Additional compiler flags for building library objects.
  11649. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11650. pic_mode=$pic_mode
  11651. # What is the maximum length of a command?
  11652. max_cmd_len=$lt_cv_sys_max_cmd_len
  11653. # Does compiler simultaneously support -c and -o options?
  11654. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11655. # Must we lock files when doing compilation?
  11656. need_locks=$lt_need_locks
  11657. # Do we need the lib prefix for modules?
  11658. need_lib_prefix=$need_lib_prefix
  11659. # Do we need a version for libraries?
  11660. need_version=$need_version
  11661. # Whether dlopen is supported.
  11662. dlopen_support=$enable_dlopen
  11663. # Whether dlopen of programs is supported.
  11664. dlopen_self=$enable_dlopen_self
  11665. # Whether dlopen of statically linked programs is supported.
  11666. dlopen_self_static=$enable_dlopen_self_static
  11667. # Compiler flag to prevent dynamic linking.
  11668. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11669. # Compiler flag to turn off builtin functions.
  11670. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11671. # Compiler flag to allow reflexive dlopens.
  11672. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11673. # Compiler flag to generate shared objects directly from archives.
  11674. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11675. # Compiler flag to generate thread-safe objects.
  11676. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11677. # Library versioning type.
  11678. version_type=$version_type
  11679. # Format of library name prefix.
  11680. libname_spec=$lt_libname_spec
  11681. # List of archive names. First name is the real one, the rest are links.
  11682. # The last name is the one that the linker finds with -lNAME.
  11683. library_names_spec=$lt_library_names_spec
  11684. # The coded name of the library, if different from the real name.
  11685. soname_spec=$lt_soname_spec
  11686. # Commands used to build and install an old-style archive.
  11687. RANLIB=$lt_RANLIB
  11688. old_archive_cmds=$lt_old_archive_cmds_CXX
  11689. old_postinstall_cmds=$lt_old_postinstall_cmds
  11690. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11691. # Create an old-style archive from a shared archive.
  11692. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11693. # Create a temporary old-style archive to link instead of a shared archive.
  11694. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11695. # Commands used to build and install a shared archive.
  11696. archive_cmds=$lt_archive_cmds_CXX
  11697. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11698. postinstall_cmds=$lt_postinstall_cmds
  11699. postuninstall_cmds=$lt_postuninstall_cmds
  11700. # Commands used to build a loadable module (assumed same as above if empty)
  11701. module_cmds=$lt_module_cmds_CXX
  11702. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11703. # Commands to strip libraries.
  11704. old_striplib=$lt_old_striplib
  11705. striplib=$lt_striplib
  11706. # Dependencies to place before the objects being linked to create a
  11707. # shared library.
  11708. predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11709. # Dependencies to place after the objects being linked to create a
  11710. # shared library.
  11711. postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11712. # Dependencies to place before the objects being linked to create a
  11713. # shared library.
  11714. predeps=$lt_predeps_CXX
  11715. # Dependencies to place after the objects being linked to create a
  11716. # shared library.
  11717. postdeps=$lt_postdeps_CXX
  11718. # The library search path used internally by the compiler when linking
  11719. # a shared library.
  11720. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11721. # Method to check whether dependent libraries are shared objects.
  11722. deplibs_check_method=$lt_deplibs_check_method
  11723. # Command to use when deplibs_check_method == file_magic.
  11724. file_magic_cmd=$lt_file_magic_cmd
  11725. # Flag that allows shared libraries with undefined symbols to be built.
  11726. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11727. # Flag that forces no undefined symbols.
  11728. no_undefined_flag=$lt_no_undefined_flag_CXX
  11729. # Commands used to finish a libtool library installation in a directory.
  11730. finish_cmds=$lt_finish_cmds
  11731. # Same as above, but a single script fragment to be evaled but not shown.
  11732. finish_eval=$lt_finish_eval
  11733. # Take the output of nm and produce a listing of raw symbols and C names.
  11734. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11735. # Transform the output of nm in a proper C declaration
  11736. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11737. # Transform the output of nm in a C name address pair
  11738. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11739. # This is the shared library runtime path variable.
  11740. runpath_var=$runpath_var
  11741. # This is the shared library path variable.
  11742. shlibpath_var=$shlibpath_var
  11743. # Is shlibpath searched before the hard-coded library search path?
  11744. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11745. # How to hardcode a shared library path into an executable.
  11746. hardcode_action=$hardcode_action_CXX
  11747. # Whether we should hardcode library paths into libraries.
  11748. hardcode_into_libs=$hardcode_into_libs
  11749. # Flag to hardcode \$libdir into a binary during linking.
  11750. # This must work even if \$libdir does not exist.
  11751. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11752. # If ld is used when linking, flag to hardcode \$libdir into
  11753. # a binary during linking. This must work even if \$libdir does
  11754. # not exist.
  11755. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11756. # Whether we need a single -rpath flag with a separated argument.
  11757. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11758. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11759. # resulting binary.
  11760. hardcode_direct=$hardcode_direct_CXX
  11761. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11762. # resulting binary.
  11763. hardcode_minus_L=$hardcode_minus_L_CXX
  11764. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11765. # the resulting binary.
  11766. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11767. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11768. # and all subsequent libraries and executables linked against it.
  11769. hardcode_automatic=$hardcode_automatic_CXX
  11770. # Variables whose values should be saved in libtool wrapper scripts and
  11771. # restored at relink time.
  11772. variables_saved_for_relink="$variables_saved_for_relink"
  11773. # Whether libtool must link a program against all its dependency libraries.
  11774. link_all_deplibs=$link_all_deplibs_CXX
  11775. # Compile-time system search path for libraries
  11776. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11777. # Run-time system search path for libraries
  11778. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11779. # Fix the shell variable \$srcfile for the compiler.
  11780. fix_srcfile_path="$fix_srcfile_path_CXX"
  11781. # Set to yes if exported symbols are required.
  11782. always_export_symbols=$always_export_symbols_CXX
  11783. # The commands to list exported symbols.
  11784. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11785. # The commands to extract the exported symbol list from a shared archive.
  11786. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11787. # Symbols that should not be listed in the preloaded symbols.
  11788. exclude_expsyms=$lt_exclude_expsyms_CXX
  11789. # Symbols that must always be exported.
  11790. include_expsyms=$lt_include_expsyms_CXX
  11791. # ### END LIBTOOL TAG CONFIG: $tagname
  11792. __EOF__
  11793. else
  11794. # If there is no Makefile yet, we rely on a make rule to execute
  11795. # `config.status --recheck' to rerun these tests and create the
  11796. # libtool script then.
  11797. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11798. if test -f "$ltmain_in"; then
  11799. test -f Makefile && make "$ltmain"
  11800. fi
  11801. fi
  11802. ac_ext=c
  11803. ac_cpp='$CPP $CPPFLAGS'
  11804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11807. CC=$lt_save_CC
  11808. LDCXX=$LD
  11809. LD=$lt_save_LD
  11810. GCC=$lt_save_GCC
  11811. with_gnu_ldcxx=$with_gnu_ld
  11812. with_gnu_ld=$lt_save_with_gnu_ld
  11813. lt_cv_path_LDCXX=$lt_cv_path_LD
  11814. lt_cv_path_LD=$lt_save_path_LD
  11815. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11816. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11817. else
  11818. tagname=""
  11819. fi
  11820. ;;
  11821. F77)
  11822. if test -n "$F77" && test "X$F77" != "Xno"; then
  11823. ac_ext=f
  11824. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11825. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11826. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11827. archive_cmds_need_lc_F77=no
  11828. allow_undefined_flag_F77=
  11829. always_export_symbols_F77=no
  11830. archive_expsym_cmds_F77=
  11831. export_dynamic_flag_spec_F77=
  11832. hardcode_direct_F77=no
  11833. hardcode_libdir_flag_spec_F77=
  11834. hardcode_libdir_flag_spec_ld_F77=
  11835. hardcode_libdir_separator_F77=
  11836. hardcode_minus_L_F77=no
  11837. hardcode_automatic_F77=no
  11838. module_cmds_F77=
  11839. module_expsym_cmds_F77=
  11840. link_all_deplibs_F77=unknown
  11841. old_archive_cmds_F77=$old_archive_cmds
  11842. no_undefined_flag_F77=
  11843. whole_archive_flag_spec_F77=
  11844. enable_shared_with_static_runtimes_F77=no
  11845. # Source file extension for f77 test sources.
  11846. ac_ext=f
  11847. # Object file extension for compiled f77 test sources.
  11848. objext=o
  11849. objext_F77=$objext
  11850. # Code to be used in simple compile tests
  11851. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11852. # Code to be used in simple link tests
  11853. lt_simple_link_test_code=" program t\n end\n"
  11854. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11855. # If no C compiler was specified, use CC.
  11856. LTCC=${LTCC-"$CC"}
  11857. # If no C compiler flags were specified, use CFLAGS.
  11858. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11859. # Allow CC to be a program name with arguments.
  11860. compiler=$CC
  11861. # save warnings/boilerplate of simple test code
  11862. ac_outfile=conftest.$ac_objext
  11863. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11864. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11865. _lt_compiler_boilerplate=`cat conftest.err`
  11866. $rm conftest*
  11867. ac_outfile=conftest.$ac_objext
  11868. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11869. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11870. _lt_linker_boilerplate=`cat conftest.err`
  11871. $rm conftest*
  11872. # Allow CC to be a program name with arguments.
  11873. lt_save_CC="$CC"
  11874. CC=${F77-"f77"}
  11875. compiler=$CC
  11876. compiler_F77=$CC
  11877. for cc_temp in $compiler""; do
  11878. case $cc_temp in
  11879. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11880. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11881. \-*) ;;
  11882. *) break;;
  11883. esac
  11884. done
  11885. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11886. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11887. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11888. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11889. echo "${ECHO_T}$can_build_shared" >&6
  11890. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11891. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11892. test "$can_build_shared" = "no" && enable_shared=no
  11893. # On AIX, shared libraries and static libraries use the same namespace, and
  11894. # are all built from PIC.
  11895. case $host_os in
  11896. aix3*)
  11897. test "$enable_shared" = yes && enable_static=no
  11898. if test -n "$RANLIB"; then
  11899. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11900. postinstall_cmds='$RANLIB $lib'
  11901. fi
  11902. ;;
  11903. aix4* | aix5*)
  11904. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11905. test "$enable_shared" = yes && enable_static=no
  11906. fi
  11907. ;;
  11908. esac
  11909. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11910. echo "${ECHO_T}$enable_shared" >&6
  11911. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11912. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11913. # Make sure either enable_shared or enable_static is yes.
  11914. test "$enable_shared" = yes || enable_static=yes
  11915. echo "$as_me:$LINENO: result: $enable_static" >&5
  11916. echo "${ECHO_T}$enable_static" >&6
  11917. GCC_F77="$G77"
  11918. LD_F77="$LD"
  11919. lt_prog_compiler_wl_F77=
  11920. lt_prog_compiler_pic_F77=
  11921. lt_prog_compiler_static_F77=
  11922. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11923. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11924. if test "$GCC" = yes; then
  11925. lt_prog_compiler_wl_F77='-Wl,'
  11926. lt_prog_compiler_static_F77='-static'
  11927. case $host_os in
  11928. aix*)
  11929. # All AIX code is PIC.
  11930. if test "$host_cpu" = ia64; then
  11931. # AIX 5 now supports IA64 processor
  11932. lt_prog_compiler_static_F77='-Bstatic'
  11933. fi
  11934. ;;
  11935. amigaos*)
  11936. # FIXME: we need at least 68020 code to build shared libraries, but
  11937. # adding the `-m68020' flag to GCC prevents building anything better,
  11938. # like `-m68040'.
  11939. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11940. ;;
  11941. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11942. # PIC is the default for these OSes.
  11943. ;;
  11944. mingw* | pw32* | os2*)
  11945. # This hack is so that the source file can tell whether it is being
  11946. # built for inclusion in a dll (and should export symbols for example).
  11947. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11948. ;;
  11949. darwin* | rhapsody*)
  11950. # PIC is the default on this platform
  11951. # Common symbols not allowed in MH_DYLIB files
  11952. lt_prog_compiler_pic_F77='-fno-common'
  11953. ;;
  11954. interix3*)
  11955. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11956. # Instead, we relocate shared libraries at runtime.
  11957. ;;
  11958. msdosdjgpp*)
  11959. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11960. # on systems that don't support them.
  11961. lt_prog_compiler_can_build_shared_F77=no
  11962. enable_shared=no
  11963. ;;
  11964. sysv4*MP*)
  11965. if test -d /usr/nec; then
  11966. lt_prog_compiler_pic_F77=-Kconform_pic
  11967. fi
  11968. ;;
  11969. hpux*)
  11970. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11971. # not for PA HP-UX.
  11972. case $host_cpu in
  11973. hppa*64*|ia64*)
  11974. # +Z the default
  11975. ;;
  11976. *)
  11977. lt_prog_compiler_pic_F77='-fPIC'
  11978. ;;
  11979. esac
  11980. ;;
  11981. *)
  11982. lt_prog_compiler_pic_F77='-fPIC'
  11983. ;;
  11984. esac
  11985. else
  11986. # PORTME Check for flag to pass linker flags through the system compiler.
  11987. case $host_os in
  11988. aix*)
  11989. lt_prog_compiler_wl_F77='-Wl,'
  11990. if test "$host_cpu" = ia64; then
  11991. # AIX 5 now supports IA64 processor
  11992. lt_prog_compiler_static_F77='-Bstatic'
  11993. else
  11994. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11995. fi
  11996. ;;
  11997. darwin*)
  11998. # PIC is the default on this platform
  11999. # Common symbols not allowed in MH_DYLIB files
  12000. case $cc_basename in
  12001. xlc*)
  12002. lt_prog_compiler_pic_F77='-qnocommon'
  12003. lt_prog_compiler_wl_F77='-Wl,'
  12004. ;;
  12005. esac
  12006. ;;
  12007. mingw* | pw32* | os2*)
  12008. # This hack is so that the source file can tell whether it is being
  12009. # built for inclusion in a dll (and should export symbols for example).
  12010. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12011. ;;
  12012. hpux9* | hpux10* | hpux11*)
  12013. lt_prog_compiler_wl_F77='-Wl,'
  12014. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12015. # not for PA HP-UX.
  12016. case $host_cpu in
  12017. hppa*64*|ia64*)
  12018. # +Z the default
  12019. ;;
  12020. *)
  12021. lt_prog_compiler_pic_F77='+Z'
  12022. ;;
  12023. esac
  12024. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12025. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12026. ;;
  12027. irix5* | irix6* | nonstopux*)
  12028. lt_prog_compiler_wl_F77='-Wl,'
  12029. # PIC (with -KPIC) is the default.
  12030. lt_prog_compiler_static_F77='-non_shared'
  12031. ;;
  12032. newsos6)
  12033. lt_prog_compiler_pic_F77='-KPIC'
  12034. lt_prog_compiler_static_F77='-Bstatic'
  12035. ;;
  12036. linux*)
  12037. case $cc_basename in
  12038. icc* | ecc*)
  12039. lt_prog_compiler_wl_F77='-Wl,'
  12040. lt_prog_compiler_pic_F77='-KPIC'
  12041. lt_prog_compiler_static_F77='-static'
  12042. ;;
  12043. pgcc* | pgf77* | pgf90* | pgf95*)
  12044. # Portland Group compilers (*not* the Pentium gcc compiler,
  12045. # which looks to be a dead project)
  12046. lt_prog_compiler_wl_F77='-Wl,'
  12047. lt_prog_compiler_pic_F77='-fpic'
  12048. lt_prog_compiler_static_F77='-Bstatic'
  12049. ;;
  12050. ccc*)
  12051. lt_prog_compiler_wl_F77='-Wl,'
  12052. # All Alpha code is PIC.
  12053. lt_prog_compiler_static_F77='-non_shared'
  12054. ;;
  12055. esac
  12056. ;;
  12057. osf3* | osf4* | osf5*)
  12058. lt_prog_compiler_wl_F77='-Wl,'
  12059. # All OSF/1 code is PIC.
  12060. lt_prog_compiler_static_F77='-non_shared'
  12061. ;;
  12062. solaris*)
  12063. lt_prog_compiler_pic_F77='-KPIC'
  12064. lt_prog_compiler_static_F77='-Bstatic'
  12065. case $cc_basename in
  12066. f77* | f90* | f95*)
  12067. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12068. *)
  12069. lt_prog_compiler_wl_F77='-Wl,';;
  12070. esac
  12071. ;;
  12072. sunos4*)
  12073. lt_prog_compiler_wl_F77='-Qoption ld '
  12074. lt_prog_compiler_pic_F77='-PIC'
  12075. lt_prog_compiler_static_F77='-Bstatic'
  12076. ;;
  12077. sysv4 | sysv4.2uw2* | sysv4.3*)
  12078. lt_prog_compiler_wl_F77='-Wl,'
  12079. lt_prog_compiler_pic_F77='-KPIC'
  12080. lt_prog_compiler_static_F77='-Bstatic'
  12081. ;;
  12082. sysv4*MP*)
  12083. if test -d /usr/nec ;then
  12084. lt_prog_compiler_pic_F77='-Kconform_pic'
  12085. lt_prog_compiler_static_F77='-Bstatic'
  12086. fi
  12087. ;;
  12088. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12089. lt_prog_compiler_wl_F77='-Wl,'
  12090. lt_prog_compiler_pic_F77='-KPIC'
  12091. lt_prog_compiler_static_F77='-Bstatic'
  12092. ;;
  12093. unicos*)
  12094. lt_prog_compiler_wl_F77='-Wl,'
  12095. lt_prog_compiler_can_build_shared_F77=no
  12096. ;;
  12097. uts4*)
  12098. lt_prog_compiler_pic_F77='-pic'
  12099. lt_prog_compiler_static_F77='-Bstatic'
  12100. ;;
  12101. *)
  12102. lt_prog_compiler_can_build_shared_F77=no
  12103. ;;
  12104. esac
  12105. fi
  12106. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12107. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12108. #
  12109. # Check to make sure the PIC flag actually works.
  12110. #
  12111. if test -n "$lt_prog_compiler_pic_F77"; then
  12112. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12113. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12114. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12115. echo $ECHO_N "(cached) $ECHO_C" >&6
  12116. else
  12117. lt_prog_compiler_pic_works_F77=no
  12118. ac_outfile=conftest.$ac_objext
  12119. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12120. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12121. # Insert the option either (1) after the last *FLAGS variable, or
  12122. # (2) before a word containing "conftest.", or (3) at the end.
  12123. # Note that $ac_compile itself does not contain backslashes and begins
  12124. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12125. # The option is referenced via a variable to avoid confusing sed.
  12126. lt_compile=`echo "$ac_compile" | $SED \
  12127. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12128. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12129. -e 's:$: $lt_compiler_flag:'`
  12130. (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
  12131. (eval "$lt_compile" 2>conftest.err)
  12132. ac_status=$?
  12133. cat conftest.err >&5
  12134. echo "$as_me:13489: \$? = $ac_status" >&5
  12135. if (exit $ac_status) && test -s "$ac_outfile"; then
  12136. # The compiler can only warn and ignore the option if not recognized
  12137. # So say no if there are warnings other than the usual output.
  12138. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12139. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12140. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12141. lt_prog_compiler_pic_works_F77=yes
  12142. fi
  12143. fi
  12144. $rm conftest*
  12145. fi
  12146. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12147. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12148. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12149. case $lt_prog_compiler_pic_F77 in
  12150. "" | " "*) ;;
  12151. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12152. esac
  12153. else
  12154. lt_prog_compiler_pic_F77=
  12155. lt_prog_compiler_can_build_shared_F77=no
  12156. fi
  12157. fi
  12158. case $host_os in
  12159. # For platforms which do not support PIC, -DPIC is meaningless:
  12160. *djgpp*)
  12161. lt_prog_compiler_pic_F77=
  12162. ;;
  12163. *)
  12164. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12165. ;;
  12166. esac
  12167. #
  12168. # Check to make sure the static flag actually works.
  12169. #
  12170. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12171. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12172. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12173. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12174. echo $ECHO_N "(cached) $ECHO_C" >&6
  12175. else
  12176. lt_prog_compiler_static_works_F77=no
  12177. save_LDFLAGS="$LDFLAGS"
  12178. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12179. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12180. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12181. # The linker can only warn and ignore the option if not recognized
  12182. # So say no if there are warnings
  12183. if test -s conftest.err; then
  12184. # Append any errors to the config.log.
  12185. cat conftest.err 1>&5
  12186. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12187. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12188. if diff conftest.exp conftest.er2 >/dev/null; then
  12189. lt_prog_compiler_static_works_F77=yes
  12190. fi
  12191. else
  12192. lt_prog_compiler_static_works_F77=yes
  12193. fi
  12194. fi
  12195. $rm conftest*
  12196. LDFLAGS="$save_LDFLAGS"
  12197. fi
  12198. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12199. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12200. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12201. :
  12202. else
  12203. lt_prog_compiler_static_F77=
  12204. fi
  12205. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12206. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12207. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12208. echo $ECHO_N "(cached) $ECHO_C" >&6
  12209. else
  12210. lt_cv_prog_compiler_c_o_F77=no
  12211. $rm -r conftest 2>/dev/null
  12212. mkdir conftest
  12213. cd conftest
  12214. mkdir out
  12215. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12216. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12217. # Insert the option either (1) after the last *FLAGS variable, or
  12218. # (2) before a word containing "conftest.", or (3) at the end.
  12219. # Note that $ac_compile itself does not contain backslashes and begins
  12220. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12221. lt_compile=`echo "$ac_compile" | $SED \
  12222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12224. -e 's:$: $lt_compiler_flag:'`
  12225. (eval echo "\"\$as_me:13589: $lt_compile\"" >&5)
  12226. (eval "$lt_compile" 2>out/conftest.err)
  12227. ac_status=$?
  12228. cat out/conftest.err >&5
  12229. echo "$as_me:13593: \$? = $ac_status" >&5
  12230. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12231. then
  12232. # The compiler can only warn and ignore the option if not recognized
  12233. # So say no if there are warnings
  12234. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12235. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12236. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12237. lt_cv_prog_compiler_c_o_F77=yes
  12238. fi
  12239. fi
  12240. chmod u+w . 2>&5
  12241. $rm conftest*
  12242. # SGI C++ compiler will create directory out/ii_files/ for
  12243. # template instantiation
  12244. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12245. $rm out/* && rmdir out
  12246. cd ..
  12247. rmdir conftest
  12248. $rm conftest*
  12249. fi
  12250. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12251. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12252. hard_links="nottested"
  12253. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12254. # do not overwrite the value of need_locks provided by the user
  12255. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12256. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12257. hard_links=yes
  12258. $rm conftest*
  12259. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12260. touch conftest.a
  12261. ln conftest.a conftest.b 2>&5 || hard_links=no
  12262. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12263. echo "$as_me:$LINENO: result: $hard_links" >&5
  12264. echo "${ECHO_T}$hard_links" >&6
  12265. if test "$hard_links" = no; then
  12266. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12267. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12268. need_locks=warn
  12269. fi
  12270. else
  12271. need_locks=no
  12272. fi
  12273. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12274. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12275. runpath_var=
  12276. allow_undefined_flag_F77=
  12277. enable_shared_with_static_runtimes_F77=no
  12278. archive_cmds_F77=
  12279. archive_expsym_cmds_F77=
  12280. old_archive_From_new_cmds_F77=
  12281. old_archive_from_expsyms_cmds_F77=
  12282. export_dynamic_flag_spec_F77=
  12283. whole_archive_flag_spec_F77=
  12284. thread_safe_flag_spec_F77=
  12285. hardcode_libdir_flag_spec_F77=
  12286. hardcode_libdir_flag_spec_ld_F77=
  12287. hardcode_libdir_separator_F77=
  12288. hardcode_direct_F77=no
  12289. hardcode_minus_L_F77=no
  12290. hardcode_shlibpath_var_F77=unsupported
  12291. link_all_deplibs_F77=unknown
  12292. hardcode_automatic_F77=no
  12293. module_cmds_F77=
  12294. module_expsym_cmds_F77=
  12295. always_export_symbols_F77=no
  12296. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12297. # include_expsyms should be a list of space-separated symbols to be *always*
  12298. # included in the symbol list
  12299. include_expsyms_F77=
  12300. # exclude_expsyms can be an extended regexp of symbols to exclude
  12301. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12302. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12303. # as well as any symbol that contains `d'.
  12304. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12305. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12306. # platforms (ab)use it in PIC code, but their linkers get confused if
  12307. # the symbol is explicitly referenced. Since portable code cannot
  12308. # rely on this symbol name, it's probably fine to never include it in
  12309. # preloaded symbol tables.
  12310. extract_expsyms_cmds=
  12311. # Just being paranoid about ensuring that cc_basename is set.
  12312. for cc_temp in $compiler""; do
  12313. case $cc_temp in
  12314. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12315. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12316. \-*) ;;
  12317. *) break;;
  12318. esac
  12319. done
  12320. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12321. case $host_os in
  12322. cygwin* | mingw* | pw32*)
  12323. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12324. # When not using gcc, we currently assume that we are using
  12325. # Microsoft Visual C++.
  12326. if test "$GCC" != yes; then
  12327. with_gnu_ld=no
  12328. fi
  12329. ;;
  12330. interix*)
  12331. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12332. with_gnu_ld=yes
  12333. ;;
  12334. openbsd*)
  12335. with_gnu_ld=no
  12336. ;;
  12337. esac
  12338. ld_shlibs_F77=yes
  12339. if test "$with_gnu_ld" = yes; then
  12340. # If archive_cmds runs LD, not CC, wlarc should be empty
  12341. wlarc='${wl}'
  12342. # Set some defaults for GNU ld with shared library support. These
  12343. # are reset later if shared libraries are not supported. Putting them
  12344. # here allows them to be overridden if necessary.
  12345. runpath_var=LD_RUN_PATH
  12346. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12347. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12348. # ancient GNU ld didn't support --whole-archive et. al.
  12349. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12350. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12351. else
  12352. whole_archive_flag_spec_F77=
  12353. fi
  12354. supports_anon_versioning=no
  12355. case `$LD -v 2>/dev/null` in
  12356. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12357. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12358. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12359. *\ 2.11.*) ;; # other 2.11 versions
  12360. *) supports_anon_versioning=yes ;;
  12361. esac
  12362. # See if GNU ld supports shared libraries.
  12363. case $host_os in
  12364. aix3* | aix4* | aix5*)
  12365. # On AIX/PPC, the GNU linker is very broken
  12366. if test "$host_cpu" != ia64; then
  12367. ld_shlibs_F77=no
  12368. cat <<EOF 1>&2
  12369. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12370. *** to be unable to reliably create shared libraries on AIX.
  12371. *** Therefore, libtool is disabling shared libraries support. If you
  12372. *** really care for shared libraries, you may want to modify your PATH
  12373. *** so that a non-GNU linker is found, and then restart.
  12374. EOF
  12375. fi
  12376. ;;
  12377. amigaos*)
  12378. 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)'
  12379. hardcode_libdir_flag_spec_F77='-L$libdir'
  12380. hardcode_minus_L_F77=yes
  12381. # Samuel A. Falvo II <[email protected]> reports
  12382. # that the semantics of dynamic libraries on AmigaOS, at least up
  12383. # to version 4, is to share data among multiple programs linked
  12384. # with the same dynamic library. Since this doesn't match the
  12385. # behavior of shared libraries on other platforms, we can't use
  12386. # them.
  12387. ld_shlibs_F77=no
  12388. ;;
  12389. beos*)
  12390. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12391. allow_undefined_flag_F77=unsupported
  12392. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12393. # support --undefined. This deserves some investigation. FIXME
  12394. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12395. else
  12396. ld_shlibs_F77=no
  12397. fi
  12398. ;;
  12399. cygwin* | mingw* | pw32*)
  12400. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12401. # as there is no search path for DLLs.
  12402. hardcode_libdir_flag_spec_F77='-L$libdir'
  12403. allow_undefined_flag_F77=unsupported
  12404. always_export_symbols_F77=no
  12405. enable_shared_with_static_runtimes_F77=yes
  12406. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12407. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12408. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12409. # If the export-symbols file already is a .def file (1st line
  12410. # is EXPORTS), use it as is; otherwise, prepend...
  12411. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12412. cp $export_symbols $output_objdir/$soname.def;
  12413. else
  12414. echo EXPORTS > $output_objdir/$soname.def;
  12415. cat $export_symbols >> $output_objdir/$soname.def;
  12416. fi~
  12417. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12418. else
  12419. ld_shlibs_F77=no
  12420. fi
  12421. ;;
  12422. interix3*)
  12423. hardcode_direct_F77=no
  12424. hardcode_shlibpath_var_F77=no
  12425. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12426. export_dynamic_flag_spec_F77='${wl}-E'
  12427. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12428. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12429. # default) and relocated if they conflict, which is a slow very memory
  12430. # consuming and fragmenting process. To avoid this, we pick a random,
  12431. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12432. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12433. 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'
  12434. 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'
  12435. ;;
  12436. linux*)
  12437. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12438. tmp_addflag=
  12439. case $cc_basename,$host_cpu in
  12440. pgcc*) # Portland Group C compiler
  12441. 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'
  12442. tmp_addflag=' $pic_flag'
  12443. ;;
  12444. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12445. 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'
  12446. tmp_addflag=' $pic_flag -Mnomain' ;;
  12447. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12448. tmp_addflag=' -i_dynamic' ;;
  12449. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12450. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12451. ifc* | ifort*) # Intel Fortran compiler
  12452. tmp_addflag=' -nofor_main' ;;
  12453. esac
  12454. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12455. if test $supports_anon_versioning = yes; then
  12456. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12457. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12458. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12459. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12460. fi
  12461. else
  12462. ld_shlibs_F77=no
  12463. fi
  12464. ;;
  12465. netbsd*)
  12466. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12467. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12468. wlarc=
  12469. else
  12470. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12471. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12472. fi
  12473. ;;
  12474. solaris*)
  12475. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12476. ld_shlibs_F77=no
  12477. cat <<EOF 1>&2
  12478. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12479. *** create shared libraries on Solaris systems. Therefore, libtool
  12480. *** is disabling shared libraries support. We urge you to upgrade GNU
  12481. *** binutils to release 2.9.1 or newer. Another option is to modify
  12482. *** your PATH or compiler configuration so that the native linker is
  12483. *** used, and then restart.
  12484. EOF
  12485. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12486. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12487. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12488. else
  12489. ld_shlibs_F77=no
  12490. fi
  12491. ;;
  12492. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12493. case `$LD -v 2>&1` in
  12494. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12495. ld_shlibs_F77=no
  12496. cat <<_LT_EOF 1>&2
  12497. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12498. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12499. *** is disabling shared libraries support. We urge you to upgrade GNU
  12500. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12501. *** your PATH or compiler configuration so that the native linker is
  12502. *** used, and then restart.
  12503. _LT_EOF
  12504. ;;
  12505. *)
  12506. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12507. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12508. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12509. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12510. else
  12511. ld_shlibs_F77=no
  12512. fi
  12513. ;;
  12514. esac
  12515. ;;
  12516. sunos4*)
  12517. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12518. wlarc=
  12519. hardcode_direct_F77=yes
  12520. hardcode_shlibpath_var_F77=no
  12521. ;;
  12522. *)
  12523. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12524. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12525. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12526. else
  12527. ld_shlibs_F77=no
  12528. fi
  12529. ;;
  12530. esac
  12531. if test "$ld_shlibs_F77" = no; then
  12532. runpath_var=
  12533. hardcode_libdir_flag_spec_F77=
  12534. export_dynamic_flag_spec_F77=
  12535. whole_archive_flag_spec_F77=
  12536. fi
  12537. else
  12538. # PORTME fill in a description of your system's linker (not GNU ld)
  12539. case $host_os in
  12540. aix3*)
  12541. allow_undefined_flag_F77=unsupported
  12542. always_export_symbols_F77=yes
  12543. 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'
  12544. # Note: this linker hardcodes the directories in LIBPATH if there
  12545. # are no directories specified by -L.
  12546. hardcode_minus_L_F77=yes
  12547. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12548. # Neither direct hardcoding nor static linking is supported with a
  12549. # broken collect2.
  12550. hardcode_direct_F77=unsupported
  12551. fi
  12552. ;;
  12553. aix4* | aix5*)
  12554. if test "$host_cpu" = ia64; then
  12555. # On IA64, the linker does run time linking by default, so we don't
  12556. # have to do anything special.
  12557. aix_use_runtimelinking=no
  12558. exp_sym_flag='-Bexport'
  12559. no_entry_flag=""
  12560. else
  12561. # If we're using GNU nm, then we don't want the "-C" option.
  12562. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12563. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12564. 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'
  12565. else
  12566. 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'
  12567. fi
  12568. aix_use_runtimelinking=no
  12569. # Test if we are trying to use run time linking or normal
  12570. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12571. # need to do runtime linking.
  12572. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12573. for ld_flag in $LDFLAGS; do
  12574. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12575. aix_use_runtimelinking=yes
  12576. break
  12577. fi
  12578. done
  12579. ;;
  12580. esac
  12581. exp_sym_flag='-bexport'
  12582. no_entry_flag='-bnoentry'
  12583. fi
  12584. # When large executables or shared objects are built, AIX ld can
  12585. # have problems creating the table of contents. If linking a library
  12586. # or program results in "error TOC overflow" add -mminimal-toc to
  12587. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12588. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12589. archive_cmds_F77=''
  12590. hardcode_direct_F77=yes
  12591. hardcode_libdir_separator_F77=':'
  12592. link_all_deplibs_F77=yes
  12593. if test "$GCC" = yes; then
  12594. case $host_os in aix4.[012]|aix4.[012].*)
  12595. # We only want to do this on AIX 4.2 and lower, the check
  12596. # below for broken collect2 doesn't work under 4.3+
  12597. collect2name=`${CC} -print-prog-name=collect2`
  12598. if test -f "$collect2name" && \
  12599. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12600. then
  12601. # We have reworked collect2
  12602. hardcode_direct_F77=yes
  12603. else
  12604. # We have old collect2
  12605. hardcode_direct_F77=unsupported
  12606. # It fails to find uninstalled libraries when the uninstalled
  12607. # path is not listed in the libpath. Setting hardcode_minus_L
  12608. # to unsupported forces relinking
  12609. hardcode_minus_L_F77=yes
  12610. hardcode_libdir_flag_spec_F77='-L$libdir'
  12611. hardcode_libdir_separator_F77=
  12612. fi
  12613. ;;
  12614. esac
  12615. shared_flag='-shared'
  12616. if test "$aix_use_runtimelinking" = yes; then
  12617. shared_flag="$shared_flag "'${wl}-G'
  12618. fi
  12619. else
  12620. # not using gcc
  12621. if test "$host_cpu" = ia64; then
  12622. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12623. # chokes on -Wl,-G. The following line is correct:
  12624. shared_flag='-G'
  12625. else
  12626. if test "$aix_use_runtimelinking" = yes; then
  12627. shared_flag='${wl}-G'
  12628. else
  12629. shared_flag='${wl}-bM:SRE'
  12630. fi
  12631. fi
  12632. fi
  12633. # It seems that -bexpall does not export symbols beginning with
  12634. # underscore (_), so it is better to generate a list of symbols to export.
  12635. always_export_symbols_F77=yes
  12636. if test "$aix_use_runtimelinking" = yes; then
  12637. # Warning - without using the other runtime loading flags (-brtl),
  12638. # -berok will link without error, but may produce a broken library.
  12639. allow_undefined_flag_F77='-berok'
  12640. # Determine the default libpath from the value encoded in an empty executable.
  12641. cat >conftest.$ac_ext <<_ACEOF
  12642. program main
  12643. end
  12644. _ACEOF
  12645. rm -f conftest.$ac_objext conftest$ac_exeext
  12646. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12647. (eval $ac_link) 2>conftest.er1
  12648. ac_status=$?
  12649. grep -v '^ *+' conftest.er1 >conftest.err
  12650. rm -f conftest.er1
  12651. cat conftest.err >&5
  12652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12653. (exit $ac_status); } &&
  12654. { ac_try='test -z "$ac_f77_werror_flag"
  12655. || test ! -s conftest.err'
  12656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12657. (eval $ac_try) 2>&5
  12658. ac_status=$?
  12659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12660. (exit $ac_status); }; } &&
  12661. { ac_try='test -s conftest$ac_exeext'
  12662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12663. (eval $ac_try) 2>&5
  12664. ac_status=$?
  12665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12666. (exit $ac_status); }; }; then
  12667. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12668. }'`
  12669. # Check for a 64-bit object if we didn't find anything.
  12670. 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; }
  12671. }'`; fi
  12672. else
  12673. echo "$as_me: failed program was:" >&5
  12674. sed 's/^/| /' conftest.$ac_ext >&5
  12675. fi
  12676. rm -f conftest.err conftest.$ac_objext \
  12677. conftest$ac_exeext conftest.$ac_ext
  12678. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12679. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12680. 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"
  12681. else
  12682. if test "$host_cpu" = ia64; then
  12683. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12684. allow_undefined_flag_F77="-z nodefs"
  12685. 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"
  12686. else
  12687. # Determine the default libpath from the value encoded in an empty executable.
  12688. cat >conftest.$ac_ext <<_ACEOF
  12689. program main
  12690. end
  12691. _ACEOF
  12692. rm -f conftest.$ac_objext conftest$ac_exeext
  12693. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12694. (eval $ac_link) 2>conftest.er1
  12695. ac_status=$?
  12696. grep -v '^ *+' conftest.er1 >conftest.err
  12697. rm -f conftest.er1
  12698. cat conftest.err >&5
  12699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12700. (exit $ac_status); } &&
  12701. { ac_try='test -z "$ac_f77_werror_flag"
  12702. || test ! -s conftest.err'
  12703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12704. (eval $ac_try) 2>&5
  12705. ac_status=$?
  12706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12707. (exit $ac_status); }; } &&
  12708. { ac_try='test -s conftest$ac_exeext'
  12709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12710. (eval $ac_try) 2>&5
  12711. ac_status=$?
  12712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12713. (exit $ac_status); }; }; then
  12714. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12715. }'`
  12716. # Check for a 64-bit object if we didn't find anything.
  12717. 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; }
  12718. }'`; fi
  12719. else
  12720. echo "$as_me: failed program was:" >&5
  12721. sed 's/^/| /' conftest.$ac_ext >&5
  12722. fi
  12723. rm -f conftest.err conftest.$ac_objext \
  12724. conftest$ac_exeext conftest.$ac_ext
  12725. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12726. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12727. # Warning - without using the other run time loading flags,
  12728. # -berok will link without error, but may produce a broken library.
  12729. no_undefined_flag_F77=' ${wl}-bernotok'
  12730. allow_undefined_flag_F77=' ${wl}-berok'
  12731. # Exported symbols can be pulled into shared objects from archives
  12732. whole_archive_flag_spec_F77='$convenience'
  12733. archive_cmds_need_lc_F77=yes
  12734. # This is similar to how AIX traditionally builds its shared libraries.
  12735. 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'
  12736. fi
  12737. fi
  12738. ;;
  12739. amigaos*)
  12740. 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)'
  12741. hardcode_libdir_flag_spec_F77='-L$libdir'
  12742. hardcode_minus_L_F77=yes
  12743. # see comment about different semantics on the GNU ld section
  12744. ld_shlibs_F77=no
  12745. ;;
  12746. bsdi[45]*)
  12747. export_dynamic_flag_spec_F77=-rdynamic
  12748. ;;
  12749. cygwin* | mingw* | pw32*)
  12750. # When not using gcc, we currently assume that we are using
  12751. # Microsoft Visual C++.
  12752. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12753. # no search path for DLLs.
  12754. hardcode_libdir_flag_spec_F77=' '
  12755. allow_undefined_flag_F77=unsupported
  12756. # Tell ltmain to make .lib files, not .a files.
  12757. libext=lib
  12758. # Tell ltmain to make .dll files, not .so files.
  12759. shrext_cmds=".dll"
  12760. # FIXME: Setting linknames here is a bad hack.
  12761. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12762. # The linker will automatically build a .lib file if we build a DLL.
  12763. old_archive_From_new_cmds_F77='true'
  12764. # FIXME: Should let the user specify the lib program.
  12765. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12766. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12767. enable_shared_with_static_runtimes_F77=yes
  12768. ;;
  12769. darwin* | rhapsody*)
  12770. case $host_os in
  12771. rhapsody* | darwin1.[012])
  12772. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12773. ;;
  12774. *) # Darwin 1.3 on
  12775. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12776. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12777. else
  12778. case ${MACOSX_DEPLOYMENT_TARGET} in
  12779. 10.[012])
  12780. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12781. ;;
  12782. 10.*)
  12783. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12784. ;;
  12785. esac
  12786. fi
  12787. ;;
  12788. esac
  12789. archive_cmds_need_lc_F77=no
  12790. hardcode_direct_F77=no
  12791. hardcode_automatic_F77=yes
  12792. hardcode_shlibpath_var_F77=unsupported
  12793. whole_archive_flag_spec_F77=''
  12794. link_all_deplibs_F77=yes
  12795. if test "$GCC" = yes ; then
  12796. output_verbose_link_cmd='echo'
  12797. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12798. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12799. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12800. 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}'
  12801. 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}'
  12802. else
  12803. case $cc_basename in
  12804. xlc*)
  12805. output_verbose_link_cmd='echo'
  12806. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12807. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12808. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12809. 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}'
  12810. 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}'
  12811. ;;
  12812. *)
  12813. ld_shlibs_F77=no
  12814. ;;
  12815. esac
  12816. fi
  12817. ;;
  12818. dgux*)
  12819. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12820. hardcode_libdir_flag_spec_F77='-L$libdir'
  12821. hardcode_shlibpath_var_F77=no
  12822. ;;
  12823. freebsd1*)
  12824. ld_shlibs_F77=no
  12825. ;;
  12826. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12827. # support. Future versions do this automatically, but an explicit c++rt0.o
  12828. # does not break anything, and helps significantly (at the cost of a little
  12829. # extra space).
  12830. freebsd2.2*)
  12831. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12832. hardcode_libdir_flag_spec_F77='-R$libdir'
  12833. hardcode_direct_F77=yes
  12834. hardcode_shlibpath_var_F77=no
  12835. ;;
  12836. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12837. freebsd2*)
  12838. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12839. hardcode_direct_F77=yes
  12840. hardcode_minus_L_F77=yes
  12841. hardcode_shlibpath_var_F77=no
  12842. ;;
  12843. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12844. freebsd* | kfreebsd*-gnu | dragonfly*)
  12845. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12846. hardcode_libdir_flag_spec_F77='-R$libdir'
  12847. hardcode_direct_F77=yes
  12848. hardcode_shlibpath_var_F77=no
  12849. ;;
  12850. hpux9*)
  12851. if test "$GCC" = yes; then
  12852. 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'
  12853. else
  12854. 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'
  12855. fi
  12856. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12857. hardcode_libdir_separator_F77=:
  12858. hardcode_direct_F77=yes
  12859. # hardcode_minus_L: Not really in the search PATH,
  12860. # but as the default location of the library.
  12861. hardcode_minus_L_F77=yes
  12862. export_dynamic_flag_spec_F77='${wl}-E'
  12863. ;;
  12864. hpux10*)
  12865. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12866. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12867. else
  12868. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12869. fi
  12870. if test "$with_gnu_ld" = no; then
  12871. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12872. hardcode_libdir_separator_F77=:
  12873. hardcode_direct_F77=yes
  12874. export_dynamic_flag_spec_F77='${wl}-E'
  12875. # hardcode_minus_L: Not really in the search PATH,
  12876. # but as the default location of the library.
  12877. hardcode_minus_L_F77=yes
  12878. fi
  12879. ;;
  12880. hpux11*)
  12881. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12882. case $host_cpu in
  12883. hppa*64*)
  12884. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12885. ;;
  12886. ia64*)
  12887. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12888. ;;
  12889. *)
  12890. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12891. ;;
  12892. esac
  12893. else
  12894. case $host_cpu in
  12895. hppa*64*)
  12896. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12897. ;;
  12898. ia64*)
  12899. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12900. ;;
  12901. *)
  12902. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12903. ;;
  12904. esac
  12905. fi
  12906. if test "$with_gnu_ld" = no; then
  12907. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12908. hardcode_libdir_separator_F77=:
  12909. case $host_cpu in
  12910. hppa*64*|ia64*)
  12911. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12912. hardcode_direct_F77=no
  12913. hardcode_shlibpath_var_F77=no
  12914. ;;
  12915. *)
  12916. hardcode_direct_F77=yes
  12917. export_dynamic_flag_spec_F77='${wl}-E'
  12918. # hardcode_minus_L: Not really in the search PATH,
  12919. # but as the default location of the library.
  12920. hardcode_minus_L_F77=yes
  12921. ;;
  12922. esac
  12923. fi
  12924. ;;
  12925. irix5* | irix6* | nonstopux*)
  12926. if test "$GCC" = yes; then
  12927. 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'
  12928. else
  12929. 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'
  12930. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12931. fi
  12932. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12933. hardcode_libdir_separator_F77=:
  12934. link_all_deplibs_F77=yes
  12935. ;;
  12936. netbsd*)
  12937. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12938. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12939. else
  12940. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12941. fi
  12942. hardcode_libdir_flag_spec_F77='-R$libdir'
  12943. hardcode_direct_F77=yes
  12944. hardcode_shlibpath_var_F77=no
  12945. ;;
  12946. newsos6)
  12947. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12948. hardcode_direct_F77=yes
  12949. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12950. hardcode_libdir_separator_F77=:
  12951. hardcode_shlibpath_var_F77=no
  12952. ;;
  12953. openbsd*)
  12954. hardcode_direct_F77=yes
  12955. hardcode_shlibpath_var_F77=no
  12956. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12957. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12958. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12959. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12960. export_dynamic_flag_spec_F77='${wl}-E'
  12961. else
  12962. case $host_os in
  12963. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12964. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12965. hardcode_libdir_flag_spec_F77='-R$libdir'
  12966. ;;
  12967. *)
  12968. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12969. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12970. ;;
  12971. esac
  12972. fi
  12973. ;;
  12974. os2*)
  12975. hardcode_libdir_flag_spec_F77='-L$libdir'
  12976. hardcode_minus_L_F77=yes
  12977. allow_undefined_flag_F77=unsupported
  12978. 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'
  12979. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12980. ;;
  12981. osf3*)
  12982. if test "$GCC" = yes; then
  12983. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12984. 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'
  12985. else
  12986. allow_undefined_flag_F77=' -expect_unresolved \*'
  12987. 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'
  12988. fi
  12989. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12990. hardcode_libdir_separator_F77=:
  12991. ;;
  12992. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12993. if test "$GCC" = yes; then
  12994. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12995. 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'
  12996. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12997. else
  12998. allow_undefined_flag_F77=' -expect_unresolved \*'
  12999. 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'
  13000. 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~
  13001. $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'
  13002. # Both c and cxx compiler support -rpath directly
  13003. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13004. fi
  13005. hardcode_libdir_separator_F77=:
  13006. ;;
  13007. solaris*)
  13008. no_undefined_flag_F77=' -z text'
  13009. if test "$GCC" = yes; then
  13010. wlarc='${wl}'
  13011. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13012. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13013. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13014. else
  13015. wlarc=''
  13016. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13017. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13018. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13019. fi
  13020. hardcode_libdir_flag_spec_F77='-R$libdir'
  13021. hardcode_shlibpath_var_F77=no
  13022. case $host_os in
  13023. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13024. *)
  13025. # The compiler driver will combine linker options so we
  13026. # cannot just pass the convience library names through
  13027. # without $wl, iff we do not link with $LD.
  13028. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13029. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13030. case $wlarc in
  13031. '')
  13032. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13033. *)
  13034. 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' ;;
  13035. esac ;;
  13036. esac
  13037. link_all_deplibs_F77=yes
  13038. ;;
  13039. sunos4*)
  13040. if test "x$host_vendor" = xsequent; then
  13041. # Use $CC to link under sequent, because it throws in some extra .o
  13042. # files that make .init and .fini sections work.
  13043. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13044. else
  13045. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13046. fi
  13047. hardcode_libdir_flag_spec_F77='-L$libdir'
  13048. hardcode_direct_F77=yes
  13049. hardcode_minus_L_F77=yes
  13050. hardcode_shlibpath_var_F77=no
  13051. ;;
  13052. sysv4)
  13053. case $host_vendor in
  13054. sni)
  13055. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13056. hardcode_direct_F77=yes # is this really true???
  13057. ;;
  13058. siemens)
  13059. ## LD is ld it makes a PLAMLIB
  13060. ## CC just makes a GrossModule.
  13061. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13062. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13063. hardcode_direct_F77=no
  13064. ;;
  13065. motorola)
  13066. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13067. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13068. ;;
  13069. esac
  13070. runpath_var='LD_RUN_PATH'
  13071. hardcode_shlibpath_var_F77=no
  13072. ;;
  13073. sysv4.3*)
  13074. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13075. hardcode_shlibpath_var_F77=no
  13076. export_dynamic_flag_spec_F77='-Bexport'
  13077. ;;
  13078. sysv4*MP*)
  13079. if test -d /usr/nec; then
  13080. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13081. hardcode_shlibpath_var_F77=no
  13082. runpath_var=LD_RUN_PATH
  13083. hardcode_runpath_var=yes
  13084. ld_shlibs_F77=yes
  13085. fi
  13086. ;;
  13087. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13088. no_undefined_flag_F77='${wl}-z,text'
  13089. archive_cmds_need_lc_F77=no
  13090. hardcode_shlibpath_var_F77=no
  13091. runpath_var='LD_RUN_PATH'
  13092. if test "$GCC" = yes; then
  13093. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13094. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13095. else
  13096. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13097. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13098. fi
  13099. ;;
  13100. sysv5* | sco3.2v5* | sco5v6*)
  13101. # Note: We can NOT use -z defs as we might desire, because we do not
  13102. # link with -lc, and that would cause any symbols used from libc to
  13103. # always be unresolved, which means just about no library would
  13104. # ever link correctly. If we're not using GNU ld we use -z text
  13105. # though, which does catch some bad symbols but isn't as heavy-handed
  13106. # as -z defs.
  13107. no_undefined_flag_F77='${wl}-z,text'
  13108. allow_undefined_flag_F77='${wl}-z,nodefs'
  13109. archive_cmds_need_lc_F77=no
  13110. hardcode_shlibpath_var_F77=no
  13111. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13112. hardcode_libdir_separator_F77=':'
  13113. link_all_deplibs_F77=yes
  13114. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13115. runpath_var='LD_RUN_PATH'
  13116. if test "$GCC" = yes; then
  13117. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13118. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13119. else
  13120. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13121. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13122. fi
  13123. ;;
  13124. uts4*)
  13125. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13126. hardcode_libdir_flag_spec_F77='-L$libdir'
  13127. hardcode_shlibpath_var_F77=no
  13128. ;;
  13129. *)
  13130. ld_shlibs_F77=no
  13131. ;;
  13132. esac
  13133. fi
  13134. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13135. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13136. test "$ld_shlibs_F77" = no && can_build_shared=no
  13137. #
  13138. # Do we need to explicitly link libc?
  13139. #
  13140. case "x$archive_cmds_need_lc_F77" in
  13141. x|xyes)
  13142. # Assume -lc should be added
  13143. archive_cmds_need_lc_F77=yes
  13144. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13145. case $archive_cmds_F77 in
  13146. *'~'*)
  13147. # FIXME: we may have to deal with multi-command sequences.
  13148. ;;
  13149. '$CC '*)
  13150. # Test whether the compiler implicitly links with -lc since on some
  13151. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13152. # to ld, don't add -lc before -lgcc.
  13153. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13154. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13155. $rm conftest*
  13156. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13157. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13158. (eval $ac_compile) 2>&5
  13159. ac_status=$?
  13160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13161. (exit $ac_status); } 2>conftest.err; then
  13162. soname=conftest
  13163. lib=conftest
  13164. libobjs=conftest.$ac_objext
  13165. deplibs=
  13166. wl=$lt_prog_compiler_wl_F77
  13167. pic_flag=$lt_prog_compiler_pic_F77
  13168. compiler_flags=-v
  13169. linker_flags=-v
  13170. verstring=
  13171. output_objdir=.
  13172. libname=conftest
  13173. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13174. allow_undefined_flag_F77=
  13175. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13176. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13177. ac_status=$?
  13178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13179. (exit $ac_status); }
  13180. then
  13181. archive_cmds_need_lc_F77=no
  13182. else
  13183. archive_cmds_need_lc_F77=yes
  13184. fi
  13185. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13186. else
  13187. cat conftest.err 1>&5
  13188. fi
  13189. $rm conftest*
  13190. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13191. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13192. ;;
  13193. esac
  13194. fi
  13195. ;;
  13196. esac
  13197. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13198. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13199. library_names_spec=
  13200. libname_spec='lib$name'
  13201. soname_spec=
  13202. shrext_cmds=".so"
  13203. postinstall_cmds=
  13204. postuninstall_cmds=
  13205. finish_cmds=
  13206. finish_eval=
  13207. shlibpath_var=
  13208. shlibpath_overrides_runpath=unknown
  13209. version_type=none
  13210. dynamic_linker="$host_os ld.so"
  13211. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13212. if test "$GCC" = yes; then
  13213. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13214. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13215. # if the path contains ";" then we assume it to be the separator
  13216. # otherwise default to the standard path separator (i.e. ":") - it is
  13217. # assumed that no part of a normal pathname contains ";" but that should
  13218. # okay in the real world where ";" in dirpaths is itself problematic.
  13219. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13220. else
  13221. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13222. fi
  13223. else
  13224. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13225. fi
  13226. need_lib_prefix=unknown
  13227. hardcode_into_libs=no
  13228. # when you set need_version to no, make sure it does not cause -set_version
  13229. # flags to be left without arguments
  13230. need_version=unknown
  13231. case $host_os in
  13232. aix3*)
  13233. version_type=linux
  13234. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13235. shlibpath_var=LIBPATH
  13236. # AIX 3 has no versioning support, so we append a major version to the name.
  13237. soname_spec='${libname}${release}${shared_ext}$major'
  13238. ;;
  13239. aix4* | aix5*)
  13240. version_type=linux
  13241. need_lib_prefix=no
  13242. need_version=no
  13243. hardcode_into_libs=yes
  13244. if test "$host_cpu" = ia64; then
  13245. # AIX 5 supports IA64
  13246. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13247. shlibpath_var=LD_LIBRARY_PATH
  13248. else
  13249. # With GCC up to 2.95.x, collect2 would create an import file
  13250. # for dependence libraries. The import file would start with
  13251. # the line `#! .'. This would cause the generated library to
  13252. # depend on `.', always an invalid library. This was fixed in
  13253. # development snapshots of GCC prior to 3.0.
  13254. case $host_os in
  13255. aix4 | aix4.[01] | aix4.[01].*)
  13256. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13257. echo ' yes '
  13258. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13259. :
  13260. else
  13261. can_build_shared=no
  13262. fi
  13263. ;;
  13264. esac
  13265. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13266. # soname into executable. Probably we can add versioning support to
  13267. # collect2, so additional links can be useful in future.
  13268. if test "$aix_use_runtimelinking" = yes; then
  13269. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13270. # instead of lib<name>.a to let people know that these are not
  13271. # typical AIX shared libraries.
  13272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13273. else
  13274. # We preserve .a as extension for shared libraries through AIX4.2
  13275. # and later when we are not doing run time linking.
  13276. library_names_spec='${libname}${release}.a $libname.a'
  13277. soname_spec='${libname}${release}${shared_ext}$major'
  13278. fi
  13279. shlibpath_var=LIBPATH
  13280. fi
  13281. ;;
  13282. amigaos*)
  13283. library_names_spec='$libname.ixlibrary $libname.a'
  13284. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13285. 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'
  13286. ;;
  13287. beos*)
  13288. library_names_spec='${libname}${shared_ext}'
  13289. dynamic_linker="$host_os ld.so"
  13290. shlibpath_var=LIBRARY_PATH
  13291. ;;
  13292. bsdi[45]*)
  13293. version_type=linux
  13294. need_version=no
  13295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13296. soname_spec='${libname}${release}${shared_ext}$major'
  13297. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13298. shlibpath_var=LD_LIBRARY_PATH
  13299. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13300. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13301. # the default ld.so.conf also contains /usr/contrib/lib and
  13302. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13303. # libtool to hard-code these into programs
  13304. ;;
  13305. cygwin* | mingw* | pw32*)
  13306. version_type=windows
  13307. shrext_cmds=".dll"
  13308. need_version=no
  13309. need_lib_prefix=no
  13310. case $GCC,$host_os in
  13311. yes,cygwin* | yes,mingw* | yes,pw32*)
  13312. library_names_spec='$libname.dll.a'
  13313. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13314. postinstall_cmds='base_file=`basename \${file}`~
  13315. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13316. dldir=$destdir/`dirname \$dlpath`~
  13317. test -d \$dldir || mkdir -p \$dldir~
  13318. $install_prog $dir/$dlname \$dldir/$dlname~
  13319. chmod a+x \$dldir/$dlname'
  13320. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13321. dlpath=$dir/\$dldll~
  13322. $rm \$dlpath'
  13323. shlibpath_overrides_runpath=yes
  13324. case $host_os in
  13325. cygwin*)
  13326. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13327. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13328. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13329. ;;
  13330. mingw*)
  13331. # MinGW DLLs use traditional 'lib' prefix
  13332. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13333. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13334. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13335. # It is most probably a Windows format PATH printed by
  13336. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13337. # path with ; separators, and with drive letters. We can handle the
  13338. # drive letters (cygwin fileutils understands them), so leave them,
  13339. # especially as we might pass files found there to a mingw objdump,
  13340. # which wouldn't understand a cygwinified path. Ahh.
  13341. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13342. else
  13343. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13344. fi
  13345. ;;
  13346. pw32*)
  13347. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13348. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13349. ;;
  13350. esac
  13351. ;;
  13352. *)
  13353. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13354. ;;
  13355. esac
  13356. dynamic_linker='Win32 ld.exe'
  13357. # FIXME: first we should search . and the directory the executable is in
  13358. shlibpath_var=PATH
  13359. ;;
  13360. darwin* | rhapsody*)
  13361. dynamic_linker="$host_os dyld"
  13362. version_type=darwin
  13363. need_lib_prefix=no
  13364. need_version=no
  13365. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13366. soname_spec='${libname}${release}${major}$shared_ext'
  13367. shlibpath_overrides_runpath=yes
  13368. shlibpath_var=DYLD_LIBRARY_PATH
  13369. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13370. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13371. if test "$GCC" = yes; then
  13372. 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"`
  13373. else
  13374. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13375. fi
  13376. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13377. ;;
  13378. dgux*)
  13379. version_type=linux
  13380. need_lib_prefix=no
  13381. need_version=no
  13382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13383. soname_spec='${libname}${release}${shared_ext}$major'
  13384. shlibpath_var=LD_LIBRARY_PATH
  13385. ;;
  13386. freebsd1*)
  13387. dynamic_linker=no
  13388. ;;
  13389. kfreebsd*-gnu)
  13390. version_type=linux
  13391. need_lib_prefix=no
  13392. need_version=no
  13393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13394. soname_spec='${libname}${release}${shared_ext}$major'
  13395. shlibpath_var=LD_LIBRARY_PATH
  13396. shlibpath_overrides_runpath=no
  13397. hardcode_into_libs=yes
  13398. dynamic_linker='GNU ld.so'
  13399. ;;
  13400. freebsd* | dragonfly*)
  13401. # DragonFly does not have aout. When/if they implement a new
  13402. # versioning mechanism, adjust this.
  13403. if test -x /usr/bin/objformat; then
  13404. objformat=`/usr/bin/objformat`
  13405. else
  13406. case $host_os in
  13407. freebsd[123]*) objformat=aout ;;
  13408. *) objformat=elf ;;
  13409. esac
  13410. fi
  13411. version_type=freebsd-$objformat
  13412. case $version_type in
  13413. freebsd-elf*)
  13414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13415. need_version=no
  13416. need_lib_prefix=no
  13417. ;;
  13418. freebsd-*)
  13419. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13420. need_version=yes
  13421. ;;
  13422. esac
  13423. shlibpath_var=LD_LIBRARY_PATH
  13424. case $host_os in
  13425. freebsd2*)
  13426. shlibpath_overrides_runpath=yes
  13427. ;;
  13428. freebsd3.[01]* | freebsdelf3.[01]*)
  13429. shlibpath_overrides_runpath=yes
  13430. hardcode_into_libs=yes
  13431. ;;
  13432. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13433. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13434. shlibpath_overrides_runpath=no
  13435. hardcode_into_libs=yes
  13436. ;;
  13437. freebsd*) # from 4.6 on
  13438. shlibpath_overrides_runpath=yes
  13439. hardcode_into_libs=yes
  13440. ;;
  13441. esac
  13442. ;;
  13443. gnu*)
  13444. version_type=linux
  13445. need_lib_prefix=no
  13446. need_version=no
  13447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13448. soname_spec='${libname}${release}${shared_ext}$major'
  13449. shlibpath_var=LD_LIBRARY_PATH
  13450. hardcode_into_libs=yes
  13451. ;;
  13452. hpux9* | hpux10* | hpux11*)
  13453. # Give a soname corresponding to the major version so that dld.sl refuses to
  13454. # link against other versions.
  13455. version_type=sunos
  13456. need_lib_prefix=no
  13457. need_version=no
  13458. case $host_cpu in
  13459. ia64*)
  13460. shrext_cmds='.so'
  13461. hardcode_into_libs=yes
  13462. dynamic_linker="$host_os dld.so"
  13463. shlibpath_var=LD_LIBRARY_PATH
  13464. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13466. soname_spec='${libname}${release}${shared_ext}$major'
  13467. if test "X$HPUX_IA64_MODE" = X32; then
  13468. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13469. else
  13470. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13471. fi
  13472. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13473. ;;
  13474. hppa*64*)
  13475. shrext_cmds='.sl'
  13476. hardcode_into_libs=yes
  13477. dynamic_linker="$host_os dld.sl"
  13478. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13479. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13481. soname_spec='${libname}${release}${shared_ext}$major'
  13482. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13483. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13484. ;;
  13485. *)
  13486. shrext_cmds='.sl'
  13487. dynamic_linker="$host_os dld.sl"
  13488. shlibpath_var=SHLIB_PATH
  13489. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13491. soname_spec='${libname}${release}${shared_ext}$major'
  13492. ;;
  13493. esac
  13494. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13495. postinstall_cmds='chmod 555 $lib'
  13496. ;;
  13497. interix3*)
  13498. version_type=linux
  13499. need_lib_prefix=no
  13500. need_version=no
  13501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13502. soname_spec='${libname}${release}${shared_ext}$major'
  13503. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13504. shlibpath_var=LD_LIBRARY_PATH
  13505. shlibpath_overrides_runpath=no
  13506. hardcode_into_libs=yes
  13507. ;;
  13508. irix5* | irix6* | nonstopux*)
  13509. case $host_os in
  13510. nonstopux*) version_type=nonstopux ;;
  13511. *)
  13512. if test "$lt_cv_prog_gnu_ld" = yes; then
  13513. version_type=linux
  13514. else
  13515. version_type=irix
  13516. fi ;;
  13517. esac
  13518. need_lib_prefix=no
  13519. need_version=no
  13520. soname_spec='${libname}${release}${shared_ext}$major'
  13521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13522. case $host_os in
  13523. irix5* | nonstopux*)
  13524. libsuff= shlibsuff=
  13525. ;;
  13526. *)
  13527. case $LD in # libtool.m4 will add one of these switches to LD
  13528. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13529. libsuff= shlibsuff= libmagic=32-bit;;
  13530. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13531. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13532. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13533. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13534. *) libsuff= shlibsuff= libmagic=never-match;;
  13535. esac
  13536. ;;
  13537. esac
  13538. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13539. shlibpath_overrides_runpath=no
  13540. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13541. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13542. hardcode_into_libs=yes
  13543. ;;
  13544. # No shared lib support for Linux oldld, aout, or coff.
  13545. linux*oldld* | linux*aout* | linux*coff*)
  13546. dynamic_linker=no
  13547. ;;
  13548. # This must be Linux ELF.
  13549. linux*)
  13550. version_type=linux
  13551. need_lib_prefix=no
  13552. need_version=no
  13553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13554. soname_spec='${libname}${release}${shared_ext}$major'
  13555. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13556. shlibpath_var=LD_LIBRARY_PATH
  13557. shlibpath_overrides_runpath=no
  13558. # This implies no fast_install, which is unacceptable.
  13559. # Some rework will be needed to allow for fast_install
  13560. # before this can be enabled.
  13561. hardcode_into_libs=yes
  13562. # find out which ABI we are using
  13563. libsuff=
  13564. case "$host_cpu" in
  13565. x86_64*|s390x*|powerpc64*)
  13566. echo '#line 15038 "configure"' > conftest.$ac_ext
  13567. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13568. (eval $ac_compile) 2>&5
  13569. ac_status=$?
  13570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13571. (exit $ac_status); }; then
  13572. case `/usr/bin/file conftest.$ac_objext` in
  13573. *64-bit*)
  13574. libsuff=64
  13575. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13576. ;;
  13577. esac
  13578. fi
  13579. rm -rf conftest*
  13580. ;;
  13581. esac
  13582. # Append ld.so.conf contents to the search path
  13583. if test -f /etc/ld.so.conf; then
  13584. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13585. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13586. fi
  13587. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13588. # powerpc, because MkLinux only supported shared libraries with the
  13589. # GNU dynamic linker. Since this was broken with cross compilers,
  13590. # most powerpc-linux boxes support dynamic linking these days and
  13591. # people can always --disable-shared, the test was removed, and we
  13592. # assume the GNU/Linux dynamic linker is in use.
  13593. dynamic_linker='GNU/Linux ld.so'
  13594. ;;
  13595. knetbsd*-gnu)
  13596. version_type=linux
  13597. need_lib_prefix=no
  13598. need_version=no
  13599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13600. soname_spec='${libname}${release}${shared_ext}$major'
  13601. shlibpath_var=LD_LIBRARY_PATH
  13602. shlibpath_overrides_runpath=no
  13603. hardcode_into_libs=yes
  13604. dynamic_linker='GNU ld.so'
  13605. ;;
  13606. netbsd*)
  13607. version_type=sunos
  13608. need_lib_prefix=no
  13609. need_version=no
  13610. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13612. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13613. dynamic_linker='NetBSD (a.out) ld.so'
  13614. else
  13615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13616. soname_spec='${libname}${release}${shared_ext}$major'
  13617. dynamic_linker='NetBSD ld.elf_so'
  13618. fi
  13619. shlibpath_var=LD_LIBRARY_PATH
  13620. shlibpath_overrides_runpath=yes
  13621. hardcode_into_libs=yes
  13622. ;;
  13623. newsos6)
  13624. version_type=linux
  13625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13626. shlibpath_var=LD_LIBRARY_PATH
  13627. shlibpath_overrides_runpath=yes
  13628. ;;
  13629. nto-qnx*)
  13630. version_type=linux
  13631. need_lib_prefix=no
  13632. need_version=no
  13633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13634. soname_spec='${libname}${release}${shared_ext}$major'
  13635. shlibpath_var=LD_LIBRARY_PATH
  13636. shlibpath_overrides_runpath=yes
  13637. ;;
  13638. openbsd*)
  13639. version_type=sunos
  13640. sys_lib_dlsearch_path_spec="/usr/lib"
  13641. need_lib_prefix=no
  13642. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13643. case $host_os in
  13644. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13645. *) need_version=no ;;
  13646. esac
  13647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13648. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13649. shlibpath_var=LD_LIBRARY_PATH
  13650. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13651. case $host_os in
  13652. openbsd2.[89] | openbsd2.[89].*)
  13653. shlibpath_overrides_runpath=no
  13654. ;;
  13655. *)
  13656. shlibpath_overrides_runpath=yes
  13657. ;;
  13658. esac
  13659. else
  13660. shlibpath_overrides_runpath=yes
  13661. fi
  13662. ;;
  13663. os2*)
  13664. libname_spec='$name'
  13665. shrext_cmds=".dll"
  13666. need_lib_prefix=no
  13667. library_names_spec='$libname${shared_ext} $libname.a'
  13668. dynamic_linker='OS/2 ld.exe'
  13669. shlibpath_var=LIBPATH
  13670. ;;
  13671. osf3* | osf4* | osf5*)
  13672. version_type=osf
  13673. need_lib_prefix=no
  13674. need_version=no
  13675. soname_spec='${libname}${release}${shared_ext}$major'
  13676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13677. shlibpath_var=LD_LIBRARY_PATH
  13678. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13679. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13680. ;;
  13681. solaris*)
  13682. version_type=linux
  13683. need_lib_prefix=no
  13684. need_version=no
  13685. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13686. soname_spec='${libname}${release}${shared_ext}$major'
  13687. shlibpath_var=LD_LIBRARY_PATH
  13688. shlibpath_overrides_runpath=yes
  13689. hardcode_into_libs=yes
  13690. # ldd complains unless libraries are executable
  13691. postinstall_cmds='chmod +x $lib'
  13692. ;;
  13693. sunos4*)
  13694. version_type=sunos
  13695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13696. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13697. shlibpath_var=LD_LIBRARY_PATH
  13698. shlibpath_overrides_runpath=yes
  13699. if test "$with_gnu_ld" = yes; then
  13700. need_lib_prefix=no
  13701. fi
  13702. need_version=yes
  13703. ;;
  13704. sysv4 | sysv4.3*)
  13705. version_type=linux
  13706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13707. soname_spec='${libname}${release}${shared_ext}$major'
  13708. shlibpath_var=LD_LIBRARY_PATH
  13709. case $host_vendor in
  13710. sni)
  13711. shlibpath_overrides_runpath=no
  13712. need_lib_prefix=no
  13713. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13714. runpath_var=LD_RUN_PATH
  13715. ;;
  13716. siemens)
  13717. need_lib_prefix=no
  13718. ;;
  13719. motorola)
  13720. need_lib_prefix=no
  13721. need_version=no
  13722. shlibpath_overrides_runpath=no
  13723. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13724. ;;
  13725. esac
  13726. ;;
  13727. sysv4*MP*)
  13728. if test -d /usr/nec ;then
  13729. version_type=linux
  13730. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13731. soname_spec='$libname${shared_ext}.$major'
  13732. shlibpath_var=LD_LIBRARY_PATH
  13733. fi
  13734. ;;
  13735. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13736. version_type=freebsd-elf
  13737. need_lib_prefix=no
  13738. need_version=no
  13739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13740. soname_spec='${libname}${release}${shared_ext}$major'
  13741. shlibpath_var=LD_LIBRARY_PATH
  13742. hardcode_into_libs=yes
  13743. if test "$with_gnu_ld" = yes; then
  13744. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13745. shlibpath_overrides_runpath=no
  13746. else
  13747. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13748. shlibpath_overrides_runpath=yes
  13749. case $host_os in
  13750. sco3.2v5*)
  13751. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13752. ;;
  13753. esac
  13754. fi
  13755. sys_lib_dlsearch_path_spec='/usr/lib'
  13756. ;;
  13757. uts4*)
  13758. version_type=linux
  13759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13760. soname_spec='${libname}${release}${shared_ext}$major'
  13761. shlibpath_var=LD_LIBRARY_PATH
  13762. ;;
  13763. *)
  13764. dynamic_linker=no
  13765. ;;
  13766. esac
  13767. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13768. echo "${ECHO_T}$dynamic_linker" >&6
  13769. test "$dynamic_linker" = no && can_build_shared=no
  13770. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13771. if test "$GCC" = yes; then
  13772. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13773. fi
  13774. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13775. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13776. hardcode_action_F77=
  13777. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13778. test -n "$runpath_var_F77" || \
  13779. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13780. # We can hardcode non-existant directories.
  13781. if test "$hardcode_direct_F77" != no &&
  13782. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13783. # have to relink, otherwise we might link with an installed library
  13784. # when we should be linking with a yet-to-be-installed one
  13785. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13786. test "$hardcode_minus_L_F77" != no; then
  13787. # Linking always hardcodes the temporary library directory.
  13788. hardcode_action_F77=relink
  13789. else
  13790. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13791. hardcode_action_F77=immediate
  13792. fi
  13793. else
  13794. # We cannot hardcode anything, or else we can only hardcode existing
  13795. # directories.
  13796. hardcode_action_F77=unsupported
  13797. fi
  13798. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13799. echo "${ECHO_T}$hardcode_action_F77" >&6
  13800. if test "$hardcode_action_F77" = relink; then
  13801. # Fast installation is not supported
  13802. enable_fast_install=no
  13803. elif test "$shlibpath_overrides_runpath" = yes ||
  13804. test "$enable_shared" = no; then
  13805. # Fast installation is not necessary
  13806. enable_fast_install=needless
  13807. fi
  13808. # The else clause should only fire when bootstrapping the
  13809. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13810. # with your package, and you will get complaints that there are
  13811. # no rules to generate ltmain.sh.
  13812. if test -f "$ltmain"; then
  13813. # See if we are running on zsh, and set the options which allow our commands through
  13814. # without removal of \ escapes.
  13815. if test -n "${ZSH_VERSION+set}" ; then
  13816. setopt NO_GLOB_SUBST
  13817. fi
  13818. # Now quote all the things that may contain metacharacters while being
  13819. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13820. # variables and quote the copies for generation of the libtool script.
  13821. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13822. SED SHELL STRIP \
  13823. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13824. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13825. deplibs_check_method reload_flag reload_cmds need_locks \
  13826. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13827. lt_cv_sys_global_symbol_to_c_name_address \
  13828. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13829. old_postinstall_cmds old_postuninstall_cmds \
  13830. compiler_F77 \
  13831. CC_F77 \
  13832. LD_F77 \
  13833. lt_prog_compiler_wl_F77 \
  13834. lt_prog_compiler_pic_F77 \
  13835. lt_prog_compiler_static_F77 \
  13836. lt_prog_compiler_no_builtin_flag_F77 \
  13837. export_dynamic_flag_spec_F77 \
  13838. thread_safe_flag_spec_F77 \
  13839. whole_archive_flag_spec_F77 \
  13840. enable_shared_with_static_runtimes_F77 \
  13841. old_archive_cmds_F77 \
  13842. old_archive_from_new_cmds_F77 \
  13843. predep_objects_F77 \
  13844. postdep_objects_F77 \
  13845. predeps_F77 \
  13846. postdeps_F77 \
  13847. compiler_lib_search_path_F77 \
  13848. archive_cmds_F77 \
  13849. archive_expsym_cmds_F77 \
  13850. postinstall_cmds_F77 \
  13851. postuninstall_cmds_F77 \
  13852. old_archive_from_expsyms_cmds_F77 \
  13853. allow_undefined_flag_F77 \
  13854. no_undefined_flag_F77 \
  13855. export_symbols_cmds_F77 \
  13856. hardcode_libdir_flag_spec_F77 \
  13857. hardcode_libdir_flag_spec_ld_F77 \
  13858. hardcode_libdir_separator_F77 \
  13859. hardcode_automatic_F77 \
  13860. module_cmds_F77 \
  13861. module_expsym_cmds_F77 \
  13862. lt_cv_prog_compiler_c_o_F77 \
  13863. exclude_expsyms_F77 \
  13864. include_expsyms_F77; do
  13865. case $var in
  13866. old_archive_cmds_F77 | \
  13867. old_archive_from_new_cmds_F77 | \
  13868. archive_cmds_F77 | \
  13869. archive_expsym_cmds_F77 | \
  13870. module_cmds_F77 | \
  13871. module_expsym_cmds_F77 | \
  13872. old_archive_from_expsyms_cmds_F77 | \
  13873. export_symbols_cmds_F77 | \
  13874. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13875. postinstall_cmds | postuninstall_cmds | \
  13876. old_postinstall_cmds | old_postuninstall_cmds | \
  13877. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13878. # Double-quote double-evaled strings.
  13879. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13880. ;;
  13881. *)
  13882. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13883. ;;
  13884. esac
  13885. done
  13886. case $lt_echo in
  13887. *'\$0 --fallback-echo"')
  13888. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13889. ;;
  13890. esac
  13891. cfgfile="$ofile"
  13892. cat <<__EOF__ >> "$cfgfile"
  13893. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13894. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13895. # Shell to use when invoking shell scripts.
  13896. SHELL=$lt_SHELL
  13897. # Whether or not to build shared libraries.
  13898. build_libtool_libs=$enable_shared
  13899. # Whether or not to build static libraries.
  13900. build_old_libs=$enable_static
  13901. # Whether or not to add -lc for building shared libraries.
  13902. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13903. # Whether or not to disallow shared libs when runtime libs are static
  13904. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13905. # Whether or not to optimize for fast installation.
  13906. fast_install=$enable_fast_install
  13907. # The host system.
  13908. host_alias=$host_alias
  13909. host=$host
  13910. host_os=$host_os
  13911. # The build system.
  13912. build_alias=$build_alias
  13913. build=$build
  13914. build_os=$build_os
  13915. # An echo program that does not interpret backslashes.
  13916. echo=$lt_echo
  13917. # The archiver.
  13918. AR=$lt_AR
  13919. AR_FLAGS=$lt_AR_FLAGS
  13920. # A C compiler.
  13921. LTCC=$lt_LTCC
  13922. # LTCC compiler flags.
  13923. LTCFLAGS=$lt_LTCFLAGS
  13924. # A language-specific compiler.
  13925. CC=$lt_compiler_F77
  13926. # Is the compiler the GNU C compiler?
  13927. with_gcc=$GCC_F77
  13928. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  13929. gcc_ver=\`gcc -dumpversion\`
  13930. # An ERE matcher.
  13931. EGREP=$lt_EGREP
  13932. # The linker used to build libraries.
  13933. LD=$lt_LD_F77
  13934. # Whether we need hard or soft links.
  13935. LN_S=$lt_LN_S
  13936. # A BSD-compatible nm program.
  13937. NM=$lt_NM
  13938. # A symbol stripping program
  13939. STRIP=$lt_STRIP
  13940. # Used to examine libraries when file_magic_cmd begins "file"
  13941. MAGIC_CMD=$MAGIC_CMD
  13942. # Used on cygwin: DLL creation program.
  13943. DLLTOOL="$DLLTOOL"
  13944. # Used on cygwin: object dumper.
  13945. OBJDUMP="$OBJDUMP"
  13946. # Used on cygwin: assembler.
  13947. AS="$AS"
  13948. # The name of the directory that contains temporary libtool files.
  13949. objdir=$objdir
  13950. # How to create reloadable object files.
  13951. reload_flag=$lt_reload_flag
  13952. reload_cmds=$lt_reload_cmds
  13953. # How to pass a linker flag through the compiler.
  13954. wl=$lt_lt_prog_compiler_wl_F77
  13955. # Object file suffix (normally "o").
  13956. objext="$ac_objext"
  13957. # Old archive suffix (normally "a").
  13958. libext="$libext"
  13959. # Shared library suffix (normally ".so").
  13960. shrext_cmds='$shrext_cmds'
  13961. # Executable file suffix (normally "").
  13962. exeext="$exeext"
  13963. # Additional compiler flags for building library objects.
  13964. pic_flag=$lt_lt_prog_compiler_pic_F77
  13965. pic_mode=$pic_mode
  13966. # What is the maximum length of a command?
  13967. max_cmd_len=$lt_cv_sys_max_cmd_len
  13968. # Does compiler simultaneously support -c and -o options?
  13969. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13970. # Must we lock files when doing compilation?
  13971. need_locks=$lt_need_locks
  13972. # Do we need the lib prefix for modules?
  13973. need_lib_prefix=$need_lib_prefix
  13974. # Do we need a version for libraries?
  13975. need_version=$need_version
  13976. # Whether dlopen is supported.
  13977. dlopen_support=$enable_dlopen
  13978. # Whether dlopen of programs is supported.
  13979. dlopen_self=$enable_dlopen_self
  13980. # Whether dlopen of statically linked programs is supported.
  13981. dlopen_self_static=$enable_dlopen_self_static
  13982. # Compiler flag to prevent dynamic linking.
  13983. link_static_flag=$lt_lt_prog_compiler_static_F77
  13984. # Compiler flag to turn off builtin functions.
  13985. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13986. # Compiler flag to allow reflexive dlopens.
  13987. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13988. # Compiler flag to generate shared objects directly from archives.
  13989. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13990. # Compiler flag to generate thread-safe objects.
  13991. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13992. # Library versioning type.
  13993. version_type=$version_type
  13994. # Format of library name prefix.
  13995. libname_spec=$lt_libname_spec
  13996. # List of archive names. First name is the real one, the rest are links.
  13997. # The last name is the one that the linker finds with -lNAME.
  13998. library_names_spec=$lt_library_names_spec
  13999. # The coded name of the library, if different from the real name.
  14000. soname_spec=$lt_soname_spec
  14001. # Commands used to build and install an old-style archive.
  14002. RANLIB=$lt_RANLIB
  14003. old_archive_cmds=$lt_old_archive_cmds_F77
  14004. old_postinstall_cmds=$lt_old_postinstall_cmds
  14005. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14006. # Create an old-style archive from a shared archive.
  14007. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14008. # Create a temporary old-style archive to link instead of a shared archive.
  14009. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14010. # Commands used to build and install a shared archive.
  14011. archive_cmds=$lt_archive_cmds_F77
  14012. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14013. postinstall_cmds=$lt_postinstall_cmds
  14014. postuninstall_cmds=$lt_postuninstall_cmds
  14015. # Commands used to build a loadable module (assumed same as above if empty)
  14016. module_cmds=$lt_module_cmds_F77
  14017. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14018. # Commands to strip libraries.
  14019. old_striplib=$lt_old_striplib
  14020. striplib=$lt_striplib
  14021. # Dependencies to place before the objects being linked to create a
  14022. # shared library.
  14023. predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14024. # Dependencies to place after the objects being linked to create a
  14025. # shared library.
  14026. postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14027. # Dependencies to place before the objects being linked to create a
  14028. # shared library.
  14029. predeps=$lt_predeps_F77
  14030. # Dependencies to place after the objects being linked to create a
  14031. # shared library.
  14032. postdeps=$lt_postdeps_F77
  14033. # The library search path used internally by the compiler when linking
  14034. # a shared library.
  14035. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14036. # Method to check whether dependent libraries are shared objects.
  14037. deplibs_check_method=$lt_deplibs_check_method
  14038. # Command to use when deplibs_check_method == file_magic.
  14039. file_magic_cmd=$lt_file_magic_cmd
  14040. # Flag that allows shared libraries with undefined symbols to be built.
  14041. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14042. # Flag that forces no undefined symbols.
  14043. no_undefined_flag=$lt_no_undefined_flag_F77
  14044. # Commands used to finish a libtool library installation in a directory.
  14045. finish_cmds=$lt_finish_cmds
  14046. # Same as above, but a single script fragment to be evaled but not shown.
  14047. finish_eval=$lt_finish_eval
  14048. # Take the output of nm and produce a listing of raw symbols and C names.
  14049. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14050. # Transform the output of nm in a proper C declaration
  14051. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14052. # Transform the output of nm in a C name address pair
  14053. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14054. # This is the shared library runtime path variable.
  14055. runpath_var=$runpath_var
  14056. # This is the shared library path variable.
  14057. shlibpath_var=$shlibpath_var
  14058. # Is shlibpath searched before the hard-coded library search path?
  14059. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14060. # How to hardcode a shared library path into an executable.
  14061. hardcode_action=$hardcode_action_F77
  14062. # Whether we should hardcode library paths into libraries.
  14063. hardcode_into_libs=$hardcode_into_libs
  14064. # Flag to hardcode \$libdir into a binary during linking.
  14065. # This must work even if \$libdir does not exist.
  14066. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14067. # If ld is used when linking, flag to hardcode \$libdir into
  14068. # a binary during linking. This must work even if \$libdir does
  14069. # not exist.
  14070. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14071. # Whether we need a single -rpath flag with a separated argument.
  14072. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14073. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14074. # resulting binary.
  14075. hardcode_direct=$hardcode_direct_F77
  14076. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14077. # resulting binary.
  14078. hardcode_minus_L=$hardcode_minus_L_F77
  14079. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14080. # the resulting binary.
  14081. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14082. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14083. # and all subsequent libraries and executables linked against it.
  14084. hardcode_automatic=$hardcode_automatic_F77
  14085. # Variables whose values should be saved in libtool wrapper scripts and
  14086. # restored at relink time.
  14087. variables_saved_for_relink="$variables_saved_for_relink"
  14088. # Whether libtool must link a program against all its dependency libraries.
  14089. link_all_deplibs=$link_all_deplibs_F77
  14090. # Compile-time system search path for libraries
  14091. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14092. # Run-time system search path for libraries
  14093. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14094. # Fix the shell variable \$srcfile for the compiler.
  14095. fix_srcfile_path="$fix_srcfile_path_F77"
  14096. # Set to yes if exported symbols are required.
  14097. always_export_symbols=$always_export_symbols_F77
  14098. # The commands to list exported symbols.
  14099. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14100. # The commands to extract the exported symbol list from a shared archive.
  14101. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14102. # Symbols that should not be listed in the preloaded symbols.
  14103. exclude_expsyms=$lt_exclude_expsyms_F77
  14104. # Symbols that must always be exported.
  14105. include_expsyms=$lt_include_expsyms_F77
  14106. # ### END LIBTOOL TAG CONFIG: $tagname
  14107. __EOF__
  14108. else
  14109. # If there is no Makefile yet, we rely on a make rule to execute
  14110. # `config.status --recheck' to rerun these tests and create the
  14111. # libtool script then.
  14112. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14113. if test -f "$ltmain_in"; then
  14114. test -f Makefile && make "$ltmain"
  14115. fi
  14116. fi
  14117. ac_ext=c
  14118. ac_cpp='$CPP $CPPFLAGS'
  14119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14122. CC="$lt_save_CC"
  14123. else
  14124. tagname=""
  14125. fi
  14126. ;;
  14127. GCJ)
  14128. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14129. # Source file extension for Java test sources.
  14130. ac_ext=java
  14131. # Object file extension for compiled Java test sources.
  14132. objext=o
  14133. objext_GCJ=$objext
  14134. # Code to be used in simple compile tests
  14135. lt_simple_compile_test_code="class foo {}\n"
  14136. # Code to be used in simple link tests
  14137. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14138. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14139. # If no C compiler was specified, use CC.
  14140. LTCC=${LTCC-"$CC"}
  14141. # If no C compiler flags were specified, use CFLAGS.
  14142. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14143. # Allow CC to be a program name with arguments.
  14144. compiler=$CC
  14145. # save warnings/boilerplate of simple test code
  14146. ac_outfile=conftest.$ac_objext
  14147. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14148. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14149. _lt_compiler_boilerplate=`cat conftest.err`
  14150. $rm conftest*
  14151. ac_outfile=conftest.$ac_objext
  14152. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14153. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14154. _lt_linker_boilerplate=`cat conftest.err`
  14155. $rm conftest*
  14156. # Allow CC to be a program name with arguments.
  14157. lt_save_CC="$CC"
  14158. CC=${GCJ-"gcj"}
  14159. compiler=$CC
  14160. compiler_GCJ=$CC
  14161. for cc_temp in $compiler""; do
  14162. case $cc_temp in
  14163. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14164. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14165. \-*) ;;
  14166. *) break;;
  14167. esac
  14168. done
  14169. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14170. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14171. archive_cmds_need_lc_GCJ=no
  14172. old_archive_cmds_GCJ=$old_archive_cmds
  14173. lt_prog_compiler_no_builtin_flag_GCJ=
  14174. if test "$GCC" = yes; then
  14175. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14176. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14177. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14178. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14179. echo $ECHO_N "(cached) $ECHO_C" >&6
  14180. else
  14181. lt_cv_prog_compiler_rtti_exceptions=no
  14182. ac_outfile=conftest.$ac_objext
  14183. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14184. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14185. # Insert the option either (1) after the last *FLAGS variable, or
  14186. # (2) before a word containing "conftest.", or (3) at the end.
  14187. # Note that $ac_compile itself does not contain backslashes and begins
  14188. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14189. # The option is referenced via a variable to avoid confusing sed.
  14190. lt_compile=`echo "$ac_compile" | $SED \
  14191. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14192. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14193. -e 's:$: $lt_compiler_flag:'`
  14194. (eval echo "\"\$as_me:15816: $lt_compile\"" >&5)
  14195. (eval "$lt_compile" 2>conftest.err)
  14196. ac_status=$?
  14197. cat conftest.err >&5
  14198. echo "$as_me:15820: \$? = $ac_status" >&5
  14199. if (exit $ac_status) && test -s "$ac_outfile"; then
  14200. # The compiler can only warn and ignore the option if not recognized
  14201. # So say no if there are warnings other than the usual output.
  14202. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14203. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14204. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14205. lt_cv_prog_compiler_rtti_exceptions=yes
  14206. fi
  14207. fi
  14208. $rm conftest*
  14209. fi
  14210. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14211. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14212. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14213. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14214. else
  14215. :
  14216. fi
  14217. fi
  14218. lt_prog_compiler_wl_GCJ=
  14219. lt_prog_compiler_pic_GCJ=
  14220. lt_prog_compiler_static_GCJ=
  14221. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14222. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14223. if test "$GCC" = yes; then
  14224. lt_prog_compiler_wl_GCJ='-Wl,'
  14225. lt_prog_compiler_static_GCJ='-static'
  14226. case $host_os in
  14227. aix*)
  14228. # All AIX code is PIC.
  14229. if test "$host_cpu" = ia64; then
  14230. # AIX 5 now supports IA64 processor
  14231. lt_prog_compiler_static_GCJ='-Bstatic'
  14232. fi
  14233. ;;
  14234. amigaos*)
  14235. # FIXME: we need at least 68020 code to build shared libraries, but
  14236. # adding the `-m68020' flag to GCC prevents building anything better,
  14237. # like `-m68040'.
  14238. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14239. ;;
  14240. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14241. # PIC is the default for these OSes.
  14242. ;;
  14243. mingw* | pw32* | os2*)
  14244. # This hack is so that the source file can tell whether it is being
  14245. # built for inclusion in a dll (and should export symbols for example).
  14246. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14247. ;;
  14248. darwin* | rhapsody*)
  14249. # PIC is the default on this platform
  14250. # Common symbols not allowed in MH_DYLIB files
  14251. lt_prog_compiler_pic_GCJ='-fno-common'
  14252. ;;
  14253. interix3*)
  14254. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14255. # Instead, we relocate shared libraries at runtime.
  14256. ;;
  14257. msdosdjgpp*)
  14258. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14259. # on systems that don't support them.
  14260. lt_prog_compiler_can_build_shared_GCJ=no
  14261. enable_shared=no
  14262. ;;
  14263. sysv4*MP*)
  14264. if test -d /usr/nec; then
  14265. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14266. fi
  14267. ;;
  14268. hpux*)
  14269. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14270. # not for PA HP-UX.
  14271. case $host_cpu in
  14272. hppa*64*|ia64*)
  14273. # +Z the default
  14274. ;;
  14275. *)
  14276. lt_prog_compiler_pic_GCJ='-fPIC'
  14277. ;;
  14278. esac
  14279. ;;
  14280. *)
  14281. lt_prog_compiler_pic_GCJ='-fPIC'
  14282. ;;
  14283. esac
  14284. else
  14285. # PORTME Check for flag to pass linker flags through the system compiler.
  14286. case $host_os in
  14287. aix*)
  14288. lt_prog_compiler_wl_GCJ='-Wl,'
  14289. if test "$host_cpu" = ia64; then
  14290. # AIX 5 now supports IA64 processor
  14291. lt_prog_compiler_static_GCJ='-Bstatic'
  14292. else
  14293. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14294. fi
  14295. ;;
  14296. darwin*)
  14297. # PIC is the default on this platform
  14298. # Common symbols not allowed in MH_DYLIB files
  14299. case $cc_basename in
  14300. xlc*)
  14301. lt_prog_compiler_pic_GCJ='-qnocommon'
  14302. lt_prog_compiler_wl_GCJ='-Wl,'
  14303. ;;
  14304. esac
  14305. ;;
  14306. mingw* | pw32* | os2*)
  14307. # This hack is so that the source file can tell whether it is being
  14308. # built for inclusion in a dll (and should export symbols for example).
  14309. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14310. ;;
  14311. hpux9* | hpux10* | hpux11*)
  14312. lt_prog_compiler_wl_GCJ='-Wl,'
  14313. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14314. # not for PA HP-UX.
  14315. case $host_cpu in
  14316. hppa*64*|ia64*)
  14317. # +Z the default
  14318. ;;
  14319. *)
  14320. lt_prog_compiler_pic_GCJ='+Z'
  14321. ;;
  14322. esac
  14323. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14324. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14325. ;;
  14326. irix5* | irix6* | nonstopux*)
  14327. lt_prog_compiler_wl_GCJ='-Wl,'
  14328. # PIC (with -KPIC) is the default.
  14329. lt_prog_compiler_static_GCJ='-non_shared'
  14330. ;;
  14331. newsos6)
  14332. lt_prog_compiler_pic_GCJ='-KPIC'
  14333. lt_prog_compiler_static_GCJ='-Bstatic'
  14334. ;;
  14335. linux*)
  14336. case $cc_basename in
  14337. icc* | ecc*)
  14338. lt_prog_compiler_wl_GCJ='-Wl,'
  14339. lt_prog_compiler_pic_GCJ='-KPIC'
  14340. lt_prog_compiler_static_GCJ='-static'
  14341. ;;
  14342. pgcc* | pgf77* | pgf90* | pgf95*)
  14343. # Portland Group compilers (*not* the Pentium gcc compiler,
  14344. # which looks to be a dead project)
  14345. lt_prog_compiler_wl_GCJ='-Wl,'
  14346. lt_prog_compiler_pic_GCJ='-fpic'
  14347. lt_prog_compiler_static_GCJ='-Bstatic'
  14348. ;;
  14349. ccc*)
  14350. lt_prog_compiler_wl_GCJ='-Wl,'
  14351. # All Alpha code is PIC.
  14352. lt_prog_compiler_static_GCJ='-non_shared'
  14353. ;;
  14354. esac
  14355. ;;
  14356. osf3* | osf4* | osf5*)
  14357. lt_prog_compiler_wl_GCJ='-Wl,'
  14358. # All OSF/1 code is PIC.
  14359. lt_prog_compiler_static_GCJ='-non_shared'
  14360. ;;
  14361. solaris*)
  14362. lt_prog_compiler_pic_GCJ='-KPIC'
  14363. lt_prog_compiler_static_GCJ='-Bstatic'
  14364. case $cc_basename in
  14365. f77* | f90* | f95*)
  14366. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14367. *)
  14368. lt_prog_compiler_wl_GCJ='-Wl,';;
  14369. esac
  14370. ;;
  14371. sunos4*)
  14372. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14373. lt_prog_compiler_pic_GCJ='-PIC'
  14374. lt_prog_compiler_static_GCJ='-Bstatic'
  14375. ;;
  14376. sysv4 | sysv4.2uw2* | sysv4.3*)
  14377. lt_prog_compiler_wl_GCJ='-Wl,'
  14378. lt_prog_compiler_pic_GCJ='-KPIC'
  14379. lt_prog_compiler_static_GCJ='-Bstatic'
  14380. ;;
  14381. sysv4*MP*)
  14382. if test -d /usr/nec ;then
  14383. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14384. lt_prog_compiler_static_GCJ='-Bstatic'
  14385. fi
  14386. ;;
  14387. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14388. lt_prog_compiler_wl_GCJ='-Wl,'
  14389. lt_prog_compiler_pic_GCJ='-KPIC'
  14390. lt_prog_compiler_static_GCJ='-Bstatic'
  14391. ;;
  14392. unicos*)
  14393. lt_prog_compiler_wl_GCJ='-Wl,'
  14394. lt_prog_compiler_can_build_shared_GCJ=no
  14395. ;;
  14396. uts4*)
  14397. lt_prog_compiler_pic_GCJ='-pic'
  14398. lt_prog_compiler_static_GCJ='-Bstatic'
  14399. ;;
  14400. *)
  14401. lt_prog_compiler_can_build_shared_GCJ=no
  14402. ;;
  14403. esac
  14404. fi
  14405. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14406. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14407. #
  14408. # Check to make sure the PIC flag actually works.
  14409. #
  14410. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14411. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14412. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14413. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14414. echo $ECHO_N "(cached) $ECHO_C" >&6
  14415. else
  14416. lt_prog_compiler_pic_works_GCJ=no
  14417. ac_outfile=conftest.$ac_objext
  14418. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14419. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14420. # Insert the option either (1) after the last *FLAGS variable, or
  14421. # (2) before a word containing "conftest.", or (3) at the end.
  14422. # Note that $ac_compile itself does not contain backslashes and begins
  14423. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14424. # The option is referenced via a variable to avoid confusing sed.
  14425. lt_compile=`echo "$ac_compile" | $SED \
  14426. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14427. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14428. -e 's:$: $lt_compiler_flag:'`
  14429. (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
  14430. (eval "$lt_compile" 2>conftest.err)
  14431. ac_status=$?
  14432. cat conftest.err >&5
  14433. echo "$as_me:16088: \$? = $ac_status" >&5
  14434. if (exit $ac_status) && test -s "$ac_outfile"; then
  14435. # The compiler can only warn and ignore the option if not recognized
  14436. # So say no if there are warnings other than the usual output.
  14437. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14438. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14439. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14440. lt_prog_compiler_pic_works_GCJ=yes
  14441. fi
  14442. fi
  14443. $rm conftest*
  14444. fi
  14445. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14446. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14447. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14448. case $lt_prog_compiler_pic_GCJ in
  14449. "" | " "*) ;;
  14450. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14451. esac
  14452. else
  14453. lt_prog_compiler_pic_GCJ=
  14454. lt_prog_compiler_can_build_shared_GCJ=no
  14455. fi
  14456. fi
  14457. case $host_os in
  14458. # For platforms which do not support PIC, -DPIC is meaningless:
  14459. *djgpp*)
  14460. lt_prog_compiler_pic_GCJ=
  14461. ;;
  14462. *)
  14463. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14464. ;;
  14465. esac
  14466. #
  14467. # Check to make sure the static flag actually works.
  14468. #
  14469. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14470. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14471. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14472. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14473. echo $ECHO_N "(cached) $ECHO_C" >&6
  14474. else
  14475. lt_prog_compiler_static_works_GCJ=no
  14476. save_LDFLAGS="$LDFLAGS"
  14477. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14478. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14479. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14480. # The linker can only warn and ignore the option if not recognized
  14481. # So say no if there are warnings
  14482. if test -s conftest.err; then
  14483. # Append any errors to the config.log.
  14484. cat conftest.err 1>&5
  14485. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14486. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14487. if diff conftest.exp conftest.er2 >/dev/null; then
  14488. lt_prog_compiler_static_works_GCJ=yes
  14489. fi
  14490. else
  14491. lt_prog_compiler_static_works_GCJ=yes
  14492. fi
  14493. fi
  14494. $rm conftest*
  14495. LDFLAGS="$save_LDFLAGS"
  14496. fi
  14497. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14498. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14499. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14500. :
  14501. else
  14502. lt_prog_compiler_static_GCJ=
  14503. fi
  14504. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14505. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14506. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14507. echo $ECHO_N "(cached) $ECHO_C" >&6
  14508. else
  14509. lt_cv_prog_compiler_c_o_GCJ=no
  14510. $rm -r conftest 2>/dev/null
  14511. mkdir conftest
  14512. cd conftest
  14513. mkdir out
  14514. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14515. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14516. # Insert the option either (1) after the last *FLAGS variable, or
  14517. # (2) before a word containing "conftest.", or (3) at the end.
  14518. # Note that $ac_compile itself does not contain backslashes and begins
  14519. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14520. lt_compile=`echo "$ac_compile" | $SED \
  14521. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14522. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14523. -e 's:$: $lt_compiler_flag:'`
  14524. (eval echo "\"\$as_me:16188: $lt_compile\"" >&5)
  14525. (eval "$lt_compile" 2>out/conftest.err)
  14526. ac_status=$?
  14527. cat out/conftest.err >&5
  14528. echo "$as_me:16192: \$? = $ac_status" >&5
  14529. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14530. then
  14531. # The compiler can only warn and ignore the option if not recognized
  14532. # So say no if there are warnings
  14533. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14534. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14535. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14536. lt_cv_prog_compiler_c_o_GCJ=yes
  14537. fi
  14538. fi
  14539. chmod u+w . 2>&5
  14540. $rm conftest*
  14541. # SGI C++ compiler will create directory out/ii_files/ for
  14542. # template instantiation
  14543. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14544. $rm out/* && rmdir out
  14545. cd ..
  14546. rmdir conftest
  14547. $rm conftest*
  14548. fi
  14549. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14550. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14551. hard_links="nottested"
  14552. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14553. # do not overwrite the value of need_locks provided by the user
  14554. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14555. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14556. hard_links=yes
  14557. $rm conftest*
  14558. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14559. touch conftest.a
  14560. ln conftest.a conftest.b 2>&5 || hard_links=no
  14561. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14562. echo "$as_me:$LINENO: result: $hard_links" >&5
  14563. echo "${ECHO_T}$hard_links" >&6
  14564. if test "$hard_links" = no; then
  14565. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14566. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14567. need_locks=warn
  14568. fi
  14569. else
  14570. need_locks=no
  14571. fi
  14572. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14573. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14574. runpath_var=
  14575. allow_undefined_flag_GCJ=
  14576. enable_shared_with_static_runtimes_GCJ=no
  14577. archive_cmds_GCJ=
  14578. archive_expsym_cmds_GCJ=
  14579. old_archive_From_new_cmds_GCJ=
  14580. old_archive_from_expsyms_cmds_GCJ=
  14581. export_dynamic_flag_spec_GCJ=
  14582. whole_archive_flag_spec_GCJ=
  14583. thread_safe_flag_spec_GCJ=
  14584. hardcode_libdir_flag_spec_GCJ=
  14585. hardcode_libdir_flag_spec_ld_GCJ=
  14586. hardcode_libdir_separator_GCJ=
  14587. hardcode_direct_GCJ=no
  14588. hardcode_minus_L_GCJ=no
  14589. hardcode_shlibpath_var_GCJ=unsupported
  14590. link_all_deplibs_GCJ=unknown
  14591. hardcode_automatic_GCJ=no
  14592. module_cmds_GCJ=
  14593. module_expsym_cmds_GCJ=
  14594. always_export_symbols_GCJ=no
  14595. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14596. # include_expsyms should be a list of space-separated symbols to be *always*
  14597. # included in the symbol list
  14598. include_expsyms_GCJ=
  14599. # exclude_expsyms can be an extended regexp of symbols to exclude
  14600. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14601. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14602. # as well as any symbol that contains `d'.
  14603. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14604. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14605. # platforms (ab)use it in PIC code, but their linkers get confused if
  14606. # the symbol is explicitly referenced. Since portable code cannot
  14607. # rely on this symbol name, it's probably fine to never include it in
  14608. # preloaded symbol tables.
  14609. extract_expsyms_cmds=
  14610. # Just being paranoid about ensuring that cc_basename is set.
  14611. for cc_temp in $compiler""; do
  14612. case $cc_temp in
  14613. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14614. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14615. \-*) ;;
  14616. *) break;;
  14617. esac
  14618. done
  14619. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14620. case $host_os in
  14621. cygwin* | mingw* | pw32*)
  14622. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14623. # When not using gcc, we currently assume that we are using
  14624. # Microsoft Visual C++.
  14625. if test "$GCC" != yes; then
  14626. with_gnu_ld=no
  14627. fi
  14628. ;;
  14629. interix*)
  14630. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14631. with_gnu_ld=yes
  14632. ;;
  14633. openbsd*)
  14634. with_gnu_ld=no
  14635. ;;
  14636. esac
  14637. ld_shlibs_GCJ=yes
  14638. if test "$with_gnu_ld" = yes; then
  14639. # If archive_cmds runs LD, not CC, wlarc should be empty
  14640. wlarc='${wl}'
  14641. # Set some defaults for GNU ld with shared library support. These
  14642. # are reset later if shared libraries are not supported. Putting them
  14643. # here allows them to be overridden if necessary.
  14644. runpath_var=LD_RUN_PATH
  14645. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14646. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14647. # ancient GNU ld didn't support --whole-archive et. al.
  14648. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14649. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14650. else
  14651. whole_archive_flag_spec_GCJ=
  14652. fi
  14653. supports_anon_versioning=no
  14654. case `$LD -v 2>/dev/null` in
  14655. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14656. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14657. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14658. *\ 2.11.*) ;; # other 2.11 versions
  14659. *) supports_anon_versioning=yes ;;
  14660. esac
  14661. # See if GNU ld supports shared libraries.
  14662. case $host_os in
  14663. aix3* | aix4* | aix5*)
  14664. # On AIX/PPC, the GNU linker is very broken
  14665. if test "$host_cpu" != ia64; then
  14666. ld_shlibs_GCJ=no
  14667. cat <<EOF 1>&2
  14668. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14669. *** to be unable to reliably create shared libraries on AIX.
  14670. *** Therefore, libtool is disabling shared libraries support. If you
  14671. *** really care for shared libraries, you may want to modify your PATH
  14672. *** so that a non-GNU linker is found, and then restart.
  14673. EOF
  14674. fi
  14675. ;;
  14676. amigaos*)
  14677. 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)'
  14678. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14679. hardcode_minus_L_GCJ=yes
  14680. # Samuel A. Falvo II <[email protected]> reports
  14681. # that the semantics of dynamic libraries on AmigaOS, at least up
  14682. # to version 4, is to share data among multiple programs linked
  14683. # with the same dynamic library. Since this doesn't match the
  14684. # behavior of shared libraries on other platforms, we can't use
  14685. # them.
  14686. ld_shlibs_GCJ=no
  14687. ;;
  14688. beos*)
  14689. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14690. allow_undefined_flag_GCJ=unsupported
  14691. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14692. # support --undefined. This deserves some investigation. FIXME
  14693. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14694. else
  14695. ld_shlibs_GCJ=no
  14696. fi
  14697. ;;
  14698. cygwin* | mingw* | pw32*)
  14699. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14700. # as there is no search path for DLLs.
  14701. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14702. allow_undefined_flag_GCJ=unsupported
  14703. always_export_symbols_GCJ=no
  14704. enable_shared_with_static_runtimes_GCJ=yes
  14705. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14706. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14707. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14708. # If the export-symbols file already is a .def file (1st line
  14709. # is EXPORTS), use it as is; otherwise, prepend...
  14710. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14711. cp $export_symbols $output_objdir/$soname.def;
  14712. else
  14713. echo EXPORTS > $output_objdir/$soname.def;
  14714. cat $export_symbols >> $output_objdir/$soname.def;
  14715. fi~
  14716. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14717. else
  14718. ld_shlibs_GCJ=no
  14719. fi
  14720. ;;
  14721. interix3*)
  14722. hardcode_direct_GCJ=no
  14723. hardcode_shlibpath_var_GCJ=no
  14724. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14725. export_dynamic_flag_spec_GCJ='${wl}-E'
  14726. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14727. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14728. # default) and relocated if they conflict, which is a slow very memory
  14729. # consuming and fragmenting process. To avoid this, we pick a random,
  14730. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14731. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14732. 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'
  14733. 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'
  14734. ;;
  14735. linux*)
  14736. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14737. tmp_addflag=
  14738. case $cc_basename,$host_cpu in
  14739. pgcc*) # Portland Group C compiler
  14740. 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'
  14741. tmp_addflag=' $pic_flag'
  14742. ;;
  14743. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14744. 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'
  14745. tmp_addflag=' $pic_flag -Mnomain' ;;
  14746. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14747. tmp_addflag=' -i_dynamic' ;;
  14748. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14749. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14750. ifc* | ifort*) # Intel Fortran compiler
  14751. tmp_addflag=' -nofor_main' ;;
  14752. esac
  14753. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14754. if test $supports_anon_versioning = yes; then
  14755. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14756. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14757. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14758. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14759. fi
  14760. else
  14761. ld_shlibs_GCJ=no
  14762. fi
  14763. ;;
  14764. netbsd*)
  14765. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14766. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14767. wlarc=
  14768. else
  14769. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14770. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14771. fi
  14772. ;;
  14773. solaris*)
  14774. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14775. ld_shlibs_GCJ=no
  14776. cat <<EOF 1>&2
  14777. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14778. *** create shared libraries on Solaris systems. Therefore, libtool
  14779. *** is disabling shared libraries support. We urge you to upgrade GNU
  14780. *** binutils to release 2.9.1 or newer. Another option is to modify
  14781. *** your PATH or compiler configuration so that the native linker is
  14782. *** used, and then restart.
  14783. EOF
  14784. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14785. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14786. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14787. else
  14788. ld_shlibs_GCJ=no
  14789. fi
  14790. ;;
  14791. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14792. case `$LD -v 2>&1` in
  14793. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14794. ld_shlibs_GCJ=no
  14795. cat <<_LT_EOF 1>&2
  14796. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14797. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14798. *** is disabling shared libraries support. We urge you to upgrade GNU
  14799. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14800. *** your PATH or compiler configuration so that the native linker is
  14801. *** used, and then restart.
  14802. _LT_EOF
  14803. ;;
  14804. *)
  14805. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14806. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14807. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14808. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14809. else
  14810. ld_shlibs_GCJ=no
  14811. fi
  14812. ;;
  14813. esac
  14814. ;;
  14815. sunos4*)
  14816. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14817. wlarc=
  14818. hardcode_direct_GCJ=yes
  14819. hardcode_shlibpath_var_GCJ=no
  14820. ;;
  14821. *)
  14822. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14823. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14824. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14825. else
  14826. ld_shlibs_GCJ=no
  14827. fi
  14828. ;;
  14829. esac
  14830. if test "$ld_shlibs_GCJ" = no; then
  14831. runpath_var=
  14832. hardcode_libdir_flag_spec_GCJ=
  14833. export_dynamic_flag_spec_GCJ=
  14834. whole_archive_flag_spec_GCJ=
  14835. fi
  14836. else
  14837. # PORTME fill in a description of your system's linker (not GNU ld)
  14838. case $host_os in
  14839. aix3*)
  14840. allow_undefined_flag_GCJ=unsupported
  14841. always_export_symbols_GCJ=yes
  14842. 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'
  14843. # Note: this linker hardcodes the directories in LIBPATH if there
  14844. # are no directories specified by -L.
  14845. hardcode_minus_L_GCJ=yes
  14846. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14847. # Neither direct hardcoding nor static linking is supported with a
  14848. # broken collect2.
  14849. hardcode_direct_GCJ=unsupported
  14850. fi
  14851. ;;
  14852. aix4* | aix5*)
  14853. if test "$host_cpu" = ia64; then
  14854. # On IA64, the linker does run time linking by default, so we don't
  14855. # have to do anything special.
  14856. aix_use_runtimelinking=no
  14857. exp_sym_flag='-Bexport'
  14858. no_entry_flag=""
  14859. else
  14860. # If we're using GNU nm, then we don't want the "-C" option.
  14861. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14862. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14863. 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'
  14864. else
  14865. 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'
  14866. fi
  14867. aix_use_runtimelinking=no
  14868. # Test if we are trying to use run time linking or normal
  14869. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14870. # need to do runtime linking.
  14871. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14872. for ld_flag in $LDFLAGS; do
  14873. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14874. aix_use_runtimelinking=yes
  14875. break
  14876. fi
  14877. done
  14878. ;;
  14879. esac
  14880. exp_sym_flag='-bexport'
  14881. no_entry_flag='-bnoentry'
  14882. fi
  14883. # When large executables or shared objects are built, AIX ld can
  14884. # have problems creating the table of contents. If linking a library
  14885. # or program results in "error TOC overflow" add -mminimal-toc to
  14886. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14887. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14888. archive_cmds_GCJ=''
  14889. hardcode_direct_GCJ=yes
  14890. hardcode_libdir_separator_GCJ=':'
  14891. link_all_deplibs_GCJ=yes
  14892. if test "$GCC" = yes; then
  14893. case $host_os in aix4.[012]|aix4.[012].*)
  14894. # We only want to do this on AIX 4.2 and lower, the check
  14895. # below for broken collect2 doesn't work under 4.3+
  14896. collect2name=`${CC} -print-prog-name=collect2`
  14897. if test -f "$collect2name" && \
  14898. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14899. then
  14900. # We have reworked collect2
  14901. hardcode_direct_GCJ=yes
  14902. else
  14903. # We have old collect2
  14904. hardcode_direct_GCJ=unsupported
  14905. # It fails to find uninstalled libraries when the uninstalled
  14906. # path is not listed in the libpath. Setting hardcode_minus_L
  14907. # to unsupported forces relinking
  14908. hardcode_minus_L_GCJ=yes
  14909. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14910. hardcode_libdir_separator_GCJ=
  14911. fi
  14912. ;;
  14913. esac
  14914. shared_flag='-shared'
  14915. if test "$aix_use_runtimelinking" = yes; then
  14916. shared_flag="$shared_flag "'${wl}-G'
  14917. fi
  14918. else
  14919. # not using gcc
  14920. if test "$host_cpu" = ia64; then
  14921. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14922. # chokes on -Wl,-G. The following line is correct:
  14923. shared_flag='-G'
  14924. else
  14925. if test "$aix_use_runtimelinking" = yes; then
  14926. shared_flag='${wl}-G'
  14927. else
  14928. shared_flag='${wl}-bM:SRE'
  14929. fi
  14930. fi
  14931. fi
  14932. # It seems that -bexpall does not export symbols beginning with
  14933. # underscore (_), so it is better to generate a list of symbols to export.
  14934. always_export_symbols_GCJ=yes
  14935. if test "$aix_use_runtimelinking" = yes; then
  14936. # Warning - without using the other runtime loading flags (-brtl),
  14937. # -berok will link without error, but may produce a broken library.
  14938. allow_undefined_flag_GCJ='-berok'
  14939. # Determine the default libpath from the value encoded in an empty executable.
  14940. cat >conftest.$ac_ext <<_ACEOF
  14941. /* confdefs.h. */
  14942. _ACEOF
  14943. cat confdefs.h >>conftest.$ac_ext
  14944. cat >>conftest.$ac_ext <<_ACEOF
  14945. /* end confdefs.h. */
  14946. int
  14947. main ()
  14948. {
  14949. ;
  14950. return 0;
  14951. }
  14952. _ACEOF
  14953. rm -f conftest.$ac_objext conftest$ac_exeext
  14954. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14955. (eval $ac_link) 2>conftest.er1
  14956. ac_status=$?
  14957. grep -v '^ *+' conftest.er1 >conftest.err
  14958. rm -f conftest.er1
  14959. cat conftest.err >&5
  14960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14961. (exit $ac_status); } &&
  14962. { ac_try='test -z "$ac_c_werror_flag"
  14963. || test ! -s conftest.err'
  14964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14965. (eval $ac_try) 2>&5
  14966. ac_status=$?
  14967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14968. (exit $ac_status); }; } &&
  14969. { ac_try='test -s conftest$ac_exeext'
  14970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14971. (eval $ac_try) 2>&5
  14972. ac_status=$?
  14973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14974. (exit $ac_status); }; }; then
  14975. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14976. }'`
  14977. # Check for a 64-bit object if we didn't find anything.
  14978. 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; }
  14979. }'`; fi
  14980. else
  14981. echo "$as_me: failed program was:" >&5
  14982. sed 's/^/| /' conftest.$ac_ext >&5
  14983. fi
  14984. rm -f conftest.err conftest.$ac_objext \
  14985. conftest$ac_exeext conftest.$ac_ext
  14986. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14987. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14988. 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"
  14989. else
  14990. if test "$host_cpu" = ia64; then
  14991. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14992. allow_undefined_flag_GCJ="-z nodefs"
  14993. 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"
  14994. else
  14995. # Determine the default libpath from the value encoded in an empty executable.
  14996. cat >conftest.$ac_ext <<_ACEOF
  14997. /* confdefs.h. */
  14998. _ACEOF
  14999. cat confdefs.h >>conftest.$ac_ext
  15000. cat >>conftest.$ac_ext <<_ACEOF
  15001. /* end confdefs.h. */
  15002. int
  15003. main ()
  15004. {
  15005. ;
  15006. return 0;
  15007. }
  15008. _ACEOF
  15009. rm -f conftest.$ac_objext conftest$ac_exeext
  15010. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15011. (eval $ac_link) 2>conftest.er1
  15012. ac_status=$?
  15013. grep -v '^ *+' conftest.er1 >conftest.err
  15014. rm -f conftest.er1
  15015. cat conftest.err >&5
  15016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15017. (exit $ac_status); } &&
  15018. { ac_try='test -z "$ac_c_werror_flag"
  15019. || test ! -s conftest.err'
  15020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15021. (eval $ac_try) 2>&5
  15022. ac_status=$?
  15023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15024. (exit $ac_status); }; } &&
  15025. { ac_try='test -s conftest$ac_exeext'
  15026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15027. (eval $ac_try) 2>&5
  15028. ac_status=$?
  15029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15030. (exit $ac_status); }; }; then
  15031. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15032. }'`
  15033. # Check for a 64-bit object if we didn't find anything.
  15034. 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; }
  15035. }'`; fi
  15036. else
  15037. echo "$as_me: failed program was:" >&5
  15038. sed 's/^/| /' conftest.$ac_ext >&5
  15039. fi
  15040. rm -f conftest.err conftest.$ac_objext \
  15041. conftest$ac_exeext conftest.$ac_ext
  15042. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15043. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15044. # Warning - without using the other run time loading flags,
  15045. # -berok will link without error, but may produce a broken library.
  15046. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15047. allow_undefined_flag_GCJ=' ${wl}-berok'
  15048. # Exported symbols can be pulled into shared objects from archives
  15049. whole_archive_flag_spec_GCJ='$convenience'
  15050. archive_cmds_need_lc_GCJ=yes
  15051. # This is similar to how AIX traditionally builds its shared libraries.
  15052. 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'
  15053. fi
  15054. fi
  15055. ;;
  15056. amigaos*)
  15057. 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)'
  15058. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15059. hardcode_minus_L_GCJ=yes
  15060. # see comment about different semantics on the GNU ld section
  15061. ld_shlibs_GCJ=no
  15062. ;;
  15063. bsdi[45]*)
  15064. export_dynamic_flag_spec_GCJ=-rdynamic
  15065. ;;
  15066. cygwin* | mingw* | pw32*)
  15067. # When not using gcc, we currently assume that we are using
  15068. # Microsoft Visual C++.
  15069. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15070. # no search path for DLLs.
  15071. hardcode_libdir_flag_spec_GCJ=' '
  15072. allow_undefined_flag_GCJ=unsupported
  15073. # Tell ltmain to make .lib files, not .a files.
  15074. libext=lib
  15075. # Tell ltmain to make .dll files, not .so files.
  15076. shrext_cmds=".dll"
  15077. # FIXME: Setting linknames here is a bad hack.
  15078. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15079. # The linker will automatically build a .lib file if we build a DLL.
  15080. old_archive_From_new_cmds_GCJ='true'
  15081. # FIXME: Should let the user specify the lib program.
  15082. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15083. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15084. enable_shared_with_static_runtimes_GCJ=yes
  15085. ;;
  15086. darwin* | rhapsody*)
  15087. case $host_os in
  15088. rhapsody* | darwin1.[012])
  15089. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15090. ;;
  15091. *) # Darwin 1.3 on
  15092. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15093. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15094. else
  15095. case ${MACOSX_DEPLOYMENT_TARGET} in
  15096. 10.[012])
  15097. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15098. ;;
  15099. 10.*)
  15100. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15101. ;;
  15102. esac
  15103. fi
  15104. ;;
  15105. esac
  15106. archive_cmds_need_lc_GCJ=no
  15107. hardcode_direct_GCJ=no
  15108. hardcode_automatic_GCJ=yes
  15109. hardcode_shlibpath_var_GCJ=unsupported
  15110. whole_archive_flag_spec_GCJ=''
  15111. link_all_deplibs_GCJ=yes
  15112. if test "$GCC" = yes ; then
  15113. output_verbose_link_cmd='echo'
  15114. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15115. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15116. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15117. 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}'
  15118. 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}'
  15119. else
  15120. case $cc_basename in
  15121. xlc*)
  15122. output_verbose_link_cmd='echo'
  15123. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15124. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15125. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15126. 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}'
  15127. 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}'
  15128. ;;
  15129. *)
  15130. ld_shlibs_GCJ=no
  15131. ;;
  15132. esac
  15133. fi
  15134. ;;
  15135. dgux*)
  15136. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15137. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15138. hardcode_shlibpath_var_GCJ=no
  15139. ;;
  15140. freebsd1*)
  15141. ld_shlibs_GCJ=no
  15142. ;;
  15143. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15144. # support. Future versions do this automatically, but an explicit c++rt0.o
  15145. # does not break anything, and helps significantly (at the cost of a little
  15146. # extra space).
  15147. freebsd2.2*)
  15148. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15149. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15150. hardcode_direct_GCJ=yes
  15151. hardcode_shlibpath_var_GCJ=no
  15152. ;;
  15153. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15154. freebsd2*)
  15155. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15156. hardcode_direct_GCJ=yes
  15157. hardcode_minus_L_GCJ=yes
  15158. hardcode_shlibpath_var_GCJ=no
  15159. ;;
  15160. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15161. freebsd* | kfreebsd*-gnu | dragonfly*)
  15162. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15163. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15164. hardcode_direct_GCJ=yes
  15165. hardcode_shlibpath_var_GCJ=no
  15166. ;;
  15167. hpux9*)
  15168. if test "$GCC" = yes; then
  15169. 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'
  15170. else
  15171. 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'
  15172. fi
  15173. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15174. hardcode_libdir_separator_GCJ=:
  15175. hardcode_direct_GCJ=yes
  15176. # hardcode_minus_L: Not really in the search PATH,
  15177. # but as the default location of the library.
  15178. hardcode_minus_L_GCJ=yes
  15179. export_dynamic_flag_spec_GCJ='${wl}-E'
  15180. ;;
  15181. hpux10*)
  15182. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15183. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15184. else
  15185. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15186. fi
  15187. if test "$with_gnu_ld" = no; then
  15188. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15189. hardcode_libdir_separator_GCJ=:
  15190. hardcode_direct_GCJ=yes
  15191. export_dynamic_flag_spec_GCJ='${wl}-E'
  15192. # hardcode_minus_L: Not really in the search PATH,
  15193. # but as the default location of the library.
  15194. hardcode_minus_L_GCJ=yes
  15195. fi
  15196. ;;
  15197. hpux11*)
  15198. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15199. case $host_cpu in
  15200. hppa*64*)
  15201. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15202. ;;
  15203. ia64*)
  15204. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15205. ;;
  15206. *)
  15207. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15208. ;;
  15209. esac
  15210. else
  15211. case $host_cpu in
  15212. hppa*64*)
  15213. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15214. ;;
  15215. ia64*)
  15216. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15217. ;;
  15218. *)
  15219. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15220. ;;
  15221. esac
  15222. fi
  15223. if test "$with_gnu_ld" = no; then
  15224. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15225. hardcode_libdir_separator_GCJ=:
  15226. case $host_cpu in
  15227. hppa*64*|ia64*)
  15228. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15229. hardcode_direct_GCJ=no
  15230. hardcode_shlibpath_var_GCJ=no
  15231. ;;
  15232. *)
  15233. hardcode_direct_GCJ=yes
  15234. export_dynamic_flag_spec_GCJ='${wl}-E'
  15235. # hardcode_minus_L: Not really in the search PATH,
  15236. # but as the default location of the library.
  15237. hardcode_minus_L_GCJ=yes
  15238. ;;
  15239. esac
  15240. fi
  15241. ;;
  15242. irix5* | irix6* | nonstopux*)
  15243. if test "$GCC" = yes; then
  15244. 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'
  15245. else
  15246. 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'
  15247. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15248. fi
  15249. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15250. hardcode_libdir_separator_GCJ=:
  15251. link_all_deplibs_GCJ=yes
  15252. ;;
  15253. netbsd*)
  15254. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15255. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15256. else
  15257. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15258. fi
  15259. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15260. hardcode_direct_GCJ=yes
  15261. hardcode_shlibpath_var_GCJ=no
  15262. ;;
  15263. newsos6)
  15264. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15265. hardcode_direct_GCJ=yes
  15266. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15267. hardcode_libdir_separator_GCJ=:
  15268. hardcode_shlibpath_var_GCJ=no
  15269. ;;
  15270. openbsd*)
  15271. hardcode_direct_GCJ=yes
  15272. hardcode_shlibpath_var_GCJ=no
  15273. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15274. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15275. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15276. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15277. export_dynamic_flag_spec_GCJ='${wl}-E'
  15278. else
  15279. case $host_os in
  15280. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15281. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15282. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15283. ;;
  15284. *)
  15285. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15286. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15287. ;;
  15288. esac
  15289. fi
  15290. ;;
  15291. os2*)
  15292. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15293. hardcode_minus_L_GCJ=yes
  15294. allow_undefined_flag_GCJ=unsupported
  15295. 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'
  15296. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15297. ;;
  15298. osf3*)
  15299. if test "$GCC" = yes; then
  15300. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15301. 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'
  15302. else
  15303. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15304. 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'
  15305. fi
  15306. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15307. hardcode_libdir_separator_GCJ=:
  15308. ;;
  15309. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15310. if test "$GCC" = yes; then
  15311. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15312. 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'
  15313. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15314. else
  15315. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15316. 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'
  15317. 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~
  15318. $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'
  15319. # Both c and cxx compiler support -rpath directly
  15320. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15321. fi
  15322. hardcode_libdir_separator_GCJ=:
  15323. ;;
  15324. solaris*)
  15325. no_undefined_flag_GCJ=' -z text'
  15326. if test "$GCC" = yes; then
  15327. wlarc='${wl}'
  15328. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15329. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15330. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15331. else
  15332. wlarc=''
  15333. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15334. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15335. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15336. fi
  15337. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15338. hardcode_shlibpath_var_GCJ=no
  15339. case $host_os in
  15340. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15341. *)
  15342. # The compiler driver will combine linker options so we
  15343. # cannot just pass the convience library names through
  15344. # without $wl, iff we do not link with $LD.
  15345. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15346. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15347. case $wlarc in
  15348. '')
  15349. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15350. *)
  15351. 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' ;;
  15352. esac ;;
  15353. esac
  15354. link_all_deplibs_GCJ=yes
  15355. ;;
  15356. sunos4*)
  15357. if test "x$host_vendor" = xsequent; then
  15358. # Use $CC to link under sequent, because it throws in some extra .o
  15359. # files that make .init and .fini sections work.
  15360. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15361. else
  15362. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15363. fi
  15364. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15365. hardcode_direct_GCJ=yes
  15366. hardcode_minus_L_GCJ=yes
  15367. hardcode_shlibpath_var_GCJ=no
  15368. ;;
  15369. sysv4)
  15370. case $host_vendor in
  15371. sni)
  15372. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15373. hardcode_direct_GCJ=yes # is this really true???
  15374. ;;
  15375. siemens)
  15376. ## LD is ld it makes a PLAMLIB
  15377. ## CC just makes a GrossModule.
  15378. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15379. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15380. hardcode_direct_GCJ=no
  15381. ;;
  15382. motorola)
  15383. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15384. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15385. ;;
  15386. esac
  15387. runpath_var='LD_RUN_PATH'
  15388. hardcode_shlibpath_var_GCJ=no
  15389. ;;
  15390. sysv4.3*)
  15391. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15392. hardcode_shlibpath_var_GCJ=no
  15393. export_dynamic_flag_spec_GCJ='-Bexport'
  15394. ;;
  15395. sysv4*MP*)
  15396. if test -d /usr/nec; then
  15397. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15398. hardcode_shlibpath_var_GCJ=no
  15399. runpath_var=LD_RUN_PATH
  15400. hardcode_runpath_var=yes
  15401. ld_shlibs_GCJ=yes
  15402. fi
  15403. ;;
  15404. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15405. no_undefined_flag_GCJ='${wl}-z,text'
  15406. archive_cmds_need_lc_GCJ=no
  15407. hardcode_shlibpath_var_GCJ=no
  15408. runpath_var='LD_RUN_PATH'
  15409. if test "$GCC" = yes; then
  15410. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15411. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15412. else
  15413. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15414. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15415. fi
  15416. ;;
  15417. sysv5* | sco3.2v5* | sco5v6*)
  15418. # Note: We can NOT use -z defs as we might desire, because we do not
  15419. # link with -lc, and that would cause any symbols used from libc to
  15420. # always be unresolved, which means just about no library would
  15421. # ever link correctly. If we're not using GNU ld we use -z text
  15422. # though, which does catch some bad symbols but isn't as heavy-handed
  15423. # as -z defs.
  15424. no_undefined_flag_GCJ='${wl}-z,text'
  15425. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15426. archive_cmds_need_lc_GCJ=no
  15427. hardcode_shlibpath_var_GCJ=no
  15428. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15429. hardcode_libdir_separator_GCJ=':'
  15430. link_all_deplibs_GCJ=yes
  15431. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15432. runpath_var='LD_RUN_PATH'
  15433. if test "$GCC" = yes; then
  15434. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15435. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15436. else
  15437. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15438. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15439. fi
  15440. ;;
  15441. uts4*)
  15442. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15443. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15444. hardcode_shlibpath_var_GCJ=no
  15445. ;;
  15446. *)
  15447. ld_shlibs_GCJ=no
  15448. ;;
  15449. esac
  15450. fi
  15451. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15452. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15453. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15454. #
  15455. # Do we need to explicitly link libc?
  15456. #
  15457. case "x$archive_cmds_need_lc_GCJ" in
  15458. x|xyes)
  15459. # Assume -lc should be added
  15460. archive_cmds_need_lc_GCJ=yes
  15461. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15462. case $archive_cmds_GCJ in
  15463. *'~'*)
  15464. # FIXME: we may have to deal with multi-command sequences.
  15465. ;;
  15466. '$CC '*)
  15467. # Test whether the compiler implicitly links with -lc since on some
  15468. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15469. # to ld, don't add -lc before -lgcc.
  15470. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15471. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15472. $rm conftest*
  15473. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15474. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15475. (eval $ac_compile) 2>&5
  15476. ac_status=$?
  15477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15478. (exit $ac_status); } 2>conftest.err; then
  15479. soname=conftest
  15480. lib=conftest
  15481. libobjs=conftest.$ac_objext
  15482. deplibs=
  15483. wl=$lt_prog_compiler_wl_GCJ
  15484. pic_flag=$lt_prog_compiler_pic_GCJ
  15485. compiler_flags=-v
  15486. linker_flags=-v
  15487. verstring=
  15488. output_objdir=.
  15489. libname=conftest
  15490. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15491. allow_undefined_flag_GCJ=
  15492. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15493. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15494. ac_status=$?
  15495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15496. (exit $ac_status); }
  15497. then
  15498. archive_cmds_need_lc_GCJ=no
  15499. else
  15500. archive_cmds_need_lc_GCJ=yes
  15501. fi
  15502. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15503. else
  15504. cat conftest.err 1>&5
  15505. fi
  15506. $rm conftest*
  15507. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15508. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15509. ;;
  15510. esac
  15511. fi
  15512. ;;
  15513. esac
  15514. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15515. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15516. library_names_spec=
  15517. libname_spec='lib$name'
  15518. soname_spec=
  15519. shrext_cmds=".so"
  15520. postinstall_cmds=
  15521. postuninstall_cmds=
  15522. finish_cmds=
  15523. finish_eval=
  15524. shlibpath_var=
  15525. shlibpath_overrides_runpath=unknown
  15526. version_type=none
  15527. dynamic_linker="$host_os ld.so"
  15528. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15529. if test "$GCC" = yes; then
  15530. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15531. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15532. # if the path contains ";" then we assume it to be the separator
  15533. # otherwise default to the standard path separator (i.e. ":") - it is
  15534. # assumed that no part of a normal pathname contains ";" but that should
  15535. # okay in the real world where ";" in dirpaths is itself problematic.
  15536. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15537. else
  15538. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15539. fi
  15540. else
  15541. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15542. fi
  15543. need_lib_prefix=unknown
  15544. hardcode_into_libs=no
  15545. # when you set need_version to no, make sure it does not cause -set_version
  15546. # flags to be left without arguments
  15547. need_version=unknown
  15548. case $host_os in
  15549. aix3*)
  15550. version_type=linux
  15551. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15552. shlibpath_var=LIBPATH
  15553. # AIX 3 has no versioning support, so we append a major version to the name.
  15554. soname_spec='${libname}${release}${shared_ext}$major'
  15555. ;;
  15556. aix4* | aix5*)
  15557. version_type=linux
  15558. need_lib_prefix=no
  15559. need_version=no
  15560. hardcode_into_libs=yes
  15561. if test "$host_cpu" = ia64; then
  15562. # AIX 5 supports IA64
  15563. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15564. shlibpath_var=LD_LIBRARY_PATH
  15565. else
  15566. # With GCC up to 2.95.x, collect2 would create an import file
  15567. # for dependence libraries. The import file would start with
  15568. # the line `#! .'. This would cause the generated library to
  15569. # depend on `.', always an invalid library. This was fixed in
  15570. # development snapshots of GCC prior to 3.0.
  15571. case $host_os in
  15572. aix4 | aix4.[01] | aix4.[01].*)
  15573. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15574. echo ' yes '
  15575. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15576. :
  15577. else
  15578. can_build_shared=no
  15579. fi
  15580. ;;
  15581. esac
  15582. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15583. # soname into executable. Probably we can add versioning support to
  15584. # collect2, so additional links can be useful in future.
  15585. if test "$aix_use_runtimelinking" = yes; then
  15586. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15587. # instead of lib<name>.a to let people know that these are not
  15588. # typical AIX shared libraries.
  15589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15590. else
  15591. # We preserve .a as extension for shared libraries through AIX4.2
  15592. # and later when we are not doing run time linking.
  15593. library_names_spec='${libname}${release}.a $libname.a'
  15594. soname_spec='${libname}${release}${shared_ext}$major'
  15595. fi
  15596. shlibpath_var=LIBPATH
  15597. fi
  15598. ;;
  15599. amigaos*)
  15600. library_names_spec='$libname.ixlibrary $libname.a'
  15601. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15602. 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'
  15603. ;;
  15604. beos*)
  15605. library_names_spec='${libname}${shared_ext}'
  15606. dynamic_linker="$host_os ld.so"
  15607. shlibpath_var=LIBRARY_PATH
  15608. ;;
  15609. bsdi[45]*)
  15610. version_type=linux
  15611. need_version=no
  15612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15613. soname_spec='${libname}${release}${shared_ext}$major'
  15614. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15615. shlibpath_var=LD_LIBRARY_PATH
  15616. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15617. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15618. # the default ld.so.conf also contains /usr/contrib/lib and
  15619. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15620. # libtool to hard-code these into programs
  15621. ;;
  15622. cygwin* | mingw* | pw32*)
  15623. version_type=windows
  15624. shrext_cmds=".dll"
  15625. need_version=no
  15626. need_lib_prefix=no
  15627. case $GCC,$host_os in
  15628. yes,cygwin* | yes,mingw* | yes,pw32*)
  15629. library_names_spec='$libname.dll.a'
  15630. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15631. postinstall_cmds='base_file=`basename \${file}`~
  15632. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15633. dldir=$destdir/`dirname \$dlpath`~
  15634. test -d \$dldir || mkdir -p \$dldir~
  15635. $install_prog $dir/$dlname \$dldir/$dlname~
  15636. chmod a+x \$dldir/$dlname'
  15637. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15638. dlpath=$dir/\$dldll~
  15639. $rm \$dlpath'
  15640. shlibpath_overrides_runpath=yes
  15641. case $host_os in
  15642. cygwin*)
  15643. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15644. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15645. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15646. ;;
  15647. mingw*)
  15648. # MinGW DLLs use traditional 'lib' prefix
  15649. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15650. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15651. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15652. # It is most probably a Windows format PATH printed by
  15653. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15654. # path with ; separators, and with drive letters. We can handle the
  15655. # drive letters (cygwin fileutils understands them), so leave them,
  15656. # especially as we might pass files found there to a mingw objdump,
  15657. # which wouldn't understand a cygwinified path. Ahh.
  15658. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15659. else
  15660. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15661. fi
  15662. ;;
  15663. pw32*)
  15664. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15665. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15666. ;;
  15667. esac
  15668. ;;
  15669. *)
  15670. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15671. ;;
  15672. esac
  15673. dynamic_linker='Win32 ld.exe'
  15674. # FIXME: first we should search . and the directory the executable is in
  15675. shlibpath_var=PATH
  15676. ;;
  15677. darwin* | rhapsody*)
  15678. dynamic_linker="$host_os dyld"
  15679. version_type=darwin
  15680. need_lib_prefix=no
  15681. need_version=no
  15682. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15683. soname_spec='${libname}${release}${major}$shared_ext'
  15684. shlibpath_overrides_runpath=yes
  15685. shlibpath_var=DYLD_LIBRARY_PATH
  15686. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15687. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15688. if test "$GCC" = yes; then
  15689. 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"`
  15690. else
  15691. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15692. fi
  15693. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15694. ;;
  15695. dgux*)
  15696. version_type=linux
  15697. need_lib_prefix=no
  15698. need_version=no
  15699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15700. soname_spec='${libname}${release}${shared_ext}$major'
  15701. shlibpath_var=LD_LIBRARY_PATH
  15702. ;;
  15703. freebsd1*)
  15704. dynamic_linker=no
  15705. ;;
  15706. kfreebsd*-gnu)
  15707. version_type=linux
  15708. need_lib_prefix=no
  15709. need_version=no
  15710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15711. soname_spec='${libname}${release}${shared_ext}$major'
  15712. shlibpath_var=LD_LIBRARY_PATH
  15713. shlibpath_overrides_runpath=no
  15714. hardcode_into_libs=yes
  15715. dynamic_linker='GNU ld.so'
  15716. ;;
  15717. freebsd* | dragonfly*)
  15718. # DragonFly does not have aout. When/if they implement a new
  15719. # versioning mechanism, adjust this.
  15720. if test -x /usr/bin/objformat; then
  15721. objformat=`/usr/bin/objformat`
  15722. else
  15723. case $host_os in
  15724. freebsd[123]*) objformat=aout ;;
  15725. *) objformat=elf ;;
  15726. esac
  15727. fi
  15728. version_type=freebsd-$objformat
  15729. case $version_type in
  15730. freebsd-elf*)
  15731. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15732. need_version=no
  15733. need_lib_prefix=no
  15734. ;;
  15735. freebsd-*)
  15736. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15737. need_version=yes
  15738. ;;
  15739. esac
  15740. shlibpath_var=LD_LIBRARY_PATH
  15741. case $host_os in
  15742. freebsd2*)
  15743. shlibpath_overrides_runpath=yes
  15744. ;;
  15745. freebsd3.[01]* | freebsdelf3.[01]*)
  15746. shlibpath_overrides_runpath=yes
  15747. hardcode_into_libs=yes
  15748. ;;
  15749. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15750. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15751. shlibpath_overrides_runpath=no
  15752. hardcode_into_libs=yes
  15753. ;;
  15754. freebsd*) # from 4.6 on
  15755. shlibpath_overrides_runpath=yes
  15756. hardcode_into_libs=yes
  15757. ;;
  15758. esac
  15759. ;;
  15760. gnu*)
  15761. version_type=linux
  15762. need_lib_prefix=no
  15763. need_version=no
  15764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15765. soname_spec='${libname}${release}${shared_ext}$major'
  15766. shlibpath_var=LD_LIBRARY_PATH
  15767. hardcode_into_libs=yes
  15768. ;;
  15769. hpux9* | hpux10* | hpux11*)
  15770. # Give a soname corresponding to the major version so that dld.sl refuses to
  15771. # link against other versions.
  15772. version_type=sunos
  15773. need_lib_prefix=no
  15774. need_version=no
  15775. case $host_cpu in
  15776. ia64*)
  15777. shrext_cmds='.so'
  15778. hardcode_into_libs=yes
  15779. dynamic_linker="$host_os dld.so"
  15780. shlibpath_var=LD_LIBRARY_PATH
  15781. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15783. soname_spec='${libname}${release}${shared_ext}$major'
  15784. if test "X$HPUX_IA64_MODE" = X32; then
  15785. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15786. else
  15787. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15788. fi
  15789. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15790. ;;
  15791. hppa*64*)
  15792. shrext_cmds='.sl'
  15793. hardcode_into_libs=yes
  15794. dynamic_linker="$host_os dld.sl"
  15795. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15796. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15798. soname_spec='${libname}${release}${shared_ext}$major'
  15799. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15800. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15801. ;;
  15802. *)
  15803. shrext_cmds='.sl'
  15804. dynamic_linker="$host_os dld.sl"
  15805. shlibpath_var=SHLIB_PATH
  15806. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15808. soname_spec='${libname}${release}${shared_ext}$major'
  15809. ;;
  15810. esac
  15811. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15812. postinstall_cmds='chmod 555 $lib'
  15813. ;;
  15814. interix3*)
  15815. version_type=linux
  15816. need_lib_prefix=no
  15817. need_version=no
  15818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15819. soname_spec='${libname}${release}${shared_ext}$major'
  15820. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15821. shlibpath_var=LD_LIBRARY_PATH
  15822. shlibpath_overrides_runpath=no
  15823. hardcode_into_libs=yes
  15824. ;;
  15825. irix5* | irix6* | nonstopux*)
  15826. case $host_os in
  15827. nonstopux*) version_type=nonstopux ;;
  15828. *)
  15829. if test "$lt_cv_prog_gnu_ld" = yes; then
  15830. version_type=linux
  15831. else
  15832. version_type=irix
  15833. fi ;;
  15834. esac
  15835. need_lib_prefix=no
  15836. need_version=no
  15837. soname_spec='${libname}${release}${shared_ext}$major'
  15838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15839. case $host_os in
  15840. irix5* | nonstopux*)
  15841. libsuff= shlibsuff=
  15842. ;;
  15843. *)
  15844. case $LD in # libtool.m4 will add one of these switches to LD
  15845. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15846. libsuff= shlibsuff= libmagic=32-bit;;
  15847. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15848. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15849. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15850. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15851. *) libsuff= shlibsuff= libmagic=never-match;;
  15852. esac
  15853. ;;
  15854. esac
  15855. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15856. shlibpath_overrides_runpath=no
  15857. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15858. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15859. hardcode_into_libs=yes
  15860. ;;
  15861. # No shared lib support for Linux oldld, aout, or coff.
  15862. linux*oldld* | linux*aout* | linux*coff*)
  15863. dynamic_linker=no
  15864. ;;
  15865. # This must be Linux ELF.
  15866. linux*)
  15867. version_type=linux
  15868. need_lib_prefix=no
  15869. need_version=no
  15870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15871. soname_spec='${libname}${release}${shared_ext}$major'
  15872. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15873. shlibpath_var=LD_LIBRARY_PATH
  15874. shlibpath_overrides_runpath=no
  15875. # This implies no fast_install, which is unacceptable.
  15876. # Some rework will be needed to allow for fast_install
  15877. # before this can be enabled.
  15878. hardcode_into_libs=yes
  15879. # find out which ABI we are using
  15880. libsuff=
  15881. case "$host_cpu" in
  15882. x86_64*|s390x*|powerpc64*)
  15883. echo '#line 17657 "configure"' > conftest.$ac_ext
  15884. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15885. (eval $ac_compile) 2>&5
  15886. ac_status=$?
  15887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15888. (exit $ac_status); }; then
  15889. case `/usr/bin/file conftest.$ac_objext` in
  15890. *64-bit*)
  15891. libsuff=64
  15892. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15893. ;;
  15894. esac
  15895. fi
  15896. rm -rf conftest*
  15897. ;;
  15898. esac
  15899. # Append ld.so.conf contents to the search path
  15900. if test -f /etc/ld.so.conf; then
  15901. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15902. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15903. fi
  15904. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15905. # powerpc, because MkLinux only supported shared libraries with the
  15906. # GNU dynamic linker. Since this was broken with cross compilers,
  15907. # most powerpc-linux boxes support dynamic linking these days and
  15908. # people can always --disable-shared, the test was removed, and we
  15909. # assume the GNU/Linux dynamic linker is in use.
  15910. dynamic_linker='GNU/Linux ld.so'
  15911. ;;
  15912. knetbsd*-gnu)
  15913. version_type=linux
  15914. need_lib_prefix=no
  15915. need_version=no
  15916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15917. soname_spec='${libname}${release}${shared_ext}$major'
  15918. shlibpath_var=LD_LIBRARY_PATH
  15919. shlibpath_overrides_runpath=no
  15920. hardcode_into_libs=yes
  15921. dynamic_linker='GNU ld.so'
  15922. ;;
  15923. netbsd*)
  15924. version_type=sunos
  15925. need_lib_prefix=no
  15926. need_version=no
  15927. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15929. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15930. dynamic_linker='NetBSD (a.out) ld.so'
  15931. else
  15932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15933. soname_spec='${libname}${release}${shared_ext}$major'
  15934. dynamic_linker='NetBSD ld.elf_so'
  15935. fi
  15936. shlibpath_var=LD_LIBRARY_PATH
  15937. shlibpath_overrides_runpath=yes
  15938. hardcode_into_libs=yes
  15939. ;;
  15940. newsos6)
  15941. version_type=linux
  15942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15943. shlibpath_var=LD_LIBRARY_PATH
  15944. shlibpath_overrides_runpath=yes
  15945. ;;
  15946. nto-qnx*)
  15947. version_type=linux
  15948. need_lib_prefix=no
  15949. need_version=no
  15950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15951. soname_spec='${libname}${release}${shared_ext}$major'
  15952. shlibpath_var=LD_LIBRARY_PATH
  15953. shlibpath_overrides_runpath=yes
  15954. ;;
  15955. openbsd*)
  15956. version_type=sunos
  15957. sys_lib_dlsearch_path_spec="/usr/lib"
  15958. need_lib_prefix=no
  15959. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15960. case $host_os in
  15961. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15962. *) need_version=no ;;
  15963. esac
  15964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15965. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15966. shlibpath_var=LD_LIBRARY_PATH
  15967. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15968. case $host_os in
  15969. openbsd2.[89] | openbsd2.[89].*)
  15970. shlibpath_overrides_runpath=no
  15971. ;;
  15972. *)
  15973. shlibpath_overrides_runpath=yes
  15974. ;;
  15975. esac
  15976. else
  15977. shlibpath_overrides_runpath=yes
  15978. fi
  15979. ;;
  15980. os2*)
  15981. libname_spec='$name'
  15982. shrext_cmds=".dll"
  15983. need_lib_prefix=no
  15984. library_names_spec='$libname${shared_ext} $libname.a'
  15985. dynamic_linker='OS/2 ld.exe'
  15986. shlibpath_var=LIBPATH
  15987. ;;
  15988. osf3* | osf4* | osf5*)
  15989. version_type=osf
  15990. need_lib_prefix=no
  15991. need_version=no
  15992. soname_spec='${libname}${release}${shared_ext}$major'
  15993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15994. shlibpath_var=LD_LIBRARY_PATH
  15995. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15996. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15997. ;;
  15998. solaris*)
  15999. version_type=linux
  16000. need_lib_prefix=no
  16001. need_version=no
  16002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16003. soname_spec='${libname}${release}${shared_ext}$major'
  16004. shlibpath_var=LD_LIBRARY_PATH
  16005. shlibpath_overrides_runpath=yes
  16006. hardcode_into_libs=yes
  16007. # ldd complains unless libraries are executable
  16008. postinstall_cmds='chmod +x $lib'
  16009. ;;
  16010. sunos4*)
  16011. version_type=sunos
  16012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16013. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16014. shlibpath_var=LD_LIBRARY_PATH
  16015. shlibpath_overrides_runpath=yes
  16016. if test "$with_gnu_ld" = yes; then
  16017. need_lib_prefix=no
  16018. fi
  16019. need_version=yes
  16020. ;;
  16021. sysv4 | sysv4.3*)
  16022. version_type=linux
  16023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16024. soname_spec='${libname}${release}${shared_ext}$major'
  16025. shlibpath_var=LD_LIBRARY_PATH
  16026. case $host_vendor in
  16027. sni)
  16028. shlibpath_overrides_runpath=no
  16029. need_lib_prefix=no
  16030. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16031. runpath_var=LD_RUN_PATH
  16032. ;;
  16033. siemens)
  16034. need_lib_prefix=no
  16035. ;;
  16036. motorola)
  16037. need_lib_prefix=no
  16038. need_version=no
  16039. shlibpath_overrides_runpath=no
  16040. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16041. ;;
  16042. esac
  16043. ;;
  16044. sysv4*MP*)
  16045. if test -d /usr/nec ;then
  16046. version_type=linux
  16047. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16048. soname_spec='$libname${shared_ext}.$major'
  16049. shlibpath_var=LD_LIBRARY_PATH
  16050. fi
  16051. ;;
  16052. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16053. version_type=freebsd-elf
  16054. need_lib_prefix=no
  16055. need_version=no
  16056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16057. soname_spec='${libname}${release}${shared_ext}$major'
  16058. shlibpath_var=LD_LIBRARY_PATH
  16059. hardcode_into_libs=yes
  16060. if test "$with_gnu_ld" = yes; then
  16061. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16062. shlibpath_overrides_runpath=no
  16063. else
  16064. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16065. shlibpath_overrides_runpath=yes
  16066. case $host_os in
  16067. sco3.2v5*)
  16068. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16069. ;;
  16070. esac
  16071. fi
  16072. sys_lib_dlsearch_path_spec='/usr/lib'
  16073. ;;
  16074. uts4*)
  16075. version_type=linux
  16076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16077. soname_spec='${libname}${release}${shared_ext}$major'
  16078. shlibpath_var=LD_LIBRARY_PATH
  16079. ;;
  16080. *)
  16081. dynamic_linker=no
  16082. ;;
  16083. esac
  16084. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16085. echo "${ECHO_T}$dynamic_linker" >&6
  16086. test "$dynamic_linker" = no && can_build_shared=no
  16087. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16088. if test "$GCC" = yes; then
  16089. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16090. fi
  16091. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16092. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16093. hardcode_action_GCJ=
  16094. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16095. test -n "$runpath_var_GCJ" || \
  16096. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16097. # We can hardcode non-existant directories.
  16098. if test "$hardcode_direct_GCJ" != no &&
  16099. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16100. # have to relink, otherwise we might link with an installed library
  16101. # when we should be linking with a yet-to-be-installed one
  16102. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16103. test "$hardcode_minus_L_GCJ" != no; then
  16104. # Linking always hardcodes the temporary library directory.
  16105. hardcode_action_GCJ=relink
  16106. else
  16107. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16108. hardcode_action_GCJ=immediate
  16109. fi
  16110. else
  16111. # We cannot hardcode anything, or else we can only hardcode existing
  16112. # directories.
  16113. hardcode_action_GCJ=unsupported
  16114. fi
  16115. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16116. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16117. if test "$hardcode_action_GCJ" = relink; then
  16118. # Fast installation is not supported
  16119. enable_fast_install=no
  16120. elif test "$shlibpath_overrides_runpath" = yes ||
  16121. test "$enable_shared" = no; then
  16122. # Fast installation is not necessary
  16123. enable_fast_install=needless
  16124. fi
  16125. # The else clause should only fire when bootstrapping the
  16126. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16127. # with your package, and you will get complaints that there are
  16128. # no rules to generate ltmain.sh.
  16129. if test -f "$ltmain"; then
  16130. # See if we are running on zsh, and set the options which allow our commands through
  16131. # without removal of \ escapes.
  16132. if test -n "${ZSH_VERSION+set}" ; then
  16133. setopt NO_GLOB_SUBST
  16134. fi
  16135. # Now quote all the things that may contain metacharacters while being
  16136. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16137. # variables and quote the copies for generation of the libtool script.
  16138. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16139. SED SHELL STRIP \
  16140. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16141. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16142. deplibs_check_method reload_flag reload_cmds need_locks \
  16143. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16144. lt_cv_sys_global_symbol_to_c_name_address \
  16145. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16146. old_postinstall_cmds old_postuninstall_cmds \
  16147. compiler_GCJ \
  16148. CC_GCJ \
  16149. LD_GCJ \
  16150. lt_prog_compiler_wl_GCJ \
  16151. lt_prog_compiler_pic_GCJ \
  16152. lt_prog_compiler_static_GCJ \
  16153. lt_prog_compiler_no_builtin_flag_GCJ \
  16154. export_dynamic_flag_spec_GCJ \
  16155. thread_safe_flag_spec_GCJ \
  16156. whole_archive_flag_spec_GCJ \
  16157. enable_shared_with_static_runtimes_GCJ \
  16158. old_archive_cmds_GCJ \
  16159. old_archive_from_new_cmds_GCJ \
  16160. predep_objects_GCJ \
  16161. postdep_objects_GCJ \
  16162. predeps_GCJ \
  16163. postdeps_GCJ \
  16164. compiler_lib_search_path_GCJ \
  16165. archive_cmds_GCJ \
  16166. archive_expsym_cmds_GCJ \
  16167. postinstall_cmds_GCJ \
  16168. postuninstall_cmds_GCJ \
  16169. old_archive_from_expsyms_cmds_GCJ \
  16170. allow_undefined_flag_GCJ \
  16171. no_undefined_flag_GCJ \
  16172. export_symbols_cmds_GCJ \
  16173. hardcode_libdir_flag_spec_GCJ \
  16174. hardcode_libdir_flag_spec_ld_GCJ \
  16175. hardcode_libdir_separator_GCJ \
  16176. hardcode_automatic_GCJ \
  16177. module_cmds_GCJ \
  16178. module_expsym_cmds_GCJ \
  16179. lt_cv_prog_compiler_c_o_GCJ \
  16180. exclude_expsyms_GCJ \
  16181. include_expsyms_GCJ; do
  16182. case $var in
  16183. old_archive_cmds_GCJ | \
  16184. old_archive_from_new_cmds_GCJ | \
  16185. archive_cmds_GCJ | \
  16186. archive_expsym_cmds_GCJ | \
  16187. module_cmds_GCJ | \
  16188. module_expsym_cmds_GCJ | \
  16189. old_archive_from_expsyms_cmds_GCJ | \
  16190. export_symbols_cmds_GCJ | \
  16191. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16192. postinstall_cmds | postuninstall_cmds | \
  16193. old_postinstall_cmds | old_postuninstall_cmds | \
  16194. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16195. # Double-quote double-evaled strings.
  16196. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16197. ;;
  16198. *)
  16199. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16200. ;;
  16201. esac
  16202. done
  16203. case $lt_echo in
  16204. *'\$0 --fallback-echo"')
  16205. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16206. ;;
  16207. esac
  16208. cfgfile="$ofile"
  16209. cat <<__EOF__ >> "$cfgfile"
  16210. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16211. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16212. # Shell to use when invoking shell scripts.
  16213. SHELL=$lt_SHELL
  16214. # Whether or not to build shared libraries.
  16215. build_libtool_libs=$enable_shared
  16216. # Whether or not to build static libraries.
  16217. build_old_libs=$enable_static
  16218. # Whether or not to add -lc for building shared libraries.
  16219. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16220. # Whether or not to disallow shared libs when runtime libs are static
  16221. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16222. # Whether or not to optimize for fast installation.
  16223. fast_install=$enable_fast_install
  16224. # The host system.
  16225. host_alias=$host_alias
  16226. host=$host
  16227. host_os=$host_os
  16228. # The build system.
  16229. build_alias=$build_alias
  16230. build=$build
  16231. build_os=$build_os
  16232. # An echo program that does not interpret backslashes.
  16233. echo=$lt_echo
  16234. # The archiver.
  16235. AR=$lt_AR
  16236. AR_FLAGS=$lt_AR_FLAGS
  16237. # A C compiler.
  16238. LTCC=$lt_LTCC
  16239. # LTCC compiler flags.
  16240. LTCFLAGS=$lt_LTCFLAGS
  16241. # A language-specific compiler.
  16242. CC=$lt_compiler_GCJ
  16243. # Is the compiler the GNU C compiler?
  16244. with_gcc=$GCC_GCJ
  16245. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16246. gcc_ver=\`gcc -dumpversion\`
  16247. # An ERE matcher.
  16248. EGREP=$lt_EGREP
  16249. # The linker used to build libraries.
  16250. LD=$lt_LD_GCJ
  16251. # Whether we need hard or soft links.
  16252. LN_S=$lt_LN_S
  16253. # A BSD-compatible nm program.
  16254. NM=$lt_NM
  16255. # A symbol stripping program
  16256. STRIP=$lt_STRIP
  16257. # Used to examine libraries when file_magic_cmd begins "file"
  16258. MAGIC_CMD=$MAGIC_CMD
  16259. # Used on cygwin: DLL creation program.
  16260. DLLTOOL="$DLLTOOL"
  16261. # Used on cygwin: object dumper.
  16262. OBJDUMP="$OBJDUMP"
  16263. # Used on cygwin: assembler.
  16264. AS="$AS"
  16265. # The name of the directory that contains temporary libtool files.
  16266. objdir=$objdir
  16267. # How to create reloadable object files.
  16268. reload_flag=$lt_reload_flag
  16269. reload_cmds=$lt_reload_cmds
  16270. # How to pass a linker flag through the compiler.
  16271. wl=$lt_lt_prog_compiler_wl_GCJ
  16272. # Object file suffix (normally "o").
  16273. objext="$ac_objext"
  16274. # Old archive suffix (normally "a").
  16275. libext="$libext"
  16276. # Shared library suffix (normally ".so").
  16277. shrext_cmds='$shrext_cmds'
  16278. # Executable file suffix (normally "").
  16279. exeext="$exeext"
  16280. # Additional compiler flags for building library objects.
  16281. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16282. pic_mode=$pic_mode
  16283. # What is the maximum length of a command?
  16284. max_cmd_len=$lt_cv_sys_max_cmd_len
  16285. # Does compiler simultaneously support -c and -o options?
  16286. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16287. # Must we lock files when doing compilation?
  16288. need_locks=$lt_need_locks
  16289. # Do we need the lib prefix for modules?
  16290. need_lib_prefix=$need_lib_prefix
  16291. # Do we need a version for libraries?
  16292. need_version=$need_version
  16293. # Whether dlopen is supported.
  16294. dlopen_support=$enable_dlopen
  16295. # Whether dlopen of programs is supported.
  16296. dlopen_self=$enable_dlopen_self
  16297. # Whether dlopen of statically linked programs is supported.
  16298. dlopen_self_static=$enable_dlopen_self_static
  16299. # Compiler flag to prevent dynamic linking.
  16300. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16301. # Compiler flag to turn off builtin functions.
  16302. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16303. # Compiler flag to allow reflexive dlopens.
  16304. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16305. # Compiler flag to generate shared objects directly from archives.
  16306. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16307. # Compiler flag to generate thread-safe objects.
  16308. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16309. # Library versioning type.
  16310. version_type=$version_type
  16311. # Format of library name prefix.
  16312. libname_spec=$lt_libname_spec
  16313. # List of archive names. First name is the real one, the rest are links.
  16314. # The last name is the one that the linker finds with -lNAME.
  16315. library_names_spec=$lt_library_names_spec
  16316. # The coded name of the library, if different from the real name.
  16317. soname_spec=$lt_soname_spec
  16318. # Commands used to build and install an old-style archive.
  16319. RANLIB=$lt_RANLIB
  16320. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16321. old_postinstall_cmds=$lt_old_postinstall_cmds
  16322. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16323. # Create an old-style archive from a shared archive.
  16324. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16325. # Create a temporary old-style archive to link instead of a shared archive.
  16326. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16327. # Commands used to build and install a shared archive.
  16328. archive_cmds=$lt_archive_cmds_GCJ
  16329. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16330. postinstall_cmds=$lt_postinstall_cmds
  16331. postuninstall_cmds=$lt_postuninstall_cmds
  16332. # Commands used to build a loadable module (assumed same as above if empty)
  16333. module_cmds=$lt_module_cmds_GCJ
  16334. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16335. # Commands to strip libraries.
  16336. old_striplib=$lt_old_striplib
  16337. striplib=$lt_striplib
  16338. # Dependencies to place before the objects being linked to create a
  16339. # shared library.
  16340. predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16341. # Dependencies to place after the objects being linked to create a
  16342. # shared library.
  16343. postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16344. # Dependencies to place before the objects being linked to create a
  16345. # shared library.
  16346. predeps=$lt_predeps_GCJ
  16347. # Dependencies to place after the objects being linked to create a
  16348. # shared library.
  16349. postdeps=$lt_postdeps_GCJ
  16350. # The library search path used internally by the compiler when linking
  16351. # a shared library.
  16352. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16353. # Method to check whether dependent libraries are shared objects.
  16354. deplibs_check_method=$lt_deplibs_check_method
  16355. # Command to use when deplibs_check_method == file_magic.
  16356. file_magic_cmd=$lt_file_magic_cmd
  16357. # Flag that allows shared libraries with undefined symbols to be built.
  16358. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16359. # Flag that forces no undefined symbols.
  16360. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16361. # Commands used to finish a libtool library installation in a directory.
  16362. finish_cmds=$lt_finish_cmds
  16363. # Same as above, but a single script fragment to be evaled but not shown.
  16364. finish_eval=$lt_finish_eval
  16365. # Take the output of nm and produce a listing of raw symbols and C names.
  16366. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16367. # Transform the output of nm in a proper C declaration
  16368. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16369. # Transform the output of nm in a C name address pair
  16370. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16371. # This is the shared library runtime path variable.
  16372. runpath_var=$runpath_var
  16373. # This is the shared library path variable.
  16374. shlibpath_var=$shlibpath_var
  16375. # Is shlibpath searched before the hard-coded library search path?
  16376. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16377. # How to hardcode a shared library path into an executable.
  16378. hardcode_action=$hardcode_action_GCJ
  16379. # Whether we should hardcode library paths into libraries.
  16380. hardcode_into_libs=$hardcode_into_libs
  16381. # Flag to hardcode \$libdir into a binary during linking.
  16382. # This must work even if \$libdir does not exist.
  16383. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16384. # If ld is used when linking, flag to hardcode \$libdir into
  16385. # a binary during linking. This must work even if \$libdir does
  16386. # not exist.
  16387. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16388. # Whether we need a single -rpath flag with a separated argument.
  16389. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16390. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16391. # resulting binary.
  16392. hardcode_direct=$hardcode_direct_GCJ
  16393. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16394. # resulting binary.
  16395. hardcode_minus_L=$hardcode_minus_L_GCJ
  16396. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16397. # the resulting binary.
  16398. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16399. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16400. # and all subsequent libraries and executables linked against it.
  16401. hardcode_automatic=$hardcode_automatic_GCJ
  16402. # Variables whose values should be saved in libtool wrapper scripts and
  16403. # restored at relink time.
  16404. variables_saved_for_relink="$variables_saved_for_relink"
  16405. # Whether libtool must link a program against all its dependency libraries.
  16406. link_all_deplibs=$link_all_deplibs_GCJ
  16407. # Compile-time system search path for libraries
  16408. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16409. # Run-time system search path for libraries
  16410. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16411. # Fix the shell variable \$srcfile for the compiler.
  16412. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16413. # Set to yes if exported symbols are required.
  16414. always_export_symbols=$always_export_symbols_GCJ
  16415. # The commands to list exported symbols.
  16416. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16417. # The commands to extract the exported symbol list from a shared archive.
  16418. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16419. # Symbols that should not be listed in the preloaded symbols.
  16420. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16421. # Symbols that must always be exported.
  16422. include_expsyms=$lt_include_expsyms_GCJ
  16423. # ### END LIBTOOL TAG CONFIG: $tagname
  16424. __EOF__
  16425. else
  16426. # If there is no Makefile yet, we rely on a make rule to execute
  16427. # `config.status --recheck' to rerun these tests and create the
  16428. # libtool script then.
  16429. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16430. if test -f "$ltmain_in"; then
  16431. test -f Makefile && make "$ltmain"
  16432. fi
  16433. fi
  16434. ac_ext=c
  16435. ac_cpp='$CPP $CPPFLAGS'
  16436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16439. CC="$lt_save_CC"
  16440. else
  16441. tagname=""
  16442. fi
  16443. ;;
  16444. RC)
  16445. # Source file extension for RC test sources.
  16446. ac_ext=rc
  16447. # Object file extension for compiled RC test sources.
  16448. objext=o
  16449. objext_RC=$objext
  16450. # Code to be used in simple compile tests
  16451. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16452. # Code to be used in simple link tests
  16453. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16454. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16455. # If no C compiler was specified, use CC.
  16456. LTCC=${LTCC-"$CC"}
  16457. # If no C compiler flags were specified, use CFLAGS.
  16458. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16459. # Allow CC to be a program name with arguments.
  16460. compiler=$CC
  16461. # save warnings/boilerplate of simple test code
  16462. ac_outfile=conftest.$ac_objext
  16463. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16464. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16465. _lt_compiler_boilerplate=`cat conftest.err`
  16466. $rm conftest*
  16467. ac_outfile=conftest.$ac_objext
  16468. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16469. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16470. _lt_linker_boilerplate=`cat conftest.err`
  16471. $rm conftest*
  16472. # Allow CC to be a program name with arguments.
  16473. lt_save_CC="$CC"
  16474. CC=${RC-"windres"}
  16475. compiler=$CC
  16476. compiler_RC=$CC
  16477. for cc_temp in $compiler""; do
  16478. case $cc_temp in
  16479. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16480. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16481. \-*) ;;
  16482. *) break;;
  16483. esac
  16484. done
  16485. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16486. lt_cv_prog_compiler_c_o_RC=yes
  16487. # The else clause should only fire when bootstrapping the
  16488. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16489. # with your package, and you will get complaints that there are
  16490. # no rules to generate ltmain.sh.
  16491. if test -f "$ltmain"; then
  16492. # See if we are running on zsh, and set the options which allow our commands through
  16493. # without removal of \ escapes.
  16494. if test -n "${ZSH_VERSION+set}" ; then
  16495. setopt NO_GLOB_SUBST
  16496. fi
  16497. # Now quote all the things that may contain metacharacters while being
  16498. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16499. # variables and quote the copies for generation of the libtool script.
  16500. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16501. SED SHELL STRIP \
  16502. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16503. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16504. deplibs_check_method reload_flag reload_cmds need_locks \
  16505. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16506. lt_cv_sys_global_symbol_to_c_name_address \
  16507. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16508. old_postinstall_cmds old_postuninstall_cmds \
  16509. compiler_RC \
  16510. CC_RC \
  16511. LD_RC \
  16512. lt_prog_compiler_wl_RC \
  16513. lt_prog_compiler_pic_RC \
  16514. lt_prog_compiler_static_RC \
  16515. lt_prog_compiler_no_builtin_flag_RC \
  16516. export_dynamic_flag_spec_RC \
  16517. thread_safe_flag_spec_RC \
  16518. whole_archive_flag_spec_RC \
  16519. enable_shared_with_static_runtimes_RC \
  16520. old_archive_cmds_RC \
  16521. old_archive_from_new_cmds_RC \
  16522. predep_objects_RC \
  16523. postdep_objects_RC \
  16524. predeps_RC \
  16525. postdeps_RC \
  16526. compiler_lib_search_path_RC \
  16527. archive_cmds_RC \
  16528. archive_expsym_cmds_RC \
  16529. postinstall_cmds_RC \
  16530. postuninstall_cmds_RC \
  16531. old_archive_from_expsyms_cmds_RC \
  16532. allow_undefined_flag_RC \
  16533. no_undefined_flag_RC \
  16534. export_symbols_cmds_RC \
  16535. hardcode_libdir_flag_spec_RC \
  16536. hardcode_libdir_flag_spec_ld_RC \
  16537. hardcode_libdir_separator_RC \
  16538. hardcode_automatic_RC \
  16539. module_cmds_RC \
  16540. module_expsym_cmds_RC \
  16541. lt_cv_prog_compiler_c_o_RC \
  16542. exclude_expsyms_RC \
  16543. include_expsyms_RC; do
  16544. case $var in
  16545. old_archive_cmds_RC | \
  16546. old_archive_from_new_cmds_RC | \
  16547. archive_cmds_RC | \
  16548. archive_expsym_cmds_RC | \
  16549. module_cmds_RC | \
  16550. module_expsym_cmds_RC | \
  16551. old_archive_from_expsyms_cmds_RC | \
  16552. export_symbols_cmds_RC | \
  16553. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16554. postinstall_cmds | postuninstall_cmds | \
  16555. old_postinstall_cmds | old_postuninstall_cmds | \
  16556. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16557. # Double-quote double-evaled strings.
  16558. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16559. ;;
  16560. *)
  16561. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16562. ;;
  16563. esac
  16564. done
  16565. case $lt_echo in
  16566. *'\$0 --fallback-echo"')
  16567. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16568. ;;
  16569. esac
  16570. cfgfile="$ofile"
  16571. cat <<__EOF__ >> "$cfgfile"
  16572. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16573. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16574. # Shell to use when invoking shell scripts.
  16575. SHELL=$lt_SHELL
  16576. # Whether or not to build shared libraries.
  16577. build_libtool_libs=$enable_shared
  16578. # Whether or not to build static libraries.
  16579. build_old_libs=$enable_static
  16580. # Whether or not to add -lc for building shared libraries.
  16581. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16582. # Whether or not to disallow shared libs when runtime libs are static
  16583. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16584. # Whether or not to optimize for fast installation.
  16585. fast_install=$enable_fast_install
  16586. # The host system.
  16587. host_alias=$host_alias
  16588. host=$host
  16589. host_os=$host_os
  16590. # The build system.
  16591. build_alias=$build_alias
  16592. build=$build
  16593. build_os=$build_os
  16594. # An echo program that does not interpret backslashes.
  16595. echo=$lt_echo
  16596. # The archiver.
  16597. AR=$lt_AR
  16598. AR_FLAGS=$lt_AR_FLAGS
  16599. # A C compiler.
  16600. LTCC=$lt_LTCC
  16601. # LTCC compiler flags.
  16602. LTCFLAGS=$lt_LTCFLAGS
  16603. # A language-specific compiler.
  16604. CC=$lt_compiler_RC
  16605. # Is the compiler the GNU C compiler?
  16606. with_gcc=$GCC_RC
  16607. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16608. gcc_ver=\`gcc -dumpversion\`
  16609. # An ERE matcher.
  16610. EGREP=$lt_EGREP
  16611. # The linker used to build libraries.
  16612. LD=$lt_LD_RC
  16613. # Whether we need hard or soft links.
  16614. LN_S=$lt_LN_S
  16615. # A BSD-compatible nm program.
  16616. NM=$lt_NM
  16617. # A symbol stripping program
  16618. STRIP=$lt_STRIP
  16619. # Used to examine libraries when file_magic_cmd begins "file"
  16620. MAGIC_CMD=$MAGIC_CMD
  16621. # Used on cygwin: DLL creation program.
  16622. DLLTOOL="$DLLTOOL"
  16623. # Used on cygwin: object dumper.
  16624. OBJDUMP="$OBJDUMP"
  16625. # Used on cygwin: assembler.
  16626. AS="$AS"
  16627. # The name of the directory that contains temporary libtool files.
  16628. objdir=$objdir
  16629. # How to create reloadable object files.
  16630. reload_flag=$lt_reload_flag
  16631. reload_cmds=$lt_reload_cmds
  16632. # How to pass a linker flag through the compiler.
  16633. wl=$lt_lt_prog_compiler_wl_RC
  16634. # Object file suffix (normally "o").
  16635. objext="$ac_objext"
  16636. # Old archive suffix (normally "a").
  16637. libext="$libext"
  16638. # Shared library suffix (normally ".so").
  16639. shrext_cmds='$shrext_cmds'
  16640. # Executable file suffix (normally "").
  16641. exeext="$exeext"
  16642. # Additional compiler flags for building library objects.
  16643. pic_flag=$lt_lt_prog_compiler_pic_RC
  16644. pic_mode=$pic_mode
  16645. # What is the maximum length of a command?
  16646. max_cmd_len=$lt_cv_sys_max_cmd_len
  16647. # Does compiler simultaneously support -c and -o options?
  16648. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16649. # Must we lock files when doing compilation?
  16650. need_locks=$lt_need_locks
  16651. # Do we need the lib prefix for modules?
  16652. need_lib_prefix=$need_lib_prefix
  16653. # Do we need a version for libraries?
  16654. need_version=$need_version
  16655. # Whether dlopen is supported.
  16656. dlopen_support=$enable_dlopen
  16657. # Whether dlopen of programs is supported.
  16658. dlopen_self=$enable_dlopen_self
  16659. # Whether dlopen of statically linked programs is supported.
  16660. dlopen_self_static=$enable_dlopen_self_static
  16661. # Compiler flag to prevent dynamic linking.
  16662. link_static_flag=$lt_lt_prog_compiler_static_RC
  16663. # Compiler flag to turn off builtin functions.
  16664. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16665. # Compiler flag to allow reflexive dlopens.
  16666. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16667. # Compiler flag to generate shared objects directly from archives.
  16668. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16669. # Compiler flag to generate thread-safe objects.
  16670. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16671. # Library versioning type.
  16672. version_type=$version_type
  16673. # Format of library name prefix.
  16674. libname_spec=$lt_libname_spec
  16675. # List of archive names. First name is the real one, the rest are links.
  16676. # The last name is the one that the linker finds with -lNAME.
  16677. library_names_spec=$lt_library_names_spec
  16678. # The coded name of the library, if different from the real name.
  16679. soname_spec=$lt_soname_spec
  16680. # Commands used to build and install an old-style archive.
  16681. RANLIB=$lt_RANLIB
  16682. old_archive_cmds=$lt_old_archive_cmds_RC
  16683. old_postinstall_cmds=$lt_old_postinstall_cmds
  16684. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16685. # Create an old-style archive from a shared archive.
  16686. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16687. # Create a temporary old-style archive to link instead of a shared archive.
  16688. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16689. # Commands used to build and install a shared archive.
  16690. archive_cmds=$lt_archive_cmds_RC
  16691. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16692. postinstall_cmds=$lt_postinstall_cmds
  16693. postuninstall_cmds=$lt_postuninstall_cmds
  16694. # Commands used to build a loadable module (assumed same as above if empty)
  16695. module_cmds=$lt_module_cmds_RC
  16696. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16697. # Commands to strip libraries.
  16698. old_striplib=$lt_old_striplib
  16699. striplib=$lt_striplib
  16700. # Dependencies to place before the objects being linked to create a
  16701. # shared library.
  16702. predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16703. # Dependencies to place after the objects being linked to create a
  16704. # shared library.
  16705. postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16706. # Dependencies to place before the objects being linked to create a
  16707. # shared library.
  16708. predeps=$lt_predeps_RC
  16709. # Dependencies to place after the objects being linked to create a
  16710. # shared library.
  16711. postdeps=$lt_postdeps_RC
  16712. # The library search path used internally by the compiler when linking
  16713. # a shared library.
  16714. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16715. # Method to check whether dependent libraries are shared objects.
  16716. deplibs_check_method=$lt_deplibs_check_method
  16717. # Command to use when deplibs_check_method == file_magic.
  16718. file_magic_cmd=$lt_file_magic_cmd
  16719. # Flag that allows shared libraries with undefined symbols to be built.
  16720. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16721. # Flag that forces no undefined symbols.
  16722. no_undefined_flag=$lt_no_undefined_flag_RC
  16723. # Commands used to finish a libtool library installation in a directory.
  16724. finish_cmds=$lt_finish_cmds
  16725. # Same as above, but a single script fragment to be evaled but not shown.
  16726. finish_eval=$lt_finish_eval
  16727. # Take the output of nm and produce a listing of raw symbols and C names.
  16728. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16729. # Transform the output of nm in a proper C declaration
  16730. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16731. # Transform the output of nm in a C name address pair
  16732. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16733. # This is the shared library runtime path variable.
  16734. runpath_var=$runpath_var
  16735. # This is the shared library path variable.
  16736. shlibpath_var=$shlibpath_var
  16737. # Is shlibpath searched before the hard-coded library search path?
  16738. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16739. # How to hardcode a shared library path into an executable.
  16740. hardcode_action=$hardcode_action_RC
  16741. # Whether we should hardcode library paths into libraries.
  16742. hardcode_into_libs=$hardcode_into_libs
  16743. # Flag to hardcode \$libdir into a binary during linking.
  16744. # This must work even if \$libdir does not exist.
  16745. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16746. # If ld is used when linking, flag to hardcode \$libdir into
  16747. # a binary during linking. This must work even if \$libdir does
  16748. # not exist.
  16749. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16750. # Whether we need a single -rpath flag with a separated argument.
  16751. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16752. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16753. # resulting binary.
  16754. hardcode_direct=$hardcode_direct_RC
  16755. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16756. # resulting binary.
  16757. hardcode_minus_L=$hardcode_minus_L_RC
  16758. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16759. # the resulting binary.
  16760. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16761. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16762. # and all subsequent libraries and executables linked against it.
  16763. hardcode_automatic=$hardcode_automatic_RC
  16764. # Variables whose values should be saved in libtool wrapper scripts and
  16765. # restored at relink time.
  16766. variables_saved_for_relink="$variables_saved_for_relink"
  16767. # Whether libtool must link a program against all its dependency libraries.
  16768. link_all_deplibs=$link_all_deplibs_RC
  16769. # Compile-time system search path for libraries
  16770. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16771. # Run-time system search path for libraries
  16772. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16773. # Fix the shell variable \$srcfile for the compiler.
  16774. fix_srcfile_path="$fix_srcfile_path_RC"
  16775. # Set to yes if exported symbols are required.
  16776. always_export_symbols=$always_export_symbols_RC
  16777. # The commands to list exported symbols.
  16778. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16779. # The commands to extract the exported symbol list from a shared archive.
  16780. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16781. # Symbols that should not be listed in the preloaded symbols.
  16782. exclude_expsyms=$lt_exclude_expsyms_RC
  16783. # Symbols that must always be exported.
  16784. include_expsyms=$lt_include_expsyms_RC
  16785. # ### END LIBTOOL TAG CONFIG: $tagname
  16786. __EOF__
  16787. else
  16788. # If there is no Makefile yet, we rely on a make rule to execute
  16789. # `config.status --recheck' to rerun these tests and create the
  16790. # libtool script then.
  16791. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16792. if test -f "$ltmain_in"; then
  16793. test -f Makefile && make "$ltmain"
  16794. fi
  16795. fi
  16796. ac_ext=c
  16797. ac_cpp='$CPP $CPPFLAGS'
  16798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16801. CC="$lt_save_CC"
  16802. ;;
  16803. *)
  16804. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16805. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16806. { (exit 1); exit 1; }; }
  16807. ;;
  16808. esac
  16809. # Append the new tag name to the list of available tags.
  16810. if test -n "$tagname" ; then
  16811. available_tags="$available_tags $tagname"
  16812. fi
  16813. fi
  16814. done
  16815. IFS="$lt_save_ifs"
  16816. # Now substitute the updated list of available tags.
  16817. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16818. mv "${ofile}T" "$ofile"
  16819. chmod +x "$ofile"
  16820. else
  16821. rm -f "${ofile}T"
  16822. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16823. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16824. { (exit 1); exit 1; }; }
  16825. fi
  16826. fi
  16827. # This can be used to rebuild libtool when needed
  16828. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16829. # Always use our own libtool.
  16830. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16831. # Prevent multiple expansion
  16832. # Checks for header files.
  16833. ac_header_dirent=no
  16834. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16835. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16836. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16837. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16838. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16839. echo $ECHO_N "(cached) $ECHO_C" >&6
  16840. else
  16841. cat >conftest.$ac_ext <<_ACEOF
  16842. /* confdefs.h. */
  16843. _ACEOF
  16844. cat confdefs.h >>conftest.$ac_ext
  16845. cat >>conftest.$ac_ext <<_ACEOF
  16846. /* end confdefs.h. */
  16847. #include <sys/types.h>
  16848. #include <$ac_hdr>
  16849. int
  16850. main ()
  16851. {
  16852. if ((DIR *) 0)
  16853. return 0;
  16854. ;
  16855. return 0;
  16856. }
  16857. _ACEOF
  16858. rm -f conftest.$ac_objext
  16859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16860. (eval $ac_compile) 2>conftest.er1
  16861. ac_status=$?
  16862. grep -v '^ *+' conftest.er1 >conftest.err
  16863. rm -f conftest.er1
  16864. cat conftest.err >&5
  16865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16866. (exit $ac_status); } &&
  16867. { ac_try='test -z "$ac_c_werror_flag"
  16868. || test ! -s conftest.err'
  16869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16870. (eval $ac_try) 2>&5
  16871. ac_status=$?
  16872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16873. (exit $ac_status); }; } &&
  16874. { ac_try='test -s conftest.$ac_objext'
  16875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16876. (eval $ac_try) 2>&5
  16877. ac_status=$?
  16878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16879. (exit $ac_status); }; }; then
  16880. eval "$as_ac_Header=yes"
  16881. else
  16882. echo "$as_me: failed program was:" >&5
  16883. sed 's/^/| /' conftest.$ac_ext >&5
  16884. eval "$as_ac_Header=no"
  16885. fi
  16886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16887. fi
  16888. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16889. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16890. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16891. cat >>confdefs.h <<_ACEOF
  16892. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16893. _ACEOF
  16894. ac_header_dirent=$ac_hdr; break
  16895. fi
  16896. done
  16897. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16898. if test $ac_header_dirent = dirent.h; then
  16899. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16900. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16901. if test "${ac_cv_search_opendir+set}" = set; then
  16902. echo $ECHO_N "(cached) $ECHO_C" >&6
  16903. else
  16904. ac_func_search_save_LIBS=$LIBS
  16905. ac_cv_search_opendir=no
  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="none required"
  16950. else
  16951. echo "$as_me: failed program was:" >&5
  16952. sed 's/^/| /' conftest.$ac_ext >&5
  16953. fi
  16954. rm -f conftest.err conftest.$ac_objext \
  16955. conftest$ac_exeext conftest.$ac_ext
  16956. if test "$ac_cv_search_opendir" = no; then
  16957. for ac_lib in dir; do
  16958. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16959. cat >conftest.$ac_ext <<_ACEOF
  16960. /* confdefs.h. */
  16961. _ACEOF
  16962. cat confdefs.h >>conftest.$ac_ext
  16963. cat >>conftest.$ac_ext <<_ACEOF
  16964. /* end confdefs.h. */
  16965. /* Override any gcc2 internal prototype to avoid an error. */
  16966. #ifdef __cplusplus
  16967. extern "C"
  16968. #endif
  16969. /* We use char because int might match the return type of a gcc2
  16970. builtin and then its argument prototype would still apply. */
  16971. char opendir ();
  16972. int
  16973. main ()
  16974. {
  16975. opendir ();
  16976. ;
  16977. return 0;
  16978. }
  16979. _ACEOF
  16980. rm -f conftest.$ac_objext conftest$ac_exeext
  16981. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16982. (eval $ac_link) 2>conftest.er1
  16983. ac_status=$?
  16984. grep -v '^ *+' conftest.er1 >conftest.err
  16985. rm -f conftest.er1
  16986. cat conftest.err >&5
  16987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16988. (exit $ac_status); } &&
  16989. { ac_try='test -z "$ac_c_werror_flag"
  16990. || test ! -s conftest.err'
  16991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16992. (eval $ac_try) 2>&5
  16993. ac_status=$?
  16994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16995. (exit $ac_status); }; } &&
  16996. { ac_try='test -s conftest$ac_exeext'
  16997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16998. (eval $ac_try) 2>&5
  16999. ac_status=$?
  17000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17001. (exit $ac_status); }; }; then
  17002. ac_cv_search_opendir="-l$ac_lib"
  17003. break
  17004. else
  17005. echo "$as_me: failed program was:" >&5
  17006. sed 's/^/| /' conftest.$ac_ext >&5
  17007. fi
  17008. rm -f conftest.err conftest.$ac_objext \
  17009. conftest$ac_exeext conftest.$ac_ext
  17010. done
  17011. fi
  17012. LIBS=$ac_func_search_save_LIBS
  17013. fi
  17014. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17015. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17016. if test "$ac_cv_search_opendir" != no; then
  17017. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17018. fi
  17019. else
  17020. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17021. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  17022. if test "${ac_cv_search_opendir+set}" = set; then
  17023. echo $ECHO_N "(cached) $ECHO_C" >&6
  17024. else
  17025. ac_func_search_save_LIBS=$LIBS
  17026. ac_cv_search_opendir=no
  17027. cat >conftest.$ac_ext <<_ACEOF
  17028. /* confdefs.h. */
  17029. _ACEOF
  17030. cat confdefs.h >>conftest.$ac_ext
  17031. cat >>conftest.$ac_ext <<_ACEOF
  17032. /* end confdefs.h. */
  17033. /* Override any gcc2 internal prototype to avoid an error. */
  17034. #ifdef __cplusplus
  17035. extern "C"
  17036. #endif
  17037. /* We use char because int might match the return type of a gcc2
  17038. builtin and then its argument prototype would still apply. */
  17039. char opendir ();
  17040. int
  17041. main ()
  17042. {
  17043. opendir ();
  17044. ;
  17045. return 0;
  17046. }
  17047. _ACEOF
  17048. rm -f conftest.$ac_objext conftest$ac_exeext
  17049. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17050. (eval $ac_link) 2>conftest.er1
  17051. ac_status=$?
  17052. grep -v '^ *+' conftest.er1 >conftest.err
  17053. rm -f conftest.er1
  17054. cat conftest.err >&5
  17055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17056. (exit $ac_status); } &&
  17057. { ac_try='test -z "$ac_c_werror_flag"
  17058. || test ! -s conftest.err'
  17059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17060. (eval $ac_try) 2>&5
  17061. ac_status=$?
  17062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17063. (exit $ac_status); }; } &&
  17064. { ac_try='test -s conftest$ac_exeext'
  17065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17066. (eval $ac_try) 2>&5
  17067. ac_status=$?
  17068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17069. (exit $ac_status); }; }; then
  17070. ac_cv_search_opendir="none required"
  17071. else
  17072. echo "$as_me: failed program was:" >&5
  17073. sed 's/^/| /' conftest.$ac_ext >&5
  17074. fi
  17075. rm -f conftest.err conftest.$ac_objext \
  17076. conftest$ac_exeext conftest.$ac_ext
  17077. if test "$ac_cv_search_opendir" = no; then
  17078. for ac_lib in x; do
  17079. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17080. cat >conftest.$ac_ext <<_ACEOF
  17081. /* confdefs.h. */
  17082. _ACEOF
  17083. cat confdefs.h >>conftest.$ac_ext
  17084. cat >>conftest.$ac_ext <<_ACEOF
  17085. /* end confdefs.h. */
  17086. /* Override any gcc2 internal prototype to avoid an error. */
  17087. #ifdef __cplusplus
  17088. extern "C"
  17089. #endif
  17090. /* We use char because int might match the return type of a gcc2
  17091. builtin and then its argument prototype would still apply. */
  17092. char opendir ();
  17093. int
  17094. main ()
  17095. {
  17096. opendir ();
  17097. ;
  17098. return 0;
  17099. }
  17100. _ACEOF
  17101. rm -f conftest.$ac_objext conftest$ac_exeext
  17102. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17103. (eval $ac_link) 2>conftest.er1
  17104. ac_status=$?
  17105. grep -v '^ *+' conftest.er1 >conftest.err
  17106. rm -f conftest.er1
  17107. cat conftest.err >&5
  17108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17109. (exit $ac_status); } &&
  17110. { ac_try='test -z "$ac_c_werror_flag"
  17111. || test ! -s conftest.err'
  17112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17113. (eval $ac_try) 2>&5
  17114. ac_status=$?
  17115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17116. (exit $ac_status); }; } &&
  17117. { ac_try='test -s conftest$ac_exeext'
  17118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17119. (eval $ac_try) 2>&5
  17120. ac_status=$?
  17121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17122. (exit $ac_status); }; }; then
  17123. ac_cv_search_opendir="-l$ac_lib"
  17124. break
  17125. else
  17126. echo "$as_me: failed program was:" >&5
  17127. sed 's/^/| /' conftest.$ac_ext >&5
  17128. fi
  17129. rm -f conftest.err conftest.$ac_objext \
  17130. conftest$ac_exeext conftest.$ac_ext
  17131. done
  17132. fi
  17133. LIBS=$ac_func_search_save_LIBS
  17134. fi
  17135. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17136. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17137. if test "$ac_cv_search_opendir" != no; then
  17138. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17139. fi
  17140. fi
  17141. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17142. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17143. if test "${ac_cv_header_stdc+set}" = set; then
  17144. echo $ECHO_N "(cached) $ECHO_C" >&6
  17145. else
  17146. cat >conftest.$ac_ext <<_ACEOF
  17147. /* confdefs.h. */
  17148. _ACEOF
  17149. cat confdefs.h >>conftest.$ac_ext
  17150. cat >>conftest.$ac_ext <<_ACEOF
  17151. /* end confdefs.h. */
  17152. #include <stdlib.h>
  17153. #include <stdarg.h>
  17154. #include <string.h>
  17155. #include <float.h>
  17156. int
  17157. main ()
  17158. {
  17159. ;
  17160. return 0;
  17161. }
  17162. _ACEOF
  17163. rm -f conftest.$ac_objext
  17164. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17165. (eval $ac_compile) 2>conftest.er1
  17166. ac_status=$?
  17167. grep -v '^ *+' conftest.er1 >conftest.err
  17168. rm -f conftest.er1
  17169. cat conftest.err >&5
  17170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17171. (exit $ac_status); } &&
  17172. { ac_try='test -z "$ac_c_werror_flag"
  17173. || test ! -s conftest.err'
  17174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17175. (eval $ac_try) 2>&5
  17176. ac_status=$?
  17177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17178. (exit $ac_status); }; } &&
  17179. { ac_try='test -s conftest.$ac_objext'
  17180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17181. (eval $ac_try) 2>&5
  17182. ac_status=$?
  17183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17184. (exit $ac_status); }; }; then
  17185. ac_cv_header_stdc=yes
  17186. else
  17187. echo "$as_me: failed program was:" >&5
  17188. sed 's/^/| /' conftest.$ac_ext >&5
  17189. ac_cv_header_stdc=no
  17190. fi
  17191. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17192. if test $ac_cv_header_stdc = yes; then
  17193. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17194. cat >conftest.$ac_ext <<_ACEOF
  17195. /* confdefs.h. */
  17196. _ACEOF
  17197. cat confdefs.h >>conftest.$ac_ext
  17198. cat >>conftest.$ac_ext <<_ACEOF
  17199. /* end confdefs.h. */
  17200. #include <string.h>
  17201. _ACEOF
  17202. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17203. $EGREP "memchr" >/dev/null 2>&1; then
  17204. :
  17205. else
  17206. ac_cv_header_stdc=no
  17207. fi
  17208. rm -f conftest*
  17209. fi
  17210. if test $ac_cv_header_stdc = yes; then
  17211. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17212. cat >conftest.$ac_ext <<_ACEOF
  17213. /* confdefs.h. */
  17214. _ACEOF
  17215. cat confdefs.h >>conftest.$ac_ext
  17216. cat >>conftest.$ac_ext <<_ACEOF
  17217. /* end confdefs.h. */
  17218. #include <stdlib.h>
  17219. _ACEOF
  17220. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17221. $EGREP "free" >/dev/null 2>&1; then
  17222. :
  17223. else
  17224. ac_cv_header_stdc=no
  17225. fi
  17226. rm -f conftest*
  17227. fi
  17228. if test $ac_cv_header_stdc = yes; then
  17229. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17230. if test "$cross_compiling" = yes; then
  17231. :
  17232. else
  17233. cat >conftest.$ac_ext <<_ACEOF
  17234. /* confdefs.h. */
  17235. _ACEOF
  17236. cat confdefs.h >>conftest.$ac_ext
  17237. cat >>conftest.$ac_ext <<_ACEOF
  17238. /* end confdefs.h. */
  17239. #include <ctype.h>
  17240. #if ((' ' & 0x0FF) == 0x020)
  17241. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17242. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17243. #else
  17244. # define ISLOWER(c) \
  17245. (('a' <= (c) && (c) <= 'i') \
  17246. || ('j' <= (c) && (c) <= 'r') \
  17247. || ('s' <= (c) && (c) <= 'z'))
  17248. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17249. #endif
  17250. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17251. int
  17252. main ()
  17253. {
  17254. int i;
  17255. for (i = 0; i < 256; i++)
  17256. if (XOR (islower (i), ISLOWER (i))
  17257. || toupper (i) != TOUPPER (i))
  17258. exit(2);
  17259. exit (0);
  17260. }
  17261. _ACEOF
  17262. rm -f conftest$ac_exeext
  17263. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17264. (eval $ac_link) 2>&5
  17265. ac_status=$?
  17266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17267. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17269. (eval $ac_try) 2>&5
  17270. ac_status=$?
  17271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17272. (exit $ac_status); }; }; then
  17273. :
  17274. else
  17275. echo "$as_me: program exited with status $ac_status" >&5
  17276. echo "$as_me: failed program was:" >&5
  17277. sed 's/^/| /' conftest.$ac_ext >&5
  17278. ( exit $ac_status )
  17279. ac_cv_header_stdc=no
  17280. fi
  17281. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17282. fi
  17283. fi
  17284. fi
  17285. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17286. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17287. if test $ac_cv_header_stdc = yes; then
  17288. cat >>confdefs.h <<\_ACEOF
  17289. #define STDC_HEADERS 1
  17290. _ACEOF
  17291. fi
  17292. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17293. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17294. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17295. echo $ECHO_N "(cached) $ECHO_C" >&6
  17296. else
  17297. cat >conftest.$ac_ext <<_ACEOF
  17298. /* confdefs.h. */
  17299. _ACEOF
  17300. cat confdefs.h >>conftest.$ac_ext
  17301. cat >>conftest.$ac_ext <<_ACEOF
  17302. /* end confdefs.h. */
  17303. #include <sys/types.h>
  17304. #include <sys/wait.h>
  17305. #ifndef WEXITSTATUS
  17306. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17307. #endif
  17308. #ifndef WIFEXITED
  17309. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17310. #endif
  17311. int
  17312. main ()
  17313. {
  17314. int s;
  17315. wait (&s);
  17316. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17317. ;
  17318. return 0;
  17319. }
  17320. _ACEOF
  17321. rm -f conftest.$ac_objext
  17322. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17323. (eval $ac_compile) 2>conftest.er1
  17324. ac_status=$?
  17325. grep -v '^ *+' conftest.er1 >conftest.err
  17326. rm -f conftest.er1
  17327. cat conftest.err >&5
  17328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17329. (exit $ac_status); } &&
  17330. { ac_try='test -z "$ac_c_werror_flag"
  17331. || test ! -s conftest.err'
  17332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17333. (eval $ac_try) 2>&5
  17334. ac_status=$?
  17335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17336. (exit $ac_status); }; } &&
  17337. { ac_try='test -s conftest.$ac_objext'
  17338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17339. (eval $ac_try) 2>&5
  17340. ac_status=$?
  17341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17342. (exit $ac_status); }; }; then
  17343. ac_cv_header_sys_wait_h=yes
  17344. else
  17345. echo "$as_me: failed program was:" >&5
  17346. sed 's/^/| /' conftest.$ac_ext >&5
  17347. ac_cv_header_sys_wait_h=no
  17348. fi
  17349. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17350. fi
  17351. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17352. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17353. if test $ac_cv_header_sys_wait_h = yes; then
  17354. cat >>confdefs.h <<\_ACEOF
  17355. #define HAVE_SYS_WAIT_H 1
  17356. _ACEOF
  17357. fi
  17358. 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 inttypes.h
  17359. do
  17360. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17361. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17362. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17363. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17364. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17365. echo $ECHO_N "(cached) $ECHO_C" >&6
  17366. fi
  17367. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17368. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17369. else
  17370. # Is the header compilable?
  17371. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17372. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17373. cat >conftest.$ac_ext <<_ACEOF
  17374. /* confdefs.h. */
  17375. _ACEOF
  17376. cat confdefs.h >>conftest.$ac_ext
  17377. cat >>conftest.$ac_ext <<_ACEOF
  17378. /* end confdefs.h. */
  17379. $ac_includes_default
  17380. #include <$ac_header>
  17381. _ACEOF
  17382. rm -f conftest.$ac_objext
  17383. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17384. (eval $ac_compile) 2>conftest.er1
  17385. ac_status=$?
  17386. grep -v '^ *+' conftest.er1 >conftest.err
  17387. rm -f conftest.er1
  17388. cat conftest.err >&5
  17389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17390. (exit $ac_status); } &&
  17391. { ac_try='test -z "$ac_c_werror_flag"
  17392. || test ! -s conftest.err'
  17393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17394. (eval $ac_try) 2>&5
  17395. ac_status=$?
  17396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17397. (exit $ac_status); }; } &&
  17398. { ac_try='test -s conftest.$ac_objext'
  17399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17400. (eval $ac_try) 2>&5
  17401. ac_status=$?
  17402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17403. (exit $ac_status); }; }; then
  17404. ac_header_compiler=yes
  17405. else
  17406. echo "$as_me: failed program was:" >&5
  17407. sed 's/^/| /' conftest.$ac_ext >&5
  17408. ac_header_compiler=no
  17409. fi
  17410. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17411. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17412. echo "${ECHO_T}$ac_header_compiler" >&6
  17413. # Is the header present?
  17414. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17415. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17416. cat >conftest.$ac_ext <<_ACEOF
  17417. /* confdefs.h. */
  17418. _ACEOF
  17419. cat confdefs.h >>conftest.$ac_ext
  17420. cat >>conftest.$ac_ext <<_ACEOF
  17421. /* end confdefs.h. */
  17422. #include <$ac_header>
  17423. _ACEOF
  17424. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17425. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17426. ac_status=$?
  17427. grep -v '^ *+' conftest.er1 >conftest.err
  17428. rm -f conftest.er1
  17429. cat conftest.err >&5
  17430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17431. (exit $ac_status); } >/dev/null; then
  17432. if test -s conftest.err; then
  17433. ac_cpp_err=$ac_c_preproc_warn_flag
  17434. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17435. else
  17436. ac_cpp_err=
  17437. fi
  17438. else
  17439. ac_cpp_err=yes
  17440. fi
  17441. if test -z "$ac_cpp_err"; then
  17442. ac_header_preproc=yes
  17443. else
  17444. echo "$as_me: failed program was:" >&5
  17445. sed 's/^/| /' conftest.$ac_ext >&5
  17446. ac_header_preproc=no
  17447. fi
  17448. rm -f conftest.err conftest.$ac_ext
  17449. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17450. echo "${ECHO_T}$ac_header_preproc" >&6
  17451. # So? What about this header?
  17452. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17453. yes:no: )
  17454. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17455. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17456. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17457. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17458. ac_header_preproc=yes
  17459. ;;
  17460. no:yes:* )
  17461. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17462. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17463. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17464. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17465. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17466. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17467. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17468. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17469. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17470. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17471. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17472. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17473. (
  17474. cat <<\_ASBOX
  17475. ## ------------------------------------------ ##
  17476. ## Report this to http://bugzilla.redhat.com/ ##
  17477. ## ------------------------------------------ ##
  17478. _ASBOX
  17479. ) |
  17480. sed "s/^/$as_me: WARNING: /" >&2
  17481. ;;
  17482. esac
  17483. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17484. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17485. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17486. echo $ECHO_N "(cached) $ECHO_C" >&6
  17487. else
  17488. eval "$as_ac_Header=\$ac_header_preproc"
  17489. fi
  17490. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17491. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17492. fi
  17493. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17494. cat >>confdefs.h <<_ACEOF
  17495. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17496. _ACEOF
  17497. fi
  17498. done
  17499. # Checks for typedefs, structures, and compiler characteristics.
  17500. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17501. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17502. if test "${ac_cv_header_stat_broken+set}" = set; then
  17503. echo $ECHO_N "(cached) $ECHO_C" >&6
  17504. else
  17505. cat >conftest.$ac_ext <<_ACEOF
  17506. /* confdefs.h. */
  17507. _ACEOF
  17508. cat confdefs.h >>conftest.$ac_ext
  17509. cat >>conftest.$ac_ext <<_ACEOF
  17510. /* end confdefs.h. */
  17511. #include <sys/types.h>
  17512. #include <sys/stat.h>
  17513. #if defined(S_ISBLK) && defined(S_IFDIR)
  17514. # if S_ISBLK (S_IFDIR)
  17515. You lose.
  17516. # endif
  17517. #endif
  17518. #if defined(S_ISBLK) && defined(S_IFCHR)
  17519. # if S_ISBLK (S_IFCHR)
  17520. You lose.
  17521. # endif
  17522. #endif
  17523. #if defined(S_ISLNK) && defined(S_IFREG)
  17524. # if S_ISLNK (S_IFREG)
  17525. You lose.
  17526. # endif
  17527. #endif
  17528. #if defined(S_ISSOCK) && defined(S_IFREG)
  17529. # if S_ISSOCK (S_IFREG)
  17530. You lose.
  17531. # endif
  17532. #endif
  17533. _ACEOF
  17534. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17535. $EGREP "You lose" >/dev/null 2>&1; then
  17536. ac_cv_header_stat_broken=yes
  17537. else
  17538. ac_cv_header_stat_broken=no
  17539. fi
  17540. rm -f conftest*
  17541. fi
  17542. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17543. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17544. if test $ac_cv_header_stat_broken = yes; then
  17545. cat >>confdefs.h <<\_ACEOF
  17546. #define STAT_MACROS_BROKEN 1
  17547. _ACEOF
  17548. fi
  17549. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17550. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17551. if test "${ac_cv_c_const+set}" = set; then
  17552. echo $ECHO_N "(cached) $ECHO_C" >&6
  17553. else
  17554. cat >conftest.$ac_ext <<_ACEOF
  17555. /* confdefs.h. */
  17556. _ACEOF
  17557. cat confdefs.h >>conftest.$ac_ext
  17558. cat >>conftest.$ac_ext <<_ACEOF
  17559. /* end confdefs.h. */
  17560. int
  17561. main ()
  17562. {
  17563. /* FIXME: Include the comments suggested by Paul. */
  17564. #ifndef __cplusplus
  17565. /* Ultrix mips cc rejects this. */
  17566. typedef int charset[2];
  17567. const charset x;
  17568. /* SunOS 4.1.1 cc rejects this. */
  17569. char const *const *ccp;
  17570. char **p;
  17571. /* NEC SVR4.0.2 mips cc rejects this. */
  17572. struct point {int x, y;};
  17573. static struct point const zero = {0,0};
  17574. /* AIX XL C 1.02.0.0 rejects this.
  17575. It does not let you subtract one const X* pointer from another in
  17576. an arm of an if-expression whose if-part is not a constant
  17577. expression */
  17578. const char *g = "string";
  17579. ccp = &g + (g ? g-g : 0);
  17580. /* HPUX 7.0 cc rejects these. */
  17581. ++ccp;
  17582. p = (char**) ccp;
  17583. ccp = (char const *const *) p;
  17584. { /* SCO 3.2v4 cc rejects this. */
  17585. char *t;
  17586. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17587. *t++ = 0;
  17588. }
  17589. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17590. int x[] = {25, 17};
  17591. const int *foo = &x[0];
  17592. ++foo;
  17593. }
  17594. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17595. typedef const int *iptr;
  17596. iptr p = 0;
  17597. ++p;
  17598. }
  17599. { /* AIX XL C 1.02.0.0 rejects this saying
  17600. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17601. struct s { int j; const int *ap[3]; };
  17602. struct s *b; b->j = 5;
  17603. }
  17604. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17605. const int foo = 10;
  17606. }
  17607. #endif
  17608. ;
  17609. return 0;
  17610. }
  17611. _ACEOF
  17612. rm -f conftest.$ac_objext
  17613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17614. (eval $ac_compile) 2>conftest.er1
  17615. ac_status=$?
  17616. grep -v '^ *+' conftest.er1 >conftest.err
  17617. rm -f conftest.er1
  17618. cat conftest.err >&5
  17619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17620. (exit $ac_status); } &&
  17621. { ac_try='test -z "$ac_c_werror_flag"
  17622. || test ! -s conftest.err'
  17623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17624. (eval $ac_try) 2>&5
  17625. ac_status=$?
  17626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17627. (exit $ac_status); }; } &&
  17628. { ac_try='test -s conftest.$ac_objext'
  17629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17630. (eval $ac_try) 2>&5
  17631. ac_status=$?
  17632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17633. (exit $ac_status); }; }; then
  17634. ac_cv_c_const=yes
  17635. else
  17636. echo "$as_me: failed program was:" >&5
  17637. sed 's/^/| /' conftest.$ac_ext >&5
  17638. ac_cv_c_const=no
  17639. fi
  17640. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17641. fi
  17642. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17643. echo "${ECHO_T}$ac_cv_c_const" >&6
  17644. if test $ac_cv_c_const = no; then
  17645. cat >>confdefs.h <<\_ACEOF
  17646. #define const
  17647. _ACEOF
  17648. fi
  17649. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17650. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17651. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17652. echo $ECHO_N "(cached) $ECHO_C" >&6
  17653. else
  17654. cat >conftest.$ac_ext <<_ACEOF
  17655. /* confdefs.h. */
  17656. _ACEOF
  17657. cat confdefs.h >>conftest.$ac_ext
  17658. cat >>conftest.$ac_ext <<_ACEOF
  17659. /* end confdefs.h. */
  17660. #include <stdbool.h>
  17661. #ifndef bool
  17662. # error bool is not defined
  17663. #endif
  17664. #ifndef false
  17665. # error false is not defined
  17666. #endif
  17667. #if false
  17668. # error false is not 0
  17669. #endif
  17670. #ifndef true
  17671. # error true is not defined
  17672. #endif
  17673. #if true != 1
  17674. # error true is not 1
  17675. #endif
  17676. #ifndef __bool_true_false_are_defined
  17677. # error __bool_true_false_are_defined is not defined
  17678. #endif
  17679. struct s { _Bool s: 1; _Bool t; } s;
  17680. char a[true == 1 ? 1 : -1];
  17681. char b[false == 0 ? 1 : -1];
  17682. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17683. char d[(bool) -0.5 == true ? 1 : -1];
  17684. bool e = &s;
  17685. char f[(_Bool) -0.0 == false ? 1 : -1];
  17686. char g[true];
  17687. char h[sizeof (_Bool)];
  17688. char i[sizeof s.t];
  17689. int
  17690. main ()
  17691. {
  17692. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17693. ;
  17694. return 0;
  17695. }
  17696. _ACEOF
  17697. rm -f conftest.$ac_objext
  17698. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17699. (eval $ac_compile) 2>conftest.er1
  17700. ac_status=$?
  17701. grep -v '^ *+' conftest.er1 >conftest.err
  17702. rm -f conftest.er1
  17703. cat conftest.err >&5
  17704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17705. (exit $ac_status); } &&
  17706. { ac_try='test -z "$ac_c_werror_flag"
  17707. || test ! -s conftest.err'
  17708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17709. (eval $ac_try) 2>&5
  17710. ac_status=$?
  17711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17712. (exit $ac_status); }; } &&
  17713. { ac_try='test -s conftest.$ac_objext'
  17714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17715. (eval $ac_try) 2>&5
  17716. ac_status=$?
  17717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17718. (exit $ac_status); }; }; then
  17719. ac_cv_header_stdbool_h=yes
  17720. else
  17721. echo "$as_me: failed program was:" >&5
  17722. sed 's/^/| /' conftest.$ac_ext >&5
  17723. ac_cv_header_stdbool_h=no
  17724. fi
  17725. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17726. fi
  17727. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17728. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17729. echo "$as_me:$LINENO: checking for _Bool" >&5
  17730. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17731. if test "${ac_cv_type__Bool+set}" = set; then
  17732. echo $ECHO_N "(cached) $ECHO_C" >&6
  17733. else
  17734. cat >conftest.$ac_ext <<_ACEOF
  17735. /* confdefs.h. */
  17736. _ACEOF
  17737. cat confdefs.h >>conftest.$ac_ext
  17738. cat >>conftest.$ac_ext <<_ACEOF
  17739. /* end confdefs.h. */
  17740. $ac_includes_default
  17741. int
  17742. main ()
  17743. {
  17744. if ((_Bool *) 0)
  17745. return 0;
  17746. if (sizeof (_Bool))
  17747. return 0;
  17748. ;
  17749. return 0;
  17750. }
  17751. _ACEOF
  17752. rm -f conftest.$ac_objext
  17753. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17754. (eval $ac_compile) 2>conftest.er1
  17755. ac_status=$?
  17756. grep -v '^ *+' conftest.er1 >conftest.err
  17757. rm -f conftest.er1
  17758. cat conftest.err >&5
  17759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17760. (exit $ac_status); } &&
  17761. { ac_try='test -z "$ac_c_werror_flag"
  17762. || test ! -s conftest.err'
  17763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17764. (eval $ac_try) 2>&5
  17765. ac_status=$?
  17766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17767. (exit $ac_status); }; } &&
  17768. { ac_try='test -s conftest.$ac_objext'
  17769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17770. (eval $ac_try) 2>&5
  17771. ac_status=$?
  17772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17773. (exit $ac_status); }; }; then
  17774. ac_cv_type__Bool=yes
  17775. else
  17776. echo "$as_me: failed program was:" >&5
  17777. sed 's/^/| /' conftest.$ac_ext >&5
  17778. ac_cv_type__Bool=no
  17779. fi
  17780. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17781. fi
  17782. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17783. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17784. if test $ac_cv_type__Bool = yes; then
  17785. cat >>confdefs.h <<_ACEOF
  17786. #define HAVE__BOOL 1
  17787. _ACEOF
  17788. fi
  17789. if test $ac_cv_header_stdbool_h = yes; then
  17790. cat >>confdefs.h <<\_ACEOF
  17791. #define HAVE_STDBOOL_H 1
  17792. _ACEOF
  17793. fi
  17794. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17795. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17796. if test "${ac_cv_type_uid_t+set}" = set; then
  17797. echo $ECHO_N "(cached) $ECHO_C" >&6
  17798. else
  17799. cat >conftest.$ac_ext <<_ACEOF
  17800. /* confdefs.h. */
  17801. _ACEOF
  17802. cat confdefs.h >>conftest.$ac_ext
  17803. cat >>conftest.$ac_ext <<_ACEOF
  17804. /* end confdefs.h. */
  17805. #include <sys/types.h>
  17806. _ACEOF
  17807. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17808. $EGREP "uid_t" >/dev/null 2>&1; then
  17809. ac_cv_type_uid_t=yes
  17810. else
  17811. ac_cv_type_uid_t=no
  17812. fi
  17813. rm -f conftest*
  17814. fi
  17815. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17816. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17817. if test $ac_cv_type_uid_t = no; then
  17818. cat >>confdefs.h <<\_ACEOF
  17819. #define uid_t int
  17820. _ACEOF
  17821. cat >>confdefs.h <<\_ACEOF
  17822. #define gid_t int
  17823. _ACEOF
  17824. fi
  17825. echo "$as_me:$LINENO: checking for pid_t" >&5
  17826. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17827. if test "${ac_cv_type_pid_t+set}" = set; then
  17828. echo $ECHO_N "(cached) $ECHO_C" >&6
  17829. else
  17830. cat >conftest.$ac_ext <<_ACEOF
  17831. /* confdefs.h. */
  17832. _ACEOF
  17833. cat confdefs.h >>conftest.$ac_ext
  17834. cat >>conftest.$ac_ext <<_ACEOF
  17835. /* end confdefs.h. */
  17836. $ac_includes_default
  17837. int
  17838. main ()
  17839. {
  17840. if ((pid_t *) 0)
  17841. return 0;
  17842. if (sizeof (pid_t))
  17843. return 0;
  17844. ;
  17845. return 0;
  17846. }
  17847. _ACEOF
  17848. rm -f conftest.$ac_objext
  17849. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17850. (eval $ac_compile) 2>conftest.er1
  17851. ac_status=$?
  17852. grep -v '^ *+' conftest.er1 >conftest.err
  17853. rm -f conftest.er1
  17854. cat conftest.err >&5
  17855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17856. (exit $ac_status); } &&
  17857. { ac_try='test -z "$ac_c_werror_flag"
  17858. || test ! -s conftest.err'
  17859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17860. (eval $ac_try) 2>&5
  17861. ac_status=$?
  17862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17863. (exit $ac_status); }; } &&
  17864. { ac_try='test -s conftest.$ac_objext'
  17865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17866. (eval $ac_try) 2>&5
  17867. ac_status=$?
  17868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17869. (exit $ac_status); }; }; then
  17870. ac_cv_type_pid_t=yes
  17871. else
  17872. echo "$as_me: failed program was:" >&5
  17873. sed 's/^/| /' conftest.$ac_ext >&5
  17874. ac_cv_type_pid_t=no
  17875. fi
  17876. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17877. fi
  17878. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17879. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17880. if test $ac_cv_type_pid_t = yes; then
  17881. :
  17882. else
  17883. cat >>confdefs.h <<_ACEOF
  17884. #define pid_t int
  17885. _ACEOF
  17886. fi
  17887. echo "$as_me:$LINENO: checking for size_t" >&5
  17888. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17889. if test "${ac_cv_type_size_t+set}" = set; then
  17890. echo $ECHO_N "(cached) $ECHO_C" >&6
  17891. else
  17892. cat >conftest.$ac_ext <<_ACEOF
  17893. /* confdefs.h. */
  17894. _ACEOF
  17895. cat confdefs.h >>conftest.$ac_ext
  17896. cat >>conftest.$ac_ext <<_ACEOF
  17897. /* end confdefs.h. */
  17898. $ac_includes_default
  17899. int
  17900. main ()
  17901. {
  17902. if ((size_t *) 0)
  17903. return 0;
  17904. if (sizeof (size_t))
  17905. return 0;
  17906. ;
  17907. return 0;
  17908. }
  17909. _ACEOF
  17910. rm -f conftest.$ac_objext
  17911. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17912. (eval $ac_compile) 2>conftest.er1
  17913. ac_status=$?
  17914. grep -v '^ *+' conftest.er1 >conftest.err
  17915. rm -f conftest.er1
  17916. cat conftest.err >&5
  17917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17918. (exit $ac_status); } &&
  17919. { ac_try='test -z "$ac_c_werror_flag"
  17920. || test ! -s conftest.err'
  17921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17922. (eval $ac_try) 2>&5
  17923. ac_status=$?
  17924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17925. (exit $ac_status); }; } &&
  17926. { ac_try='test -s conftest.$ac_objext'
  17927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17928. (eval $ac_try) 2>&5
  17929. ac_status=$?
  17930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17931. (exit $ac_status); }; }; then
  17932. ac_cv_type_size_t=yes
  17933. else
  17934. echo "$as_me: failed program was:" >&5
  17935. sed 's/^/| /' conftest.$ac_ext >&5
  17936. ac_cv_type_size_t=no
  17937. fi
  17938. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17939. fi
  17940. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17941. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17942. if test $ac_cv_type_size_t = yes; then
  17943. :
  17944. else
  17945. cat >>confdefs.h <<_ACEOF
  17946. #define size_t unsigned
  17947. _ACEOF
  17948. fi
  17949. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17950. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17951. if test "${ac_cv_header_time+set}" = set; then
  17952. echo $ECHO_N "(cached) $ECHO_C" >&6
  17953. else
  17954. cat >conftest.$ac_ext <<_ACEOF
  17955. /* confdefs.h. */
  17956. _ACEOF
  17957. cat confdefs.h >>conftest.$ac_ext
  17958. cat >>conftest.$ac_ext <<_ACEOF
  17959. /* end confdefs.h. */
  17960. #include <sys/types.h>
  17961. #include <sys/time.h>
  17962. #include <time.h>
  17963. int
  17964. main ()
  17965. {
  17966. if ((struct tm *) 0)
  17967. return 0;
  17968. ;
  17969. return 0;
  17970. }
  17971. _ACEOF
  17972. rm -f conftest.$ac_objext
  17973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17974. (eval $ac_compile) 2>conftest.er1
  17975. ac_status=$?
  17976. grep -v '^ *+' conftest.er1 >conftest.err
  17977. rm -f conftest.er1
  17978. cat conftest.err >&5
  17979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17980. (exit $ac_status); } &&
  17981. { ac_try='test -z "$ac_c_werror_flag"
  17982. || test ! -s conftest.err'
  17983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17984. (eval $ac_try) 2>&5
  17985. ac_status=$?
  17986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17987. (exit $ac_status); }; } &&
  17988. { ac_try='test -s conftest.$ac_objext'
  17989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17990. (eval $ac_try) 2>&5
  17991. ac_status=$?
  17992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17993. (exit $ac_status); }; }; then
  17994. ac_cv_header_time=yes
  17995. else
  17996. echo "$as_me: failed program was:" >&5
  17997. sed 's/^/| /' conftest.$ac_ext >&5
  17998. ac_cv_header_time=no
  17999. fi
  18000. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18001. fi
  18002. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  18003. echo "${ECHO_T}$ac_cv_header_time" >&6
  18004. if test $ac_cv_header_time = yes; then
  18005. cat >>confdefs.h <<\_ACEOF
  18006. #define TIME_WITH_SYS_TIME 1
  18007. _ACEOF
  18008. fi
  18009. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  18010. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  18011. if test "${ac_cv_struct_tm+set}" = set; then
  18012. echo $ECHO_N "(cached) $ECHO_C" >&6
  18013. else
  18014. cat >conftest.$ac_ext <<_ACEOF
  18015. /* confdefs.h. */
  18016. _ACEOF
  18017. cat confdefs.h >>conftest.$ac_ext
  18018. cat >>conftest.$ac_ext <<_ACEOF
  18019. /* end confdefs.h. */
  18020. #include <sys/types.h>
  18021. #include <time.h>
  18022. int
  18023. main ()
  18024. {
  18025. struct tm *tp; tp->tm_sec;
  18026. ;
  18027. return 0;
  18028. }
  18029. _ACEOF
  18030. rm -f conftest.$ac_objext
  18031. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18032. (eval $ac_compile) 2>conftest.er1
  18033. ac_status=$?
  18034. grep -v '^ *+' conftest.er1 >conftest.err
  18035. rm -f conftest.er1
  18036. cat conftest.err >&5
  18037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18038. (exit $ac_status); } &&
  18039. { ac_try='test -z "$ac_c_werror_flag"
  18040. || test ! -s conftest.err'
  18041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18042. (eval $ac_try) 2>&5
  18043. ac_status=$?
  18044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18045. (exit $ac_status); }; } &&
  18046. { ac_try='test -s conftest.$ac_objext'
  18047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18048. (eval $ac_try) 2>&5
  18049. ac_status=$?
  18050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18051. (exit $ac_status); }; }; then
  18052. ac_cv_struct_tm=time.h
  18053. else
  18054. echo "$as_me: failed program was:" >&5
  18055. sed 's/^/| /' conftest.$ac_ext >&5
  18056. ac_cv_struct_tm=sys/time.h
  18057. fi
  18058. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18059. fi
  18060. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18061. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  18062. if test $ac_cv_struct_tm = sys/time.h; then
  18063. cat >>confdefs.h <<\_ACEOF
  18064. #define TM_IN_SYS_TIME 1
  18065. _ACEOF
  18066. fi
  18067. # Checks for library functions.
  18068. for ac_header in unistd.h
  18069. do
  18070. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18071. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18072. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18073. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18074. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18075. echo $ECHO_N "(cached) $ECHO_C" >&6
  18076. fi
  18077. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18078. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18079. else
  18080. # Is the header compilable?
  18081. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18082. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18083. cat >conftest.$ac_ext <<_ACEOF
  18084. /* confdefs.h. */
  18085. _ACEOF
  18086. cat confdefs.h >>conftest.$ac_ext
  18087. cat >>conftest.$ac_ext <<_ACEOF
  18088. /* end confdefs.h. */
  18089. $ac_includes_default
  18090. #include <$ac_header>
  18091. _ACEOF
  18092. rm -f conftest.$ac_objext
  18093. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18094. (eval $ac_compile) 2>conftest.er1
  18095. ac_status=$?
  18096. grep -v '^ *+' conftest.er1 >conftest.err
  18097. rm -f conftest.er1
  18098. cat conftest.err >&5
  18099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18100. (exit $ac_status); } &&
  18101. { ac_try='test -z "$ac_c_werror_flag"
  18102. || test ! -s conftest.err'
  18103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18104. (eval $ac_try) 2>&5
  18105. ac_status=$?
  18106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18107. (exit $ac_status); }; } &&
  18108. { ac_try='test -s conftest.$ac_objext'
  18109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18110. (eval $ac_try) 2>&5
  18111. ac_status=$?
  18112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18113. (exit $ac_status); }; }; then
  18114. ac_header_compiler=yes
  18115. else
  18116. echo "$as_me: failed program was:" >&5
  18117. sed 's/^/| /' conftest.$ac_ext >&5
  18118. ac_header_compiler=no
  18119. fi
  18120. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18121. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18122. echo "${ECHO_T}$ac_header_compiler" >&6
  18123. # Is the header present?
  18124. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18125. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18126. cat >conftest.$ac_ext <<_ACEOF
  18127. /* confdefs.h. */
  18128. _ACEOF
  18129. cat confdefs.h >>conftest.$ac_ext
  18130. cat >>conftest.$ac_ext <<_ACEOF
  18131. /* end confdefs.h. */
  18132. #include <$ac_header>
  18133. _ACEOF
  18134. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18135. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18136. ac_status=$?
  18137. grep -v '^ *+' conftest.er1 >conftest.err
  18138. rm -f conftest.er1
  18139. cat conftest.err >&5
  18140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18141. (exit $ac_status); } >/dev/null; then
  18142. if test -s conftest.err; then
  18143. ac_cpp_err=$ac_c_preproc_warn_flag
  18144. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18145. else
  18146. ac_cpp_err=
  18147. fi
  18148. else
  18149. ac_cpp_err=yes
  18150. fi
  18151. if test -z "$ac_cpp_err"; then
  18152. ac_header_preproc=yes
  18153. else
  18154. echo "$as_me: failed program was:" >&5
  18155. sed 's/^/| /' conftest.$ac_ext >&5
  18156. ac_header_preproc=no
  18157. fi
  18158. rm -f conftest.err conftest.$ac_ext
  18159. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18160. echo "${ECHO_T}$ac_header_preproc" >&6
  18161. # So? What about this header?
  18162. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18163. yes:no: )
  18164. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18165. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18166. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18167. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18168. ac_header_preproc=yes
  18169. ;;
  18170. no:yes:* )
  18171. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18172. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18173. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18174. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18175. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18176. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18177. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18178. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18179. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18180. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18181. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18182. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18183. (
  18184. cat <<\_ASBOX
  18185. ## ------------------------------------------ ##
  18186. ## Report this to http://bugzilla.redhat.com/ ##
  18187. ## ------------------------------------------ ##
  18188. _ASBOX
  18189. ) |
  18190. sed "s/^/$as_me: WARNING: /" >&2
  18191. ;;
  18192. esac
  18193. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18194. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18196. echo $ECHO_N "(cached) $ECHO_C" >&6
  18197. else
  18198. eval "$as_ac_Header=\$ac_header_preproc"
  18199. fi
  18200. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18201. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18202. fi
  18203. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18204. cat >>confdefs.h <<_ACEOF
  18205. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18206. _ACEOF
  18207. fi
  18208. done
  18209. echo "$as_me:$LINENO: checking for working chown" >&5
  18210. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18211. if test "${ac_cv_func_chown_works+set}" = set; then
  18212. echo $ECHO_N "(cached) $ECHO_C" >&6
  18213. else
  18214. if test "$cross_compiling" = yes; then
  18215. ac_cv_func_chown_works=no
  18216. else
  18217. cat >conftest.$ac_ext <<_ACEOF
  18218. /* confdefs.h. */
  18219. _ACEOF
  18220. cat confdefs.h >>conftest.$ac_ext
  18221. cat >>conftest.$ac_ext <<_ACEOF
  18222. /* end confdefs.h. */
  18223. $ac_includes_default
  18224. #include <fcntl.h>
  18225. int
  18226. main ()
  18227. {
  18228. char *f = "conftest.chown";
  18229. struct stat before, after;
  18230. if (creat (f, 0600) < 0)
  18231. exit (1);
  18232. if (stat (f, &before) < 0)
  18233. exit (1);
  18234. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18235. exit (1);
  18236. if (stat (f, &after) < 0)
  18237. exit (1);
  18238. exit ((before.st_uid == after.st_uid
  18239. && before.st_gid == after.st_gid) ? 0 : 1);
  18240. ;
  18241. return 0;
  18242. }
  18243. _ACEOF
  18244. rm -f conftest$ac_exeext
  18245. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18246. (eval $ac_link) 2>&5
  18247. ac_status=$?
  18248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18249. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18251. (eval $ac_try) 2>&5
  18252. ac_status=$?
  18253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18254. (exit $ac_status); }; }; then
  18255. ac_cv_func_chown_works=yes
  18256. else
  18257. echo "$as_me: program exited with status $ac_status" >&5
  18258. echo "$as_me: failed program was:" >&5
  18259. sed 's/^/| /' conftest.$ac_ext >&5
  18260. ( exit $ac_status )
  18261. ac_cv_func_chown_works=no
  18262. fi
  18263. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18264. fi
  18265. rm -f conftest.chown
  18266. fi
  18267. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18268. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18269. if test $ac_cv_func_chown_works = yes; then
  18270. cat >>confdefs.h <<\_ACEOF
  18271. #define HAVE_CHOWN 1
  18272. _ACEOF
  18273. fi
  18274. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18275. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18276. if test "${ac_cv_func_closedir_void+set}" = set; then
  18277. echo $ECHO_N "(cached) $ECHO_C" >&6
  18278. else
  18279. if test "$cross_compiling" = yes; then
  18280. ac_cv_func_closedir_void=yes
  18281. else
  18282. cat >conftest.$ac_ext <<_ACEOF
  18283. /* confdefs.h. */
  18284. _ACEOF
  18285. cat confdefs.h >>conftest.$ac_ext
  18286. cat >>conftest.$ac_ext <<_ACEOF
  18287. /* end confdefs.h. */
  18288. $ac_includes_default
  18289. #include <$ac_header_dirent>
  18290. #ifndef __cplusplus
  18291. int closedir ();
  18292. #endif
  18293. int
  18294. main ()
  18295. {
  18296. exit (closedir (opendir (".")) != 0);
  18297. ;
  18298. return 0;
  18299. }
  18300. _ACEOF
  18301. rm -f conftest$ac_exeext
  18302. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18303. (eval $ac_link) 2>&5
  18304. ac_status=$?
  18305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18306. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18308. (eval $ac_try) 2>&5
  18309. ac_status=$?
  18310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18311. (exit $ac_status); }; }; then
  18312. ac_cv_func_closedir_void=no
  18313. else
  18314. echo "$as_me: program exited with status $ac_status" >&5
  18315. echo "$as_me: failed program was:" >&5
  18316. sed 's/^/| /' conftest.$ac_ext >&5
  18317. ( exit $ac_status )
  18318. ac_cv_func_closedir_void=yes
  18319. fi
  18320. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18321. fi
  18322. fi
  18323. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18324. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18325. if test $ac_cv_func_closedir_void = yes; then
  18326. cat >>confdefs.h <<\_ACEOF
  18327. #define CLOSEDIR_VOID 1
  18328. _ACEOF
  18329. fi
  18330. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18331. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18332. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18333. echo $ECHO_N "(cached) $ECHO_C" >&6
  18334. else
  18335. cat >conftest.$ac_ext <<_ACEOF
  18336. /* confdefs.h. */
  18337. _ACEOF
  18338. cat confdefs.h >>conftest.$ac_ext
  18339. cat >>conftest.$ac_ext <<_ACEOF
  18340. /* end confdefs.h. */
  18341. $ac_includes_default
  18342. int
  18343. main ()
  18344. {
  18345. error_at_line (0, 0, "", 0, "");
  18346. ;
  18347. return 0;
  18348. }
  18349. _ACEOF
  18350. rm -f conftest.$ac_objext conftest$ac_exeext
  18351. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18352. (eval $ac_link) 2>conftest.er1
  18353. ac_status=$?
  18354. grep -v '^ *+' conftest.er1 >conftest.err
  18355. rm -f conftest.er1
  18356. cat conftest.err >&5
  18357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18358. (exit $ac_status); } &&
  18359. { ac_try='test -z "$ac_c_werror_flag"
  18360. || test ! -s conftest.err'
  18361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18362. (eval $ac_try) 2>&5
  18363. ac_status=$?
  18364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18365. (exit $ac_status); }; } &&
  18366. { ac_try='test -s conftest$ac_exeext'
  18367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18368. (eval $ac_try) 2>&5
  18369. ac_status=$?
  18370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18371. (exit $ac_status); }; }; then
  18372. ac_cv_lib_error_at_line=yes
  18373. else
  18374. echo "$as_me: failed program was:" >&5
  18375. sed 's/^/| /' conftest.$ac_ext >&5
  18376. ac_cv_lib_error_at_line=no
  18377. fi
  18378. rm -f conftest.err conftest.$ac_objext \
  18379. conftest$ac_exeext conftest.$ac_ext
  18380. fi
  18381. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18382. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18383. if test $ac_cv_lib_error_at_line = no; then
  18384. case $LIBOBJS in
  18385. "error.$ac_objext" | \
  18386. *" error.$ac_objext" | \
  18387. "error.$ac_objext "* | \
  18388. *" error.$ac_objext "* ) ;;
  18389. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18390. esac
  18391. fi
  18392. for ac_header in unistd.h vfork.h
  18393. do
  18394. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18395. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18396. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18397. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18398. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18399. echo $ECHO_N "(cached) $ECHO_C" >&6
  18400. fi
  18401. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18402. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18403. else
  18404. # Is the header compilable?
  18405. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18406. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18407. cat >conftest.$ac_ext <<_ACEOF
  18408. /* confdefs.h. */
  18409. _ACEOF
  18410. cat confdefs.h >>conftest.$ac_ext
  18411. cat >>conftest.$ac_ext <<_ACEOF
  18412. /* end confdefs.h. */
  18413. $ac_includes_default
  18414. #include <$ac_header>
  18415. _ACEOF
  18416. rm -f conftest.$ac_objext
  18417. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18418. (eval $ac_compile) 2>conftest.er1
  18419. ac_status=$?
  18420. grep -v '^ *+' conftest.er1 >conftest.err
  18421. rm -f conftest.er1
  18422. cat conftest.err >&5
  18423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18424. (exit $ac_status); } &&
  18425. { ac_try='test -z "$ac_c_werror_flag"
  18426. || test ! -s conftest.err'
  18427. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18428. (eval $ac_try) 2>&5
  18429. ac_status=$?
  18430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18431. (exit $ac_status); }; } &&
  18432. { ac_try='test -s conftest.$ac_objext'
  18433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18434. (eval $ac_try) 2>&5
  18435. ac_status=$?
  18436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18437. (exit $ac_status); }; }; then
  18438. ac_header_compiler=yes
  18439. else
  18440. echo "$as_me: failed program was:" >&5
  18441. sed 's/^/| /' conftest.$ac_ext >&5
  18442. ac_header_compiler=no
  18443. fi
  18444. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18445. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18446. echo "${ECHO_T}$ac_header_compiler" >&6
  18447. # Is the header present?
  18448. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18449. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18450. cat >conftest.$ac_ext <<_ACEOF
  18451. /* confdefs.h. */
  18452. _ACEOF
  18453. cat confdefs.h >>conftest.$ac_ext
  18454. cat >>conftest.$ac_ext <<_ACEOF
  18455. /* end confdefs.h. */
  18456. #include <$ac_header>
  18457. _ACEOF
  18458. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18459. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18460. ac_status=$?
  18461. grep -v '^ *+' conftest.er1 >conftest.err
  18462. rm -f conftest.er1
  18463. cat conftest.err >&5
  18464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18465. (exit $ac_status); } >/dev/null; then
  18466. if test -s conftest.err; then
  18467. ac_cpp_err=$ac_c_preproc_warn_flag
  18468. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18469. else
  18470. ac_cpp_err=
  18471. fi
  18472. else
  18473. ac_cpp_err=yes
  18474. fi
  18475. if test -z "$ac_cpp_err"; then
  18476. ac_header_preproc=yes
  18477. else
  18478. echo "$as_me: failed program was:" >&5
  18479. sed 's/^/| /' conftest.$ac_ext >&5
  18480. ac_header_preproc=no
  18481. fi
  18482. rm -f conftest.err conftest.$ac_ext
  18483. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18484. echo "${ECHO_T}$ac_header_preproc" >&6
  18485. # So? What about this header?
  18486. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18487. yes:no: )
  18488. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18489. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18490. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18491. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18492. ac_header_preproc=yes
  18493. ;;
  18494. no:yes:* )
  18495. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18496. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18497. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18498. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18499. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18500. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18501. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18502. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18503. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18504. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18505. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18506. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18507. (
  18508. cat <<\_ASBOX
  18509. ## ------------------------------------------ ##
  18510. ## Report this to http://bugzilla.redhat.com/ ##
  18511. ## ------------------------------------------ ##
  18512. _ASBOX
  18513. ) |
  18514. sed "s/^/$as_me: WARNING: /" >&2
  18515. ;;
  18516. esac
  18517. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18518. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18519. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18520. echo $ECHO_N "(cached) $ECHO_C" >&6
  18521. else
  18522. eval "$as_ac_Header=\$ac_header_preproc"
  18523. fi
  18524. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18525. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18526. fi
  18527. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18528. cat >>confdefs.h <<_ACEOF
  18529. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18530. _ACEOF
  18531. fi
  18532. done
  18533. for ac_func in fork vfork
  18534. do
  18535. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18536. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18537. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18538. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18539. echo $ECHO_N "(cached) $ECHO_C" >&6
  18540. else
  18541. cat >conftest.$ac_ext <<_ACEOF
  18542. /* confdefs.h. */
  18543. _ACEOF
  18544. cat confdefs.h >>conftest.$ac_ext
  18545. cat >>conftest.$ac_ext <<_ACEOF
  18546. /* end confdefs.h. */
  18547. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18548. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18549. #define $ac_func innocuous_$ac_func
  18550. /* System header to define __stub macros and hopefully few prototypes,
  18551. which can conflict with char $ac_func (); below.
  18552. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18553. <limits.h> exists even on freestanding compilers. */
  18554. #ifdef __STDC__
  18555. # include <limits.h>
  18556. #else
  18557. # include <assert.h>
  18558. #endif
  18559. #undef $ac_func
  18560. /* Override any gcc2 internal prototype to avoid an error. */
  18561. #ifdef __cplusplus
  18562. extern "C"
  18563. {
  18564. #endif
  18565. /* We use char because int might match the return type of a gcc2
  18566. builtin and then its argument prototype would still apply. */
  18567. char $ac_func ();
  18568. /* The GNU C library defines this for functions which it implements
  18569. to always fail with ENOSYS. Some functions are actually named
  18570. something starting with __ and the normal name is an alias. */
  18571. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18572. choke me
  18573. #else
  18574. char (*f) () = $ac_func;
  18575. #endif
  18576. #ifdef __cplusplus
  18577. }
  18578. #endif
  18579. int
  18580. main ()
  18581. {
  18582. return f != $ac_func;
  18583. ;
  18584. return 0;
  18585. }
  18586. _ACEOF
  18587. rm -f conftest.$ac_objext conftest$ac_exeext
  18588. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18589. (eval $ac_link) 2>conftest.er1
  18590. ac_status=$?
  18591. grep -v '^ *+' conftest.er1 >conftest.err
  18592. rm -f conftest.er1
  18593. cat conftest.err >&5
  18594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18595. (exit $ac_status); } &&
  18596. { ac_try='test -z "$ac_c_werror_flag"
  18597. || test ! -s conftest.err'
  18598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18599. (eval $ac_try) 2>&5
  18600. ac_status=$?
  18601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18602. (exit $ac_status); }; } &&
  18603. { ac_try='test -s conftest$ac_exeext'
  18604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18605. (eval $ac_try) 2>&5
  18606. ac_status=$?
  18607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18608. (exit $ac_status); }; }; then
  18609. eval "$as_ac_var=yes"
  18610. else
  18611. echo "$as_me: failed program was:" >&5
  18612. sed 's/^/| /' conftest.$ac_ext >&5
  18613. eval "$as_ac_var=no"
  18614. fi
  18615. rm -f conftest.err conftest.$ac_objext \
  18616. conftest$ac_exeext conftest.$ac_ext
  18617. fi
  18618. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18619. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18620. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18621. cat >>confdefs.h <<_ACEOF
  18622. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18623. _ACEOF
  18624. fi
  18625. done
  18626. if test "x$ac_cv_func_fork" = xyes; then
  18627. echo "$as_me:$LINENO: checking for working fork" >&5
  18628. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18629. if test "${ac_cv_func_fork_works+set}" = set; then
  18630. echo $ECHO_N "(cached) $ECHO_C" >&6
  18631. else
  18632. if test "$cross_compiling" = yes; then
  18633. ac_cv_func_fork_works=cross
  18634. else
  18635. cat >conftest.$ac_ext <<_ACEOF
  18636. /* By Ruediger Kuhlmann. */
  18637. #include <sys/types.h>
  18638. #if HAVE_UNISTD_H
  18639. # include <unistd.h>
  18640. #endif
  18641. /* Some systems only have a dummy stub for fork() */
  18642. int main ()
  18643. {
  18644. if (fork() < 0)
  18645. exit (1);
  18646. exit (0);
  18647. }
  18648. _ACEOF
  18649. rm -f conftest$ac_exeext
  18650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18651. (eval $ac_link) 2>&5
  18652. ac_status=$?
  18653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18654. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18656. (eval $ac_try) 2>&5
  18657. ac_status=$?
  18658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18659. (exit $ac_status); }; }; then
  18660. ac_cv_func_fork_works=yes
  18661. else
  18662. echo "$as_me: program exited with status $ac_status" >&5
  18663. echo "$as_me: failed program was:" >&5
  18664. sed 's/^/| /' conftest.$ac_ext >&5
  18665. ( exit $ac_status )
  18666. ac_cv_func_fork_works=no
  18667. fi
  18668. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18669. fi
  18670. fi
  18671. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18672. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18673. else
  18674. ac_cv_func_fork_works=$ac_cv_func_fork
  18675. fi
  18676. if test "x$ac_cv_func_fork_works" = xcross; then
  18677. case $host in
  18678. *-*-amigaos* | *-*-msdosdjgpp*)
  18679. # Override, as these systems have only a dummy fork() stub
  18680. ac_cv_func_fork_works=no
  18681. ;;
  18682. *)
  18683. ac_cv_func_fork_works=yes
  18684. ;;
  18685. esac
  18686. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18687. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18688. fi
  18689. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18690. if test "x$ac_cv_func_vfork" = xyes; then
  18691. echo "$as_me:$LINENO: checking for working vfork" >&5
  18692. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18693. if test "${ac_cv_func_vfork_works+set}" = set; then
  18694. echo $ECHO_N "(cached) $ECHO_C" >&6
  18695. else
  18696. if test "$cross_compiling" = yes; then
  18697. ac_cv_func_vfork_works=cross
  18698. else
  18699. cat >conftest.$ac_ext <<_ACEOF
  18700. /* confdefs.h. */
  18701. _ACEOF
  18702. cat confdefs.h >>conftest.$ac_ext
  18703. cat >>conftest.$ac_ext <<_ACEOF
  18704. /* end confdefs.h. */
  18705. /* Thanks to Paul Eggert for this test. */
  18706. #include <stdio.h>
  18707. #include <stdlib.h>
  18708. #include <sys/types.h>
  18709. #include <sys/stat.h>
  18710. #include <sys/wait.h>
  18711. #if HAVE_UNISTD_H
  18712. # include <unistd.h>
  18713. #endif
  18714. #if HAVE_VFORK_H
  18715. # include <vfork.h>
  18716. #endif
  18717. /* On some sparc systems, changes by the child to local and incoming
  18718. argument registers are propagated back to the parent. The compiler
  18719. is told about this with #include <vfork.h>, but some compilers
  18720. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18721. static variable whose address is put into a register that is
  18722. clobbered by the vfork. */
  18723. static void
  18724. #ifdef __cplusplus
  18725. sparc_address_test (int arg)
  18726. # else
  18727. sparc_address_test (arg) int arg;
  18728. #endif
  18729. {
  18730. static pid_t child;
  18731. if (!child) {
  18732. child = vfork ();
  18733. if (child < 0) {
  18734. perror ("vfork");
  18735. _exit(2);
  18736. }
  18737. if (!child) {
  18738. arg = getpid();
  18739. write(-1, "", 0);
  18740. _exit (arg);
  18741. }
  18742. }
  18743. }
  18744. int
  18745. main ()
  18746. {
  18747. pid_t parent = getpid ();
  18748. pid_t child;
  18749. sparc_address_test (0);
  18750. child = vfork ();
  18751. if (child == 0) {
  18752. /* Here is another test for sparc vfork register problems. This
  18753. test uses lots of local variables, at least as many local
  18754. variables as main has allocated so far including compiler
  18755. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18756. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18757. reuse the register of parent for one of the local variables,
  18758. since it will think that parent can't possibly be used any more
  18759. in this routine. Assigning to the local variable will thus
  18760. munge parent in the parent process. */
  18761. pid_t
  18762. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18763. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18764. /* Convince the compiler that p..p7 are live; otherwise, it might
  18765. use the same hardware register for all 8 local variables. */
  18766. if (p != p1 || p != p2 || p != p3 || p != p4
  18767. || p != p5 || p != p6 || p != p7)
  18768. _exit(1);
  18769. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18770. from child file descriptors. If the child closes a descriptor
  18771. before it execs or exits, this munges the parent's descriptor
  18772. as well. Test for this by closing stdout in the child. */
  18773. _exit(close(fileno(stdout)) != 0);
  18774. } else {
  18775. int status;
  18776. struct stat st;
  18777. while (wait(&status) != child)
  18778. ;
  18779. exit(
  18780. /* Was there some problem with vforking? */
  18781. child < 0
  18782. /* Did the child fail? (This shouldn't happen.) */
  18783. || status
  18784. /* Did the vfork/compiler bug occur? */
  18785. || parent != getpid()
  18786. /* Did the file descriptor bug occur? */
  18787. || fstat(fileno(stdout), &st) != 0
  18788. );
  18789. }
  18790. }
  18791. _ACEOF
  18792. rm -f conftest$ac_exeext
  18793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18794. (eval $ac_link) 2>&5
  18795. ac_status=$?
  18796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18797. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18799. (eval $ac_try) 2>&5
  18800. ac_status=$?
  18801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18802. (exit $ac_status); }; }; then
  18803. ac_cv_func_vfork_works=yes
  18804. else
  18805. echo "$as_me: program exited with status $ac_status" >&5
  18806. echo "$as_me: failed program was:" >&5
  18807. sed 's/^/| /' conftest.$ac_ext >&5
  18808. ( exit $ac_status )
  18809. ac_cv_func_vfork_works=no
  18810. fi
  18811. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18812. fi
  18813. fi
  18814. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18815. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18816. fi;
  18817. if test "x$ac_cv_func_fork_works" = xcross; then
  18818. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18819. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18820. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18821. fi
  18822. if test "x$ac_cv_func_vfork_works" = xyes; then
  18823. cat >>confdefs.h <<\_ACEOF
  18824. #define HAVE_WORKING_VFORK 1
  18825. _ACEOF
  18826. else
  18827. cat >>confdefs.h <<\_ACEOF
  18828. #define vfork fork
  18829. _ACEOF
  18830. fi
  18831. if test "x$ac_cv_func_fork_works" = xyes; then
  18832. cat >>confdefs.h <<\_ACEOF
  18833. #define HAVE_WORKING_FORK 1
  18834. _ACEOF
  18835. fi
  18836. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18837. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18838. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18839. echo $ECHO_N "(cached) $ECHO_C" >&6
  18840. else
  18841. rm -f conftest.sym conftest.file
  18842. echo >conftest.file
  18843. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18844. if test "$cross_compiling" = yes; then
  18845. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18846. else
  18847. cat >conftest.$ac_ext <<_ACEOF
  18848. /* confdefs.h. */
  18849. _ACEOF
  18850. cat confdefs.h >>conftest.$ac_ext
  18851. cat >>conftest.$ac_ext <<_ACEOF
  18852. /* end confdefs.h. */
  18853. $ac_includes_default
  18854. int
  18855. main ()
  18856. {
  18857. struct stat sbuf;
  18858. /* Linux will dereference the symlink and fail.
  18859. That is better in the sense that it means we will not
  18860. have to compile and use the lstat wrapper. */
  18861. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18862. ;
  18863. return 0;
  18864. }
  18865. _ACEOF
  18866. rm -f conftest$ac_exeext
  18867. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18868. (eval $ac_link) 2>&5
  18869. ac_status=$?
  18870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18871. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18873. (eval $ac_try) 2>&5
  18874. ac_status=$?
  18875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18876. (exit $ac_status); }; }; then
  18877. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18878. else
  18879. echo "$as_me: program exited with status $ac_status" >&5
  18880. echo "$as_me: failed program was:" >&5
  18881. sed 's/^/| /' conftest.$ac_ext >&5
  18882. ( exit $ac_status )
  18883. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18884. fi
  18885. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18886. fi
  18887. else
  18888. # If the `ln -s' command failed, then we probably don't even
  18889. # have an lstat function.
  18890. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18891. fi
  18892. rm -f conftest.sym conftest.file
  18893. fi
  18894. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18895. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18896. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18897. cat >>confdefs.h <<_ACEOF
  18898. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18899. _ACEOF
  18900. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18901. case $LIBOBJS in
  18902. "lstat.$ac_objext" | \
  18903. *" lstat.$ac_objext" | \
  18904. "lstat.$ac_objext "* | \
  18905. *" lstat.$ac_objext "* ) ;;
  18906. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18907. esac
  18908. fi
  18909. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18910. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18911. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18912. echo $ECHO_N "(cached) $ECHO_C" >&6
  18913. else
  18914. if test "$cross_compiling" = yes; then
  18915. ac_cv_func_lstat_empty_string_bug=yes
  18916. else
  18917. cat >conftest.$ac_ext <<_ACEOF
  18918. /* confdefs.h. */
  18919. _ACEOF
  18920. cat confdefs.h >>conftest.$ac_ext
  18921. cat >>conftest.$ac_ext <<_ACEOF
  18922. /* end confdefs.h. */
  18923. $ac_includes_default
  18924. int
  18925. main ()
  18926. {
  18927. struct stat sbuf;
  18928. exit (lstat ("", &sbuf) ? 1 : 0);
  18929. ;
  18930. return 0;
  18931. }
  18932. _ACEOF
  18933. rm -f conftest$ac_exeext
  18934. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18935. (eval $ac_link) 2>&5
  18936. ac_status=$?
  18937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18938. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18940. (eval $ac_try) 2>&5
  18941. ac_status=$?
  18942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18943. (exit $ac_status); }; }; then
  18944. ac_cv_func_lstat_empty_string_bug=yes
  18945. else
  18946. echo "$as_me: program exited with status $ac_status" >&5
  18947. echo "$as_me: failed program was:" >&5
  18948. sed 's/^/| /' conftest.$ac_ext >&5
  18949. ( exit $ac_status )
  18950. ac_cv_func_lstat_empty_string_bug=no
  18951. fi
  18952. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18953. fi
  18954. fi
  18955. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18956. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18957. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18958. case $LIBOBJS in
  18959. "lstat.$ac_objext" | \
  18960. *" lstat.$ac_objext" | \
  18961. "lstat.$ac_objext "* | \
  18962. *" lstat.$ac_objext "* ) ;;
  18963. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18964. esac
  18965. cat >>confdefs.h <<_ACEOF
  18966. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18967. _ACEOF
  18968. fi
  18969. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18970. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18971. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18972. echo $ECHO_N "(cached) $ECHO_C" >&6
  18973. else
  18974. rm -f conftest.sym conftest.file
  18975. echo >conftest.file
  18976. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18977. if test "$cross_compiling" = yes; then
  18978. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18979. else
  18980. cat >conftest.$ac_ext <<_ACEOF
  18981. /* confdefs.h. */
  18982. _ACEOF
  18983. cat confdefs.h >>conftest.$ac_ext
  18984. cat >>conftest.$ac_ext <<_ACEOF
  18985. /* end confdefs.h. */
  18986. $ac_includes_default
  18987. int
  18988. main ()
  18989. {
  18990. struct stat sbuf;
  18991. /* Linux will dereference the symlink and fail.
  18992. That is better in the sense that it means we will not
  18993. have to compile and use the lstat wrapper. */
  18994. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18995. ;
  18996. return 0;
  18997. }
  18998. _ACEOF
  18999. rm -f conftest$ac_exeext
  19000. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19001. (eval $ac_link) 2>&5
  19002. ac_status=$?
  19003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19004. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19006. (eval $ac_try) 2>&5
  19007. ac_status=$?
  19008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19009. (exit $ac_status); }; }; then
  19010. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  19011. else
  19012. echo "$as_me: program exited with status $ac_status" >&5
  19013. echo "$as_me: failed program was:" >&5
  19014. sed 's/^/| /' conftest.$ac_ext >&5
  19015. ( exit $ac_status )
  19016. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19017. fi
  19018. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19019. fi
  19020. else
  19021. # If the `ln -s' command failed, then we probably don't even
  19022. # have an lstat function.
  19023. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19024. fi
  19025. rm -f conftest.sym conftest.file
  19026. fi
  19027. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19028. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  19029. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  19030. cat >>confdefs.h <<_ACEOF
  19031. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  19032. _ACEOF
  19033. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  19034. case $LIBOBJS in
  19035. "lstat.$ac_objext" | \
  19036. *" lstat.$ac_objext" | \
  19037. "lstat.$ac_objext "* | \
  19038. *" lstat.$ac_objext "* ) ;;
  19039. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  19040. esac
  19041. fi
  19042. for ac_header in stdlib.h
  19043. do
  19044. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19045. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19046. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19047. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19048. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19049. echo $ECHO_N "(cached) $ECHO_C" >&6
  19050. fi
  19051. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19052. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19053. else
  19054. # Is the header compilable?
  19055. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19056. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19057. cat >conftest.$ac_ext <<_ACEOF
  19058. /* confdefs.h. */
  19059. _ACEOF
  19060. cat confdefs.h >>conftest.$ac_ext
  19061. cat >>conftest.$ac_ext <<_ACEOF
  19062. /* end confdefs.h. */
  19063. $ac_includes_default
  19064. #include <$ac_header>
  19065. _ACEOF
  19066. rm -f conftest.$ac_objext
  19067. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19068. (eval $ac_compile) 2>conftest.er1
  19069. ac_status=$?
  19070. grep -v '^ *+' conftest.er1 >conftest.err
  19071. rm -f conftest.er1
  19072. cat conftest.err >&5
  19073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19074. (exit $ac_status); } &&
  19075. { ac_try='test -z "$ac_c_werror_flag"
  19076. || test ! -s conftest.err'
  19077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19078. (eval $ac_try) 2>&5
  19079. ac_status=$?
  19080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19081. (exit $ac_status); }; } &&
  19082. { ac_try='test -s conftest.$ac_objext'
  19083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19084. (eval $ac_try) 2>&5
  19085. ac_status=$?
  19086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19087. (exit $ac_status); }; }; then
  19088. ac_header_compiler=yes
  19089. else
  19090. echo "$as_me: failed program was:" >&5
  19091. sed 's/^/| /' conftest.$ac_ext >&5
  19092. ac_header_compiler=no
  19093. fi
  19094. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19095. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19096. echo "${ECHO_T}$ac_header_compiler" >&6
  19097. # Is the header present?
  19098. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19099. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19100. cat >conftest.$ac_ext <<_ACEOF
  19101. /* confdefs.h. */
  19102. _ACEOF
  19103. cat confdefs.h >>conftest.$ac_ext
  19104. cat >>conftest.$ac_ext <<_ACEOF
  19105. /* end confdefs.h. */
  19106. #include <$ac_header>
  19107. _ACEOF
  19108. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19109. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19110. ac_status=$?
  19111. grep -v '^ *+' conftest.er1 >conftest.err
  19112. rm -f conftest.er1
  19113. cat conftest.err >&5
  19114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19115. (exit $ac_status); } >/dev/null; then
  19116. if test -s conftest.err; then
  19117. ac_cpp_err=$ac_c_preproc_warn_flag
  19118. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19119. else
  19120. ac_cpp_err=
  19121. fi
  19122. else
  19123. ac_cpp_err=yes
  19124. fi
  19125. if test -z "$ac_cpp_err"; then
  19126. ac_header_preproc=yes
  19127. else
  19128. echo "$as_me: failed program was:" >&5
  19129. sed 's/^/| /' conftest.$ac_ext >&5
  19130. ac_header_preproc=no
  19131. fi
  19132. rm -f conftest.err conftest.$ac_ext
  19133. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19134. echo "${ECHO_T}$ac_header_preproc" >&6
  19135. # So? What about this header?
  19136. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19137. yes:no: )
  19138. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19139. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19140. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19141. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19142. ac_header_preproc=yes
  19143. ;;
  19144. no:yes:* )
  19145. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19146. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19147. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19148. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19149. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19150. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19151. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19152. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19153. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19154. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19155. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19156. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19157. (
  19158. cat <<\_ASBOX
  19159. ## ------------------------------------------ ##
  19160. ## Report this to http://bugzilla.redhat.com/ ##
  19161. ## ------------------------------------------ ##
  19162. _ASBOX
  19163. ) |
  19164. sed "s/^/$as_me: WARNING: /" >&2
  19165. ;;
  19166. esac
  19167. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19168. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19169. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19170. echo $ECHO_N "(cached) $ECHO_C" >&6
  19171. else
  19172. eval "$as_ac_Header=\$ac_header_preproc"
  19173. fi
  19174. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19175. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19176. fi
  19177. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19178. cat >>confdefs.h <<_ACEOF
  19179. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19180. _ACEOF
  19181. fi
  19182. done
  19183. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19184. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19185. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19186. echo $ECHO_N "(cached) $ECHO_C" >&6
  19187. else
  19188. if test "$cross_compiling" = yes; then
  19189. ac_cv_func_malloc_0_nonnull=no
  19190. else
  19191. cat >conftest.$ac_ext <<_ACEOF
  19192. /* confdefs.h. */
  19193. _ACEOF
  19194. cat confdefs.h >>conftest.$ac_ext
  19195. cat >>conftest.$ac_ext <<_ACEOF
  19196. /* end confdefs.h. */
  19197. #if STDC_HEADERS || HAVE_STDLIB_H
  19198. # include <stdlib.h>
  19199. #else
  19200. char *malloc ();
  19201. #endif
  19202. int
  19203. main ()
  19204. {
  19205. exit (malloc (0) ? 0 : 1);
  19206. ;
  19207. return 0;
  19208. }
  19209. _ACEOF
  19210. rm -f conftest$ac_exeext
  19211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19212. (eval $ac_link) 2>&5
  19213. ac_status=$?
  19214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19215. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19217. (eval $ac_try) 2>&5
  19218. ac_status=$?
  19219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19220. (exit $ac_status); }; }; then
  19221. ac_cv_func_malloc_0_nonnull=yes
  19222. else
  19223. echo "$as_me: program exited with status $ac_status" >&5
  19224. echo "$as_me: failed program was:" >&5
  19225. sed 's/^/| /' conftest.$ac_ext >&5
  19226. ( exit $ac_status )
  19227. ac_cv_func_malloc_0_nonnull=no
  19228. fi
  19229. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19230. fi
  19231. fi
  19232. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19233. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19234. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19235. cat >>confdefs.h <<\_ACEOF
  19236. #define HAVE_MALLOC 1
  19237. _ACEOF
  19238. else
  19239. cat >>confdefs.h <<\_ACEOF
  19240. #define HAVE_MALLOC 0
  19241. _ACEOF
  19242. case $LIBOBJS in
  19243. "malloc.$ac_objext" | \
  19244. *" malloc.$ac_objext" | \
  19245. "malloc.$ac_objext "* | \
  19246. *" malloc.$ac_objext "* ) ;;
  19247. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19248. esac
  19249. cat >>confdefs.h <<\_ACEOF
  19250. #define malloc rpl_malloc
  19251. _ACEOF
  19252. fi
  19253. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19254. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19255. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19256. echo $ECHO_N "(cached) $ECHO_C" >&6
  19257. else
  19258. if test "$cross_compiling" = yes; then
  19259. ac_cv_func_memcmp_working=no
  19260. else
  19261. cat >conftest.$ac_ext <<_ACEOF
  19262. /* confdefs.h. */
  19263. _ACEOF
  19264. cat confdefs.h >>conftest.$ac_ext
  19265. cat >>conftest.$ac_ext <<_ACEOF
  19266. /* end confdefs.h. */
  19267. $ac_includes_default
  19268. int
  19269. main ()
  19270. {
  19271. /* Some versions of memcmp are not 8-bit clean. */
  19272. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19273. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19274. exit (1);
  19275. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19276. or more and with at least one buffer not starting on a 4-byte boundary.
  19277. William Lewis provided this test program. */
  19278. {
  19279. char foo[21];
  19280. char bar[21];
  19281. int i;
  19282. for (i = 0; i < 4; i++)
  19283. {
  19284. char *a = foo + i;
  19285. char *b = bar + i;
  19286. strcpy (a, "--------01111111");
  19287. strcpy (b, "--------10000000");
  19288. if (memcmp (a, b, 16) >= 0)
  19289. exit (1);
  19290. }
  19291. exit (0);
  19292. }
  19293. ;
  19294. return 0;
  19295. }
  19296. _ACEOF
  19297. rm -f conftest$ac_exeext
  19298. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19299. (eval $ac_link) 2>&5
  19300. ac_status=$?
  19301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19302. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19304. (eval $ac_try) 2>&5
  19305. ac_status=$?
  19306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19307. (exit $ac_status); }; }; then
  19308. ac_cv_func_memcmp_working=yes
  19309. else
  19310. echo "$as_me: program exited with status $ac_status" >&5
  19311. echo "$as_me: failed program was:" >&5
  19312. sed 's/^/| /' conftest.$ac_ext >&5
  19313. ( exit $ac_status )
  19314. ac_cv_func_memcmp_working=no
  19315. fi
  19316. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19317. fi
  19318. fi
  19319. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19320. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19321. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19322. "memcmp.$ac_objext" | \
  19323. *" memcmp.$ac_objext" | \
  19324. "memcmp.$ac_objext "* | \
  19325. *" memcmp.$ac_objext "* ) ;;
  19326. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19327. esac
  19328. for ac_header in stdlib.h unistd.h
  19329. do
  19330. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19331. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19332. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19333. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19334. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19335. echo $ECHO_N "(cached) $ECHO_C" >&6
  19336. fi
  19337. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19338. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19339. else
  19340. # Is the header compilable?
  19341. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19342. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19343. cat >conftest.$ac_ext <<_ACEOF
  19344. /* confdefs.h. */
  19345. _ACEOF
  19346. cat confdefs.h >>conftest.$ac_ext
  19347. cat >>conftest.$ac_ext <<_ACEOF
  19348. /* end confdefs.h. */
  19349. $ac_includes_default
  19350. #include <$ac_header>
  19351. _ACEOF
  19352. rm -f conftest.$ac_objext
  19353. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19354. (eval $ac_compile) 2>conftest.er1
  19355. ac_status=$?
  19356. grep -v '^ *+' conftest.er1 >conftest.err
  19357. rm -f conftest.er1
  19358. cat conftest.err >&5
  19359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19360. (exit $ac_status); } &&
  19361. { ac_try='test -z "$ac_c_werror_flag"
  19362. || test ! -s conftest.err'
  19363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19364. (eval $ac_try) 2>&5
  19365. ac_status=$?
  19366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19367. (exit $ac_status); }; } &&
  19368. { ac_try='test -s conftest.$ac_objext'
  19369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19370. (eval $ac_try) 2>&5
  19371. ac_status=$?
  19372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19373. (exit $ac_status); }; }; then
  19374. ac_header_compiler=yes
  19375. else
  19376. echo "$as_me: failed program was:" >&5
  19377. sed 's/^/| /' conftest.$ac_ext >&5
  19378. ac_header_compiler=no
  19379. fi
  19380. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19381. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19382. echo "${ECHO_T}$ac_header_compiler" >&6
  19383. # Is the header present?
  19384. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19385. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19386. cat >conftest.$ac_ext <<_ACEOF
  19387. /* confdefs.h. */
  19388. _ACEOF
  19389. cat confdefs.h >>conftest.$ac_ext
  19390. cat >>conftest.$ac_ext <<_ACEOF
  19391. /* end confdefs.h. */
  19392. #include <$ac_header>
  19393. _ACEOF
  19394. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19395. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19396. ac_status=$?
  19397. grep -v '^ *+' conftest.er1 >conftest.err
  19398. rm -f conftest.er1
  19399. cat conftest.err >&5
  19400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19401. (exit $ac_status); } >/dev/null; then
  19402. if test -s conftest.err; then
  19403. ac_cpp_err=$ac_c_preproc_warn_flag
  19404. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19405. else
  19406. ac_cpp_err=
  19407. fi
  19408. else
  19409. ac_cpp_err=yes
  19410. fi
  19411. if test -z "$ac_cpp_err"; then
  19412. ac_header_preproc=yes
  19413. else
  19414. echo "$as_me: failed program was:" >&5
  19415. sed 's/^/| /' conftest.$ac_ext >&5
  19416. ac_header_preproc=no
  19417. fi
  19418. rm -f conftest.err conftest.$ac_ext
  19419. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19420. echo "${ECHO_T}$ac_header_preproc" >&6
  19421. # So? What about this header?
  19422. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19423. yes:no: )
  19424. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19425. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19426. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19427. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19428. ac_header_preproc=yes
  19429. ;;
  19430. no:yes:* )
  19431. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19432. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19433. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19434. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19435. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19436. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19437. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19438. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19439. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19440. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19441. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19442. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19443. (
  19444. cat <<\_ASBOX
  19445. ## ------------------------------------------ ##
  19446. ## Report this to http://bugzilla.redhat.com/ ##
  19447. ## ------------------------------------------ ##
  19448. _ASBOX
  19449. ) |
  19450. sed "s/^/$as_me: WARNING: /" >&2
  19451. ;;
  19452. esac
  19453. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19454. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19455. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19456. echo $ECHO_N "(cached) $ECHO_C" >&6
  19457. else
  19458. eval "$as_ac_Header=\$ac_header_preproc"
  19459. fi
  19460. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19461. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19462. fi
  19463. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19464. cat >>confdefs.h <<_ACEOF
  19465. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19466. _ACEOF
  19467. fi
  19468. done
  19469. for ac_func in getpagesize
  19470. do
  19471. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19472. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19473. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19474. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19475. echo $ECHO_N "(cached) $ECHO_C" >&6
  19476. else
  19477. cat >conftest.$ac_ext <<_ACEOF
  19478. /* confdefs.h. */
  19479. _ACEOF
  19480. cat confdefs.h >>conftest.$ac_ext
  19481. cat >>conftest.$ac_ext <<_ACEOF
  19482. /* end confdefs.h. */
  19483. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19484. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19485. #define $ac_func innocuous_$ac_func
  19486. /* System header to define __stub macros and hopefully few prototypes,
  19487. which can conflict with char $ac_func (); below.
  19488. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19489. <limits.h> exists even on freestanding compilers. */
  19490. #ifdef __STDC__
  19491. # include <limits.h>
  19492. #else
  19493. # include <assert.h>
  19494. #endif
  19495. #undef $ac_func
  19496. /* Override any gcc2 internal prototype to avoid an error. */
  19497. #ifdef __cplusplus
  19498. extern "C"
  19499. {
  19500. #endif
  19501. /* We use char because int might match the return type of a gcc2
  19502. builtin and then its argument prototype would still apply. */
  19503. char $ac_func ();
  19504. /* The GNU C library defines this for functions which it implements
  19505. to always fail with ENOSYS. Some functions are actually named
  19506. something starting with __ and the normal name is an alias. */
  19507. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19508. choke me
  19509. #else
  19510. char (*f) () = $ac_func;
  19511. #endif
  19512. #ifdef __cplusplus
  19513. }
  19514. #endif
  19515. int
  19516. main ()
  19517. {
  19518. return f != $ac_func;
  19519. ;
  19520. return 0;
  19521. }
  19522. _ACEOF
  19523. rm -f conftest.$ac_objext conftest$ac_exeext
  19524. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19525. (eval $ac_link) 2>conftest.er1
  19526. ac_status=$?
  19527. grep -v '^ *+' conftest.er1 >conftest.err
  19528. rm -f conftest.er1
  19529. cat conftest.err >&5
  19530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19531. (exit $ac_status); } &&
  19532. { ac_try='test -z "$ac_c_werror_flag"
  19533. || test ! -s conftest.err'
  19534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19535. (eval $ac_try) 2>&5
  19536. ac_status=$?
  19537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19538. (exit $ac_status); }; } &&
  19539. { ac_try='test -s conftest$ac_exeext'
  19540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19541. (eval $ac_try) 2>&5
  19542. ac_status=$?
  19543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19544. (exit $ac_status); }; }; then
  19545. eval "$as_ac_var=yes"
  19546. else
  19547. echo "$as_me: failed program was:" >&5
  19548. sed 's/^/| /' conftest.$ac_ext >&5
  19549. eval "$as_ac_var=no"
  19550. fi
  19551. rm -f conftest.err conftest.$ac_objext \
  19552. conftest$ac_exeext conftest.$ac_ext
  19553. fi
  19554. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19555. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19556. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19557. cat >>confdefs.h <<_ACEOF
  19558. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19559. _ACEOF
  19560. fi
  19561. done
  19562. echo "$as_me:$LINENO: checking for working mmap" >&5
  19563. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19564. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19565. echo $ECHO_N "(cached) $ECHO_C" >&6
  19566. else
  19567. if test "$cross_compiling" = yes; then
  19568. ac_cv_func_mmap_fixed_mapped=no
  19569. else
  19570. cat >conftest.$ac_ext <<_ACEOF
  19571. /* confdefs.h. */
  19572. _ACEOF
  19573. cat confdefs.h >>conftest.$ac_ext
  19574. cat >>conftest.$ac_ext <<_ACEOF
  19575. /* end confdefs.h. */
  19576. $ac_includes_default
  19577. /* malloc might have been renamed as rpl_malloc. */
  19578. #undef malloc
  19579. /* Thanks to Mike Haertel and Jim Avera for this test.
  19580. Here is a matrix of mmap possibilities:
  19581. mmap private not fixed
  19582. mmap private fixed at somewhere currently unmapped
  19583. mmap private fixed at somewhere already mapped
  19584. mmap shared not fixed
  19585. mmap shared fixed at somewhere currently unmapped
  19586. mmap shared fixed at somewhere already mapped
  19587. For private mappings, we should verify that changes cannot be read()
  19588. back from the file, nor mmap's back from the file at a different
  19589. address. (There have been systems where private was not correctly
  19590. implemented like the infamous i386 svr4.0, and systems where the
  19591. VM page cache was not coherent with the file system buffer cache
  19592. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19593. For shared mappings, we should conversely verify that changes get
  19594. propagated back to all the places they're supposed to be.
  19595. Grep wants private fixed already mapped.
  19596. The main things grep needs to know about mmap are:
  19597. * does it exist and is it safe to write into the mmap'd area
  19598. * how to use it (BSD variants) */
  19599. #include <fcntl.h>
  19600. #include <sys/mman.h>
  19601. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19602. char *malloc ();
  19603. #endif
  19604. /* This mess was copied from the GNU getpagesize.h. */
  19605. #if !HAVE_GETPAGESIZE
  19606. /* Assume that all systems that can run configure have sys/param.h. */
  19607. # if !HAVE_SYS_PARAM_H
  19608. # define HAVE_SYS_PARAM_H 1
  19609. # endif
  19610. # ifdef _SC_PAGESIZE
  19611. # define getpagesize() sysconf(_SC_PAGESIZE)
  19612. # else /* no _SC_PAGESIZE */
  19613. # if HAVE_SYS_PARAM_H
  19614. # include <sys/param.h>
  19615. # ifdef EXEC_PAGESIZE
  19616. # define getpagesize() EXEC_PAGESIZE
  19617. # else /* no EXEC_PAGESIZE */
  19618. # ifdef NBPG
  19619. # define getpagesize() NBPG * CLSIZE
  19620. # ifndef CLSIZE
  19621. # define CLSIZE 1
  19622. # endif /* no CLSIZE */
  19623. # else /* no NBPG */
  19624. # ifdef NBPC
  19625. # define getpagesize() NBPC
  19626. # else /* no NBPC */
  19627. # ifdef PAGESIZE
  19628. # define getpagesize() PAGESIZE
  19629. # endif /* PAGESIZE */
  19630. # endif /* no NBPC */
  19631. # endif /* no NBPG */
  19632. # endif /* no EXEC_PAGESIZE */
  19633. # else /* no HAVE_SYS_PARAM_H */
  19634. # define getpagesize() 8192 /* punt totally */
  19635. # endif /* no HAVE_SYS_PARAM_H */
  19636. # endif /* no _SC_PAGESIZE */
  19637. #endif /* no HAVE_GETPAGESIZE */
  19638. int
  19639. main ()
  19640. {
  19641. char *data, *data2, *data3;
  19642. int i, pagesize;
  19643. int fd;
  19644. pagesize = getpagesize ();
  19645. /* First, make a file with some known garbage in it. */
  19646. data = (char *) malloc (pagesize);
  19647. if (!data)
  19648. exit (1);
  19649. for (i = 0; i < pagesize; ++i)
  19650. *(data + i) = rand ();
  19651. umask (0);
  19652. fd = creat ("conftest.mmap", 0600);
  19653. if (fd < 0)
  19654. exit (1);
  19655. if (write (fd, data, pagesize) != pagesize)
  19656. exit (1);
  19657. close (fd);
  19658. /* Next, try to mmap the file at a fixed address which already has
  19659. something else allocated at it. If we can, also make sure that
  19660. we see the same garbage. */
  19661. fd = open ("conftest.mmap", O_RDWR);
  19662. if (fd < 0)
  19663. exit (1);
  19664. data2 = (char *) malloc (2 * pagesize);
  19665. if (!data2)
  19666. exit (1);
  19667. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19668. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19669. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19670. exit (1);
  19671. for (i = 0; i < pagesize; ++i)
  19672. if (*(data + i) != *(data2 + i))
  19673. exit (1);
  19674. /* Finally, make sure that changes to the mapped area do not
  19675. percolate back to the file as seen by read(). (This is a bug on
  19676. some variants of i386 svr4.0.) */
  19677. for (i = 0; i < pagesize; ++i)
  19678. *(data2 + i) = *(data2 + i) + 1;
  19679. data3 = (char *) malloc (pagesize);
  19680. if (!data3)
  19681. exit (1);
  19682. if (read (fd, data3, pagesize) != pagesize)
  19683. exit (1);
  19684. for (i = 0; i < pagesize; ++i)
  19685. if (*(data + i) != *(data3 + i))
  19686. exit (1);
  19687. close (fd);
  19688. exit (0);
  19689. }
  19690. _ACEOF
  19691. rm -f conftest$ac_exeext
  19692. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19693. (eval $ac_link) 2>&5
  19694. ac_status=$?
  19695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19696. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19698. (eval $ac_try) 2>&5
  19699. ac_status=$?
  19700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19701. (exit $ac_status); }; }; then
  19702. ac_cv_func_mmap_fixed_mapped=yes
  19703. else
  19704. echo "$as_me: program exited with status $ac_status" >&5
  19705. echo "$as_me: failed program was:" >&5
  19706. sed 's/^/| /' conftest.$ac_ext >&5
  19707. ( exit $ac_status )
  19708. ac_cv_func_mmap_fixed_mapped=no
  19709. fi
  19710. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19711. fi
  19712. fi
  19713. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19714. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19715. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19716. cat >>confdefs.h <<\_ACEOF
  19717. #define HAVE_MMAP 1
  19718. _ACEOF
  19719. fi
  19720. rm -f conftest.mmap
  19721. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19722. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19723. if test "${ac_cv_type_signal+set}" = set; then
  19724. echo $ECHO_N "(cached) $ECHO_C" >&6
  19725. else
  19726. cat >conftest.$ac_ext <<_ACEOF
  19727. /* confdefs.h. */
  19728. _ACEOF
  19729. cat confdefs.h >>conftest.$ac_ext
  19730. cat >>conftest.$ac_ext <<_ACEOF
  19731. /* end confdefs.h. */
  19732. #include <sys/types.h>
  19733. #include <signal.h>
  19734. #ifdef signal
  19735. # undef signal
  19736. #endif
  19737. #ifdef __cplusplus
  19738. extern "C" void (*signal (int, void (*)(int)))(int);
  19739. #else
  19740. void (*signal ()) ();
  19741. #endif
  19742. int
  19743. main ()
  19744. {
  19745. int i;
  19746. ;
  19747. return 0;
  19748. }
  19749. _ACEOF
  19750. rm -f conftest.$ac_objext
  19751. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19752. (eval $ac_compile) 2>conftest.er1
  19753. ac_status=$?
  19754. grep -v '^ *+' conftest.er1 >conftest.err
  19755. rm -f conftest.er1
  19756. cat conftest.err >&5
  19757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19758. (exit $ac_status); } &&
  19759. { ac_try='test -z "$ac_c_werror_flag"
  19760. || test ! -s conftest.err'
  19761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19762. (eval $ac_try) 2>&5
  19763. ac_status=$?
  19764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19765. (exit $ac_status); }; } &&
  19766. { ac_try='test -s conftest.$ac_objext'
  19767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19768. (eval $ac_try) 2>&5
  19769. ac_status=$?
  19770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19771. (exit $ac_status); }; }; then
  19772. ac_cv_type_signal=void
  19773. else
  19774. echo "$as_me: failed program was:" >&5
  19775. sed 's/^/| /' conftest.$ac_ext >&5
  19776. ac_cv_type_signal=int
  19777. fi
  19778. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19779. fi
  19780. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19781. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19782. cat >>confdefs.h <<_ACEOF
  19783. #define RETSIGTYPE $ac_cv_type_signal
  19784. _ACEOF
  19785. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19786. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19787. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19788. echo $ECHO_N "(cached) $ECHO_C" >&6
  19789. else
  19790. if test "$cross_compiling" = yes; then
  19791. ac_cv_func_stat_empty_string_bug=yes
  19792. else
  19793. cat >conftest.$ac_ext <<_ACEOF
  19794. /* confdefs.h. */
  19795. _ACEOF
  19796. cat confdefs.h >>conftest.$ac_ext
  19797. cat >>conftest.$ac_ext <<_ACEOF
  19798. /* end confdefs.h. */
  19799. $ac_includes_default
  19800. int
  19801. main ()
  19802. {
  19803. struct stat sbuf;
  19804. exit (stat ("", &sbuf) ? 1 : 0);
  19805. ;
  19806. return 0;
  19807. }
  19808. _ACEOF
  19809. rm -f conftest$ac_exeext
  19810. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19811. (eval $ac_link) 2>&5
  19812. ac_status=$?
  19813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19814. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19816. (eval $ac_try) 2>&5
  19817. ac_status=$?
  19818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19819. (exit $ac_status); }; }; then
  19820. ac_cv_func_stat_empty_string_bug=yes
  19821. else
  19822. echo "$as_me: program exited with status $ac_status" >&5
  19823. echo "$as_me: failed program was:" >&5
  19824. sed 's/^/| /' conftest.$ac_ext >&5
  19825. ( exit $ac_status )
  19826. ac_cv_func_stat_empty_string_bug=no
  19827. fi
  19828. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19829. fi
  19830. fi
  19831. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19832. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19833. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19834. case $LIBOBJS in
  19835. "stat.$ac_objext" | \
  19836. *" stat.$ac_objext" | \
  19837. "stat.$ac_objext "* | \
  19838. *" stat.$ac_objext "* ) ;;
  19839. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19840. esac
  19841. cat >>confdefs.h <<_ACEOF
  19842. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19843. _ACEOF
  19844. fi
  19845. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19846. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19847. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19848. echo $ECHO_N "(cached) $ECHO_C" >&6
  19849. else
  19850. cat >conftest.$ac_ext <<_ACEOF
  19851. /* confdefs.h. */
  19852. _ACEOF
  19853. cat confdefs.h >>conftest.$ac_ext
  19854. cat >>conftest.$ac_ext <<_ACEOF
  19855. /* end confdefs.h. */
  19856. $ac_includes_default
  19857. int
  19858. main ()
  19859. {
  19860. #ifndef strerror_r
  19861. char *p = (char *) strerror_r;
  19862. #endif
  19863. ;
  19864. return 0;
  19865. }
  19866. _ACEOF
  19867. rm -f conftest.$ac_objext
  19868. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19869. (eval $ac_compile) 2>conftest.er1
  19870. ac_status=$?
  19871. grep -v '^ *+' conftest.er1 >conftest.err
  19872. rm -f conftest.er1
  19873. cat conftest.err >&5
  19874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19875. (exit $ac_status); } &&
  19876. { ac_try='test -z "$ac_c_werror_flag"
  19877. || test ! -s conftest.err'
  19878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19879. (eval $ac_try) 2>&5
  19880. ac_status=$?
  19881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19882. (exit $ac_status); }; } &&
  19883. { ac_try='test -s conftest.$ac_objext'
  19884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19885. (eval $ac_try) 2>&5
  19886. ac_status=$?
  19887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19888. (exit $ac_status); }; }; then
  19889. ac_cv_have_decl_strerror_r=yes
  19890. else
  19891. echo "$as_me: failed program was:" >&5
  19892. sed 's/^/| /' conftest.$ac_ext >&5
  19893. ac_cv_have_decl_strerror_r=no
  19894. fi
  19895. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19896. fi
  19897. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19898. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19899. if test $ac_cv_have_decl_strerror_r = yes; then
  19900. cat >>confdefs.h <<_ACEOF
  19901. #define HAVE_DECL_STRERROR_R 1
  19902. _ACEOF
  19903. else
  19904. cat >>confdefs.h <<_ACEOF
  19905. #define HAVE_DECL_STRERROR_R 0
  19906. _ACEOF
  19907. fi
  19908. for ac_func in strerror_r
  19909. do
  19910. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19911. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19912. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19913. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19914. echo $ECHO_N "(cached) $ECHO_C" >&6
  19915. else
  19916. cat >conftest.$ac_ext <<_ACEOF
  19917. /* confdefs.h. */
  19918. _ACEOF
  19919. cat confdefs.h >>conftest.$ac_ext
  19920. cat >>conftest.$ac_ext <<_ACEOF
  19921. /* end confdefs.h. */
  19922. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19923. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19924. #define $ac_func innocuous_$ac_func
  19925. /* System header to define __stub macros and hopefully few prototypes,
  19926. which can conflict with char $ac_func (); below.
  19927. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19928. <limits.h> exists even on freestanding compilers. */
  19929. #ifdef __STDC__
  19930. # include <limits.h>
  19931. #else
  19932. # include <assert.h>
  19933. #endif
  19934. #undef $ac_func
  19935. /* Override any gcc2 internal prototype to avoid an error. */
  19936. #ifdef __cplusplus
  19937. extern "C"
  19938. {
  19939. #endif
  19940. /* We use char because int might match the return type of a gcc2
  19941. builtin and then its argument prototype would still apply. */
  19942. char $ac_func ();
  19943. /* The GNU C library defines this for functions which it implements
  19944. to always fail with ENOSYS. Some functions are actually named
  19945. something starting with __ and the normal name is an alias. */
  19946. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19947. choke me
  19948. #else
  19949. char (*f) () = $ac_func;
  19950. #endif
  19951. #ifdef __cplusplus
  19952. }
  19953. #endif
  19954. int
  19955. main ()
  19956. {
  19957. return f != $ac_func;
  19958. ;
  19959. return 0;
  19960. }
  19961. _ACEOF
  19962. rm -f conftest.$ac_objext conftest$ac_exeext
  19963. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19964. (eval $ac_link) 2>conftest.er1
  19965. ac_status=$?
  19966. grep -v '^ *+' conftest.er1 >conftest.err
  19967. rm -f conftest.er1
  19968. cat conftest.err >&5
  19969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19970. (exit $ac_status); } &&
  19971. { ac_try='test -z "$ac_c_werror_flag"
  19972. || test ! -s conftest.err'
  19973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19974. (eval $ac_try) 2>&5
  19975. ac_status=$?
  19976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19977. (exit $ac_status); }; } &&
  19978. { ac_try='test -s conftest$ac_exeext'
  19979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19980. (eval $ac_try) 2>&5
  19981. ac_status=$?
  19982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19983. (exit $ac_status); }; }; then
  19984. eval "$as_ac_var=yes"
  19985. else
  19986. echo "$as_me: failed program was:" >&5
  19987. sed 's/^/| /' conftest.$ac_ext >&5
  19988. eval "$as_ac_var=no"
  19989. fi
  19990. rm -f conftest.err conftest.$ac_objext \
  19991. conftest$ac_exeext conftest.$ac_ext
  19992. fi
  19993. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19994. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19995. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19996. cat >>confdefs.h <<_ACEOF
  19997. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19998. _ACEOF
  19999. fi
  20000. done
  20001. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  20002. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  20003. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  20004. echo $ECHO_N "(cached) $ECHO_C" >&6
  20005. else
  20006. ac_cv_func_strerror_r_char_p=no
  20007. if test $ac_cv_have_decl_strerror_r = yes; then
  20008. cat >conftest.$ac_ext <<_ACEOF
  20009. /* confdefs.h. */
  20010. _ACEOF
  20011. cat confdefs.h >>conftest.$ac_ext
  20012. cat >>conftest.$ac_ext <<_ACEOF
  20013. /* end confdefs.h. */
  20014. $ac_includes_default
  20015. int
  20016. main ()
  20017. {
  20018. char buf[100];
  20019. char x = *strerror_r (0, buf, sizeof buf);
  20020. char *p = strerror_r (0, buf, sizeof buf);
  20021. ;
  20022. return 0;
  20023. }
  20024. _ACEOF
  20025. rm -f conftest.$ac_objext
  20026. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20027. (eval $ac_compile) 2>conftest.er1
  20028. ac_status=$?
  20029. grep -v '^ *+' conftest.er1 >conftest.err
  20030. rm -f conftest.er1
  20031. cat conftest.err >&5
  20032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20033. (exit $ac_status); } &&
  20034. { ac_try='test -z "$ac_c_werror_flag"
  20035. || test ! -s conftest.err'
  20036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20037. (eval $ac_try) 2>&5
  20038. ac_status=$?
  20039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20040. (exit $ac_status); }; } &&
  20041. { ac_try='test -s conftest.$ac_objext'
  20042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20043. (eval $ac_try) 2>&5
  20044. ac_status=$?
  20045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20046. (exit $ac_status); }; }; then
  20047. ac_cv_func_strerror_r_char_p=yes
  20048. else
  20049. echo "$as_me: failed program was:" >&5
  20050. sed 's/^/| /' conftest.$ac_ext >&5
  20051. fi
  20052. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20053. else
  20054. # strerror_r is not declared. Choose between
  20055. # systems that have relatively inaccessible declarations for the
  20056. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  20057. # former has a strerror_r that returns char*, while the latter
  20058. # has a strerror_r that returns `int'.
  20059. # This test should segfault on the DEC system.
  20060. if test "$cross_compiling" = yes; then
  20061. :
  20062. else
  20063. cat >conftest.$ac_ext <<_ACEOF
  20064. /* confdefs.h. */
  20065. _ACEOF
  20066. cat confdefs.h >>conftest.$ac_ext
  20067. cat >>conftest.$ac_ext <<_ACEOF
  20068. /* end confdefs.h. */
  20069. $ac_includes_default
  20070. extern char *strerror_r ();
  20071. int
  20072. main ()
  20073. {
  20074. char buf[100];
  20075. char x = *strerror_r (0, buf, sizeof buf);
  20076. exit (!isalpha (x));
  20077. ;
  20078. return 0;
  20079. }
  20080. _ACEOF
  20081. rm -f conftest$ac_exeext
  20082. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20083. (eval $ac_link) 2>&5
  20084. ac_status=$?
  20085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20086. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20088. (eval $ac_try) 2>&5
  20089. ac_status=$?
  20090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20091. (exit $ac_status); }; }; then
  20092. ac_cv_func_strerror_r_char_p=yes
  20093. else
  20094. echo "$as_me: program exited with status $ac_status" >&5
  20095. echo "$as_me: failed program was:" >&5
  20096. sed 's/^/| /' conftest.$ac_ext >&5
  20097. fi
  20098. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20099. fi
  20100. fi
  20101. fi
  20102. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20103. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  20104. if test $ac_cv_func_strerror_r_char_p = yes; then
  20105. cat >>confdefs.h <<\_ACEOF
  20106. #define STRERROR_R_CHAR_P 1
  20107. _ACEOF
  20108. fi
  20109. for ac_func in strftime
  20110. do
  20111. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20112. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20113. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20114. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20115. echo $ECHO_N "(cached) $ECHO_C" >&6
  20116. else
  20117. cat >conftest.$ac_ext <<_ACEOF
  20118. /* confdefs.h. */
  20119. _ACEOF
  20120. cat confdefs.h >>conftest.$ac_ext
  20121. cat >>conftest.$ac_ext <<_ACEOF
  20122. /* end confdefs.h. */
  20123. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20124. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20125. #define $ac_func innocuous_$ac_func
  20126. /* System header to define __stub macros and hopefully few prototypes,
  20127. which can conflict with char $ac_func (); below.
  20128. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20129. <limits.h> exists even on freestanding compilers. */
  20130. #ifdef __STDC__
  20131. # include <limits.h>
  20132. #else
  20133. # include <assert.h>
  20134. #endif
  20135. #undef $ac_func
  20136. /* Override any gcc2 internal prototype to avoid an error. */
  20137. #ifdef __cplusplus
  20138. extern "C"
  20139. {
  20140. #endif
  20141. /* We use char because int might match the return type of a gcc2
  20142. builtin and then its argument prototype would still apply. */
  20143. char $ac_func ();
  20144. /* The GNU C library defines this for functions which it implements
  20145. to always fail with ENOSYS. Some functions are actually named
  20146. something starting with __ and the normal name is an alias. */
  20147. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20148. choke me
  20149. #else
  20150. char (*f) () = $ac_func;
  20151. #endif
  20152. #ifdef __cplusplus
  20153. }
  20154. #endif
  20155. int
  20156. main ()
  20157. {
  20158. return f != $ac_func;
  20159. ;
  20160. return 0;
  20161. }
  20162. _ACEOF
  20163. rm -f conftest.$ac_objext conftest$ac_exeext
  20164. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20165. (eval $ac_link) 2>conftest.er1
  20166. ac_status=$?
  20167. grep -v '^ *+' conftest.er1 >conftest.err
  20168. rm -f conftest.er1
  20169. cat conftest.err >&5
  20170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20171. (exit $ac_status); } &&
  20172. { ac_try='test -z "$ac_c_werror_flag"
  20173. || test ! -s conftest.err'
  20174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20175. (eval $ac_try) 2>&5
  20176. ac_status=$?
  20177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20178. (exit $ac_status); }; } &&
  20179. { ac_try='test -s conftest$ac_exeext'
  20180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20181. (eval $ac_try) 2>&5
  20182. ac_status=$?
  20183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20184. (exit $ac_status); }; }; then
  20185. eval "$as_ac_var=yes"
  20186. else
  20187. echo "$as_me: failed program was:" >&5
  20188. sed 's/^/| /' conftest.$ac_ext >&5
  20189. eval "$as_ac_var=no"
  20190. fi
  20191. rm -f conftest.err conftest.$ac_objext \
  20192. conftest$ac_exeext conftest.$ac_ext
  20193. fi
  20194. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20195. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20196. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20197. cat >>confdefs.h <<_ACEOF
  20198. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20199. _ACEOF
  20200. else
  20201. # strftime is in -lintl on SCO UNIX.
  20202. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20203. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20204. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20205. echo $ECHO_N "(cached) $ECHO_C" >&6
  20206. else
  20207. ac_check_lib_save_LIBS=$LIBS
  20208. LIBS="-lintl $LIBS"
  20209. cat >conftest.$ac_ext <<_ACEOF
  20210. /* confdefs.h. */
  20211. _ACEOF
  20212. cat confdefs.h >>conftest.$ac_ext
  20213. cat >>conftest.$ac_ext <<_ACEOF
  20214. /* end confdefs.h. */
  20215. /* Override any gcc2 internal prototype to avoid an error. */
  20216. #ifdef __cplusplus
  20217. extern "C"
  20218. #endif
  20219. /* We use char because int might match the return type of a gcc2
  20220. builtin and then its argument prototype would still apply. */
  20221. char strftime ();
  20222. int
  20223. main ()
  20224. {
  20225. strftime ();
  20226. ;
  20227. return 0;
  20228. }
  20229. _ACEOF
  20230. rm -f conftest.$ac_objext conftest$ac_exeext
  20231. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20232. (eval $ac_link) 2>conftest.er1
  20233. ac_status=$?
  20234. grep -v '^ *+' conftest.er1 >conftest.err
  20235. rm -f conftest.er1
  20236. cat conftest.err >&5
  20237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20238. (exit $ac_status); } &&
  20239. { ac_try='test -z "$ac_c_werror_flag"
  20240. || test ! -s conftest.err'
  20241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20242. (eval $ac_try) 2>&5
  20243. ac_status=$?
  20244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20245. (exit $ac_status); }; } &&
  20246. { ac_try='test -s conftest$ac_exeext'
  20247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20248. (eval $ac_try) 2>&5
  20249. ac_status=$?
  20250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20251. (exit $ac_status); }; }; then
  20252. ac_cv_lib_intl_strftime=yes
  20253. else
  20254. echo "$as_me: failed program was:" >&5
  20255. sed 's/^/| /' conftest.$ac_ext >&5
  20256. ac_cv_lib_intl_strftime=no
  20257. fi
  20258. rm -f conftest.err conftest.$ac_objext \
  20259. conftest$ac_exeext conftest.$ac_ext
  20260. LIBS=$ac_check_lib_save_LIBS
  20261. fi
  20262. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20263. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20264. if test $ac_cv_lib_intl_strftime = yes; then
  20265. cat >>confdefs.h <<\_ACEOF
  20266. #define HAVE_STRFTIME 1
  20267. _ACEOF
  20268. LIBS="-lintl $LIBS"
  20269. fi
  20270. fi
  20271. done
  20272. for ac_func in vprintf
  20273. do
  20274. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20275. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20276. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20277. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20278. echo $ECHO_N "(cached) $ECHO_C" >&6
  20279. else
  20280. cat >conftest.$ac_ext <<_ACEOF
  20281. /* confdefs.h. */
  20282. _ACEOF
  20283. cat confdefs.h >>conftest.$ac_ext
  20284. cat >>conftest.$ac_ext <<_ACEOF
  20285. /* end confdefs.h. */
  20286. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20287. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20288. #define $ac_func innocuous_$ac_func
  20289. /* System header to define __stub macros and hopefully few prototypes,
  20290. which can conflict with char $ac_func (); below.
  20291. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20292. <limits.h> exists even on freestanding compilers. */
  20293. #ifdef __STDC__
  20294. # include <limits.h>
  20295. #else
  20296. # include <assert.h>
  20297. #endif
  20298. #undef $ac_func
  20299. /* Override any gcc2 internal prototype to avoid an error. */
  20300. #ifdef __cplusplus
  20301. extern "C"
  20302. {
  20303. #endif
  20304. /* We use char because int might match the return type of a gcc2
  20305. builtin and then its argument prototype would still apply. */
  20306. char $ac_func ();
  20307. /* The GNU C library defines this for functions which it implements
  20308. to always fail with ENOSYS. Some functions are actually named
  20309. something starting with __ and the normal name is an alias. */
  20310. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20311. choke me
  20312. #else
  20313. char (*f) () = $ac_func;
  20314. #endif
  20315. #ifdef __cplusplus
  20316. }
  20317. #endif
  20318. int
  20319. main ()
  20320. {
  20321. return f != $ac_func;
  20322. ;
  20323. return 0;
  20324. }
  20325. _ACEOF
  20326. rm -f conftest.$ac_objext conftest$ac_exeext
  20327. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20328. (eval $ac_link) 2>conftest.er1
  20329. ac_status=$?
  20330. grep -v '^ *+' conftest.er1 >conftest.err
  20331. rm -f conftest.er1
  20332. cat conftest.err >&5
  20333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20334. (exit $ac_status); } &&
  20335. { ac_try='test -z "$ac_c_werror_flag"
  20336. || test ! -s conftest.err'
  20337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20338. (eval $ac_try) 2>&5
  20339. ac_status=$?
  20340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20341. (exit $ac_status); }; } &&
  20342. { ac_try='test -s conftest$ac_exeext'
  20343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20344. (eval $ac_try) 2>&5
  20345. ac_status=$?
  20346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20347. (exit $ac_status); }; }; then
  20348. eval "$as_ac_var=yes"
  20349. else
  20350. echo "$as_me: failed program was:" >&5
  20351. sed 's/^/| /' conftest.$ac_ext >&5
  20352. eval "$as_ac_var=no"
  20353. fi
  20354. rm -f conftest.err conftest.$ac_objext \
  20355. conftest$ac_exeext conftest.$ac_ext
  20356. fi
  20357. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20358. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20359. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20360. cat >>confdefs.h <<_ACEOF
  20361. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20362. _ACEOF
  20363. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20364. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20365. if test "${ac_cv_func__doprnt+set}" = set; then
  20366. echo $ECHO_N "(cached) $ECHO_C" >&6
  20367. else
  20368. cat >conftest.$ac_ext <<_ACEOF
  20369. /* confdefs.h. */
  20370. _ACEOF
  20371. cat confdefs.h >>conftest.$ac_ext
  20372. cat >>conftest.$ac_ext <<_ACEOF
  20373. /* end confdefs.h. */
  20374. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20375. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20376. #define _doprnt innocuous__doprnt
  20377. /* System header to define __stub macros and hopefully few prototypes,
  20378. which can conflict with char _doprnt (); below.
  20379. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20380. <limits.h> exists even on freestanding compilers. */
  20381. #ifdef __STDC__
  20382. # include <limits.h>
  20383. #else
  20384. # include <assert.h>
  20385. #endif
  20386. #undef _doprnt
  20387. /* Override any gcc2 internal prototype to avoid an error. */
  20388. #ifdef __cplusplus
  20389. extern "C"
  20390. {
  20391. #endif
  20392. /* We use char because int might match the return type of a gcc2
  20393. builtin and then its argument prototype would still apply. */
  20394. char _doprnt ();
  20395. /* The GNU C library defines this for functions which it implements
  20396. to always fail with ENOSYS. Some functions are actually named
  20397. something starting with __ and the normal name is an alias. */
  20398. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20399. choke me
  20400. #else
  20401. char (*f) () = _doprnt;
  20402. #endif
  20403. #ifdef __cplusplus
  20404. }
  20405. #endif
  20406. int
  20407. main ()
  20408. {
  20409. return f != _doprnt;
  20410. ;
  20411. return 0;
  20412. }
  20413. _ACEOF
  20414. rm -f conftest.$ac_objext conftest$ac_exeext
  20415. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20416. (eval $ac_link) 2>conftest.er1
  20417. ac_status=$?
  20418. grep -v '^ *+' conftest.er1 >conftest.err
  20419. rm -f conftest.er1
  20420. cat conftest.err >&5
  20421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20422. (exit $ac_status); } &&
  20423. { ac_try='test -z "$ac_c_werror_flag"
  20424. || test ! -s conftest.err'
  20425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20426. (eval $ac_try) 2>&5
  20427. ac_status=$?
  20428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20429. (exit $ac_status); }; } &&
  20430. { ac_try='test -s conftest$ac_exeext'
  20431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20432. (eval $ac_try) 2>&5
  20433. ac_status=$?
  20434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20435. (exit $ac_status); }; }; then
  20436. ac_cv_func__doprnt=yes
  20437. else
  20438. echo "$as_me: failed program was:" >&5
  20439. sed 's/^/| /' conftest.$ac_ext >&5
  20440. ac_cv_func__doprnt=no
  20441. fi
  20442. rm -f conftest.err conftest.$ac_objext \
  20443. conftest$ac_exeext conftest.$ac_ext
  20444. fi
  20445. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20446. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20447. if test $ac_cv_func__doprnt = yes; then
  20448. cat >>confdefs.h <<\_ACEOF
  20449. #define HAVE_DOPRNT 1
  20450. _ACEOF
  20451. fi
  20452. fi
  20453. done
  20454. 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
  20455. do
  20456. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20457. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20458. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20459. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20460. echo $ECHO_N "(cached) $ECHO_C" >&6
  20461. else
  20462. cat >conftest.$ac_ext <<_ACEOF
  20463. /* confdefs.h. */
  20464. _ACEOF
  20465. cat confdefs.h >>conftest.$ac_ext
  20466. cat >>conftest.$ac_ext <<_ACEOF
  20467. /* end confdefs.h. */
  20468. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20469. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20470. #define $ac_func innocuous_$ac_func
  20471. /* System header to define __stub macros and hopefully few prototypes,
  20472. which can conflict with char $ac_func (); below.
  20473. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20474. <limits.h> exists even on freestanding compilers. */
  20475. #ifdef __STDC__
  20476. # include <limits.h>
  20477. #else
  20478. # include <assert.h>
  20479. #endif
  20480. #undef $ac_func
  20481. /* Override any gcc2 internal prototype to avoid an error. */
  20482. #ifdef __cplusplus
  20483. extern "C"
  20484. {
  20485. #endif
  20486. /* We use char because int might match the return type of a gcc2
  20487. builtin and then its argument prototype would still apply. */
  20488. char $ac_func ();
  20489. /* The GNU C library defines this for functions which it implements
  20490. to always fail with ENOSYS. Some functions are actually named
  20491. something starting with __ and the normal name is an alias. */
  20492. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20493. choke me
  20494. #else
  20495. char (*f) () = $ac_func;
  20496. #endif
  20497. #ifdef __cplusplus
  20498. }
  20499. #endif
  20500. int
  20501. main ()
  20502. {
  20503. return f != $ac_func;
  20504. ;
  20505. return 0;
  20506. }
  20507. _ACEOF
  20508. rm -f conftest.$ac_objext conftest$ac_exeext
  20509. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20510. (eval $ac_link) 2>conftest.er1
  20511. ac_status=$?
  20512. grep -v '^ *+' conftest.er1 >conftest.err
  20513. rm -f conftest.er1
  20514. cat conftest.err >&5
  20515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20516. (exit $ac_status); } &&
  20517. { ac_try='test -z "$ac_c_werror_flag"
  20518. || test ! -s conftest.err'
  20519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20520. (eval $ac_try) 2>&5
  20521. ac_status=$?
  20522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20523. (exit $ac_status); }; } &&
  20524. { ac_try='test -s conftest$ac_exeext'
  20525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20526. (eval $ac_try) 2>&5
  20527. ac_status=$?
  20528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20529. (exit $ac_status); }; }; then
  20530. eval "$as_ac_var=yes"
  20531. else
  20532. echo "$as_me: failed program was:" >&5
  20533. sed 's/^/| /' conftest.$ac_ext >&5
  20534. eval "$as_ac_var=no"
  20535. fi
  20536. rm -f conftest.err conftest.$ac_objext \
  20537. conftest$ac_exeext conftest.$ac_ext
  20538. fi
  20539. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20540. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20541. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20542. cat >>confdefs.h <<_ACEOF
  20543. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20544. _ACEOF
  20545. fi
  20546. done
  20547. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20548. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20549. # Check whether --enable-debug or --disable-debug was given.
  20550. if test "${enable_debug+set}" = set; then
  20551. enableval="$enable_debug"
  20552. echo "$as_me:$LINENO: result: yes" >&5
  20553. echo "${ECHO_T}yes" >&6
  20554. debug_defs="-DDEBUG -DMCC_DEBUG"
  20555. else
  20556. echo "$as_me:$LINENO: result: no" >&5
  20557. echo "${ECHO_T}no" >&6
  20558. debug_defs=""
  20559. fi;
  20560. # Used for legacy style packaging where we bundle all of the dependencies.
  20561. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20562. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20563. # Check whether --enable-bundle or --disable-bundle was given.
  20564. if test "${enable_bundle+set}" = set; then
  20565. enableval="$enable_bundle"
  20566. echo "$as_me:$LINENO: result: yes" >&5
  20567. echo "${ECHO_T}yes" >&6
  20568. bundle="1";
  20569. else
  20570. echo "$as_me:$LINENO: result: no" >&5
  20571. echo "${ECHO_T}no" >&6
  20572. bundle="";
  20573. fi;
  20574. if test "$bundle" = "1"; then
  20575. BUNDLE_TRUE=
  20576. BUNDLE_FALSE='#'
  20577. else
  20578. BUNDLE_TRUE='#'
  20579. BUNDLE_FALSE=
  20580. fi
  20581. # these enables are for optional or experimental features
  20582. if test -z "$enable_pam_passthru" ; then
  20583. enable_pam_passthru=yes # if not set on cmdline, set default
  20584. fi
  20585. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20586. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20587. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20588. if test "${enable_pam_passthru+set}" = set; then
  20589. enableval="$enable_pam_passthru"
  20590. fi;
  20591. if test "$enable_pam_passthru" = yes ; then
  20592. echo "$as_me:$LINENO: result: yes" >&5
  20593. echo "${ECHO_T}yes" >&6
  20594. cat >>confdefs.h <<\_ACEOF
  20595. #define ENABLE_PAM_PASSTHRU 1
  20596. _ACEOF
  20597. else
  20598. echo "$as_me:$LINENO: result: no" >&5
  20599. echo "${ECHO_T}no" >&6
  20600. fi
  20601. if test "$enable_pam_passthru" = "yes"; then
  20602. enable_pam_passthru_TRUE=
  20603. enable_pam_passthru_FALSE='#'
  20604. else
  20605. enable_pam_passthru_TRUE='#'
  20606. enable_pam_passthru_FALSE=
  20607. fi
  20608. if test -z "$enable_dna" ; then
  20609. enable_dna=yes # if not set on cmdline, set default
  20610. fi
  20611. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20612. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20613. # Check whether --enable-dna or --disable-dna was given.
  20614. if test "${enable_dna+set}" = set; then
  20615. enableval="$enable_dna"
  20616. fi;
  20617. if test "$enable_dna" = yes ; then
  20618. echo "$as_me:$LINENO: result: yes" >&5
  20619. echo "${ECHO_T}yes" >&6
  20620. cat >>confdefs.h <<\_ACEOF
  20621. #define ENABLE_DNA 1
  20622. _ACEOF
  20623. else
  20624. echo "$as_me:$LINENO: result: no" >&5
  20625. echo "${ECHO_T}no" >&6
  20626. fi
  20627. if test "$enable_dna" = "yes"; then
  20628. enable_dna_TRUE=
  20629. enable_dna_FALSE='#'
  20630. else
  20631. enable_dna_TRUE='#'
  20632. enable_dna_FALSE=
  20633. fi
  20634. if test -z "$enable_ldapi" ; then
  20635. enable_ldapi=yes # if not set on cmdline, set default
  20636. fi
  20637. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20638. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20639. # Check whether --enable-ldapi or --disable-ldapi was given.
  20640. if test "${enable_ldapi+set}" = set; then
  20641. enableval="$enable_ldapi"
  20642. fi;
  20643. if test "$enable_ldapi" = yes ; then
  20644. echo "$as_me:$LINENO: result: yes" >&5
  20645. echo "${ECHO_T}yes" >&6
  20646. cat >>confdefs.h <<\_ACEOF
  20647. #define ENABLE_LDAPI 1
  20648. _ACEOF
  20649. else
  20650. echo "$as_me:$LINENO: result: no" >&5
  20651. echo "${ECHO_T}no" >&6
  20652. fi
  20653. if test "$enable_ldapi" = "yes"; then
  20654. enable_ldapi_TRUE=
  20655. enable_ldapi_FALSE='#'
  20656. else
  20657. enable_ldapi_TRUE='#'
  20658. enable_ldapi_FALSE=
  20659. fi
  20660. if test -z "$enable_autobind" ; then
  20661. enable_autobind=no # if not set on cmdline, set default
  20662. fi
  20663. echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  20664. echo $ECHO_N "checking for --enable-autobind... $ECHO_C" >&6
  20665. # Check whether --enable-autobind or --disable-autobind was given.
  20666. if test "${enable_autobind+set}" = set; then
  20667. enableval="$enable_autobind"
  20668. fi;
  20669. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  20670. echo "$as_me:$LINENO: result: yes" >&5
  20671. echo "${ECHO_T}yes" >&6
  20672. cat >>confdefs.h <<\_ACEOF
  20673. #define ENABLE_AUTOBIND 1
  20674. _ACEOF
  20675. else
  20676. echo "$as_me:$LINENO: result: no" >&5
  20677. echo "${ECHO_T}no" >&6
  20678. fi
  20679. if test "$enable_autobind" = "yes"; then
  20680. enable_autobind_TRUE=
  20681. enable_autobind_FALSE='#'
  20682. else
  20683. enable_autobind_TRUE='#'
  20684. enable_autobind_FALSE=
  20685. fi
  20686. if test -z "$enable_auto_dn_suffix" ; then
  20687. enable_auto_dn_suffix=no # if not set on cmdline, set default
  20688. fi
  20689. echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  20690. echo $ECHO_N "checking for --enable-auto-dn-suffix... $ECHO_C" >&6
  20691. # Check whether --enable-autobind or --disable-autobind was given.
  20692. if test "${enable_autobind+set}" = set; then
  20693. enableval="$enable_autobind"
  20694. fi;
  20695. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  20696. echo "$as_me:$LINENO: result: yes" >&5
  20697. echo "${ECHO_T}yes" >&6
  20698. cat >>confdefs.h <<\_ACEOF
  20699. #define ENABLE_AUTO_DN_SUFFIX 1
  20700. _ACEOF
  20701. else
  20702. echo "$as_me:$LINENO: result: no" >&5
  20703. echo "${ECHO_T}no" >&6
  20704. fi
  20705. if test "$enable_auto_dn_suffix" = "yes"; then
  20706. enable_auto_dn_suffix_TRUE=
  20707. enable_auto_dn_suffix_FALSE='#'
  20708. else
  20709. enable_auto_dn_suffix_TRUE='#'
  20710. enable_auto_dn_suffix_FALSE=
  20711. fi
  20712. if test -z "$enable_bitwise" ; then
  20713. enable_bitwise=yes # if not set on cmdline, set default
  20714. fi
  20715. echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  20716. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6
  20717. # Check whether --enable-bitwise or --disable-bitwise was given.
  20718. if test "${enable_bitwise+set}" = set; then
  20719. enableval="$enable_bitwise"
  20720. fi;
  20721. if test "$enable_bitwise" = yes ; then
  20722. echo "$as_me:$LINENO: result: yes" >&5
  20723. echo "${ECHO_T}yes" >&6
  20724. cat >>confdefs.h <<\_ACEOF
  20725. #define ENABLE_BITWISE 1
  20726. _ACEOF
  20727. else
  20728. echo "$as_me:$LINENO: result: no" >&5
  20729. echo "${ECHO_T}no" >&6
  20730. fi
  20731. if test "$enable_bitwise" = "yes"; then
  20732. enable_bitwise_TRUE=
  20733. enable_bitwise_FALSE='#'
  20734. else
  20735. enable_bitwise_TRUE='#'
  20736. enable_bitwise_FALSE=
  20737. fi
  20738. if test -z "$enable_presence" ; then
  20739. enable_presence=no # if not set on cmdline, set default
  20740. fi
  20741. echo "$as_me:$LINENO: checking for --enable-presence" >&5
  20742. echo $ECHO_N "checking for --enable-presence... $ECHO_C" >&6
  20743. # Check whether --enable-presence or --disable-presence was given.
  20744. if test "${enable_presence+set}" = set; then
  20745. enableval="$enable_presence"
  20746. fi;
  20747. if test "$enable_presence" = yes ; then
  20748. echo "$as_me:$LINENO: result: yes" >&5
  20749. echo "${ECHO_T}yes" >&6
  20750. cat >>confdefs.h <<\_ACEOF
  20751. #define ENABLE_PRESENCE 1
  20752. _ACEOF
  20753. else
  20754. echo "$as_me:$LINENO: result: no" >&5
  20755. echo "${ECHO_T}no" >&6
  20756. fi
  20757. if test "$enable_presence" = "yes"; then
  20758. enable_presence_TRUE=
  20759. enable_presence_FALSE='#'
  20760. else
  20761. enable_presence_TRUE='#'
  20762. enable_presence_FALSE=
  20763. fi
  20764. # the default prefix - override with --prefix or --with-fhs
  20765. # BEGIN COPYRIGHT BLOCK
  20766. # Copyright (C) 2006 Red Hat, Inc.
  20767. # All rights reserved.
  20768. #
  20769. # This program is free software; you can redistribute it and/or
  20770. # modify it under the terms of the GNU General Public License
  20771. # as published by the Free Software Foundation; either version 2
  20772. # of the License, or (at your option) any later version.
  20773. #
  20774. # This program is distributed in the hope that it will be useful,
  20775. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20776. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20777. # GNU General Public License for more details.
  20778. #
  20779. # You should have received a copy of the GNU General Public License
  20780. # along with this program; if not, write to the Free Software
  20781. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20782. #
  20783. # END COPYRIGHT BLOCK
  20784. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20785. echo "$as_me: checking for FHS..." >&6;}
  20786. # check for --with-fhs
  20787. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20788. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20789. # Check whether --with-fhs or --without-fhs was given.
  20790. if test "${with_fhs+set}" = set; then
  20791. withval="$with_fhs"
  20792. with_fhs=yes
  20793. echo "$as_me:$LINENO: result: yes" >&5
  20794. echo "${ECHO_T}yes" >&6
  20795. else
  20796. echo "$as_me:$LINENO: result: no" >&5
  20797. echo "${ECHO_T}no" >&6
  20798. fi;
  20799. if test "$with_fhs" = "yes"; then
  20800. cat >>confdefs.h <<\_ACEOF
  20801. #define IS_FHS 1
  20802. _ACEOF
  20803. fi
  20804. # check for --with-fhs-opt
  20805. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20806. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20807. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20808. if test "${with_fhs_opt+set}" = set; then
  20809. withval="$with_fhs_opt"
  20810. with_fhs_opt=yes
  20811. echo "$as_me:$LINENO: result: yes" >&5
  20812. echo "${ECHO_T}yes" >&6
  20813. else
  20814. echo "$as_me:$LINENO: result: no" >&5
  20815. echo "${ECHO_T}no" >&6
  20816. fi;
  20817. if test "$with_fhs_opt" = "yes"; then
  20818. cat >>confdefs.h <<\_ACEOF
  20819. #define IS_FHS_OPT 1
  20820. _ACEOF
  20821. fi
  20822. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20823. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20824. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20825. { (exit 1); exit 1; }; }
  20826. fi
  20827. # installation paths - by default, we store everything
  20828. # under the prefix. The with-fhs option will use /usr,
  20829. # /etc, and /var. The with-fhs-opt option will use the
  20830. # prefix, but it's sysconfdir and localstatedir will be
  20831. # /etc/opt, and /var/opt.
  20832. if test "$with_fhs_opt" = "yes"; then
  20833. # Override sysconfdir and localstatedir if FHS optional
  20834. # package was requested.
  20835. sysconfdir='/etc/opt'
  20836. localstatedir='/var/opt'
  20837. # relative to datadir
  20838. sampledatadir=/data
  20839. # relative to datadir
  20840. scripttemplatedir=/script-templates
  20841. # relative to datadir
  20842. updatedir=/updates
  20843. # relative to libdir
  20844. serverdir=
  20845. # relative to libdir
  20846. serverplugindir=/plugins
  20847. # relative to datadir
  20848. infdir=/inf
  20849. # relative to datadir
  20850. mibdir=/mibs
  20851. # location of property/resource files, relative to datadir
  20852. propertydir=/properties
  20853. # relative to libdir
  20854. perldir=/perl
  20855. else
  20856. if test "$with_fhs" = "yes"; then
  20857. ac_default_prefix=/usr
  20858. prefix=$ac_default_prefix
  20859. exec_prefix=$prefix
  20860. sysconfdir='/etc'
  20861. localstatedir='/var'
  20862. fi
  20863. # relative to datadir
  20864. sampledatadir=/$PACKAGE_NAME/data
  20865. # relative to datadir
  20866. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20867. # relative to datadir
  20868. updatedir=/$PACKAGE_NAME/updates
  20869. # relative to libdir
  20870. serverdir=/$PACKAGE_NAME
  20871. # relative to libdir
  20872. serverplugindir=/$PACKAGE_NAME/plugins
  20873. # relative to datadir
  20874. infdir=/$PACKAGE_NAME/inf
  20875. # relative to datadir
  20876. mibdir=/$PACKAGE_NAME/mibs
  20877. # location of property/resource files, relative to datadir
  20878. propertydir=/$PACKAGE_NAME/properties
  20879. # relative to libdir
  20880. perldir=/$PACKAGE_NAME/perl
  20881. fi
  20882. # if mandir is the default value, override it
  20883. # otherwise, the user must have set it - just use it
  20884. if test X"$mandir" = X'${prefix}/man' ; then
  20885. mandir='$(datadir)/man'
  20886. fi
  20887. # Shared paths for all layouts
  20888. # relative to sysconfdir
  20889. configdir=/$PACKAGE_NAME/config
  20890. # relative to sysconfdir
  20891. schemadir=/$PACKAGE_NAME/schema
  20892. # default user, group
  20893. defaultuser=nobody
  20894. defaultgroup=nobody
  20895. # check for --with-instconfigdir
  20896. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20897. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20898. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20899. if test "${with_instconfigdir+set}" = set; then
  20900. withval="$with_instconfigdir"
  20901. if test $withval = yes ; then
  20902. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20903. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20904. { (exit 1); exit 1; }; }
  20905. fi
  20906. instconfigdir="$withval"
  20907. echo "$as_me:$LINENO: result: $withval" >&5
  20908. echo "${ECHO_T}$withval" >&6
  20909. else
  20910. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20911. echo "$as_me:$LINENO: result: no" >&5
  20912. echo "${ECHO_T}no" >&6
  20913. fi;
  20914. # WINNT should be true if building on Windows system not using
  20915. # cygnus, mingw, or the like and using cmd.exe as the shell
  20916. if false; then
  20917. WINNT_TRUE=
  20918. WINNT_FALSE='#'
  20919. else
  20920. WINNT_TRUE='#'
  20921. WINNT_FALSE=
  20922. fi
  20923. # Deal with platform dependent defines
  20924. # initdir is the location for the SysV init scripts - very heavily platform
  20925. # dependent and not specified in fhs or lsb
  20926. initdir='$(sysconfdir)/rc.d'
  20927. echo "$as_me:$LINENO: checking for --with-initddir" >&5
  20928. echo $ECHO_N "checking for --with-initddir... $ECHO_C" >&6
  20929. # Check whether --with-initddir or --without-initddir was given.
  20930. if test "${with_initddir+set}" = set; then
  20931. withval="$with_initddir"
  20932. if test "$withval" = yes -o "$withval" = no ; then
  20933. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-initddir" >&5
  20934. echo "$as_me: error: Please specify a full path with --with-initddir" >&2;}
  20935. { (exit 1); exit 1; }; }
  20936. fi
  20937. echo "$as_me:$LINENO: result: $withval" >&5
  20938. echo "${ECHO_T}$withval" >&6
  20939. else
  20940. echo "$as_me:$LINENO: result: no" >&5
  20941. echo "${ECHO_T}no" >&6
  20942. fi;
  20943. # on most platforms, we will just use perl from PATH
  20944. # On some platforms, we cannot. Why not just use any old
  20945. # perl? Because of perldap. We use a perldap that is
  20946. # compiled to either 32bit or 64bit, so we must use a native
  20947. # perl binary compiled with the same bitsize. On Solaris
  20948. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  20949. # those with our 64 bit compiled product.
  20950. perlexec='/usr/bin/env perl'
  20951. case $host in
  20952. *-*-linux*)
  20953. cat >>confdefs.h <<\_ACEOF
  20954. #define XP_UNIX 1
  20955. _ACEOF
  20956. cat >>confdefs.h <<\_ACEOF
  20957. #define Linux 1
  20958. _ACEOF
  20959. cat >>confdefs.h <<\_ACEOF
  20960. #define LINUX 1
  20961. _ACEOF
  20962. cat >>confdefs.h <<\_ACEOF
  20963. #define LINUX2_0 1
  20964. _ACEOF
  20965. cat >>confdefs.h <<\_ACEOF
  20966. #define LINUX2_2 1
  20967. _ACEOF
  20968. cat >>confdefs.h <<\_ACEOF
  20969. #define LINUX2_4 1
  20970. _ACEOF
  20971. cat >>confdefs.h <<\_ACEOF
  20972. #define _GNU_SOURCE 1
  20973. _ACEOF
  20974. platform="linux"
  20975. initdir='$(sysconfdir)/rc.d/init.d'
  20976. # do arch specific linux stuff here
  20977. case $host in
  20978. i*86-*-linux*)
  20979. cat >>confdefs.h <<\_ACEOF
  20980. #define CPU_x86
  20981. _ACEOF
  20982. cat >>confdefs.h <<\_ACEOF
  20983. #define ATOMIC_64BIT_OPERATIONS 1
  20984. _ACEOF
  20985. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  20986. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  20987. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  20988. echo $ECHO_N "(cached) $ECHO_C" >&6
  20989. else
  20990. cat >conftest.$ac_ext <<_ACEOF
  20991. /* confdefs.h. */
  20992. _ACEOF
  20993. cat confdefs.h >>conftest.$ac_ext
  20994. cat >>conftest.$ac_ext <<_ACEOF
  20995. /* end confdefs.h. */
  20996. $ac_includes_default
  20997. int
  20998. main ()
  20999. {
  21000. #ifndef __sync_add_and_fetch
  21001. char *p = (char *) __sync_add_and_fetch;
  21002. #endif
  21003. ;
  21004. return 0;
  21005. }
  21006. _ACEOF
  21007. rm -f conftest.$ac_objext
  21008. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21009. (eval $ac_compile) 2>conftest.er1
  21010. ac_status=$?
  21011. grep -v '^ *+' conftest.er1 >conftest.err
  21012. rm -f conftest.er1
  21013. cat conftest.err >&5
  21014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21015. (exit $ac_status); } &&
  21016. { ac_try='test -z "$ac_c_werror_flag"
  21017. || test ! -s conftest.err'
  21018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21019. (eval $ac_try) 2>&5
  21020. ac_status=$?
  21021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21022. (exit $ac_status); }; } &&
  21023. { ac_try='test -s conftest.$ac_objext'
  21024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21025. (eval $ac_try) 2>&5
  21026. ac_status=$?
  21027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21028. (exit $ac_status); }; }; then
  21029. ac_cv_have_decl___sync_add_and_fetch=yes
  21030. else
  21031. echo "$as_me: failed program was:" >&5
  21032. sed 's/^/| /' conftest.$ac_ext >&5
  21033. ac_cv_have_decl___sync_add_and_fetch=no
  21034. fi
  21035. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21036. fi
  21037. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21038. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  21039. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21040. cat >>confdefs.h <<_ACEOF
  21041. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21042. _ACEOF
  21043. else
  21044. cat >>confdefs.h <<_ACEOF
  21045. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21046. _ACEOF
  21047. fi
  21048. ;;
  21049. x86_64-*-linux*)
  21050. cat >>confdefs.h <<\_ACEOF
  21051. #define CPU_x86_64
  21052. _ACEOF
  21053. cat >>confdefs.h <<\_ACEOF
  21054. #define ATOMIC_64BIT_OPERATIONS 1
  21055. _ACEOF
  21056. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  21057. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  21058. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  21059. echo $ECHO_N "(cached) $ECHO_C" >&6
  21060. else
  21061. cat >conftest.$ac_ext <<_ACEOF
  21062. /* confdefs.h. */
  21063. _ACEOF
  21064. cat confdefs.h >>conftest.$ac_ext
  21065. cat >>conftest.$ac_ext <<_ACEOF
  21066. /* end confdefs.h. */
  21067. $ac_includes_default
  21068. int
  21069. main ()
  21070. {
  21071. #ifndef __sync_add_and_fetch
  21072. char *p = (char *) __sync_add_and_fetch;
  21073. #endif
  21074. ;
  21075. return 0;
  21076. }
  21077. _ACEOF
  21078. rm -f conftest.$ac_objext
  21079. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21080. (eval $ac_compile) 2>conftest.er1
  21081. ac_status=$?
  21082. grep -v '^ *+' conftest.er1 >conftest.err
  21083. rm -f conftest.er1
  21084. cat conftest.err >&5
  21085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21086. (exit $ac_status); } &&
  21087. { ac_try='test -z "$ac_c_werror_flag"
  21088. || test ! -s conftest.err'
  21089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21090. (eval $ac_try) 2>&5
  21091. ac_status=$?
  21092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21093. (exit $ac_status); }; } &&
  21094. { ac_try='test -s conftest.$ac_objext'
  21095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21096. (eval $ac_try) 2>&5
  21097. ac_status=$?
  21098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21099. (exit $ac_status); }; }; then
  21100. ac_cv_have_decl___sync_add_and_fetch=yes
  21101. else
  21102. echo "$as_me: failed program was:" >&5
  21103. sed 's/^/| /' conftest.$ac_ext >&5
  21104. ac_cv_have_decl___sync_add_and_fetch=no
  21105. fi
  21106. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21107. fi
  21108. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21109. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  21110. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21111. cat >>confdefs.h <<_ACEOF
  21112. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21113. _ACEOF
  21114. else
  21115. cat >>confdefs.h <<_ACEOF
  21116. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21117. _ACEOF
  21118. fi
  21119. ;;
  21120. esac
  21121. # some programs use the native thread library directly
  21122. THREADLIB=-lpthread
  21123. THREADLIB=$THREADLIB
  21124. LIBCRYPT=-lcrypt
  21125. LIBCRYPT=$LIBCRYPT
  21126. ;;
  21127. ia64-hp-hpux*)
  21128. cat >>confdefs.h <<\_ACEOF
  21129. #define XP_UNIX 1
  21130. _ACEOF
  21131. cat >>confdefs.h <<\_ACEOF
  21132. #define hpux 1
  21133. _ACEOF
  21134. cat >>confdefs.h <<\_ACEOF
  21135. #define HPUX 1
  21136. _ACEOF
  21137. cat >>confdefs.h <<\_ACEOF
  21138. #define HPUX11 1
  21139. _ACEOF
  21140. cat >>confdefs.h <<\_ACEOF
  21141. #define HPUX11_23 1
  21142. _ACEOF
  21143. cat >>confdefs.h <<\_ACEOF
  21144. #define CPU_ia64
  21145. _ACEOF
  21146. cat >>confdefs.h <<\_ACEOF
  21147. #define OS_hpux 1
  21148. _ACEOF
  21149. cat >>confdefs.h <<\_ACEOF
  21150. #define _POSIX_C_SOURCE 199506L
  21151. _ACEOF
  21152. cat >>confdefs.h <<\_ACEOF
  21153. #define _HPUX_SOURCE 1
  21154. _ACEOF
  21155. cat >>confdefs.h <<\_ACEOF
  21156. #define _INCLUDE_STDC__SOURCE_199901 1
  21157. _ACEOF
  21158. cat >>confdefs.h <<\_ACEOF
  21159. #define ATOMIC_64BIT_OPERATIONS 1
  21160. _ACEOF
  21161. # assume 64 bit
  21162. perlexec='/opt/perl_64/bin/perl'
  21163. platform="hpux"
  21164. initconfigdir="/$PACKAGE_NAME/config"
  21165. # HPUX doesn't use /etc for this
  21166. initdir=/init.d
  21167. ;;
  21168. hppa*-hp-hpux*)
  21169. cat >>confdefs.h <<\_ACEOF
  21170. #define XP_UNIX 1
  21171. _ACEOF
  21172. cat >>confdefs.h <<\_ACEOF
  21173. #define hpux 1
  21174. _ACEOF
  21175. cat >>confdefs.h <<\_ACEOF
  21176. #define HPUX 1
  21177. _ACEOF
  21178. cat >>confdefs.h <<\_ACEOF
  21179. #define HPUX11 1
  21180. _ACEOF
  21181. cat >>confdefs.h <<\_ACEOF
  21182. #define HPUX11_11 1
  21183. _ACEOF
  21184. cat >>confdefs.h <<\_ACEOF
  21185. #define CPU_hppa
  21186. _ACEOF
  21187. cat >>confdefs.h <<\_ACEOF
  21188. #define OS_hpux 1
  21189. _ACEOF
  21190. cat >>confdefs.h <<\_ACEOF
  21191. #define _POSIX_C_SOURCE 199506L
  21192. _ACEOF
  21193. cat >>confdefs.h <<\_ACEOF
  21194. #define _HPUX_SOURCE 1
  21195. _ACEOF
  21196. cat >>confdefs.h <<\_ACEOF
  21197. #define _INCLUDE_STDC__SOURCE_199901 1
  21198. _ACEOF
  21199. cat >>confdefs.h <<\_ACEOF
  21200. #define ATOMIC_64BIT_OPERATIONS 1
  21201. _ACEOF
  21202. # assume 64 bit
  21203. initconfigdir="/$PACKAGE_NAME/config"
  21204. perlexec='/opt/perl_64/bin/perl'
  21205. platform="hpux"
  21206. # HPUX doesn't use /etc for this
  21207. initdir=/init.d
  21208. ;;
  21209. sparc-sun-solaris*)
  21210. cat >>confdefs.h <<\_ACEOF
  21211. #define XP_UNIX 1
  21212. _ACEOF
  21213. cat >>confdefs.h <<\_ACEOF
  21214. #define SVR4 1
  21215. _ACEOF
  21216. cat >>confdefs.h <<\_ACEOF
  21217. #define __svr4 1
  21218. _ACEOF
  21219. cat >>confdefs.h <<\_ACEOF
  21220. #define __svr4__ 1
  21221. _ACEOF
  21222. cat >>confdefs.h <<\_ACEOF
  21223. #define _SVID_GETTOD 1
  21224. _ACEOF
  21225. cat >>confdefs.h <<\_ACEOF
  21226. #define SOLARIS 1
  21227. _ACEOF
  21228. cat >>confdefs.h <<\_ACEOF
  21229. #define CPU_sparc
  21230. _ACEOF
  21231. cat >>confdefs.h <<\_ACEOF
  21232. #define OS_solaris 1
  21233. _ACEOF
  21234. cat >>confdefs.h <<\_ACEOF
  21235. #define sunos5 1
  21236. _ACEOF
  21237. cat >>confdefs.h <<\_ACEOF
  21238. #define OSVERSION 509
  21239. _ACEOF
  21240. cat >>confdefs.h <<\_ACEOF
  21241. #define _REENTRANT 1
  21242. _ACEOF
  21243. cat >>confdefs.h <<\_ACEOF
  21244. #define NO_DOMAINNAME 1
  21245. _ACEOF
  21246. cat >>confdefs.h <<\_ACEOF
  21247. #define ATOMIC_64BIT_OPERATIONS 1
  21248. _ACEOF
  21249. LIBSOCKET=-lsocket
  21250. LIBSOCKET=$LIBSOCKET
  21251. LIBNSL=-lnsl
  21252. LIBNSL=$LIBNSL
  21253. LIBDL=-ldl
  21254. LIBDL=$LIBDL
  21255. LIBCSTD=-lCstd
  21256. LIBCSTD=$LIBCSTD
  21257. LIBCRUN=-lCrun
  21258. LIBCRUN=$LIBCRUN
  21259. platform="solaris"
  21260. # assume 64 bit
  21261. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  21262. initdir='$(sysconfdir)/init.d'
  21263. ;;
  21264. *)
  21265. platform=""
  21266. ;;
  21267. esac
  21268. # cmd line overrides default setting above
  21269. if test -n "$with_initddir" ; then
  21270. initdir="$with_initddir"
  21271. fi
  21272. # set default initconfigdir if not already set
  21273. # value will be set so as to be relative to $(sysconfdir)
  21274. if test -z "$initconfigdir" ; then
  21275. if test -d /etc/sysconfig ; then
  21276. initconfigdir=/sysconfig
  21277. elif test -d /etc/default ; then
  21278. initconfigdir=/default
  21279. else
  21280. initconfigdir="/$PACKAGE_NAME/config"
  21281. fi
  21282. fi
  21283. if test "$platform" = "hpux"; then
  21284. HPUX_TRUE=
  21285. HPUX_FALSE='#'
  21286. else
  21287. HPUX_TRUE='#'
  21288. HPUX_FALSE=
  21289. fi
  21290. if test "$platform" = "solaris"; then
  21291. SOLARIS_TRUE=
  21292. SOLARIS_FALSE='#'
  21293. else
  21294. SOLARIS_TRUE='#'
  21295. SOLARIS_FALSE=
  21296. fi
  21297. # Check for library dependencies
  21298. # BEGIN COPYRIGHT BLOCK
  21299. # Copyright (C) 2007 Red Hat, Inc.
  21300. # All rights reserved.
  21301. #
  21302. # This program is free software; you can redistribute it and/or
  21303. # modify it under the terms of the GNU General Public License
  21304. # as published by the Free Software Foundation; either version 2
  21305. # of the License, or (at your option) any later version.
  21306. #
  21307. # This program is distributed in the hope that it will be useful,
  21308. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21309. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21310. # GNU General Public License for more details.
  21311. #
  21312. # You should have received a copy of the GNU General Public License
  21313. # along with this program; if not, write to the Free Software
  21314. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21315. #
  21316. # END COPYRIGHT BLOCK
  21317. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  21318. echo "$as_me: checking for NSPR..." >&6;}
  21319. # check for --with-nspr
  21320. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  21321. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  21322. # Check whether --with-nspr or --without-nspr was given.
  21323. if test "${with_nspr+set}" = set; then
  21324. withval="$with_nspr"
  21325. if test "$withval" = "yes"
  21326. then
  21327. echo "$as_me:$LINENO: result: yes" >&5
  21328. echo "${ECHO_T}yes" >&6
  21329. elif test "$withval" = "no"
  21330. then
  21331. echo "$as_me:$LINENO: result: no" >&5
  21332. echo "${ECHO_T}no" >&6
  21333. { { echo "$as_me:$LINENO: error: NSPR is required." >&5
  21334. echo "$as_me: error: NSPR is required." >&2;}
  21335. { (exit 1); exit 1; }; }
  21336. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  21337. then
  21338. echo "$as_me:$LINENO: result: using $withval" >&5
  21339. echo "${ECHO_T}using $withval" >&6
  21340. NSPRDIR=$withval
  21341. nspr_inc="-I$NSPRDIR/include"
  21342. nspr_lib="-L$NSPRDIR/lib"
  21343. nspr_libdir="$NSPRDIR/lib"
  21344. else
  21345. echo
  21346. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21347. echo "$as_me: error: $withval not found" >&2;}
  21348. { (exit 1); exit 1; }; }
  21349. fi
  21350. else
  21351. echo "$as_me:$LINENO: result: yes" >&5
  21352. echo "${ECHO_T}yes" >&6
  21353. fi;
  21354. # check for --with-nspr-inc
  21355. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  21356. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  21357. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  21358. if test "${with_nspr_inc+set}" = set; then
  21359. withval="$with_nspr_inc"
  21360. if test -e "$withval"/nspr.h
  21361. then
  21362. echo "$as_me:$LINENO: result: using $withval" >&5
  21363. echo "${ECHO_T}using $withval" >&6
  21364. nspr_inc="-I$withval"
  21365. else
  21366. echo
  21367. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21368. echo "$as_me: error: $withval not found" >&2;}
  21369. { (exit 1); exit 1; }; }
  21370. fi
  21371. else
  21372. echo "$as_me:$LINENO: result: no" >&5
  21373. echo "${ECHO_T}no" >&6
  21374. fi;
  21375. # check for --with-nspr-lib
  21376. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  21377. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  21378. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  21379. if test "${with_nspr_lib+set}" = set; then
  21380. withval="$with_nspr_lib"
  21381. if test -d "$withval"
  21382. then
  21383. echo "$as_me:$LINENO: result: using $withval" >&5
  21384. echo "${ECHO_T}using $withval" >&6
  21385. nspr_lib="-L$withval"
  21386. nspr_libdir="$withval"
  21387. else
  21388. echo
  21389. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21390. echo "$as_me: error: $withval not found" >&2;}
  21391. { (exit 1); exit 1; }; }
  21392. fi
  21393. else
  21394. echo "$as_me:$LINENO: result: no" >&5
  21395. echo "${ECHO_T}no" >&6
  21396. fi;
  21397. # if NSPR is not found yet, try pkg-config
  21398. # last resort
  21399. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21400. # Extract the first word of "pkg-config", so it can be a program name with args.
  21401. set dummy pkg-config; ac_word=$2
  21402. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21403. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21404. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21405. echo $ECHO_N "(cached) $ECHO_C" >&6
  21406. else
  21407. case $PKG_CONFIG in
  21408. [\\/]* | ?:[\\/]*)
  21409. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21410. ;;
  21411. *)
  21412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21413. for as_dir in $PATH
  21414. do
  21415. IFS=$as_save_IFS
  21416. test -z "$as_dir" && as_dir=.
  21417. for ac_exec_ext in '' $ac_executable_extensions; do
  21418. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21419. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21420. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21421. break 2
  21422. fi
  21423. done
  21424. done
  21425. ;;
  21426. esac
  21427. fi
  21428. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21429. if test -n "$PKG_CONFIG"; then
  21430. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21431. echo "${ECHO_T}$PKG_CONFIG" >&6
  21432. else
  21433. echo "$as_me:$LINENO: result: no" >&5
  21434. echo "${ECHO_T}no" >&6
  21435. fi
  21436. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  21437. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  21438. if test -n "$PKG_CONFIG"; then
  21439. if $PKG_CONFIG --exists nspr; then
  21440. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  21441. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  21442. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21443. echo "$as_me:$LINENO: result: using system NSPR" >&5
  21444. echo "${ECHO_T}using system NSPR" >&6
  21445. elif $PKG_CONFIG --exists dirsec-nspr; then
  21446. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  21447. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  21448. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21449. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  21450. echo "${ECHO_T}using system dirsec NSPR" >&6
  21451. else
  21452. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  21453. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  21454. { (exit 1); exit 1; }; }
  21455. fi
  21456. fi
  21457. fi
  21458. # BEGIN COPYRIGHT BLOCK
  21459. # Copyright (C) 2007 Red Hat, Inc.
  21460. # All rights reserved.
  21461. #
  21462. # This program is free software; you can redistribute it and/or
  21463. # modify it under the terms of the GNU General Public License
  21464. # as published by the Free Software Foundation; either version 2
  21465. # of the License, or (at your option) any later version.
  21466. #
  21467. # This program is distributed in the hope that it will be useful,
  21468. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21469. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21470. # GNU General Public License for more details.
  21471. #
  21472. # You should have received a copy of the GNU General Public License
  21473. # along with this program; if not, write to the Free Software
  21474. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21475. #
  21476. # END COPYRIGHT BLOCK
  21477. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21478. echo "$as_me: checking for NSS..." >&6;}
  21479. # check for --with-nss
  21480. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21481. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21482. # Check whether --with-nss or --without-nss was given.
  21483. if test "${with_nss+set}" = set; then
  21484. withval="$with_nss"
  21485. if test "$withval" = "yes"
  21486. then
  21487. echo "$as_me:$LINENO: result: yes" >&5
  21488. echo "${ECHO_T}yes" >&6
  21489. elif test "$withval" = "no"
  21490. then
  21491. echo "$as_me:$LINENO: result: no" >&5
  21492. echo "${ECHO_T}no" >&6
  21493. { { echo "$as_me:$LINENO: error: NSS is required." >&5
  21494. echo "$as_me: error: NSS is required." >&2;}
  21495. { (exit 1); exit 1; }; }
  21496. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21497. then
  21498. echo "$as_me:$LINENO: result: using $withval" >&5
  21499. echo "${ECHO_T}using $withval" >&6
  21500. NSSDIR=$withval
  21501. nss_inc="-I$NSSDIR/include"
  21502. nss_lib="-L$NSSDIR/lib"
  21503. nss_libdir="$NSSDIR/lib"
  21504. else
  21505. echo
  21506. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21507. echo "$as_me: error: $withval not found" >&2;}
  21508. { (exit 1); exit 1; }; }
  21509. fi
  21510. else
  21511. echo "$as_me:$LINENO: result: yes" >&5
  21512. echo "${ECHO_T}yes" >&6
  21513. fi;
  21514. # check for --with-nss-inc
  21515. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21516. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21517. # Check whether --with-nss-inc or --without-nss-inc was given.
  21518. if test "${with_nss_inc+set}" = set; then
  21519. withval="$with_nss_inc"
  21520. if test -e "$withval"/nss.h
  21521. then
  21522. echo "$as_me:$LINENO: result: using $withval" >&5
  21523. echo "${ECHO_T}using $withval" >&6
  21524. nss_inc="-I$withval"
  21525. else
  21526. echo
  21527. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21528. echo "$as_me: error: $withval not found" >&2;}
  21529. { (exit 1); exit 1; }; }
  21530. fi
  21531. else
  21532. echo "$as_me:$LINENO: result: no" >&5
  21533. echo "${ECHO_T}no" >&6
  21534. fi;
  21535. # check for --with-nss-lib
  21536. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21537. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21538. # Check whether --with-nss-lib or --without-nss-lib was given.
  21539. if test "${with_nss_lib+set}" = set; then
  21540. withval="$with_nss_lib"
  21541. if test -d "$withval"
  21542. then
  21543. echo "$as_me:$LINENO: result: using $withval" >&5
  21544. echo "${ECHO_T}using $withval" >&6
  21545. nss_lib="-L$withval"
  21546. nss_libdir="$withval"
  21547. else
  21548. echo
  21549. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21550. echo "$as_me: error: $withval not found" >&2;}
  21551. { (exit 1); exit 1; }; }
  21552. fi
  21553. else
  21554. echo "$as_me:$LINENO: result: no" >&5
  21555. echo "${ECHO_T}no" >&6
  21556. fi;
  21557. # if NSS is not found yet, try pkg-config
  21558. # last resort
  21559. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21560. # Extract the first word of "pkg-config", so it can be a program name with args.
  21561. set dummy pkg-config; ac_word=$2
  21562. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21563. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21564. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21565. echo $ECHO_N "(cached) $ECHO_C" >&6
  21566. else
  21567. case $PKG_CONFIG in
  21568. [\\/]* | ?:[\\/]*)
  21569. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21570. ;;
  21571. *)
  21572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21573. for as_dir in $PATH
  21574. do
  21575. IFS=$as_save_IFS
  21576. test -z "$as_dir" && as_dir=.
  21577. for ac_exec_ext in '' $ac_executable_extensions; do
  21578. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21579. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21580. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21581. break 2
  21582. fi
  21583. done
  21584. done
  21585. ;;
  21586. esac
  21587. fi
  21588. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21589. if test -n "$PKG_CONFIG"; then
  21590. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21591. echo "${ECHO_T}$PKG_CONFIG" >&6
  21592. else
  21593. echo "$as_me:$LINENO: result: no" >&5
  21594. echo "${ECHO_T}no" >&6
  21595. fi
  21596. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21597. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21598. if test -n "$PKG_CONFIG"; then
  21599. if $PKG_CONFIG --exists nss; then
  21600. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21601. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21602. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21603. echo "$as_me:$LINENO: result: using system NSS" >&5
  21604. echo "${ECHO_T}using system NSS" >&6
  21605. elif $PKG_CONFIG --exists dirsec-nss; then
  21606. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21607. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21608. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21609. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21610. echo "${ECHO_T}using system dirsec NSS" >&6
  21611. else
  21612. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21613. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21614. { (exit 1); exit 1; }; }
  21615. fi
  21616. fi
  21617. fi
  21618. # BEGIN COPYRIGHT BLOCK
  21619. # Copyright (C) 2009 Red Hat, Inc.
  21620. # All rights reserved.
  21621. #
  21622. # This program is free software; you can redistribute it and/or
  21623. # modify it under the terms of the GNU General Public License
  21624. # as published by the Free Software Foundation; either version 2
  21625. # of the License, or (at your option) any later version.
  21626. #
  21627. # This program is distributed in the hope that it will be useful,
  21628. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21629. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21630. # GNU General Public License for more details.
  21631. #
  21632. # You should have received a copy of the GNU General Public License
  21633. # along with this program; if not, write to the Free Software
  21634. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21635. #
  21636. # END COPYRIGHT BLOCK
  21637. { echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  21638. echo "$as_me: checking for OpenLDAP..." >&6;}
  21639. # check for --with-openldap
  21640. echo "$as_me:$LINENO: checking for --with-openldap" >&5
  21641. echo $ECHO_N "checking for --with-openldap... $ECHO_C" >&6
  21642. # Check whether --with-openldap or --without-openldap was given.
  21643. if test "${with_openldap+set}" = set; then
  21644. withval="$with_openldap"
  21645. if test "$withval" = yes
  21646. then
  21647. echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  21648. echo "${ECHO_T}using system OpenLDAP" >&6
  21649. elif test "$withval" = no
  21650. then
  21651. echo "$as_me:$LINENO: result: no" >&5
  21652. echo "${ECHO_T}no" >&6
  21653. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21654. then
  21655. echo "$as_me:$LINENO: result: using $withval" >&5
  21656. echo "${ECHO_T}using $withval" >&6
  21657. OPENLDAPDIR=$withval
  21658. openldap_incdir="$OPENLDAPDIR/include"
  21659. openldap_inc="-I$openldap_incdir"
  21660. openldap_lib="-L$OPENLDAPDIR/lib"
  21661. openldap_libdir="$OPENLDAPDIR/lib"
  21662. openldap_bindir="$OPENLDAPDIR/bin"
  21663. with_openldap=yes
  21664. else
  21665. echo
  21666. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21667. echo "$as_me: error: $withval not found" >&2;}
  21668. { (exit 1); exit 1; }; }
  21669. fi
  21670. else
  21671. echo "$as_me:$LINENO: result: no" >&5
  21672. echo "${ECHO_T}no" >&6
  21673. fi;
  21674. # check for --with-openldap-inc
  21675. echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  21676. echo $ECHO_N "checking for --with-openldap-inc... $ECHO_C" >&6
  21677. # Check whether --with-openldap-inc or --without-openldap-inc was given.
  21678. if test "${with_openldap_inc+set}" = set; then
  21679. withval="$with_openldap_inc"
  21680. if test -e "$withval"/ldap.h
  21681. then
  21682. echo "$as_me:$LINENO: result: using $withval" >&5
  21683. echo "${ECHO_T}using $withval" >&6
  21684. openldap_incdir="$withval"
  21685. openldap_inc="-I$withval"
  21686. with_openldap=yes
  21687. else
  21688. echo
  21689. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21690. echo "$as_me: error: $withval not found" >&2;}
  21691. { (exit 1); exit 1; }; }
  21692. fi
  21693. else
  21694. echo "$as_me:$LINENO: result: no" >&5
  21695. echo "${ECHO_T}no" >&6
  21696. fi;
  21697. # check for --with-openldap-lib
  21698. echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  21699. echo $ECHO_N "checking for --with-openldap-lib... $ECHO_C" >&6
  21700. # Check whether --with-openldap-lib or --without-openldap-lib was given.
  21701. if test "${with_openldap_lib+set}" = set; then
  21702. withval="$with_openldap_lib"
  21703. if test -d "$withval"
  21704. then
  21705. echo "$as_me:$LINENO: result: using $withval" >&5
  21706. echo "${ECHO_T}using $withval" >&6
  21707. openldap_lib="-L$withval"
  21708. openldap_libdir="$withval"
  21709. with_openldap=yes
  21710. else
  21711. echo
  21712. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21713. echo "$as_me: error: $withval not found" >&2;}
  21714. { (exit 1); exit 1; }; }
  21715. fi
  21716. else
  21717. echo "$as_me:$LINENO: result: no" >&5
  21718. echo "${ECHO_T}no" >&6
  21719. fi;
  21720. # check for --with-openldap-bin
  21721. echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  21722. echo $ECHO_N "checking for --with-openldap-bin... $ECHO_C" >&6
  21723. # Check whether --with-openldap-bin or --without-openldap-bin was given.
  21724. if test "${with_openldap_bin+set}" = set; then
  21725. withval="$with_openldap_bin"
  21726. if test -d "$withval"
  21727. then
  21728. echo "$as_me:$LINENO: result: using $withval" >&5
  21729. echo "${ECHO_T}using $withval" >&6
  21730. openldap_bindir="$withval"
  21731. with_openldap=yes
  21732. else
  21733. echo
  21734. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21735. echo "$as_me: error: $withval not found" >&2;}
  21736. { (exit 1); exit 1; }; }
  21737. fi
  21738. else
  21739. echo "$as_me:$LINENO: result: no" >&5
  21740. echo "${ECHO_T}no" >&6
  21741. fi;
  21742. # if OPENLDAP is not found yet, try pkg-config
  21743. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  21744. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  21745. # Extract the first word of "pkg-config", so it can be a program name with args.
  21746. set dummy pkg-config; ac_word=$2
  21747. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21748. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21749. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21750. echo $ECHO_N "(cached) $ECHO_C" >&6
  21751. else
  21752. case $PKG_CONFIG in
  21753. [\\/]* | ?:[\\/]*)
  21754. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21755. ;;
  21756. *)
  21757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21758. for as_dir in $PATH
  21759. do
  21760. IFS=$as_save_IFS
  21761. test -z "$as_dir" && as_dir=.
  21762. for ac_exec_ext in '' $ac_executable_extensions; do
  21763. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21764. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21765. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21766. break 2
  21767. fi
  21768. done
  21769. done
  21770. ;;
  21771. esac
  21772. fi
  21773. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21774. if test -n "$PKG_CONFIG"; then
  21775. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21776. echo "${ECHO_T}$PKG_CONFIG" >&6
  21777. else
  21778. echo "$as_me:$LINENO: result: no" >&5
  21779. echo "${ECHO_T}no" >&6
  21780. fi
  21781. echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  21782. echo $ECHO_N "checking for OpenLDAP with pkg-config... $ECHO_C" >&6
  21783. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  21784. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  21785. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  21786. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  21787. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  21788. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  21789. echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  21790. echo "${ECHO_T}using system OpenLDAP from pkg-config" >&6
  21791. else
  21792. openldap_incdir="/usr/include"
  21793. openldap_inc="-I$openldap_incdir"
  21794. echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  21795. echo "${ECHO_T}no OpenLDAP pkg-config files" >&6
  21796. fi
  21797. fi
  21798. fi
  21799. if test "$with_openldap" = yes ; then
  21800. save_cppflags="$CPPFLAGS"
  21801. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  21802. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21803. echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  21804. echo $ECHO_N "checking for ldap_features.h... $ECHO_C" >&6
  21805. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21806. echo $ECHO_N "(cached) $ECHO_C" >&6
  21807. fi
  21808. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  21809. echo "${ECHO_T}$ac_cv_header_ldap_features_h" >&6
  21810. else
  21811. # Is the header compilable?
  21812. echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  21813. echo $ECHO_N "checking ldap_features.h usability... $ECHO_C" >&6
  21814. cat >conftest.$ac_ext <<_ACEOF
  21815. /* confdefs.h. */
  21816. _ACEOF
  21817. cat confdefs.h >>conftest.$ac_ext
  21818. cat >>conftest.$ac_ext <<_ACEOF
  21819. /* end confdefs.h. */
  21820. $ac_includes_default
  21821. #include <ldap_features.h>
  21822. _ACEOF
  21823. rm -f conftest.$ac_objext
  21824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21825. (eval $ac_compile) 2>conftest.er1
  21826. ac_status=$?
  21827. grep -v '^ *+' conftest.er1 >conftest.err
  21828. rm -f conftest.er1
  21829. cat conftest.err >&5
  21830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21831. (exit $ac_status); } &&
  21832. { ac_try='test -z "$ac_c_werror_flag"
  21833. || test ! -s conftest.err'
  21834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21835. (eval $ac_try) 2>&5
  21836. ac_status=$?
  21837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21838. (exit $ac_status); }; } &&
  21839. { ac_try='test -s conftest.$ac_objext'
  21840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21841. (eval $ac_try) 2>&5
  21842. ac_status=$?
  21843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21844. (exit $ac_status); }; }; then
  21845. ac_header_compiler=yes
  21846. else
  21847. echo "$as_me: failed program was:" >&5
  21848. sed 's/^/| /' conftest.$ac_ext >&5
  21849. ac_header_compiler=no
  21850. fi
  21851. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21852. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21853. echo "${ECHO_T}$ac_header_compiler" >&6
  21854. # Is the header present?
  21855. echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  21856. echo $ECHO_N "checking ldap_features.h presence... $ECHO_C" >&6
  21857. cat >conftest.$ac_ext <<_ACEOF
  21858. /* confdefs.h. */
  21859. _ACEOF
  21860. cat confdefs.h >>conftest.$ac_ext
  21861. cat >>conftest.$ac_ext <<_ACEOF
  21862. /* end confdefs.h. */
  21863. #include <ldap_features.h>
  21864. _ACEOF
  21865. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21866. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21867. ac_status=$?
  21868. grep -v '^ *+' conftest.er1 >conftest.err
  21869. rm -f conftest.er1
  21870. cat conftest.err >&5
  21871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21872. (exit $ac_status); } >/dev/null; then
  21873. if test -s conftest.err; then
  21874. ac_cpp_err=$ac_c_preproc_warn_flag
  21875. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21876. else
  21877. ac_cpp_err=
  21878. fi
  21879. else
  21880. ac_cpp_err=yes
  21881. fi
  21882. if test -z "$ac_cpp_err"; then
  21883. ac_header_preproc=yes
  21884. else
  21885. echo "$as_me: failed program was:" >&5
  21886. sed 's/^/| /' conftest.$ac_ext >&5
  21887. ac_header_preproc=no
  21888. fi
  21889. rm -f conftest.err conftest.$ac_ext
  21890. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21891. echo "${ECHO_T}$ac_header_preproc" >&6
  21892. # So? What about this header?
  21893. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21894. yes:no: )
  21895. { echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21896. echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21897. { echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  21898. echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  21899. ac_header_preproc=yes
  21900. ;;
  21901. no:yes:* )
  21902. { echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  21903. echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  21904. { echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  21905. echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  21906. { echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  21907. echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  21908. { echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  21909. echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21910. { echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  21911. echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  21912. { echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  21913. echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  21914. (
  21915. cat <<\_ASBOX
  21916. ## ------------------------------------------ ##
  21917. ## Report this to http://bugzilla.redhat.com/ ##
  21918. ## ------------------------------------------ ##
  21919. _ASBOX
  21920. ) |
  21921. sed "s/^/$as_me: WARNING: /" >&2
  21922. ;;
  21923. esac
  21924. echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  21925. echo $ECHO_N "checking for ldap_features.h... $ECHO_C" >&6
  21926. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21927. echo $ECHO_N "(cached) $ECHO_C" >&6
  21928. else
  21929. ac_cv_header_ldap_features_h=$ac_header_preproc
  21930. fi
  21931. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  21932. echo "${ECHO_T}$ac_cv_header_ldap_features_h" >&6
  21933. fi
  21934. if test $ac_cv_header_ldap_features_h = yes; then
  21935. :
  21936. else
  21937. { { echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  21938. echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  21939. { (exit 1); exit 1; }; }
  21940. fi
  21941. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21942. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21943. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21944. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  21945. save_ldflags="$LDFLAGS"
  21946. LDFLAGS="$openldap_lib $LDFLAGS"
  21947. as_ac_Lib=`echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  21948. echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  21949. echo $ECHO_N "checking for ldap_initialize in -lldap$ol_libver... $ECHO_C" >&6
  21950. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21951. echo $ECHO_N "(cached) $ECHO_C" >&6
  21952. else
  21953. ac_check_lib_save_LIBS=$LIBS
  21954. LIBS="-lldap$ol_libver $LIBS"
  21955. cat >conftest.$ac_ext <<_ACEOF
  21956. /* confdefs.h. */
  21957. _ACEOF
  21958. cat confdefs.h >>conftest.$ac_ext
  21959. cat >>conftest.$ac_ext <<_ACEOF
  21960. /* end confdefs.h. */
  21961. /* Override any gcc2 internal prototype to avoid an error. */
  21962. #ifdef __cplusplus
  21963. extern "C"
  21964. #endif
  21965. /* We use char because int might match the return type of a gcc2
  21966. builtin and then its argument prototype would still apply. */
  21967. char ldap_initialize ();
  21968. int
  21969. main ()
  21970. {
  21971. ldap_initialize ();
  21972. ;
  21973. return 0;
  21974. }
  21975. _ACEOF
  21976. rm -f conftest.$ac_objext conftest$ac_exeext
  21977. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21978. (eval $ac_link) 2>conftest.er1
  21979. ac_status=$?
  21980. grep -v '^ *+' conftest.er1 >conftest.err
  21981. rm -f conftest.er1
  21982. cat conftest.err >&5
  21983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21984. (exit $ac_status); } &&
  21985. { ac_try='test -z "$ac_c_werror_flag"
  21986. || test ! -s conftest.err'
  21987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21988. (eval $ac_try) 2>&5
  21989. ac_status=$?
  21990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21991. (exit $ac_status); }; } &&
  21992. { ac_try='test -s conftest$ac_exeext'
  21993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21994. (eval $ac_try) 2>&5
  21995. ac_status=$?
  21996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21997. (exit $ac_status); }; }; then
  21998. eval "$as_ac_Lib=yes"
  21999. else
  22000. echo "$as_me: failed program was:" >&5
  22001. sed 's/^/| /' conftest.$ac_ext >&5
  22002. eval "$as_ac_Lib=no"
  22003. fi
  22004. rm -f conftest.err conftest.$ac_objext \
  22005. conftest$ac_exeext conftest.$ac_ext
  22006. LIBS=$ac_check_lib_save_LIBS
  22007. fi
  22008. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22009. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22010. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22011. have_ldap_lib=1
  22012. fi
  22013. if test -z "$have_ldap_lib" ; then
  22014. echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  22015. echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6
  22016. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  22017. echo $ECHO_N "(cached) $ECHO_C" >&6
  22018. else
  22019. ac_check_lib_save_LIBS=$LIBS
  22020. LIBS="-lldap $LIBS"
  22021. cat >conftest.$ac_ext <<_ACEOF
  22022. /* confdefs.h. */
  22023. _ACEOF
  22024. cat confdefs.h >>conftest.$ac_ext
  22025. cat >>conftest.$ac_ext <<_ACEOF
  22026. /* end confdefs.h. */
  22027. /* Override any gcc2 internal prototype to avoid an error. */
  22028. #ifdef __cplusplus
  22029. extern "C"
  22030. #endif
  22031. /* We use char because int might match the return type of a gcc2
  22032. builtin and then its argument prototype would still apply. */
  22033. char ldap_initialize ();
  22034. int
  22035. main ()
  22036. {
  22037. ldap_initialize ();
  22038. ;
  22039. return 0;
  22040. }
  22041. _ACEOF
  22042. rm -f conftest.$ac_objext conftest$ac_exeext
  22043. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22044. (eval $ac_link) 2>conftest.er1
  22045. ac_status=$?
  22046. grep -v '^ *+' conftest.er1 >conftest.err
  22047. rm -f conftest.er1
  22048. cat conftest.err >&5
  22049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22050. (exit $ac_status); } &&
  22051. { ac_try='test -z "$ac_c_werror_flag"
  22052. || test ! -s conftest.err'
  22053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22054. (eval $ac_try) 2>&5
  22055. ac_status=$?
  22056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22057. (exit $ac_status); }; } &&
  22058. { ac_try='test -s conftest$ac_exeext'
  22059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22060. (eval $ac_try) 2>&5
  22061. ac_status=$?
  22062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22063. (exit $ac_status); }; }; then
  22064. ac_cv_lib_ldap_ldap_initialize=yes
  22065. else
  22066. echo "$as_me: failed program was:" >&5
  22067. sed 's/^/| /' conftest.$ac_ext >&5
  22068. ac_cv_lib_ldap_ldap_initialize=no
  22069. fi
  22070. rm -f conftest.err conftest.$ac_objext \
  22071. conftest$ac_exeext conftest.$ac_ext
  22072. LIBS=$ac_check_lib_save_LIBS
  22073. fi
  22074. echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  22075. echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6
  22076. if test $ac_cv_lib_ldap_ldap_initialize = yes; then
  22077. unset ol_libver
  22078. else
  22079. { { echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  22080. echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  22081. { (exit 1); exit 1; }; }
  22082. fi
  22083. fi
  22084. as_ac_Lib=`echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  22085. echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  22086. echo $ECHO_N "checking for ldap_url_parse_ext in -lldap$ol_libver... $ECHO_C" >&6
  22087. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  22088. echo $ECHO_N "(cached) $ECHO_C" >&6
  22089. else
  22090. ac_check_lib_save_LIBS=$LIBS
  22091. LIBS="-lldap$ol_libver $LIBS"
  22092. cat >conftest.$ac_ext <<_ACEOF
  22093. /* confdefs.h. */
  22094. _ACEOF
  22095. cat confdefs.h >>conftest.$ac_ext
  22096. cat >>conftest.$ac_ext <<_ACEOF
  22097. /* end confdefs.h. */
  22098. /* Override any gcc2 internal prototype to avoid an error. */
  22099. #ifdef __cplusplus
  22100. extern "C"
  22101. #endif
  22102. /* We use char because int might match the return type of a gcc2
  22103. builtin and then its argument prototype would still apply. */
  22104. char ldap_url_parse_ext ();
  22105. int
  22106. main ()
  22107. {
  22108. ldap_url_parse_ext ();
  22109. ;
  22110. return 0;
  22111. }
  22112. _ACEOF
  22113. rm -f conftest.$ac_objext conftest$ac_exeext
  22114. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22115. (eval $ac_link) 2>conftest.er1
  22116. ac_status=$?
  22117. grep -v '^ *+' conftest.er1 >conftest.err
  22118. rm -f conftest.er1
  22119. cat conftest.err >&5
  22120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22121. (exit $ac_status); } &&
  22122. { ac_try='test -z "$ac_c_werror_flag"
  22123. || test ! -s conftest.err'
  22124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22125. (eval $ac_try) 2>&5
  22126. ac_status=$?
  22127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22128. (exit $ac_status); }; } &&
  22129. { ac_try='test -s conftest$ac_exeext'
  22130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22131. (eval $ac_try) 2>&5
  22132. ac_status=$?
  22133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22134. (exit $ac_status); }; }; then
  22135. eval "$as_ac_Lib=yes"
  22136. else
  22137. echo "$as_me: failed program was:" >&5
  22138. sed 's/^/| /' conftest.$ac_ext >&5
  22139. eval "$as_ac_Lib=no"
  22140. fi
  22141. rm -f conftest.err conftest.$ac_objext \
  22142. conftest$ac_exeext conftest.$ac_ext
  22143. LIBS=$ac_check_lib_save_LIBS
  22144. fi
  22145. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22146. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22147. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22148. cat >>confdefs.h <<\_ACEOF
  22149. #define HAVE_LDAP_URL_PARSE_EXT 1
  22150. _ACEOF
  22151. fi
  22152. LDFLAGS="$save_ldflags"
  22153. CPPFLAGS="$save_cppflags"
  22154. cat >>confdefs.h <<\_ACEOF
  22155. #define USE_OPENLDAP 1
  22156. _ACEOF
  22157. fi
  22158. # BEGIN COPYRIGHT BLOCK
  22159. # Copyright (C) 2007 Red Hat, Inc.
  22160. # All rights reserved.
  22161. #
  22162. # This program is free software; you can redistribute it and/or
  22163. # modify it under the terms of the GNU General Public License
  22164. # as published by the Free Software Foundation; either version 2
  22165. # of the License, or (at your option) any later version.
  22166. #
  22167. # This program is distributed in the hope that it will be useful,
  22168. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22169. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22170. # GNU General Public License for more details.
  22171. #
  22172. # You should have received a copy of the GNU General Public License
  22173. # along with this program; if not, write to the Free Software
  22174. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22175. #
  22176. # END COPYRIGHT BLOCK
  22177. { echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  22178. echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  22179. # check for --with-ldapsdk
  22180. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  22181. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  22182. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  22183. if test "${with_ldapsdk+set}" = set; then
  22184. withval="$with_ldapsdk"
  22185. if test "$withval" = yes
  22186. then
  22187. echo "$as_me:$LINENO: result: yes" >&5
  22188. echo "${ECHO_T}yes" >&6
  22189. elif test "$withval" = no
  22190. then
  22191. echo "$as_me:$LINENO: result: no" >&5
  22192. echo "${ECHO_T}no" >&6
  22193. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  22194. then
  22195. echo "$as_me:$LINENO: result: using $withval" >&5
  22196. echo "${ECHO_T}using $withval" >&6
  22197. LDAPSDKDIR=$withval
  22198. ldapsdk_inc="-I$LDAPSDKDIR/include"
  22199. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  22200. ldapsdk_libdir="$LDAPSDKDIR/lib"
  22201. ldapsdk_bindir="$LDAPSDKDIR/bin"
  22202. with_ldapsdk=yes
  22203. else
  22204. echo
  22205. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22206. echo "$as_me: error: $withval not found" >&2;}
  22207. { (exit 1); exit 1; }; }
  22208. fi
  22209. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  22210. then
  22211. { { echo "$as_me:$LINENO: error: Cannot use both LDAPSDK and OpenLDAP." >&5
  22212. echo "$as_me: error: Cannot use both LDAPSDK and OpenLDAP." >&2;}
  22213. { (exit 1); exit 1; }; }
  22214. fi
  22215. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  22216. then
  22217. { { echo "$as_me:$LINENO: error: Either LDAPSDK or OpenLDAP must be used." >&5
  22218. echo "$as_me: error: Either LDAPSDK or OpenLDAP must be used." >&2;}
  22219. { (exit 1); exit 1; }; }
  22220. fi
  22221. else
  22222. if test "$with_openldap" = yes
  22223. then
  22224. echo "$as_me:$LINENO: result: no" >&5
  22225. echo "${ECHO_T}no" >&6
  22226. else
  22227. echo "$as_me:$LINENO: result: yes" >&5
  22228. echo "${ECHO_T}yes" >&6
  22229. with_ldapsdk=yes
  22230. fi
  22231. fi;
  22232. # check for --with-ldapsdk-inc
  22233. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  22234. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  22235. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  22236. if test "${with_ldapsdk_inc+set}" = set; then
  22237. withval="$with_ldapsdk_inc"
  22238. if test -e "$withval"/ldap.h
  22239. then
  22240. echo "$as_me:$LINENO: result: using $withval" >&5
  22241. echo "${ECHO_T}using $withval" >&6
  22242. ldapsdk_inc="-I$withval"
  22243. with_ldapsdk=yes
  22244. else
  22245. echo
  22246. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22247. echo "$as_me: error: $withval not found" >&2;}
  22248. { (exit 1); exit 1; }; }
  22249. fi
  22250. else
  22251. echo "$as_me:$LINENO: result: no" >&5
  22252. echo "${ECHO_T}no" >&6
  22253. fi;
  22254. # check for --with-ldapsdk-lib
  22255. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  22256. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  22257. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  22258. if test "${with_ldapsdk_lib+set}" = set; then
  22259. withval="$with_ldapsdk_lib"
  22260. if test -d "$withval"
  22261. then
  22262. echo "$as_me:$LINENO: result: using $withval" >&5
  22263. echo "${ECHO_T}using $withval" >&6
  22264. ldapsdk_lib="-L$withval"
  22265. ldapsdk_libdir="$withval"
  22266. with_ldapsdk=yes
  22267. else
  22268. echo
  22269. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22270. echo "$as_me: error: $withval not found" >&2;}
  22271. { (exit 1); exit 1; }; }
  22272. fi
  22273. else
  22274. echo "$as_me:$LINENO: result: no" >&5
  22275. echo "${ECHO_T}no" >&6
  22276. fi;
  22277. # check for --with-ldapsdk-bin
  22278. echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  22279. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6
  22280. # Check whether --with-ldapsdk-bin or --without-ldapsdk-bin was given.
  22281. if test "${with_ldapsdk_bin+set}" = set; then
  22282. withval="$with_ldapsdk_bin"
  22283. if test -d "$withval"
  22284. then
  22285. echo "$as_me:$LINENO: result: using $withval" >&5
  22286. echo "${ECHO_T}using $withval" >&6
  22287. ldapsdk_bindir="$withval"
  22288. with_ldapsdk=yes
  22289. else
  22290. echo
  22291. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22292. echo "$as_me: error: $withval not found" >&2;}
  22293. { (exit 1); exit 1; }; }
  22294. fi
  22295. else
  22296. echo "$as_me:$LINENO: result: no" >&5
  22297. echo "${ECHO_T}no" >&6
  22298. fi;
  22299. # if LDAPSDK is not found yet, try pkg-config
  22300. # last resort
  22301. if test "$with_ldapsdk" = yes ; then
  22302. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  22303. # Extract the first word of "pkg-config", so it can be a program name with args.
  22304. set dummy pkg-config; ac_word=$2
  22305. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22306. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22307. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22308. echo $ECHO_N "(cached) $ECHO_C" >&6
  22309. else
  22310. case $PKG_CONFIG in
  22311. [\\/]* | ?:[\\/]*)
  22312. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22313. ;;
  22314. *)
  22315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22316. for as_dir in $PATH
  22317. do
  22318. IFS=$as_save_IFS
  22319. test -z "$as_dir" && as_dir=.
  22320. for ac_exec_ext in '' $ac_executable_extensions; do
  22321. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22322. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22323. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22324. break 2
  22325. fi
  22326. done
  22327. done
  22328. ;;
  22329. esac
  22330. fi
  22331. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22332. if test -n "$PKG_CONFIG"; then
  22333. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22334. echo "${ECHO_T}$PKG_CONFIG" >&6
  22335. else
  22336. echo "$as_me:$LINENO: result: no" >&5
  22337. echo "${ECHO_T}no" >&6
  22338. fi
  22339. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  22340. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  22341. if test -n "$PKG_CONFIG"; then
  22342. if $PKG_CONFIG --exists mozldap6; then
  22343. mozldappkg=mozldap6
  22344. elif $PKG_CONFIG --exists mozldap; then
  22345. mozldappkg=mozldap
  22346. else
  22347. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22348. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22349. { (exit 1); exit 1; }; }
  22350. fi
  22351. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  22352. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  22353. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  22354. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  22355. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  22356. echo "${ECHO_T}using system $mozldappkg" >&6
  22357. fi
  22358. fi
  22359. fi
  22360. if test "$with_ldapsdk" = yes ; then
  22361. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  22362. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22363. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22364. { (exit 1); exit 1; }; }
  22365. fi
  22366. if test -z "$ldapsdk_bindir" ; then
  22367. if -d $libdir/mozldap6 ; then
  22368. ldapsdk_bindir=$libdir/mozldap6
  22369. else
  22370. ldapsdk_bindir=$libdir/mozldap
  22371. fi
  22372. fi
  22373. save_cppflags="$CPPFLAGS"
  22374. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  22375. echo "$as_me:$LINENO: checking for ldap.h" >&5
  22376. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  22377. if test "${ac_cv_header_ldap_h+set}" = set; then
  22378. echo $ECHO_N "(cached) $ECHO_C" >&6
  22379. else
  22380. cat >conftest.$ac_ext <<_ACEOF
  22381. /* confdefs.h. */
  22382. _ACEOF
  22383. cat confdefs.h >>conftest.$ac_ext
  22384. cat >>conftest.$ac_ext <<_ACEOF
  22385. /* end confdefs.h. */
  22386. #include <ldap-standard.h>
  22387. #if LDAP_VENDOR_VERSION < 600
  22388. #error The LDAP C SDK version is not supported
  22389. #endif
  22390. #include <ldap.h>
  22391. _ACEOF
  22392. rm -f conftest.$ac_objext
  22393. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22394. (eval $ac_compile) 2>conftest.er1
  22395. ac_status=$?
  22396. grep -v '^ *+' conftest.er1 >conftest.err
  22397. rm -f conftest.er1
  22398. cat conftest.err >&5
  22399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22400. (exit $ac_status); } &&
  22401. { ac_try='test -z "$ac_c_werror_flag"
  22402. || test ! -s conftest.err'
  22403. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22404. (eval $ac_try) 2>&5
  22405. ac_status=$?
  22406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22407. (exit $ac_status); }; } &&
  22408. { ac_try='test -s conftest.$ac_objext'
  22409. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22410. (eval $ac_try) 2>&5
  22411. ac_status=$?
  22412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22413. (exit $ac_status); }; }; then
  22414. ac_cv_header_ldap_h=yes
  22415. else
  22416. echo "$as_me: failed program was:" >&5
  22417. sed 's/^/| /' conftest.$ac_ext >&5
  22418. ac_cv_header_ldap_h=no
  22419. fi
  22420. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22421. fi
  22422. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  22423. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  22424. if test $ac_cv_header_ldap_h = yes; then
  22425. isversion6=1
  22426. else
  22427. isversion6=
  22428. fi
  22429. CPPFLAGS="$save_cppflags"
  22430. if test -z "$isversion6" ; then
  22431. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  22432. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  22433. { (exit 1); exit 1; }; }
  22434. fi
  22435. cat >>confdefs.h <<\_ACEOF
  22436. #define USE_MOZLDAP 1
  22437. _ACEOF
  22438. cat >>confdefs.h <<\_ACEOF
  22439. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  22440. _ACEOF
  22441. fi
  22442. # BEGIN COPYRIGHT BLOCK
  22443. # Copyright (C) 2007 Red Hat, Inc.
  22444. # All rights reserved.
  22445. #
  22446. # This program is free software; you can redistribute it and/or
  22447. # modify it under the terms of the GNU General Public License
  22448. # as published by the Free Software Foundation; either version 2
  22449. # of the License, or (at your option) any later version.
  22450. #
  22451. # This program is distributed in the hope that it will be useful,
  22452. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22453. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22454. # GNU General Public License for more details.
  22455. #
  22456. # You should have received a copy of the GNU General Public License
  22457. # along with this program; if not, write to the Free Software
  22458. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22459. #
  22460. # END COPYRIGHT BLOCK
  22461. { echo "$as_me:$LINENO: checking for db..." >&5
  22462. echo "$as_me: checking for db..." >&6;}
  22463. echo "$as_me:$LINENO: checking for --with-db" >&5
  22464. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  22465. # Check whether --with-db or --without-db was given.
  22466. if test "${with_db+set}" = set; then
  22467. withval="$with_db"
  22468. if test "$withval" = "yes"; then
  22469. echo "$as_me:$LINENO: result: yes" >&5
  22470. echo "${ECHO_T}yes" >&6
  22471. elif test "$withval" = "no"; then
  22472. echo "$as_me:$LINENO: result: no" >&5
  22473. echo "${ECHO_T}no" >&6
  22474. { { echo "$as_me:$LINENO: error: db is required." >&5
  22475. echo "$as_me: error: db is required." >&2;}
  22476. { (exit 1); exit 1; }; }
  22477. elif test -d "$withval"/include -a -d "$withval"/lib; then
  22478. echo "$as_me:$LINENO: result: using $withval" >&5
  22479. echo "${ECHO_T}using $withval" >&6
  22480. DBDIR=$withval
  22481. db_lib="-L$DBDIR/lib"
  22482. db_libdir="$DBDIR/lib"
  22483. db_incdir="$DBDIR/include"
  22484. if ! test -e "$db_incdir/db.h" ; then
  22485. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  22486. echo "$as_me: error: $withval include dir not found" >&2;}
  22487. { (exit 1); exit 1; }; }
  22488. fi
  22489. db_inc="-I$db_incdir"
  22490. else
  22491. echo
  22492. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22493. echo "$as_me: error: $withval not found" >&2;}
  22494. { (exit 1); exit 1; }; }
  22495. fi
  22496. else
  22497. echo "$as_me:$LINENO: result: yes" >&5
  22498. echo "${ECHO_T}yes" >&6
  22499. fi;
  22500. # check for --with-db-inc
  22501. echo "$as_me:$LINENO: checking for --with-db-inc" >&5
  22502. echo $ECHO_N "checking for --with-db-inc... $ECHO_C" >&6
  22503. # Check whether --with-db-inc or --without-db-inc was given.
  22504. if test "${with_db_inc+set}" = set; then
  22505. withval="$with_db_inc"
  22506. if test -e "$withval"/db.h
  22507. then
  22508. echo "$as_me:$LINENO: result: using $withval" >&5
  22509. echo "${ECHO_T}using $withval" >&6
  22510. db_incdir="$withval"
  22511. db_inc="-I$withval"
  22512. else
  22513. echo
  22514. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22515. echo "$as_me: error: $withval not found" >&2;}
  22516. { (exit 1); exit 1; }; }
  22517. fi
  22518. else
  22519. echo "$as_me:$LINENO: result: no" >&5
  22520. echo "${ECHO_T}no" >&6
  22521. fi;
  22522. # check for --with-db-lib
  22523. echo "$as_me:$LINENO: checking for --with-db-lib" >&5
  22524. echo $ECHO_N "checking for --with-db-lib... $ECHO_C" >&6
  22525. # Check whether --with-db-lib or --without-db-lib was given.
  22526. if test "${with_db_lib+set}" = set; then
  22527. withval="$with_db_lib"
  22528. if test -d "$withval"
  22529. then
  22530. echo "$as_me:$LINENO: result: using $withval" >&5
  22531. echo "${ECHO_T}using $withval" >&6
  22532. db_lib="-L$withval"
  22533. db_libdir="$withval"
  22534. else
  22535. echo
  22536. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22537. echo "$as_me: error: $withval not found" >&2;}
  22538. { (exit 1); exit 1; }; }
  22539. fi
  22540. else
  22541. echo "$as_me:$LINENO: result: no" >&5
  22542. echo "${ECHO_T}no" >&6
  22543. fi;
  22544. if test -z "$db_inc"; then
  22545. echo "$as_me:$LINENO: checking for db.h" >&5
  22546. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  22547. if test -f "/usr/include/db4/db.h"; then
  22548. echo "$as_me:$LINENO: result: using /usr/include/db4/db.h" >&5
  22549. echo "${ECHO_T}using /usr/include/db4/db.h" >&6
  22550. db_incdir="/usr/include/db4"
  22551. db_inc="-I/usr/include/db4"
  22552. db_lib='-L$(libdir)'
  22553. db_libdir='$(libdir)'
  22554. elif test -f "/usr/include/db.h"; then
  22555. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  22556. echo "${ECHO_T}using /usr/include/db.h" >&6
  22557. db_incdir="/usr/include"
  22558. db_inc="-I/usr/include"
  22559. db_lib='-L$(libdir)'
  22560. db_libdir='$(libdir)'
  22561. else
  22562. echo "$as_me:$LINENO: result: no" >&5
  22563. echo "${ECHO_T}no" >&6
  22564. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  22565. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  22566. { (exit 1); exit 1; }; }
  22567. fi
  22568. fi
  22569. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  22570. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  22571. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  22572. db_libver=${db_ver_maj}.${db_ver_min}
  22573. save_ldflags="$LDFLAGS"
  22574. LDFLAGS="$db_lib $LDFLAGS"
  22575. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  22576. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  22577. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  22578. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  22579. echo $ECHO_N "(cached) $ECHO_C" >&6
  22580. else
  22581. ac_check_lib_save_LIBS=$LIBS
  22582. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  22583. cat >conftest.$ac_ext <<_ACEOF
  22584. /* confdefs.h. */
  22585. _ACEOF
  22586. cat confdefs.h >>conftest.$ac_ext
  22587. cat >>conftest.$ac_ext <<_ACEOF
  22588. /* end confdefs.h. */
  22589. /* Override any gcc2 internal prototype to avoid an error. */
  22590. #ifdef __cplusplus
  22591. extern "C"
  22592. #endif
  22593. /* We use char because int might match the return type of a gcc2
  22594. builtin and then its argument prototype would still apply. */
  22595. char db_create ();
  22596. int
  22597. main ()
  22598. {
  22599. db_create ();
  22600. ;
  22601. return 0;
  22602. }
  22603. _ACEOF
  22604. rm -f conftest.$ac_objext conftest$ac_exeext
  22605. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22606. (eval $ac_link) 2>conftest.er1
  22607. ac_status=$?
  22608. grep -v '^ *+' conftest.er1 >conftest.err
  22609. rm -f conftest.er1
  22610. cat conftest.err >&5
  22611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22612. (exit $ac_status); } &&
  22613. { ac_try='test -z "$ac_c_werror_flag"
  22614. || test ! -s conftest.err'
  22615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22616. (eval $ac_try) 2>&5
  22617. ac_status=$?
  22618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22619. (exit $ac_status); }; } &&
  22620. { ac_try='test -s conftest$ac_exeext'
  22621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22622. (eval $ac_try) 2>&5
  22623. ac_status=$?
  22624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22625. (exit $ac_status); }; }; then
  22626. eval "$as_ac_Lib=yes"
  22627. else
  22628. echo "$as_me: failed program was:" >&5
  22629. sed 's/^/| /' conftest.$ac_ext >&5
  22630. eval "$as_ac_Lib=no"
  22631. fi
  22632. rm -f conftest.err conftest.$ac_objext \
  22633. conftest$ac_exeext conftest.$ac_ext
  22634. LIBS=$ac_check_lib_save_LIBS
  22635. fi
  22636. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22637. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22638. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22639. true
  22640. else
  22641. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  22642. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  22643. { (exit 1); exit 1; }; }
  22644. fi
  22645. LDFLAGS="$save_ldflags"
  22646. # if DB is not found yet, try pkg-config
  22647. # last resort
  22648. # Although the other db_* variables are correctly assigned at this point,
  22649. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  22650. if test -n "$PKG_CONFIG"; then
  22651. if $PKG_CONFIG --exists db; then
  22652. db_bindir=`$PKG_CONFIG --variable=bindir db`
  22653. else
  22654. db_bindir=/usr/bin
  22655. fi
  22656. else
  22657. db_bindir=/usr/bin
  22658. fi
  22659. # BEGIN COPYRIGHT BLOCK
  22660. # Copyright (C) 2007 Red Hat, Inc.
  22661. # All rights reserved.
  22662. #
  22663. # This program is free software; you can redistribute it and/or
  22664. # modify it under the terms of the GNU General Public License
  22665. # as published by the Free Software Foundation; either version 2
  22666. # of the License, or (at your option) any later version.
  22667. #
  22668. # This program is distributed in the hope that it will be useful,
  22669. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22670. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22671. # GNU General Public License for more details.
  22672. #
  22673. # You should have received a copy of the GNU General Public License
  22674. # along with this program; if not, write to the Free Software
  22675. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22676. #
  22677. # END COPYRIGHT BLOCK
  22678. # -*- tab-width: 4; -*-
  22679. # Configure paths for SASL
  22680. { echo "$as_me:$LINENO: checking for SASL..." >&5
  22681. echo "$as_me: checking for SASL..." >&6;}
  22682. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  22683. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  22684. # Check whether --with-sasl or --without-sasl was given.
  22685. if test "${with_sasl+set}" = set; then
  22686. withval="$with_sasl"
  22687. if test "$withval" = "yes"; then
  22688. echo "$as_me:$LINENO: result: yes" >&5
  22689. echo "${ECHO_T}yes" >&6
  22690. elif test "$withval" = "no"; then
  22691. echo "$as_me:$LINENO: result: no" >&5
  22692. echo "${ECHO_T}no" >&6
  22693. { { echo "$as_me:$LINENO: error: SASL is required." >&5
  22694. echo "$as_me: error: SASL is required." >&2;}
  22695. { (exit 1); exit 1; }; }
  22696. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22697. echo "$as_me:$LINENO: result: using $withval" >&5
  22698. echo "${ECHO_T}using $withval" >&6
  22699. if test -f "$withval/include/sasl/sasl.h"; then
  22700. sasl_inc="-I$withval/include/sasl"
  22701. elif test -f "$withval/include/sasl.h"; then
  22702. sasl_inc="-I$withval/include"
  22703. else
  22704. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22705. echo "$as_me: error: sasl.h not found" >&2;}
  22706. { (exit 1); exit 1; }; }
  22707. fi
  22708. sasl_lib="-L$withval/lib"
  22709. sasl_libdir="$withval/lib"
  22710. else
  22711. echo "$as_me:$LINENO: result: yes" >&5
  22712. echo "${ECHO_T}yes" >&6
  22713. { { echo "$as_me:$LINENO: error: SASL not found in $withval" >&5
  22714. echo "$as_me: error: SASL not found in $withval" >&2;}
  22715. { (exit 1); exit 1; }; }
  22716. fi
  22717. else
  22718. echo "$as_me:$LINENO: result: yes" >&5
  22719. echo "${ECHO_T}yes" >&6
  22720. fi;
  22721. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  22722. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  22723. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  22724. if test "${with_sasl_inc+set}" = set; then
  22725. withval="$with_sasl_inc"
  22726. if test -f "$withval"/sasl.h; then
  22727. echo "$as_me:$LINENO: result: using $withval" >&5
  22728. echo "${ECHO_T}using $withval" >&6
  22729. sasl_inc="-I$withval"
  22730. else
  22731. echo
  22732. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  22733. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  22734. { (exit 1); exit 1; }; }
  22735. fi
  22736. else
  22737. echo "$as_me:$LINENO: result: no" >&5
  22738. echo "${ECHO_T}no" >&6
  22739. fi;
  22740. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  22741. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  22742. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  22743. if test "${with_sasl_lib+set}" = set; then
  22744. withval="$with_sasl_lib"
  22745. if test -d "$withval"; then
  22746. echo "$as_me:$LINENO: result: using $withval" >&5
  22747. echo "${ECHO_T}using $withval" >&6
  22748. sasl_lib="-L$withval"
  22749. sasl_libdir="$withval"
  22750. else
  22751. echo
  22752. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22753. echo "$as_me: error: $withval not found" >&2;}
  22754. { (exit 1); exit 1; }; }
  22755. fi
  22756. else
  22757. echo "$as_me:$LINENO: result: no" >&5
  22758. echo "${ECHO_T}no" >&6
  22759. fi;
  22760. if test -z "$sasl_inc"; then
  22761. echo "$as_me:$LINENO: checking for sasl.h" >&5
  22762. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  22763. if test -f /usr/include/sasl/sasl.h; then
  22764. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  22765. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  22766. sasl_inc="-I/usr/include/sasl"
  22767. elif test -f /usr/include/sasl.h; then
  22768. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  22769. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  22770. sasl_inc="-I/usr/include"
  22771. else
  22772. echo "$as_me:$LINENO: result: no" >&5
  22773. echo "${ECHO_T}no" >&6
  22774. { { echo "$as_me:$LINENO: error: SASL not found, specify with --with-sasl." >&5
  22775. echo "$as_me: error: SASL not found, specify with --with-sasl." >&2;}
  22776. { (exit 1); exit 1; }; }
  22777. fi
  22778. fi
  22779. # BEGIN COPYRIGHT BLOCK
  22780. # Copyright (C) 2007 Red Hat, Inc.
  22781. # All rights reserved.
  22782. #
  22783. # This program is free software; you can redistribute it and/or
  22784. # modify it under the terms of the GNU General Public License
  22785. # as published by the Free Software Foundation; either version 2
  22786. # of the License, or (at your option) any later version.
  22787. #
  22788. # This program is distributed in the hope that it will be useful,
  22789. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22790. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22791. # GNU General Public License for more details.
  22792. #
  22793. # You should have received a copy of the GNU General Public License
  22794. # along with this program; if not, write to the Free Software
  22795. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22796. #
  22797. # END COPYRIGHT BLOCK
  22798. #
  22799. # Configure paths for SVRCORE
  22800. { echo "$as_me:$LINENO: checking for SVRCORE..." >&5
  22801. echo "$as_me: checking for SVRCORE..." >&6;}
  22802. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  22803. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  22804. # Check whether --with-svrcore or --without-svrcore was given.
  22805. if test "${with_svrcore+set}" = set; then
  22806. withval="$with_svrcore"
  22807. if test "$withval" = "yes"; then
  22808. echo "$as_me:$LINENO: result: yes" >&5
  22809. echo "${ECHO_T}yes" >&6
  22810. elif test "$withval" = "no"; then
  22811. echo "$as_me:$LINENO: result: no" >&5
  22812. echo "${ECHO_T}no" >&6
  22813. { { echo "$as_me:$LINENO: error: SVRCORE is required." >&5
  22814. echo "$as_me: error: SVRCORE is required." >&2;}
  22815. { (exit 1); exit 1; }; }
  22816. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22817. echo "$as_me:$LINENO: result: using $withval" >&5
  22818. echo "${ECHO_T}using $withval" >&6
  22819. if test -f "$withval/include/svrcore.h"; then
  22820. svrcore_inc="-I$withval/include"
  22821. else
  22822. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22823. echo "$as_me: error: svrcore.h not found" >&2;}
  22824. { (exit 1); exit 1; }; }
  22825. fi
  22826. svrcore_lib="-L$withval/lib"
  22827. else
  22828. echo "$as_me:$LINENO: result: yes" >&5
  22829. echo "${ECHO_T}yes" >&6
  22830. { { echo "$as_me:$LINENO: error: SVRCORE not found in $withval" >&5
  22831. echo "$as_me: error: SVRCORE not found in $withval" >&2;}
  22832. { (exit 1); exit 1; }; }
  22833. fi
  22834. else
  22835. echo "$as_me:$LINENO: result: yes" >&5
  22836. echo "${ECHO_T}yes" >&6
  22837. fi;
  22838. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  22839. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  22840. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  22841. if test "${with_svrcore_inc+set}" = set; then
  22842. withval="$with_svrcore_inc"
  22843. if test -f "$withval"/svrcore.h; then
  22844. echo "$as_me:$LINENO: result: using $withval" >&5
  22845. echo "${ECHO_T}using $withval" >&6
  22846. svrcore_inc="-I$withval"
  22847. else
  22848. echo
  22849. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  22850. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  22851. { (exit 1); exit 1; }; }
  22852. fi
  22853. else
  22854. echo "$as_me:$LINENO: result: no" >&5
  22855. echo "${ECHO_T}no" >&6
  22856. fi;
  22857. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  22858. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  22859. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  22860. if test "${with_svrcore_lib+set}" = set; then
  22861. withval="$with_svrcore_lib"
  22862. if test -d "$withval"; then
  22863. echo "$as_me:$LINENO: result: using $withval" >&5
  22864. echo "${ECHO_T}using $withval" >&6
  22865. svrcore_lib="-L$withval"
  22866. else
  22867. echo
  22868. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22869. echo "$as_me: error: $withval not found" >&2;}
  22870. { (exit 1); exit 1; }; }
  22871. fi
  22872. else
  22873. echo "$as_me:$LINENO: result: no" >&5
  22874. echo "${ECHO_T}no" >&6
  22875. fi;
  22876. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22877. # Extract the first word of "pkg-config", so it can be a program name with args.
  22878. set dummy pkg-config; ac_word=$2
  22879. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22880. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22881. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22882. echo $ECHO_N "(cached) $ECHO_C" >&6
  22883. else
  22884. case $PKG_CONFIG in
  22885. [\\/]* | ?:[\\/]*)
  22886. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22887. ;;
  22888. *)
  22889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22890. for as_dir in $PATH
  22891. do
  22892. IFS=$as_save_IFS
  22893. test -z "$as_dir" && as_dir=.
  22894. for ac_exec_ext in '' $ac_executable_extensions; do
  22895. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22896. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22897. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22898. break 2
  22899. fi
  22900. done
  22901. done
  22902. ;;
  22903. esac
  22904. fi
  22905. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22906. if test -n "$PKG_CONFIG"; then
  22907. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22908. echo "${ECHO_T}$PKG_CONFIG" >&6
  22909. else
  22910. echo "$as_me:$LINENO: result: no" >&5
  22911. echo "${ECHO_T}no" >&6
  22912. fi
  22913. echo "$as_me:$LINENO: checking for SVRCORE with pkg-config" >&5
  22914. echo $ECHO_N "checking for SVRCORE with pkg-config... $ECHO_C" >&6
  22915. if test -n "$PKG_CONFIG"; then
  22916. if $PKG_CONFIG --exists svrcore; then
  22917. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  22918. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  22919. echo "$as_me:$LINENO: result: using system svrcore" >&5
  22920. echo "${ECHO_T}using system svrcore" >&6
  22921. fi
  22922. fi
  22923. fi
  22924. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22925. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  22926. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  22927. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  22928. echo $ECHO_N "(cached) $ECHO_C" >&6
  22929. else
  22930. ac_check_lib_save_LIBS=$LIBS
  22931. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  22932. cat >conftest.$ac_ext <<_ACEOF
  22933. /* confdefs.h. */
  22934. _ACEOF
  22935. cat confdefs.h >>conftest.$ac_ext
  22936. cat >>conftest.$ac_ext <<_ACEOF
  22937. /* end confdefs.h. */
  22938. /* Override any gcc2 internal prototype to avoid an error. */
  22939. #ifdef __cplusplus
  22940. extern "C"
  22941. #endif
  22942. /* We use char because int might match the return type of a gcc2
  22943. builtin and then its argument prototype would still apply. */
  22944. char SVRCORE_GetRegisteredPinObj ();
  22945. int
  22946. main ()
  22947. {
  22948. SVRCORE_GetRegisteredPinObj ();
  22949. ;
  22950. return 0;
  22951. }
  22952. _ACEOF
  22953. rm -f conftest.$ac_objext conftest$ac_exeext
  22954. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22955. (eval $ac_link) 2>conftest.er1
  22956. ac_status=$?
  22957. grep -v '^ *+' conftest.er1 >conftest.err
  22958. rm -f conftest.er1
  22959. cat conftest.err >&5
  22960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22961. (exit $ac_status); } &&
  22962. { ac_try='test -z "$ac_c_werror_flag"
  22963. || test ! -s conftest.err'
  22964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22965. (eval $ac_try) 2>&5
  22966. ac_status=$?
  22967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22968. (exit $ac_status); }; } &&
  22969. { ac_try='test -s conftest$ac_exeext'
  22970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22971. (eval $ac_try) 2>&5
  22972. ac_status=$?
  22973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22974. (exit $ac_status); }; }; then
  22975. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  22976. else
  22977. echo "$as_me: failed program was:" >&5
  22978. sed 's/^/| /' conftest.$ac_ext >&5
  22979. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  22980. fi
  22981. rm -f conftest.err conftest.$ac_objext \
  22982. conftest$ac_exeext conftest.$ac_ext
  22983. LIBS=$ac_check_lib_save_LIBS
  22984. fi
  22985. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  22986. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  22987. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  22988. havesvrcore=1
  22989. fi
  22990. if test -n "$havesvrcore" ; then
  22991. save_cppflags="$CPPFLAGS"
  22992. CPPFLAGS="$nss_inc $nspr_inc"
  22993. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22994. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22995. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22996. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22997. echo $ECHO_N "(cached) $ECHO_C" >&6
  22998. fi
  22999. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  23000. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  23001. else
  23002. # Is the header compilable?
  23003. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  23004. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  23005. cat >conftest.$ac_ext <<_ACEOF
  23006. /* confdefs.h. */
  23007. _ACEOF
  23008. cat confdefs.h >>conftest.$ac_ext
  23009. cat >>conftest.$ac_ext <<_ACEOF
  23010. /* end confdefs.h. */
  23011. $ac_includes_default
  23012. #include <svrcore.h>
  23013. _ACEOF
  23014. rm -f conftest.$ac_objext
  23015. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23016. (eval $ac_compile) 2>conftest.er1
  23017. ac_status=$?
  23018. grep -v '^ *+' conftest.er1 >conftest.err
  23019. rm -f conftest.er1
  23020. cat conftest.err >&5
  23021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23022. (exit $ac_status); } &&
  23023. { ac_try='test -z "$ac_c_werror_flag"
  23024. || test ! -s conftest.err'
  23025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23026. (eval $ac_try) 2>&5
  23027. ac_status=$?
  23028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23029. (exit $ac_status); }; } &&
  23030. { ac_try='test -s conftest.$ac_objext'
  23031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23032. (eval $ac_try) 2>&5
  23033. ac_status=$?
  23034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23035. (exit $ac_status); }; }; then
  23036. ac_header_compiler=yes
  23037. else
  23038. echo "$as_me: failed program was:" >&5
  23039. sed 's/^/| /' conftest.$ac_ext >&5
  23040. ac_header_compiler=no
  23041. fi
  23042. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23043. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23044. echo "${ECHO_T}$ac_header_compiler" >&6
  23045. # Is the header present?
  23046. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  23047. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  23048. cat >conftest.$ac_ext <<_ACEOF
  23049. /* confdefs.h. */
  23050. _ACEOF
  23051. cat confdefs.h >>conftest.$ac_ext
  23052. cat >>conftest.$ac_ext <<_ACEOF
  23053. /* end confdefs.h. */
  23054. #include <svrcore.h>
  23055. _ACEOF
  23056. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23057. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23058. ac_status=$?
  23059. grep -v '^ *+' conftest.er1 >conftest.err
  23060. rm -f conftest.er1
  23061. cat conftest.err >&5
  23062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23063. (exit $ac_status); } >/dev/null; then
  23064. if test -s conftest.err; then
  23065. ac_cpp_err=$ac_c_preproc_warn_flag
  23066. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23067. else
  23068. ac_cpp_err=
  23069. fi
  23070. else
  23071. ac_cpp_err=yes
  23072. fi
  23073. if test -z "$ac_cpp_err"; then
  23074. ac_header_preproc=yes
  23075. else
  23076. echo "$as_me: failed program was:" >&5
  23077. sed 's/^/| /' conftest.$ac_ext >&5
  23078. ac_header_preproc=no
  23079. fi
  23080. rm -f conftest.err conftest.$ac_ext
  23081. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23082. echo "${ECHO_T}$ac_header_preproc" >&6
  23083. # So? What about this header?
  23084. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23085. yes:no: )
  23086. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  23087. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23088. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  23089. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  23090. ac_header_preproc=yes
  23091. ;;
  23092. no:yes:* )
  23093. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  23094. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  23095. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  23096. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  23097. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  23098. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  23099. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  23100. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  23101. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  23102. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  23103. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  23104. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  23105. (
  23106. cat <<\_ASBOX
  23107. ## ------------------------------------------ ##
  23108. ## Report this to http://bugzilla.redhat.com/ ##
  23109. ## ------------------------------------------ ##
  23110. _ASBOX
  23111. ) |
  23112. sed "s/^/$as_me: WARNING: /" >&2
  23113. ;;
  23114. esac
  23115. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  23116. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  23117. if test "${ac_cv_header_svrcore_h+set}" = set; then
  23118. echo $ECHO_N "(cached) $ECHO_C" >&6
  23119. else
  23120. ac_cv_header_svrcore_h=$ac_header_preproc
  23121. fi
  23122. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  23123. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  23124. fi
  23125. if test $ac_cv_header_svrcore_h = yes; then
  23126. havesvrcore=1
  23127. else
  23128. havesvrcore=
  23129. fi
  23130. CPPFLAGS="$save_cppflags"
  23131. fi
  23132. if test -z "$havesvrcore" ; then
  23133. { { echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  23134. echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  23135. { (exit 1); exit 1; }; }
  23136. fi
  23137. fi
  23138. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  23139. if test -f /usr/include/svrcore.h; then
  23140. svrcore_inc="-I/usr/include"
  23141. svrcore_lib="-L/usr/lib"
  23142. else
  23143. { { echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  23144. echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  23145. { (exit 1); exit 1; }; }
  23146. fi
  23147. fi
  23148. # BEGIN COPYRIGHT BLOCK
  23149. # Copyright (C) 2006 Red Hat, Inc.
  23150. # All rights reserved.
  23151. #
  23152. # This program is free software; you can redistribute it and/or
  23153. # modify it under the terms of the GNU General Public License
  23154. # as published by the Free Software Foundation; either version 2
  23155. # of the License, or (at your option) any later version.
  23156. #
  23157. # This program is distributed in the hope that it will be useful,
  23158. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23159. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23160. # GNU General Public License for more details.
  23161. #
  23162. # You should have received a copy of the GNU General Public License
  23163. # along with this program; if not, write to the Free Software
  23164. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23165. #
  23166. # END COPYRIGHT BLOCK
  23167. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  23168. echo "$as_me: checking for LIBICU..." >&6;}
  23169. # check for --with-icu
  23170. echo "$as_me:$LINENO: checking for --with-icu" >&5
  23171. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  23172. # Check whether --with-icu or --without-icu was given.
  23173. if test "${with_icu+set}" = set; then
  23174. withval="$with_icu"
  23175. if test "$withval" = "yes"
  23176. then
  23177. echo "$as_me:$LINENO: result: yes" >&5
  23178. echo "${ECHO_T}yes" >&6
  23179. elif test "$withval" = "no"
  23180. then
  23181. echo "$as_me:$LINENO: result: no" >&5
  23182. echo "${ECHO_T}no" >&6
  23183. { { echo "$as_me:$LINENO: error: ICU is required." >&5
  23184. echo "$as_me: error: ICU is required." >&2;}
  23185. { (exit 1); exit 1; }; }
  23186. elif test -d "$withval"/lib
  23187. then
  23188. echo "$as_me:$LINENO: result: using $withval" >&5
  23189. echo "${ECHO_T}using $withval" >&6
  23190. ICUDIR=$withval
  23191. icu_lib="-L$ICUDIR/lib"
  23192. icu_inc="-I$withval/include"
  23193. icu_bin="$withval/bin"
  23194. else
  23195. echo
  23196. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23197. echo "$as_me: error: $withval not found" >&2;}
  23198. { (exit 1); exit 1; }; }
  23199. fi
  23200. else
  23201. echo "$as_me:$LINENO: result: yes" >&5
  23202. echo "${ECHO_T}yes" >&6
  23203. fi;
  23204. # check for --with-icu-inc
  23205. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  23206. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  23207. # Check whether --with-icu-inc or --without-icu-inc was given.
  23208. if test "${with_icu_inc+set}" = set; then
  23209. withval="$with_icu_inc"
  23210. if test -d "$withval"
  23211. then
  23212. echo "$as_me:$LINENO: result: using $withval" >&5
  23213. echo "${ECHO_T}using $withval" >&6
  23214. icu_inc="-I$withval"
  23215. else
  23216. echo
  23217. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23218. echo "$as_me: error: $withval not found" >&2;}
  23219. { (exit 1); exit 1; }; }
  23220. fi
  23221. else
  23222. echo "$as_me:$LINENO: result: no" >&5
  23223. echo "${ECHO_T}no" >&6
  23224. fi;
  23225. # check for --with-icu-lib
  23226. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  23227. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  23228. # Check whether --with-icu-lib or --without-icu-lib was given.
  23229. if test "${with_icu_lib+set}" = set; then
  23230. withval="$with_icu_lib"
  23231. if test -d "$withval"
  23232. then
  23233. echo "$as_me:$LINENO: result: using $withval" >&5
  23234. echo "${ECHO_T}using $withval" >&6
  23235. icu_lib="-L$withval"
  23236. else
  23237. echo
  23238. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23239. echo "$as_me: error: $withval not found" >&2;}
  23240. { (exit 1); exit 1; }; }
  23241. fi
  23242. else
  23243. echo "$as_me:$LINENO: result: no" >&5
  23244. echo "${ECHO_T}no" >&6
  23245. fi;
  23246. # check for --with-icu-bin
  23247. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  23248. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  23249. # Check whether --with-icu-bin or --without-icu-bin was given.
  23250. if test "${with_icu_bin+set}" = set; then
  23251. withval="$with_icu_bin"
  23252. if test -d "$withval"
  23253. then
  23254. echo "$as_me:$LINENO: result: using $withval" >&5
  23255. echo "${ECHO_T}using $withval" >&6
  23256. icu_bin="$withval"
  23257. else
  23258. echo
  23259. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23260. echo "$as_me: error: $withval not found" >&2;}
  23261. { (exit 1); exit 1; }; }
  23262. fi
  23263. else
  23264. echo "$as_me:$LINENO: result: no" >&5
  23265. echo "${ECHO_T}no" >&6
  23266. fi;
  23267. # if ICU is not found yet, try pkg-config
  23268. # last resort
  23269. if test -z "$icu_lib"; then
  23270. # Extract the first word of "icu-config", so it can be a program name with args.
  23271. set dummy icu-config; ac_word=$2
  23272. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23273. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23274. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  23275. echo $ECHO_N "(cached) $ECHO_C" >&6
  23276. else
  23277. case $ICU_CONFIG in
  23278. [\\/]* | ?:[\\/]*)
  23279. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  23280. ;;
  23281. *)
  23282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23283. for as_dir in $PATH
  23284. do
  23285. IFS=$as_save_IFS
  23286. test -z "$as_dir" && as_dir=.
  23287. for ac_exec_ext in '' $ac_executable_extensions; do
  23288. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23289. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23290. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23291. break 2
  23292. fi
  23293. done
  23294. done
  23295. ;;
  23296. esac
  23297. fi
  23298. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  23299. if test -n "$ICU_CONFIG"; then
  23300. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  23301. echo "${ECHO_T}$ICU_CONFIG" >&6
  23302. else
  23303. echo "$as_me:$LINENO: result: no" >&5
  23304. echo "${ECHO_T}no" >&6
  23305. fi
  23306. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  23307. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  23308. if test -n "$ICU_CONFIG"; then
  23309. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  23310. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  23311. icu_bin=`$ICU_CONFIG --bindir`
  23312. echo "$as_me:$LINENO: result: using system ICU" >&5
  23313. echo "${ECHO_T}using system ICU" >&6
  23314. else
  23315. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  23316. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  23317. { (exit 1); exit 1; }; }
  23318. fi
  23319. fi
  23320. # BEGIN COPYRIGHT BLOCK
  23321. # Copyright (C) 2006 Red Hat, Inc.
  23322. # All rights reserved.
  23323. #
  23324. # This program is free software; you can redistribute it and/or
  23325. # modify it under the terms of the GNU General Public License
  23326. # as published by the Free Software Foundation; either version 2
  23327. # of the License, or (at your option) any later version.
  23328. #
  23329. # This program is distributed in the hope that it will be useful,
  23330. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23331. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23332. # GNU General Public License for more details.
  23333. #
  23334. # You should have received a copy of the GNU General Public License
  23335. # along with this program; if not, write to the Free Software
  23336. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23337. #
  23338. # END COPYRIGHT BLOCK
  23339. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  23340. echo "$as_me: checking for Net-SNMP..." >&6;}
  23341. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  23342. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  23343. # Check whether --with-netsnmp or --without-netsnmp was given.
  23344. if test "${with_netsnmp+set}" = set; then
  23345. withval="$with_netsnmp"
  23346. if test "$withval" = "yes"; then
  23347. echo "$as_me:$LINENO: result: yes" >&5
  23348. echo "${ECHO_T}yes" >&6
  23349. elif test "$withval" = "no"; then
  23350. echo "$as_me:$LINENO: result: no" >&5
  23351. echo "${ECHO_T}no" >&6
  23352. { { echo "$as_me:$LINENO: error: Net-SNMP is required." >&5
  23353. echo "$as_me: error: Net-SNMP is required." >&2;}
  23354. { (exit 1); exit 1; }; }
  23355. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  23356. echo "$as_me:$LINENO: result: using $withval" >&5
  23357. echo "${ECHO_T}using $withval" >&6
  23358. NETSNMPDIR=$withval
  23359. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  23360. netsnmp_inc="-I$withval/include"
  23361. else
  23362. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  23363. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  23364. { (exit 1); exit 1; }; }
  23365. fi
  23366. netsnmp_lib="-L$withval/lib"
  23367. netsnmp_libdir="$withval/lib"
  23368. else
  23369. echo "$as_me:$LINENO: result: yes" >&5
  23370. echo "${ECHO_T}yes" >&6
  23371. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23372. echo "$as_me: error: $withval not found" >&2;}
  23373. { (exit 1); exit 1; }; }
  23374. fi
  23375. else
  23376. echo "$as_me:$LINENO: result: yes" >&5
  23377. echo "${ECHO_T}yes" >&6
  23378. fi;
  23379. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  23380. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  23381. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  23382. if test "${with_netsnmp_inc+set}" = set; then
  23383. withval="$with_netsnmp_inc"
  23384. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  23385. echo "$as_me:$LINENO: result: using $withval" >&5
  23386. echo "${ECHO_T}using $withval" >&6
  23387. netsnmp_inc="-I$withval"
  23388. else
  23389. echo
  23390. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  23391. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  23392. { (exit 1); exit 1; }; }
  23393. fi
  23394. else
  23395. echo "$as_me:$LINENO: result: no" >&5
  23396. echo "${ECHO_T}no" >&6
  23397. fi;
  23398. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  23399. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  23400. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  23401. if test "${with_netsnmp_lib+set}" = set; then
  23402. withval="$with_netsnmp_lib"
  23403. if test -d "$withval"
  23404. then
  23405. echo "$as_me:$LINENO: result: using $withval" >&5
  23406. echo "${ECHO_T}using $withval" >&6
  23407. netsnmp_lib="-L$withval"
  23408. netsnmp_libdir="$withval"
  23409. else
  23410. echo
  23411. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23412. echo "$as_me: error: $withval not found" >&2;}
  23413. { (exit 1); exit 1; }; }
  23414. fi
  23415. else
  23416. echo "$as_me:$LINENO: result: no" >&5
  23417. echo "${ECHO_T}no" >&6
  23418. fi;
  23419. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  23420. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  23421. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  23422. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  23423. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  23424. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  23425. netsnmp_inc="-I/usr/include"
  23426. else
  23427. echo "$as_me:$LINENO: result: no" >&5
  23428. echo "${ECHO_T}no" >&6
  23429. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  23430. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  23431. { (exit 1); exit 1; }; }
  23432. fi
  23433. fi
  23434. if test -n "$netsnmp_inc"; then
  23435. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  23436. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  23437. else
  23438. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  23439. set dummy net-snmp-config; ac_word=$2
  23440. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23441. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23442. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  23443. echo $ECHO_N "(cached) $ECHO_C" >&6
  23444. else
  23445. case $NETSNMP_CONFIG in
  23446. [\\/]* | ?:[\\/]*)
  23447. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  23448. ;;
  23449. *)
  23450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23451. for as_dir in $PATH
  23452. do
  23453. IFS=$as_save_IFS
  23454. test -z "$as_dir" && as_dir=.
  23455. for ac_exec_ext in '' $ac_executable_extensions; do
  23456. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23457. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23458. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23459. break 2
  23460. fi
  23461. done
  23462. done
  23463. ;;
  23464. esac
  23465. fi
  23466. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  23467. if test -n "$NETSNMP_CONFIG"; then
  23468. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  23469. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  23470. else
  23471. echo "$as_me:$LINENO: result: no" >&5
  23472. echo "${ECHO_T}no" >&6
  23473. fi
  23474. fi
  23475. if test -n "$NETSNMP_CONFIG"; then
  23476. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  23477. else
  23478. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  23479. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  23480. { (exit 1); exit 1; }; }
  23481. fi
  23482. else
  23483. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  23484. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  23485. { (exit 1); exit 1; }; }
  23486. fi
  23487. # BEGIN COPYRIGHT BLOCK
  23488. # Copyright (C) 2008 Red Hat, Inc.
  23489. # All rights reserved.
  23490. #
  23491. # This program is free software; you can redistribute it and/or
  23492. # modify it under the terms of the GNU General Public License
  23493. # as published by the Free Software Foundation; either version 2
  23494. # of the License, or (at your option) any later version.
  23495. #
  23496. # This program is distributed in the hope that it will be useful,
  23497. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23498. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23499. # GNU General Public License for more details.
  23500. #
  23501. # You should have received a copy of the GNU General Public License
  23502. # along with this program; if not, write to the Free Software
  23503. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23504. #
  23505. # END COPYRIGHT BLOCK
  23506. # -*- tab-width: 4; -*-
  23507. # Configure paths for Kerberos
  23508. { echo "$as_me:$LINENO: checking for Kerberos..." >&5
  23509. echo "$as_me: checking for Kerberos..." >&6;}
  23510. if test -z "$with_kerberos" ; then
  23511. with_kerberos=yes # if not set on cmdline, set default
  23512. fi
  23513. echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  23514. echo $ECHO_N "checking for --with-kerberos... $ECHO_C" >&6
  23515. # Check whether --with-kerberos or --without-kerberos was given.
  23516. if test "${with_kerberos+set}" = set; then
  23517. withval="$with_kerberos"
  23518. if test "x$withval" = "xyes"; then
  23519. echo "$as_me:$LINENO: result: yes" >&5
  23520. echo "${ECHO_T}yes" >&6
  23521. elif test "x$withval" = "xno"; then
  23522. echo "$as_me:$LINENO: result: no" >&5
  23523. echo "${ECHO_T}no" >&6
  23524. with_kerberos=
  23525. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  23526. echo "$as_me:$LINENO: result: using $withval" >&5
  23527. echo "${ECHO_T}using $withval" >&6
  23528. kerberos_incdir="$withval/include"
  23529. kerberos_libdir="$withval/lib"
  23530. else
  23531. echo "$as_me:$LINENO: result: yes" >&5
  23532. echo "${ECHO_T}yes" >&6
  23533. { { echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  23534. echo "$as_me: error: kerberos not found in $withval" >&2;}
  23535. { (exit 1); exit 1; }; }
  23536. fi
  23537. else
  23538. echo "$as_me:$LINENO: result: no" >&5
  23539. echo "${ECHO_T}no" >&6
  23540. with_kerberos=
  23541. fi;
  23542. echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  23543. echo $ECHO_N "checking for --with-kerberos-inc... $ECHO_C" >&6
  23544. # Check whether --with-kerberos-inc or --without-kerberos-inc was given.
  23545. if test "${with_kerberos_inc+set}" = set; then
  23546. withval="$with_kerberos_inc"
  23547. if test -f "$withval"/krb5.h; then
  23548. echo "$as_me:$LINENO: result: using $withval" >&5
  23549. echo "${ECHO_T}using $withval" >&6
  23550. kerberos_incdir="$withval"
  23551. with_kerberos=yes # implies use of kerberos
  23552. else
  23553. echo
  23554. { { echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  23555. echo "$as_me: error: $withval/krb5.h not found" >&2;}
  23556. { (exit 1); exit 1; }; }
  23557. fi
  23558. else
  23559. echo "$as_me:$LINENO: result: no" >&5
  23560. echo "${ECHO_T}no" >&6
  23561. fi;
  23562. echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  23563. echo $ECHO_N "checking for --with-kerberos-lib... $ECHO_C" >&6
  23564. # Check whether --with-kerberos-lib or --without-kerberos-lib was given.
  23565. if test "${with_kerberos_lib+set}" = set; then
  23566. withval="$with_kerberos_lib"
  23567. if test -d "$withval"; then
  23568. echo "$as_me:$LINENO: result: using $withval" >&5
  23569. echo "${ECHO_T}using $withval" >&6
  23570. kerberos_libdir="$withval"
  23571. with_kerberos=yes # implies use of kerberos
  23572. else
  23573. echo
  23574. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23575. echo "$as_me: error: $withval not found" >&2;}
  23576. { (exit 1); exit 1; }; }
  23577. fi
  23578. else
  23579. echo "$as_me:$LINENO: result: no" >&5
  23580. echo "${ECHO_T}no" >&6
  23581. fi;
  23582. if test -n "$with_kerberos" ; then
  23583. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  23584. if test -z "$KRB5_CONFIG_BIN" ; then
  23585. # Extract the first word of "krb5-config", so it can be a program name with args.
  23586. set dummy krb5-config; ac_word=$2
  23587. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23588. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23589. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  23590. echo $ECHO_N "(cached) $ECHO_C" >&6
  23591. else
  23592. case $KRB5_CONFIG_BIN in
  23593. [\\/]* | ?:[\\/]*)
  23594. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  23595. ;;
  23596. *)
  23597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23598. for as_dir in $PATH
  23599. do
  23600. IFS=$as_save_IFS
  23601. test -z "$as_dir" && as_dir=.
  23602. for ac_exec_ext in '' $ac_executable_extensions; do
  23603. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23604. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  23605. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23606. break 2
  23607. fi
  23608. done
  23609. done
  23610. ;;
  23611. esac
  23612. fi
  23613. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  23614. if test -n "$KRB5_CONFIG_BIN"; then
  23615. echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  23616. echo "${ECHO_T}$KRB5_CONFIG_BIN" >&6
  23617. else
  23618. echo "$as_me:$LINENO: result: no" >&5
  23619. echo "${ECHO_T}no" >&6
  23620. fi
  23621. fi
  23622. if test -n "$KRB5_CONFIG_BIN" ; then
  23623. echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  23624. echo $ECHO_N "checking for kerberos with $KRB5_CONFIG_BIN... $ECHO_C" >&6
  23625. if test -z "$kerberos_libdir" ; then
  23626. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  23627. fi
  23628. if test -z "$kerberos_incdir" ; then
  23629. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  23630. fi
  23631. if test -n "$kerberos_lib" ; then
  23632. echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  23633. echo "${ECHO_T}using kerberos found with $KRB5_CONFIG_BIN" >&6
  23634. have_krb5=yes
  23635. fi
  23636. fi
  23637. fi
  23638. fi
  23639. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  23640. # save these in order to set them to use the check macros below
  23641. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  23642. save_CPPFLAGS="$CPPFLAGS"
  23643. if test -n "$kerberos_incdir" ; then
  23644. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  23645. fi
  23646. save_LDFLAGS="$LDFLAGS"
  23647. if test -n "$kerberos_libdir" ; then
  23648. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  23649. fi
  23650. krb5_impl=mit
  23651. for ac_header in heim_err.h
  23652. do
  23653. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23654. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23655. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23657. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23658. echo $ECHO_N "(cached) $ECHO_C" >&6
  23659. fi
  23660. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23661. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23662. else
  23663. # Is the header compilable?
  23664. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23665. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23666. cat >conftest.$ac_ext <<_ACEOF
  23667. /* confdefs.h. */
  23668. _ACEOF
  23669. cat confdefs.h >>conftest.$ac_ext
  23670. cat >>conftest.$ac_ext <<_ACEOF
  23671. /* end confdefs.h. */
  23672. $ac_includes_default
  23673. #include <$ac_header>
  23674. _ACEOF
  23675. rm -f conftest.$ac_objext
  23676. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23677. (eval $ac_compile) 2>conftest.er1
  23678. ac_status=$?
  23679. grep -v '^ *+' conftest.er1 >conftest.err
  23680. rm -f conftest.er1
  23681. cat conftest.err >&5
  23682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23683. (exit $ac_status); } &&
  23684. { ac_try='test -z "$ac_c_werror_flag"
  23685. || test ! -s conftest.err'
  23686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23687. (eval $ac_try) 2>&5
  23688. ac_status=$?
  23689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23690. (exit $ac_status); }; } &&
  23691. { ac_try='test -s conftest.$ac_objext'
  23692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23693. (eval $ac_try) 2>&5
  23694. ac_status=$?
  23695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23696. (exit $ac_status); }; }; then
  23697. ac_header_compiler=yes
  23698. else
  23699. echo "$as_me: failed program was:" >&5
  23700. sed 's/^/| /' conftest.$ac_ext >&5
  23701. ac_header_compiler=no
  23702. fi
  23703. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23704. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23705. echo "${ECHO_T}$ac_header_compiler" >&6
  23706. # Is the header present?
  23707. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23708. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23709. cat >conftest.$ac_ext <<_ACEOF
  23710. /* confdefs.h. */
  23711. _ACEOF
  23712. cat confdefs.h >>conftest.$ac_ext
  23713. cat >>conftest.$ac_ext <<_ACEOF
  23714. /* end confdefs.h. */
  23715. #include <$ac_header>
  23716. _ACEOF
  23717. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23718. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23719. ac_status=$?
  23720. grep -v '^ *+' conftest.er1 >conftest.err
  23721. rm -f conftest.er1
  23722. cat conftest.err >&5
  23723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23724. (exit $ac_status); } >/dev/null; then
  23725. if test -s conftest.err; then
  23726. ac_cpp_err=$ac_c_preproc_warn_flag
  23727. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23728. else
  23729. ac_cpp_err=
  23730. fi
  23731. else
  23732. ac_cpp_err=yes
  23733. fi
  23734. if test -z "$ac_cpp_err"; then
  23735. ac_header_preproc=yes
  23736. else
  23737. echo "$as_me: failed program was:" >&5
  23738. sed 's/^/| /' conftest.$ac_ext >&5
  23739. ac_header_preproc=no
  23740. fi
  23741. rm -f conftest.err conftest.$ac_ext
  23742. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23743. echo "${ECHO_T}$ac_header_preproc" >&6
  23744. # So? What about this header?
  23745. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23746. yes:no: )
  23747. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23748. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23749. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23750. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23751. ac_header_preproc=yes
  23752. ;;
  23753. no:yes:* )
  23754. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23755. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23756. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23757. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23758. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23759. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23760. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23761. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23762. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23763. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23764. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23765. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23766. (
  23767. cat <<\_ASBOX
  23768. ## ------------------------------------------ ##
  23769. ## Report this to http://bugzilla.redhat.com/ ##
  23770. ## ------------------------------------------ ##
  23771. _ASBOX
  23772. ) |
  23773. sed "s/^/$as_me: WARNING: /" >&2
  23774. ;;
  23775. esac
  23776. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23777. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23778. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23779. echo $ECHO_N "(cached) $ECHO_C" >&6
  23780. else
  23781. eval "$as_ac_Header=\$ac_header_preproc"
  23782. fi
  23783. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23784. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23785. fi
  23786. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23787. cat >>confdefs.h <<_ACEOF
  23788. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23789. _ACEOF
  23790. fi
  23791. done
  23792. if test $ac_cv_header_heim_err_h = yes ; then
  23793. krb5_impl=heimdal
  23794. fi
  23795. if test "x$krb5_impl" = "xmit"; then
  23796. echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  23797. echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
  23798. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  23799. echo $ECHO_N "(cached) $ECHO_C" >&6
  23800. else
  23801. ac_check_lib_save_LIBS=$LIBS
  23802. LIBS="-lk5crypto $LIBS"
  23803. cat >conftest.$ac_ext <<_ACEOF
  23804. /* confdefs.h. */
  23805. _ACEOF
  23806. cat confdefs.h >>conftest.$ac_ext
  23807. cat >>conftest.$ac_ext <<_ACEOF
  23808. /* end confdefs.h. */
  23809. int
  23810. main ()
  23811. {
  23812. main ();
  23813. ;
  23814. return 0;
  23815. }
  23816. _ACEOF
  23817. rm -f conftest.$ac_objext conftest$ac_exeext
  23818. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23819. (eval $ac_link) 2>conftest.er1
  23820. ac_status=$?
  23821. grep -v '^ *+' conftest.er1 >conftest.err
  23822. rm -f conftest.er1
  23823. cat conftest.err >&5
  23824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23825. (exit $ac_status); } &&
  23826. { ac_try='test -z "$ac_c_werror_flag"
  23827. || test ! -s conftest.err'
  23828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23829. (eval $ac_try) 2>&5
  23830. ac_status=$?
  23831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23832. (exit $ac_status); }; } &&
  23833. { ac_try='test -s conftest$ac_exeext'
  23834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23835. (eval $ac_try) 2>&5
  23836. ac_status=$?
  23837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23838. (exit $ac_status); }; }; then
  23839. ac_cv_lib_k5crypto_main=yes
  23840. else
  23841. echo "$as_me: failed program was:" >&5
  23842. sed 's/^/| /' conftest.$ac_ext >&5
  23843. ac_cv_lib_k5crypto_main=no
  23844. fi
  23845. rm -f conftest.err conftest.$ac_objext \
  23846. conftest$ac_exeext conftest.$ac_ext
  23847. LIBS=$ac_check_lib_save_LIBS
  23848. fi
  23849. echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  23850. echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
  23851. if test $ac_cv_lib_k5crypto_main = yes; then
  23852. krb5crypto=k5crypto
  23853. else
  23854. krb5crypto=crypto
  23855. fi
  23856. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23857. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23858. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23859. echo $ECHO_N "(cached) $ECHO_C" >&6
  23860. else
  23861. ac_check_lib_save_LIBS=$LIBS
  23862. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  23863. cat >conftest.$ac_ext <<_ACEOF
  23864. /* confdefs.h. */
  23865. _ACEOF
  23866. cat confdefs.h >>conftest.$ac_ext
  23867. cat >>conftest.$ac_ext <<_ACEOF
  23868. /* end confdefs.h. */
  23869. int
  23870. main ()
  23871. {
  23872. main ();
  23873. ;
  23874. return 0;
  23875. }
  23876. _ACEOF
  23877. rm -f conftest.$ac_objext conftest$ac_exeext
  23878. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23879. (eval $ac_link) 2>conftest.er1
  23880. ac_status=$?
  23881. grep -v '^ *+' conftest.er1 >conftest.err
  23882. rm -f conftest.er1
  23883. cat conftest.err >&5
  23884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23885. (exit $ac_status); } &&
  23886. { ac_try='test -z "$ac_c_werror_flag"
  23887. || test ! -s conftest.err'
  23888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23889. (eval $ac_try) 2>&5
  23890. ac_status=$?
  23891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23892. (exit $ac_status); }; } &&
  23893. { ac_try='test -s conftest$ac_exeext'
  23894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23895. (eval $ac_try) 2>&5
  23896. ac_status=$?
  23897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23898. (exit $ac_status); }; }; then
  23899. ac_cv_lib_krb5_main=yes
  23900. else
  23901. echo "$as_me: failed program was:" >&5
  23902. sed 's/^/| /' conftest.$ac_ext >&5
  23903. ac_cv_lib_krb5_main=no
  23904. fi
  23905. rm -f conftest.err conftest.$ac_objext \
  23906. conftest$ac_exeext conftest.$ac_ext
  23907. LIBS=$ac_check_lib_save_LIBS
  23908. fi
  23909. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23910. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23911. if test $ac_cv_lib_krb5_main = yes; then
  23912. have_krb5=yes
  23913. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  23914. else
  23915. have_krb5=no
  23916. fi
  23917. elif test "x$krb5_impl" = "xheimdal"; then
  23918. echo "$as_me:$LINENO: checking for main in -ldes" >&5
  23919. echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
  23920. if test "${ac_cv_lib_des_main+set}" = set; then
  23921. echo $ECHO_N "(cached) $ECHO_C" >&6
  23922. else
  23923. ac_check_lib_save_LIBS=$LIBS
  23924. LIBS="-ldes $LIBS"
  23925. cat >conftest.$ac_ext <<_ACEOF
  23926. /* confdefs.h. */
  23927. _ACEOF
  23928. cat confdefs.h >>conftest.$ac_ext
  23929. cat >>conftest.$ac_ext <<_ACEOF
  23930. /* end confdefs.h. */
  23931. int
  23932. main ()
  23933. {
  23934. main ();
  23935. ;
  23936. return 0;
  23937. }
  23938. _ACEOF
  23939. rm -f conftest.$ac_objext conftest$ac_exeext
  23940. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23941. (eval $ac_link) 2>conftest.er1
  23942. ac_status=$?
  23943. grep -v '^ *+' conftest.er1 >conftest.err
  23944. rm -f conftest.er1
  23945. cat conftest.err >&5
  23946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23947. (exit $ac_status); } &&
  23948. { ac_try='test -z "$ac_c_werror_flag"
  23949. || test ! -s conftest.err'
  23950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23951. (eval $ac_try) 2>&5
  23952. ac_status=$?
  23953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23954. (exit $ac_status); }; } &&
  23955. { ac_try='test -s conftest$ac_exeext'
  23956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23957. (eval $ac_try) 2>&5
  23958. ac_status=$?
  23959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23960. (exit $ac_status); }; }; then
  23961. ac_cv_lib_des_main=yes
  23962. else
  23963. echo "$as_me: failed program was:" >&5
  23964. sed 's/^/| /' conftest.$ac_ext >&5
  23965. ac_cv_lib_des_main=no
  23966. fi
  23967. rm -f conftest.err conftest.$ac_objext \
  23968. conftest$ac_exeext conftest.$ac_ext
  23969. LIBS=$ac_check_lib_save_LIBS
  23970. fi
  23971. echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  23972. echo "${ECHO_T}$ac_cv_lib_des_main" >&6
  23973. if test $ac_cv_lib_des_main = yes; then
  23974. krb5crypto=des
  23975. else
  23976. krb5crypto=crypto
  23977. fi
  23978. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23979. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23980. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23981. echo $ECHO_N "(cached) $ECHO_C" >&6
  23982. else
  23983. ac_check_lib_save_LIBS=$LIBS
  23984. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  23985. cat >conftest.$ac_ext <<_ACEOF
  23986. /* confdefs.h. */
  23987. _ACEOF
  23988. cat confdefs.h >>conftest.$ac_ext
  23989. cat >>conftest.$ac_ext <<_ACEOF
  23990. /* end confdefs.h. */
  23991. int
  23992. main ()
  23993. {
  23994. main ();
  23995. ;
  23996. return 0;
  23997. }
  23998. _ACEOF
  23999. rm -f conftest.$ac_objext conftest$ac_exeext
  24000. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24001. (eval $ac_link) 2>conftest.er1
  24002. ac_status=$?
  24003. grep -v '^ *+' conftest.er1 >conftest.err
  24004. rm -f conftest.er1
  24005. cat conftest.err >&5
  24006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24007. (exit $ac_status); } &&
  24008. { ac_try='test -z "$ac_c_werror_flag"
  24009. || test ! -s conftest.err'
  24010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24011. (eval $ac_try) 2>&5
  24012. ac_status=$?
  24013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24014. (exit $ac_status); }; } &&
  24015. { ac_try='test -s conftest$ac_exeext'
  24016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24017. (eval $ac_try) 2>&5
  24018. ac_status=$?
  24019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24020. (exit $ac_status); }; }; then
  24021. ac_cv_lib_krb5_main=yes
  24022. else
  24023. echo "$as_me: failed program was:" >&5
  24024. sed 's/^/| /' conftest.$ac_ext >&5
  24025. ac_cv_lib_krb5_main=no
  24026. fi
  24027. rm -f conftest.err conftest.$ac_objext \
  24028. conftest$ac_exeext conftest.$ac_ext
  24029. LIBS=$ac_check_lib_save_LIBS
  24030. fi
  24031. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  24032. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  24033. if test $ac_cv_lib_krb5_main = yes; then
  24034. have_krb5=yes
  24035. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  24036. else
  24037. have_krb5=no
  24038. fi
  24039. cat >>confdefs.h <<\_ACEOF
  24040. #define HAVE_HEIMDAL_KERBEROS 1
  24041. _ACEOF
  24042. else
  24043. have_krb5=no
  24044. { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  24045. echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  24046. fi
  24047. # reset to original values
  24048. CPPFLAGS="$save_CPPFLAGS"
  24049. LDFLAGS="$save_LDFLAGS"
  24050. if test -n "$kerberos_incdir" ; then
  24051. kerberos_inc="-I$kerberos_incdir"
  24052. fi
  24053. if test -n "$kerberos_libdir" ; then
  24054. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  24055. fi
  24056. fi
  24057. if test -n "$with_kerberos" ; then
  24058. if test "x$have_krb5" = "xyes" ; then
  24059. cat >>confdefs.h <<\_ACEOF
  24060. #define HAVE_KRB5 1
  24061. _ACEOF
  24062. else
  24063. { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  24064. echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  24065. { (exit 1); exit 1; }; }
  24066. fi
  24067. save_LIBS="$LIBS"
  24068. LIBS="$kerberos_lib"
  24069. save_CPPFLAGS="$CPPFLAGS"
  24070. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  24071. for ac_func in krb5_cc_new_unique
  24072. do
  24073. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24074. echo "$as_me:$LINENO: checking for $ac_func" >&5
  24075. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  24076. if eval "test \"\${$as_ac_var+set}\" = set"; then
  24077. echo $ECHO_N "(cached) $ECHO_C" >&6
  24078. else
  24079. cat >conftest.$ac_ext <<_ACEOF
  24080. /* confdefs.h. */
  24081. _ACEOF
  24082. cat confdefs.h >>conftest.$ac_ext
  24083. cat >>conftest.$ac_ext <<_ACEOF
  24084. /* end confdefs.h. */
  24085. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  24086. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24087. #define $ac_func innocuous_$ac_func
  24088. /* System header to define __stub macros and hopefully few prototypes,
  24089. which can conflict with char $ac_func (); below.
  24090. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24091. <limits.h> exists even on freestanding compilers. */
  24092. #ifdef __STDC__
  24093. # include <limits.h>
  24094. #else
  24095. # include <assert.h>
  24096. #endif
  24097. #undef $ac_func
  24098. /* Override any gcc2 internal prototype to avoid an error. */
  24099. #ifdef __cplusplus
  24100. extern "C"
  24101. {
  24102. #endif
  24103. /* We use char because int might match the return type of a gcc2
  24104. builtin and then its argument prototype would still apply. */
  24105. char $ac_func ();
  24106. /* The GNU C library defines this for functions which it implements
  24107. to always fail with ENOSYS. Some functions are actually named
  24108. something starting with __ and the normal name is an alias. */
  24109. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  24110. choke me
  24111. #else
  24112. char (*f) () = $ac_func;
  24113. #endif
  24114. #ifdef __cplusplus
  24115. }
  24116. #endif
  24117. int
  24118. main ()
  24119. {
  24120. return f != $ac_func;
  24121. ;
  24122. return 0;
  24123. }
  24124. _ACEOF
  24125. rm -f conftest.$ac_objext conftest$ac_exeext
  24126. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24127. (eval $ac_link) 2>conftest.er1
  24128. ac_status=$?
  24129. grep -v '^ *+' conftest.er1 >conftest.err
  24130. rm -f conftest.er1
  24131. cat conftest.err >&5
  24132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24133. (exit $ac_status); } &&
  24134. { ac_try='test -z "$ac_c_werror_flag"
  24135. || test ! -s conftest.err'
  24136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24137. (eval $ac_try) 2>&5
  24138. ac_status=$?
  24139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24140. (exit $ac_status); }; } &&
  24141. { ac_try='test -s conftest$ac_exeext'
  24142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24143. (eval $ac_try) 2>&5
  24144. ac_status=$?
  24145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24146. (exit $ac_status); }; }; then
  24147. eval "$as_ac_var=yes"
  24148. else
  24149. echo "$as_me: failed program was:" >&5
  24150. sed 's/^/| /' conftest.$ac_ext >&5
  24151. eval "$as_ac_var=no"
  24152. fi
  24153. rm -f conftest.err conftest.$ac_objext \
  24154. conftest$ac_exeext conftest.$ac_ext
  24155. fi
  24156. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  24157. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  24158. if test `eval echo '${'$as_ac_var'}'` = yes; then
  24159. cat >>confdefs.h <<_ACEOF
  24160. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24161. _ACEOF
  24162. fi
  24163. done
  24164. LIBS="$save_LIBS"
  24165. CPPFLAGS="$save_CPPFLAGS"
  24166. fi
  24167. # BEGIN COPYRIGHT BLOCK
  24168. # Copyright (C) 2007 Red Hat, Inc.
  24169. # All rights reserved.
  24170. #
  24171. # This program is free software; you can redistribute it and/or
  24172. # modify it under the terms of the GNU General Public License
  24173. # as published by the Free Software Foundation; either version 2
  24174. # of the License, or (at your option) any later version.
  24175. #
  24176. # This program is distributed in the hope that it will be useful,
  24177. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24178. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24179. # GNU General Public License for more details.
  24180. #
  24181. # You should have received a copy of the GNU General Public License
  24182. # along with this program; if not, write to the Free Software
  24183. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24184. #
  24185. # END COPYRIGHT BLOCK
  24186. { echo "$as_me:$LINENO: checking for PCRE..." >&5
  24187. echo "$as_me: checking for PCRE..." >&6;}
  24188. echo "$as_me:$LINENO: checking for --with-pcre" >&5
  24189. echo $ECHO_N "checking for --with-pcre... $ECHO_C" >&6
  24190. # Check whether --with-pcre or --without-pcre was given.
  24191. if test "${with_pcre+set}" = set; then
  24192. withval="$with_pcre"
  24193. if test "$withval" = "yes"; then
  24194. echo "$as_me:$LINENO: result: yes" >&5
  24195. echo "${ECHO_T}yes" >&6
  24196. elif test "$withval" = "no"; then
  24197. echo "$as_me:$LINENO: result: no" >&5
  24198. echo "${ECHO_T}no" >&6
  24199. { { echo "$as_me:$LINENO: error: PCRE is required." >&5
  24200. echo "$as_me: error: PCRE is required." >&2;}
  24201. { (exit 1); exit 1; }; }
  24202. elif test -d "$withval"/include -a -d "$withval"/lib; then
  24203. echo "$as_me:$LINENO: result: using $withval" >&5
  24204. echo "${ECHO_T}using $withval" >&6
  24205. PCREDIR=$withval
  24206. pcre_lib="-L$PCREDIR/lib"
  24207. pcre_libdir="$PCREDIR/lib"
  24208. pcre_incdir="$PCREDIR/include"
  24209. if ! test -e "$pcre_incdir/pcre.h" ; then
  24210. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  24211. echo "$as_me: error: $withval include dir not found" >&2;}
  24212. { (exit 1); exit 1; }; }
  24213. fi
  24214. pcre_inc="-I$pcre_incdir"
  24215. else
  24216. echo
  24217. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  24218. echo "$as_me: error: $withval not found" >&2;}
  24219. { (exit 1); exit 1; }; }
  24220. fi
  24221. else
  24222. echo "$as_me:$LINENO: result: yes" >&5
  24223. echo "${ECHO_T}yes" >&6
  24224. fi;
  24225. #
  24226. # if PCRE is not found yet, try pkg-config
  24227. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  24228. # Extract the first word of "pkg-config", so it can be a program name with args.
  24229. set dummy pkg-config; ac_word=$2
  24230. echo "$as_me:$LINENO: checking for $ac_word" >&5
  24231. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24232. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  24233. echo $ECHO_N "(cached) $ECHO_C" >&6
  24234. else
  24235. case $PKG_CONFIG in
  24236. [\\/]* | ?:[\\/]*)
  24237. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  24238. ;;
  24239. *)
  24240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24241. for as_dir in $PATH
  24242. do
  24243. IFS=$as_save_IFS
  24244. test -z "$as_dir" && as_dir=.
  24245. for ac_exec_ext in '' $ac_executable_extensions; do
  24246. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24247. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24248. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24249. break 2
  24250. fi
  24251. done
  24252. done
  24253. ;;
  24254. esac
  24255. fi
  24256. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  24257. if test -n "$PKG_CONFIG"; then
  24258. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  24259. echo "${ECHO_T}$PKG_CONFIG" >&6
  24260. else
  24261. echo "$as_me:$LINENO: result: no" >&5
  24262. echo "${ECHO_T}no" >&6
  24263. fi
  24264. echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  24265. echo $ECHO_N "checking for pcre with pkg-config... $ECHO_C" >&6
  24266. if test -n "$PKG_CONFIG"; then
  24267. if $PKG_CONFIG --exists pcre; then
  24268. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  24269. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  24270. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  24271. echo "$as_me:$LINENO: result: using system PCRE" >&5
  24272. echo "${ECHO_T}using system PCRE" >&6
  24273. elif $PKG_CONFIG --exists libpcre; then
  24274. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  24275. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  24276. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  24277. echo "$as_me:$LINENO: result: using system PCRE" >&5
  24278. echo "${ECHO_T}using system PCRE" >&6
  24279. else
  24280. { { echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  24281. echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  24282. { (exit 1); exit 1; }; }
  24283. fi
  24284. fi
  24285. fi
  24286. if test -z "$pcre_inc"; then
  24287. echo "$as_me:$LINENO: checking for pcre.h" >&5
  24288. echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
  24289. if test -f "/usr/include/pcre/pcre.h"; then
  24290. echo "$as_me:$LINENO: result: using /usr/include/pcre/pcre.h" >&5
  24291. echo "${ECHO_T}using /usr/include/pcre/pcre.h" >&6
  24292. pcre_incdir="/usr/include/pcre"
  24293. pcre_inc="-I/usr/include/pcre"
  24294. pcre_lib='-L$(libdir)'
  24295. pcre_libdir='$(libdir)'
  24296. elif test -f "/usr/include/pcre.h"; then
  24297. echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  24298. echo "${ECHO_T}using /usr/include/pcre.h" >&6
  24299. pcre_incdir="/usr/include"
  24300. pcre_inc="-I/usr/include"
  24301. pcre_lib='-L$(libdir)'
  24302. pcre_libdir='$(libdir)'
  24303. else
  24304. echo "$as_me:$LINENO: result: no" >&5
  24305. echo "${ECHO_T}no" >&6
  24306. { { echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  24307. echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  24308. { (exit 1); exit 1; }; }
  24309. fi
  24310. fi
  24311. # BEGIN COPYRIGHT BLOCK
  24312. # Copyright (C) 2009 Red Hat, Inc.
  24313. # All rights reserved.
  24314. #
  24315. # This program is free software; you can redistribute it and/or
  24316. # modify it under the terms of the GNU General Public License
  24317. # as published by the Free Software Foundation; either version 2
  24318. # of the License, or (at your option) any later version.
  24319. #
  24320. # This program is distributed in the hope that it will be useful,
  24321. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24322. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24323. # GNU General Public License for more details.
  24324. #
  24325. # You should have received a copy of the GNU General Public License
  24326. # along with this program; if not, write to the Free Software
  24327. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24328. #
  24329. # END COPYRIGHT BLOCK
  24330. { echo "$as_me:$LINENO: checking for SELinux..." >&5
  24331. echo "$as_me: checking for SELinux..." >&6;}
  24332. # check for --with-selinux
  24333. echo "$as_me:$LINENO: checking for --with-selinux" >&5
  24334. echo $ECHO_N "checking for --with-selinux... $ECHO_C" >&6
  24335. # Check whether --with-selinux or --without-selinux was given.
  24336. if test "${with_selinux+set}" = set; then
  24337. withval="$with_selinux"
  24338. if test "$withval" = "no"; then
  24339. echo "$as_me:$LINENO: result: no" >&5
  24340. echo "${ECHO_T}no" >&6
  24341. else
  24342. with_selinux=yes
  24343. echo "$as_me:$LINENO: result: yes" >&5
  24344. echo "${ECHO_T}yes" >&6
  24345. if test ! -f "/usr/share/selinux/devel/Makefile"; then
  24346. { { echo "$as_me:$LINENO: error: SELinux development tools (selinux-policy) not found" >&5
  24347. echo "$as_me: error: SELinux development tools (selinux-policy) not found" >&2;}
  24348. { (exit 1); exit 1; }; }
  24349. fi
  24350. fi
  24351. else
  24352. echo "$as_me:$LINENO: result: no" >&5
  24353. echo "${ECHO_T}no" >&6
  24354. fi;
  24355. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  24356. # set sasl_path for wrapper scripts
  24357. if test -z "$sasl_libdir" ; then
  24358. sasl_path="$libdir/sasl2"
  24359. else
  24360. sasl_path="$sasl_libdir/sasl2"
  24361. fi
  24362. if test "$with_selinux" = "yes"; then
  24363. SELINUX_TRUE=
  24364. SELINUX_FALSE='#'
  24365. else
  24366. SELINUX_TRUE='#'
  24367. SELINUX_FALSE=
  24368. fi
  24369. if test "$with_openldap" = "yes"; then
  24370. OPENLDAP_TRUE=
  24371. OPENLDAP_FALSE='#'
  24372. else
  24373. OPENLDAP_TRUE='#'
  24374. OPENLDAP_FALSE=
  24375. fi
  24376. # write out paths for binary components
  24377. cat >>confdefs.h <<\_ACEOF
  24378. #define LDAP_DEBUG 1
  24379. _ACEOF
  24380. cat >>confdefs.h <<\_ACEOF
  24381. #define LDAP_DONT_USE_SMARTHEAP 1
  24382. _ACEOF
  24383. # libtool on fedora/rhel contains some gcc-isms which cause problems
  24384. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  24385. # we remove them here
  24386. if test "$GCC" != yes ; then
  24387. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  24388. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  24389. cp -p libtool libtool.orig
  24390. cp -p libtool libtool.tmp
  24391. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  24392. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  24393. # perl produced write-only code . . .
  24394. sed -e '/^gcc_dir/ d' \
  24395. -e '/^gcc_ver/ d' \
  24396. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  24397. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  24398. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  24399. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  24400. libtool > libtool.tmp
  24401. cp -p libtool.tmp libtool
  24402. rm -f libtool.tmp
  24403. fi
  24404. ac_config_files="$ac_config_files Makefile"
  24405. cat >confcache <<\_ACEOF
  24406. # This file is a shell script that caches the results of configure
  24407. # tests run on this system so they can be shared between configure
  24408. # scripts and configure runs, see configure's option --config-cache.
  24409. # It is not useful on other systems. If it contains results you don't
  24410. # want to keep, you may remove or edit it.
  24411. #
  24412. # config.status only pays attention to the cache file if you give it
  24413. # the --recheck option to rerun configure.
  24414. #
  24415. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24416. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24417. # following values.
  24418. _ACEOF
  24419. # The following way of writing the cache mishandles newlines in values,
  24420. # but we know of no workaround that is simple, portable, and efficient.
  24421. # So, don't put newlines in cache variables' values.
  24422. # Ultrix sh set writes to stderr and can't be redirected directly,
  24423. # and sets the high bit in the cache file unless we assign to the vars.
  24424. {
  24425. (set) 2>&1 |
  24426. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  24427. *ac_space=\ *)
  24428. # `set' does not quote correctly, so add quotes (double-quote
  24429. # substitution turns \\\\ into \\, and sed turns \\ into \).
  24430. sed -n \
  24431. "s/'/'\\\\''/g;
  24432. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24433. ;;
  24434. *)
  24435. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24436. sed -n \
  24437. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  24438. ;;
  24439. esac;
  24440. } |
  24441. sed '
  24442. t clear
  24443. : clear
  24444. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  24445. t end
  24446. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24447. : end' >>confcache
  24448. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  24449. if test -w $cache_file; then
  24450. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  24451. cat confcache >$cache_file
  24452. else
  24453. echo "not updating unwritable cache $cache_file"
  24454. fi
  24455. fi
  24456. rm -f confcache
  24457. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24458. # Let make expand exec_prefix.
  24459. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24460. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  24461. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  24462. # trailing colons and then remove the whole line if VPATH becomes empty
  24463. # (actually we leave an empty line to preserve line numbers).
  24464. if test "x$srcdir" = x.; then
  24465. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  24466. s/:*\$(srcdir):*/:/;
  24467. s/:*\${srcdir}:*/:/;
  24468. s/:*@srcdir@:*/:/;
  24469. s/^\([^=]*=[ ]*\):*/\1/;
  24470. s/:*$//;
  24471. s/^[^=]*=[ ]*$//;
  24472. }'
  24473. fi
  24474. DEFS=-DHAVE_CONFIG_H
  24475. ac_libobjs=
  24476. ac_ltlibobjs=
  24477. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24478. # 1. Remove the extension, and $U if already installed.
  24479. ac_i=`echo "$ac_i" |
  24480. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  24481. # 2. Add them.
  24482. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  24483. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  24484. done
  24485. LIBOBJS=$ac_libobjs
  24486. LTLIBOBJS=$ac_ltlibobjs
  24487. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  24488. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  24489. Usually this means the macro was only invoked conditionally." >&5
  24490. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  24491. Usually this means the macro was only invoked conditionally." >&2;}
  24492. { (exit 1); exit 1; }; }
  24493. fi
  24494. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  24495. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  24496. Usually this means the macro was only invoked conditionally." >&5
  24497. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  24498. Usually this means the macro was only invoked conditionally." >&2;}
  24499. { (exit 1); exit 1; }; }
  24500. fi
  24501. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  24502. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  24503. Usually this means the macro was only invoked conditionally." >&5
  24504. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  24505. Usually this means the macro was only invoked conditionally." >&2;}
  24506. { (exit 1); exit 1; }; }
  24507. fi
  24508. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  24509. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  24510. Usually this means the macro was only invoked conditionally." >&5
  24511. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  24512. Usually this means the macro was only invoked conditionally." >&2;}
  24513. { (exit 1); exit 1; }; }
  24514. fi
  24515. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  24516. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  24517. Usually this means the macro was only invoked conditionally." >&5
  24518. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  24519. Usually this means the macro was only invoked conditionally." >&2;}
  24520. { (exit 1); exit 1; }; }
  24521. fi
  24522. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  24523. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  24524. Usually this means the macro was only invoked conditionally." >&5
  24525. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  24526. Usually this means the macro was only invoked conditionally." >&2;}
  24527. { (exit 1); exit 1; }; }
  24528. fi
  24529. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  24530. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  24531. Usually this means the macro was only invoked conditionally." >&5
  24532. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  24533. Usually this means the macro was only invoked conditionally." >&2;}
  24534. { (exit 1); exit 1; }; }
  24535. fi
  24536. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  24537. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  24538. Usually this means the macro was only invoked conditionally." >&5
  24539. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  24540. Usually this means the macro was only invoked conditionally." >&2;}
  24541. { (exit 1); exit 1; }; }
  24542. fi
  24543. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  24544. { { echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  24545. Usually this means the macro was only invoked conditionally." >&5
  24546. echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  24547. Usually this means the macro was only invoked conditionally." >&2;}
  24548. { (exit 1); exit 1; }; }
  24549. fi
  24550. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  24551. { { echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24552. Usually this means the macro was only invoked conditionally." >&5
  24553. echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24554. Usually this means the macro was only invoked conditionally." >&2;}
  24555. { (exit 1); exit 1; }; }
  24556. fi
  24557. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  24558. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  24559. Usually this means the macro was only invoked conditionally." >&5
  24560. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  24561. Usually this means the macro was only invoked conditionally." >&2;}
  24562. { (exit 1); exit 1; }; }
  24563. fi
  24564. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  24565. { { echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  24566. Usually this means the macro was only invoked conditionally." >&5
  24567. echo "$as_me: error: conditional \"enable_presence\" was never defined.
  24568. Usually this means the macro was only invoked conditionally." >&2;}
  24569. { (exit 1); exit 1; }; }
  24570. fi
  24571. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  24572. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  24573. Usually this means the macro was only invoked conditionally." >&5
  24574. echo "$as_me: error: conditional \"WINNT\" was never defined.
  24575. Usually this means the macro was only invoked conditionally." >&2;}
  24576. { (exit 1); exit 1; }; }
  24577. fi
  24578. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  24579. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  24580. Usually this means the macro was only invoked conditionally." >&5
  24581. echo "$as_me: error: conditional \"HPUX\" was never defined.
  24582. Usually this means the macro was only invoked conditionally." >&2;}
  24583. { (exit 1); exit 1; }; }
  24584. fi
  24585. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  24586. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  24587. Usually this means the macro was only invoked conditionally." >&5
  24588. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  24589. Usually this means the macro was only invoked conditionally." >&2;}
  24590. { (exit 1); exit 1; }; }
  24591. fi
  24592. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  24593. { { echo "$as_me:$LINENO: error: conditional \"SELINUX\" was never defined.
  24594. Usually this means the macro was only invoked conditionally." >&5
  24595. echo "$as_me: error: conditional \"SELINUX\" was never defined.
  24596. Usually this means the macro was only invoked conditionally." >&2;}
  24597. { (exit 1); exit 1; }; }
  24598. fi
  24599. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  24600. { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  24601. Usually this means the macro was only invoked conditionally." >&5
  24602. echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  24603. Usually this means the macro was only invoked conditionally." >&2;}
  24604. { (exit 1); exit 1; }; }
  24605. fi
  24606. : ${CONFIG_STATUS=./config.status}
  24607. ac_clean_files_save=$ac_clean_files
  24608. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24609. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  24610. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  24611. cat >$CONFIG_STATUS <<_ACEOF
  24612. #! $SHELL
  24613. # Generated by $as_me.
  24614. # Run this file to recreate the current configuration.
  24615. # Compiler output produced by configure, useful for debugging
  24616. # configure, is in config.log if it exists.
  24617. debug=false
  24618. ac_cs_recheck=false
  24619. ac_cs_silent=false
  24620. SHELL=\${CONFIG_SHELL-$SHELL}
  24621. _ACEOF
  24622. cat >>$CONFIG_STATUS <<\_ACEOF
  24623. ## --------------------- ##
  24624. ## M4sh Initialization. ##
  24625. ## --------------------- ##
  24626. # Be Bourne compatible
  24627. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  24628. emulate sh
  24629. NULLCMD=:
  24630. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  24631. # is contrary to our usage. Disable this feature.
  24632. alias -g '${1+"$@"}'='"$@"'
  24633. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24634. set -o posix
  24635. fi
  24636. DUALCASE=1; export DUALCASE # for MKS sh
  24637. # Support unset when possible.
  24638. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24639. as_unset=unset
  24640. else
  24641. as_unset=false
  24642. fi
  24643. # Work around bugs in pre-3.0 UWIN ksh.
  24644. $as_unset ENV MAIL MAILPATH
  24645. PS1='$ '
  24646. PS2='> '
  24647. PS4='+ '
  24648. # NLS nuisances.
  24649. for as_var in \
  24650. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  24651. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  24652. LC_TELEPHONE LC_TIME
  24653. do
  24654. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  24655. eval $as_var=C; export $as_var
  24656. else
  24657. $as_unset $as_var
  24658. fi
  24659. done
  24660. # Required to use basename.
  24661. if expr a : '\(a\)' >/dev/null 2>&1; then
  24662. as_expr=expr
  24663. else
  24664. as_expr=false
  24665. fi
  24666. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  24667. as_basename=basename
  24668. else
  24669. as_basename=false
  24670. fi
  24671. # Name of the executable.
  24672. as_me=`$as_basename "$0" ||
  24673. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24674. X"$0" : 'X\(//\)$' \| \
  24675. X"$0" : 'X\(/\)$' \| \
  24676. . : '\(.\)' 2>/dev/null ||
  24677. echo X/"$0" |
  24678. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  24679. /^X\/\(\/\/\)$/{ s//\1/; q; }
  24680. /^X\/\(\/\).*/{ s//\1/; q; }
  24681. s/.*/./; q'`
  24682. # PATH needs CR, and LINENO needs CR and PATH.
  24683. # Avoid depending upon Character Ranges.
  24684. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24685. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24686. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24687. as_cr_digits='0123456789'
  24688. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24689. # The user is always right.
  24690. if test "${PATH_SEPARATOR+set}" != set; then
  24691. echo "#! /bin/sh" >conf$$.sh
  24692. echo "exit 0" >>conf$$.sh
  24693. chmod +x conf$$.sh
  24694. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  24695. PATH_SEPARATOR=';'
  24696. else
  24697. PATH_SEPARATOR=:
  24698. fi
  24699. rm -f conf$$.sh
  24700. fi
  24701. as_lineno_1=$LINENO
  24702. as_lineno_2=$LINENO
  24703. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24704. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24705. test "x$as_lineno_3" = "x$as_lineno_2" || {
  24706. # Find who we are. Look in the path if we contain no path at all
  24707. # relative or not.
  24708. case $0 in
  24709. *[\\/]* ) as_myself=$0 ;;
  24710. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24711. for as_dir in $PATH
  24712. do
  24713. IFS=$as_save_IFS
  24714. test -z "$as_dir" && as_dir=.
  24715. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  24716. done
  24717. ;;
  24718. esac
  24719. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24720. # in which case we are not to be found in the path.
  24721. if test "x$as_myself" = x; then
  24722. as_myself=$0
  24723. fi
  24724. if test ! -f "$as_myself"; then
  24725. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  24726. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  24727. { (exit 1); exit 1; }; }
  24728. fi
  24729. case $CONFIG_SHELL in
  24730. '')
  24731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24732. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  24733. do
  24734. IFS=$as_save_IFS
  24735. test -z "$as_dir" && as_dir=.
  24736. for as_base in sh bash ksh sh5; do
  24737. case $as_dir in
  24738. /*)
  24739. if ("$as_dir/$as_base" -c '
  24740. as_lineno_1=$LINENO
  24741. as_lineno_2=$LINENO
  24742. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24743. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24744. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  24745. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  24746. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  24747. CONFIG_SHELL=$as_dir/$as_base
  24748. export CONFIG_SHELL
  24749. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  24750. fi;;
  24751. esac
  24752. done
  24753. done
  24754. ;;
  24755. esac
  24756. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  24757. # uniformly replaced by the line number. The first 'sed' inserts a
  24758. # line-number line before each line; the second 'sed' does the real
  24759. # work. The second script uses 'N' to pair each line-number line
  24760. # with the numbered line, and appends trailing '-' during
  24761. # substitution so that $LINENO is not a special case at line end.
  24762. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  24763. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  24764. sed '=' <$as_myself |
  24765. sed '
  24766. N
  24767. s,$,-,
  24768. : loop
  24769. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  24770. t loop
  24771. s,-$,,
  24772. s,^['$as_cr_digits']*\n,,
  24773. ' >$as_me.lineno &&
  24774. chmod +x $as_me.lineno ||
  24775. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  24776. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  24777. { (exit 1); exit 1; }; }
  24778. # Don't try to exec as it changes $[0], causing all sort of problems
  24779. # (the dirname of $[0] is not the place where we might find the
  24780. # original and so on. Autoconf is especially sensible to this).
  24781. . ./$as_me.lineno
  24782. # Exit status is that of the last command.
  24783. exit
  24784. }
  24785. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  24786. *c*,-n*) ECHO_N= ECHO_C='
  24787. ' ECHO_T=' ' ;;
  24788. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  24789. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  24790. esac
  24791. if expr a : '\(a\)' >/dev/null 2>&1; then
  24792. as_expr=expr
  24793. else
  24794. as_expr=false
  24795. fi
  24796. rm -f conf$$ conf$$.exe conf$$.file
  24797. echo >conf$$.file
  24798. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24799. # We could just check for DJGPP; but this test a) works b) is more generic
  24800. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  24801. if test -f conf$$.exe; then
  24802. # Don't use ln at all; we don't have any links
  24803. as_ln_s='cp -p'
  24804. else
  24805. as_ln_s='ln -s'
  24806. fi
  24807. elif ln conf$$.file conf$$ 2>/dev/null; then
  24808. as_ln_s=ln
  24809. else
  24810. as_ln_s='cp -p'
  24811. fi
  24812. rm -f conf$$ conf$$.exe conf$$.file
  24813. if mkdir -p . 2>/dev/null; then
  24814. as_mkdir_p=:
  24815. else
  24816. test -d ./-p && rmdir ./-p
  24817. as_mkdir_p=false
  24818. fi
  24819. as_executable_p="test -f"
  24820. # Sed expression to map a string onto a valid CPP name.
  24821. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24822. # Sed expression to map a string onto a valid variable name.
  24823. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24824. # IFS
  24825. # We need space, tab and new line, in precisely that order.
  24826. as_nl='
  24827. '
  24828. IFS=" $as_nl"
  24829. # CDPATH.
  24830. $as_unset CDPATH
  24831. exec 6>&1
  24832. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  24833. # report actual input values of CONFIG_FILES etc. instead of their
  24834. # values after options handling. Logging --version etc. is OK.
  24835. exec 5>>config.log
  24836. {
  24837. echo
  24838. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24839. ## Running $as_me. ##
  24840. _ASBOX
  24841. } >&5
  24842. cat >&5 <<_CSEOF
  24843. This file was extended by dirsrv $as_me 1.0, which was
  24844. generated by GNU Autoconf 2.59. Invocation command line was
  24845. CONFIG_FILES = $CONFIG_FILES
  24846. CONFIG_HEADERS = $CONFIG_HEADERS
  24847. CONFIG_LINKS = $CONFIG_LINKS
  24848. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24849. $ $0 $@
  24850. _CSEOF
  24851. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  24852. echo >&5
  24853. _ACEOF
  24854. # Files that config.status was made for.
  24855. if test -n "$ac_config_files"; then
  24856. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  24857. fi
  24858. if test -n "$ac_config_headers"; then
  24859. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  24860. fi
  24861. if test -n "$ac_config_links"; then
  24862. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  24863. fi
  24864. if test -n "$ac_config_commands"; then
  24865. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  24866. fi
  24867. cat >>$CONFIG_STATUS <<\_ACEOF
  24868. ac_cs_usage="\
  24869. \`$as_me' instantiates files from templates according to the
  24870. current configuration.
  24871. Usage: $0 [OPTIONS] [FILE]...
  24872. -h, --help print this help, then exit
  24873. -V, --version print version number, then exit
  24874. -q, --quiet do not print progress messages
  24875. -d, --debug don't remove temporary files
  24876. --recheck update $as_me by reconfiguring in the same conditions
  24877. --file=FILE[:TEMPLATE]
  24878. instantiate the configuration file FILE
  24879. --header=FILE[:TEMPLATE]
  24880. instantiate the configuration header FILE
  24881. Configuration files:
  24882. $config_files
  24883. Configuration headers:
  24884. $config_headers
  24885. Configuration commands:
  24886. $config_commands
  24887. Report bugs to <[email protected]>."
  24888. _ACEOF
  24889. cat >>$CONFIG_STATUS <<_ACEOF
  24890. ac_cs_version="\\
  24891. dirsrv config.status 1.0
  24892. configured by $0, generated by GNU Autoconf 2.59,
  24893. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  24894. Copyright (C) 2003 Free Software Foundation, Inc.
  24895. This config.status script is free software; the Free Software Foundation
  24896. gives unlimited permission to copy, distribute and modify it."
  24897. srcdir=$srcdir
  24898. INSTALL="$INSTALL"
  24899. _ACEOF
  24900. cat >>$CONFIG_STATUS <<\_ACEOF
  24901. # If no file are specified by the user, then we need to provide default
  24902. # value. By we need to know if files were specified by the user.
  24903. ac_need_defaults=:
  24904. while test $# != 0
  24905. do
  24906. case $1 in
  24907. --*=*)
  24908. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  24909. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  24910. ac_shift=:
  24911. ;;
  24912. -*)
  24913. ac_option=$1
  24914. ac_optarg=$2
  24915. ac_shift=shift
  24916. ;;
  24917. *) # This is not an option, so the user has probably given explicit
  24918. # arguments.
  24919. ac_option=$1
  24920. ac_need_defaults=false;;
  24921. esac
  24922. case $ac_option in
  24923. # Handling of the options.
  24924. _ACEOF
  24925. cat >>$CONFIG_STATUS <<\_ACEOF
  24926. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24927. ac_cs_recheck=: ;;
  24928. --version | --vers* | -V )
  24929. echo "$ac_cs_version"; exit 0 ;;
  24930. --he | --h)
  24931. # Conflict between --help and --header
  24932. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  24933. Try \`$0 --help' for more information." >&5
  24934. echo "$as_me: error: ambiguous option: $1
  24935. Try \`$0 --help' for more information." >&2;}
  24936. { (exit 1); exit 1; }; };;
  24937. --help | --hel | -h )
  24938. echo "$ac_cs_usage"; exit 0 ;;
  24939. --debug | --d* | -d )
  24940. debug=: ;;
  24941. --file | --fil | --fi | --f )
  24942. $ac_shift
  24943. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  24944. ac_need_defaults=false;;
  24945. --header | --heade | --head | --hea )
  24946. $ac_shift
  24947. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  24948. ac_need_defaults=false;;
  24949. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24950. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24951. ac_cs_silent=: ;;
  24952. # This is an error.
  24953. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  24954. Try \`$0 --help' for more information." >&5
  24955. echo "$as_me: error: unrecognized option: $1
  24956. Try \`$0 --help' for more information." >&2;}
  24957. { (exit 1); exit 1; }; } ;;
  24958. *) ac_config_targets="$ac_config_targets $1" ;;
  24959. esac
  24960. shift
  24961. done
  24962. ac_configure_extra_args=
  24963. if $ac_cs_silent; then
  24964. exec 6>/dev/null
  24965. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24966. fi
  24967. _ACEOF
  24968. cat >>$CONFIG_STATUS <<_ACEOF
  24969. if \$ac_cs_recheck; then
  24970. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  24971. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24972. fi
  24973. _ACEOF
  24974. cat >>$CONFIG_STATUS <<_ACEOF
  24975. #
  24976. # INIT-COMMANDS section.
  24977. #
  24978. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24979. _ACEOF
  24980. cat >>$CONFIG_STATUS <<\_ACEOF
  24981. for ac_config_target in $ac_config_targets
  24982. do
  24983. case "$ac_config_target" in
  24984. # Handling of arguments.
  24985. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24986. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24987. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24988. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  24989. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  24990. { (exit 1); exit 1; }; };;
  24991. esac
  24992. done
  24993. # If the user did not use the arguments to specify the items to instantiate,
  24994. # then the envvar interface is used. Set only those that are not.
  24995. # We use the long form for the default assignment because of an extremely
  24996. # bizarre bug on SunOS 4.1.3.
  24997. if $ac_need_defaults; then
  24998. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24999. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  25000. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  25001. fi
  25002. # Have a temporary directory for convenience. Make it in the build tree
  25003. # simply because there is no reason to put it here, and in addition,
  25004. # creating and moving files from /tmp can sometimes cause problems.
  25005. # Create a temporary directory, and hook for its removal unless debugging.
  25006. $debug ||
  25007. {
  25008. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  25009. trap '{ (exit 1); exit 1; }' 1 2 13 15
  25010. }
  25011. # Create a (secure) tmp directory for tmp files.
  25012. {
  25013. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  25014. test -n "$tmp" && test -d "$tmp"
  25015. } ||
  25016. {
  25017. tmp=./confstat$$-$RANDOM
  25018. (umask 077 && mkdir $tmp)
  25019. } ||
  25020. {
  25021. echo "$me: cannot create a temporary directory in ." >&2
  25022. { (exit 1); exit 1; }
  25023. }
  25024. _ACEOF
  25025. cat >>$CONFIG_STATUS <<_ACEOF
  25026. #
  25027. # CONFIG_FILES section.
  25028. #
  25029. # No need to generate the scripts if there are no CONFIG_FILES.
  25030. # This happens for instance when ./config.status config.h
  25031. if test -n "\$CONFIG_FILES"; then
  25032. # Protect against being on the right side of a sed subst in config.status.
  25033. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  25034. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  25035. s,@SHELL@,$SHELL,;t t
  25036. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  25037. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  25038. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  25039. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  25040. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  25041. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  25042. s,@exec_prefix@,$exec_prefix,;t t
  25043. s,@prefix@,$prefix,;t t
  25044. s,@program_transform_name@,$program_transform_name,;t t
  25045. s,@bindir@,$bindir,;t t
  25046. s,@sbindir@,$sbindir,;t t
  25047. s,@libexecdir@,$libexecdir,;t t
  25048. s,@datadir@,$datadir,;t t
  25049. s,@sysconfdir@,$sysconfdir,;t t
  25050. s,@sharedstatedir@,$sharedstatedir,;t t
  25051. s,@localstatedir@,$localstatedir,;t t
  25052. s,@libdir@,$libdir,;t t
  25053. s,@includedir@,$includedir,;t t
  25054. s,@oldincludedir@,$oldincludedir,;t t
  25055. s,@infodir@,$infodir,;t t
  25056. s,@mandir@,$mandir,;t t
  25057. s,@build_alias@,$build_alias,;t t
  25058. s,@host_alias@,$host_alias,;t t
  25059. s,@target_alias@,$target_alias,;t t
  25060. s,@DEFS@,$DEFS,;t t
  25061. s,@ECHO_C@,$ECHO_C,;t t
  25062. s,@ECHO_N@,$ECHO_N,;t t
  25063. s,@ECHO_T@,$ECHO_T,;t t
  25064. s,@LIBS@,$LIBS,;t t
  25065. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  25066. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  25067. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  25068. s,@CYGPATH_W@,$CYGPATH_W,;t t
  25069. s,@PACKAGE@,$PACKAGE,;t t
  25070. s,@VERSION@,$VERSION,;t t
  25071. s,@ACLOCAL@,$ACLOCAL,;t t
  25072. s,@AUTOCONF@,$AUTOCONF,;t t
  25073. s,@AUTOMAKE@,$AUTOMAKE,;t t
  25074. s,@AUTOHEADER@,$AUTOHEADER,;t t
  25075. s,@MAKEINFO@,$MAKEINFO,;t t
  25076. s,@install_sh@,$install_sh,;t t
  25077. s,@STRIP@,$STRIP,;t t
  25078. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  25079. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  25080. s,@mkdir_p@,$mkdir_p,;t t
  25081. s,@AWK@,$AWK,;t t
  25082. s,@SET_MAKE@,$SET_MAKE,;t t
  25083. s,@am__leading_dot@,$am__leading_dot,;t t
  25084. s,@AMTAR@,$AMTAR,;t t
  25085. s,@am__tar@,$am__tar,;t t
  25086. s,@am__untar@,$am__untar,;t t
  25087. s,@CONSOLE_VERSION@,$CONSOLE_VERSION,;t t
  25088. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  25089. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  25090. s,@MAINT@,$MAINT,;t t
  25091. s,@build@,$build,;t t
  25092. s,@build_cpu@,$build_cpu,;t t
  25093. s,@build_vendor@,$build_vendor,;t t
  25094. s,@build_os@,$build_os,;t t
  25095. s,@host@,$host,;t t
  25096. s,@host_cpu@,$host_cpu,;t t
  25097. s,@host_vendor@,$host_vendor,;t t
  25098. s,@host_os@,$host_os,;t t
  25099. s,@CXX@,$CXX,;t t
  25100. s,@CXXFLAGS@,$CXXFLAGS,;t t
  25101. s,@LDFLAGS@,$LDFLAGS,;t t
  25102. s,@CPPFLAGS@,$CPPFLAGS,;t t
  25103. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  25104. s,@EXEEXT@,$EXEEXT,;t t
  25105. s,@OBJEXT@,$OBJEXT,;t t
  25106. s,@DEPDIR@,$DEPDIR,;t t
  25107. s,@am__include@,$am__include,;t t
  25108. s,@am__quote@,$am__quote,;t t
  25109. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  25110. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  25111. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  25112. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  25113. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  25114. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  25115. s,@CC@,$CC,;t t
  25116. s,@CFLAGS@,$CFLAGS,;t t
  25117. s,@ac_ct_CC@,$ac_ct_CC,;t t
  25118. s,@CCDEPMODE@,$CCDEPMODE,;t t
  25119. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  25120. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  25121. s,@CCAS@,$CCAS,;t t
  25122. s,@CCASFLAGS@,$CCASFLAGS,;t t
  25123. s,@SED@,$SED,;t t
  25124. s,@EGREP@,$EGREP,;t t
  25125. s,@LN_S@,$LN_S,;t t
  25126. s,@ECHO@,$ECHO,;t t
  25127. s,@AR@,$AR,;t t
  25128. s,@ac_ct_AR@,$ac_ct_AR,;t t
  25129. s,@RANLIB@,$RANLIB,;t t
  25130. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  25131. s,@CPP@,$CPP,;t t
  25132. s,@CXXCPP@,$CXXCPP,;t t
  25133. s,@F77@,$F77,;t t
  25134. s,@FFLAGS@,$FFLAGS,;t t
  25135. s,@ac_ct_F77@,$ac_ct_F77,;t t
  25136. s,@LIBTOOL@,$LIBTOOL,;t t
  25137. s,@LIBOBJS@,$LIBOBJS,;t t
  25138. s,@debug_defs@,$debug_defs,;t t
  25139. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  25140. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  25141. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  25142. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  25143. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  25144. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  25145. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  25146. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  25147. s,@enable_autobind_TRUE@,$enable_autobind_TRUE,;t t
  25148. s,@enable_autobind_FALSE@,$enable_autobind_FALSE,;t t
  25149. s,@enable_auto_dn_suffix_TRUE@,$enable_auto_dn_suffix_TRUE,;t t
  25150. s,@enable_auto_dn_suffix_FALSE@,$enable_auto_dn_suffix_FALSE,;t t
  25151. s,@enable_bitwise_TRUE@,$enable_bitwise_TRUE,;t t
  25152. s,@enable_bitwise_FALSE@,$enable_bitwise_FALSE,;t t
  25153. s,@enable_presence_TRUE@,$enable_presence_TRUE,;t t
  25154. s,@enable_presence_FALSE@,$enable_presence_FALSE,;t t
  25155. s,@with_fhs_opt@,$with_fhs_opt,;t t
  25156. s,@configdir@,$configdir,;t t
  25157. s,@sampledatadir@,$sampledatadir,;t t
  25158. s,@propertydir@,$propertydir,;t t
  25159. s,@schemadir@,$schemadir,;t t
  25160. s,@serverdir@,$serverdir,;t t
  25161. s,@serverplugindir@,$serverplugindir,;t t
  25162. s,@scripttemplatedir@,$scripttemplatedir,;t t
  25163. s,@perldir@,$perldir,;t t
  25164. s,@infdir@,$infdir,;t t
  25165. s,@mibdir@,$mibdir,;t t
  25166. s,@updatedir@,$updatedir,;t t
  25167. s,@defaultuser@,$defaultuser,;t t
  25168. s,@defaultgroup@,$defaultgroup,;t t
  25169. s,@instconfigdir@,$instconfigdir,;t t
  25170. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  25171. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  25172. s,@THREADLIB@,$THREADLIB,;t t
  25173. s,@LIBCRYPT@,$LIBCRYPT,;t t
  25174. s,@LIBSOCKET@,$LIBSOCKET,;t t
  25175. s,@LIBNSL@,$LIBNSL,;t t
  25176. s,@LIBDL@,$LIBDL,;t t
  25177. s,@LIBCSTD@,$LIBCSTD,;t t
  25178. s,@LIBCRUN@,$LIBCRUN,;t t
  25179. s,@initdir@,$initdir,;t t
  25180. s,@perlexec@,$perlexec,;t t
  25181. s,@initconfigdir@,$initconfigdir,;t t
  25182. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  25183. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  25184. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  25185. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  25186. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  25187. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  25188. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  25189. s,@KRB5_CONFIG_BIN@,$KRB5_CONFIG_BIN,;t t
  25190. s,@kerberos_inc@,$kerberos_inc,;t t
  25191. s,@kerberos_lib@,$kerberos_lib,;t t
  25192. s,@kerberos_libdir@,$kerberos_libdir,;t t
  25193. s,@with_selinux@,$with_selinux,;t t
  25194. s,@PACKAGE_BASE_VERSION@,$PACKAGE_BASE_VERSION,;t t
  25195. s,@SELINUX_TRUE@,$SELINUX_TRUE,;t t
  25196. s,@SELINUX_FALSE@,$SELINUX_FALSE,;t t
  25197. s,@OPENLDAP_TRUE@,$OPENLDAP_TRUE,;t t
  25198. s,@OPENLDAP_FALSE@,$OPENLDAP_FALSE,;t t
  25199. s,@nspr_inc@,$nspr_inc,;t t
  25200. s,@nspr_lib@,$nspr_lib,;t t
  25201. s,@nspr_libdir@,$nspr_libdir,;t t
  25202. s,@nss_inc@,$nss_inc,;t t
  25203. s,@nss_lib@,$nss_lib,;t t
  25204. s,@nss_libdir@,$nss_libdir,;t t
  25205. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  25206. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  25207. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  25208. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  25209. s,@openldap_inc@,$openldap_inc,;t t
  25210. s,@openldap_lib@,$openldap_lib,;t t
  25211. s,@openldap_libdir@,$openldap_libdir,;t t
  25212. s,@openldap_bindir@,$openldap_bindir,;t t
  25213. s,@ol_libver@,$ol_libver,;t t
  25214. s,@db_inc@,$db_inc,;t t
  25215. s,@db_incdir@,$db_incdir,;t t
  25216. s,@db_lib@,$db_lib,;t t
  25217. s,@db_libdir@,$db_libdir,;t t
  25218. s,@db_bindir@,$db_bindir,;t t
  25219. s,@db_libver@,$db_libver,;t t
  25220. s,@sasl_inc@,$sasl_inc,;t t
  25221. s,@sasl_lib@,$sasl_lib,;t t
  25222. s,@sasl_libdir@,$sasl_libdir,;t t
  25223. s,@sasl_path@,$sasl_path,;t t
  25224. s,@svrcore_inc@,$svrcore_inc,;t t
  25225. s,@svrcore_lib@,$svrcore_lib,;t t
  25226. s,@icu_lib@,$icu_lib,;t t
  25227. s,@icu_inc@,$icu_inc,;t t
  25228. s,@icu_bin@,$icu_bin,;t t
  25229. s,@netsnmp_inc@,$netsnmp_inc,;t t
  25230. s,@netsnmp_lib@,$netsnmp_lib,;t t
  25231. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  25232. s,@netsnmp_link@,$netsnmp_link,;t t
  25233. s,@pcre_inc@,$pcre_inc,;t t
  25234. s,@pcre_lib@,$pcre_lib,;t t
  25235. s,@pcre_libdir@,$pcre_libdir,;t t
  25236. s,@brand@,$brand,;t t
  25237. s,@capbrand@,$capbrand,;t t
  25238. s,@vendor@,$vendor,;t t
  25239. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  25240. CEOF
  25241. _ACEOF
  25242. cat >>$CONFIG_STATUS <<\_ACEOF
  25243. # Split the substitutions into bite-sized pieces for seds with
  25244. # small command number limits, like on Digital OSF/1 and HP-UX.
  25245. ac_max_sed_lines=48
  25246. ac_sed_frag=1 # Number of current file.
  25247. ac_beg=1 # First line for current file.
  25248. ac_end=$ac_max_sed_lines # Line after last line for current file.
  25249. ac_more_lines=:
  25250. ac_sed_cmds=
  25251. while $ac_more_lines; do
  25252. if test $ac_beg -gt 1; then
  25253. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25254. else
  25255. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25256. fi
  25257. if test ! -s $tmp/subs.frag; then
  25258. ac_more_lines=false
  25259. else
  25260. # The purpose of the label and of the branching condition is to
  25261. # speed up the sed processing (if there are no `@' at all, there
  25262. # is no need to browse any of the substitutions).
  25263. # These are the two extra sed commands mentioned above.
  25264. (echo ':t
  25265. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  25266. if test -z "$ac_sed_cmds"; then
  25267. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  25268. else
  25269. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  25270. fi
  25271. ac_sed_frag=`expr $ac_sed_frag + 1`
  25272. ac_beg=$ac_end
  25273. ac_end=`expr $ac_end + $ac_max_sed_lines`
  25274. fi
  25275. done
  25276. if test -z "$ac_sed_cmds"; then
  25277. ac_sed_cmds=cat
  25278. fi
  25279. fi # test -n "$CONFIG_FILES"
  25280. _ACEOF
  25281. cat >>$CONFIG_STATUS <<\_ACEOF
  25282. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  25283. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  25284. case $ac_file in
  25285. - | *:- | *:-:* ) # input from stdin
  25286. cat >$tmp/stdin
  25287. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25288. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25289. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25290. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25291. * ) ac_file_in=$ac_file.in ;;
  25292. esac
  25293. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  25294. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25295. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25296. X"$ac_file" : 'X\(//\)[^/]' \| \
  25297. X"$ac_file" : 'X\(//\)$' \| \
  25298. X"$ac_file" : 'X\(/\)' \| \
  25299. . : '\(.\)' 2>/dev/null ||
  25300. echo X"$ac_file" |
  25301. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25302. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25303. /^X\(\/\/\)$/{ s//\1/; q; }
  25304. /^X\(\/\).*/{ s//\1/; q; }
  25305. s/.*/./; q'`
  25306. { if $as_mkdir_p; then
  25307. mkdir -p "$ac_dir"
  25308. else
  25309. as_dir="$ac_dir"
  25310. as_dirs=
  25311. while test ! -d "$as_dir"; do
  25312. as_dirs="$as_dir $as_dirs"
  25313. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25315. X"$as_dir" : 'X\(//\)[^/]' \| \
  25316. X"$as_dir" : 'X\(//\)$' \| \
  25317. X"$as_dir" : 'X\(/\)' \| \
  25318. . : '\(.\)' 2>/dev/null ||
  25319. echo X"$as_dir" |
  25320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25321. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25322. /^X\(\/\/\)$/{ s//\1/; q; }
  25323. /^X\(\/\).*/{ s//\1/; q; }
  25324. s/.*/./; q'`
  25325. done
  25326. test ! -n "$as_dirs" || mkdir $as_dirs
  25327. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25328. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25329. { (exit 1); exit 1; }; }; }
  25330. ac_builddir=.
  25331. if test "$ac_dir" != .; then
  25332. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25333. # A "../" for each directory in $ac_dir_suffix.
  25334. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25335. else
  25336. ac_dir_suffix= ac_top_builddir=
  25337. fi
  25338. case $srcdir in
  25339. .) # No --srcdir option. We are building in place.
  25340. ac_srcdir=.
  25341. if test -z "$ac_top_builddir"; then
  25342. ac_top_srcdir=.
  25343. else
  25344. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25345. fi ;;
  25346. [\\/]* | ?:[\\/]* ) # Absolute path.
  25347. ac_srcdir=$srcdir$ac_dir_suffix;
  25348. ac_top_srcdir=$srcdir ;;
  25349. *) # Relative path.
  25350. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25351. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25352. esac
  25353. # Do not use `cd foo && pwd` to compute absolute paths, because
  25354. # the directories may not exist.
  25355. case `pwd` in
  25356. .) ac_abs_builddir="$ac_dir";;
  25357. *)
  25358. case "$ac_dir" in
  25359. .) ac_abs_builddir=`pwd`;;
  25360. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25361. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25362. esac;;
  25363. esac
  25364. case $ac_abs_builddir in
  25365. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25366. *)
  25367. case ${ac_top_builddir}. in
  25368. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25369. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25370. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25371. esac;;
  25372. esac
  25373. case $ac_abs_builddir in
  25374. .) ac_abs_srcdir=$ac_srcdir;;
  25375. *)
  25376. case $ac_srcdir in
  25377. .) ac_abs_srcdir=$ac_abs_builddir;;
  25378. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25379. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25380. esac;;
  25381. esac
  25382. case $ac_abs_builddir in
  25383. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25384. *)
  25385. case $ac_top_srcdir in
  25386. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25387. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25388. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25389. esac;;
  25390. esac
  25391. case $INSTALL in
  25392. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25393. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  25394. esac
  25395. if test x"$ac_file" != x-; then
  25396. { echo "$as_me:$LINENO: creating $ac_file" >&5
  25397. echo "$as_me: creating $ac_file" >&6;}
  25398. rm -f "$ac_file"
  25399. fi
  25400. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25401. # use $as_me), people would be surprised to read:
  25402. # /* config.h. Generated by config.status. */
  25403. if test x"$ac_file" = x-; then
  25404. configure_input=
  25405. else
  25406. configure_input="$ac_file. "
  25407. fi
  25408. configure_input=$configure_input"Generated from `echo $ac_file_in |
  25409. sed 's,.*/,,'` by configure."
  25410. # First look for the input files in the build tree, otherwise in the
  25411. # src tree.
  25412. ac_file_inputs=`IFS=:
  25413. for f in $ac_file_in; do
  25414. case $f in
  25415. -) echo $tmp/stdin ;;
  25416. [\\/$]*)
  25417. # Absolute (can't be DOS-style, as IFS=:)
  25418. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25419. echo "$as_me: error: cannot find input file: $f" >&2;}
  25420. { (exit 1); exit 1; }; }
  25421. echo "$f";;
  25422. *) # Relative
  25423. if test -f "$f"; then
  25424. # Build tree
  25425. echo "$f"
  25426. elif test -f "$srcdir/$f"; then
  25427. # Source tree
  25428. echo "$srcdir/$f"
  25429. else
  25430. # /dev/null tree
  25431. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25432. echo "$as_me: error: cannot find input file: $f" >&2;}
  25433. { (exit 1); exit 1; }; }
  25434. fi;;
  25435. esac
  25436. done` || { (exit 1); exit 1; }
  25437. _ACEOF
  25438. cat >>$CONFIG_STATUS <<_ACEOF
  25439. sed "$ac_vpsub
  25440. $extrasub
  25441. _ACEOF
  25442. cat >>$CONFIG_STATUS <<\_ACEOF
  25443. :t
  25444. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25445. s,@configure_input@,$configure_input,;t t
  25446. s,@srcdir@,$ac_srcdir,;t t
  25447. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  25448. s,@top_srcdir@,$ac_top_srcdir,;t t
  25449. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  25450. s,@builddir@,$ac_builddir,;t t
  25451. s,@abs_builddir@,$ac_abs_builddir,;t t
  25452. s,@top_builddir@,$ac_top_builddir,;t t
  25453. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  25454. s,@INSTALL@,$ac_INSTALL,;t t
  25455. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  25456. rm -f $tmp/stdin
  25457. if test x"$ac_file" != x-; then
  25458. mv $tmp/out $ac_file
  25459. else
  25460. cat $tmp/out
  25461. rm -f $tmp/out
  25462. fi
  25463. done
  25464. _ACEOF
  25465. cat >>$CONFIG_STATUS <<\_ACEOF
  25466. #
  25467. # CONFIG_HEADER section.
  25468. #
  25469. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  25470. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  25471. #
  25472. # ac_d sets the value in "#define NAME VALUE" lines.
  25473. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  25474. ac_dB='[ ].*$,\1#\2'
  25475. ac_dC=' '
  25476. ac_dD=',;t'
  25477. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  25478. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  25479. ac_uB='$,\1#\2define\3'
  25480. ac_uC=' '
  25481. ac_uD=',;t'
  25482. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  25483. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  25484. case $ac_file in
  25485. - | *:- | *:-:* ) # input from stdin
  25486. cat >$tmp/stdin
  25487. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25488. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25489. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25490. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25491. * ) ac_file_in=$ac_file.in ;;
  25492. esac
  25493. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  25494. echo "$as_me: creating $ac_file" >&6;}
  25495. # First look for the input files in the build tree, otherwise in the
  25496. # src tree.
  25497. ac_file_inputs=`IFS=:
  25498. for f in $ac_file_in; do
  25499. case $f in
  25500. -) echo $tmp/stdin ;;
  25501. [\\/$]*)
  25502. # Absolute (can't be DOS-style, as IFS=:)
  25503. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25504. echo "$as_me: error: cannot find input file: $f" >&2;}
  25505. { (exit 1); exit 1; }; }
  25506. # Do quote $f, to prevent DOS paths from being IFS'd.
  25507. echo "$f";;
  25508. *) # Relative
  25509. if test -f "$f"; then
  25510. # Build tree
  25511. echo "$f"
  25512. elif test -f "$srcdir/$f"; then
  25513. # Source tree
  25514. echo "$srcdir/$f"
  25515. else
  25516. # /dev/null tree
  25517. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25518. echo "$as_me: error: cannot find input file: $f" >&2;}
  25519. { (exit 1); exit 1; }; }
  25520. fi;;
  25521. esac
  25522. done` || { (exit 1); exit 1; }
  25523. # Remove the trailing spaces.
  25524. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  25525. _ACEOF
  25526. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  25527. # `conftest.undefs', that substitutes the proper values into
  25528. # config.h.in to produce config.h. The first handles `#define'
  25529. # templates, and the second `#undef' templates.
  25530. # And first: Protect against being on the right side of a sed subst in
  25531. # config.status. Protect against being in an unquoted here document
  25532. # in config.status.
  25533. rm -f conftest.defines conftest.undefs
  25534. # Using a here document instead of a string reduces the quoting nightmare.
  25535. # Putting comments in sed scripts is not portable.
  25536. #
  25537. # `end' is used to avoid that the second main sed command (meant for
  25538. # 0-ary CPP macros) applies to n-ary macro definitions.
  25539. # See the Autoconf documentation for `clear'.
  25540. cat >confdef2sed.sed <<\_ACEOF
  25541. s/[\\&,]/\\&/g
  25542. s,[\\$`],\\&,g
  25543. t clear
  25544. : clear
  25545. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  25546. t end
  25547. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  25548. : end
  25549. _ACEOF
  25550. # If some macros were called several times there might be several times
  25551. # the same #defines, which is useless. Nevertheless, we may not want to
  25552. # sort them, since we want the *last* AC-DEFINE to be honored.
  25553. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  25554. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  25555. rm -f confdef2sed.sed
  25556. # This sed command replaces #undef with comments. This is necessary, for
  25557. # example, in the case of _POSIX_SOURCE, which is predefined and required
  25558. # on some systems where configure will not decide to define it.
  25559. cat >>conftest.undefs <<\_ACEOF
  25560. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  25561. _ACEOF
  25562. # Break up conftest.defines because some shells have a limit on the size
  25563. # of here documents, and old seds have small limits too (100 cmds).
  25564. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  25565. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  25566. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  25567. echo ' :' >>$CONFIG_STATUS
  25568. rm -f conftest.tail
  25569. while grep . conftest.defines >/dev/null
  25570. do
  25571. # Write a limited-size here document to $tmp/defines.sed.
  25572. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  25573. # Speed up: don't consider the non `#define' lines.
  25574. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  25575. # Work around the forget-to-reset-the-flag bug.
  25576. echo 't clr' >>$CONFIG_STATUS
  25577. echo ': clr' >>$CONFIG_STATUS
  25578. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  25579. echo 'CEOF
  25580. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  25581. rm -f $tmp/in
  25582. mv $tmp/out $tmp/in
  25583. ' >>$CONFIG_STATUS
  25584. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  25585. rm -f conftest.defines
  25586. mv conftest.tail conftest.defines
  25587. done
  25588. rm -f conftest.defines
  25589. echo ' fi # grep' >>$CONFIG_STATUS
  25590. echo >>$CONFIG_STATUS
  25591. # Break up conftest.undefs because some shells have a limit on the size
  25592. # of here documents, and old seds have small limits too (100 cmds).
  25593. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  25594. rm -f conftest.tail
  25595. while grep . conftest.undefs >/dev/null
  25596. do
  25597. # Write a limited-size here document to $tmp/undefs.sed.
  25598. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  25599. # Speed up: don't consider the non `#undef'
  25600. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  25601. # Work around the forget-to-reset-the-flag bug.
  25602. echo 't clr' >>$CONFIG_STATUS
  25603. echo ': clr' >>$CONFIG_STATUS
  25604. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  25605. echo 'CEOF
  25606. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  25607. rm -f $tmp/in
  25608. mv $tmp/out $tmp/in
  25609. ' >>$CONFIG_STATUS
  25610. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  25611. rm -f conftest.undefs
  25612. mv conftest.tail conftest.undefs
  25613. done
  25614. rm -f conftest.undefs
  25615. cat >>$CONFIG_STATUS <<\_ACEOF
  25616. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25617. # use $as_me), people would be surprised to read:
  25618. # /* config.h. Generated by config.status. */
  25619. if test x"$ac_file" = x-; then
  25620. echo "/* Generated by configure. */" >$tmp/config.h
  25621. else
  25622. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  25623. fi
  25624. cat $tmp/in >>$tmp/config.h
  25625. rm -f $tmp/in
  25626. if test x"$ac_file" != x-; then
  25627. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  25628. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  25629. echo "$as_me: $ac_file is unchanged" >&6;}
  25630. else
  25631. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25632. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25633. X"$ac_file" : 'X\(//\)[^/]' \| \
  25634. X"$ac_file" : 'X\(//\)$' \| \
  25635. X"$ac_file" : 'X\(/\)' \| \
  25636. . : '\(.\)' 2>/dev/null ||
  25637. echo X"$ac_file" |
  25638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25639. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25640. /^X\(\/\/\)$/{ s//\1/; q; }
  25641. /^X\(\/\).*/{ s//\1/; q; }
  25642. s/.*/./; q'`
  25643. { if $as_mkdir_p; then
  25644. mkdir -p "$ac_dir"
  25645. else
  25646. as_dir="$ac_dir"
  25647. as_dirs=
  25648. while test ! -d "$as_dir"; do
  25649. as_dirs="$as_dir $as_dirs"
  25650. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25651. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25652. X"$as_dir" : 'X\(//\)[^/]' \| \
  25653. X"$as_dir" : 'X\(//\)$' \| \
  25654. X"$as_dir" : 'X\(/\)' \| \
  25655. . : '\(.\)' 2>/dev/null ||
  25656. echo X"$as_dir" |
  25657. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25658. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25659. /^X\(\/\/\)$/{ s//\1/; q; }
  25660. /^X\(\/\).*/{ s//\1/; q; }
  25661. s/.*/./; q'`
  25662. done
  25663. test ! -n "$as_dirs" || mkdir $as_dirs
  25664. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25665. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25666. { (exit 1); exit 1; }; }; }
  25667. rm -f $ac_file
  25668. mv $tmp/config.h $ac_file
  25669. fi
  25670. else
  25671. cat $tmp/config.h
  25672. rm -f $tmp/config.h
  25673. fi
  25674. # Compute $ac_file's index in $config_headers.
  25675. _am_stamp_count=1
  25676. for _am_header in $config_headers :; do
  25677. case $_am_header in
  25678. $ac_file | $ac_file:* )
  25679. break ;;
  25680. * )
  25681. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  25682. esac
  25683. done
  25684. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  25685. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25686. X$ac_file : 'X\(//\)[^/]' \| \
  25687. X$ac_file : 'X\(//\)$' \| \
  25688. X$ac_file : 'X\(/\)' \| \
  25689. . : '\(.\)' 2>/dev/null ||
  25690. echo X$ac_file |
  25691. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25692. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25693. /^X\(\/\/\)$/{ s//\1/; q; }
  25694. /^X\(\/\).*/{ s//\1/; q; }
  25695. s/.*/./; q'`/stamp-h$_am_stamp_count
  25696. done
  25697. _ACEOF
  25698. cat >>$CONFIG_STATUS <<\_ACEOF
  25699. #
  25700. # CONFIG_COMMANDS section.
  25701. #
  25702. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  25703. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  25704. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25705. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  25706. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25707. X"$ac_dest" : 'X\(//\)[^/]' \| \
  25708. X"$ac_dest" : 'X\(//\)$' \| \
  25709. X"$ac_dest" : 'X\(/\)' \| \
  25710. . : '\(.\)' 2>/dev/null ||
  25711. echo X"$ac_dest" |
  25712. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25713. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25714. /^X\(\/\/\)$/{ s//\1/; q; }
  25715. /^X\(\/\).*/{ s//\1/; q; }
  25716. s/.*/./; q'`
  25717. { if $as_mkdir_p; then
  25718. mkdir -p "$ac_dir"
  25719. else
  25720. as_dir="$ac_dir"
  25721. as_dirs=
  25722. while test ! -d "$as_dir"; do
  25723. as_dirs="$as_dir $as_dirs"
  25724. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25725. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25726. X"$as_dir" : 'X\(//\)[^/]' \| \
  25727. X"$as_dir" : 'X\(//\)$' \| \
  25728. X"$as_dir" : 'X\(/\)' \| \
  25729. . : '\(.\)' 2>/dev/null ||
  25730. echo X"$as_dir" |
  25731. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25732. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25733. /^X\(\/\/\)$/{ s//\1/; q; }
  25734. /^X\(\/\).*/{ s//\1/; q; }
  25735. s/.*/./; q'`
  25736. done
  25737. test ! -n "$as_dirs" || mkdir $as_dirs
  25738. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25739. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25740. { (exit 1); exit 1; }; }; }
  25741. ac_builddir=.
  25742. if test "$ac_dir" != .; then
  25743. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25744. # A "../" for each directory in $ac_dir_suffix.
  25745. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25746. else
  25747. ac_dir_suffix= ac_top_builddir=
  25748. fi
  25749. case $srcdir in
  25750. .) # No --srcdir option. We are building in place.
  25751. ac_srcdir=.
  25752. if test -z "$ac_top_builddir"; then
  25753. ac_top_srcdir=.
  25754. else
  25755. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25756. fi ;;
  25757. [\\/]* | ?:[\\/]* ) # Absolute path.
  25758. ac_srcdir=$srcdir$ac_dir_suffix;
  25759. ac_top_srcdir=$srcdir ;;
  25760. *) # Relative path.
  25761. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25762. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25763. esac
  25764. # Do not use `cd foo && pwd` to compute absolute paths, because
  25765. # the directories may not exist.
  25766. case `pwd` in
  25767. .) ac_abs_builddir="$ac_dir";;
  25768. *)
  25769. case "$ac_dir" in
  25770. .) ac_abs_builddir=`pwd`;;
  25771. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25772. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25773. esac;;
  25774. esac
  25775. case $ac_abs_builddir in
  25776. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25777. *)
  25778. case ${ac_top_builddir}. in
  25779. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25780. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25781. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25782. esac;;
  25783. esac
  25784. case $ac_abs_builddir in
  25785. .) ac_abs_srcdir=$ac_srcdir;;
  25786. *)
  25787. case $ac_srcdir in
  25788. .) ac_abs_srcdir=$ac_abs_builddir;;
  25789. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25790. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25791. esac;;
  25792. esac
  25793. case $ac_abs_builddir in
  25794. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25795. *)
  25796. case $ac_top_srcdir in
  25797. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25798. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25799. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25800. esac;;
  25801. esac
  25802. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  25803. echo "$as_me: executing $ac_dest commands" >&6;}
  25804. case $ac_dest in
  25805. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  25806. # Strip MF so we end up with the name of the file.
  25807. mf=`echo "$mf" | sed -e 's/:.*$//'`
  25808. # Check whether this is an Automake generated Makefile or not.
  25809. # We used to match only the files named `Makefile.in', but
  25810. # some people rename them; so instead we look at the file content.
  25811. # Grep'ing the first line is not enough: some people post-process
  25812. # each Makefile.in and add a new line on top of each file to say so.
  25813. # So let's grep whole file.
  25814. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  25815. dirpart=`(dirname "$mf") 2>/dev/null ||
  25816. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25817. X"$mf" : 'X\(//\)[^/]' \| \
  25818. X"$mf" : 'X\(//\)$' \| \
  25819. X"$mf" : 'X\(/\)' \| \
  25820. . : '\(.\)' 2>/dev/null ||
  25821. echo X"$mf" |
  25822. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25823. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25824. /^X\(\/\/\)$/{ s//\1/; q; }
  25825. /^X\(\/\).*/{ s//\1/; q; }
  25826. s/.*/./; q'`
  25827. else
  25828. continue
  25829. fi
  25830. # Extract the definition of DEPDIR, am__include, and am__quote
  25831. # from the Makefile without running `make'.
  25832. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  25833. test -z "$DEPDIR" && continue
  25834. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  25835. test -z "am__include" && continue
  25836. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  25837. # When using ansi2knr, U may be empty or an underscore; expand it
  25838. U=`sed -n 's/^U = //p' < "$mf"`
  25839. # Find all dependency output files, they are included files with
  25840. # $(DEPDIR) in their names. We invoke sed twice because it is the
  25841. # simplest approach to changing $(DEPDIR) to its actual value in the
  25842. # expansion.
  25843. for file in `sed -n "
  25844. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  25845. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  25846. # Make sure the directory exists.
  25847. test -f "$dirpart/$file" && continue
  25848. fdir=`(dirname "$file") 2>/dev/null ||
  25849. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25850. X"$file" : 'X\(//\)[^/]' \| \
  25851. X"$file" : 'X\(//\)$' \| \
  25852. X"$file" : 'X\(/\)' \| \
  25853. . : '\(.\)' 2>/dev/null ||
  25854. echo X"$file" |
  25855. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25856. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25857. /^X\(\/\/\)$/{ s//\1/; q; }
  25858. /^X\(\/\).*/{ s//\1/; q; }
  25859. s/.*/./; q'`
  25860. { if $as_mkdir_p; then
  25861. mkdir -p $dirpart/$fdir
  25862. else
  25863. as_dir=$dirpart/$fdir
  25864. as_dirs=
  25865. while test ! -d "$as_dir"; do
  25866. as_dirs="$as_dir $as_dirs"
  25867. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25868. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25869. X"$as_dir" : 'X\(//\)[^/]' \| \
  25870. X"$as_dir" : 'X\(//\)$' \| \
  25871. X"$as_dir" : 'X\(/\)' \| \
  25872. . : '\(.\)' 2>/dev/null ||
  25873. echo X"$as_dir" |
  25874. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25875. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25876. /^X\(\/\/\)$/{ s//\1/; q; }
  25877. /^X\(\/\).*/{ s//\1/; q; }
  25878. s/.*/./; q'`
  25879. done
  25880. test ! -n "$as_dirs" || mkdir $as_dirs
  25881. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  25882. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  25883. { (exit 1); exit 1; }; }; }
  25884. # echo "creating $dirpart/$file"
  25885. echo '# dummy' > "$dirpart/$file"
  25886. done
  25887. done
  25888. ;;
  25889. esac
  25890. done
  25891. _ACEOF
  25892. cat >>$CONFIG_STATUS <<\_ACEOF
  25893. { (exit 0); exit 0; }
  25894. _ACEOF
  25895. chmod +x $CONFIG_STATUS
  25896. ac_clean_files=$ac_clean_files_save
  25897. # configure is writing to config.log, and then calls config.status.
  25898. # config.status does its own redirection, appending to config.log.
  25899. # Unfortunately, on DOS this fails, as config.log is still kept open
  25900. # by configure, so config.status won't be able to write to it; its
  25901. # output is simply discarded. So we exec the FD to /dev/null,
  25902. # effectively closing config.log, so it can be properly (re)opened and
  25903. # appended to by config.status. When coming back to configure, we
  25904. # need to make the FD available again.
  25905. if test "$no_create" != yes; then
  25906. ac_cs_success=:
  25907. ac_config_status_args=
  25908. test "$silent" = yes &&
  25909. ac_config_status_args="$ac_config_status_args --quiet"
  25910. exec 5>/dev/null
  25911. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25912. exec 5>>config.log
  25913. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25914. # would make configure fail if this is the last instruction.
  25915. $ac_cs_success || { (exit 1); exit 1; }
  25916. fi