configure 907 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978
  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 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 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-nspr=PATH Netscape Portable Runtime (NSPR) directory
  952. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  953. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  954. --with-nss=PATH Network Security Services (NSS) directory
  955. --with-nss-inc=PATH Network Security Services (NSS) include directory
  956. --with-nss-lib=PATH Network Security Services (NSS) library directory
  957. --with-openldap=PATH Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  958. --with-openldap-inc=PATH OpenLDAP SDK include directory
  959. --with-openldap-lib=PATH OpenLDAP SDK library directory
  960. --with-openldap-bin=PATH OpenLDAP SDK binary directory
  961. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  962. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  963. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  964. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  965. --with-db=PATH Berkeley DB directory
  966. --with-db-inc=PATH Berkeley DB include file directory
  967. --with-db-lib=PATH Berkeley DB library directory
  968. --with-sasl=PATH Use sasl from supplied path
  969. --with-sasl-inc=PATH SASL include file directory
  970. --with-sasl-lib=PATH SASL library directory
  971. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  972. --with-svrcore-inc=PATH SVRCORE include file directory
  973. --with-svrcore-lib=PATH SVRCORE library directory
  974. --with-icu=PATH ICU directory
  975. --with-icu-inc=PATH ICU include directory
  976. --with-icu-lib=PATH ICU library directory
  977. --with-icu-bin=PATH ICU binary directory
  978. --with-netsnmp=PATH Net-SNMP directory
  979. --with-netsnmp-inc=PATH Net-SNMP include directory
  980. --with-netsnmp-lib=PATH Net-SNMP library directory
  981. --with-kerberos=PATH Use the kerberos API in the server directly - allows
  982. the server to authenticate directly with a keytab -
  983. otherwise, SASL/GSSAPI auth depends on underlying
  984. SASL libraries and external kinit with a keytab - if
  985. PATH is not specified, look for kerberos in the
  986. system locations. This will attempt to use
  987. krb5-config from the PATH to find the libs and
  988. include dirs - you can specify KRB5_CONFIG_BIN to
  989. specify a different filename or absolute path. If
  990. krb5-config does not work, this will attempt to look
  991. in various system directories
  992. --with-kerberos-inc=PATH
  993. Allows you to explicitly set the directory
  994. containing the kerberos include files - implies use
  995. of kerberos
  996. --with-kerberos-lib=PATH
  997. Allows you to explicitly set the directory
  998. containing the kerberos libraries - implies use of
  999. kerberos
  1000. --with-pcre=PATH Perl Compatible Regular Expression directory
  1001. --with-selinux Build SELinux policy
  1002. Some influential environment variables:
  1003. CXX C++ compiler command
  1004. CXXFLAGS C++ compiler flags
  1005. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1006. nonstandard directory <lib dir>
  1007. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1008. headers in a nonstandard directory <include dir>
  1009. CC C compiler command
  1010. CFLAGS C compiler flags
  1011. CCAS assembler compiler command (defaults to CC)
  1012. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1013. CPP C preprocessor
  1014. CXXCPP C++ preprocessor
  1015. F77 Fortran 77 compiler command
  1016. FFLAGS Fortran 77 compiler flags
  1017. Use these variables to override the choices made by `configure' or to help
  1018. it to find libraries and programs with nonstandard names/locations.
  1019. Report bugs to <http://bugzilla.redhat.com/>.
  1020. _ACEOF
  1021. fi
  1022. if test "$ac_init_help" = "recursive"; then
  1023. # If there are subdirs, report their specific --help.
  1024. ac_popdir=`pwd`
  1025. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1026. test -d $ac_dir || continue
  1027. ac_builddir=.
  1028. if test "$ac_dir" != .; then
  1029. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1030. # A "../" for each directory in $ac_dir_suffix.
  1031. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1032. else
  1033. ac_dir_suffix= ac_top_builddir=
  1034. fi
  1035. case $srcdir in
  1036. .) # No --srcdir option. We are building in place.
  1037. ac_srcdir=.
  1038. if test -z "$ac_top_builddir"; then
  1039. ac_top_srcdir=.
  1040. else
  1041. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1042. fi ;;
  1043. [\\/]* | ?:[\\/]* ) # Absolute path.
  1044. ac_srcdir=$srcdir$ac_dir_suffix;
  1045. ac_top_srcdir=$srcdir ;;
  1046. *) # Relative path.
  1047. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1048. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1049. esac
  1050. # Do not use `cd foo && pwd` to compute absolute paths, because
  1051. # the directories may not exist.
  1052. case `pwd` in
  1053. .) ac_abs_builddir="$ac_dir";;
  1054. *)
  1055. case "$ac_dir" in
  1056. .) ac_abs_builddir=`pwd`;;
  1057. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1058. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1059. esac;;
  1060. esac
  1061. case $ac_abs_builddir in
  1062. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1063. *)
  1064. case ${ac_top_builddir}. in
  1065. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1066. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1067. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1068. esac;;
  1069. esac
  1070. case $ac_abs_builddir in
  1071. .) ac_abs_srcdir=$ac_srcdir;;
  1072. *)
  1073. case $ac_srcdir in
  1074. .) ac_abs_srcdir=$ac_abs_builddir;;
  1075. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1076. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1077. esac;;
  1078. esac
  1079. case $ac_abs_builddir in
  1080. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1081. *)
  1082. case $ac_top_srcdir in
  1083. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1084. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1085. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1086. esac;;
  1087. esac
  1088. cd $ac_dir
  1089. # Check for guested configure; otherwise get Cygnus style configure.
  1090. if test -f $ac_srcdir/configure.gnu; then
  1091. echo
  1092. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1093. elif test -f $ac_srcdir/configure; then
  1094. echo
  1095. $SHELL $ac_srcdir/configure --help=recursive
  1096. elif test -f $ac_srcdir/configure.ac ||
  1097. test -f $ac_srcdir/configure.in; then
  1098. echo
  1099. $ac_configure --help
  1100. else
  1101. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1102. fi
  1103. cd $ac_popdir
  1104. done
  1105. fi
  1106. test -n "$ac_init_help" && exit 0
  1107. if $ac_init_version; then
  1108. cat <<\_ACEOF
  1109. dirsrv configure 1.0
  1110. generated by GNU Autoconf 2.59
  1111. Copyright (C) 2003 Free Software Foundation, Inc.
  1112. This configure script is free software; the Free Software Foundation
  1113. gives unlimited permission to copy, distribute and modify it.
  1114. _ACEOF
  1115. exit 0
  1116. fi
  1117. exec 5>config.log
  1118. cat >&5 <<_ACEOF
  1119. This file contains any messages produced by compilers while
  1120. running configure, to aid debugging if configure makes a mistake.
  1121. It was created by dirsrv $as_me 1.0, which was
  1122. generated by GNU Autoconf 2.59. Invocation command line was
  1123. $ $0 $@
  1124. _ACEOF
  1125. {
  1126. cat <<_ASUNAME
  1127. ## --------- ##
  1128. ## Platform. ##
  1129. ## --------- ##
  1130. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1131. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1132. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1133. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1134. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1135. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1136. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1137. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1138. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1139. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1140. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1141. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1142. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1143. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1144. _ASUNAME
  1145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1146. for as_dir in $PATH
  1147. do
  1148. IFS=$as_save_IFS
  1149. test -z "$as_dir" && as_dir=.
  1150. echo "PATH: $as_dir"
  1151. done
  1152. } >&5
  1153. cat >&5 <<_ACEOF
  1154. ## ----------- ##
  1155. ## Core tests. ##
  1156. ## ----------- ##
  1157. _ACEOF
  1158. # Keep a trace of the command line.
  1159. # Strip out --no-create and --no-recursion so they do not pile up.
  1160. # Strip out --silent because we don't want to record it for future runs.
  1161. # Also quote any args containing shell meta-characters.
  1162. # Make two passes to allow for proper duplicate-argument suppression.
  1163. ac_configure_args=
  1164. ac_configure_args0=
  1165. ac_configure_args1=
  1166. ac_sep=
  1167. ac_must_keep_next=false
  1168. for ac_pass in 1 2
  1169. do
  1170. for ac_arg
  1171. do
  1172. case $ac_arg in
  1173. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1174. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1175. | -silent | --silent | --silen | --sile | --sil)
  1176. continue ;;
  1177. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1178. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1179. esac
  1180. case $ac_pass in
  1181. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1182. 2)
  1183. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1184. if test $ac_must_keep_next = true; then
  1185. ac_must_keep_next=false # Got value, back to normal.
  1186. else
  1187. case $ac_arg in
  1188. *=* | --config-cache | -C | -disable-* | --disable-* \
  1189. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1190. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1191. | -with-* | --with-* | -without-* | --without-* | --x)
  1192. case "$ac_configure_args0 " in
  1193. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1194. esac
  1195. ;;
  1196. -* ) ac_must_keep_next=true ;;
  1197. esac
  1198. fi
  1199. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1200. # Get rid of the leading space.
  1201. ac_sep=" "
  1202. ;;
  1203. esac
  1204. done
  1205. done
  1206. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1207. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1208. # When interrupted or exit'd, cleanup temporary files, and complete
  1209. # config.log. We remove comments because anyway the quotes in there
  1210. # would cause problems or look ugly.
  1211. # WARNING: Be sure not to use single quotes in there, as some shells,
  1212. # such as our DU 5.0 friend, will then `close' the trap.
  1213. trap 'exit_status=$?
  1214. # Save into config.log some information that might help in debugging.
  1215. {
  1216. echo
  1217. cat <<\_ASBOX
  1218. ## ---------------- ##
  1219. ## Cache variables. ##
  1220. ## ---------------- ##
  1221. _ASBOX
  1222. echo
  1223. # The following way of writing the cache mishandles newlines in values,
  1224. {
  1225. (set) 2>&1 |
  1226. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1227. *ac_space=\ *)
  1228. sed -n \
  1229. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1230. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1231. ;;
  1232. *)
  1233. sed -n \
  1234. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1235. ;;
  1236. esac;
  1237. }
  1238. echo
  1239. cat <<\_ASBOX
  1240. ## ----------------- ##
  1241. ## Output variables. ##
  1242. ## ----------------- ##
  1243. _ASBOX
  1244. echo
  1245. for ac_var in $ac_subst_vars
  1246. do
  1247. eval ac_val=$`echo $ac_var`
  1248. echo "$ac_var='"'"'$ac_val'"'"'"
  1249. done | sort
  1250. echo
  1251. if test -n "$ac_subst_files"; then
  1252. cat <<\_ASBOX
  1253. ## ------------- ##
  1254. ## Output files. ##
  1255. ## ------------- ##
  1256. _ASBOX
  1257. echo
  1258. for ac_var in $ac_subst_files
  1259. do
  1260. eval ac_val=$`echo $ac_var`
  1261. echo "$ac_var='"'"'$ac_val'"'"'"
  1262. done | sort
  1263. echo
  1264. fi
  1265. if test -s confdefs.h; then
  1266. cat <<\_ASBOX
  1267. ## ----------- ##
  1268. ## confdefs.h. ##
  1269. ## ----------- ##
  1270. _ASBOX
  1271. echo
  1272. sed "/^$/d" confdefs.h | sort
  1273. echo
  1274. fi
  1275. test "$ac_signal" != 0 &&
  1276. echo "$as_me: caught signal $ac_signal"
  1277. echo "$as_me: exit $exit_status"
  1278. } >&5
  1279. rm -f core *.core &&
  1280. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1281. exit $exit_status
  1282. ' 0
  1283. for ac_signal in 1 2 13 15; do
  1284. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1285. done
  1286. ac_signal=0
  1287. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1288. rm -rf conftest* confdefs.h
  1289. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1290. echo >confdefs.h
  1291. # Predefined preprocessor variables.
  1292. cat >>confdefs.h <<_ACEOF
  1293. #define PACKAGE_NAME "$PACKAGE_NAME"
  1294. _ACEOF
  1295. cat >>confdefs.h <<_ACEOF
  1296. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1297. _ACEOF
  1298. cat >>confdefs.h <<_ACEOF
  1299. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1300. _ACEOF
  1301. cat >>confdefs.h <<_ACEOF
  1302. #define PACKAGE_STRING "$PACKAGE_STRING"
  1303. _ACEOF
  1304. cat >>confdefs.h <<_ACEOF
  1305. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1306. _ACEOF
  1307. # Let the site file select an alternate cache file if it wants to.
  1308. # Prefer explicitly selected file to automatically selected ones.
  1309. if test -z "$CONFIG_SITE"; then
  1310. if test "x$prefix" != xNONE; then
  1311. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1312. else
  1313. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1314. fi
  1315. fi
  1316. for ac_site_file in $CONFIG_SITE; do
  1317. if test -r "$ac_site_file"; then
  1318. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1319. echo "$as_me: loading site script $ac_site_file" >&6;}
  1320. sed 's/^/| /' "$ac_site_file" >&5
  1321. . "$ac_site_file"
  1322. fi
  1323. done
  1324. if test -r "$cache_file"; then
  1325. # Some versions of bash will fail to source /dev/null (special
  1326. # files actually), so we avoid doing that.
  1327. if test -f "$cache_file"; then
  1328. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1329. echo "$as_me: loading cache $cache_file" >&6;}
  1330. case $cache_file in
  1331. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1332. *) . ./$cache_file;;
  1333. esac
  1334. fi
  1335. else
  1336. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1337. echo "$as_me: creating cache $cache_file" >&6;}
  1338. >$cache_file
  1339. fi
  1340. # Check that the precious variables saved in the cache have kept the same
  1341. # value.
  1342. ac_cache_corrupted=false
  1343. for ac_var in `(set) 2>&1 |
  1344. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1345. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1346. eval ac_new_set=\$ac_env_${ac_var}_set
  1347. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1348. eval ac_new_val="\$ac_env_${ac_var}_value"
  1349. case $ac_old_set,$ac_new_set in
  1350. set,)
  1351. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1352. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1353. ac_cache_corrupted=: ;;
  1354. ,set)
  1355. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1356. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1357. ac_cache_corrupted=: ;;
  1358. ,);;
  1359. *)
  1360. if test "x$ac_old_val" != "x$ac_new_val"; then
  1361. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1362. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1363. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1364. echo "$as_me: former value: $ac_old_val" >&2;}
  1365. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1366. echo "$as_me: current value: $ac_new_val" >&2;}
  1367. ac_cache_corrupted=:
  1368. fi;;
  1369. esac
  1370. # Pass precious variables to config.status.
  1371. if test "$ac_new_set" = set; then
  1372. case $ac_new_val in
  1373. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1374. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1375. *) ac_arg=$ac_var=$ac_new_val ;;
  1376. esac
  1377. case " $ac_configure_args " in
  1378. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1379. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1380. esac
  1381. fi
  1382. done
  1383. if $ac_cache_corrupted; then
  1384. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1385. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1386. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1387. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1388. { (exit 1); exit 1; }; }
  1389. fi
  1390. ac_ext=c
  1391. ac_cpp='$CPP $CPPFLAGS'
  1392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1395. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1396. ac_config_headers="$ac_config_headers config.h"
  1397. # include the version information
  1398. . $srcdir/VERSION.sh
  1399. { echo "$as_me:$LINENO: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  1400. echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  1401. cat >>confdefs.h <<_ACEOF
  1402. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  1403. _ACEOF
  1404. cat >>confdefs.h <<_ACEOF
  1405. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1406. _ACEOF
  1407. cat >>confdefs.h <<_ACEOF
  1408. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1409. _ACEOF
  1410. cat >>confdefs.h <<_ACEOF
  1411. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  1412. _ACEOF
  1413. am__api_version="1.9"
  1414. ac_aux_dir=
  1415. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1416. if test -f $ac_dir/install-sh; then
  1417. ac_aux_dir=$ac_dir
  1418. ac_install_sh="$ac_aux_dir/install-sh -c"
  1419. break
  1420. elif test -f $ac_dir/install.sh; then
  1421. ac_aux_dir=$ac_dir
  1422. ac_install_sh="$ac_aux_dir/install.sh -c"
  1423. break
  1424. elif test -f $ac_dir/shtool; then
  1425. ac_aux_dir=$ac_dir
  1426. ac_install_sh="$ac_aux_dir/shtool install -c"
  1427. break
  1428. fi
  1429. done
  1430. if test -z "$ac_aux_dir"; then
  1431. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1432. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1433. { (exit 1); exit 1; }; }
  1434. fi
  1435. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1436. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1437. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1438. # Find a good install program. We prefer a C program (faster),
  1439. # so one script is as good as another. But avoid the broken or
  1440. # incompatible versions:
  1441. # SysV /etc/install, /usr/sbin/install
  1442. # SunOS /usr/etc/install
  1443. # IRIX /sbin/install
  1444. # AIX /bin/install
  1445. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1446. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1447. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1448. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1449. # OS/2's system install, which has a completely different semantic
  1450. # ./install, which can be erroneously created by make from ./install.sh.
  1451. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1452. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1453. if test -z "$INSTALL"; then
  1454. if test "${ac_cv_path_install+set}" = set; then
  1455. echo $ECHO_N "(cached) $ECHO_C" >&6
  1456. else
  1457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1458. for as_dir in $PATH
  1459. do
  1460. IFS=$as_save_IFS
  1461. test -z "$as_dir" && as_dir=.
  1462. # Account for people who put trailing slashes in PATH elements.
  1463. case $as_dir/ in
  1464. ./ | .// | /cC/* | \
  1465. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1466. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1467. /usr/ucb/* ) ;;
  1468. *)
  1469. # OSF1 and SCO ODT 3.0 have their own names for install.
  1470. # Don't use installbsd from OSF since it installs stuff as root
  1471. # by default.
  1472. for ac_prog in ginstall scoinst install; do
  1473. for ac_exec_ext in '' $ac_executable_extensions; do
  1474. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1475. if test $ac_prog = install &&
  1476. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1477. # AIX install. It has an incompatible calling convention.
  1478. :
  1479. elif test $ac_prog = install &&
  1480. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1481. # program-specific install script used by HP pwplus--don't use.
  1482. :
  1483. else
  1484. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1485. break 3
  1486. fi
  1487. fi
  1488. done
  1489. done
  1490. ;;
  1491. esac
  1492. done
  1493. fi
  1494. if test "${ac_cv_path_install+set}" = set; then
  1495. INSTALL=$ac_cv_path_install
  1496. else
  1497. # As a last resort, use the slow shell script. We don't cache a
  1498. # path for INSTALL within a source directory, because that will
  1499. # break other packages using the cache if that directory is
  1500. # removed, or if the path is relative.
  1501. INSTALL=$ac_install_sh
  1502. fi
  1503. fi
  1504. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1505. echo "${ECHO_T}$INSTALL" >&6
  1506. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1507. # It thinks the first close brace ends the variable substitution.
  1508. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1509. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1510. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1511. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1512. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1513. # Just in case
  1514. sleep 1
  1515. echo timestamp > conftest.file
  1516. # Do `set' in a subshell so we don't clobber the current shell's
  1517. # arguments. Must try -L first in case configure is actually a
  1518. # symlink; some systems play weird games with the mod time of symlinks
  1519. # (eg FreeBSD returns the mod time of the symlink's containing
  1520. # directory).
  1521. if (
  1522. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1523. if test "$*" = "X"; then
  1524. # -L didn't work.
  1525. set X `ls -t $srcdir/configure conftest.file`
  1526. fi
  1527. rm -f conftest.file
  1528. if test "$*" != "X $srcdir/configure conftest.file" \
  1529. && test "$*" != "X conftest.file $srcdir/configure"; then
  1530. # If neither matched, then we have a broken ls. This can happen
  1531. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1532. # broken ls alias from the environment. This has actually
  1533. # happened. Such a system could not be considered "sane".
  1534. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1535. alias in your environment" >&5
  1536. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1537. alias in your environment" >&2;}
  1538. { (exit 1); exit 1; }; }
  1539. fi
  1540. test "$2" = conftest.file
  1541. )
  1542. then
  1543. # Ok.
  1544. :
  1545. else
  1546. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1547. Check your system clock" >&5
  1548. echo "$as_me: error: newly created file is older than distributed files!
  1549. Check your system clock" >&2;}
  1550. { (exit 1); exit 1; }; }
  1551. fi
  1552. echo "$as_me:$LINENO: result: yes" >&5
  1553. echo "${ECHO_T}yes" >&6
  1554. test "$program_prefix" != NONE &&
  1555. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1556. # Use a double $ so make ignores it.
  1557. test "$program_suffix" != NONE &&
  1558. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1559. # Double any \ or $. echo might interpret backslashes.
  1560. # By default was `s,x,x', remove it if useless.
  1561. cat <<\_ACEOF >conftest.sed
  1562. s/[\\$]/&&/g;s/;s,x,x,$//
  1563. _ACEOF
  1564. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1565. rm conftest.sed
  1566. # expand $ac_aux_dir to an absolute path
  1567. am_aux_dir=`cd $ac_aux_dir && pwd`
  1568. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1569. # Use eval to expand $SHELL
  1570. if eval "$MISSING --run true"; then
  1571. am_missing_run="$MISSING --run "
  1572. else
  1573. am_missing_run=
  1574. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1575. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1576. fi
  1577. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1578. # We used to keeping the `.' as first argument, in order to
  1579. # allow $(mkdir_p) to be used without argument. As in
  1580. # $(mkdir_p) $(somedir)
  1581. # where $(somedir) is conditionally defined. However this is wrong
  1582. # for two reasons:
  1583. # 1. if the package is installed by a user who cannot write `.'
  1584. # make install will fail,
  1585. # 2. the above comment should most certainly read
  1586. # $(mkdir_p) $(DESTDIR)$(somedir)
  1587. # so it does not work when $(somedir) is undefined and
  1588. # $(DESTDIR) is not.
  1589. # To support the latter case, we have to write
  1590. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1591. # so the `.' trick is pointless.
  1592. mkdir_p='mkdir -p --'
  1593. else
  1594. # On NextStep and OpenStep, the `mkdir' command does not
  1595. # recognize any option. It will interpret all options as
  1596. # directories to create, and then abort because `.' already
  1597. # exists.
  1598. for d in ./-p ./--version;
  1599. do
  1600. test -d $d && rmdir $d
  1601. done
  1602. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1603. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1604. mkdir_p='$(mkinstalldirs)'
  1605. else
  1606. mkdir_p='$(install_sh) -d'
  1607. fi
  1608. fi
  1609. for ac_prog in gawk mawk nawk awk
  1610. do
  1611. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1612. set dummy $ac_prog; ac_word=$2
  1613. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1614. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1615. if test "${ac_cv_prog_AWK+set}" = set; then
  1616. echo $ECHO_N "(cached) $ECHO_C" >&6
  1617. else
  1618. if test -n "$AWK"; then
  1619. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1620. else
  1621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1622. for as_dir in $PATH
  1623. do
  1624. IFS=$as_save_IFS
  1625. test -z "$as_dir" && as_dir=.
  1626. for ac_exec_ext in '' $ac_executable_extensions; do
  1627. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1628. ac_cv_prog_AWK="$ac_prog"
  1629. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1630. break 2
  1631. fi
  1632. done
  1633. done
  1634. fi
  1635. fi
  1636. AWK=$ac_cv_prog_AWK
  1637. if test -n "$AWK"; then
  1638. echo "$as_me:$LINENO: result: $AWK" >&5
  1639. echo "${ECHO_T}$AWK" >&6
  1640. else
  1641. echo "$as_me:$LINENO: result: no" >&5
  1642. echo "${ECHO_T}no" >&6
  1643. fi
  1644. test -n "$AWK" && break
  1645. done
  1646. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1647. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1648. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1649. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1650. echo $ECHO_N "(cached) $ECHO_C" >&6
  1651. else
  1652. cat >conftest.make <<\_ACEOF
  1653. all:
  1654. @echo 'ac_maketemp="$(MAKE)"'
  1655. _ACEOF
  1656. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1657. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1658. if test -n "$ac_maketemp"; then
  1659. eval ac_cv_prog_make_${ac_make}_set=yes
  1660. else
  1661. eval ac_cv_prog_make_${ac_make}_set=no
  1662. fi
  1663. rm -f conftest.make
  1664. fi
  1665. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1666. echo "$as_me:$LINENO: result: yes" >&5
  1667. echo "${ECHO_T}yes" >&6
  1668. SET_MAKE=
  1669. else
  1670. echo "$as_me:$LINENO: result: no" >&5
  1671. echo "${ECHO_T}no" >&6
  1672. SET_MAKE="MAKE=${MAKE-make}"
  1673. fi
  1674. rm -rf .tst 2>/dev/null
  1675. mkdir .tst 2>/dev/null
  1676. if test -d .tst; then
  1677. am__leading_dot=.
  1678. else
  1679. am__leading_dot=_
  1680. fi
  1681. rmdir .tst 2>/dev/null
  1682. # test to see if srcdir already configured
  1683. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1684. test -f $srcdir/config.status; then
  1685. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1686. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1687. { (exit 1); exit 1; }; }
  1688. fi
  1689. # test whether we have cygpath
  1690. if test -z "$CYGPATH_W"; then
  1691. if (cygpath --version) >/dev/null 2>/dev/null; then
  1692. CYGPATH_W='cygpath -w'
  1693. else
  1694. CYGPATH_W=echo
  1695. fi
  1696. fi
  1697. # Define the identity of the package.
  1698. PACKAGE='dirsrv'
  1699. VERSION='1.0'
  1700. # Some tools Automake needs.
  1701. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1702. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1703. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1704. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1705. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1706. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1707. # Installed binaries are usually stripped using `strip' when the user
  1708. # run `make install-strip'. However `strip' might not be the right
  1709. # tool to use in cross-compilation environments, therefore Automake
  1710. # will honor the `STRIP' environment variable to overrule this program.
  1711. if test "$cross_compiling" != no; then
  1712. if test -n "$ac_tool_prefix"; then
  1713. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1714. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1715. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1716. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1717. if test "${ac_cv_prog_STRIP+set}" = set; then
  1718. echo $ECHO_N "(cached) $ECHO_C" >&6
  1719. else
  1720. if test -n "$STRIP"; then
  1721. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1722. else
  1723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1724. for as_dir in $PATH
  1725. do
  1726. IFS=$as_save_IFS
  1727. test -z "$as_dir" && as_dir=.
  1728. for ac_exec_ext in '' $ac_executable_extensions; do
  1729. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1730. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1731. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1732. break 2
  1733. fi
  1734. done
  1735. done
  1736. fi
  1737. fi
  1738. STRIP=$ac_cv_prog_STRIP
  1739. if test -n "$STRIP"; then
  1740. echo "$as_me:$LINENO: result: $STRIP" >&5
  1741. echo "${ECHO_T}$STRIP" >&6
  1742. else
  1743. echo "$as_me:$LINENO: result: no" >&5
  1744. echo "${ECHO_T}no" >&6
  1745. fi
  1746. fi
  1747. if test -z "$ac_cv_prog_STRIP"; then
  1748. ac_ct_STRIP=$STRIP
  1749. # Extract the first word of "strip", so it can be a program name with args.
  1750. set dummy strip; ac_word=$2
  1751. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1752. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1753. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1754. echo $ECHO_N "(cached) $ECHO_C" >&6
  1755. else
  1756. if test -n "$ac_ct_STRIP"; then
  1757. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1758. else
  1759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1760. for as_dir in $PATH
  1761. do
  1762. IFS=$as_save_IFS
  1763. test -z "$as_dir" && as_dir=.
  1764. for ac_exec_ext in '' $ac_executable_extensions; do
  1765. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1766. ac_cv_prog_ac_ct_STRIP="strip"
  1767. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1768. break 2
  1769. fi
  1770. done
  1771. done
  1772. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1773. fi
  1774. fi
  1775. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1776. if test -n "$ac_ct_STRIP"; then
  1777. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1778. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1779. else
  1780. echo "$as_me:$LINENO: result: no" >&5
  1781. echo "${ECHO_T}no" >&6
  1782. fi
  1783. STRIP=$ac_ct_STRIP
  1784. else
  1785. STRIP="$ac_cv_prog_STRIP"
  1786. fi
  1787. fi
  1788. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1789. # We need awk for the "check" target. The system "awk" is bad on
  1790. # some platforms.
  1791. # Always define AMTAR for backward compatibility.
  1792. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1793. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1794. # define these for automake distdir
  1795. VERSION=$PACKAGE_VERSION
  1796. PACKAGE=$PACKAGE_TARNAME
  1797. cat >>confdefs.h <<_ACEOF
  1798. #define VERSION "$VERSION"
  1799. _ACEOF
  1800. cat >>confdefs.h <<_ACEOF
  1801. #define PACKAGE "$PACKAGE"
  1802. _ACEOF
  1803. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1804. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1805. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1806. if test "${enable_maintainer_mode+set}" = set; then
  1807. enableval="$enable_maintainer_mode"
  1808. USE_MAINTAINER_MODE=$enableval
  1809. else
  1810. USE_MAINTAINER_MODE=no
  1811. fi;
  1812. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1813. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1814. if test $USE_MAINTAINER_MODE = yes; then
  1815. MAINTAINER_MODE_TRUE=
  1816. MAINTAINER_MODE_FALSE='#'
  1817. else
  1818. MAINTAINER_MODE_TRUE='#'
  1819. MAINTAINER_MODE_FALSE=
  1820. fi
  1821. MAINT=$MAINTAINER_MODE_TRUE
  1822. # Make sure we can run config.sub.
  1823. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1824. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1825. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1826. { (exit 1); exit 1; }; }
  1827. echo "$as_me:$LINENO: checking build system type" >&5
  1828. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1829. if test "${ac_cv_build+set}" = set; then
  1830. echo $ECHO_N "(cached) $ECHO_C" >&6
  1831. else
  1832. ac_cv_build_alias=$build_alias
  1833. test -z "$ac_cv_build_alias" &&
  1834. ac_cv_build_alias=`$ac_config_guess`
  1835. test -z "$ac_cv_build_alias" &&
  1836. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1837. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1838. { (exit 1); exit 1; }; }
  1839. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1840. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1841. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1842. { (exit 1); exit 1; }; }
  1843. fi
  1844. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1845. echo "${ECHO_T}$ac_cv_build" >&6
  1846. build=$ac_cv_build
  1847. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1848. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1849. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1850. echo "$as_me:$LINENO: checking host system type" >&5
  1851. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1852. if test "${ac_cv_host+set}" = set; then
  1853. echo $ECHO_N "(cached) $ECHO_C" >&6
  1854. else
  1855. ac_cv_host_alias=$host_alias
  1856. test -z "$ac_cv_host_alias" &&
  1857. ac_cv_host_alias=$ac_cv_build_alias
  1858. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1859. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1860. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1861. { (exit 1); exit 1; }; }
  1862. fi
  1863. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1864. echo "${ECHO_T}$ac_cv_host" >&6
  1865. host=$ac_cv_host
  1866. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1867. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1868. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1869. # Checks for programs.
  1870. ac_ext=cc
  1871. ac_cpp='$CXXCPP $CPPFLAGS'
  1872. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1873. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1874. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1875. if test -n "$ac_tool_prefix"; then
  1876. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1877. do
  1878. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1879. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1880. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1881. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1882. if test "${ac_cv_prog_CXX+set}" = set; then
  1883. echo $ECHO_N "(cached) $ECHO_C" >&6
  1884. else
  1885. if test -n "$CXX"; then
  1886. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1887. else
  1888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1889. for as_dir in $PATH
  1890. do
  1891. IFS=$as_save_IFS
  1892. test -z "$as_dir" && as_dir=.
  1893. for ac_exec_ext in '' $ac_executable_extensions; do
  1894. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1895. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1896. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1897. break 2
  1898. fi
  1899. done
  1900. done
  1901. fi
  1902. fi
  1903. CXX=$ac_cv_prog_CXX
  1904. if test -n "$CXX"; then
  1905. echo "$as_me:$LINENO: result: $CXX" >&5
  1906. echo "${ECHO_T}$CXX" >&6
  1907. else
  1908. echo "$as_me:$LINENO: result: no" >&5
  1909. echo "${ECHO_T}no" >&6
  1910. fi
  1911. test -n "$CXX" && break
  1912. done
  1913. fi
  1914. if test -z "$CXX"; then
  1915. ac_ct_CXX=$CXX
  1916. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1917. do
  1918. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1919. set dummy $ac_prog; ac_word=$2
  1920. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1921. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1922. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1923. echo $ECHO_N "(cached) $ECHO_C" >&6
  1924. else
  1925. if test -n "$ac_ct_CXX"; then
  1926. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1927. else
  1928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1929. for as_dir in $PATH
  1930. do
  1931. IFS=$as_save_IFS
  1932. test -z "$as_dir" && as_dir=.
  1933. for ac_exec_ext in '' $ac_executable_extensions; do
  1934. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1935. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1936. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1937. break 2
  1938. fi
  1939. done
  1940. done
  1941. fi
  1942. fi
  1943. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1944. if test -n "$ac_ct_CXX"; then
  1945. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1946. echo "${ECHO_T}$ac_ct_CXX" >&6
  1947. else
  1948. echo "$as_me:$LINENO: result: no" >&5
  1949. echo "${ECHO_T}no" >&6
  1950. fi
  1951. test -n "$ac_ct_CXX" && break
  1952. done
  1953. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1954. CXX=$ac_ct_CXX
  1955. fi
  1956. # Provide some information about the compiler.
  1957. echo "$as_me:$LINENO:" \
  1958. "checking for C++ compiler version" >&5
  1959. ac_compiler=`set X $ac_compile; echo $2`
  1960. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1961. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1962. ac_status=$?
  1963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1964. (exit $ac_status); }
  1965. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1966. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1967. ac_status=$?
  1968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1969. (exit $ac_status); }
  1970. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1971. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1972. ac_status=$?
  1973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1974. (exit $ac_status); }
  1975. cat >conftest.$ac_ext <<_ACEOF
  1976. /* confdefs.h. */
  1977. _ACEOF
  1978. cat confdefs.h >>conftest.$ac_ext
  1979. cat >>conftest.$ac_ext <<_ACEOF
  1980. /* end confdefs.h. */
  1981. int
  1982. main ()
  1983. {
  1984. ;
  1985. return 0;
  1986. }
  1987. _ACEOF
  1988. ac_clean_files_save=$ac_clean_files
  1989. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1990. # Try to create an executable without -o first, disregard a.out.
  1991. # It will help us diagnose broken compilers, and finding out an intuition
  1992. # of exeext.
  1993. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1994. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1995. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1996. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1997. (eval $ac_link_default) 2>&5
  1998. ac_status=$?
  1999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2000. (exit $ac_status); }; then
  2001. # Find the output, starting from the most likely. This scheme is
  2002. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2003. # resort.
  2004. # Be careful to initialize this variable, since it used to be cached.
  2005. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2006. ac_cv_exeext=
  2007. # b.out is created by i960 compilers.
  2008. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2009. do
  2010. test -f "$ac_file" || continue
  2011. case $ac_file in
  2012. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2013. ;;
  2014. conftest.$ac_ext )
  2015. # This is the source file.
  2016. ;;
  2017. [ab].out )
  2018. # We found the default executable, but exeext='' is most
  2019. # certainly right.
  2020. break;;
  2021. *.* )
  2022. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2023. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2024. # but it would be cool to find out if it's true. Does anybody
  2025. # maintain Libtool? --akim.
  2026. export ac_cv_exeext
  2027. break;;
  2028. * )
  2029. break;;
  2030. esac
  2031. done
  2032. else
  2033. echo "$as_me: failed program was:" >&5
  2034. sed 's/^/| /' conftest.$ac_ext >&5
  2035. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2036. See \`config.log' for more details." >&5
  2037. echo "$as_me: error: C++ compiler cannot create executables
  2038. See \`config.log' for more details." >&2;}
  2039. { (exit 77); exit 77; }; }
  2040. fi
  2041. ac_exeext=$ac_cv_exeext
  2042. echo "$as_me:$LINENO: result: $ac_file" >&5
  2043. echo "${ECHO_T}$ac_file" >&6
  2044. # Check the compiler produces executables we can run. If not, either
  2045. # the compiler is broken, or we cross compile.
  2046. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2047. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  2048. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2049. # If not cross compiling, check that we can run a simple program.
  2050. if test "$cross_compiling" != yes; then
  2051. if { ac_try='./$ac_file'
  2052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2053. (eval $ac_try) 2>&5
  2054. ac_status=$?
  2055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2056. (exit $ac_status); }; }; then
  2057. cross_compiling=no
  2058. else
  2059. if test "$cross_compiling" = maybe; then
  2060. cross_compiling=yes
  2061. else
  2062. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2063. If you meant to cross compile, use \`--host'.
  2064. See \`config.log' for more details." >&5
  2065. echo "$as_me: error: cannot run C++ compiled programs.
  2066. If you meant to cross compile, use \`--host'.
  2067. See \`config.log' for more details." >&2;}
  2068. { (exit 1); exit 1; }; }
  2069. fi
  2070. fi
  2071. fi
  2072. echo "$as_me:$LINENO: result: yes" >&5
  2073. echo "${ECHO_T}yes" >&6
  2074. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2075. ac_clean_files=$ac_clean_files_save
  2076. # Check the compiler produces executables we can run. If not, either
  2077. # the compiler is broken, or we cross compile.
  2078. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2079. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2080. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2081. echo "${ECHO_T}$cross_compiling" >&6
  2082. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2083. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2084. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2085. (eval $ac_link) 2>&5
  2086. ac_status=$?
  2087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088. (exit $ac_status); }; then
  2089. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2090. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2091. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2092. # `rm'.
  2093. for ac_file in conftest.exe conftest conftest.*; do
  2094. test -f "$ac_file" || continue
  2095. case $ac_file in
  2096. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2097. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2098. export ac_cv_exeext
  2099. break;;
  2100. * ) break;;
  2101. esac
  2102. done
  2103. else
  2104. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2105. See \`config.log' for more details." >&5
  2106. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2107. See \`config.log' for more details." >&2;}
  2108. { (exit 1); exit 1; }; }
  2109. fi
  2110. rm -f conftest$ac_cv_exeext
  2111. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2112. echo "${ECHO_T}$ac_cv_exeext" >&6
  2113. rm -f conftest.$ac_ext
  2114. EXEEXT=$ac_cv_exeext
  2115. ac_exeext=$EXEEXT
  2116. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2117. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2118. if test "${ac_cv_objext+set}" = set; then
  2119. echo $ECHO_N "(cached) $ECHO_C" >&6
  2120. else
  2121. cat >conftest.$ac_ext <<_ACEOF
  2122. /* confdefs.h. */
  2123. _ACEOF
  2124. cat confdefs.h >>conftest.$ac_ext
  2125. cat >>conftest.$ac_ext <<_ACEOF
  2126. /* end confdefs.h. */
  2127. int
  2128. main ()
  2129. {
  2130. ;
  2131. return 0;
  2132. }
  2133. _ACEOF
  2134. rm -f conftest.o conftest.obj
  2135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2136. (eval $ac_compile) 2>&5
  2137. ac_status=$?
  2138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2139. (exit $ac_status); }; then
  2140. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2141. case $ac_file in
  2142. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2143. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2144. break;;
  2145. esac
  2146. done
  2147. else
  2148. echo "$as_me: failed program was:" >&5
  2149. sed 's/^/| /' conftest.$ac_ext >&5
  2150. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2151. See \`config.log' for more details." >&5
  2152. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2153. See \`config.log' for more details." >&2;}
  2154. { (exit 1); exit 1; }; }
  2155. fi
  2156. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2157. fi
  2158. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2159. echo "${ECHO_T}$ac_cv_objext" >&6
  2160. OBJEXT=$ac_cv_objext
  2161. ac_objext=$OBJEXT
  2162. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2163. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2164. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2165. echo $ECHO_N "(cached) $ECHO_C" >&6
  2166. else
  2167. cat >conftest.$ac_ext <<_ACEOF
  2168. /* confdefs.h. */
  2169. _ACEOF
  2170. cat confdefs.h >>conftest.$ac_ext
  2171. cat >>conftest.$ac_ext <<_ACEOF
  2172. /* end confdefs.h. */
  2173. int
  2174. main ()
  2175. {
  2176. #ifndef __GNUC__
  2177. choke me
  2178. #endif
  2179. ;
  2180. return 0;
  2181. }
  2182. _ACEOF
  2183. rm -f conftest.$ac_objext
  2184. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2185. (eval $ac_compile) 2>conftest.er1
  2186. ac_status=$?
  2187. grep -v '^ *+' conftest.er1 >conftest.err
  2188. rm -f conftest.er1
  2189. cat conftest.err >&5
  2190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2191. (exit $ac_status); } &&
  2192. { ac_try='test -z "$ac_cxx_werror_flag"
  2193. || test ! -s conftest.err'
  2194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2195. (eval $ac_try) 2>&5
  2196. ac_status=$?
  2197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2198. (exit $ac_status); }; } &&
  2199. { ac_try='test -s conftest.$ac_objext'
  2200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2201. (eval $ac_try) 2>&5
  2202. ac_status=$?
  2203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2204. (exit $ac_status); }; }; then
  2205. ac_compiler_gnu=yes
  2206. else
  2207. echo "$as_me: failed program was:" >&5
  2208. sed 's/^/| /' conftest.$ac_ext >&5
  2209. ac_compiler_gnu=no
  2210. fi
  2211. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2212. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2213. fi
  2214. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2215. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2216. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2217. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2218. ac_save_CXXFLAGS=$CXXFLAGS
  2219. CXXFLAGS="-g"
  2220. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2221. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2222. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2223. echo $ECHO_N "(cached) $ECHO_C" >&6
  2224. else
  2225. cat >conftest.$ac_ext <<_ACEOF
  2226. /* confdefs.h. */
  2227. _ACEOF
  2228. cat confdefs.h >>conftest.$ac_ext
  2229. cat >>conftest.$ac_ext <<_ACEOF
  2230. /* end confdefs.h. */
  2231. int
  2232. main ()
  2233. {
  2234. ;
  2235. return 0;
  2236. }
  2237. _ACEOF
  2238. rm -f conftest.$ac_objext
  2239. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2240. (eval $ac_compile) 2>conftest.er1
  2241. ac_status=$?
  2242. grep -v '^ *+' conftest.er1 >conftest.err
  2243. rm -f conftest.er1
  2244. cat conftest.err >&5
  2245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2246. (exit $ac_status); } &&
  2247. { ac_try='test -z "$ac_cxx_werror_flag"
  2248. || test ! -s conftest.err'
  2249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2250. (eval $ac_try) 2>&5
  2251. ac_status=$?
  2252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2253. (exit $ac_status); }; } &&
  2254. { ac_try='test -s conftest.$ac_objext'
  2255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2256. (eval $ac_try) 2>&5
  2257. ac_status=$?
  2258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2259. (exit $ac_status); }; }; then
  2260. ac_cv_prog_cxx_g=yes
  2261. else
  2262. echo "$as_me: failed program was:" >&5
  2263. sed 's/^/| /' conftest.$ac_ext >&5
  2264. ac_cv_prog_cxx_g=no
  2265. fi
  2266. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2270. if test "$ac_test_CXXFLAGS" = set; then
  2271. CXXFLAGS=$ac_save_CXXFLAGS
  2272. elif test $ac_cv_prog_cxx_g = yes; then
  2273. if test "$GXX" = yes; then
  2274. CXXFLAGS="-g -O2"
  2275. else
  2276. CXXFLAGS="-g"
  2277. fi
  2278. else
  2279. if test "$GXX" = yes; then
  2280. CXXFLAGS="-O2"
  2281. else
  2282. CXXFLAGS=
  2283. fi
  2284. fi
  2285. for ac_declaration in \
  2286. '' \
  2287. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2288. 'extern "C" void std::exit (int); using std::exit;' \
  2289. 'extern "C" void exit (int) throw ();' \
  2290. 'extern "C" void exit (int);' \
  2291. 'void exit (int);'
  2292. do
  2293. cat >conftest.$ac_ext <<_ACEOF
  2294. /* confdefs.h. */
  2295. _ACEOF
  2296. cat confdefs.h >>conftest.$ac_ext
  2297. cat >>conftest.$ac_ext <<_ACEOF
  2298. /* end confdefs.h. */
  2299. $ac_declaration
  2300. #include <stdlib.h>
  2301. int
  2302. main ()
  2303. {
  2304. exit (42);
  2305. ;
  2306. return 0;
  2307. }
  2308. _ACEOF
  2309. rm -f conftest.$ac_objext
  2310. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2311. (eval $ac_compile) 2>conftest.er1
  2312. ac_status=$?
  2313. grep -v '^ *+' conftest.er1 >conftest.err
  2314. rm -f conftest.er1
  2315. cat conftest.err >&5
  2316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2317. (exit $ac_status); } &&
  2318. { ac_try='test -z "$ac_cxx_werror_flag"
  2319. || test ! -s conftest.err'
  2320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2321. (eval $ac_try) 2>&5
  2322. ac_status=$?
  2323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2324. (exit $ac_status); }; } &&
  2325. { ac_try='test -s conftest.$ac_objext'
  2326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2327. (eval $ac_try) 2>&5
  2328. ac_status=$?
  2329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2330. (exit $ac_status); }; }; then
  2331. :
  2332. else
  2333. echo "$as_me: failed program was:" >&5
  2334. sed 's/^/| /' conftest.$ac_ext >&5
  2335. continue
  2336. fi
  2337. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2338. cat >conftest.$ac_ext <<_ACEOF
  2339. /* confdefs.h. */
  2340. _ACEOF
  2341. cat confdefs.h >>conftest.$ac_ext
  2342. cat >>conftest.$ac_ext <<_ACEOF
  2343. /* end confdefs.h. */
  2344. $ac_declaration
  2345. int
  2346. main ()
  2347. {
  2348. exit (42);
  2349. ;
  2350. return 0;
  2351. }
  2352. _ACEOF
  2353. rm -f conftest.$ac_objext
  2354. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2355. (eval $ac_compile) 2>conftest.er1
  2356. ac_status=$?
  2357. grep -v '^ *+' conftest.er1 >conftest.err
  2358. rm -f conftest.er1
  2359. cat conftest.err >&5
  2360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2361. (exit $ac_status); } &&
  2362. { ac_try='test -z "$ac_cxx_werror_flag"
  2363. || test ! -s conftest.err'
  2364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2365. (eval $ac_try) 2>&5
  2366. ac_status=$?
  2367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2368. (exit $ac_status); }; } &&
  2369. { ac_try='test -s conftest.$ac_objext'
  2370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2371. (eval $ac_try) 2>&5
  2372. ac_status=$?
  2373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2374. (exit $ac_status); }; }; then
  2375. break
  2376. else
  2377. echo "$as_me: failed program was:" >&5
  2378. sed 's/^/| /' conftest.$ac_ext >&5
  2379. fi
  2380. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2381. done
  2382. rm -f conftest*
  2383. if test -n "$ac_declaration"; then
  2384. echo '#ifdef __cplusplus' >>confdefs.h
  2385. echo $ac_declaration >>confdefs.h
  2386. echo '#endif' >>confdefs.h
  2387. fi
  2388. ac_ext=c
  2389. ac_cpp='$CPP $CPPFLAGS'
  2390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2393. DEPDIR="${am__leading_dot}deps"
  2394. ac_config_commands="$ac_config_commands depfiles"
  2395. am_make=${MAKE-make}
  2396. cat > confinc << 'END'
  2397. am__doit:
  2398. @echo done
  2399. .PHONY: am__doit
  2400. END
  2401. # If we don't find an include directive, just comment out the code.
  2402. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2403. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2404. am__include="#"
  2405. am__quote=
  2406. _am_result=none
  2407. # First try GNU make style include.
  2408. echo "include confinc" > confmf
  2409. # We grep out `Entering directory' and `Leaving directory'
  2410. # messages which can occur if `w' ends up in MAKEFLAGS.
  2411. # In particular we don't look at `^make:' because GNU make might
  2412. # be invoked under some other name (usually "gmake"), in which
  2413. # case it prints its new name instead of `make'.
  2414. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2415. am__include=include
  2416. am__quote=
  2417. _am_result=GNU
  2418. fi
  2419. # Now try BSD make style include.
  2420. if test "$am__include" = "#"; then
  2421. echo '.include "confinc"' > confmf
  2422. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2423. am__include=.include
  2424. am__quote="\""
  2425. _am_result=BSD
  2426. fi
  2427. fi
  2428. echo "$as_me:$LINENO: result: $_am_result" >&5
  2429. echo "${ECHO_T}$_am_result" >&6
  2430. rm -f confinc confmf
  2431. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2432. if test "${enable_dependency_tracking+set}" = set; then
  2433. enableval="$enable_dependency_tracking"
  2434. fi;
  2435. if test "x$enable_dependency_tracking" != xno; then
  2436. am_depcomp="$ac_aux_dir/depcomp"
  2437. AMDEPBACKSLASH='\'
  2438. fi
  2439. if test "x$enable_dependency_tracking" != xno; then
  2440. AMDEP_TRUE=
  2441. AMDEP_FALSE='#'
  2442. else
  2443. AMDEP_TRUE='#'
  2444. AMDEP_FALSE=
  2445. fi
  2446. depcc="$CXX" am_compiler_list=
  2447. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2448. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2449. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2450. echo $ECHO_N "(cached) $ECHO_C" >&6
  2451. else
  2452. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2453. # We make a subdir and do the tests there. Otherwise we can end up
  2454. # making bogus files that we don't know about and never remove. For
  2455. # instance it was reported that on HP-UX the gcc test will end up
  2456. # making a dummy file named `D' -- because `-MD' means `put the output
  2457. # in D'.
  2458. mkdir conftest.dir
  2459. # Copy depcomp to subdir because otherwise we won't find it if we're
  2460. # using a relative directory.
  2461. cp "$am_depcomp" conftest.dir
  2462. cd conftest.dir
  2463. # We will build objects and dependencies in a subdirectory because
  2464. # it helps to detect inapplicable dependency modes. For instance
  2465. # both Tru64's cc and ICC support -MD to output dependencies as a
  2466. # side effect of compilation, but ICC will put the dependencies in
  2467. # the current directory while Tru64 will put them in the object
  2468. # directory.
  2469. mkdir sub
  2470. am_cv_CXX_dependencies_compiler_type=none
  2471. if test "$am_compiler_list" = ""; then
  2472. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2473. fi
  2474. for depmode in $am_compiler_list; do
  2475. # Setup a source with many dependencies, because some compilers
  2476. # like to wrap large dependency lists on column 80 (with \), and
  2477. # we should not choose a depcomp mode which is confused by this.
  2478. #
  2479. # We need to recreate these files for each test, as the compiler may
  2480. # overwrite some of them when testing with obscure command lines.
  2481. # This happens at least with the AIX C compiler.
  2482. : > sub/conftest.c
  2483. for i in 1 2 3 4 5 6; do
  2484. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2485. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2486. # Solaris 8's {/usr,}/bin/sh.
  2487. touch sub/conftst$i.h
  2488. done
  2489. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2490. case $depmode in
  2491. nosideeffect)
  2492. # after this tag, mechanisms are not by side-effect, so they'll
  2493. # only be used when explicitly requested
  2494. if test "x$enable_dependency_tracking" = xyes; then
  2495. continue
  2496. else
  2497. break
  2498. fi
  2499. ;;
  2500. none) break ;;
  2501. esac
  2502. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2503. # mode. It turns out that the SunPro C++ compiler does not properly
  2504. # handle `-M -o', and we need to detect this.
  2505. if depmode=$depmode \
  2506. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2507. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2508. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2509. >/dev/null 2>conftest.err &&
  2510. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2511. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2512. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2513. # icc doesn't choke on unknown options, it will just issue warnings
  2514. # or remarks (even with -Werror). So we grep stderr for any message
  2515. # that says an option was ignored or not supported.
  2516. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2517. # icc: Command line warning: ignoring option '-M'; no argument required
  2518. # The diagnosis changed in icc 8.0:
  2519. # icc: Command line remark: option '-MP' not supported
  2520. if (grep 'ignoring option' conftest.err ||
  2521. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2522. am_cv_CXX_dependencies_compiler_type=$depmode
  2523. break
  2524. fi
  2525. fi
  2526. done
  2527. cd ..
  2528. rm -rf conftest.dir
  2529. else
  2530. am_cv_CXX_dependencies_compiler_type=none
  2531. fi
  2532. fi
  2533. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2534. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2535. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2536. if
  2537. test "x$enable_dependency_tracking" != xno \
  2538. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2539. am__fastdepCXX_TRUE=
  2540. am__fastdepCXX_FALSE='#'
  2541. else
  2542. am__fastdepCXX_TRUE='#'
  2543. am__fastdepCXX_FALSE=
  2544. fi
  2545. ac_ext=c
  2546. ac_cpp='$CPP $CPPFLAGS'
  2547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2550. if test -n "$ac_tool_prefix"; then
  2551. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2552. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2553. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2554. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2555. if test "${ac_cv_prog_CC+set}" = set; then
  2556. echo $ECHO_N "(cached) $ECHO_C" >&6
  2557. else
  2558. if test -n "$CC"; then
  2559. ac_cv_prog_CC="$CC" # Let the user override the test.
  2560. else
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2568. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2569. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. break 2
  2571. fi
  2572. done
  2573. done
  2574. fi
  2575. fi
  2576. CC=$ac_cv_prog_CC
  2577. if test -n "$CC"; then
  2578. echo "$as_me:$LINENO: result: $CC" >&5
  2579. echo "${ECHO_T}$CC" >&6
  2580. else
  2581. echo "$as_me:$LINENO: result: no" >&5
  2582. echo "${ECHO_T}no" >&6
  2583. fi
  2584. fi
  2585. if test -z "$ac_cv_prog_CC"; then
  2586. ac_ct_CC=$CC
  2587. # Extract the first word of "gcc", so it can be a program name with args.
  2588. set dummy gcc; ac_word=$2
  2589. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2590. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2591. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2592. echo $ECHO_N "(cached) $ECHO_C" >&6
  2593. else
  2594. if test -n "$ac_ct_CC"; then
  2595. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2596. else
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600. IFS=$as_save_IFS
  2601. test -z "$as_dir" && as_dir=.
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2604. ac_cv_prog_ac_ct_CC="gcc"
  2605. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2606. break 2
  2607. fi
  2608. done
  2609. done
  2610. fi
  2611. fi
  2612. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2613. if test -n "$ac_ct_CC"; then
  2614. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2615. echo "${ECHO_T}$ac_ct_CC" >&6
  2616. else
  2617. echo "$as_me:$LINENO: result: no" >&5
  2618. echo "${ECHO_T}no" >&6
  2619. fi
  2620. CC=$ac_ct_CC
  2621. else
  2622. CC="$ac_cv_prog_CC"
  2623. fi
  2624. if test -z "$CC"; then
  2625. if test -n "$ac_tool_prefix"; then
  2626. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2627. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2628. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2629. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2630. if test "${ac_cv_prog_CC+set}" = set; then
  2631. echo $ECHO_N "(cached) $ECHO_C" >&6
  2632. else
  2633. if test -n "$CC"; then
  2634. ac_cv_prog_CC="$CC" # Let the user override the test.
  2635. else
  2636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2637. for as_dir in $PATH
  2638. do
  2639. IFS=$as_save_IFS
  2640. test -z "$as_dir" && as_dir=.
  2641. for ac_exec_ext in '' $ac_executable_extensions; do
  2642. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2643. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2644. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2645. break 2
  2646. fi
  2647. done
  2648. done
  2649. fi
  2650. fi
  2651. CC=$ac_cv_prog_CC
  2652. if test -n "$CC"; then
  2653. echo "$as_me:$LINENO: result: $CC" >&5
  2654. echo "${ECHO_T}$CC" >&6
  2655. else
  2656. echo "$as_me:$LINENO: result: no" >&5
  2657. echo "${ECHO_T}no" >&6
  2658. fi
  2659. fi
  2660. if test -z "$ac_cv_prog_CC"; then
  2661. ac_ct_CC=$CC
  2662. # Extract the first word of "cc", so it can be a program name with args.
  2663. set dummy cc; ac_word=$2
  2664. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2665. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2666. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2667. echo $ECHO_N "(cached) $ECHO_C" >&6
  2668. else
  2669. if test -n "$ac_ct_CC"; then
  2670. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2671. else
  2672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2673. for as_dir in $PATH
  2674. do
  2675. IFS=$as_save_IFS
  2676. test -z "$as_dir" && as_dir=.
  2677. for ac_exec_ext in '' $ac_executable_extensions; do
  2678. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2679. ac_cv_prog_ac_ct_CC="cc"
  2680. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2681. break 2
  2682. fi
  2683. done
  2684. done
  2685. fi
  2686. fi
  2687. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2688. if test -n "$ac_ct_CC"; then
  2689. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2690. echo "${ECHO_T}$ac_ct_CC" >&6
  2691. else
  2692. echo "$as_me:$LINENO: result: no" >&5
  2693. echo "${ECHO_T}no" >&6
  2694. fi
  2695. CC=$ac_ct_CC
  2696. else
  2697. CC="$ac_cv_prog_CC"
  2698. fi
  2699. fi
  2700. if test -z "$CC"; then
  2701. # Extract the first word of "cc", so it can be a program name with args.
  2702. set dummy cc; ac_word=$2
  2703. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2704. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2705. if test "${ac_cv_prog_CC+set}" = set; then
  2706. echo $ECHO_N "(cached) $ECHO_C" >&6
  2707. else
  2708. if test -n "$CC"; then
  2709. ac_cv_prog_CC="$CC" # Let the user override the test.
  2710. else
  2711. ac_prog_rejected=no
  2712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2713. for as_dir in $PATH
  2714. do
  2715. IFS=$as_save_IFS
  2716. test -z "$as_dir" && as_dir=.
  2717. for ac_exec_ext in '' $ac_executable_extensions; do
  2718. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2719. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2720. ac_prog_rejected=yes
  2721. continue
  2722. fi
  2723. ac_cv_prog_CC="cc"
  2724. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2725. break 2
  2726. fi
  2727. done
  2728. done
  2729. if test $ac_prog_rejected = yes; then
  2730. # We found a bogon in the path, so make sure we never use it.
  2731. set dummy $ac_cv_prog_CC
  2732. shift
  2733. if test $# != 0; then
  2734. # We chose a different compiler from the bogus one.
  2735. # However, it has the same basename, so the bogon will be chosen
  2736. # first if we set CC to just the basename; use the full file name.
  2737. shift
  2738. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2739. fi
  2740. fi
  2741. fi
  2742. fi
  2743. CC=$ac_cv_prog_CC
  2744. if test -n "$CC"; then
  2745. echo "$as_me:$LINENO: result: $CC" >&5
  2746. echo "${ECHO_T}$CC" >&6
  2747. else
  2748. echo "$as_me:$LINENO: result: no" >&5
  2749. echo "${ECHO_T}no" >&6
  2750. fi
  2751. fi
  2752. if test -z "$CC"; then
  2753. if test -n "$ac_tool_prefix"; then
  2754. for ac_prog in cl
  2755. do
  2756. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2757. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2758. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2759. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2760. if test "${ac_cv_prog_CC+set}" = set; then
  2761. echo $ECHO_N "(cached) $ECHO_C" >&6
  2762. else
  2763. if test -n "$CC"; then
  2764. ac_cv_prog_CC="$CC" # Let the user override the test.
  2765. else
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2773. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2774. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. done
  2779. fi
  2780. fi
  2781. CC=$ac_cv_prog_CC
  2782. if test -n "$CC"; then
  2783. echo "$as_me:$LINENO: result: $CC" >&5
  2784. echo "${ECHO_T}$CC" >&6
  2785. else
  2786. echo "$as_me:$LINENO: result: no" >&5
  2787. echo "${ECHO_T}no" >&6
  2788. fi
  2789. test -n "$CC" && break
  2790. done
  2791. fi
  2792. if test -z "$CC"; then
  2793. ac_ct_CC=$CC
  2794. for ac_prog in cl
  2795. do
  2796. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2797. set dummy $ac_prog; ac_word=$2
  2798. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2799. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2800. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2801. echo $ECHO_N "(cached) $ECHO_C" >&6
  2802. else
  2803. if test -n "$ac_ct_CC"; then
  2804. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2805. else
  2806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2807. for as_dir in $PATH
  2808. do
  2809. IFS=$as_save_IFS
  2810. test -z "$as_dir" && as_dir=.
  2811. for ac_exec_ext in '' $ac_executable_extensions; do
  2812. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2813. ac_cv_prog_ac_ct_CC="$ac_prog"
  2814. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2815. break 2
  2816. fi
  2817. done
  2818. done
  2819. fi
  2820. fi
  2821. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2822. if test -n "$ac_ct_CC"; then
  2823. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2824. echo "${ECHO_T}$ac_ct_CC" >&6
  2825. else
  2826. echo "$as_me:$LINENO: result: no" >&5
  2827. echo "${ECHO_T}no" >&6
  2828. fi
  2829. test -n "$ac_ct_CC" && break
  2830. done
  2831. CC=$ac_ct_CC
  2832. fi
  2833. fi
  2834. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2835. See \`config.log' for more details." >&5
  2836. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2837. See \`config.log' for more details." >&2;}
  2838. { (exit 1); exit 1; }; }
  2839. # Provide some information about the compiler.
  2840. echo "$as_me:$LINENO:" \
  2841. "checking for C compiler version" >&5
  2842. ac_compiler=`set X $ac_compile; echo $2`
  2843. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2844. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2845. ac_status=$?
  2846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2847. (exit $ac_status); }
  2848. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2849. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2850. ac_status=$?
  2851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852. (exit $ac_status); }
  2853. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2854. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2855. ac_status=$?
  2856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857. (exit $ac_status); }
  2858. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2859. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2860. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2861. echo $ECHO_N "(cached) $ECHO_C" >&6
  2862. else
  2863. cat >conftest.$ac_ext <<_ACEOF
  2864. /* confdefs.h. */
  2865. _ACEOF
  2866. cat confdefs.h >>conftest.$ac_ext
  2867. cat >>conftest.$ac_ext <<_ACEOF
  2868. /* end confdefs.h. */
  2869. int
  2870. main ()
  2871. {
  2872. #ifndef __GNUC__
  2873. choke me
  2874. #endif
  2875. ;
  2876. return 0;
  2877. }
  2878. _ACEOF
  2879. rm -f conftest.$ac_objext
  2880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2881. (eval $ac_compile) 2>conftest.er1
  2882. ac_status=$?
  2883. grep -v '^ *+' conftest.er1 >conftest.err
  2884. rm -f conftest.er1
  2885. cat conftest.err >&5
  2886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887. (exit $ac_status); } &&
  2888. { ac_try='test -z "$ac_c_werror_flag"
  2889. || test ! -s conftest.err'
  2890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2891. (eval $ac_try) 2>&5
  2892. ac_status=$?
  2893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2894. (exit $ac_status); }; } &&
  2895. { ac_try='test -s conftest.$ac_objext'
  2896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2897. (eval $ac_try) 2>&5
  2898. ac_status=$?
  2899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2900. (exit $ac_status); }; }; then
  2901. ac_compiler_gnu=yes
  2902. else
  2903. echo "$as_me: failed program was:" >&5
  2904. sed 's/^/| /' conftest.$ac_ext >&5
  2905. ac_compiler_gnu=no
  2906. fi
  2907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2908. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2909. fi
  2910. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2911. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2912. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2913. ac_test_CFLAGS=${CFLAGS+set}
  2914. ac_save_CFLAGS=$CFLAGS
  2915. CFLAGS="-g"
  2916. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2917. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2918. if test "${ac_cv_prog_cc_g+set}" = set; then
  2919. echo $ECHO_N "(cached) $ECHO_C" >&6
  2920. else
  2921. cat >conftest.$ac_ext <<_ACEOF
  2922. /* confdefs.h. */
  2923. _ACEOF
  2924. cat confdefs.h >>conftest.$ac_ext
  2925. cat >>conftest.$ac_ext <<_ACEOF
  2926. /* end confdefs.h. */
  2927. int
  2928. main ()
  2929. {
  2930. ;
  2931. return 0;
  2932. }
  2933. _ACEOF
  2934. rm -f conftest.$ac_objext
  2935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2936. (eval $ac_compile) 2>conftest.er1
  2937. ac_status=$?
  2938. grep -v '^ *+' conftest.er1 >conftest.err
  2939. rm -f conftest.er1
  2940. cat conftest.err >&5
  2941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2942. (exit $ac_status); } &&
  2943. { ac_try='test -z "$ac_c_werror_flag"
  2944. || test ! -s conftest.err'
  2945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2946. (eval $ac_try) 2>&5
  2947. ac_status=$?
  2948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2949. (exit $ac_status); }; } &&
  2950. { ac_try='test -s conftest.$ac_objext'
  2951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2952. (eval $ac_try) 2>&5
  2953. ac_status=$?
  2954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2955. (exit $ac_status); }; }; then
  2956. ac_cv_prog_cc_g=yes
  2957. else
  2958. echo "$as_me: failed program was:" >&5
  2959. sed 's/^/| /' conftest.$ac_ext >&5
  2960. ac_cv_prog_cc_g=no
  2961. fi
  2962. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2963. fi
  2964. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2965. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2966. if test "$ac_test_CFLAGS" = set; then
  2967. CFLAGS=$ac_save_CFLAGS
  2968. elif test $ac_cv_prog_cc_g = yes; then
  2969. if test "$GCC" = yes; then
  2970. CFLAGS="-g -O2"
  2971. else
  2972. CFLAGS="-g"
  2973. fi
  2974. else
  2975. if test "$GCC" = yes; then
  2976. CFLAGS="-O2"
  2977. else
  2978. CFLAGS=
  2979. fi
  2980. fi
  2981. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2982. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2983. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2984. echo $ECHO_N "(cached) $ECHO_C" >&6
  2985. else
  2986. ac_cv_prog_cc_stdc=no
  2987. ac_save_CC=$CC
  2988. cat >conftest.$ac_ext <<_ACEOF
  2989. /* confdefs.h. */
  2990. _ACEOF
  2991. cat confdefs.h >>conftest.$ac_ext
  2992. cat >>conftest.$ac_ext <<_ACEOF
  2993. /* end confdefs.h. */
  2994. #include <stdarg.h>
  2995. #include <stdio.h>
  2996. #include <sys/types.h>
  2997. #include <sys/stat.h>
  2998. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2999. struct buf { int x; };
  3000. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3001. static char *e (p, i)
  3002. char **p;
  3003. int i;
  3004. {
  3005. return p[i];
  3006. }
  3007. static char *f (char * (*g) (char **, int), char **p, ...)
  3008. {
  3009. char *s;
  3010. va_list v;
  3011. va_start (v,p);
  3012. s = g (p, va_arg (v,int));
  3013. va_end (v);
  3014. return s;
  3015. }
  3016. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3017. function prototypes and stuff, but not '\xHH' hex character constants.
  3018. These don't provoke an error unfortunately, instead are silently treated
  3019. as 'x'. The following induces an error, until -std1 is added to get
  3020. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3021. array size at least. It's necessary to write '\x00'==0 to get something
  3022. that's true only with -std1. */
  3023. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3024. int test (int i, double x);
  3025. struct s1 {int (*f) (int a);};
  3026. struct s2 {int (*f) (double a);};
  3027. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3028. int argc;
  3029. char **argv;
  3030. int
  3031. main ()
  3032. {
  3033. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3034. ;
  3035. return 0;
  3036. }
  3037. _ACEOF
  3038. # Don't try gcc -ansi; that turns off useful extensions and
  3039. # breaks some systems' header files.
  3040. # AIX -qlanglvl=ansi
  3041. # Ultrix and OSF/1 -std1
  3042. # HP-UX 10.20 and later -Ae
  3043. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3044. # SVR4 -Xc -D__EXTENSIONS__
  3045. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3046. do
  3047. CC="$ac_save_CC $ac_arg"
  3048. rm -f conftest.$ac_objext
  3049. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3050. (eval $ac_compile) 2>conftest.er1
  3051. ac_status=$?
  3052. grep -v '^ *+' conftest.er1 >conftest.err
  3053. rm -f conftest.er1
  3054. cat conftest.err >&5
  3055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3056. (exit $ac_status); } &&
  3057. { ac_try='test -z "$ac_c_werror_flag"
  3058. || test ! -s conftest.err'
  3059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3060. (eval $ac_try) 2>&5
  3061. ac_status=$?
  3062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3063. (exit $ac_status); }; } &&
  3064. { ac_try='test -s conftest.$ac_objext'
  3065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3066. (eval $ac_try) 2>&5
  3067. ac_status=$?
  3068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3069. (exit $ac_status); }; }; then
  3070. ac_cv_prog_cc_stdc=$ac_arg
  3071. break
  3072. else
  3073. echo "$as_me: failed program was:" >&5
  3074. sed 's/^/| /' conftest.$ac_ext >&5
  3075. fi
  3076. rm -f conftest.err conftest.$ac_objext
  3077. done
  3078. rm -f conftest.$ac_ext conftest.$ac_objext
  3079. CC=$ac_save_CC
  3080. fi
  3081. case "x$ac_cv_prog_cc_stdc" in
  3082. x|xno)
  3083. echo "$as_me:$LINENO: result: none needed" >&5
  3084. echo "${ECHO_T}none needed" >&6 ;;
  3085. *)
  3086. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3087. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3088. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3089. esac
  3090. # Some people use a C++ compiler to compile C. Since we use `exit',
  3091. # in C++ we need to declare it. In case someone uses the same compiler
  3092. # for both compiling C and C++ we need to have the C++ compiler decide
  3093. # the declaration of exit, since it's the most demanding environment.
  3094. cat >conftest.$ac_ext <<_ACEOF
  3095. #ifndef __cplusplus
  3096. choke me
  3097. #endif
  3098. _ACEOF
  3099. rm -f conftest.$ac_objext
  3100. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3101. (eval $ac_compile) 2>conftest.er1
  3102. ac_status=$?
  3103. grep -v '^ *+' conftest.er1 >conftest.err
  3104. rm -f conftest.er1
  3105. cat conftest.err >&5
  3106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3107. (exit $ac_status); } &&
  3108. { ac_try='test -z "$ac_c_werror_flag"
  3109. || test ! -s conftest.err'
  3110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3111. (eval $ac_try) 2>&5
  3112. ac_status=$?
  3113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3114. (exit $ac_status); }; } &&
  3115. { ac_try='test -s conftest.$ac_objext'
  3116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3117. (eval $ac_try) 2>&5
  3118. ac_status=$?
  3119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3120. (exit $ac_status); }; }; then
  3121. for ac_declaration in \
  3122. '' \
  3123. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3124. 'extern "C" void std::exit (int); using std::exit;' \
  3125. 'extern "C" void exit (int) throw ();' \
  3126. 'extern "C" void exit (int);' \
  3127. 'void exit (int);'
  3128. do
  3129. cat >conftest.$ac_ext <<_ACEOF
  3130. /* confdefs.h. */
  3131. _ACEOF
  3132. cat confdefs.h >>conftest.$ac_ext
  3133. cat >>conftest.$ac_ext <<_ACEOF
  3134. /* end confdefs.h. */
  3135. $ac_declaration
  3136. #include <stdlib.h>
  3137. int
  3138. main ()
  3139. {
  3140. exit (42);
  3141. ;
  3142. return 0;
  3143. }
  3144. _ACEOF
  3145. rm -f conftest.$ac_objext
  3146. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3147. (eval $ac_compile) 2>conftest.er1
  3148. ac_status=$?
  3149. grep -v '^ *+' conftest.er1 >conftest.err
  3150. rm -f conftest.er1
  3151. cat conftest.err >&5
  3152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3153. (exit $ac_status); } &&
  3154. { ac_try='test -z "$ac_c_werror_flag"
  3155. || test ! -s conftest.err'
  3156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3157. (eval $ac_try) 2>&5
  3158. ac_status=$?
  3159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3160. (exit $ac_status); }; } &&
  3161. { ac_try='test -s conftest.$ac_objext'
  3162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3163. (eval $ac_try) 2>&5
  3164. ac_status=$?
  3165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3166. (exit $ac_status); }; }; then
  3167. :
  3168. else
  3169. echo "$as_me: failed program was:" >&5
  3170. sed 's/^/| /' conftest.$ac_ext >&5
  3171. continue
  3172. fi
  3173. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3174. cat >conftest.$ac_ext <<_ACEOF
  3175. /* confdefs.h. */
  3176. _ACEOF
  3177. cat confdefs.h >>conftest.$ac_ext
  3178. cat >>conftest.$ac_ext <<_ACEOF
  3179. /* end confdefs.h. */
  3180. $ac_declaration
  3181. int
  3182. main ()
  3183. {
  3184. exit (42);
  3185. ;
  3186. return 0;
  3187. }
  3188. _ACEOF
  3189. rm -f conftest.$ac_objext
  3190. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3191. (eval $ac_compile) 2>conftest.er1
  3192. ac_status=$?
  3193. grep -v '^ *+' conftest.er1 >conftest.err
  3194. rm -f conftest.er1
  3195. cat conftest.err >&5
  3196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3197. (exit $ac_status); } &&
  3198. { ac_try='test -z "$ac_c_werror_flag"
  3199. || test ! -s conftest.err'
  3200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3201. (eval $ac_try) 2>&5
  3202. ac_status=$?
  3203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3204. (exit $ac_status); }; } &&
  3205. { ac_try='test -s conftest.$ac_objext'
  3206. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3207. (eval $ac_try) 2>&5
  3208. ac_status=$?
  3209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3210. (exit $ac_status); }; }; then
  3211. break
  3212. else
  3213. echo "$as_me: failed program was:" >&5
  3214. sed 's/^/| /' conftest.$ac_ext >&5
  3215. fi
  3216. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3217. done
  3218. rm -f conftest*
  3219. if test -n "$ac_declaration"; then
  3220. echo '#ifdef __cplusplus' >>confdefs.h
  3221. echo $ac_declaration >>confdefs.h
  3222. echo '#endif' >>confdefs.h
  3223. fi
  3224. else
  3225. echo "$as_me: failed program was:" >&5
  3226. sed 's/^/| /' conftest.$ac_ext >&5
  3227. fi
  3228. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3229. ac_ext=c
  3230. ac_cpp='$CPP $CPPFLAGS'
  3231. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3232. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3233. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3234. depcc="$CC" am_compiler_list=
  3235. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3236. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3237. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3238. echo $ECHO_N "(cached) $ECHO_C" >&6
  3239. else
  3240. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3241. # We make a subdir and do the tests there. Otherwise we can end up
  3242. # making bogus files that we don't know about and never remove. For
  3243. # instance it was reported that on HP-UX the gcc test will end up
  3244. # making a dummy file named `D' -- because `-MD' means `put the output
  3245. # in D'.
  3246. mkdir conftest.dir
  3247. # Copy depcomp to subdir because otherwise we won't find it if we're
  3248. # using a relative directory.
  3249. cp "$am_depcomp" conftest.dir
  3250. cd conftest.dir
  3251. # We will build objects and dependencies in a subdirectory because
  3252. # it helps to detect inapplicable dependency modes. For instance
  3253. # both Tru64's cc and ICC support -MD to output dependencies as a
  3254. # side effect of compilation, but ICC will put the dependencies in
  3255. # the current directory while Tru64 will put them in the object
  3256. # directory.
  3257. mkdir sub
  3258. am_cv_CC_dependencies_compiler_type=none
  3259. if test "$am_compiler_list" = ""; then
  3260. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3261. fi
  3262. for depmode in $am_compiler_list; do
  3263. # Setup a source with many dependencies, because some compilers
  3264. # like to wrap large dependency lists on column 80 (with \), and
  3265. # we should not choose a depcomp mode which is confused by this.
  3266. #
  3267. # We need to recreate these files for each test, as the compiler may
  3268. # overwrite some of them when testing with obscure command lines.
  3269. # This happens at least with the AIX C compiler.
  3270. : > sub/conftest.c
  3271. for i in 1 2 3 4 5 6; do
  3272. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3273. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3274. # Solaris 8's {/usr,}/bin/sh.
  3275. touch sub/conftst$i.h
  3276. done
  3277. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3278. case $depmode in
  3279. nosideeffect)
  3280. # after this tag, mechanisms are not by side-effect, so they'll
  3281. # only be used when explicitly requested
  3282. if test "x$enable_dependency_tracking" = xyes; then
  3283. continue
  3284. else
  3285. break
  3286. fi
  3287. ;;
  3288. none) break ;;
  3289. esac
  3290. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3291. # mode. It turns out that the SunPro C++ compiler does not properly
  3292. # handle `-M -o', and we need to detect this.
  3293. if depmode=$depmode \
  3294. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3295. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3296. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3297. >/dev/null 2>conftest.err &&
  3298. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3299. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3300. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3301. # icc doesn't choke on unknown options, it will just issue warnings
  3302. # or remarks (even with -Werror). So we grep stderr for any message
  3303. # that says an option was ignored or not supported.
  3304. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3305. # icc: Command line warning: ignoring option '-M'; no argument required
  3306. # The diagnosis changed in icc 8.0:
  3307. # icc: Command line remark: option '-MP' not supported
  3308. if (grep 'ignoring option' conftest.err ||
  3309. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3310. am_cv_CC_dependencies_compiler_type=$depmode
  3311. break
  3312. fi
  3313. fi
  3314. done
  3315. cd ..
  3316. rm -rf conftest.dir
  3317. else
  3318. am_cv_CC_dependencies_compiler_type=none
  3319. fi
  3320. fi
  3321. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3322. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3323. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3324. if
  3325. test "x$enable_dependency_tracking" != xno \
  3326. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3327. am__fastdepCC_TRUE=
  3328. am__fastdepCC_FALSE='#'
  3329. else
  3330. am__fastdepCC_TRUE='#'
  3331. am__fastdepCC_FALSE=
  3332. fi
  3333. if test "x$CC" != xcc; then
  3334. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3335. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3336. else
  3337. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3338. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3339. fi
  3340. set dummy $CC; ac_cc=`echo $2 |
  3341. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3342. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3343. echo $ECHO_N "(cached) $ECHO_C" >&6
  3344. else
  3345. cat >conftest.$ac_ext <<_ACEOF
  3346. /* confdefs.h. */
  3347. _ACEOF
  3348. cat confdefs.h >>conftest.$ac_ext
  3349. cat >>conftest.$ac_ext <<_ACEOF
  3350. /* end confdefs.h. */
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. # Make sure it works both with $CC and with simple cc.
  3359. # We do the test twice because some compilers refuse to overwrite an
  3360. # existing .o file with -o, though they will create one.
  3361. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3362. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3363. (eval $ac_try) 2>&5
  3364. ac_status=$?
  3365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3366. (exit $ac_status); } &&
  3367. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3368. (eval $ac_try) 2>&5
  3369. ac_status=$?
  3370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3371. (exit $ac_status); };
  3372. then
  3373. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3374. if test "x$CC" != xcc; then
  3375. # Test first that cc exists at all.
  3376. if { ac_try='cc -c conftest.$ac_ext >&5'
  3377. { (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); }; }; then
  3382. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3383. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3384. (eval $ac_try) 2>&5
  3385. ac_status=$?
  3386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3387. (exit $ac_status); } &&
  3388. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3389. (eval $ac_try) 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); };
  3393. then
  3394. # cc works too.
  3395. :
  3396. else
  3397. # cc exists but doesn't like -o.
  3398. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3399. fi
  3400. fi
  3401. fi
  3402. else
  3403. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3404. fi
  3405. rm -f conftest*
  3406. fi
  3407. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3408. echo "$as_me:$LINENO: result: yes" >&5
  3409. echo "${ECHO_T}yes" >&6
  3410. else
  3411. echo "$as_me:$LINENO: result: no" >&5
  3412. echo "${ECHO_T}no" >&6
  3413. cat >>confdefs.h <<\_ACEOF
  3414. #define NO_MINUS_C_MINUS_O 1
  3415. _ACEOF
  3416. fi
  3417. # FIXME: we rely on the cache variable name because
  3418. # there is no other way.
  3419. set dummy $CC
  3420. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3421. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3422. # Losing compiler, so override with the script.
  3423. # FIXME: It is wrong to rewrite CC.
  3424. # But if we don't then we get into trouble of one sort or another.
  3425. # A longer-term fix would be to have automake use am__CC in this case,
  3426. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3427. CC="$am_aux_dir/compile $CC"
  3428. fi
  3429. # By default we simply use the C compiler to build assembly code.
  3430. test "${CCAS+set}" = set || CCAS=$CC
  3431. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3432. # disable static libs by default - we only use a couple
  3433. # Check whether --enable-static or --disable-static was given.
  3434. if test "${enable_static+set}" = set; then
  3435. enableval="$enable_static"
  3436. p=${PACKAGE-default}
  3437. case $enableval in
  3438. yes) enable_static=yes ;;
  3439. no) enable_static=no ;;
  3440. *)
  3441. enable_static=no
  3442. # Look at the argument we got. We use all the common list separators.
  3443. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3444. for pkg in $enableval; do
  3445. IFS="$lt_save_ifs"
  3446. if test "X$pkg" = "X$p"; then
  3447. enable_static=yes
  3448. fi
  3449. done
  3450. IFS="$lt_save_ifs"
  3451. ;;
  3452. esac
  3453. else
  3454. enable_static=no
  3455. fi;
  3456. # Check whether --enable-shared or --disable-shared was given.
  3457. if test "${enable_shared+set}" = set; then
  3458. enableval="$enable_shared"
  3459. p=${PACKAGE-default}
  3460. case $enableval in
  3461. yes) enable_shared=yes ;;
  3462. no) enable_shared=no ;;
  3463. *)
  3464. enable_shared=no
  3465. # Look at the argument we got. We use all the common list separators.
  3466. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3467. for pkg in $enableval; do
  3468. IFS="$lt_save_ifs"
  3469. if test "X$pkg" = "X$p"; then
  3470. enable_shared=yes
  3471. fi
  3472. done
  3473. IFS="$lt_save_ifs"
  3474. ;;
  3475. esac
  3476. else
  3477. enable_shared=yes
  3478. fi;
  3479. # Check whether --enable-fast-install or --disable-fast-install was given.
  3480. if test "${enable_fast_install+set}" = set; then
  3481. enableval="$enable_fast_install"
  3482. p=${PACKAGE-default}
  3483. case $enableval in
  3484. yes) enable_fast_install=yes ;;
  3485. no) enable_fast_install=no ;;
  3486. *)
  3487. enable_fast_install=no
  3488. # Look at the argument we got. We use all the common list separators.
  3489. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3490. for pkg in $enableval; do
  3491. IFS="$lt_save_ifs"
  3492. if test "X$pkg" = "X$p"; then
  3493. enable_fast_install=yes
  3494. fi
  3495. done
  3496. IFS="$lt_save_ifs"
  3497. ;;
  3498. esac
  3499. else
  3500. enable_fast_install=yes
  3501. fi;
  3502. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3503. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3504. if test "${lt_cv_path_SED+set}" = set; then
  3505. echo $ECHO_N "(cached) $ECHO_C" >&6
  3506. else
  3507. # Loop through the user's path and test for sed and gsed.
  3508. # Then use that list of sed's as ones to test for truncation.
  3509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3510. for as_dir in $PATH
  3511. do
  3512. IFS=$as_save_IFS
  3513. test -z "$as_dir" && as_dir=.
  3514. for lt_ac_prog in sed gsed; do
  3515. for ac_exec_ext in '' $ac_executable_extensions; do
  3516. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3517. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3518. fi
  3519. done
  3520. done
  3521. done
  3522. IFS=$as_save_IFS
  3523. lt_ac_max=0
  3524. lt_ac_count=0
  3525. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3526. # along with /bin/sed that truncates output.
  3527. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3528. test ! -f $lt_ac_sed && continue
  3529. cat /dev/null > conftest.in
  3530. lt_ac_count=0
  3531. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3532. # Check for GNU sed and select it if it is found.
  3533. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3534. lt_cv_path_SED=$lt_ac_sed
  3535. break
  3536. fi
  3537. while true; do
  3538. cat conftest.in conftest.in >conftest.tmp
  3539. mv conftest.tmp conftest.in
  3540. cp conftest.in conftest.nl
  3541. echo >>conftest.nl
  3542. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3543. cmp -s conftest.out conftest.nl || break
  3544. # 10000 chars as input seems more than enough
  3545. test $lt_ac_count -gt 10 && break
  3546. lt_ac_count=`expr $lt_ac_count + 1`
  3547. if test $lt_ac_count -gt $lt_ac_max; then
  3548. lt_ac_max=$lt_ac_count
  3549. lt_cv_path_SED=$lt_ac_sed
  3550. fi
  3551. done
  3552. done
  3553. fi
  3554. SED=$lt_cv_path_SED
  3555. echo "$as_me:$LINENO: result: $SED" >&5
  3556. echo "${ECHO_T}$SED" >&6
  3557. echo "$as_me:$LINENO: checking for egrep" >&5
  3558. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3559. if test "${ac_cv_prog_egrep+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3563. then ac_cv_prog_egrep='grep -E'
  3564. else ac_cv_prog_egrep='egrep'
  3565. fi
  3566. fi
  3567. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3568. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3569. EGREP=$ac_cv_prog_egrep
  3570. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3571. if test "${with_gnu_ld+set}" = set; then
  3572. withval="$with_gnu_ld"
  3573. test "$withval" = no || with_gnu_ld=yes
  3574. else
  3575. with_gnu_ld=no
  3576. fi;
  3577. ac_prog=ld
  3578. if test "$GCC" = yes; then
  3579. # Check if gcc -print-prog-name=ld gives a path.
  3580. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3581. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3582. case $host in
  3583. *-*-mingw*)
  3584. # gcc leaves a trailing carriage return which upsets mingw
  3585. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3586. *)
  3587. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3588. esac
  3589. case $ac_prog in
  3590. # Accept absolute paths.
  3591. [\\/]* | ?:[\\/]*)
  3592. re_direlt='/[^/][^/]*/\.\./'
  3593. # Canonicalize the pathname of ld
  3594. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3595. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3596. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3597. done
  3598. test -z "$LD" && LD="$ac_prog"
  3599. ;;
  3600. "")
  3601. # If it fails, then pretend we aren't using GCC.
  3602. ac_prog=ld
  3603. ;;
  3604. *)
  3605. # If it is relative, then search for the first ld in PATH.
  3606. with_gnu_ld=unknown
  3607. ;;
  3608. esac
  3609. elif test "$with_gnu_ld" = yes; then
  3610. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3611. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3612. else
  3613. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3614. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3615. fi
  3616. if test "${lt_cv_path_LD+set}" = set; then
  3617. echo $ECHO_N "(cached) $ECHO_C" >&6
  3618. else
  3619. if test -z "$LD"; then
  3620. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3621. for ac_dir in $PATH; do
  3622. IFS="$lt_save_ifs"
  3623. test -z "$ac_dir" && ac_dir=.
  3624. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3625. lt_cv_path_LD="$ac_dir/$ac_prog"
  3626. # Check to see if the program is GNU ld. I'd rather use --version,
  3627. # but apparently some variants of GNU ld only accept -v.
  3628. # Break only if it was the GNU/non-GNU ld that we prefer.
  3629. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3630. *GNU* | *'with BFD'*)
  3631. test "$with_gnu_ld" != no && break
  3632. ;;
  3633. *)
  3634. test "$with_gnu_ld" != yes && break
  3635. ;;
  3636. esac
  3637. fi
  3638. done
  3639. IFS="$lt_save_ifs"
  3640. else
  3641. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3642. fi
  3643. fi
  3644. LD="$lt_cv_path_LD"
  3645. if test -n "$LD"; then
  3646. echo "$as_me:$LINENO: result: $LD" >&5
  3647. echo "${ECHO_T}$LD" >&6
  3648. else
  3649. echo "$as_me:$LINENO: result: no" >&5
  3650. echo "${ECHO_T}no" >&6
  3651. fi
  3652. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3653. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3654. { (exit 1); exit 1; }; }
  3655. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3656. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3657. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3658. echo $ECHO_N "(cached) $ECHO_C" >&6
  3659. else
  3660. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3661. case `$LD -v 2>&1 </dev/null` in
  3662. *GNU* | *'with BFD'*)
  3663. lt_cv_prog_gnu_ld=yes
  3664. ;;
  3665. *)
  3666. lt_cv_prog_gnu_ld=no
  3667. ;;
  3668. esac
  3669. fi
  3670. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3671. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3672. with_gnu_ld=$lt_cv_prog_gnu_ld
  3673. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3674. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3675. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3676. echo $ECHO_N "(cached) $ECHO_C" >&6
  3677. else
  3678. lt_cv_ld_reload_flag='-r'
  3679. fi
  3680. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3681. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3682. reload_flag=$lt_cv_ld_reload_flag
  3683. case $reload_flag in
  3684. "" | " "*) ;;
  3685. *) reload_flag=" $reload_flag" ;;
  3686. esac
  3687. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3688. case $host_os in
  3689. darwin*)
  3690. if test "$GCC" = yes; then
  3691. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3692. else
  3693. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3694. fi
  3695. ;;
  3696. esac
  3697. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3698. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3699. if test "${lt_cv_path_NM+set}" = set; then
  3700. echo $ECHO_N "(cached) $ECHO_C" >&6
  3701. else
  3702. if test -n "$NM"; then
  3703. # Let the user override the test.
  3704. lt_cv_path_NM="$NM"
  3705. else
  3706. lt_nm_to_check="${ac_tool_prefix}nm"
  3707. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3708. lt_nm_to_check="$lt_nm_to_check nm"
  3709. fi
  3710. for lt_tmp_nm in $lt_nm_to_check; do
  3711. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3712. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3713. IFS="$lt_save_ifs"
  3714. test -z "$ac_dir" && ac_dir=.
  3715. tmp_nm="$ac_dir/$lt_tmp_nm"
  3716. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3717. # Check to see if the nm accepts a BSD-compat flag.
  3718. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3719. # nm: unknown option "B" ignored
  3720. # Tru64's nm complains that /dev/null is an invalid object file
  3721. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3722. */dev/null* | *'Invalid file or object type'*)
  3723. lt_cv_path_NM="$tmp_nm -B"
  3724. break
  3725. ;;
  3726. *)
  3727. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3728. */dev/null*)
  3729. lt_cv_path_NM="$tmp_nm -p"
  3730. break
  3731. ;;
  3732. *)
  3733. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3734. continue # so that we can try to find one that supports BSD flags
  3735. ;;
  3736. esac
  3737. ;;
  3738. esac
  3739. fi
  3740. done
  3741. IFS="$lt_save_ifs"
  3742. done
  3743. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3744. fi
  3745. fi
  3746. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3747. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3748. NM="$lt_cv_path_NM"
  3749. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3750. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3751. LN_S=$as_ln_s
  3752. if test "$LN_S" = "ln -s"; then
  3753. echo "$as_me:$LINENO: result: yes" >&5
  3754. echo "${ECHO_T}yes" >&6
  3755. else
  3756. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3757. echo "${ECHO_T}no, using $LN_S" >&6
  3758. fi
  3759. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3760. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3761. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3762. echo $ECHO_N "(cached) $ECHO_C" >&6
  3763. else
  3764. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3765. lt_cv_file_magic_test_file=
  3766. lt_cv_deplibs_check_method='unknown'
  3767. # Need to set the preceding variable on all platforms that support
  3768. # interlibrary dependencies.
  3769. # 'none' -- dependencies not supported.
  3770. # `unknown' -- same as none, but documents that we really don't know.
  3771. # 'pass_all' -- all dependencies passed with no checks.
  3772. # 'test_compile' -- check by making test program.
  3773. # 'file_magic [[regex]]' -- check by looking for files in library path
  3774. # which responds to the $file_magic_cmd with a given extended regex.
  3775. # If you have `file' or equivalent on your system and you're not sure
  3776. # whether `pass_all' will *always* work, you probably want this one.
  3777. case $host_os in
  3778. aix4* | aix5*)
  3779. lt_cv_deplibs_check_method=pass_all
  3780. ;;
  3781. beos*)
  3782. lt_cv_deplibs_check_method=pass_all
  3783. ;;
  3784. bsdi[45]*)
  3785. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3786. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3787. lt_cv_file_magic_test_file=/shlib/libc.so
  3788. ;;
  3789. cygwin*)
  3790. # func_win32_libid is a shell function defined in ltmain.sh
  3791. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3792. lt_cv_file_magic_cmd='func_win32_libid'
  3793. ;;
  3794. mingw* | pw32*)
  3795. # Base MSYS/MinGW do not provide the 'file' command needed by
  3796. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3797. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3798. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3799. ;;
  3800. darwin* | rhapsody*)
  3801. lt_cv_deplibs_check_method=pass_all
  3802. ;;
  3803. freebsd* | kfreebsd*-gnu | dragonfly*)
  3804. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3805. case $host_cpu in
  3806. i*86 )
  3807. # Not sure whether the presence of OpenBSD here was a mistake.
  3808. # Let's accept both of them until this is cleared up.
  3809. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3810. lt_cv_file_magic_cmd=/usr/bin/file
  3811. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3812. ;;
  3813. esac
  3814. else
  3815. lt_cv_deplibs_check_method=pass_all
  3816. fi
  3817. ;;
  3818. gnu*)
  3819. lt_cv_deplibs_check_method=pass_all
  3820. ;;
  3821. hpux10.20* | hpux11*)
  3822. lt_cv_file_magic_cmd=/usr/bin/file
  3823. case $host_cpu in
  3824. ia64*)
  3825. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3826. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3827. ;;
  3828. hppa*64*)
  3829. 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]'
  3830. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3831. ;;
  3832. *)
  3833. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3834. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3835. ;;
  3836. esac
  3837. ;;
  3838. interix3*)
  3839. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3840. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3841. ;;
  3842. irix5* | irix6* | nonstopux*)
  3843. case $LD in
  3844. *-32|*"-32 ") libmagic=32-bit;;
  3845. *-n32|*"-n32 ") libmagic=N32;;
  3846. *-64|*"-64 ") libmagic=64-bit;;
  3847. *) libmagic=never-match;;
  3848. esac
  3849. lt_cv_deplibs_check_method=pass_all
  3850. ;;
  3851. # This must be Linux ELF.
  3852. linux*)
  3853. lt_cv_deplibs_check_method=pass_all
  3854. ;;
  3855. netbsd*)
  3856. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3857. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3858. else
  3859. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3860. fi
  3861. ;;
  3862. newos6*)
  3863. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3864. lt_cv_file_magic_cmd=/usr/bin/file
  3865. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3866. ;;
  3867. nto-qnx*)
  3868. lt_cv_deplibs_check_method=unknown
  3869. ;;
  3870. openbsd*)
  3871. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3872. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3873. else
  3874. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3875. fi
  3876. ;;
  3877. osf3* | osf4* | osf5*)
  3878. lt_cv_deplibs_check_method=pass_all
  3879. ;;
  3880. solaris*)
  3881. lt_cv_deplibs_check_method=pass_all
  3882. ;;
  3883. sysv4 | sysv4.3*)
  3884. case $host_vendor in
  3885. motorola)
  3886. 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]'
  3887. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3888. ;;
  3889. ncr)
  3890. lt_cv_deplibs_check_method=pass_all
  3891. ;;
  3892. sequent)
  3893. lt_cv_file_magic_cmd='/bin/file'
  3894. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3895. ;;
  3896. sni)
  3897. lt_cv_file_magic_cmd='/bin/file'
  3898. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3899. lt_cv_file_magic_test_file=/lib/libc.so
  3900. ;;
  3901. siemens)
  3902. lt_cv_deplibs_check_method=pass_all
  3903. ;;
  3904. pc)
  3905. lt_cv_deplibs_check_method=pass_all
  3906. ;;
  3907. esac
  3908. ;;
  3909. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3910. lt_cv_deplibs_check_method=pass_all
  3911. ;;
  3912. esac
  3913. fi
  3914. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3915. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3916. file_magic_cmd=$lt_cv_file_magic_cmd
  3917. deplibs_check_method=$lt_cv_deplibs_check_method
  3918. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3919. # If no C compiler was specified, use CC.
  3920. LTCC=${LTCC-"$CC"}
  3921. # If no C compiler flags were specified, use CFLAGS.
  3922. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3923. # Allow CC to be a program name with arguments.
  3924. compiler=$CC
  3925. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3926. if test "${enable_libtool_lock+set}" = set; then
  3927. enableval="$enable_libtool_lock"
  3928. fi;
  3929. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3930. # Some flags need to be propagated to the compiler or linker for good
  3931. # libtool support.
  3932. case $host in
  3933. ia64-*-hpux*)
  3934. # Find out which ABI we are using.
  3935. echo 'int i;' > conftest.$ac_ext
  3936. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3937. (eval $ac_compile) 2>&5
  3938. ac_status=$?
  3939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3940. (exit $ac_status); }; then
  3941. case `/usr/bin/file conftest.$ac_objext` in
  3942. *ELF-32*)
  3943. HPUX_IA64_MODE="32"
  3944. ;;
  3945. *ELF-64*)
  3946. HPUX_IA64_MODE="64"
  3947. ;;
  3948. esac
  3949. fi
  3950. rm -rf conftest*
  3951. ;;
  3952. *-*-irix6*)
  3953. # Find out which ABI we are using.
  3954. echo '#line 4392 "configure"' > conftest.$ac_ext
  3955. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3956. (eval $ac_compile) 2>&5
  3957. ac_status=$?
  3958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3959. (exit $ac_status); }; then
  3960. if test "$lt_cv_prog_gnu_ld" = yes; then
  3961. case `/usr/bin/file conftest.$ac_objext` in
  3962. *32-bit*)
  3963. LD="${LD-ld} -melf32bsmip"
  3964. ;;
  3965. *N32*)
  3966. LD="${LD-ld} -melf32bmipn32"
  3967. ;;
  3968. *64-bit*)
  3969. LD="${LD-ld} -melf64bmip"
  3970. ;;
  3971. esac
  3972. else
  3973. case `/usr/bin/file conftest.$ac_objext` in
  3974. *32-bit*)
  3975. LD="${LD-ld} -32"
  3976. ;;
  3977. *N32*)
  3978. LD="${LD-ld} -n32"
  3979. ;;
  3980. *64-bit*)
  3981. LD="${LD-ld} -64"
  3982. ;;
  3983. esac
  3984. fi
  3985. fi
  3986. rm -rf conftest*
  3987. ;;
  3988. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3989. # Find out which ABI we are using.
  3990. echo 'int i;' > conftest.$ac_ext
  3991. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3992. (eval $ac_compile) 2>&5
  3993. ac_status=$?
  3994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3995. (exit $ac_status); }; then
  3996. case `/usr/bin/file conftest.o` in
  3997. *32-bit*)
  3998. case $host in
  3999. x86_64-*linux*)
  4000. LD="${LD-ld} -m elf_i386"
  4001. ;;
  4002. ppc64-*linux*|powerpc64-*linux*)
  4003. LD="${LD-ld} -m elf32ppclinux"
  4004. ;;
  4005. s390x-*linux*)
  4006. LD="${LD-ld} -m elf_s390"
  4007. ;;
  4008. sparc64-*linux*)
  4009. LD="${LD-ld} -m elf32_sparc"
  4010. ;;
  4011. esac
  4012. ;;
  4013. *64-bit*)
  4014. case $host in
  4015. x86_64-*linux*)
  4016. LD="${LD-ld} -m elf_x86_64"
  4017. ;;
  4018. ppc*-*linux*|powerpc*-*linux*)
  4019. LD="${LD-ld} -m elf64ppc"
  4020. ;;
  4021. s390*-*linux*)
  4022. LD="${LD-ld} -m elf64_s390"
  4023. ;;
  4024. sparc*-*linux*)
  4025. LD="${LD-ld} -m elf64_sparc"
  4026. ;;
  4027. esac
  4028. ;;
  4029. esac
  4030. fi
  4031. rm -rf conftest*
  4032. ;;
  4033. *-*-sco3.2v5*)
  4034. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4035. SAVE_CFLAGS="$CFLAGS"
  4036. CFLAGS="$CFLAGS -belf"
  4037. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4038. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4039. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4040. echo $ECHO_N "(cached) $ECHO_C" >&6
  4041. else
  4042. ac_ext=c
  4043. ac_cpp='$CPP $CPPFLAGS'
  4044. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4045. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4046. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4047. cat >conftest.$ac_ext <<_ACEOF
  4048. /* confdefs.h. */
  4049. _ACEOF
  4050. cat confdefs.h >>conftest.$ac_ext
  4051. cat >>conftest.$ac_ext <<_ACEOF
  4052. /* end confdefs.h. */
  4053. int
  4054. main ()
  4055. {
  4056. ;
  4057. return 0;
  4058. }
  4059. _ACEOF
  4060. rm -f conftest.$ac_objext conftest$ac_exeext
  4061. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4062. (eval $ac_link) 2>conftest.er1
  4063. ac_status=$?
  4064. grep -v '^ *+' conftest.er1 >conftest.err
  4065. rm -f conftest.er1
  4066. cat conftest.err >&5
  4067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4068. (exit $ac_status); } &&
  4069. { ac_try='test -z "$ac_c_werror_flag"
  4070. || test ! -s conftest.err'
  4071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4072. (eval $ac_try) 2>&5
  4073. ac_status=$?
  4074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4075. (exit $ac_status); }; } &&
  4076. { ac_try='test -s conftest$ac_exeext'
  4077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4078. (eval $ac_try) 2>&5
  4079. ac_status=$?
  4080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4081. (exit $ac_status); }; }; then
  4082. lt_cv_cc_needs_belf=yes
  4083. else
  4084. echo "$as_me: failed program was:" >&5
  4085. sed 's/^/| /' conftest.$ac_ext >&5
  4086. lt_cv_cc_needs_belf=no
  4087. fi
  4088. rm -f conftest.err conftest.$ac_objext \
  4089. conftest$ac_exeext conftest.$ac_ext
  4090. ac_ext=c
  4091. ac_cpp='$CPP $CPPFLAGS'
  4092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4095. fi
  4096. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4097. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4098. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4099. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4100. CFLAGS="$SAVE_CFLAGS"
  4101. fi
  4102. ;;
  4103. sparc*-*solaris*)
  4104. # Find out which ABI we are using.
  4105. echo 'int i;' > conftest.$ac_ext
  4106. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4107. (eval $ac_compile) 2>&5
  4108. ac_status=$?
  4109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4110. (exit $ac_status); }; then
  4111. case `/usr/bin/file conftest.o` in
  4112. *64-bit*)
  4113. case $lt_cv_prog_gnu_ld in
  4114. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4115. *) LD="${LD-ld} -64" ;;
  4116. esac
  4117. ;;
  4118. esac
  4119. fi
  4120. rm -rf conftest*
  4121. ;;
  4122. esac
  4123. need_locks="$enable_libtool_lock"
  4124. ac_ext=c
  4125. ac_cpp='$CPP $CPPFLAGS'
  4126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4129. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4130. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4131. # On Suns, sometimes $CPP names a directory.
  4132. if test -n "$CPP" && test -d "$CPP"; then
  4133. CPP=
  4134. fi
  4135. if test -z "$CPP"; then
  4136. if test "${ac_cv_prog_CPP+set}" = set; then
  4137. echo $ECHO_N "(cached) $ECHO_C" >&6
  4138. else
  4139. # Double quotes because CPP needs to be expanded
  4140. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4141. do
  4142. ac_preproc_ok=false
  4143. for ac_c_preproc_warn_flag in '' yes
  4144. do
  4145. # Use a header file that comes with gcc, so configuring glibc
  4146. # with a fresh cross-compiler works.
  4147. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4148. # <limits.h> exists even on freestanding compilers.
  4149. # On the NeXT, cc -E runs the code through the compiler's parser,
  4150. # not just through cpp. "Syntax error" is here to catch this case.
  4151. cat >conftest.$ac_ext <<_ACEOF
  4152. /* confdefs.h. */
  4153. _ACEOF
  4154. cat confdefs.h >>conftest.$ac_ext
  4155. cat >>conftest.$ac_ext <<_ACEOF
  4156. /* end confdefs.h. */
  4157. #ifdef __STDC__
  4158. # include <limits.h>
  4159. #else
  4160. # include <assert.h>
  4161. #endif
  4162. Syntax error
  4163. _ACEOF
  4164. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4165. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4166. ac_status=$?
  4167. grep -v '^ *+' conftest.er1 >conftest.err
  4168. rm -f conftest.er1
  4169. cat conftest.err >&5
  4170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4171. (exit $ac_status); } >/dev/null; then
  4172. if test -s conftest.err; then
  4173. ac_cpp_err=$ac_c_preproc_warn_flag
  4174. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4175. else
  4176. ac_cpp_err=
  4177. fi
  4178. else
  4179. ac_cpp_err=yes
  4180. fi
  4181. if test -z "$ac_cpp_err"; then
  4182. :
  4183. else
  4184. echo "$as_me: failed program was:" >&5
  4185. sed 's/^/| /' conftest.$ac_ext >&5
  4186. # Broken: fails on valid input.
  4187. continue
  4188. fi
  4189. rm -f conftest.err conftest.$ac_ext
  4190. # OK, works on sane cases. Now check whether non-existent headers
  4191. # can be detected and how.
  4192. cat >conftest.$ac_ext <<_ACEOF
  4193. /* confdefs.h. */
  4194. _ACEOF
  4195. cat confdefs.h >>conftest.$ac_ext
  4196. cat >>conftest.$ac_ext <<_ACEOF
  4197. /* end confdefs.h. */
  4198. #include <ac_nonexistent.h>
  4199. _ACEOF
  4200. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4201. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4202. ac_status=$?
  4203. grep -v '^ *+' conftest.er1 >conftest.err
  4204. rm -f conftest.er1
  4205. cat conftest.err >&5
  4206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4207. (exit $ac_status); } >/dev/null; then
  4208. if test -s conftest.err; then
  4209. ac_cpp_err=$ac_c_preproc_warn_flag
  4210. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4211. else
  4212. ac_cpp_err=
  4213. fi
  4214. else
  4215. ac_cpp_err=yes
  4216. fi
  4217. if test -z "$ac_cpp_err"; then
  4218. # Broken: success on invalid input.
  4219. continue
  4220. else
  4221. echo "$as_me: failed program was:" >&5
  4222. sed 's/^/| /' conftest.$ac_ext >&5
  4223. # Passes both tests.
  4224. ac_preproc_ok=:
  4225. break
  4226. fi
  4227. rm -f conftest.err conftest.$ac_ext
  4228. done
  4229. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4230. rm -f conftest.err conftest.$ac_ext
  4231. if $ac_preproc_ok; then
  4232. break
  4233. fi
  4234. done
  4235. ac_cv_prog_CPP=$CPP
  4236. fi
  4237. CPP=$ac_cv_prog_CPP
  4238. else
  4239. ac_cv_prog_CPP=$CPP
  4240. fi
  4241. echo "$as_me:$LINENO: result: $CPP" >&5
  4242. echo "${ECHO_T}$CPP" >&6
  4243. ac_preproc_ok=false
  4244. for ac_c_preproc_warn_flag in '' yes
  4245. do
  4246. # Use a header file that comes with gcc, so configuring glibc
  4247. # with a fresh cross-compiler works.
  4248. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4249. # <limits.h> exists even on freestanding compilers.
  4250. # On the NeXT, cc -E runs the code through the compiler's parser,
  4251. # not just through cpp. "Syntax error" is here to catch this case.
  4252. cat >conftest.$ac_ext <<_ACEOF
  4253. /* confdefs.h. */
  4254. _ACEOF
  4255. cat confdefs.h >>conftest.$ac_ext
  4256. cat >>conftest.$ac_ext <<_ACEOF
  4257. /* end confdefs.h. */
  4258. #ifdef __STDC__
  4259. # include <limits.h>
  4260. #else
  4261. # include <assert.h>
  4262. #endif
  4263. Syntax error
  4264. _ACEOF
  4265. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4266. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4267. ac_status=$?
  4268. grep -v '^ *+' conftest.er1 >conftest.err
  4269. rm -f conftest.er1
  4270. cat conftest.err >&5
  4271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4272. (exit $ac_status); } >/dev/null; then
  4273. if test -s conftest.err; then
  4274. ac_cpp_err=$ac_c_preproc_warn_flag
  4275. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4276. else
  4277. ac_cpp_err=
  4278. fi
  4279. else
  4280. ac_cpp_err=yes
  4281. fi
  4282. if test -z "$ac_cpp_err"; then
  4283. :
  4284. else
  4285. echo "$as_me: failed program was:" >&5
  4286. sed 's/^/| /' conftest.$ac_ext >&5
  4287. # Broken: fails on valid input.
  4288. continue
  4289. fi
  4290. rm -f conftest.err conftest.$ac_ext
  4291. # OK, works on sane cases. Now check whether non-existent headers
  4292. # can be detected and how.
  4293. cat >conftest.$ac_ext <<_ACEOF
  4294. /* confdefs.h. */
  4295. _ACEOF
  4296. cat confdefs.h >>conftest.$ac_ext
  4297. cat >>conftest.$ac_ext <<_ACEOF
  4298. /* end confdefs.h. */
  4299. #include <ac_nonexistent.h>
  4300. _ACEOF
  4301. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4302. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4303. ac_status=$?
  4304. grep -v '^ *+' conftest.er1 >conftest.err
  4305. rm -f conftest.er1
  4306. cat conftest.err >&5
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); } >/dev/null; then
  4309. if test -s conftest.err; then
  4310. ac_cpp_err=$ac_c_preproc_warn_flag
  4311. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4312. else
  4313. ac_cpp_err=
  4314. fi
  4315. else
  4316. ac_cpp_err=yes
  4317. fi
  4318. if test -z "$ac_cpp_err"; then
  4319. # Broken: success on invalid input.
  4320. continue
  4321. else
  4322. echo "$as_me: failed program was:" >&5
  4323. sed 's/^/| /' conftest.$ac_ext >&5
  4324. # Passes both tests.
  4325. ac_preproc_ok=:
  4326. break
  4327. fi
  4328. rm -f conftest.err conftest.$ac_ext
  4329. done
  4330. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4331. rm -f conftest.err conftest.$ac_ext
  4332. if $ac_preproc_ok; then
  4333. :
  4334. else
  4335. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4336. See \`config.log' for more details." >&5
  4337. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4338. See \`config.log' for more details." >&2;}
  4339. { (exit 1); exit 1; }; }
  4340. fi
  4341. ac_ext=c
  4342. ac_cpp='$CPP $CPPFLAGS'
  4343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4346. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4347. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4348. if test "${ac_cv_header_stdc+set}" = set; then
  4349. echo $ECHO_N "(cached) $ECHO_C" >&6
  4350. else
  4351. cat >conftest.$ac_ext <<_ACEOF
  4352. /* confdefs.h. */
  4353. _ACEOF
  4354. cat confdefs.h >>conftest.$ac_ext
  4355. cat >>conftest.$ac_ext <<_ACEOF
  4356. /* end confdefs.h. */
  4357. #include <stdlib.h>
  4358. #include <stdarg.h>
  4359. #include <string.h>
  4360. #include <float.h>
  4361. int
  4362. main ()
  4363. {
  4364. ;
  4365. return 0;
  4366. }
  4367. _ACEOF
  4368. rm -f conftest.$ac_objext
  4369. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4370. (eval $ac_compile) 2>conftest.er1
  4371. ac_status=$?
  4372. grep -v '^ *+' conftest.er1 >conftest.err
  4373. rm -f conftest.er1
  4374. cat conftest.err >&5
  4375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4376. (exit $ac_status); } &&
  4377. { ac_try='test -z "$ac_c_werror_flag"
  4378. || test ! -s conftest.err'
  4379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4380. (eval $ac_try) 2>&5
  4381. ac_status=$?
  4382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4383. (exit $ac_status); }; } &&
  4384. { ac_try='test -s conftest.$ac_objext'
  4385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4386. (eval $ac_try) 2>&5
  4387. ac_status=$?
  4388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4389. (exit $ac_status); }; }; then
  4390. ac_cv_header_stdc=yes
  4391. else
  4392. echo "$as_me: failed program was:" >&5
  4393. sed 's/^/| /' conftest.$ac_ext >&5
  4394. ac_cv_header_stdc=no
  4395. fi
  4396. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4397. if test $ac_cv_header_stdc = yes; then
  4398. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4399. cat >conftest.$ac_ext <<_ACEOF
  4400. /* confdefs.h. */
  4401. _ACEOF
  4402. cat confdefs.h >>conftest.$ac_ext
  4403. cat >>conftest.$ac_ext <<_ACEOF
  4404. /* end confdefs.h. */
  4405. #include <string.h>
  4406. _ACEOF
  4407. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4408. $EGREP "memchr" >/dev/null 2>&1; then
  4409. :
  4410. else
  4411. ac_cv_header_stdc=no
  4412. fi
  4413. rm -f conftest*
  4414. fi
  4415. if test $ac_cv_header_stdc = yes; then
  4416. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4417. cat >conftest.$ac_ext <<_ACEOF
  4418. /* confdefs.h. */
  4419. _ACEOF
  4420. cat confdefs.h >>conftest.$ac_ext
  4421. cat >>conftest.$ac_ext <<_ACEOF
  4422. /* end confdefs.h. */
  4423. #include <stdlib.h>
  4424. _ACEOF
  4425. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4426. $EGREP "free" >/dev/null 2>&1; then
  4427. :
  4428. else
  4429. ac_cv_header_stdc=no
  4430. fi
  4431. rm -f conftest*
  4432. fi
  4433. if test $ac_cv_header_stdc = yes; then
  4434. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4435. if test "$cross_compiling" = yes; then
  4436. :
  4437. else
  4438. cat >conftest.$ac_ext <<_ACEOF
  4439. /* confdefs.h. */
  4440. _ACEOF
  4441. cat confdefs.h >>conftest.$ac_ext
  4442. cat >>conftest.$ac_ext <<_ACEOF
  4443. /* end confdefs.h. */
  4444. #include <ctype.h>
  4445. #if ((' ' & 0x0FF) == 0x020)
  4446. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4447. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4448. #else
  4449. # define ISLOWER(c) \
  4450. (('a' <= (c) && (c) <= 'i') \
  4451. || ('j' <= (c) && (c) <= 'r') \
  4452. || ('s' <= (c) && (c) <= 'z'))
  4453. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4454. #endif
  4455. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4456. int
  4457. main ()
  4458. {
  4459. int i;
  4460. for (i = 0; i < 256; i++)
  4461. if (XOR (islower (i), ISLOWER (i))
  4462. || toupper (i) != TOUPPER (i))
  4463. exit(2);
  4464. exit (0);
  4465. }
  4466. _ACEOF
  4467. rm -f conftest$ac_exeext
  4468. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4469. (eval $ac_link) 2>&5
  4470. ac_status=$?
  4471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4472. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4474. (eval $ac_try) 2>&5
  4475. ac_status=$?
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); }; }; then
  4478. :
  4479. else
  4480. echo "$as_me: program exited with status $ac_status" >&5
  4481. echo "$as_me: failed program was:" >&5
  4482. sed 's/^/| /' conftest.$ac_ext >&5
  4483. ( exit $ac_status )
  4484. ac_cv_header_stdc=no
  4485. fi
  4486. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4487. fi
  4488. fi
  4489. fi
  4490. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4491. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4492. if test $ac_cv_header_stdc = yes; then
  4493. cat >>confdefs.h <<\_ACEOF
  4494. #define STDC_HEADERS 1
  4495. _ACEOF
  4496. fi
  4497. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4498. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4499. inttypes.h stdint.h unistd.h
  4500. do
  4501. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4502. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4503. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4504. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4505. echo $ECHO_N "(cached) $ECHO_C" >&6
  4506. else
  4507. cat >conftest.$ac_ext <<_ACEOF
  4508. /* confdefs.h. */
  4509. _ACEOF
  4510. cat confdefs.h >>conftest.$ac_ext
  4511. cat >>conftest.$ac_ext <<_ACEOF
  4512. /* end confdefs.h. */
  4513. $ac_includes_default
  4514. #include <$ac_header>
  4515. _ACEOF
  4516. rm -f conftest.$ac_objext
  4517. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4518. (eval $ac_compile) 2>conftest.er1
  4519. ac_status=$?
  4520. grep -v '^ *+' conftest.er1 >conftest.err
  4521. rm -f conftest.er1
  4522. cat conftest.err >&5
  4523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); } &&
  4525. { ac_try='test -z "$ac_c_werror_flag"
  4526. || test ! -s conftest.err'
  4527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4528. (eval $ac_try) 2>&5
  4529. ac_status=$?
  4530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4531. (exit $ac_status); }; } &&
  4532. { ac_try='test -s conftest.$ac_objext'
  4533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4534. (eval $ac_try) 2>&5
  4535. ac_status=$?
  4536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4537. (exit $ac_status); }; }; then
  4538. eval "$as_ac_Header=yes"
  4539. else
  4540. echo "$as_me: failed program was:" >&5
  4541. sed 's/^/| /' conftest.$ac_ext >&5
  4542. eval "$as_ac_Header=no"
  4543. fi
  4544. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4545. fi
  4546. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4547. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4548. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4549. cat >>confdefs.h <<_ACEOF
  4550. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4551. _ACEOF
  4552. fi
  4553. done
  4554. for ac_header in dlfcn.h
  4555. do
  4556. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4557. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4558. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4559. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4560. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4561. echo $ECHO_N "(cached) $ECHO_C" >&6
  4562. fi
  4563. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4564. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4565. else
  4566. # Is the header compilable?
  4567. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4568. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4569. cat >conftest.$ac_ext <<_ACEOF
  4570. /* confdefs.h. */
  4571. _ACEOF
  4572. cat confdefs.h >>conftest.$ac_ext
  4573. cat >>conftest.$ac_ext <<_ACEOF
  4574. /* end confdefs.h. */
  4575. $ac_includes_default
  4576. #include <$ac_header>
  4577. _ACEOF
  4578. rm -f conftest.$ac_objext
  4579. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4580. (eval $ac_compile) 2>conftest.er1
  4581. ac_status=$?
  4582. grep -v '^ *+' conftest.er1 >conftest.err
  4583. rm -f conftest.er1
  4584. cat conftest.err >&5
  4585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4586. (exit $ac_status); } &&
  4587. { ac_try='test -z "$ac_c_werror_flag"
  4588. || test ! -s conftest.err'
  4589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4590. (eval $ac_try) 2>&5
  4591. ac_status=$?
  4592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4593. (exit $ac_status); }; } &&
  4594. { ac_try='test -s conftest.$ac_objext'
  4595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4596. (eval $ac_try) 2>&5
  4597. ac_status=$?
  4598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4599. (exit $ac_status); }; }; then
  4600. ac_header_compiler=yes
  4601. else
  4602. echo "$as_me: failed program was:" >&5
  4603. sed 's/^/| /' conftest.$ac_ext >&5
  4604. ac_header_compiler=no
  4605. fi
  4606. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4607. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4608. echo "${ECHO_T}$ac_header_compiler" >&6
  4609. # Is the header present?
  4610. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4611. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4612. cat >conftest.$ac_ext <<_ACEOF
  4613. /* confdefs.h. */
  4614. _ACEOF
  4615. cat confdefs.h >>conftest.$ac_ext
  4616. cat >>conftest.$ac_ext <<_ACEOF
  4617. /* end confdefs.h. */
  4618. #include <$ac_header>
  4619. _ACEOF
  4620. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4621. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4622. ac_status=$?
  4623. grep -v '^ *+' conftest.er1 >conftest.err
  4624. rm -f conftest.er1
  4625. cat conftest.err >&5
  4626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4627. (exit $ac_status); } >/dev/null; then
  4628. if test -s conftest.err; then
  4629. ac_cpp_err=$ac_c_preproc_warn_flag
  4630. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4631. else
  4632. ac_cpp_err=
  4633. fi
  4634. else
  4635. ac_cpp_err=yes
  4636. fi
  4637. if test -z "$ac_cpp_err"; then
  4638. ac_header_preproc=yes
  4639. else
  4640. echo "$as_me: failed program was:" >&5
  4641. sed 's/^/| /' conftest.$ac_ext >&5
  4642. ac_header_preproc=no
  4643. fi
  4644. rm -f conftest.err conftest.$ac_ext
  4645. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4646. echo "${ECHO_T}$ac_header_preproc" >&6
  4647. # So? What about this header?
  4648. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4649. yes:no: )
  4650. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4651. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4652. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4653. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4654. ac_header_preproc=yes
  4655. ;;
  4656. no:yes:* )
  4657. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4658. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4659. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4660. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4661. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4662. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4663. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4664. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4665. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4666. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4667. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4668. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4669. (
  4670. cat <<\_ASBOX
  4671. ## ------------------------------------------ ##
  4672. ## Report this to http://bugzilla.redhat.com/ ##
  4673. ## ------------------------------------------ ##
  4674. _ASBOX
  4675. ) |
  4676. sed "s/^/$as_me: WARNING: /" >&2
  4677. ;;
  4678. esac
  4679. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4680. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4681. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4682. echo $ECHO_N "(cached) $ECHO_C" >&6
  4683. else
  4684. eval "$as_ac_Header=\$ac_header_preproc"
  4685. fi
  4686. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4687. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4688. fi
  4689. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4690. cat >>confdefs.h <<_ACEOF
  4691. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4692. _ACEOF
  4693. fi
  4694. done
  4695. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4696. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4697. (test "X$CXX" != "Xg++"))) ; then
  4698. ac_ext=cc
  4699. ac_cpp='$CXXCPP $CPPFLAGS'
  4700. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4701. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4702. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4703. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4704. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4705. if test -z "$CXXCPP"; then
  4706. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4707. echo $ECHO_N "(cached) $ECHO_C" >&6
  4708. else
  4709. # Double quotes because CXXCPP needs to be expanded
  4710. for CXXCPP in "$CXX -E" "/lib/cpp"
  4711. do
  4712. ac_preproc_ok=false
  4713. for ac_cxx_preproc_warn_flag in '' yes
  4714. do
  4715. # Use a header file that comes with gcc, so configuring glibc
  4716. # with a fresh cross-compiler works.
  4717. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4718. # <limits.h> exists even on freestanding compilers.
  4719. # On the NeXT, cc -E runs the code through the compiler's parser,
  4720. # not just through cpp. "Syntax error" is here to catch this case.
  4721. cat >conftest.$ac_ext <<_ACEOF
  4722. /* confdefs.h. */
  4723. _ACEOF
  4724. cat confdefs.h >>conftest.$ac_ext
  4725. cat >>conftest.$ac_ext <<_ACEOF
  4726. /* end confdefs.h. */
  4727. #ifdef __STDC__
  4728. # include <limits.h>
  4729. #else
  4730. # include <assert.h>
  4731. #endif
  4732. Syntax error
  4733. _ACEOF
  4734. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4735. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4736. ac_status=$?
  4737. grep -v '^ *+' conftest.er1 >conftest.err
  4738. rm -f conftest.er1
  4739. cat conftest.err >&5
  4740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4741. (exit $ac_status); } >/dev/null; then
  4742. if test -s conftest.err; then
  4743. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4744. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4745. else
  4746. ac_cpp_err=
  4747. fi
  4748. else
  4749. ac_cpp_err=yes
  4750. fi
  4751. if test -z "$ac_cpp_err"; then
  4752. :
  4753. else
  4754. echo "$as_me: failed program was:" >&5
  4755. sed 's/^/| /' conftest.$ac_ext >&5
  4756. # Broken: fails on valid input.
  4757. continue
  4758. fi
  4759. rm -f conftest.err conftest.$ac_ext
  4760. # OK, works on sane cases. Now check whether non-existent headers
  4761. # can be detected and how.
  4762. cat >conftest.$ac_ext <<_ACEOF
  4763. /* confdefs.h. */
  4764. _ACEOF
  4765. cat confdefs.h >>conftest.$ac_ext
  4766. cat >>conftest.$ac_ext <<_ACEOF
  4767. /* end confdefs.h. */
  4768. #include <ac_nonexistent.h>
  4769. _ACEOF
  4770. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4771. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4772. ac_status=$?
  4773. grep -v '^ *+' conftest.er1 >conftest.err
  4774. rm -f conftest.er1
  4775. cat conftest.err >&5
  4776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4777. (exit $ac_status); } >/dev/null; then
  4778. if test -s conftest.err; then
  4779. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4780. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4781. else
  4782. ac_cpp_err=
  4783. fi
  4784. else
  4785. ac_cpp_err=yes
  4786. fi
  4787. if test -z "$ac_cpp_err"; then
  4788. # Broken: success on invalid input.
  4789. continue
  4790. else
  4791. echo "$as_me: failed program was:" >&5
  4792. sed 's/^/| /' conftest.$ac_ext >&5
  4793. # Passes both tests.
  4794. ac_preproc_ok=:
  4795. break
  4796. fi
  4797. rm -f conftest.err conftest.$ac_ext
  4798. done
  4799. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4800. rm -f conftest.err conftest.$ac_ext
  4801. if $ac_preproc_ok; then
  4802. break
  4803. fi
  4804. done
  4805. ac_cv_prog_CXXCPP=$CXXCPP
  4806. fi
  4807. CXXCPP=$ac_cv_prog_CXXCPP
  4808. else
  4809. ac_cv_prog_CXXCPP=$CXXCPP
  4810. fi
  4811. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4812. echo "${ECHO_T}$CXXCPP" >&6
  4813. ac_preproc_ok=false
  4814. for ac_cxx_preproc_warn_flag in '' yes
  4815. do
  4816. # Use a header file that comes with gcc, so configuring glibc
  4817. # with a fresh cross-compiler works.
  4818. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4819. # <limits.h> exists even on freestanding compilers.
  4820. # On the NeXT, cc -E runs the code through the compiler's parser,
  4821. # not just through cpp. "Syntax error" is here to catch this case.
  4822. cat >conftest.$ac_ext <<_ACEOF
  4823. /* confdefs.h. */
  4824. _ACEOF
  4825. cat confdefs.h >>conftest.$ac_ext
  4826. cat >>conftest.$ac_ext <<_ACEOF
  4827. /* end confdefs.h. */
  4828. #ifdef __STDC__
  4829. # include <limits.h>
  4830. #else
  4831. # include <assert.h>
  4832. #endif
  4833. Syntax error
  4834. _ACEOF
  4835. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4836. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4837. ac_status=$?
  4838. grep -v '^ *+' conftest.er1 >conftest.err
  4839. rm -f conftest.er1
  4840. cat conftest.err >&5
  4841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4842. (exit $ac_status); } >/dev/null; then
  4843. if test -s conftest.err; then
  4844. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4845. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4846. else
  4847. ac_cpp_err=
  4848. fi
  4849. else
  4850. ac_cpp_err=yes
  4851. fi
  4852. if test -z "$ac_cpp_err"; then
  4853. :
  4854. else
  4855. echo "$as_me: failed program was:" >&5
  4856. sed 's/^/| /' conftest.$ac_ext >&5
  4857. # Broken: fails on valid input.
  4858. continue
  4859. fi
  4860. rm -f conftest.err conftest.$ac_ext
  4861. # OK, works on sane cases. Now check whether non-existent headers
  4862. # can be detected and how.
  4863. cat >conftest.$ac_ext <<_ACEOF
  4864. /* confdefs.h. */
  4865. _ACEOF
  4866. cat confdefs.h >>conftest.$ac_ext
  4867. cat >>conftest.$ac_ext <<_ACEOF
  4868. /* end confdefs.h. */
  4869. #include <ac_nonexistent.h>
  4870. _ACEOF
  4871. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4872. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4873. ac_status=$?
  4874. grep -v '^ *+' conftest.er1 >conftest.err
  4875. rm -f conftest.er1
  4876. cat conftest.err >&5
  4877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); } >/dev/null; then
  4879. if test -s conftest.err; then
  4880. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4881. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4882. else
  4883. ac_cpp_err=
  4884. fi
  4885. else
  4886. ac_cpp_err=yes
  4887. fi
  4888. if test -z "$ac_cpp_err"; then
  4889. # Broken: success on invalid input.
  4890. continue
  4891. else
  4892. echo "$as_me: failed program was:" >&5
  4893. sed 's/^/| /' conftest.$ac_ext >&5
  4894. # Passes both tests.
  4895. ac_preproc_ok=:
  4896. break
  4897. fi
  4898. rm -f conftest.err conftest.$ac_ext
  4899. done
  4900. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4901. rm -f conftest.err conftest.$ac_ext
  4902. if $ac_preproc_ok; then
  4903. :
  4904. else
  4905. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4906. See \`config.log' for more details." >&5
  4907. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4908. See \`config.log' for more details." >&2;}
  4909. { (exit 1); exit 1; }; }
  4910. fi
  4911. ac_ext=cc
  4912. ac_cpp='$CXXCPP $CPPFLAGS'
  4913. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4914. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4915. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4916. fi
  4917. ac_ext=f
  4918. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4919. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4920. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4921. if test -n "$ac_tool_prefix"; then
  4922. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4923. do
  4924. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4925. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4926. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4928. if test "${ac_cv_prog_F77+set}" = set; then
  4929. echo $ECHO_N "(cached) $ECHO_C" >&6
  4930. else
  4931. if test -n "$F77"; then
  4932. ac_cv_prog_F77="$F77" # Let the user override the test.
  4933. else
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4941. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. fi
  4948. fi
  4949. F77=$ac_cv_prog_F77
  4950. if test -n "$F77"; then
  4951. echo "$as_me:$LINENO: result: $F77" >&5
  4952. echo "${ECHO_T}$F77" >&6
  4953. else
  4954. echo "$as_me:$LINENO: result: no" >&5
  4955. echo "${ECHO_T}no" >&6
  4956. fi
  4957. test -n "$F77" && break
  4958. done
  4959. fi
  4960. if test -z "$F77"; then
  4961. ac_ct_F77=$F77
  4962. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4963. do
  4964. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4965. set dummy $ac_prog; ac_word=$2
  4966. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4967. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4968. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4969. echo $ECHO_N "(cached) $ECHO_C" >&6
  4970. else
  4971. if test -n "$ac_ct_F77"; then
  4972. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4973. else
  4974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4975. for as_dir in $PATH
  4976. do
  4977. IFS=$as_save_IFS
  4978. test -z "$as_dir" && as_dir=.
  4979. for ac_exec_ext in '' $ac_executable_extensions; do
  4980. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4981. ac_cv_prog_ac_ct_F77="$ac_prog"
  4982. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4983. break 2
  4984. fi
  4985. done
  4986. done
  4987. fi
  4988. fi
  4989. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4990. if test -n "$ac_ct_F77"; then
  4991. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4992. echo "${ECHO_T}$ac_ct_F77" >&6
  4993. else
  4994. echo "$as_me:$LINENO: result: no" >&5
  4995. echo "${ECHO_T}no" >&6
  4996. fi
  4997. test -n "$ac_ct_F77" && break
  4998. done
  4999. F77=$ac_ct_F77
  5000. fi
  5001. # Provide some information about the compiler.
  5002. echo "$as_me:5527:" \
  5003. "checking for Fortran 77 compiler version" >&5
  5004. ac_compiler=`set X $ac_compile; echo $2`
  5005. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5006. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5007. ac_status=$?
  5008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5009. (exit $ac_status); }
  5010. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5011. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5012. ac_status=$?
  5013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5014. (exit $ac_status); }
  5015. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5016. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5017. ac_status=$?
  5018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); }
  5020. rm -f a.out
  5021. # If we don't use `.F' as extension, the preprocessor is not run on the
  5022. # input file. (Note that this only needs to work for GNU compilers.)
  5023. ac_save_ext=$ac_ext
  5024. ac_ext=F
  5025. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5026. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  5027. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5028. echo $ECHO_N "(cached) $ECHO_C" >&6
  5029. else
  5030. cat >conftest.$ac_ext <<_ACEOF
  5031. program main
  5032. #ifndef __GNUC__
  5033. choke me
  5034. #endif
  5035. end
  5036. _ACEOF
  5037. rm -f conftest.$ac_objext
  5038. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5039. (eval $ac_compile) 2>conftest.er1
  5040. ac_status=$?
  5041. grep -v '^ *+' conftest.er1 >conftest.err
  5042. rm -f conftest.er1
  5043. cat conftest.err >&5
  5044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5045. (exit $ac_status); } &&
  5046. { ac_try='test -z "$ac_f77_werror_flag"
  5047. || test ! -s conftest.err'
  5048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5049. (eval $ac_try) 2>&5
  5050. ac_status=$?
  5051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5052. (exit $ac_status); }; } &&
  5053. { ac_try='test -s conftest.$ac_objext'
  5054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5055. (eval $ac_try) 2>&5
  5056. ac_status=$?
  5057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5058. (exit $ac_status); }; }; then
  5059. ac_compiler_gnu=yes
  5060. else
  5061. echo "$as_me: failed program was:" >&5
  5062. sed 's/^/| /' conftest.$ac_ext >&5
  5063. ac_compiler_gnu=no
  5064. fi
  5065. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5066. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5067. fi
  5068. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5069. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5070. ac_ext=$ac_save_ext
  5071. ac_test_FFLAGS=${FFLAGS+set}
  5072. ac_save_FFLAGS=$FFLAGS
  5073. FFLAGS=
  5074. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5075. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5076. if test "${ac_cv_prog_f77_g+set}" = set; then
  5077. echo $ECHO_N "(cached) $ECHO_C" >&6
  5078. else
  5079. FFLAGS=-g
  5080. cat >conftest.$ac_ext <<_ACEOF
  5081. program main
  5082. end
  5083. _ACEOF
  5084. rm -f conftest.$ac_objext
  5085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5086. (eval $ac_compile) 2>conftest.er1
  5087. ac_status=$?
  5088. grep -v '^ *+' conftest.er1 >conftest.err
  5089. rm -f conftest.er1
  5090. cat conftest.err >&5
  5091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5092. (exit $ac_status); } &&
  5093. { ac_try='test -z "$ac_f77_werror_flag"
  5094. || test ! -s conftest.err'
  5095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5096. (eval $ac_try) 2>&5
  5097. ac_status=$?
  5098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5099. (exit $ac_status); }; } &&
  5100. { ac_try='test -s conftest.$ac_objext'
  5101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5102. (eval $ac_try) 2>&5
  5103. ac_status=$?
  5104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5105. (exit $ac_status); }; }; then
  5106. ac_cv_prog_f77_g=yes
  5107. else
  5108. echo "$as_me: failed program was:" >&5
  5109. sed 's/^/| /' conftest.$ac_ext >&5
  5110. ac_cv_prog_f77_g=no
  5111. fi
  5112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5113. fi
  5114. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5115. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5116. if test "$ac_test_FFLAGS" = set; then
  5117. FFLAGS=$ac_save_FFLAGS
  5118. elif test $ac_cv_prog_f77_g = yes; then
  5119. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5120. FFLAGS="-g -O2"
  5121. else
  5122. FFLAGS="-g"
  5123. fi
  5124. else
  5125. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5126. FFLAGS="-O2"
  5127. else
  5128. FFLAGS=
  5129. fi
  5130. fi
  5131. G77=`test $ac_compiler_gnu = yes && echo yes`
  5132. ac_ext=c
  5133. ac_cpp='$CPP $CPPFLAGS'
  5134. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5135. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5136. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5137. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5138. # find the maximum length of command line arguments
  5139. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5140. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5141. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5142. echo $ECHO_N "(cached) $ECHO_C" >&6
  5143. else
  5144. i=0
  5145. teststring="ABCD"
  5146. case $build_os in
  5147. msdosdjgpp*)
  5148. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5149. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5150. # during glob expansion). Even if it were fixed, the result of this
  5151. # check would be larger than it should be.
  5152. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5153. ;;
  5154. gnu*)
  5155. # Under GNU Hurd, this test is not required because there is
  5156. # no limit to the length of command line arguments.
  5157. # Libtool will interpret -1 as no limit whatsoever
  5158. lt_cv_sys_max_cmd_len=-1;
  5159. ;;
  5160. cygwin* | mingw*)
  5161. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5162. # about 5 minutes as the teststring grows exponentially.
  5163. # Worse, since 9x/ME are not pre-emptively multitasking,
  5164. # you end up with a "frozen" computer, even though with patience
  5165. # the test eventually succeeds (with a max line length of 256k).
  5166. # Instead, let's just punt: use the minimum linelength reported by
  5167. # all of the supported platforms: 8192 (on NT/2K/XP).
  5168. lt_cv_sys_max_cmd_len=8192;
  5169. ;;
  5170. amigaos*)
  5171. # On AmigaOS with pdksh, this test takes hours, literally.
  5172. # So we just punt and use a minimum line length of 8192.
  5173. lt_cv_sys_max_cmd_len=8192;
  5174. ;;
  5175. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5176. # This has been around since 386BSD, at least. Likely further.
  5177. if test -x /sbin/sysctl; then
  5178. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5179. elif test -x /usr/sbin/sysctl; then
  5180. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5181. else
  5182. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5183. fi
  5184. # And add a safety zone
  5185. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5186. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5187. ;;
  5188. interix*)
  5189. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5190. lt_cv_sys_max_cmd_len=196608
  5191. ;;
  5192. osf*)
  5193. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5194. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5195. # nice to cause kernel panics so lets avoid the loop below.
  5196. # First set a reasonable default.
  5197. lt_cv_sys_max_cmd_len=16384
  5198. #
  5199. if test -x /sbin/sysconfig; then
  5200. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5201. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5202. esac
  5203. fi
  5204. ;;
  5205. sco3.2v5*)
  5206. lt_cv_sys_max_cmd_len=102400
  5207. ;;
  5208. sysv5* | sco5v6* | sysv4.2uw2*)
  5209. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5210. if test -n "$kargmax"; then
  5211. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5212. else
  5213. lt_cv_sys_max_cmd_len=32768
  5214. fi
  5215. ;;
  5216. *)
  5217. # If test is not a shell built-in, we'll probably end up computing a
  5218. # maximum length that is only half of the actual maximum length, but
  5219. # we can't tell.
  5220. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5221. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5222. = "XX$teststring") >/dev/null 2>&1 &&
  5223. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5224. lt_cv_sys_max_cmd_len=$new_result &&
  5225. test $i != 17 # 1/2 MB should be enough
  5226. do
  5227. i=`expr $i + 1`
  5228. teststring=$teststring$teststring
  5229. done
  5230. teststring=
  5231. # Add a significant safety factor because C++ compilers can tack on massive
  5232. # amounts of additional arguments before passing them to the linker.
  5233. # It appears as though 1/2 is a usable value.
  5234. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5235. ;;
  5236. esac
  5237. fi
  5238. if test -n $lt_cv_sys_max_cmd_len ; then
  5239. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5240. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5241. else
  5242. echo "$as_me:$LINENO: result: none" >&5
  5243. echo "${ECHO_T}none" >&6
  5244. fi
  5245. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5246. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5247. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5248. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5249. echo $ECHO_N "(cached) $ECHO_C" >&6
  5250. else
  5251. # These are sane defaults that work on at least a few old systems.
  5252. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5253. # Character class describing NM global symbol codes.
  5254. symcode='[BCDEGRST]'
  5255. # Regexp to match symbols that can be accessed directly from C.
  5256. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5257. # Transform an extracted symbol line into a proper C declaration
  5258. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5259. # Transform an extracted symbol line into symbol name and symbol address
  5260. 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'"
  5261. # Define system-specific variables.
  5262. case $host_os in
  5263. aix*)
  5264. symcode='[BCDT]'
  5265. ;;
  5266. cygwin* | mingw* | pw32*)
  5267. symcode='[ABCDGISTW]'
  5268. ;;
  5269. hpux*) # Its linker distinguishes data from code symbols
  5270. if test "$host_cpu" = ia64; then
  5271. symcode='[ABCDEGRST]'
  5272. fi
  5273. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5274. 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'"
  5275. ;;
  5276. linux*)
  5277. if test "$host_cpu" = ia64; then
  5278. symcode='[ABCDGIRSTW]'
  5279. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5280. 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'"
  5281. fi
  5282. ;;
  5283. irix* | nonstopux*)
  5284. symcode='[BCDEGRST]'
  5285. ;;
  5286. osf*)
  5287. symcode='[BCDEGQRST]'
  5288. ;;
  5289. solaris*)
  5290. symcode='[BDRT]'
  5291. ;;
  5292. sco3.2v5*)
  5293. symcode='[DT]'
  5294. ;;
  5295. sysv4.2uw2*)
  5296. symcode='[DT]'
  5297. ;;
  5298. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5299. symcode='[ABDT]'
  5300. ;;
  5301. sysv4)
  5302. symcode='[DFNSTU]'
  5303. ;;
  5304. esac
  5305. # Handle CRLF in mingw tool chain
  5306. opt_cr=
  5307. case $build_os in
  5308. mingw*)
  5309. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5310. ;;
  5311. esac
  5312. # If we're using GNU nm, then use its standard symbol codes.
  5313. case `$NM -V 2>&1` in
  5314. *GNU* | *'with BFD'*)
  5315. symcode='[ABCDGIRSTW]' ;;
  5316. esac
  5317. # Try without a prefix undercore, then with it.
  5318. for ac_symprfx in "" "_"; do
  5319. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5320. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5321. # Write the raw and C identifiers.
  5322. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5323. # Check to see that the pipe works correctly.
  5324. pipe_works=no
  5325. rm -f conftest*
  5326. cat > conftest.$ac_ext <<EOF
  5327. #ifdef __cplusplus
  5328. extern "C" {
  5329. #endif
  5330. char nm_test_var;
  5331. void nm_test_func(){}
  5332. #ifdef __cplusplus
  5333. }
  5334. #endif
  5335. int main(){nm_test_var='a';nm_test_func();return(0);}
  5336. EOF
  5337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5338. (eval $ac_compile) 2>&5
  5339. ac_status=$?
  5340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5341. (exit $ac_status); }; then
  5342. # Now try to grab the symbols.
  5343. nlist=conftest.nm
  5344. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5345. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5346. ac_status=$?
  5347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5348. (exit $ac_status); } && test -s "$nlist"; then
  5349. # Try sorting and uniquifying the output.
  5350. if sort "$nlist" | uniq > "$nlist"T; then
  5351. mv -f "$nlist"T "$nlist"
  5352. else
  5353. rm -f "$nlist"T
  5354. fi
  5355. # Make sure that we snagged all the symbols we need.
  5356. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5357. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5358. cat <<EOF > conftest.$ac_ext
  5359. #ifdef __cplusplus
  5360. extern "C" {
  5361. #endif
  5362. EOF
  5363. # Now generate the symbol file.
  5364. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5365. cat <<EOF >> conftest.$ac_ext
  5366. #if defined (__STDC__) && __STDC__
  5367. # define lt_ptr_t void *
  5368. #else
  5369. # define lt_ptr_t char *
  5370. # define const
  5371. #endif
  5372. /* The mapping between symbol names and symbols. */
  5373. const struct {
  5374. const char *name;
  5375. lt_ptr_t address;
  5376. }
  5377. lt_preloaded_symbols[] =
  5378. {
  5379. EOF
  5380. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5381. cat <<\EOF >> conftest.$ac_ext
  5382. {0, (lt_ptr_t) 0}
  5383. };
  5384. #ifdef __cplusplus
  5385. }
  5386. #endif
  5387. EOF
  5388. # Now try linking the two files.
  5389. mv conftest.$ac_objext conftstm.$ac_objext
  5390. lt_save_LIBS="$LIBS"
  5391. lt_save_CFLAGS="$CFLAGS"
  5392. LIBS="conftstm.$ac_objext"
  5393. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5394. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5395. (eval $ac_link) 2>&5
  5396. ac_status=$?
  5397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5398. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5399. pipe_works=yes
  5400. fi
  5401. LIBS="$lt_save_LIBS"
  5402. CFLAGS="$lt_save_CFLAGS"
  5403. else
  5404. echo "cannot find nm_test_func in $nlist" >&5
  5405. fi
  5406. else
  5407. echo "cannot find nm_test_var in $nlist" >&5
  5408. fi
  5409. else
  5410. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5411. fi
  5412. else
  5413. echo "$progname: failed program was:" >&5
  5414. cat conftest.$ac_ext >&5
  5415. fi
  5416. rm -f conftest* conftst*
  5417. # Do not use the global_symbol_pipe unless it works.
  5418. if test "$pipe_works" = yes; then
  5419. break
  5420. else
  5421. lt_cv_sys_global_symbol_pipe=
  5422. fi
  5423. done
  5424. fi
  5425. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5426. lt_cv_sys_global_symbol_to_cdecl=
  5427. fi
  5428. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5429. echo "$as_me:$LINENO: result: failed" >&5
  5430. echo "${ECHO_T}failed" >&6
  5431. else
  5432. echo "$as_me:$LINENO: result: ok" >&5
  5433. echo "${ECHO_T}ok" >&6
  5434. fi
  5435. echo "$as_me:$LINENO: checking for objdir" >&5
  5436. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5437. if test "${lt_cv_objdir+set}" = set; then
  5438. echo $ECHO_N "(cached) $ECHO_C" >&6
  5439. else
  5440. rm -f .libs 2>/dev/null
  5441. mkdir .libs 2>/dev/null
  5442. if test -d .libs; then
  5443. lt_cv_objdir=.libs
  5444. else
  5445. # MS-DOS does not allow filenames that begin with a dot.
  5446. lt_cv_objdir=_libs
  5447. fi
  5448. rmdir .libs 2>/dev/null
  5449. fi
  5450. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5451. echo "${ECHO_T}$lt_cv_objdir" >&6
  5452. objdir=$lt_cv_objdir
  5453. case $host_os in
  5454. aix3*)
  5455. # AIX sometimes has problems with the GCC collect2 program. For some
  5456. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5457. # vanish in a puff of smoke.
  5458. if test "X${COLLECT_NAMES+set}" != Xset; then
  5459. COLLECT_NAMES=
  5460. export COLLECT_NAMES
  5461. fi
  5462. ;;
  5463. esac
  5464. # Sed substitution that helps us do robust quoting. It backslashifies
  5465. # metacharacters that are still active within double-quoted strings.
  5466. Xsed='sed -e 1s/^X//'
  5467. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5468. # Same as above, but do not quote variable references.
  5469. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5470. # Sed substitution to delay expansion of an escaped shell variable in a
  5471. # double_quote_subst'ed string.
  5472. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5473. # Sed substitution to avoid accidental globbing in evaled expressions
  5474. no_glob_subst='s/\*/\\\*/g'
  5475. # Constants:
  5476. rm="rm -f"
  5477. # Global variables:
  5478. default_ofile=libtool
  5479. can_build_shared=yes
  5480. # All known linkers require a `.a' archive for static linking (except MSVC,
  5481. # which needs '.lib').
  5482. libext=a
  5483. ltmain="$ac_aux_dir/ltmain.sh"
  5484. ofile="$default_ofile"
  5485. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5486. if test -n "$ac_tool_prefix"; then
  5487. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5488. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5489. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5490. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5491. if test "${ac_cv_prog_AR+set}" = set; then
  5492. echo $ECHO_N "(cached) $ECHO_C" >&6
  5493. else
  5494. if test -n "$AR"; then
  5495. ac_cv_prog_AR="$AR" # Let the user override the test.
  5496. else
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5504. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5505. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. fi
  5511. fi
  5512. AR=$ac_cv_prog_AR
  5513. if test -n "$AR"; then
  5514. echo "$as_me:$LINENO: result: $AR" >&5
  5515. echo "${ECHO_T}$AR" >&6
  5516. else
  5517. echo "$as_me:$LINENO: result: no" >&5
  5518. echo "${ECHO_T}no" >&6
  5519. fi
  5520. fi
  5521. if test -z "$ac_cv_prog_AR"; then
  5522. ac_ct_AR=$AR
  5523. # Extract the first word of "ar", so it can be a program name with args.
  5524. set dummy ar; ac_word=$2
  5525. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5526. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5527. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5528. echo $ECHO_N "(cached) $ECHO_C" >&6
  5529. else
  5530. if test -n "$ac_ct_AR"; then
  5531. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5532. else
  5533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5534. for as_dir in $PATH
  5535. do
  5536. IFS=$as_save_IFS
  5537. test -z "$as_dir" && as_dir=.
  5538. for ac_exec_ext in '' $ac_executable_extensions; do
  5539. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5540. ac_cv_prog_ac_ct_AR="ar"
  5541. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5542. break 2
  5543. fi
  5544. done
  5545. done
  5546. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5547. fi
  5548. fi
  5549. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5550. if test -n "$ac_ct_AR"; then
  5551. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5552. echo "${ECHO_T}$ac_ct_AR" >&6
  5553. else
  5554. echo "$as_me:$LINENO: result: no" >&5
  5555. echo "${ECHO_T}no" >&6
  5556. fi
  5557. AR=$ac_ct_AR
  5558. else
  5559. AR="$ac_cv_prog_AR"
  5560. fi
  5561. if test -n "$ac_tool_prefix"; then
  5562. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5563. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5564. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5565. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5566. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5567. echo $ECHO_N "(cached) $ECHO_C" >&6
  5568. else
  5569. if test -n "$RANLIB"; then
  5570. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5571. else
  5572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5573. for as_dir in $PATH
  5574. do
  5575. IFS=$as_save_IFS
  5576. test -z "$as_dir" && as_dir=.
  5577. for ac_exec_ext in '' $ac_executable_extensions; do
  5578. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5579. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5580. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5581. break 2
  5582. fi
  5583. done
  5584. done
  5585. fi
  5586. fi
  5587. RANLIB=$ac_cv_prog_RANLIB
  5588. if test -n "$RANLIB"; then
  5589. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5590. echo "${ECHO_T}$RANLIB" >&6
  5591. else
  5592. echo "$as_me:$LINENO: result: no" >&5
  5593. echo "${ECHO_T}no" >&6
  5594. fi
  5595. fi
  5596. if test -z "$ac_cv_prog_RANLIB"; then
  5597. ac_ct_RANLIB=$RANLIB
  5598. # Extract the first word of "ranlib", so it can be a program name with args.
  5599. set dummy ranlib; ac_word=$2
  5600. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5601. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5602. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5603. echo $ECHO_N "(cached) $ECHO_C" >&6
  5604. else
  5605. if test -n "$ac_ct_RANLIB"; then
  5606. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5607. else
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. test -z "$as_dir" && as_dir=.
  5613. for ac_exec_ext in '' $ac_executable_extensions; do
  5614. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5615. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5616. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5617. break 2
  5618. fi
  5619. done
  5620. done
  5621. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5622. fi
  5623. fi
  5624. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5625. if test -n "$ac_ct_RANLIB"; then
  5626. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5627. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5628. else
  5629. echo "$as_me:$LINENO: result: no" >&5
  5630. echo "${ECHO_T}no" >&6
  5631. fi
  5632. RANLIB=$ac_ct_RANLIB
  5633. else
  5634. RANLIB="$ac_cv_prog_RANLIB"
  5635. fi
  5636. if test -n "$ac_tool_prefix"; then
  5637. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5638. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5639. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5640. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5641. if test "${ac_cv_prog_STRIP+set}" = set; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. if test -n "$STRIP"; then
  5645. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5646. else
  5647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5648. for as_dir in $PATH
  5649. do
  5650. IFS=$as_save_IFS
  5651. test -z "$as_dir" && as_dir=.
  5652. for ac_exec_ext in '' $ac_executable_extensions; do
  5653. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5654. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5655. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5656. break 2
  5657. fi
  5658. done
  5659. done
  5660. fi
  5661. fi
  5662. STRIP=$ac_cv_prog_STRIP
  5663. if test -n "$STRIP"; then
  5664. echo "$as_me:$LINENO: result: $STRIP" >&5
  5665. echo "${ECHO_T}$STRIP" >&6
  5666. else
  5667. echo "$as_me:$LINENO: result: no" >&5
  5668. echo "${ECHO_T}no" >&6
  5669. fi
  5670. fi
  5671. if test -z "$ac_cv_prog_STRIP"; then
  5672. ac_ct_STRIP=$STRIP
  5673. # Extract the first word of "strip", so it can be a program name with args.
  5674. set dummy strip; ac_word=$2
  5675. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5676. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5677. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5678. echo $ECHO_N "(cached) $ECHO_C" >&6
  5679. else
  5680. if test -n "$ac_ct_STRIP"; then
  5681. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5682. else
  5683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5690. ac_cv_prog_ac_ct_STRIP="strip"
  5691. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5697. fi
  5698. fi
  5699. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5700. if test -n "$ac_ct_STRIP"; then
  5701. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5702. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5703. else
  5704. echo "$as_me:$LINENO: result: no" >&5
  5705. echo "${ECHO_T}no" >&6
  5706. fi
  5707. STRIP=$ac_ct_STRIP
  5708. else
  5709. STRIP="$ac_cv_prog_STRIP"
  5710. fi
  5711. old_CC="$CC"
  5712. old_CFLAGS="$CFLAGS"
  5713. # Set sane defaults for various variables
  5714. test -z "$AR" && AR=ar
  5715. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5716. test -z "$AS" && AS=as
  5717. test -z "$CC" && CC=cc
  5718. test -z "$LTCC" && LTCC=$CC
  5719. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5720. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5721. test -z "$LD" && LD=ld
  5722. test -z "$LN_S" && LN_S="ln -s"
  5723. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5724. test -z "$NM" && NM=nm
  5725. test -z "$SED" && SED=sed
  5726. test -z "$OBJDUMP" && OBJDUMP=objdump
  5727. test -z "$RANLIB" && RANLIB=:
  5728. test -z "$STRIP" && STRIP=:
  5729. test -z "$ac_objext" && ac_objext=o
  5730. # Determine commands to create old-style static archives.
  5731. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5732. old_postinstall_cmds='chmod 644 $oldlib'
  5733. old_postuninstall_cmds=
  5734. if test -n "$RANLIB"; then
  5735. case $host_os in
  5736. openbsd*)
  5737. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5738. ;;
  5739. *)
  5740. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5741. ;;
  5742. esac
  5743. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5744. fi
  5745. for cc_temp in $compiler""; do
  5746. case $cc_temp in
  5747. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5748. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5749. \-*) ;;
  5750. *) break;;
  5751. esac
  5752. done
  5753. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5754. # Only perform the check for file, if the check method requires it
  5755. case $deplibs_check_method in
  5756. file_magic*)
  5757. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5758. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5759. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5760. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5761. echo $ECHO_N "(cached) $ECHO_C" >&6
  5762. else
  5763. case $MAGIC_CMD in
  5764. [\\/*] | ?:[\\/]*)
  5765. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5766. ;;
  5767. *)
  5768. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5769. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5770. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5771. for ac_dir in $ac_dummy; do
  5772. IFS="$lt_save_ifs"
  5773. test -z "$ac_dir" && ac_dir=.
  5774. if test -f $ac_dir/${ac_tool_prefix}file; then
  5775. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5776. if test -n "$file_magic_test_file"; then
  5777. case $deplibs_check_method in
  5778. "file_magic "*)
  5779. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5780. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5781. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5782. $EGREP "$file_magic_regex" > /dev/null; then
  5783. :
  5784. else
  5785. cat <<EOF 1>&2
  5786. *** Warning: the command libtool uses to detect shared libraries,
  5787. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5788. *** The result is that libtool may fail to recognize shared libraries
  5789. *** as such. This will affect the creation of libtool libraries that
  5790. *** depend on shared libraries, but programs linked with such libtool
  5791. *** libraries will work regardless of this problem. Nevertheless, you
  5792. *** may want to report the problem to your system manager and/or to
  5793. *** [email protected]
  5794. EOF
  5795. fi ;;
  5796. esac
  5797. fi
  5798. break
  5799. fi
  5800. done
  5801. IFS="$lt_save_ifs"
  5802. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5803. ;;
  5804. esac
  5805. fi
  5806. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5807. if test -n "$MAGIC_CMD"; then
  5808. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5809. echo "${ECHO_T}$MAGIC_CMD" >&6
  5810. else
  5811. echo "$as_me:$LINENO: result: no" >&5
  5812. echo "${ECHO_T}no" >&6
  5813. fi
  5814. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5815. if test -n "$ac_tool_prefix"; then
  5816. echo "$as_me:$LINENO: checking for file" >&5
  5817. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5818. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5819. echo $ECHO_N "(cached) $ECHO_C" >&6
  5820. else
  5821. case $MAGIC_CMD in
  5822. [\\/*] | ?:[\\/]*)
  5823. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5824. ;;
  5825. *)
  5826. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5827. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5828. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5829. for ac_dir in $ac_dummy; do
  5830. IFS="$lt_save_ifs"
  5831. test -z "$ac_dir" && ac_dir=.
  5832. if test -f $ac_dir/file; then
  5833. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5834. if test -n "$file_magic_test_file"; then
  5835. case $deplibs_check_method in
  5836. "file_magic "*)
  5837. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5838. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5839. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5840. $EGREP "$file_magic_regex" > /dev/null; then
  5841. :
  5842. else
  5843. cat <<EOF 1>&2
  5844. *** Warning: the command libtool uses to detect shared libraries,
  5845. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5846. *** The result is that libtool may fail to recognize shared libraries
  5847. *** as such. This will affect the creation of libtool libraries that
  5848. *** depend on shared libraries, but programs linked with such libtool
  5849. *** libraries will work regardless of this problem. Nevertheless, you
  5850. *** may want to report the problem to your system manager and/or to
  5851. *** [email protected]
  5852. EOF
  5853. fi ;;
  5854. esac
  5855. fi
  5856. break
  5857. fi
  5858. done
  5859. IFS="$lt_save_ifs"
  5860. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5861. ;;
  5862. esac
  5863. fi
  5864. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5865. if test -n "$MAGIC_CMD"; then
  5866. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5867. echo "${ECHO_T}$MAGIC_CMD" >&6
  5868. else
  5869. echo "$as_me:$LINENO: result: no" >&5
  5870. echo "${ECHO_T}no" >&6
  5871. fi
  5872. else
  5873. MAGIC_CMD=:
  5874. fi
  5875. fi
  5876. fi
  5877. ;;
  5878. esac
  5879. enable_dlopen=no
  5880. enable_win32_dll=no
  5881. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5882. if test "${enable_libtool_lock+set}" = set; then
  5883. enableval="$enable_libtool_lock"
  5884. fi;
  5885. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5886. # Check whether --with-pic or --without-pic was given.
  5887. if test "${with_pic+set}" = set; then
  5888. withval="$with_pic"
  5889. pic_mode="$withval"
  5890. else
  5891. pic_mode=default
  5892. fi;
  5893. test -z "$pic_mode" && pic_mode=default
  5894. # Use C for the default configuration in the libtool script
  5895. tagname=
  5896. lt_save_CC="$CC"
  5897. ac_ext=c
  5898. ac_cpp='$CPP $CPPFLAGS'
  5899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5902. # Source file extension for C test sources.
  5903. ac_ext=c
  5904. # Object file extension for compiled C test sources.
  5905. objext=o
  5906. objext=$objext
  5907. # Code to be used in simple compile tests
  5908. lt_simple_compile_test_code="int some_variable = 0;\n"
  5909. # Code to be used in simple link tests
  5910. lt_simple_link_test_code='int main(){return(0);}\n'
  5911. # If no C compiler was specified, use CC.
  5912. LTCC=${LTCC-"$CC"}
  5913. # If no C compiler flags were specified, use CFLAGS.
  5914. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5915. # Allow CC to be a program name with arguments.
  5916. compiler=$CC
  5917. # save warnings/boilerplate of simple test code
  5918. ac_outfile=conftest.$ac_objext
  5919. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5920. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5921. _lt_compiler_boilerplate=`cat conftest.err`
  5922. $rm conftest*
  5923. ac_outfile=conftest.$ac_objext
  5924. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5925. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5926. _lt_linker_boilerplate=`cat conftest.err`
  5927. $rm conftest*
  5928. lt_prog_compiler_no_builtin_flag=
  5929. if test "$GCC" = yes; then
  5930. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5931. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5932. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5933. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5934. echo $ECHO_N "(cached) $ECHO_C" >&6
  5935. else
  5936. lt_cv_prog_compiler_rtti_exceptions=no
  5937. ac_outfile=conftest.$ac_objext
  5938. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5939. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5940. # Insert the option either (1) after the last *FLAGS variable, or
  5941. # (2) before a word containing "conftest.", or (3) at the end.
  5942. # Note that $ac_compile itself does not contain backslashes and begins
  5943. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5944. # The option is referenced via a variable to avoid confusing sed.
  5945. lt_compile=`echo "$ac_compile" | $SED \
  5946. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5947. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5948. -e 's:$: $lt_compiler_flag:'`
  5949. (eval echo "\"\$as_me:6590: $lt_compile\"" >&5)
  5950. (eval "$lt_compile" 2>conftest.err)
  5951. ac_status=$?
  5952. cat conftest.err >&5
  5953. echo "$as_me:6594: \$? = $ac_status" >&5
  5954. if (exit $ac_status) && test -s "$ac_outfile"; then
  5955. # The compiler can only warn and ignore the option if not recognized
  5956. # So say no if there are warnings other than the usual output.
  5957. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5958. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5959. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5960. lt_cv_prog_compiler_rtti_exceptions=yes
  5961. fi
  5962. fi
  5963. $rm conftest*
  5964. fi
  5965. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5966. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5967. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5968. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5969. else
  5970. :
  5971. fi
  5972. fi
  5973. lt_prog_compiler_wl=
  5974. lt_prog_compiler_pic=
  5975. lt_prog_compiler_static=
  5976. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5977. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5978. if test "$GCC" = yes; then
  5979. lt_prog_compiler_wl='-Wl,'
  5980. lt_prog_compiler_static='-static'
  5981. case $host_os in
  5982. aix*)
  5983. # All AIX code is PIC.
  5984. if test "$host_cpu" = ia64; then
  5985. # AIX 5 now supports IA64 processor
  5986. lt_prog_compiler_static='-Bstatic'
  5987. fi
  5988. ;;
  5989. amigaos*)
  5990. # FIXME: we need at least 68020 code to build shared libraries, but
  5991. # adding the `-m68020' flag to GCC prevents building anything better,
  5992. # like `-m68040'.
  5993. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5994. ;;
  5995. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5996. # PIC is the default for these OSes.
  5997. ;;
  5998. mingw* | pw32* | os2*)
  5999. # This hack is so that the source file can tell whether it is being
  6000. # built for inclusion in a dll (and should export symbols for example).
  6001. lt_prog_compiler_pic='-DDLL_EXPORT'
  6002. ;;
  6003. darwin* | rhapsody*)
  6004. # PIC is the default on this platform
  6005. # Common symbols not allowed in MH_DYLIB files
  6006. lt_prog_compiler_pic='-fno-common'
  6007. ;;
  6008. interix3*)
  6009. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6010. # Instead, we relocate shared libraries at runtime.
  6011. ;;
  6012. msdosdjgpp*)
  6013. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6014. # on systems that don't support them.
  6015. lt_prog_compiler_can_build_shared=no
  6016. enable_shared=no
  6017. ;;
  6018. sysv4*MP*)
  6019. if test -d /usr/nec; then
  6020. lt_prog_compiler_pic=-Kconform_pic
  6021. fi
  6022. ;;
  6023. hpux*)
  6024. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6025. # not for PA HP-UX.
  6026. case $host_cpu in
  6027. hppa*64*|ia64*)
  6028. # +Z the default
  6029. ;;
  6030. *)
  6031. lt_prog_compiler_pic='-fPIC'
  6032. ;;
  6033. esac
  6034. ;;
  6035. *)
  6036. lt_prog_compiler_pic='-fPIC'
  6037. ;;
  6038. esac
  6039. else
  6040. # PORTME Check for flag to pass linker flags through the system compiler.
  6041. case $host_os in
  6042. aix*)
  6043. lt_prog_compiler_wl='-Wl,'
  6044. if test "$host_cpu" = ia64; then
  6045. # AIX 5 now supports IA64 processor
  6046. lt_prog_compiler_static='-Bstatic'
  6047. else
  6048. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6049. fi
  6050. ;;
  6051. darwin*)
  6052. # PIC is the default on this platform
  6053. # Common symbols not allowed in MH_DYLIB files
  6054. case $cc_basename in
  6055. xlc*)
  6056. lt_prog_compiler_pic='-qnocommon'
  6057. lt_prog_compiler_wl='-Wl,'
  6058. ;;
  6059. esac
  6060. ;;
  6061. mingw* | pw32* | os2*)
  6062. # This hack is so that the source file can tell whether it is being
  6063. # built for inclusion in a dll (and should export symbols for example).
  6064. lt_prog_compiler_pic='-DDLL_EXPORT'
  6065. ;;
  6066. hpux9* | hpux10* | hpux11*)
  6067. lt_prog_compiler_wl='-Wl,'
  6068. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6069. # not for PA HP-UX.
  6070. case $host_cpu in
  6071. hppa*64*|ia64*)
  6072. # +Z the default
  6073. ;;
  6074. *)
  6075. lt_prog_compiler_pic='+Z'
  6076. ;;
  6077. esac
  6078. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6079. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6080. ;;
  6081. irix5* | irix6* | nonstopux*)
  6082. lt_prog_compiler_wl='-Wl,'
  6083. # PIC (with -KPIC) is the default.
  6084. lt_prog_compiler_static='-non_shared'
  6085. ;;
  6086. newsos6)
  6087. lt_prog_compiler_pic='-KPIC'
  6088. lt_prog_compiler_static='-Bstatic'
  6089. ;;
  6090. linux*)
  6091. case $cc_basename in
  6092. icc* | ecc*)
  6093. lt_prog_compiler_wl='-Wl,'
  6094. lt_prog_compiler_pic='-KPIC'
  6095. lt_prog_compiler_static='-static'
  6096. ;;
  6097. pgcc* | pgf77* | pgf90* | pgf95*)
  6098. # Portland Group compilers (*not* the Pentium gcc compiler,
  6099. # which looks to be a dead project)
  6100. lt_prog_compiler_wl='-Wl,'
  6101. lt_prog_compiler_pic='-fpic'
  6102. lt_prog_compiler_static='-Bstatic'
  6103. ;;
  6104. ccc*)
  6105. lt_prog_compiler_wl='-Wl,'
  6106. # All Alpha code is PIC.
  6107. lt_prog_compiler_static='-non_shared'
  6108. ;;
  6109. esac
  6110. ;;
  6111. osf3* | osf4* | osf5*)
  6112. lt_prog_compiler_wl='-Wl,'
  6113. # All OSF/1 code is PIC.
  6114. lt_prog_compiler_static='-non_shared'
  6115. ;;
  6116. solaris*)
  6117. lt_prog_compiler_pic='-KPIC'
  6118. lt_prog_compiler_static='-Bstatic'
  6119. case $cc_basename in
  6120. f77* | f90* | f95*)
  6121. lt_prog_compiler_wl='-Qoption ld ';;
  6122. *)
  6123. lt_prog_compiler_wl='-Wl,';;
  6124. esac
  6125. ;;
  6126. sunos4*)
  6127. lt_prog_compiler_wl='-Qoption ld '
  6128. lt_prog_compiler_pic='-PIC'
  6129. lt_prog_compiler_static='-Bstatic'
  6130. ;;
  6131. sysv4 | sysv4.2uw2* | sysv4.3*)
  6132. lt_prog_compiler_wl='-Wl,'
  6133. lt_prog_compiler_pic='-KPIC'
  6134. lt_prog_compiler_static='-Bstatic'
  6135. ;;
  6136. sysv4*MP*)
  6137. if test -d /usr/nec ;then
  6138. lt_prog_compiler_pic='-Kconform_pic'
  6139. lt_prog_compiler_static='-Bstatic'
  6140. fi
  6141. ;;
  6142. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6143. lt_prog_compiler_wl='-Wl,'
  6144. lt_prog_compiler_pic='-KPIC'
  6145. lt_prog_compiler_static='-Bstatic'
  6146. ;;
  6147. unicos*)
  6148. lt_prog_compiler_wl='-Wl,'
  6149. lt_prog_compiler_can_build_shared=no
  6150. ;;
  6151. uts4*)
  6152. lt_prog_compiler_pic='-pic'
  6153. lt_prog_compiler_static='-Bstatic'
  6154. ;;
  6155. *)
  6156. lt_prog_compiler_can_build_shared=no
  6157. ;;
  6158. esac
  6159. fi
  6160. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6161. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6162. #
  6163. # Check to make sure the PIC flag actually works.
  6164. #
  6165. if test -n "$lt_prog_compiler_pic"; then
  6166. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6167. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6168. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6169. echo $ECHO_N "(cached) $ECHO_C" >&6
  6170. else
  6171. lt_prog_compiler_pic_works=no
  6172. ac_outfile=conftest.$ac_objext
  6173. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6174. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6175. # Insert the option either (1) after the last *FLAGS variable, or
  6176. # (2) before a word containing "conftest.", or (3) at the end.
  6177. # Note that $ac_compile itself does not contain backslashes and begins
  6178. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6179. # The option is referenced via a variable to avoid confusing sed.
  6180. lt_compile=`echo "$ac_compile" | $SED \
  6181. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6182. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6183. -e 's:$: $lt_compiler_flag:'`
  6184. (eval echo "\"\$as_me:6858: $lt_compile\"" >&5)
  6185. (eval "$lt_compile" 2>conftest.err)
  6186. ac_status=$?
  6187. cat conftest.err >&5
  6188. echo "$as_me:6862: \$? = $ac_status" >&5
  6189. if (exit $ac_status) && test -s "$ac_outfile"; then
  6190. # The compiler can only warn and ignore the option if not recognized
  6191. # So say no if there are warnings other than the usual output.
  6192. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6193. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6194. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6195. lt_prog_compiler_pic_works=yes
  6196. fi
  6197. fi
  6198. $rm conftest*
  6199. fi
  6200. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6201. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6202. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6203. case $lt_prog_compiler_pic in
  6204. "" | " "*) ;;
  6205. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6206. esac
  6207. else
  6208. lt_prog_compiler_pic=
  6209. lt_prog_compiler_can_build_shared=no
  6210. fi
  6211. fi
  6212. case $host_os in
  6213. # For platforms which do not support PIC, -DPIC is meaningless:
  6214. *djgpp*)
  6215. lt_prog_compiler_pic=
  6216. ;;
  6217. *)
  6218. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6219. ;;
  6220. esac
  6221. #
  6222. # Check to make sure the static flag actually works.
  6223. #
  6224. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6225. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6226. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6227. if test "${lt_prog_compiler_static_works+set}" = set; then
  6228. echo $ECHO_N "(cached) $ECHO_C" >&6
  6229. else
  6230. lt_prog_compiler_static_works=no
  6231. save_LDFLAGS="$LDFLAGS"
  6232. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6233. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6234. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6235. # The linker can only warn and ignore the option if not recognized
  6236. # So say no if there are warnings
  6237. if test -s conftest.err; then
  6238. # Append any errors to the config.log.
  6239. cat conftest.err 1>&5
  6240. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6241. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6242. if diff conftest.exp conftest.er2 >/dev/null; then
  6243. lt_prog_compiler_static_works=yes
  6244. fi
  6245. else
  6246. lt_prog_compiler_static_works=yes
  6247. fi
  6248. fi
  6249. $rm conftest*
  6250. LDFLAGS="$save_LDFLAGS"
  6251. fi
  6252. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6253. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6254. if test x"$lt_prog_compiler_static_works" = xyes; then
  6255. :
  6256. else
  6257. lt_prog_compiler_static=
  6258. fi
  6259. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6260. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6261. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6262. echo $ECHO_N "(cached) $ECHO_C" >&6
  6263. else
  6264. lt_cv_prog_compiler_c_o=no
  6265. $rm -r conftest 2>/dev/null
  6266. mkdir conftest
  6267. cd conftest
  6268. mkdir out
  6269. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6270. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6271. # Insert the option either (1) after the last *FLAGS variable, or
  6272. # (2) before a word containing "conftest.", or (3) at the end.
  6273. # Note that $ac_compile itself does not contain backslashes and begins
  6274. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6275. lt_compile=`echo "$ac_compile" | $SED \
  6276. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6277. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6278. -e 's:$: $lt_compiler_flag:'`
  6279. (eval echo "\"\$as_me:6962: $lt_compile\"" >&5)
  6280. (eval "$lt_compile" 2>out/conftest.err)
  6281. ac_status=$?
  6282. cat out/conftest.err >&5
  6283. echo "$as_me:6966: \$? = $ac_status" >&5
  6284. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6285. then
  6286. # The compiler can only warn and ignore the option if not recognized
  6287. # So say no if there are warnings
  6288. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6289. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6290. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6291. lt_cv_prog_compiler_c_o=yes
  6292. fi
  6293. fi
  6294. chmod u+w . 2>&5
  6295. $rm conftest*
  6296. # SGI C++ compiler will create directory out/ii_files/ for
  6297. # template instantiation
  6298. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6299. $rm out/* && rmdir out
  6300. cd ..
  6301. rmdir conftest
  6302. $rm conftest*
  6303. fi
  6304. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6305. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6306. hard_links="nottested"
  6307. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6308. # do not overwrite the value of need_locks provided by the user
  6309. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6310. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6311. hard_links=yes
  6312. $rm conftest*
  6313. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6314. touch conftest.a
  6315. ln conftest.a conftest.b 2>&5 || hard_links=no
  6316. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6317. echo "$as_me:$LINENO: result: $hard_links" >&5
  6318. echo "${ECHO_T}$hard_links" >&6
  6319. if test "$hard_links" = no; then
  6320. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6321. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6322. need_locks=warn
  6323. fi
  6324. else
  6325. need_locks=no
  6326. fi
  6327. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6328. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6329. runpath_var=
  6330. allow_undefined_flag=
  6331. enable_shared_with_static_runtimes=no
  6332. archive_cmds=
  6333. archive_expsym_cmds=
  6334. old_archive_From_new_cmds=
  6335. old_archive_from_expsyms_cmds=
  6336. export_dynamic_flag_spec=
  6337. whole_archive_flag_spec=
  6338. thread_safe_flag_spec=
  6339. hardcode_libdir_flag_spec=
  6340. hardcode_libdir_flag_spec_ld=
  6341. hardcode_libdir_separator=
  6342. hardcode_direct=no
  6343. hardcode_minus_L=no
  6344. hardcode_shlibpath_var=unsupported
  6345. link_all_deplibs=unknown
  6346. hardcode_automatic=no
  6347. module_cmds=
  6348. module_expsym_cmds=
  6349. always_export_symbols=no
  6350. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6351. # include_expsyms should be a list of space-separated symbols to be *always*
  6352. # included in the symbol list
  6353. include_expsyms=
  6354. # exclude_expsyms can be an extended regexp of symbols to exclude
  6355. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6356. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6357. # as well as any symbol that contains `d'.
  6358. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6359. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6360. # platforms (ab)use it in PIC code, but their linkers get confused if
  6361. # the symbol is explicitly referenced. Since portable code cannot
  6362. # rely on this symbol name, it's probably fine to never include it in
  6363. # preloaded symbol tables.
  6364. extract_expsyms_cmds=
  6365. # Just being paranoid about ensuring that cc_basename is set.
  6366. for cc_temp in $compiler""; do
  6367. case $cc_temp in
  6368. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6369. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6370. \-*) ;;
  6371. *) break;;
  6372. esac
  6373. done
  6374. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6375. case $host_os in
  6376. cygwin* | mingw* | pw32*)
  6377. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6378. # When not using gcc, we currently assume that we are using
  6379. # Microsoft Visual C++.
  6380. if test "$GCC" != yes; then
  6381. with_gnu_ld=no
  6382. fi
  6383. ;;
  6384. interix*)
  6385. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6386. with_gnu_ld=yes
  6387. ;;
  6388. openbsd*)
  6389. with_gnu_ld=no
  6390. ;;
  6391. esac
  6392. ld_shlibs=yes
  6393. if test "$with_gnu_ld" = yes; then
  6394. # If archive_cmds runs LD, not CC, wlarc should be empty
  6395. wlarc='${wl}'
  6396. # Set some defaults for GNU ld with shared library support. These
  6397. # are reset later if shared libraries are not supported. Putting them
  6398. # here allows them to be overridden if necessary.
  6399. runpath_var=LD_RUN_PATH
  6400. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6401. export_dynamic_flag_spec='${wl}--export-dynamic'
  6402. # ancient GNU ld didn't support --whole-archive et. al.
  6403. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6404. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6405. else
  6406. whole_archive_flag_spec=
  6407. fi
  6408. supports_anon_versioning=no
  6409. case `$LD -v 2>/dev/null` in
  6410. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6411. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6412. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6413. *\ 2.11.*) ;; # other 2.11 versions
  6414. *) supports_anon_versioning=yes ;;
  6415. esac
  6416. # See if GNU ld supports shared libraries.
  6417. case $host_os in
  6418. aix3* | aix4* | aix5*)
  6419. # On AIX/PPC, the GNU linker is very broken
  6420. if test "$host_cpu" != ia64; then
  6421. ld_shlibs=no
  6422. cat <<EOF 1>&2
  6423. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6424. *** to be unable to reliably create shared libraries on AIX.
  6425. *** Therefore, libtool is disabling shared libraries support. If you
  6426. *** really care for shared libraries, you may want to modify your PATH
  6427. *** so that a non-GNU linker is found, and then restart.
  6428. EOF
  6429. fi
  6430. ;;
  6431. amigaos*)
  6432. 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)'
  6433. hardcode_libdir_flag_spec='-L$libdir'
  6434. hardcode_minus_L=yes
  6435. # Samuel A. Falvo II <[email protected]> reports
  6436. # that the semantics of dynamic libraries on AmigaOS, at least up
  6437. # to version 4, is to share data among multiple programs linked
  6438. # with the same dynamic library. Since this doesn't match the
  6439. # behavior of shared libraries on other platforms, we can't use
  6440. # them.
  6441. ld_shlibs=no
  6442. ;;
  6443. beos*)
  6444. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6445. allow_undefined_flag=unsupported
  6446. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6447. # support --undefined. This deserves some investigation. FIXME
  6448. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6449. else
  6450. ld_shlibs=no
  6451. fi
  6452. ;;
  6453. cygwin* | mingw* | pw32*)
  6454. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6455. # as there is no search path for DLLs.
  6456. hardcode_libdir_flag_spec='-L$libdir'
  6457. allow_undefined_flag=unsupported
  6458. always_export_symbols=no
  6459. enable_shared_with_static_runtimes=yes
  6460. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6461. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6462. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6463. # If the export-symbols file already is a .def file (1st line
  6464. # is EXPORTS), use it as is; otherwise, prepend...
  6465. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6466. cp $export_symbols $output_objdir/$soname.def;
  6467. else
  6468. echo EXPORTS > $output_objdir/$soname.def;
  6469. cat $export_symbols >> $output_objdir/$soname.def;
  6470. fi~
  6471. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6472. else
  6473. ld_shlibs=no
  6474. fi
  6475. ;;
  6476. interix3*)
  6477. hardcode_direct=no
  6478. hardcode_shlibpath_var=no
  6479. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6480. export_dynamic_flag_spec='${wl}-E'
  6481. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6482. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6483. # default) and relocated if they conflict, which is a slow very memory
  6484. # consuming and fragmenting process. To avoid this, we pick a random,
  6485. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6486. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6487. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6488. 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'
  6489. ;;
  6490. linux*)
  6491. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6492. tmp_addflag=
  6493. case $cc_basename,$host_cpu in
  6494. pgcc*) # Portland Group C compiler
  6495. 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'
  6496. tmp_addflag=' $pic_flag'
  6497. ;;
  6498. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6499. 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'
  6500. tmp_addflag=' $pic_flag -Mnomain' ;;
  6501. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6502. tmp_addflag=' -i_dynamic' ;;
  6503. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6504. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6505. ifc* | ifort*) # Intel Fortran compiler
  6506. tmp_addflag=' -nofor_main' ;;
  6507. esac
  6508. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6509. if test $supports_anon_versioning = yes; then
  6510. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6511. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6512. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6513. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6514. fi
  6515. else
  6516. ld_shlibs=no
  6517. fi
  6518. ;;
  6519. netbsd*)
  6520. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6521. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6522. wlarc=
  6523. else
  6524. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6525. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6526. fi
  6527. ;;
  6528. solaris*)
  6529. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6530. ld_shlibs=no
  6531. cat <<EOF 1>&2
  6532. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6533. *** create shared libraries on Solaris systems. Therefore, libtool
  6534. *** is disabling shared libraries support. We urge you to upgrade GNU
  6535. *** binutils to release 2.9.1 or newer. Another option is to modify
  6536. *** your PATH or compiler configuration so that the native linker is
  6537. *** used, and then restart.
  6538. EOF
  6539. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6540. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6541. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6542. else
  6543. ld_shlibs=no
  6544. fi
  6545. ;;
  6546. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6547. case `$LD -v 2>&1` in
  6548. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6549. ld_shlibs=no
  6550. cat <<_LT_EOF 1>&2
  6551. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6552. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6553. *** is disabling shared libraries support. We urge you to upgrade GNU
  6554. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6555. *** your PATH or compiler configuration so that the native linker is
  6556. *** used, and then restart.
  6557. _LT_EOF
  6558. ;;
  6559. *)
  6560. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6561. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6562. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6563. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6564. else
  6565. ld_shlibs=no
  6566. fi
  6567. ;;
  6568. esac
  6569. ;;
  6570. sunos4*)
  6571. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6572. wlarc=
  6573. hardcode_direct=yes
  6574. hardcode_shlibpath_var=no
  6575. ;;
  6576. *)
  6577. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6578. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6579. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6580. else
  6581. ld_shlibs=no
  6582. fi
  6583. ;;
  6584. esac
  6585. if test "$ld_shlibs" = no; then
  6586. runpath_var=
  6587. hardcode_libdir_flag_spec=
  6588. export_dynamic_flag_spec=
  6589. whole_archive_flag_spec=
  6590. fi
  6591. else
  6592. # PORTME fill in a description of your system's linker (not GNU ld)
  6593. case $host_os in
  6594. aix3*)
  6595. allow_undefined_flag=unsupported
  6596. always_export_symbols=yes
  6597. 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'
  6598. # Note: this linker hardcodes the directories in LIBPATH if there
  6599. # are no directories specified by -L.
  6600. hardcode_minus_L=yes
  6601. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6602. # Neither direct hardcoding nor static linking is supported with a
  6603. # broken collect2.
  6604. hardcode_direct=unsupported
  6605. fi
  6606. ;;
  6607. aix4* | aix5*)
  6608. if test "$host_cpu" = ia64; then
  6609. # On IA64, the linker does run time linking by default, so we don't
  6610. # have to do anything special.
  6611. aix_use_runtimelinking=no
  6612. exp_sym_flag='-Bexport'
  6613. no_entry_flag=""
  6614. else
  6615. # If we're using GNU nm, then we don't want the "-C" option.
  6616. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6617. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6618. 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'
  6619. else
  6620. 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'
  6621. fi
  6622. aix_use_runtimelinking=no
  6623. # Test if we are trying to use run time linking or normal
  6624. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6625. # need to do runtime linking.
  6626. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6627. for ld_flag in $LDFLAGS; do
  6628. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6629. aix_use_runtimelinking=yes
  6630. break
  6631. fi
  6632. done
  6633. ;;
  6634. esac
  6635. exp_sym_flag='-bexport'
  6636. no_entry_flag='-bnoentry'
  6637. fi
  6638. # When large executables or shared objects are built, AIX ld can
  6639. # have problems creating the table of contents. If linking a library
  6640. # or program results in "error TOC overflow" add -mminimal-toc to
  6641. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6642. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6643. archive_cmds=''
  6644. hardcode_direct=yes
  6645. hardcode_libdir_separator=':'
  6646. link_all_deplibs=yes
  6647. if test "$GCC" = yes; then
  6648. case $host_os in aix4.[012]|aix4.[012].*)
  6649. # We only want to do this on AIX 4.2 and lower, the check
  6650. # below for broken collect2 doesn't work under 4.3+
  6651. collect2name=`${CC} -print-prog-name=collect2`
  6652. if test -f "$collect2name" && \
  6653. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6654. then
  6655. # We have reworked collect2
  6656. hardcode_direct=yes
  6657. else
  6658. # We have old collect2
  6659. hardcode_direct=unsupported
  6660. # It fails to find uninstalled libraries when the uninstalled
  6661. # path is not listed in the libpath. Setting hardcode_minus_L
  6662. # to unsupported forces relinking
  6663. hardcode_minus_L=yes
  6664. hardcode_libdir_flag_spec='-L$libdir'
  6665. hardcode_libdir_separator=
  6666. fi
  6667. ;;
  6668. esac
  6669. shared_flag='-shared'
  6670. if test "$aix_use_runtimelinking" = yes; then
  6671. shared_flag="$shared_flag "'${wl}-G'
  6672. fi
  6673. else
  6674. # not using gcc
  6675. if test "$host_cpu" = ia64; then
  6676. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6677. # chokes on -Wl,-G. The following line is correct:
  6678. shared_flag='-G'
  6679. else
  6680. if test "$aix_use_runtimelinking" = yes; then
  6681. shared_flag='${wl}-G'
  6682. else
  6683. shared_flag='${wl}-bM:SRE'
  6684. fi
  6685. fi
  6686. fi
  6687. # It seems that -bexpall does not export symbols beginning with
  6688. # underscore (_), so it is better to generate a list of symbols to export.
  6689. always_export_symbols=yes
  6690. if test "$aix_use_runtimelinking" = yes; then
  6691. # Warning - without using the other runtime loading flags (-brtl),
  6692. # -berok will link without error, but may produce a broken library.
  6693. allow_undefined_flag='-berok'
  6694. # Determine the default libpath from the value encoded in an empty executable.
  6695. cat >conftest.$ac_ext <<_ACEOF
  6696. /* confdefs.h. */
  6697. _ACEOF
  6698. cat confdefs.h >>conftest.$ac_ext
  6699. cat >>conftest.$ac_ext <<_ACEOF
  6700. /* end confdefs.h. */
  6701. int
  6702. main ()
  6703. {
  6704. ;
  6705. return 0;
  6706. }
  6707. _ACEOF
  6708. rm -f conftest.$ac_objext conftest$ac_exeext
  6709. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6710. (eval $ac_link) 2>conftest.er1
  6711. ac_status=$?
  6712. grep -v '^ *+' conftest.er1 >conftest.err
  6713. rm -f conftest.er1
  6714. cat conftest.err >&5
  6715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6716. (exit $ac_status); } &&
  6717. { ac_try='test -z "$ac_c_werror_flag"
  6718. || test ! -s conftest.err'
  6719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6720. (eval $ac_try) 2>&5
  6721. ac_status=$?
  6722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6723. (exit $ac_status); }; } &&
  6724. { ac_try='test -s conftest$ac_exeext'
  6725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6726. (eval $ac_try) 2>&5
  6727. ac_status=$?
  6728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6729. (exit $ac_status); }; }; then
  6730. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6731. }'`
  6732. # Check for a 64-bit object if we didn't find anything.
  6733. 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; }
  6734. }'`; fi
  6735. else
  6736. echo "$as_me: failed program was:" >&5
  6737. sed 's/^/| /' conftest.$ac_ext >&5
  6738. fi
  6739. rm -f conftest.err conftest.$ac_objext \
  6740. conftest$ac_exeext conftest.$ac_ext
  6741. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6742. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6743. 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"
  6744. else
  6745. if test "$host_cpu" = ia64; then
  6746. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6747. allow_undefined_flag="-z nodefs"
  6748. 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"
  6749. else
  6750. # Determine the default libpath from the value encoded in an empty executable.
  6751. cat >conftest.$ac_ext <<_ACEOF
  6752. /* confdefs.h. */
  6753. _ACEOF
  6754. cat confdefs.h >>conftest.$ac_ext
  6755. cat >>conftest.$ac_ext <<_ACEOF
  6756. /* end confdefs.h. */
  6757. int
  6758. main ()
  6759. {
  6760. ;
  6761. return 0;
  6762. }
  6763. _ACEOF
  6764. rm -f conftest.$ac_objext conftest$ac_exeext
  6765. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6766. (eval $ac_link) 2>conftest.er1
  6767. ac_status=$?
  6768. grep -v '^ *+' conftest.er1 >conftest.err
  6769. rm -f conftest.er1
  6770. cat conftest.err >&5
  6771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6772. (exit $ac_status); } &&
  6773. { ac_try='test -z "$ac_c_werror_flag"
  6774. || test ! -s conftest.err'
  6775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6776. (eval $ac_try) 2>&5
  6777. ac_status=$?
  6778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6779. (exit $ac_status); }; } &&
  6780. { ac_try='test -s conftest$ac_exeext'
  6781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6782. (eval $ac_try) 2>&5
  6783. ac_status=$?
  6784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6785. (exit $ac_status); }; }; then
  6786. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6787. }'`
  6788. # Check for a 64-bit object if we didn't find anything.
  6789. 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; }
  6790. }'`; fi
  6791. else
  6792. echo "$as_me: failed program was:" >&5
  6793. sed 's/^/| /' conftest.$ac_ext >&5
  6794. fi
  6795. rm -f conftest.err conftest.$ac_objext \
  6796. conftest$ac_exeext conftest.$ac_ext
  6797. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6798. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6799. # Warning - without using the other run time loading flags,
  6800. # -berok will link without error, but may produce a broken library.
  6801. no_undefined_flag=' ${wl}-bernotok'
  6802. allow_undefined_flag=' ${wl}-berok'
  6803. # Exported symbols can be pulled into shared objects from archives
  6804. whole_archive_flag_spec='$convenience'
  6805. archive_cmds_need_lc=yes
  6806. # This is similar to how AIX traditionally builds its shared libraries.
  6807. 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'
  6808. fi
  6809. fi
  6810. ;;
  6811. amigaos*)
  6812. 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)'
  6813. hardcode_libdir_flag_spec='-L$libdir'
  6814. hardcode_minus_L=yes
  6815. # see comment about different semantics on the GNU ld section
  6816. ld_shlibs=no
  6817. ;;
  6818. bsdi[45]*)
  6819. export_dynamic_flag_spec=-rdynamic
  6820. ;;
  6821. cygwin* | mingw* | pw32*)
  6822. # When not using gcc, we currently assume that we are using
  6823. # Microsoft Visual C++.
  6824. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6825. # no search path for DLLs.
  6826. hardcode_libdir_flag_spec=' '
  6827. allow_undefined_flag=unsupported
  6828. # Tell ltmain to make .lib files, not .a files.
  6829. libext=lib
  6830. # Tell ltmain to make .dll files, not .so files.
  6831. shrext_cmds=".dll"
  6832. # FIXME: Setting linknames here is a bad hack.
  6833. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6834. # The linker will automatically build a .lib file if we build a DLL.
  6835. old_archive_From_new_cmds='true'
  6836. # FIXME: Should let the user specify the lib program.
  6837. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6838. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6839. enable_shared_with_static_runtimes=yes
  6840. ;;
  6841. darwin* | rhapsody*)
  6842. case $host_os in
  6843. rhapsody* | darwin1.[012])
  6844. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6845. ;;
  6846. *) # Darwin 1.3 on
  6847. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6848. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6849. else
  6850. case ${MACOSX_DEPLOYMENT_TARGET} in
  6851. 10.[012])
  6852. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6853. ;;
  6854. 10.*)
  6855. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6856. ;;
  6857. esac
  6858. fi
  6859. ;;
  6860. esac
  6861. archive_cmds_need_lc=no
  6862. hardcode_direct=no
  6863. hardcode_automatic=yes
  6864. hardcode_shlibpath_var=unsupported
  6865. whole_archive_flag_spec=''
  6866. link_all_deplibs=yes
  6867. if test "$GCC" = yes ; then
  6868. output_verbose_link_cmd='echo'
  6869. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6870. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6871. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6872. 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}'
  6873. 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}'
  6874. else
  6875. case $cc_basename in
  6876. xlc*)
  6877. output_verbose_link_cmd='echo'
  6878. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6879. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6880. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6881. 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}'
  6882. 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}'
  6883. ;;
  6884. *)
  6885. ld_shlibs=no
  6886. ;;
  6887. esac
  6888. fi
  6889. ;;
  6890. dgux*)
  6891. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6892. hardcode_libdir_flag_spec='-L$libdir'
  6893. hardcode_shlibpath_var=no
  6894. ;;
  6895. freebsd1*)
  6896. ld_shlibs=no
  6897. ;;
  6898. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6899. # support. Future versions do this automatically, but an explicit c++rt0.o
  6900. # does not break anything, and helps significantly (at the cost of a little
  6901. # extra space).
  6902. freebsd2.2*)
  6903. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6904. hardcode_libdir_flag_spec='-R$libdir'
  6905. hardcode_direct=yes
  6906. hardcode_shlibpath_var=no
  6907. ;;
  6908. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6909. freebsd2*)
  6910. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6911. hardcode_direct=yes
  6912. hardcode_minus_L=yes
  6913. hardcode_shlibpath_var=no
  6914. ;;
  6915. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6916. freebsd* | kfreebsd*-gnu | dragonfly*)
  6917. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6918. hardcode_libdir_flag_spec='-R$libdir'
  6919. hardcode_direct=yes
  6920. hardcode_shlibpath_var=no
  6921. ;;
  6922. hpux9*)
  6923. if test "$GCC" = yes; then
  6924. 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'
  6925. else
  6926. 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'
  6927. fi
  6928. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6929. hardcode_libdir_separator=:
  6930. hardcode_direct=yes
  6931. # hardcode_minus_L: Not really in the search PATH,
  6932. # but as the default location of the library.
  6933. hardcode_minus_L=yes
  6934. export_dynamic_flag_spec='${wl}-E'
  6935. ;;
  6936. hpux10*)
  6937. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6938. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6939. else
  6940. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6941. fi
  6942. if test "$with_gnu_ld" = no; then
  6943. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6944. hardcode_libdir_separator=:
  6945. hardcode_direct=yes
  6946. export_dynamic_flag_spec='${wl}-E'
  6947. # hardcode_minus_L: Not really in the search PATH,
  6948. # but as the default location of the library.
  6949. hardcode_minus_L=yes
  6950. fi
  6951. ;;
  6952. hpux11*)
  6953. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6954. case $host_cpu in
  6955. hppa*64*)
  6956. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6957. ;;
  6958. ia64*)
  6959. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6960. ;;
  6961. *)
  6962. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6963. ;;
  6964. esac
  6965. else
  6966. case $host_cpu in
  6967. hppa*64*)
  6968. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6969. ;;
  6970. ia64*)
  6971. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6972. ;;
  6973. *)
  6974. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6975. ;;
  6976. esac
  6977. fi
  6978. if test "$with_gnu_ld" = no; then
  6979. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6980. hardcode_libdir_separator=:
  6981. case $host_cpu in
  6982. hppa*64*|ia64*)
  6983. hardcode_libdir_flag_spec_ld='+b $libdir'
  6984. hardcode_direct=no
  6985. hardcode_shlibpath_var=no
  6986. ;;
  6987. *)
  6988. hardcode_direct=yes
  6989. export_dynamic_flag_spec='${wl}-E'
  6990. # hardcode_minus_L: Not really in the search PATH,
  6991. # but as the default location of the library.
  6992. hardcode_minus_L=yes
  6993. ;;
  6994. esac
  6995. fi
  6996. ;;
  6997. irix5* | irix6* | nonstopux*)
  6998. if test "$GCC" = yes; then
  6999. 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'
  7000. else
  7001. 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'
  7002. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7003. fi
  7004. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7005. hardcode_libdir_separator=:
  7006. link_all_deplibs=yes
  7007. ;;
  7008. netbsd*)
  7009. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7010. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7011. else
  7012. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7013. fi
  7014. hardcode_libdir_flag_spec='-R$libdir'
  7015. hardcode_direct=yes
  7016. hardcode_shlibpath_var=no
  7017. ;;
  7018. newsos6)
  7019. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7020. hardcode_direct=yes
  7021. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7022. hardcode_libdir_separator=:
  7023. hardcode_shlibpath_var=no
  7024. ;;
  7025. openbsd*)
  7026. hardcode_direct=yes
  7027. hardcode_shlibpath_var=no
  7028. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7029. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7030. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7031. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7032. export_dynamic_flag_spec='${wl}-E'
  7033. else
  7034. case $host_os in
  7035. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7036. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7037. hardcode_libdir_flag_spec='-R$libdir'
  7038. ;;
  7039. *)
  7040. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7041. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7042. ;;
  7043. esac
  7044. fi
  7045. ;;
  7046. os2*)
  7047. hardcode_libdir_flag_spec='-L$libdir'
  7048. hardcode_minus_L=yes
  7049. allow_undefined_flag=unsupported
  7050. 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'
  7051. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7052. ;;
  7053. osf3*)
  7054. if test "$GCC" = yes; then
  7055. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7056. 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'
  7057. else
  7058. allow_undefined_flag=' -expect_unresolved \*'
  7059. 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'
  7060. fi
  7061. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7062. hardcode_libdir_separator=:
  7063. ;;
  7064. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7065. if test "$GCC" = yes; then
  7066. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7067. 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'
  7068. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7069. else
  7070. allow_undefined_flag=' -expect_unresolved \*'
  7071. 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'
  7072. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7073. $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'
  7074. # Both c and cxx compiler support -rpath directly
  7075. hardcode_libdir_flag_spec='-rpath $libdir'
  7076. fi
  7077. hardcode_libdir_separator=:
  7078. ;;
  7079. solaris*)
  7080. no_undefined_flag=' -z text'
  7081. if test "$GCC" = yes; then
  7082. wlarc='${wl}'
  7083. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7084. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7085. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7086. else
  7087. wlarc=''
  7088. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7089. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7090. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7091. fi
  7092. hardcode_libdir_flag_spec='-R$libdir'
  7093. hardcode_shlibpath_var=no
  7094. case $host_os in
  7095. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7096. *)
  7097. # The compiler driver will combine linker options so we
  7098. # cannot just pass the convience library names through
  7099. # without $wl, iff we do not link with $LD.
  7100. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7101. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7102. case $wlarc in
  7103. '')
  7104. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7105. *)
  7106. 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' ;;
  7107. esac ;;
  7108. esac
  7109. link_all_deplibs=yes
  7110. ;;
  7111. sunos4*)
  7112. if test "x$host_vendor" = xsequent; then
  7113. # Use $CC to link under sequent, because it throws in some extra .o
  7114. # files that make .init and .fini sections work.
  7115. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7116. else
  7117. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7118. fi
  7119. hardcode_libdir_flag_spec='-L$libdir'
  7120. hardcode_direct=yes
  7121. hardcode_minus_L=yes
  7122. hardcode_shlibpath_var=no
  7123. ;;
  7124. sysv4)
  7125. case $host_vendor in
  7126. sni)
  7127. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7128. hardcode_direct=yes # is this really true???
  7129. ;;
  7130. siemens)
  7131. ## LD is ld it makes a PLAMLIB
  7132. ## CC just makes a GrossModule.
  7133. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7134. reload_cmds='$CC -r -o $output$reload_objs'
  7135. hardcode_direct=no
  7136. ;;
  7137. motorola)
  7138. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7139. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7140. ;;
  7141. esac
  7142. runpath_var='LD_RUN_PATH'
  7143. hardcode_shlibpath_var=no
  7144. ;;
  7145. sysv4.3*)
  7146. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7147. hardcode_shlibpath_var=no
  7148. export_dynamic_flag_spec='-Bexport'
  7149. ;;
  7150. sysv4*MP*)
  7151. if test -d /usr/nec; then
  7152. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7153. hardcode_shlibpath_var=no
  7154. runpath_var=LD_RUN_PATH
  7155. hardcode_runpath_var=yes
  7156. ld_shlibs=yes
  7157. fi
  7158. ;;
  7159. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7160. no_undefined_flag='${wl}-z,text'
  7161. archive_cmds_need_lc=no
  7162. hardcode_shlibpath_var=no
  7163. runpath_var='LD_RUN_PATH'
  7164. if test "$GCC" = yes; then
  7165. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7166. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7167. else
  7168. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7169. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7170. fi
  7171. ;;
  7172. sysv5* | sco3.2v5* | sco5v6*)
  7173. # Note: We can NOT use -z defs as we might desire, because we do not
  7174. # link with -lc, and that would cause any symbols used from libc to
  7175. # always be unresolved, which means just about no library would
  7176. # ever link correctly. If we're not using GNU ld we use -z text
  7177. # though, which does catch some bad symbols but isn't as heavy-handed
  7178. # as -z defs.
  7179. no_undefined_flag='${wl}-z,text'
  7180. allow_undefined_flag='${wl}-z,nodefs'
  7181. archive_cmds_need_lc=no
  7182. hardcode_shlibpath_var=no
  7183. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7184. hardcode_libdir_separator=':'
  7185. link_all_deplibs=yes
  7186. export_dynamic_flag_spec='${wl}-Bexport'
  7187. runpath_var='LD_RUN_PATH'
  7188. if test "$GCC" = yes; then
  7189. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7190. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7191. else
  7192. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7193. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7194. fi
  7195. ;;
  7196. uts4*)
  7197. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7198. hardcode_libdir_flag_spec='-L$libdir'
  7199. hardcode_shlibpath_var=no
  7200. ;;
  7201. *)
  7202. ld_shlibs=no
  7203. ;;
  7204. esac
  7205. fi
  7206. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7207. echo "${ECHO_T}$ld_shlibs" >&6
  7208. test "$ld_shlibs" = no && can_build_shared=no
  7209. #
  7210. # Do we need to explicitly link libc?
  7211. #
  7212. case "x$archive_cmds_need_lc" in
  7213. x|xyes)
  7214. # Assume -lc should be added
  7215. archive_cmds_need_lc=yes
  7216. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7217. case $archive_cmds in
  7218. *'~'*)
  7219. # FIXME: we may have to deal with multi-command sequences.
  7220. ;;
  7221. '$CC '*)
  7222. # Test whether the compiler implicitly links with -lc since on some
  7223. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7224. # to ld, don't add -lc before -lgcc.
  7225. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7226. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7227. $rm conftest*
  7228. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7229. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7230. (eval $ac_compile) 2>&5
  7231. ac_status=$?
  7232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7233. (exit $ac_status); } 2>conftest.err; then
  7234. soname=conftest
  7235. lib=conftest
  7236. libobjs=conftest.$ac_objext
  7237. deplibs=
  7238. wl=$lt_prog_compiler_wl
  7239. pic_flag=$lt_prog_compiler_pic
  7240. compiler_flags=-v
  7241. linker_flags=-v
  7242. verstring=
  7243. output_objdir=.
  7244. libname=conftest
  7245. lt_save_allow_undefined_flag=$allow_undefined_flag
  7246. allow_undefined_flag=
  7247. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7248. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7249. ac_status=$?
  7250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7251. (exit $ac_status); }
  7252. then
  7253. archive_cmds_need_lc=no
  7254. else
  7255. archive_cmds_need_lc=yes
  7256. fi
  7257. allow_undefined_flag=$lt_save_allow_undefined_flag
  7258. else
  7259. cat conftest.err 1>&5
  7260. fi
  7261. $rm conftest*
  7262. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7263. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7264. ;;
  7265. esac
  7266. fi
  7267. ;;
  7268. esac
  7269. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7270. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7271. library_names_spec=
  7272. libname_spec='lib$name'
  7273. soname_spec=
  7274. shrext_cmds=".so"
  7275. postinstall_cmds=
  7276. postuninstall_cmds=
  7277. finish_cmds=
  7278. finish_eval=
  7279. shlibpath_var=
  7280. shlibpath_overrides_runpath=unknown
  7281. version_type=none
  7282. dynamic_linker="$host_os ld.so"
  7283. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7284. if test "$GCC" = yes; then
  7285. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7286. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7287. # if the path contains ";" then we assume it to be the separator
  7288. # otherwise default to the standard path separator (i.e. ":") - it is
  7289. # assumed that no part of a normal pathname contains ";" but that should
  7290. # okay in the real world where ";" in dirpaths is itself problematic.
  7291. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7292. else
  7293. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7294. fi
  7295. else
  7296. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7297. fi
  7298. need_lib_prefix=unknown
  7299. hardcode_into_libs=no
  7300. # when you set need_version to no, make sure it does not cause -set_version
  7301. # flags to be left without arguments
  7302. need_version=unknown
  7303. case $host_os in
  7304. aix3*)
  7305. version_type=linux
  7306. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7307. shlibpath_var=LIBPATH
  7308. # AIX 3 has no versioning support, so we append a major version to the name.
  7309. soname_spec='${libname}${release}${shared_ext}$major'
  7310. ;;
  7311. aix4* | aix5*)
  7312. version_type=linux
  7313. need_lib_prefix=no
  7314. need_version=no
  7315. hardcode_into_libs=yes
  7316. if test "$host_cpu" = ia64; then
  7317. # AIX 5 supports IA64
  7318. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7319. shlibpath_var=LD_LIBRARY_PATH
  7320. else
  7321. # With GCC up to 2.95.x, collect2 would create an import file
  7322. # for dependence libraries. The import file would start with
  7323. # the line `#! .'. This would cause the generated library to
  7324. # depend on `.', always an invalid library. This was fixed in
  7325. # development snapshots of GCC prior to 3.0.
  7326. case $host_os in
  7327. aix4 | aix4.[01] | aix4.[01].*)
  7328. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7329. echo ' yes '
  7330. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7331. :
  7332. else
  7333. can_build_shared=no
  7334. fi
  7335. ;;
  7336. esac
  7337. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7338. # soname into executable. Probably we can add versioning support to
  7339. # collect2, so additional links can be useful in future.
  7340. if test "$aix_use_runtimelinking" = yes; then
  7341. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7342. # instead of lib<name>.a to let people know that these are not
  7343. # typical AIX shared libraries.
  7344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7345. else
  7346. # We preserve .a as extension for shared libraries through AIX4.2
  7347. # and later when we are not doing run time linking.
  7348. library_names_spec='${libname}${release}.a $libname.a'
  7349. soname_spec='${libname}${release}${shared_ext}$major'
  7350. fi
  7351. shlibpath_var=LIBPATH
  7352. fi
  7353. ;;
  7354. amigaos*)
  7355. library_names_spec='$libname.ixlibrary $libname.a'
  7356. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7357. 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'
  7358. ;;
  7359. beos*)
  7360. library_names_spec='${libname}${shared_ext}'
  7361. dynamic_linker="$host_os ld.so"
  7362. shlibpath_var=LIBRARY_PATH
  7363. ;;
  7364. bsdi[45]*)
  7365. version_type=linux
  7366. need_version=no
  7367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7368. soname_spec='${libname}${release}${shared_ext}$major'
  7369. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7370. shlibpath_var=LD_LIBRARY_PATH
  7371. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7372. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7373. # the default ld.so.conf also contains /usr/contrib/lib and
  7374. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7375. # libtool to hard-code these into programs
  7376. ;;
  7377. cygwin* | mingw* | pw32*)
  7378. version_type=windows
  7379. shrext_cmds=".dll"
  7380. need_version=no
  7381. need_lib_prefix=no
  7382. case $GCC,$host_os in
  7383. yes,cygwin* | yes,mingw* | yes,pw32*)
  7384. library_names_spec='$libname.dll.a'
  7385. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7386. postinstall_cmds='base_file=`basename \${file}`~
  7387. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7388. dldir=$destdir/`dirname \$dlpath`~
  7389. test -d \$dldir || mkdir -p \$dldir~
  7390. $install_prog $dir/$dlname \$dldir/$dlname~
  7391. chmod a+x \$dldir/$dlname'
  7392. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7393. dlpath=$dir/\$dldll~
  7394. $rm \$dlpath'
  7395. shlibpath_overrides_runpath=yes
  7396. case $host_os in
  7397. cygwin*)
  7398. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7399. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7400. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7401. ;;
  7402. mingw*)
  7403. # MinGW DLLs use traditional 'lib' prefix
  7404. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7405. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7406. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7407. # It is most probably a Windows format PATH printed by
  7408. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7409. # path with ; separators, and with drive letters. We can handle the
  7410. # drive letters (cygwin fileutils understands them), so leave them,
  7411. # especially as we might pass files found there to a mingw objdump,
  7412. # which wouldn't understand a cygwinified path. Ahh.
  7413. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7414. else
  7415. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7416. fi
  7417. ;;
  7418. pw32*)
  7419. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7420. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7421. ;;
  7422. esac
  7423. ;;
  7424. *)
  7425. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7426. ;;
  7427. esac
  7428. dynamic_linker='Win32 ld.exe'
  7429. # FIXME: first we should search . and the directory the executable is in
  7430. shlibpath_var=PATH
  7431. ;;
  7432. darwin* | rhapsody*)
  7433. dynamic_linker="$host_os dyld"
  7434. version_type=darwin
  7435. need_lib_prefix=no
  7436. need_version=no
  7437. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7438. soname_spec='${libname}${release}${major}$shared_ext'
  7439. shlibpath_overrides_runpath=yes
  7440. shlibpath_var=DYLD_LIBRARY_PATH
  7441. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7442. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7443. if test "$GCC" = yes; then
  7444. 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"`
  7445. else
  7446. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7447. fi
  7448. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7449. ;;
  7450. dgux*)
  7451. version_type=linux
  7452. need_lib_prefix=no
  7453. need_version=no
  7454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7455. soname_spec='${libname}${release}${shared_ext}$major'
  7456. shlibpath_var=LD_LIBRARY_PATH
  7457. ;;
  7458. freebsd1*)
  7459. dynamic_linker=no
  7460. ;;
  7461. kfreebsd*-gnu)
  7462. version_type=linux
  7463. need_lib_prefix=no
  7464. need_version=no
  7465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7466. soname_spec='${libname}${release}${shared_ext}$major'
  7467. shlibpath_var=LD_LIBRARY_PATH
  7468. shlibpath_overrides_runpath=no
  7469. hardcode_into_libs=yes
  7470. dynamic_linker='GNU ld.so'
  7471. ;;
  7472. freebsd* | dragonfly*)
  7473. # DragonFly does not have aout. When/if they implement a new
  7474. # versioning mechanism, adjust this.
  7475. if test -x /usr/bin/objformat; then
  7476. objformat=`/usr/bin/objformat`
  7477. else
  7478. case $host_os in
  7479. freebsd[123]*) objformat=aout ;;
  7480. *) objformat=elf ;;
  7481. esac
  7482. fi
  7483. version_type=freebsd-$objformat
  7484. case $version_type in
  7485. freebsd-elf*)
  7486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7487. need_version=no
  7488. need_lib_prefix=no
  7489. ;;
  7490. freebsd-*)
  7491. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7492. need_version=yes
  7493. ;;
  7494. esac
  7495. shlibpath_var=LD_LIBRARY_PATH
  7496. case $host_os in
  7497. freebsd2*)
  7498. shlibpath_overrides_runpath=yes
  7499. ;;
  7500. freebsd3.[01]* | freebsdelf3.[01]*)
  7501. shlibpath_overrides_runpath=yes
  7502. hardcode_into_libs=yes
  7503. ;;
  7504. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7505. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7506. shlibpath_overrides_runpath=no
  7507. hardcode_into_libs=yes
  7508. ;;
  7509. freebsd*) # from 4.6 on
  7510. shlibpath_overrides_runpath=yes
  7511. hardcode_into_libs=yes
  7512. ;;
  7513. esac
  7514. ;;
  7515. gnu*)
  7516. version_type=linux
  7517. need_lib_prefix=no
  7518. need_version=no
  7519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7520. soname_spec='${libname}${release}${shared_ext}$major'
  7521. shlibpath_var=LD_LIBRARY_PATH
  7522. hardcode_into_libs=yes
  7523. ;;
  7524. hpux9* | hpux10* | hpux11*)
  7525. # Give a soname corresponding to the major version so that dld.sl refuses to
  7526. # link against other versions.
  7527. version_type=sunos
  7528. need_lib_prefix=no
  7529. need_version=no
  7530. case $host_cpu in
  7531. ia64*)
  7532. shrext_cmds='.so'
  7533. hardcode_into_libs=yes
  7534. dynamic_linker="$host_os dld.so"
  7535. shlibpath_var=LD_LIBRARY_PATH
  7536. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7538. soname_spec='${libname}${release}${shared_ext}$major'
  7539. if test "X$HPUX_IA64_MODE" = X32; then
  7540. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7541. else
  7542. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7543. fi
  7544. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7545. ;;
  7546. hppa*64*)
  7547. shrext_cmds='.sl'
  7548. hardcode_into_libs=yes
  7549. dynamic_linker="$host_os dld.sl"
  7550. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7555. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7556. ;;
  7557. *)
  7558. shrext_cmds='.sl'
  7559. dynamic_linker="$host_os dld.sl"
  7560. shlibpath_var=SHLIB_PATH
  7561. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7563. soname_spec='${libname}${release}${shared_ext}$major'
  7564. ;;
  7565. esac
  7566. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7567. postinstall_cmds='chmod 555 $lib'
  7568. ;;
  7569. interix3*)
  7570. version_type=linux
  7571. need_lib_prefix=no
  7572. need_version=no
  7573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7574. soname_spec='${libname}${release}${shared_ext}$major'
  7575. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7576. shlibpath_var=LD_LIBRARY_PATH
  7577. shlibpath_overrides_runpath=no
  7578. hardcode_into_libs=yes
  7579. ;;
  7580. irix5* | irix6* | nonstopux*)
  7581. case $host_os in
  7582. nonstopux*) version_type=nonstopux ;;
  7583. *)
  7584. if test "$lt_cv_prog_gnu_ld" = yes; then
  7585. version_type=linux
  7586. else
  7587. version_type=irix
  7588. fi ;;
  7589. esac
  7590. need_lib_prefix=no
  7591. need_version=no
  7592. soname_spec='${libname}${release}${shared_ext}$major'
  7593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7594. case $host_os in
  7595. irix5* | nonstopux*)
  7596. libsuff= shlibsuff=
  7597. ;;
  7598. *)
  7599. case $LD in # libtool.m4 will add one of these switches to LD
  7600. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7601. libsuff= shlibsuff= libmagic=32-bit;;
  7602. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7603. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7604. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7605. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7606. *) libsuff= shlibsuff= libmagic=never-match;;
  7607. esac
  7608. ;;
  7609. esac
  7610. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7611. shlibpath_overrides_runpath=no
  7612. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7613. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7614. hardcode_into_libs=yes
  7615. ;;
  7616. # No shared lib support for Linux oldld, aout, or coff.
  7617. linux*oldld* | linux*aout* | linux*coff*)
  7618. dynamic_linker=no
  7619. ;;
  7620. # This must be Linux ELF.
  7621. linux*)
  7622. version_type=linux
  7623. need_lib_prefix=no
  7624. need_version=no
  7625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7626. soname_spec='${libname}${release}${shared_ext}$major'
  7627. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7628. shlibpath_var=LD_LIBRARY_PATH
  7629. shlibpath_overrides_runpath=no
  7630. # This implies no fast_install, which is unacceptable.
  7631. # Some rework will be needed to allow for fast_install
  7632. # before this can be enabled.
  7633. hardcode_into_libs=yes
  7634. # find out which ABI we are using
  7635. libsuff=
  7636. case "$host_cpu" in
  7637. x86_64*|s390x*|powerpc64*)
  7638. echo '#line 8431 "configure"' > conftest.$ac_ext
  7639. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7640. (eval $ac_compile) 2>&5
  7641. ac_status=$?
  7642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7643. (exit $ac_status); }; then
  7644. case `/usr/bin/file conftest.$ac_objext` in
  7645. *64-bit*)
  7646. libsuff=64
  7647. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7648. ;;
  7649. esac
  7650. fi
  7651. rm -rf conftest*
  7652. ;;
  7653. esac
  7654. # Append ld.so.conf contents to the search path
  7655. if test -f /etc/ld.so.conf; then
  7656. 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' ' '`
  7657. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7658. fi
  7659. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7660. # powerpc, because MkLinux only supported shared libraries with the
  7661. # GNU dynamic linker. Since this was broken with cross compilers,
  7662. # most powerpc-linux boxes support dynamic linking these days and
  7663. # people can always --disable-shared, the test was removed, and we
  7664. # assume the GNU/Linux dynamic linker is in use.
  7665. dynamic_linker='GNU/Linux ld.so'
  7666. ;;
  7667. knetbsd*-gnu)
  7668. version_type=linux
  7669. need_lib_prefix=no
  7670. need_version=no
  7671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7672. soname_spec='${libname}${release}${shared_ext}$major'
  7673. shlibpath_var=LD_LIBRARY_PATH
  7674. shlibpath_overrides_runpath=no
  7675. hardcode_into_libs=yes
  7676. dynamic_linker='GNU ld.so'
  7677. ;;
  7678. netbsd*)
  7679. version_type=sunos
  7680. need_lib_prefix=no
  7681. need_version=no
  7682. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7684. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7685. dynamic_linker='NetBSD (a.out) ld.so'
  7686. else
  7687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7688. soname_spec='${libname}${release}${shared_ext}$major'
  7689. dynamic_linker='NetBSD ld.elf_so'
  7690. fi
  7691. shlibpath_var=LD_LIBRARY_PATH
  7692. shlibpath_overrides_runpath=yes
  7693. hardcode_into_libs=yes
  7694. ;;
  7695. newsos6)
  7696. version_type=linux
  7697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7698. shlibpath_var=LD_LIBRARY_PATH
  7699. shlibpath_overrides_runpath=yes
  7700. ;;
  7701. nto-qnx*)
  7702. version_type=linux
  7703. need_lib_prefix=no
  7704. need_version=no
  7705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7706. soname_spec='${libname}${release}${shared_ext}$major'
  7707. shlibpath_var=LD_LIBRARY_PATH
  7708. shlibpath_overrides_runpath=yes
  7709. ;;
  7710. openbsd*)
  7711. version_type=sunos
  7712. sys_lib_dlsearch_path_spec="/usr/lib"
  7713. need_lib_prefix=no
  7714. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7715. case $host_os in
  7716. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7717. *) need_version=no ;;
  7718. esac
  7719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7720. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7721. shlibpath_var=LD_LIBRARY_PATH
  7722. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7723. case $host_os in
  7724. openbsd2.[89] | openbsd2.[89].*)
  7725. shlibpath_overrides_runpath=no
  7726. ;;
  7727. *)
  7728. shlibpath_overrides_runpath=yes
  7729. ;;
  7730. esac
  7731. else
  7732. shlibpath_overrides_runpath=yes
  7733. fi
  7734. ;;
  7735. os2*)
  7736. libname_spec='$name'
  7737. shrext_cmds=".dll"
  7738. need_lib_prefix=no
  7739. library_names_spec='$libname${shared_ext} $libname.a'
  7740. dynamic_linker='OS/2 ld.exe'
  7741. shlibpath_var=LIBPATH
  7742. ;;
  7743. osf3* | osf4* | osf5*)
  7744. version_type=osf
  7745. need_lib_prefix=no
  7746. need_version=no
  7747. soname_spec='${libname}${release}${shared_ext}$major'
  7748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7749. shlibpath_var=LD_LIBRARY_PATH
  7750. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7751. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7752. ;;
  7753. solaris*)
  7754. version_type=linux
  7755. need_lib_prefix=no
  7756. need_version=no
  7757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7758. soname_spec='${libname}${release}${shared_ext}$major'
  7759. shlibpath_var=LD_LIBRARY_PATH
  7760. shlibpath_overrides_runpath=yes
  7761. hardcode_into_libs=yes
  7762. # ldd complains unless libraries are executable
  7763. postinstall_cmds='chmod +x $lib'
  7764. ;;
  7765. sunos4*)
  7766. version_type=sunos
  7767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7768. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7769. shlibpath_var=LD_LIBRARY_PATH
  7770. shlibpath_overrides_runpath=yes
  7771. if test "$with_gnu_ld" = yes; then
  7772. need_lib_prefix=no
  7773. fi
  7774. need_version=yes
  7775. ;;
  7776. sysv4 | sysv4.3*)
  7777. version_type=linux
  7778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7779. soname_spec='${libname}${release}${shared_ext}$major'
  7780. shlibpath_var=LD_LIBRARY_PATH
  7781. case $host_vendor in
  7782. sni)
  7783. shlibpath_overrides_runpath=no
  7784. need_lib_prefix=no
  7785. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7786. runpath_var=LD_RUN_PATH
  7787. ;;
  7788. siemens)
  7789. need_lib_prefix=no
  7790. ;;
  7791. motorola)
  7792. need_lib_prefix=no
  7793. need_version=no
  7794. shlibpath_overrides_runpath=no
  7795. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7796. ;;
  7797. esac
  7798. ;;
  7799. sysv4*MP*)
  7800. if test -d /usr/nec ;then
  7801. version_type=linux
  7802. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7803. soname_spec='$libname${shared_ext}.$major'
  7804. shlibpath_var=LD_LIBRARY_PATH
  7805. fi
  7806. ;;
  7807. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7808. version_type=freebsd-elf
  7809. need_lib_prefix=no
  7810. need_version=no
  7811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7812. soname_spec='${libname}${release}${shared_ext}$major'
  7813. shlibpath_var=LD_LIBRARY_PATH
  7814. hardcode_into_libs=yes
  7815. if test "$with_gnu_ld" = yes; then
  7816. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7817. shlibpath_overrides_runpath=no
  7818. else
  7819. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7820. shlibpath_overrides_runpath=yes
  7821. case $host_os in
  7822. sco3.2v5*)
  7823. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7824. ;;
  7825. esac
  7826. fi
  7827. sys_lib_dlsearch_path_spec='/usr/lib'
  7828. ;;
  7829. uts4*)
  7830. version_type=linux
  7831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7832. soname_spec='${libname}${release}${shared_ext}$major'
  7833. shlibpath_var=LD_LIBRARY_PATH
  7834. ;;
  7835. *)
  7836. dynamic_linker=no
  7837. ;;
  7838. esac
  7839. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7840. echo "${ECHO_T}$dynamic_linker" >&6
  7841. test "$dynamic_linker" = no && can_build_shared=no
  7842. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7843. if test "$GCC" = yes; then
  7844. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7845. fi
  7846. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7847. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7848. hardcode_action=
  7849. if test -n "$hardcode_libdir_flag_spec" || \
  7850. test -n "$runpath_var" || \
  7851. test "X$hardcode_automatic" = "Xyes" ; then
  7852. # We can hardcode non-existant directories.
  7853. if test "$hardcode_direct" != no &&
  7854. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7855. # have to relink, otherwise we might link with an installed library
  7856. # when we should be linking with a yet-to-be-installed one
  7857. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7858. test "$hardcode_minus_L" != no; then
  7859. # Linking always hardcodes the temporary library directory.
  7860. hardcode_action=relink
  7861. else
  7862. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7863. hardcode_action=immediate
  7864. fi
  7865. else
  7866. # We cannot hardcode anything, or else we can only hardcode existing
  7867. # directories.
  7868. hardcode_action=unsupported
  7869. fi
  7870. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7871. echo "${ECHO_T}$hardcode_action" >&6
  7872. if test "$hardcode_action" = relink; then
  7873. # Fast installation is not supported
  7874. enable_fast_install=no
  7875. elif test "$shlibpath_overrides_runpath" = yes ||
  7876. test "$enable_shared" = no; then
  7877. # Fast installation is not necessary
  7878. enable_fast_install=needless
  7879. fi
  7880. striplib=
  7881. old_striplib=
  7882. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7883. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7884. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7885. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7886. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7887. echo "$as_me:$LINENO: result: yes" >&5
  7888. echo "${ECHO_T}yes" >&6
  7889. else
  7890. # FIXME - insert some real tests, host_os isn't really good enough
  7891. case $host_os in
  7892. darwin*)
  7893. if test -n "$STRIP" ; then
  7894. striplib="$STRIP -x"
  7895. echo "$as_me:$LINENO: result: yes" >&5
  7896. echo "${ECHO_T}yes" >&6
  7897. else
  7898. echo "$as_me:$LINENO: result: no" >&5
  7899. echo "${ECHO_T}no" >&6
  7900. fi
  7901. ;;
  7902. *)
  7903. echo "$as_me:$LINENO: result: no" >&5
  7904. echo "${ECHO_T}no" >&6
  7905. ;;
  7906. esac
  7907. fi
  7908. if test "x$enable_dlopen" != xyes; then
  7909. enable_dlopen=unknown
  7910. enable_dlopen_self=unknown
  7911. enable_dlopen_self_static=unknown
  7912. else
  7913. lt_cv_dlopen=no
  7914. lt_cv_dlopen_libs=
  7915. case $host_os in
  7916. beos*)
  7917. lt_cv_dlopen="load_add_on"
  7918. lt_cv_dlopen_libs=
  7919. lt_cv_dlopen_self=yes
  7920. ;;
  7921. mingw* | pw32*)
  7922. lt_cv_dlopen="LoadLibrary"
  7923. lt_cv_dlopen_libs=
  7924. ;;
  7925. cygwin*)
  7926. lt_cv_dlopen="dlopen"
  7927. lt_cv_dlopen_libs=
  7928. ;;
  7929. darwin*)
  7930. # if libdl is installed we need to link against it
  7931. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7932. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7933. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7934. echo $ECHO_N "(cached) $ECHO_C" >&6
  7935. else
  7936. ac_check_lib_save_LIBS=$LIBS
  7937. LIBS="-ldl $LIBS"
  7938. cat >conftest.$ac_ext <<_ACEOF
  7939. /* confdefs.h. */
  7940. _ACEOF
  7941. cat confdefs.h >>conftest.$ac_ext
  7942. cat >>conftest.$ac_ext <<_ACEOF
  7943. /* end confdefs.h. */
  7944. /* Override any gcc2 internal prototype to avoid an error. */
  7945. #ifdef __cplusplus
  7946. extern "C"
  7947. #endif
  7948. /* We use char because int might match the return type of a gcc2
  7949. builtin and then its argument prototype would still apply. */
  7950. char dlopen ();
  7951. int
  7952. main ()
  7953. {
  7954. dlopen ();
  7955. ;
  7956. return 0;
  7957. }
  7958. _ACEOF
  7959. rm -f conftest.$ac_objext conftest$ac_exeext
  7960. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7961. (eval $ac_link) 2>conftest.er1
  7962. ac_status=$?
  7963. grep -v '^ *+' conftest.er1 >conftest.err
  7964. rm -f conftest.er1
  7965. cat conftest.err >&5
  7966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7967. (exit $ac_status); } &&
  7968. { ac_try='test -z "$ac_c_werror_flag"
  7969. || test ! -s conftest.err'
  7970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7971. (eval $ac_try) 2>&5
  7972. ac_status=$?
  7973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7974. (exit $ac_status); }; } &&
  7975. { ac_try='test -s conftest$ac_exeext'
  7976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7977. (eval $ac_try) 2>&5
  7978. ac_status=$?
  7979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7980. (exit $ac_status); }; }; then
  7981. ac_cv_lib_dl_dlopen=yes
  7982. else
  7983. echo "$as_me: failed program was:" >&5
  7984. sed 's/^/| /' conftest.$ac_ext >&5
  7985. ac_cv_lib_dl_dlopen=no
  7986. fi
  7987. rm -f conftest.err conftest.$ac_objext \
  7988. conftest$ac_exeext conftest.$ac_ext
  7989. LIBS=$ac_check_lib_save_LIBS
  7990. fi
  7991. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7992. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7993. if test $ac_cv_lib_dl_dlopen = yes; then
  7994. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7995. else
  7996. lt_cv_dlopen="dyld"
  7997. lt_cv_dlopen_libs=
  7998. lt_cv_dlopen_self=yes
  7999. fi
  8000. ;;
  8001. *)
  8002. echo "$as_me:$LINENO: checking for shl_load" >&5
  8003. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8004. if test "${ac_cv_func_shl_load+set}" = set; then
  8005. echo $ECHO_N "(cached) $ECHO_C" >&6
  8006. else
  8007. cat >conftest.$ac_ext <<_ACEOF
  8008. /* confdefs.h. */
  8009. _ACEOF
  8010. cat confdefs.h >>conftest.$ac_ext
  8011. cat >>conftest.$ac_ext <<_ACEOF
  8012. /* end confdefs.h. */
  8013. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8014. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8015. #define shl_load innocuous_shl_load
  8016. /* System header to define __stub macros and hopefully few prototypes,
  8017. which can conflict with char shl_load (); below.
  8018. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8019. <limits.h> exists even on freestanding compilers. */
  8020. #ifdef __STDC__
  8021. # include <limits.h>
  8022. #else
  8023. # include <assert.h>
  8024. #endif
  8025. #undef shl_load
  8026. /* Override any gcc2 internal prototype to avoid an error. */
  8027. #ifdef __cplusplus
  8028. extern "C"
  8029. {
  8030. #endif
  8031. /* We use char because int might match the return type of a gcc2
  8032. builtin and then its argument prototype would still apply. */
  8033. char shl_load ();
  8034. /* The GNU C library defines this for functions which it implements
  8035. to always fail with ENOSYS. Some functions are actually named
  8036. something starting with __ and the normal name is an alias. */
  8037. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8038. choke me
  8039. #else
  8040. char (*f) () = shl_load;
  8041. #endif
  8042. #ifdef __cplusplus
  8043. }
  8044. #endif
  8045. int
  8046. main ()
  8047. {
  8048. return f != shl_load;
  8049. ;
  8050. return 0;
  8051. }
  8052. _ACEOF
  8053. rm -f conftest.$ac_objext conftest$ac_exeext
  8054. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8055. (eval $ac_link) 2>conftest.er1
  8056. ac_status=$?
  8057. grep -v '^ *+' conftest.er1 >conftest.err
  8058. rm -f conftest.er1
  8059. cat conftest.err >&5
  8060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8061. (exit $ac_status); } &&
  8062. { ac_try='test -z "$ac_c_werror_flag"
  8063. || test ! -s conftest.err'
  8064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8065. (eval $ac_try) 2>&5
  8066. ac_status=$?
  8067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8068. (exit $ac_status); }; } &&
  8069. { ac_try='test -s conftest$ac_exeext'
  8070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8071. (eval $ac_try) 2>&5
  8072. ac_status=$?
  8073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8074. (exit $ac_status); }; }; then
  8075. ac_cv_func_shl_load=yes
  8076. else
  8077. echo "$as_me: failed program was:" >&5
  8078. sed 's/^/| /' conftest.$ac_ext >&5
  8079. ac_cv_func_shl_load=no
  8080. fi
  8081. rm -f conftest.err conftest.$ac_objext \
  8082. conftest$ac_exeext conftest.$ac_ext
  8083. fi
  8084. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8085. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8086. if test $ac_cv_func_shl_load = yes; then
  8087. lt_cv_dlopen="shl_load"
  8088. else
  8089. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8090. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8091. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8092. echo $ECHO_N "(cached) $ECHO_C" >&6
  8093. else
  8094. ac_check_lib_save_LIBS=$LIBS
  8095. LIBS="-ldld $LIBS"
  8096. cat >conftest.$ac_ext <<_ACEOF
  8097. /* confdefs.h. */
  8098. _ACEOF
  8099. cat confdefs.h >>conftest.$ac_ext
  8100. cat >>conftest.$ac_ext <<_ACEOF
  8101. /* end confdefs.h. */
  8102. /* Override any gcc2 internal prototype to avoid an error. */
  8103. #ifdef __cplusplus
  8104. extern "C"
  8105. #endif
  8106. /* We use char because int might match the return type of a gcc2
  8107. builtin and then its argument prototype would still apply. */
  8108. char shl_load ();
  8109. int
  8110. main ()
  8111. {
  8112. shl_load ();
  8113. ;
  8114. return 0;
  8115. }
  8116. _ACEOF
  8117. rm -f conftest.$ac_objext conftest$ac_exeext
  8118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8119. (eval $ac_link) 2>conftest.er1
  8120. ac_status=$?
  8121. grep -v '^ *+' conftest.er1 >conftest.err
  8122. rm -f conftest.er1
  8123. cat conftest.err >&5
  8124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8125. (exit $ac_status); } &&
  8126. { ac_try='test -z "$ac_c_werror_flag"
  8127. || test ! -s conftest.err'
  8128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8129. (eval $ac_try) 2>&5
  8130. ac_status=$?
  8131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. (exit $ac_status); }; } &&
  8133. { ac_try='test -s conftest$ac_exeext'
  8134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8135. (eval $ac_try) 2>&5
  8136. ac_status=$?
  8137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8138. (exit $ac_status); }; }; then
  8139. ac_cv_lib_dld_shl_load=yes
  8140. else
  8141. echo "$as_me: failed program was:" >&5
  8142. sed 's/^/| /' conftest.$ac_ext >&5
  8143. ac_cv_lib_dld_shl_load=no
  8144. fi
  8145. rm -f conftest.err conftest.$ac_objext \
  8146. conftest$ac_exeext conftest.$ac_ext
  8147. LIBS=$ac_check_lib_save_LIBS
  8148. fi
  8149. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8150. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8151. if test $ac_cv_lib_dld_shl_load = yes; then
  8152. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8153. else
  8154. echo "$as_me:$LINENO: checking for dlopen" >&5
  8155. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8156. if test "${ac_cv_func_dlopen+set}" = set; then
  8157. echo $ECHO_N "(cached) $ECHO_C" >&6
  8158. else
  8159. cat >conftest.$ac_ext <<_ACEOF
  8160. /* confdefs.h. */
  8161. _ACEOF
  8162. cat confdefs.h >>conftest.$ac_ext
  8163. cat >>conftest.$ac_ext <<_ACEOF
  8164. /* end confdefs.h. */
  8165. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8166. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8167. #define dlopen innocuous_dlopen
  8168. /* System header to define __stub macros and hopefully few prototypes,
  8169. which can conflict with char dlopen (); below.
  8170. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8171. <limits.h> exists even on freestanding compilers. */
  8172. #ifdef __STDC__
  8173. # include <limits.h>
  8174. #else
  8175. # include <assert.h>
  8176. #endif
  8177. #undef dlopen
  8178. /* Override any gcc2 internal prototype to avoid an error. */
  8179. #ifdef __cplusplus
  8180. extern "C"
  8181. {
  8182. #endif
  8183. /* We use char because int might match the return type of a gcc2
  8184. builtin and then its argument prototype would still apply. */
  8185. char dlopen ();
  8186. /* The GNU C library defines this for functions which it implements
  8187. to always fail with ENOSYS. Some functions are actually named
  8188. something starting with __ and the normal name is an alias. */
  8189. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8190. choke me
  8191. #else
  8192. char (*f) () = dlopen;
  8193. #endif
  8194. #ifdef __cplusplus
  8195. }
  8196. #endif
  8197. int
  8198. main ()
  8199. {
  8200. return f != dlopen;
  8201. ;
  8202. return 0;
  8203. }
  8204. _ACEOF
  8205. rm -f conftest.$ac_objext conftest$ac_exeext
  8206. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8207. (eval $ac_link) 2>conftest.er1
  8208. ac_status=$?
  8209. grep -v '^ *+' conftest.er1 >conftest.err
  8210. rm -f conftest.er1
  8211. cat conftest.err >&5
  8212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8213. (exit $ac_status); } &&
  8214. { ac_try='test -z "$ac_c_werror_flag"
  8215. || test ! -s conftest.err'
  8216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8217. (eval $ac_try) 2>&5
  8218. ac_status=$?
  8219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8220. (exit $ac_status); }; } &&
  8221. { ac_try='test -s conftest$ac_exeext'
  8222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8223. (eval $ac_try) 2>&5
  8224. ac_status=$?
  8225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. (exit $ac_status); }; }; then
  8227. ac_cv_func_dlopen=yes
  8228. else
  8229. echo "$as_me: failed program was:" >&5
  8230. sed 's/^/| /' conftest.$ac_ext >&5
  8231. ac_cv_func_dlopen=no
  8232. fi
  8233. rm -f conftest.err conftest.$ac_objext \
  8234. conftest$ac_exeext conftest.$ac_ext
  8235. fi
  8236. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8237. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8238. if test $ac_cv_func_dlopen = yes; then
  8239. lt_cv_dlopen="dlopen"
  8240. else
  8241. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8242. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8243. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8244. echo $ECHO_N "(cached) $ECHO_C" >&6
  8245. else
  8246. ac_check_lib_save_LIBS=$LIBS
  8247. LIBS="-ldl $LIBS"
  8248. cat >conftest.$ac_ext <<_ACEOF
  8249. /* confdefs.h. */
  8250. _ACEOF
  8251. cat confdefs.h >>conftest.$ac_ext
  8252. cat >>conftest.$ac_ext <<_ACEOF
  8253. /* end confdefs.h. */
  8254. /* Override any gcc2 internal prototype to avoid an error. */
  8255. #ifdef __cplusplus
  8256. extern "C"
  8257. #endif
  8258. /* We use char because int might match the return type of a gcc2
  8259. builtin and then its argument prototype would still apply. */
  8260. char dlopen ();
  8261. int
  8262. main ()
  8263. {
  8264. dlopen ();
  8265. ;
  8266. return 0;
  8267. }
  8268. _ACEOF
  8269. rm -f conftest.$ac_objext conftest$ac_exeext
  8270. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8271. (eval $ac_link) 2>conftest.er1
  8272. ac_status=$?
  8273. grep -v '^ *+' conftest.er1 >conftest.err
  8274. rm -f conftest.er1
  8275. cat conftest.err >&5
  8276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8277. (exit $ac_status); } &&
  8278. { ac_try='test -z "$ac_c_werror_flag"
  8279. || test ! -s conftest.err'
  8280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8281. (eval $ac_try) 2>&5
  8282. ac_status=$?
  8283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8284. (exit $ac_status); }; } &&
  8285. { ac_try='test -s conftest$ac_exeext'
  8286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8287. (eval $ac_try) 2>&5
  8288. ac_status=$?
  8289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8290. (exit $ac_status); }; }; then
  8291. ac_cv_lib_dl_dlopen=yes
  8292. else
  8293. echo "$as_me: failed program was:" >&5
  8294. sed 's/^/| /' conftest.$ac_ext >&5
  8295. ac_cv_lib_dl_dlopen=no
  8296. fi
  8297. rm -f conftest.err conftest.$ac_objext \
  8298. conftest$ac_exeext conftest.$ac_ext
  8299. LIBS=$ac_check_lib_save_LIBS
  8300. fi
  8301. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8302. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8303. if test $ac_cv_lib_dl_dlopen = yes; then
  8304. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8305. else
  8306. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8307. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8308. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8309. echo $ECHO_N "(cached) $ECHO_C" >&6
  8310. else
  8311. ac_check_lib_save_LIBS=$LIBS
  8312. LIBS="-lsvld $LIBS"
  8313. cat >conftest.$ac_ext <<_ACEOF
  8314. /* confdefs.h. */
  8315. _ACEOF
  8316. cat confdefs.h >>conftest.$ac_ext
  8317. cat >>conftest.$ac_ext <<_ACEOF
  8318. /* end confdefs.h. */
  8319. /* Override any gcc2 internal prototype to avoid an error. */
  8320. #ifdef __cplusplus
  8321. extern "C"
  8322. #endif
  8323. /* We use char because int might match the return type of a gcc2
  8324. builtin and then its argument prototype would still apply. */
  8325. char dlopen ();
  8326. int
  8327. main ()
  8328. {
  8329. dlopen ();
  8330. ;
  8331. return 0;
  8332. }
  8333. _ACEOF
  8334. rm -f conftest.$ac_objext conftest$ac_exeext
  8335. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8336. (eval $ac_link) 2>conftest.er1
  8337. ac_status=$?
  8338. grep -v '^ *+' conftest.er1 >conftest.err
  8339. rm -f conftest.er1
  8340. cat conftest.err >&5
  8341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8342. (exit $ac_status); } &&
  8343. { ac_try='test -z "$ac_c_werror_flag"
  8344. || test ! -s conftest.err'
  8345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8346. (eval $ac_try) 2>&5
  8347. ac_status=$?
  8348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8349. (exit $ac_status); }; } &&
  8350. { ac_try='test -s conftest$ac_exeext'
  8351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8352. (eval $ac_try) 2>&5
  8353. ac_status=$?
  8354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8355. (exit $ac_status); }; }; then
  8356. ac_cv_lib_svld_dlopen=yes
  8357. else
  8358. echo "$as_me: failed program was:" >&5
  8359. sed 's/^/| /' conftest.$ac_ext >&5
  8360. ac_cv_lib_svld_dlopen=no
  8361. fi
  8362. rm -f conftest.err conftest.$ac_objext \
  8363. conftest$ac_exeext conftest.$ac_ext
  8364. LIBS=$ac_check_lib_save_LIBS
  8365. fi
  8366. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8367. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8368. if test $ac_cv_lib_svld_dlopen = yes; then
  8369. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8370. else
  8371. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8372. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8373. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8374. echo $ECHO_N "(cached) $ECHO_C" >&6
  8375. else
  8376. ac_check_lib_save_LIBS=$LIBS
  8377. LIBS="-ldld $LIBS"
  8378. cat >conftest.$ac_ext <<_ACEOF
  8379. /* confdefs.h. */
  8380. _ACEOF
  8381. cat confdefs.h >>conftest.$ac_ext
  8382. cat >>conftest.$ac_ext <<_ACEOF
  8383. /* end confdefs.h. */
  8384. /* Override any gcc2 internal prototype to avoid an error. */
  8385. #ifdef __cplusplus
  8386. extern "C"
  8387. #endif
  8388. /* We use char because int might match the return type of a gcc2
  8389. builtin and then its argument prototype would still apply. */
  8390. char dld_link ();
  8391. int
  8392. main ()
  8393. {
  8394. dld_link ();
  8395. ;
  8396. return 0;
  8397. }
  8398. _ACEOF
  8399. rm -f conftest.$ac_objext conftest$ac_exeext
  8400. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8401. (eval $ac_link) 2>conftest.er1
  8402. ac_status=$?
  8403. grep -v '^ *+' conftest.er1 >conftest.err
  8404. rm -f conftest.er1
  8405. cat conftest.err >&5
  8406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8407. (exit $ac_status); } &&
  8408. { ac_try='test -z "$ac_c_werror_flag"
  8409. || test ! -s conftest.err'
  8410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8411. (eval $ac_try) 2>&5
  8412. ac_status=$?
  8413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8414. (exit $ac_status); }; } &&
  8415. { ac_try='test -s conftest$ac_exeext'
  8416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8417. (eval $ac_try) 2>&5
  8418. ac_status=$?
  8419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8420. (exit $ac_status); }; }; then
  8421. ac_cv_lib_dld_dld_link=yes
  8422. else
  8423. echo "$as_me: failed program was:" >&5
  8424. sed 's/^/| /' conftest.$ac_ext >&5
  8425. ac_cv_lib_dld_dld_link=no
  8426. fi
  8427. rm -f conftest.err conftest.$ac_objext \
  8428. conftest$ac_exeext conftest.$ac_ext
  8429. LIBS=$ac_check_lib_save_LIBS
  8430. fi
  8431. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8432. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8433. if test $ac_cv_lib_dld_dld_link = yes; then
  8434. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8435. fi
  8436. fi
  8437. fi
  8438. fi
  8439. fi
  8440. fi
  8441. ;;
  8442. esac
  8443. if test "x$lt_cv_dlopen" != xno; then
  8444. enable_dlopen=yes
  8445. else
  8446. enable_dlopen=no
  8447. fi
  8448. case $lt_cv_dlopen in
  8449. dlopen)
  8450. save_CPPFLAGS="$CPPFLAGS"
  8451. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8452. save_LDFLAGS="$LDFLAGS"
  8453. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8454. save_LIBS="$LIBS"
  8455. LIBS="$lt_cv_dlopen_libs $LIBS"
  8456. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8457. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8458. if test "${lt_cv_dlopen_self+set}" = set; then
  8459. echo $ECHO_N "(cached) $ECHO_C" >&6
  8460. else
  8461. if test "$cross_compiling" = yes; then :
  8462. lt_cv_dlopen_self=cross
  8463. else
  8464. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8465. lt_status=$lt_dlunknown
  8466. cat > conftest.$ac_ext <<EOF
  8467. #line 9328 "configure"
  8468. #include "confdefs.h"
  8469. #if HAVE_DLFCN_H
  8470. #include <dlfcn.h>
  8471. #endif
  8472. #include <stdio.h>
  8473. #ifdef RTLD_GLOBAL
  8474. # define LT_DLGLOBAL RTLD_GLOBAL
  8475. #else
  8476. # ifdef DL_GLOBAL
  8477. # define LT_DLGLOBAL DL_GLOBAL
  8478. # else
  8479. # define LT_DLGLOBAL 0
  8480. # endif
  8481. #endif
  8482. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8483. find out it does not work in some platform. */
  8484. #ifndef LT_DLLAZY_OR_NOW
  8485. # ifdef RTLD_LAZY
  8486. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8487. # else
  8488. # ifdef DL_LAZY
  8489. # define LT_DLLAZY_OR_NOW DL_LAZY
  8490. # else
  8491. # ifdef RTLD_NOW
  8492. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8493. # else
  8494. # ifdef DL_NOW
  8495. # define LT_DLLAZY_OR_NOW DL_NOW
  8496. # else
  8497. # define LT_DLLAZY_OR_NOW 0
  8498. # endif
  8499. # endif
  8500. # endif
  8501. # endif
  8502. #endif
  8503. #ifdef __cplusplus
  8504. extern "C" void exit (int);
  8505. #endif
  8506. void fnord() { int i=42;}
  8507. int main ()
  8508. {
  8509. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8510. int status = $lt_dlunknown;
  8511. if (self)
  8512. {
  8513. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8514. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8515. /* dlclose (self); */
  8516. }
  8517. else
  8518. puts (dlerror ());
  8519. exit (status);
  8520. }
  8521. EOF
  8522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8523. (eval $ac_link) 2>&5
  8524. ac_status=$?
  8525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8526. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8527. (./conftest; exit; ) >&5 2>/dev/null
  8528. lt_status=$?
  8529. case x$lt_status in
  8530. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8531. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8532. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8533. esac
  8534. else :
  8535. # compilation failed
  8536. lt_cv_dlopen_self=no
  8537. fi
  8538. fi
  8539. rm -fr conftest*
  8540. fi
  8541. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8542. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8543. if test "x$lt_cv_dlopen_self" = xyes; then
  8544. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8545. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8546. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8547. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8548. echo $ECHO_N "(cached) $ECHO_C" >&6
  8549. else
  8550. if test "$cross_compiling" = yes; then :
  8551. lt_cv_dlopen_self_static=cross
  8552. else
  8553. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8554. lt_status=$lt_dlunknown
  8555. cat > conftest.$ac_ext <<EOF
  8556. #line 9428 "configure"
  8557. #include "confdefs.h"
  8558. #if HAVE_DLFCN_H
  8559. #include <dlfcn.h>
  8560. #endif
  8561. #include <stdio.h>
  8562. #ifdef RTLD_GLOBAL
  8563. # define LT_DLGLOBAL RTLD_GLOBAL
  8564. #else
  8565. # ifdef DL_GLOBAL
  8566. # define LT_DLGLOBAL DL_GLOBAL
  8567. # else
  8568. # define LT_DLGLOBAL 0
  8569. # endif
  8570. #endif
  8571. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8572. find out it does not work in some platform. */
  8573. #ifndef LT_DLLAZY_OR_NOW
  8574. # ifdef RTLD_LAZY
  8575. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8576. # else
  8577. # ifdef DL_LAZY
  8578. # define LT_DLLAZY_OR_NOW DL_LAZY
  8579. # else
  8580. # ifdef RTLD_NOW
  8581. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8582. # else
  8583. # ifdef DL_NOW
  8584. # define LT_DLLAZY_OR_NOW DL_NOW
  8585. # else
  8586. # define LT_DLLAZY_OR_NOW 0
  8587. # endif
  8588. # endif
  8589. # endif
  8590. # endif
  8591. #endif
  8592. #ifdef __cplusplus
  8593. extern "C" void exit (int);
  8594. #endif
  8595. void fnord() { int i=42;}
  8596. int main ()
  8597. {
  8598. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8599. int status = $lt_dlunknown;
  8600. if (self)
  8601. {
  8602. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8603. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8604. /* dlclose (self); */
  8605. }
  8606. else
  8607. puts (dlerror ());
  8608. exit (status);
  8609. }
  8610. EOF
  8611. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8612. (eval $ac_link) 2>&5
  8613. ac_status=$?
  8614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8615. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8616. (./conftest; exit; ) >&5 2>/dev/null
  8617. lt_status=$?
  8618. case x$lt_status in
  8619. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8620. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8621. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8622. esac
  8623. else :
  8624. # compilation failed
  8625. lt_cv_dlopen_self_static=no
  8626. fi
  8627. fi
  8628. rm -fr conftest*
  8629. fi
  8630. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8631. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8632. fi
  8633. CPPFLAGS="$save_CPPFLAGS"
  8634. LDFLAGS="$save_LDFLAGS"
  8635. LIBS="$save_LIBS"
  8636. ;;
  8637. esac
  8638. case $lt_cv_dlopen_self in
  8639. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8640. *) enable_dlopen_self=unknown ;;
  8641. esac
  8642. case $lt_cv_dlopen_self_static in
  8643. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8644. *) enable_dlopen_self_static=unknown ;;
  8645. esac
  8646. fi
  8647. # Report which library types will actually be built
  8648. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8649. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8650. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8651. echo "${ECHO_T}$can_build_shared" >&6
  8652. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8653. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8654. test "$can_build_shared" = "no" && enable_shared=no
  8655. # On AIX, shared libraries and static libraries use the same namespace, and
  8656. # are all built from PIC.
  8657. case $host_os in
  8658. aix3*)
  8659. test "$enable_shared" = yes && enable_static=no
  8660. if test -n "$RANLIB"; then
  8661. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8662. postinstall_cmds='$RANLIB $lib'
  8663. fi
  8664. ;;
  8665. aix4* | aix5*)
  8666. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8667. test "$enable_shared" = yes && enable_static=no
  8668. fi
  8669. ;;
  8670. esac
  8671. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8672. echo "${ECHO_T}$enable_shared" >&6
  8673. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8674. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8675. # Make sure either enable_shared or enable_static is yes.
  8676. test "$enable_shared" = yes || enable_static=yes
  8677. echo "$as_me:$LINENO: result: $enable_static" >&5
  8678. echo "${ECHO_T}$enable_static" >&6
  8679. # The else clause should only fire when bootstrapping the
  8680. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8681. # with your package, and you will get complaints that there are
  8682. # no rules to generate ltmain.sh.
  8683. if test -f "$ltmain"; then
  8684. # See if we are running on zsh, and set the options which allow our commands through
  8685. # without removal of \ escapes.
  8686. if test -n "${ZSH_VERSION+set}" ; then
  8687. setopt NO_GLOB_SUBST
  8688. fi
  8689. # Now quote all the things that may contain metacharacters while being
  8690. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8691. # variables and quote the copies for generation of the libtool script.
  8692. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8693. SED SHELL STRIP \
  8694. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8695. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8696. deplibs_check_method reload_flag reload_cmds need_locks \
  8697. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8698. lt_cv_sys_global_symbol_to_c_name_address \
  8699. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8700. old_postinstall_cmds old_postuninstall_cmds \
  8701. compiler \
  8702. CC \
  8703. LD \
  8704. lt_prog_compiler_wl \
  8705. lt_prog_compiler_pic \
  8706. lt_prog_compiler_static \
  8707. lt_prog_compiler_no_builtin_flag \
  8708. export_dynamic_flag_spec \
  8709. thread_safe_flag_spec \
  8710. whole_archive_flag_spec \
  8711. enable_shared_with_static_runtimes \
  8712. old_archive_cmds \
  8713. old_archive_from_new_cmds \
  8714. predep_objects \
  8715. postdep_objects \
  8716. predeps \
  8717. postdeps \
  8718. compiler_lib_search_path \
  8719. archive_cmds \
  8720. archive_expsym_cmds \
  8721. postinstall_cmds \
  8722. postuninstall_cmds \
  8723. old_archive_from_expsyms_cmds \
  8724. allow_undefined_flag \
  8725. no_undefined_flag \
  8726. export_symbols_cmds \
  8727. hardcode_libdir_flag_spec \
  8728. hardcode_libdir_flag_spec_ld \
  8729. hardcode_libdir_separator \
  8730. hardcode_automatic \
  8731. module_cmds \
  8732. module_expsym_cmds \
  8733. lt_cv_prog_compiler_c_o \
  8734. exclude_expsyms \
  8735. include_expsyms; do
  8736. case $var in
  8737. old_archive_cmds | \
  8738. old_archive_from_new_cmds | \
  8739. archive_cmds | \
  8740. archive_expsym_cmds | \
  8741. module_cmds | \
  8742. module_expsym_cmds | \
  8743. old_archive_from_expsyms_cmds | \
  8744. export_symbols_cmds | \
  8745. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8746. postinstall_cmds | postuninstall_cmds | \
  8747. old_postinstall_cmds | old_postuninstall_cmds | \
  8748. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8749. # Double-quote double-evaled strings.
  8750. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8751. ;;
  8752. *)
  8753. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8754. ;;
  8755. esac
  8756. done
  8757. case $lt_echo in
  8758. *'\$0 --fallback-echo"')
  8759. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8760. ;;
  8761. esac
  8762. cfgfile="${ofile}T"
  8763. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8764. $rm -f "$cfgfile"
  8765. { echo "$as_me:$LINENO: creating $ofile" >&5
  8766. echo "$as_me: creating $ofile" >&6;}
  8767. cat <<__EOF__ >> "$cfgfile"
  8768. #! $SHELL
  8769. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8770. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8771. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8772. #
  8773. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8774. # Free Software Foundation, Inc.
  8775. #
  8776. # This file is part of GNU Libtool:
  8777. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8778. #
  8779. # This program is free software; you can redistribute it and/or modify
  8780. # it under the terms of the GNU General Public License as published by
  8781. # the Free Software Foundation; either version 2 of the License, or
  8782. # (at your option) any later version.
  8783. #
  8784. # This program is distributed in the hope that it will be useful, but
  8785. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8786. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8787. # General Public License for more details.
  8788. #
  8789. # You should have received a copy of the GNU General Public License
  8790. # along with this program; if not, write to the Free Software
  8791. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8792. #
  8793. # As a special exception to the GNU General Public License, if you
  8794. # distribute this file as part of a program that contains a
  8795. # configuration script generated by Autoconf, you may include it under
  8796. # the same distribution terms that you use for the rest of that program.
  8797. # A sed program that does not truncate output.
  8798. SED=$lt_SED
  8799. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8800. Xsed="$SED -e 1s/^X//"
  8801. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8802. # if CDPATH is set.
  8803. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8804. # The names of the tagged configurations supported by this script.
  8805. available_tags=
  8806. # ### BEGIN LIBTOOL CONFIG
  8807. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8808. # Shell to use when invoking shell scripts.
  8809. SHELL=$lt_SHELL
  8810. # Whether or not to build shared libraries.
  8811. build_libtool_libs=$enable_shared
  8812. # Whether or not to build static libraries.
  8813. build_old_libs=$enable_static
  8814. # Whether or not to add -lc for building shared libraries.
  8815. build_libtool_need_lc=$archive_cmds_need_lc
  8816. # Whether or not to disallow shared libs when runtime libs are static
  8817. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8818. # Whether or not to optimize for fast installation.
  8819. fast_install=$enable_fast_install
  8820. # The host system.
  8821. host_alias=$host_alias
  8822. host=$host
  8823. host_os=$host_os
  8824. # The build system.
  8825. build_alias=$build_alias
  8826. build=$build
  8827. build_os=$build_os
  8828. # An echo program that does not interpret backslashes.
  8829. echo=$lt_echo
  8830. # The archiver.
  8831. AR=$lt_AR
  8832. AR_FLAGS=$lt_AR_FLAGS
  8833. # A C compiler.
  8834. LTCC=$lt_LTCC
  8835. # LTCC compiler flags.
  8836. LTCFLAGS=$lt_LTCFLAGS
  8837. # A language-specific compiler.
  8838. CC=$lt_compiler
  8839. # Is the compiler the GNU C compiler?
  8840. with_gcc=$GCC
  8841. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  8842. gcc_ver=\`gcc -dumpversion\`
  8843. # An ERE matcher.
  8844. EGREP=$lt_EGREP
  8845. # The linker used to build libraries.
  8846. LD=$lt_LD
  8847. # Whether we need hard or soft links.
  8848. LN_S=$lt_LN_S
  8849. # A BSD-compatible nm program.
  8850. NM=$lt_NM
  8851. # A symbol stripping program
  8852. STRIP=$lt_STRIP
  8853. # Used to examine libraries when file_magic_cmd begins "file"
  8854. MAGIC_CMD=$MAGIC_CMD
  8855. # Used on cygwin: DLL creation program.
  8856. DLLTOOL="$DLLTOOL"
  8857. # Used on cygwin: object dumper.
  8858. OBJDUMP="$OBJDUMP"
  8859. # Used on cygwin: assembler.
  8860. AS="$AS"
  8861. # The name of the directory that contains temporary libtool files.
  8862. objdir=$objdir
  8863. # How to create reloadable object files.
  8864. reload_flag=$lt_reload_flag
  8865. reload_cmds=$lt_reload_cmds
  8866. # How to pass a linker flag through the compiler.
  8867. wl=$lt_lt_prog_compiler_wl
  8868. # Object file suffix (normally "o").
  8869. objext="$ac_objext"
  8870. # Old archive suffix (normally "a").
  8871. libext="$libext"
  8872. # Shared library suffix (normally ".so").
  8873. shrext_cmds='$shrext_cmds'
  8874. # Executable file suffix (normally "").
  8875. exeext="$exeext"
  8876. # Additional compiler flags for building library objects.
  8877. pic_flag=$lt_lt_prog_compiler_pic
  8878. pic_mode=$pic_mode
  8879. # What is the maximum length of a command?
  8880. max_cmd_len=$lt_cv_sys_max_cmd_len
  8881. # Does compiler simultaneously support -c and -o options?
  8882. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8883. # Must we lock files when doing compilation?
  8884. need_locks=$lt_need_locks
  8885. # Do we need the lib prefix for modules?
  8886. need_lib_prefix=$need_lib_prefix
  8887. # Do we need a version for libraries?
  8888. need_version=$need_version
  8889. # Whether dlopen is supported.
  8890. dlopen_support=$enable_dlopen
  8891. # Whether dlopen of programs is supported.
  8892. dlopen_self=$enable_dlopen_self
  8893. # Whether dlopen of statically linked programs is supported.
  8894. dlopen_self_static=$enable_dlopen_self_static
  8895. # Compiler flag to prevent dynamic linking.
  8896. link_static_flag=$lt_lt_prog_compiler_static
  8897. # Compiler flag to turn off builtin functions.
  8898. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8899. # Compiler flag to allow reflexive dlopens.
  8900. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8901. # Compiler flag to generate shared objects directly from archives.
  8902. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8903. # Compiler flag to generate thread-safe objects.
  8904. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8905. # Library versioning type.
  8906. version_type=$version_type
  8907. # Format of library name prefix.
  8908. libname_spec=$lt_libname_spec
  8909. # List of archive names. First name is the real one, the rest are links.
  8910. # The last name is the one that the linker finds with -lNAME.
  8911. library_names_spec=$lt_library_names_spec
  8912. # The coded name of the library, if different from the real name.
  8913. soname_spec=$lt_soname_spec
  8914. # Commands used to build and install an old-style archive.
  8915. RANLIB=$lt_RANLIB
  8916. old_archive_cmds=$lt_old_archive_cmds
  8917. old_postinstall_cmds=$lt_old_postinstall_cmds
  8918. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8919. # Create an old-style archive from a shared archive.
  8920. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8921. # Create a temporary old-style archive to link instead of a shared archive.
  8922. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8923. # Commands used to build and install a shared archive.
  8924. archive_cmds=$lt_archive_cmds
  8925. archive_expsym_cmds=$lt_archive_expsym_cmds
  8926. postinstall_cmds=$lt_postinstall_cmds
  8927. postuninstall_cmds=$lt_postuninstall_cmds
  8928. # Commands used to build a loadable module (assumed same as above if empty)
  8929. module_cmds=$lt_module_cmds
  8930. module_expsym_cmds=$lt_module_expsym_cmds
  8931. # Commands to strip libraries.
  8932. old_striplib=$lt_old_striplib
  8933. striplib=$lt_striplib
  8934. # Dependencies to place before the objects being linked to create a
  8935. # shared library.
  8936. predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8937. # Dependencies to place after the objects being linked to create a
  8938. # shared library.
  8939. postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8940. # Dependencies to place before the objects being linked to create a
  8941. # shared library.
  8942. predeps=$lt_predeps
  8943. # Dependencies to place after the objects being linked to create a
  8944. # shared library.
  8945. postdeps=$lt_postdeps
  8946. # The library search path used internally by the compiler when linking
  8947. # a shared library.
  8948. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8949. # Method to check whether dependent libraries are shared objects.
  8950. deplibs_check_method=$lt_deplibs_check_method
  8951. # Command to use when deplibs_check_method == file_magic.
  8952. file_magic_cmd=$lt_file_magic_cmd
  8953. # Flag that allows shared libraries with undefined symbols to be built.
  8954. allow_undefined_flag=$lt_allow_undefined_flag
  8955. # Flag that forces no undefined symbols.
  8956. no_undefined_flag=$lt_no_undefined_flag
  8957. # Commands used to finish a libtool library installation in a directory.
  8958. finish_cmds=$lt_finish_cmds
  8959. # Same as above, but a single script fragment to be evaled but not shown.
  8960. finish_eval=$lt_finish_eval
  8961. # Take the output of nm and produce a listing of raw symbols and C names.
  8962. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8963. # Transform the output of nm in a proper C declaration
  8964. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8965. # Transform the output of nm in a C name address pair
  8966. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8967. # This is the shared library runtime path variable.
  8968. runpath_var=$runpath_var
  8969. # This is the shared library path variable.
  8970. shlibpath_var=$shlibpath_var
  8971. # Is shlibpath searched before the hard-coded library search path?
  8972. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8973. # How to hardcode a shared library path into an executable.
  8974. hardcode_action=$hardcode_action
  8975. # Whether we should hardcode library paths into libraries.
  8976. hardcode_into_libs=$hardcode_into_libs
  8977. # Flag to hardcode \$libdir into a binary during linking.
  8978. # This must work even if \$libdir does not exist.
  8979. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8980. # If ld is used when linking, flag to hardcode \$libdir into
  8981. # a binary during linking. This must work even if \$libdir does
  8982. # not exist.
  8983. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8984. # Whether we need a single -rpath flag with a separated argument.
  8985. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8986. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8987. # resulting binary.
  8988. hardcode_direct=$hardcode_direct
  8989. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8990. # resulting binary.
  8991. hardcode_minus_L=$hardcode_minus_L
  8992. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8993. # the resulting binary.
  8994. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8995. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8996. # and all subsequent libraries and executables linked against it.
  8997. hardcode_automatic=$hardcode_automatic
  8998. # Variables whose values should be saved in libtool wrapper scripts and
  8999. # restored at relink time.
  9000. variables_saved_for_relink="$variables_saved_for_relink"
  9001. # Whether libtool must link a program against all its dependency libraries.
  9002. link_all_deplibs=$link_all_deplibs
  9003. # Compile-time system search path for libraries
  9004. 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"\`
  9005. # Run-time system search path for libraries
  9006. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9007. # Fix the shell variable \$srcfile for the compiler.
  9008. fix_srcfile_path="$fix_srcfile_path"
  9009. # Set to yes if exported symbols are required.
  9010. always_export_symbols=$always_export_symbols
  9011. # The commands to list exported symbols.
  9012. export_symbols_cmds=$lt_export_symbols_cmds
  9013. # The commands to extract the exported symbol list from a shared archive.
  9014. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9015. # Symbols that should not be listed in the preloaded symbols.
  9016. exclude_expsyms=$lt_exclude_expsyms
  9017. # Symbols that must always be exported.
  9018. include_expsyms=$lt_include_expsyms
  9019. # ### END LIBTOOL CONFIG
  9020. __EOF__
  9021. case $host_os in
  9022. aix3*)
  9023. cat <<\EOF >> "$cfgfile"
  9024. # AIX sometimes has problems with the GCC collect2 program. For some
  9025. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9026. # vanish in a puff of smoke.
  9027. if test "X${COLLECT_NAMES+set}" != Xset; then
  9028. COLLECT_NAMES=
  9029. export COLLECT_NAMES
  9030. fi
  9031. EOF
  9032. ;;
  9033. esac
  9034. # We use sed instead of cat because bash on DJGPP gets confused if
  9035. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9036. # text mode, it properly converts lines to CR/LF. This bash problem
  9037. # is reportedly fixed, but why not run on old versions too?
  9038. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9039. mv -f "$cfgfile" "$ofile" || \
  9040. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9041. chmod +x "$ofile"
  9042. else
  9043. # If there is no Makefile yet, we rely on a make rule to execute
  9044. # `config.status --recheck' to rerun these tests and create the
  9045. # libtool script then.
  9046. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9047. if test -f "$ltmain_in"; then
  9048. test -f Makefile && make "$ltmain"
  9049. fi
  9050. fi
  9051. ac_ext=c
  9052. ac_cpp='$CPP $CPPFLAGS'
  9053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9056. CC="$lt_save_CC"
  9057. # Check whether --with-tags or --without-tags was given.
  9058. if test "${with_tags+set}" = set; then
  9059. withval="$with_tags"
  9060. tagnames="$withval"
  9061. fi;
  9062. if test -f "$ltmain" && test -n "$tagnames"; then
  9063. if test ! -f "${ofile}"; then
  9064. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9065. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9066. fi
  9067. if test -z "$LTCC"; then
  9068. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9069. if test -z "$LTCC"; then
  9070. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9071. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9072. else
  9073. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9074. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9075. fi
  9076. fi
  9077. if test -z "$LTCFLAGS"; then
  9078. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9079. fi
  9080. # Extract list of available tagged configurations in $ofile.
  9081. # Note that this assumes the entire list is on one line.
  9082. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9083. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9084. for tagname in $tagnames; do
  9085. IFS="$lt_save_ifs"
  9086. # Check whether tagname contains only valid characters
  9087. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9088. "") ;;
  9089. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9090. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9091. { (exit 1); exit 1; }; }
  9092. ;;
  9093. esac
  9094. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9095. then
  9096. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9097. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9098. { (exit 1); exit 1; }; }
  9099. fi
  9100. # Update the list of available tags.
  9101. if test -n "$tagname"; then
  9102. echo appending configuration tag \"$tagname\" to $ofile
  9103. case $tagname in
  9104. CXX)
  9105. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9106. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9107. (test "X$CXX" != "Xg++"))) ; then
  9108. ac_ext=cc
  9109. ac_cpp='$CXXCPP $CPPFLAGS'
  9110. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9111. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9112. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9113. archive_cmds_need_lc_CXX=no
  9114. allow_undefined_flag_CXX=
  9115. always_export_symbols_CXX=no
  9116. archive_expsym_cmds_CXX=
  9117. export_dynamic_flag_spec_CXX=
  9118. hardcode_direct_CXX=no
  9119. hardcode_libdir_flag_spec_CXX=
  9120. hardcode_libdir_flag_spec_ld_CXX=
  9121. hardcode_libdir_separator_CXX=
  9122. hardcode_minus_L_CXX=no
  9123. hardcode_shlibpath_var_CXX=unsupported
  9124. hardcode_automatic_CXX=no
  9125. module_cmds_CXX=
  9126. module_expsym_cmds_CXX=
  9127. link_all_deplibs_CXX=unknown
  9128. old_archive_cmds_CXX=$old_archive_cmds
  9129. no_undefined_flag_CXX=
  9130. whole_archive_flag_spec_CXX=
  9131. enable_shared_with_static_runtimes_CXX=no
  9132. # Dependencies to place before and after the object being linked:
  9133. predep_objects_CXX=
  9134. postdep_objects_CXX=
  9135. predeps_CXX=
  9136. postdeps_CXX=
  9137. compiler_lib_search_path_CXX=
  9138. # Source file extension for C++ test sources.
  9139. ac_ext=cpp
  9140. # Object file extension for compiled C++ test sources.
  9141. objext=o
  9142. objext_CXX=$objext
  9143. # Code to be used in simple compile tests
  9144. lt_simple_compile_test_code="int some_variable = 0;\n"
  9145. # Code to be used in simple link tests
  9146. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9147. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9148. # If no C compiler was specified, use CC.
  9149. LTCC=${LTCC-"$CC"}
  9150. # If no C compiler flags were specified, use CFLAGS.
  9151. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9152. # Allow CC to be a program name with arguments.
  9153. compiler=$CC
  9154. # save warnings/boilerplate of simple test code
  9155. ac_outfile=conftest.$ac_objext
  9156. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9157. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9158. _lt_compiler_boilerplate=`cat conftest.err`
  9159. $rm conftest*
  9160. ac_outfile=conftest.$ac_objext
  9161. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9162. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9163. _lt_linker_boilerplate=`cat conftest.err`
  9164. $rm conftest*
  9165. # Allow CC to be a program name with arguments.
  9166. lt_save_CC=$CC
  9167. lt_save_LD=$LD
  9168. lt_save_GCC=$GCC
  9169. GCC=$GXX
  9170. lt_save_with_gnu_ld=$with_gnu_ld
  9171. lt_save_path_LD=$lt_cv_path_LD
  9172. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9173. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9174. else
  9175. $as_unset lt_cv_prog_gnu_ld
  9176. fi
  9177. if test -n "${lt_cv_path_LDCXX+set}"; then
  9178. lt_cv_path_LD=$lt_cv_path_LDCXX
  9179. else
  9180. $as_unset lt_cv_path_LD
  9181. fi
  9182. test -z "${LDCXX+set}" || LD=$LDCXX
  9183. CC=${CXX-"c++"}
  9184. compiler=$CC
  9185. compiler_CXX=$CC
  9186. for cc_temp in $compiler""; do
  9187. case $cc_temp in
  9188. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9189. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9190. \-*) ;;
  9191. *) break;;
  9192. esac
  9193. done
  9194. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9195. # We don't want -fno-exception wen compiling C++ code, so set the
  9196. # no_builtin_flag separately
  9197. if test "$GXX" = yes; then
  9198. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9199. else
  9200. lt_prog_compiler_no_builtin_flag_CXX=
  9201. fi
  9202. if test "$GXX" = yes; then
  9203. # Set up default GNU C++ configuration
  9204. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9205. if test "${with_gnu_ld+set}" = set; then
  9206. withval="$with_gnu_ld"
  9207. test "$withval" = no || with_gnu_ld=yes
  9208. else
  9209. with_gnu_ld=no
  9210. fi;
  9211. ac_prog=ld
  9212. if test "$GCC" = yes; then
  9213. # Check if gcc -print-prog-name=ld gives a path.
  9214. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9215. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9216. case $host in
  9217. *-*-mingw*)
  9218. # gcc leaves a trailing carriage return which upsets mingw
  9219. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9220. *)
  9221. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9222. esac
  9223. case $ac_prog in
  9224. # Accept absolute paths.
  9225. [\\/]* | ?:[\\/]*)
  9226. re_direlt='/[^/][^/]*/\.\./'
  9227. # Canonicalize the pathname of ld
  9228. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9229. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9230. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9231. done
  9232. test -z "$LD" && LD="$ac_prog"
  9233. ;;
  9234. "")
  9235. # If it fails, then pretend we aren't using GCC.
  9236. ac_prog=ld
  9237. ;;
  9238. *)
  9239. # If it is relative, then search for the first ld in PATH.
  9240. with_gnu_ld=unknown
  9241. ;;
  9242. esac
  9243. elif test "$with_gnu_ld" = yes; then
  9244. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9245. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9246. else
  9247. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9248. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9249. fi
  9250. if test "${lt_cv_path_LD+set}" = set; then
  9251. echo $ECHO_N "(cached) $ECHO_C" >&6
  9252. else
  9253. if test -z "$LD"; then
  9254. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9255. for ac_dir in $PATH; do
  9256. IFS="$lt_save_ifs"
  9257. test -z "$ac_dir" && ac_dir=.
  9258. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9259. lt_cv_path_LD="$ac_dir/$ac_prog"
  9260. # Check to see if the program is GNU ld. I'd rather use --version,
  9261. # but apparently some variants of GNU ld only accept -v.
  9262. # Break only if it was the GNU/non-GNU ld that we prefer.
  9263. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9264. *GNU* | *'with BFD'*)
  9265. test "$with_gnu_ld" != no && break
  9266. ;;
  9267. *)
  9268. test "$with_gnu_ld" != yes && break
  9269. ;;
  9270. esac
  9271. fi
  9272. done
  9273. IFS="$lt_save_ifs"
  9274. else
  9275. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9276. fi
  9277. fi
  9278. LD="$lt_cv_path_LD"
  9279. if test -n "$LD"; then
  9280. echo "$as_me:$LINENO: result: $LD" >&5
  9281. echo "${ECHO_T}$LD" >&6
  9282. else
  9283. echo "$as_me:$LINENO: result: no" >&5
  9284. echo "${ECHO_T}no" >&6
  9285. fi
  9286. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9287. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9288. { (exit 1); exit 1; }; }
  9289. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9290. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9291. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9292. echo $ECHO_N "(cached) $ECHO_C" >&6
  9293. else
  9294. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9295. case `$LD -v 2>&1 </dev/null` in
  9296. *GNU* | *'with BFD'*)
  9297. lt_cv_prog_gnu_ld=yes
  9298. ;;
  9299. *)
  9300. lt_cv_prog_gnu_ld=no
  9301. ;;
  9302. esac
  9303. fi
  9304. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9305. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9306. with_gnu_ld=$lt_cv_prog_gnu_ld
  9307. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9308. # archiving commands below assume that GNU ld is being used.
  9309. if test "$with_gnu_ld" = yes; then
  9310. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9311. 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'
  9312. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9313. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9314. # If archive_cmds runs LD, not CC, wlarc should be empty
  9315. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9316. # investigate it a little bit more. (MM)
  9317. wlarc='${wl}'
  9318. # ancient GNU ld didn't support --whole-archive et. al.
  9319. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9320. grep 'no-whole-archive' > /dev/null; then
  9321. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9322. else
  9323. whole_archive_flag_spec_CXX=
  9324. fi
  9325. else
  9326. with_gnu_ld=no
  9327. wlarc=
  9328. # A generic and very simple default shared library creation
  9329. # command for GNU C++ for the case where it uses the native
  9330. # linker, instead of GNU ld. If possible, this setting should
  9331. # overridden to take advantage of the native linker features on
  9332. # the platform it is being used on.
  9333. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9334. fi
  9335. # Commands to make compiler produce verbose output that lists
  9336. # what "hidden" libraries, object files and flags are used when
  9337. # linking a shared library.
  9338. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9339. else
  9340. GXX=no
  9341. with_gnu_ld=no
  9342. wlarc=
  9343. fi
  9344. # PORTME: fill in a description of your system's C++ link characteristics
  9345. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9346. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9347. ld_shlibs_CXX=yes
  9348. case $host_os in
  9349. aix3*)
  9350. # FIXME: insert proper C++ library support
  9351. ld_shlibs_CXX=no
  9352. ;;
  9353. aix4* | aix5*)
  9354. if test "$host_cpu" = ia64; then
  9355. # On IA64, the linker does run time linking by default, so we don't
  9356. # have to do anything special.
  9357. aix_use_runtimelinking=no
  9358. exp_sym_flag='-Bexport'
  9359. no_entry_flag=""
  9360. else
  9361. aix_use_runtimelinking=no
  9362. # Test if we are trying to use run time linking or normal
  9363. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9364. # need to do runtime linking.
  9365. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9366. for ld_flag in $LDFLAGS; do
  9367. case $ld_flag in
  9368. *-brtl*)
  9369. aix_use_runtimelinking=yes
  9370. break
  9371. ;;
  9372. esac
  9373. done
  9374. ;;
  9375. esac
  9376. exp_sym_flag='-bexport'
  9377. no_entry_flag='-bnoentry'
  9378. fi
  9379. # When large executables or shared objects are built, AIX ld can
  9380. # have problems creating the table of contents. If linking a library
  9381. # or program results in "error TOC overflow" add -mminimal-toc to
  9382. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9383. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9384. archive_cmds_CXX=''
  9385. hardcode_direct_CXX=yes
  9386. hardcode_libdir_separator_CXX=':'
  9387. link_all_deplibs_CXX=yes
  9388. if test "$GXX" = yes; then
  9389. case $host_os in aix4.[012]|aix4.[012].*)
  9390. # We only want to do this on AIX 4.2 and lower, the check
  9391. # below for broken collect2 doesn't work under 4.3+
  9392. collect2name=`${CC} -print-prog-name=collect2`
  9393. if test -f "$collect2name" && \
  9394. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9395. then
  9396. # We have reworked collect2
  9397. hardcode_direct_CXX=yes
  9398. else
  9399. # We have old collect2
  9400. hardcode_direct_CXX=unsupported
  9401. # It fails to find uninstalled libraries when the uninstalled
  9402. # path is not listed in the libpath. Setting hardcode_minus_L
  9403. # to unsupported forces relinking
  9404. hardcode_minus_L_CXX=yes
  9405. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9406. hardcode_libdir_separator_CXX=
  9407. fi
  9408. ;;
  9409. esac
  9410. shared_flag='-shared'
  9411. if test "$aix_use_runtimelinking" = yes; then
  9412. shared_flag="$shared_flag "'${wl}-G'
  9413. fi
  9414. else
  9415. # not using gcc
  9416. if test "$host_cpu" = ia64; then
  9417. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9418. # chokes on -Wl,-G. The following line is correct:
  9419. shared_flag='-G'
  9420. else
  9421. if test "$aix_use_runtimelinking" = yes; then
  9422. shared_flag='${wl}-G'
  9423. else
  9424. shared_flag='${wl}-bM:SRE'
  9425. fi
  9426. fi
  9427. fi
  9428. # It seems that -bexpall does not export symbols beginning with
  9429. # underscore (_), so it is better to generate a list of symbols to export.
  9430. always_export_symbols_CXX=yes
  9431. if test "$aix_use_runtimelinking" = yes; then
  9432. # Warning - without using the other runtime loading flags (-brtl),
  9433. # -berok will link without error, but may produce a broken library.
  9434. allow_undefined_flag_CXX='-berok'
  9435. # Determine the default libpath from the value encoded in an empty executable.
  9436. cat >conftest.$ac_ext <<_ACEOF
  9437. /* confdefs.h. */
  9438. _ACEOF
  9439. cat confdefs.h >>conftest.$ac_ext
  9440. cat >>conftest.$ac_ext <<_ACEOF
  9441. /* end confdefs.h. */
  9442. int
  9443. main ()
  9444. {
  9445. ;
  9446. return 0;
  9447. }
  9448. _ACEOF
  9449. rm -f conftest.$ac_objext conftest$ac_exeext
  9450. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9451. (eval $ac_link) 2>conftest.er1
  9452. ac_status=$?
  9453. grep -v '^ *+' conftest.er1 >conftest.err
  9454. rm -f conftest.er1
  9455. cat conftest.err >&5
  9456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9457. (exit $ac_status); } &&
  9458. { ac_try='test -z "$ac_cxx_werror_flag"
  9459. || test ! -s conftest.err'
  9460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9461. (eval $ac_try) 2>&5
  9462. ac_status=$?
  9463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9464. (exit $ac_status); }; } &&
  9465. { ac_try='test -s conftest$ac_exeext'
  9466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9467. (eval $ac_try) 2>&5
  9468. ac_status=$?
  9469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9470. (exit $ac_status); }; }; then
  9471. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9472. }'`
  9473. # Check for a 64-bit object if we didn't find anything.
  9474. 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; }
  9475. }'`; fi
  9476. else
  9477. echo "$as_me: failed program was:" >&5
  9478. sed 's/^/| /' conftest.$ac_ext >&5
  9479. fi
  9480. rm -f conftest.err conftest.$ac_objext \
  9481. conftest$ac_exeext conftest.$ac_ext
  9482. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9483. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9484. 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"
  9485. else
  9486. if test "$host_cpu" = ia64; then
  9487. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9488. allow_undefined_flag_CXX="-z nodefs"
  9489. 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"
  9490. else
  9491. # Determine the default libpath from the value encoded in an empty executable.
  9492. cat >conftest.$ac_ext <<_ACEOF
  9493. /* confdefs.h. */
  9494. _ACEOF
  9495. cat confdefs.h >>conftest.$ac_ext
  9496. cat >>conftest.$ac_ext <<_ACEOF
  9497. /* end confdefs.h. */
  9498. int
  9499. main ()
  9500. {
  9501. ;
  9502. return 0;
  9503. }
  9504. _ACEOF
  9505. rm -f conftest.$ac_objext conftest$ac_exeext
  9506. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9507. (eval $ac_link) 2>conftest.er1
  9508. ac_status=$?
  9509. grep -v '^ *+' conftest.er1 >conftest.err
  9510. rm -f conftest.er1
  9511. cat conftest.err >&5
  9512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9513. (exit $ac_status); } &&
  9514. { ac_try='test -z "$ac_cxx_werror_flag"
  9515. || test ! -s conftest.err'
  9516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9517. (eval $ac_try) 2>&5
  9518. ac_status=$?
  9519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9520. (exit $ac_status); }; } &&
  9521. { ac_try='test -s conftest$ac_exeext'
  9522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9523. (eval $ac_try) 2>&5
  9524. ac_status=$?
  9525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9526. (exit $ac_status); }; }; then
  9527. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9528. }'`
  9529. # Check for a 64-bit object if we didn't find anything.
  9530. 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; }
  9531. }'`; fi
  9532. else
  9533. echo "$as_me: failed program was:" >&5
  9534. sed 's/^/| /' conftest.$ac_ext >&5
  9535. fi
  9536. rm -f conftest.err conftest.$ac_objext \
  9537. conftest$ac_exeext conftest.$ac_ext
  9538. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9539. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9540. # Warning - without using the other run time loading flags,
  9541. # -berok will link without error, but may produce a broken library.
  9542. no_undefined_flag_CXX=' ${wl}-bernotok'
  9543. allow_undefined_flag_CXX=' ${wl}-berok'
  9544. # Exported symbols can be pulled into shared objects from archives
  9545. whole_archive_flag_spec_CXX='$convenience'
  9546. archive_cmds_need_lc_CXX=yes
  9547. # This is similar to how AIX traditionally builds its shared libraries.
  9548. 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'
  9549. fi
  9550. fi
  9551. ;;
  9552. beos*)
  9553. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9554. allow_undefined_flag_CXX=unsupported
  9555. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9556. # support --undefined. This deserves some investigation. FIXME
  9557. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9558. else
  9559. ld_shlibs_CXX=no
  9560. fi
  9561. ;;
  9562. chorus*)
  9563. case $cc_basename in
  9564. *)
  9565. # FIXME: insert proper C++ library support
  9566. ld_shlibs_CXX=no
  9567. ;;
  9568. esac
  9569. ;;
  9570. cygwin* | mingw* | pw32*)
  9571. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9572. # as there is no search path for DLLs.
  9573. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9574. allow_undefined_flag_CXX=unsupported
  9575. always_export_symbols_CXX=no
  9576. enable_shared_with_static_runtimes_CXX=yes
  9577. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9578. 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'
  9579. # If the export-symbols file already is a .def file (1st line
  9580. # is EXPORTS), use it as is; otherwise, prepend...
  9581. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9582. cp $export_symbols $output_objdir/$soname.def;
  9583. else
  9584. echo EXPORTS > $output_objdir/$soname.def;
  9585. cat $export_symbols >> $output_objdir/$soname.def;
  9586. fi~
  9587. $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'
  9588. else
  9589. ld_shlibs_CXX=no
  9590. fi
  9591. ;;
  9592. darwin* | rhapsody*)
  9593. case $host_os in
  9594. rhapsody* | darwin1.[012])
  9595. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9596. ;;
  9597. *) # Darwin 1.3 on
  9598. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9599. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9600. else
  9601. case ${MACOSX_DEPLOYMENT_TARGET} in
  9602. 10.[012])
  9603. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9604. ;;
  9605. 10.*)
  9606. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9607. ;;
  9608. esac
  9609. fi
  9610. ;;
  9611. esac
  9612. archive_cmds_need_lc_CXX=no
  9613. hardcode_direct_CXX=no
  9614. hardcode_automatic_CXX=yes
  9615. hardcode_shlibpath_var_CXX=unsupported
  9616. whole_archive_flag_spec_CXX=''
  9617. link_all_deplibs_CXX=yes
  9618. if test "$GXX" = yes ; then
  9619. lt_int_apple_cc_single_mod=no
  9620. output_verbose_link_cmd='echo'
  9621. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9622. lt_int_apple_cc_single_mod=yes
  9623. fi
  9624. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9625. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9626. else
  9627. 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'
  9628. fi
  9629. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9630. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9631. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9632. 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}'
  9633. else
  9634. 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}'
  9635. fi
  9636. 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}'
  9637. else
  9638. case $cc_basename in
  9639. xlc*)
  9640. output_verbose_link_cmd='echo'
  9641. 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'
  9642. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9643. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9644. 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}'
  9645. 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}'
  9646. ;;
  9647. *)
  9648. ld_shlibs_CXX=no
  9649. ;;
  9650. esac
  9651. fi
  9652. ;;
  9653. dgux*)
  9654. case $cc_basename in
  9655. ec++*)
  9656. # FIXME: insert proper C++ library support
  9657. ld_shlibs_CXX=no
  9658. ;;
  9659. ghcx*)
  9660. # Green Hills C++ Compiler
  9661. # FIXME: insert proper C++ library support
  9662. ld_shlibs_CXX=no
  9663. ;;
  9664. *)
  9665. # FIXME: insert proper C++ library support
  9666. ld_shlibs_CXX=no
  9667. ;;
  9668. esac
  9669. ;;
  9670. freebsd[12]*)
  9671. # C++ shared libraries reported to be fairly broken before switch to ELF
  9672. ld_shlibs_CXX=no
  9673. ;;
  9674. freebsd-elf*)
  9675. archive_cmds_need_lc_CXX=no
  9676. ;;
  9677. freebsd* | kfreebsd*-gnu | dragonfly*)
  9678. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9679. # conventions
  9680. ld_shlibs_CXX=yes
  9681. ;;
  9682. gnu*)
  9683. ;;
  9684. hpux9*)
  9685. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9686. hardcode_libdir_separator_CXX=:
  9687. export_dynamic_flag_spec_CXX='${wl}-E'
  9688. hardcode_direct_CXX=yes
  9689. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9690. # but as the default
  9691. # location of the library.
  9692. case $cc_basename in
  9693. CC*)
  9694. # FIXME: insert proper C++ library support
  9695. ld_shlibs_CXX=no
  9696. ;;
  9697. aCC*)
  9698. 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'
  9699. # Commands to make compiler produce verbose output that lists
  9700. # what "hidden" libraries, object files and flags are used when
  9701. # linking a shared library.
  9702. #
  9703. # There doesn't appear to be a way to prevent this compiler from
  9704. # explicitly linking system object files so we need to strip them
  9705. # from the output so that they don't get included in the library
  9706. # dependencies.
  9707. 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'
  9708. ;;
  9709. *)
  9710. if test "$GXX" = yes; then
  9711. 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'
  9712. else
  9713. # FIXME: insert proper C++ library support
  9714. ld_shlibs_CXX=no
  9715. fi
  9716. ;;
  9717. esac
  9718. ;;
  9719. hpux10*|hpux11*)
  9720. if test $with_gnu_ld = no; then
  9721. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9722. hardcode_libdir_separator_CXX=:
  9723. case $host_cpu in
  9724. hppa*64*|ia64*)
  9725. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9726. ;;
  9727. *)
  9728. export_dynamic_flag_spec_CXX='${wl}-E'
  9729. ;;
  9730. esac
  9731. fi
  9732. case $host_cpu in
  9733. hppa*64*|ia64*)
  9734. hardcode_direct_CXX=no
  9735. hardcode_shlibpath_var_CXX=no
  9736. ;;
  9737. *)
  9738. hardcode_direct_CXX=yes
  9739. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9740. # but as the default
  9741. # location of the library.
  9742. ;;
  9743. esac
  9744. case $cc_basename in
  9745. CC*)
  9746. # FIXME: insert proper C++ library support
  9747. ld_shlibs_CXX=no
  9748. ;;
  9749. aCC*)
  9750. case $host_cpu in
  9751. hppa*64*)
  9752. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9753. ;;
  9754. ia64*)
  9755. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9756. ;;
  9757. *)
  9758. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9759. ;;
  9760. esac
  9761. # Commands to make compiler produce verbose output that lists
  9762. # what "hidden" libraries, object files and flags are used when
  9763. # linking a shared library.
  9764. #
  9765. # There doesn't appear to be a way to prevent this compiler from
  9766. # explicitly linking system object files so we need to strip them
  9767. # from the output so that they don't get included in the library
  9768. # dependencies.
  9769. 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'
  9770. ;;
  9771. *)
  9772. if test "$GXX" = yes; then
  9773. if test $with_gnu_ld = no; then
  9774. case $host_cpu in
  9775. hppa*64*)
  9776. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9777. ;;
  9778. ia64*)
  9779. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9780. ;;
  9781. *)
  9782. 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'
  9783. ;;
  9784. esac
  9785. fi
  9786. else
  9787. # FIXME: insert proper C++ library support
  9788. ld_shlibs_CXX=no
  9789. fi
  9790. ;;
  9791. esac
  9792. ;;
  9793. interix3*)
  9794. hardcode_direct_CXX=no
  9795. hardcode_shlibpath_var_CXX=no
  9796. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9797. export_dynamic_flag_spec_CXX='${wl}-E'
  9798. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9799. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9800. # default) and relocated if they conflict, which is a slow very memory
  9801. # consuming and fragmenting process. To avoid this, we pick a random,
  9802. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9803. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9804. 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'
  9805. 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'
  9806. ;;
  9807. irix5* | irix6*)
  9808. case $cc_basename in
  9809. CC*)
  9810. # SGI C++
  9811. 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'
  9812. # Archives containing C++ object files must be created using
  9813. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9814. # necessary to make sure instantiated templates are included
  9815. # in the archive.
  9816. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9817. ;;
  9818. *)
  9819. if test "$GXX" = yes; then
  9820. if test "$with_gnu_ld" = no; then
  9821. 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'
  9822. else
  9823. 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'
  9824. fi
  9825. fi
  9826. link_all_deplibs_CXX=yes
  9827. ;;
  9828. esac
  9829. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9830. hardcode_libdir_separator_CXX=:
  9831. ;;
  9832. linux*)
  9833. case $cc_basename in
  9834. KCC*)
  9835. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9836. # KCC will only create a shared library if the output file
  9837. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9838. # to its proper name (with version) after linking.
  9839. 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'
  9840. 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'
  9841. # Commands to make compiler produce verbose output that lists
  9842. # what "hidden" libraries, object files and flags are used when
  9843. # linking a shared library.
  9844. #
  9845. # There doesn't appear to be a way to prevent this compiler from
  9846. # explicitly linking system object files so we need to strip them
  9847. # from the output so that they don't get included in the library
  9848. # dependencies.
  9849. 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'
  9850. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9851. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9852. # Archives containing C++ object files must be created using
  9853. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9854. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9855. ;;
  9856. icpc*)
  9857. # Intel C++
  9858. with_gnu_ld=yes
  9859. # version 8.0 and above of icpc choke on multiply defined symbols
  9860. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9861. # earlier do not add the objects themselves.
  9862. case `$CC -V 2>&1` in
  9863. *"Version 7."*)
  9864. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9865. 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'
  9866. ;;
  9867. *) # Version 8.0 or newer
  9868. tmp_idyn=
  9869. case $host_cpu in
  9870. ia64*) tmp_idyn=' -i_dynamic';;
  9871. esac
  9872. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9873. 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'
  9874. ;;
  9875. esac
  9876. archive_cmds_need_lc_CXX=no
  9877. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9878. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9879. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9880. ;;
  9881. pgCC*)
  9882. # Portland Group C++ compiler
  9883. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9884. 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'
  9885. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9886. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9887. 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'
  9888. ;;
  9889. cxx*)
  9890. # Compaq C++
  9891. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9892. 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'
  9893. runpath_var=LD_RUN_PATH
  9894. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9895. hardcode_libdir_separator_CXX=:
  9896. # Commands to make compiler produce verbose output that lists
  9897. # what "hidden" libraries, object files and flags are used when
  9898. # linking a shared library.
  9899. #
  9900. # There doesn't appear to be a way to prevent this compiler from
  9901. # explicitly linking system object files so we need to strip them
  9902. # from the output so that they don't get included in the library
  9903. # dependencies.
  9904. 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'
  9905. ;;
  9906. esac
  9907. ;;
  9908. lynxos*)
  9909. # FIXME: insert proper C++ library support
  9910. ld_shlibs_CXX=no
  9911. ;;
  9912. m88k*)
  9913. # FIXME: insert proper C++ library support
  9914. ld_shlibs_CXX=no
  9915. ;;
  9916. mvs*)
  9917. case $cc_basename in
  9918. cxx*)
  9919. # FIXME: insert proper C++ library support
  9920. ld_shlibs_CXX=no
  9921. ;;
  9922. *)
  9923. # FIXME: insert proper C++ library support
  9924. ld_shlibs_CXX=no
  9925. ;;
  9926. esac
  9927. ;;
  9928. netbsd*)
  9929. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9930. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9931. wlarc=
  9932. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9933. hardcode_direct_CXX=yes
  9934. hardcode_shlibpath_var_CXX=no
  9935. fi
  9936. # Workaround some broken pre-1.5 toolchains
  9937. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9938. ;;
  9939. openbsd2*)
  9940. # C++ shared libraries are fairly broken
  9941. ld_shlibs_CXX=no
  9942. ;;
  9943. openbsd*)
  9944. hardcode_direct_CXX=yes
  9945. hardcode_shlibpath_var_CXX=no
  9946. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9947. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9948. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9949. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9950. export_dynamic_flag_spec_CXX='${wl}-E'
  9951. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9952. fi
  9953. output_verbose_link_cmd='echo'
  9954. ;;
  9955. osf3*)
  9956. case $cc_basename in
  9957. KCC*)
  9958. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9959. # KCC will only create a shared library if the output file
  9960. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9961. # to its proper name (with version) after linking.
  9962. 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'
  9963. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9964. hardcode_libdir_separator_CXX=:
  9965. # Archives containing C++ object files must be created using
  9966. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9967. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9968. ;;
  9969. RCC*)
  9970. # Rational C++ 2.4.1
  9971. # FIXME: insert proper C++ library support
  9972. ld_shlibs_CXX=no
  9973. ;;
  9974. cxx*)
  9975. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9976. 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'
  9977. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9978. hardcode_libdir_separator_CXX=:
  9979. # Commands to make compiler produce verbose output that lists
  9980. # what "hidden" libraries, object files and flags are used when
  9981. # linking a shared library.
  9982. #
  9983. # There doesn't appear to be a way to prevent this compiler from
  9984. # explicitly linking system object files so we need to strip them
  9985. # from the output so that they don't get included in the library
  9986. # dependencies.
  9987. 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'
  9988. ;;
  9989. *)
  9990. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9991. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9992. 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'
  9993. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9994. hardcode_libdir_separator_CXX=:
  9995. # Commands to make compiler produce verbose output that lists
  9996. # what "hidden" libraries, object files and flags are used when
  9997. # linking a shared library.
  9998. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9999. else
  10000. # FIXME: insert proper C++ library support
  10001. ld_shlibs_CXX=no
  10002. fi
  10003. ;;
  10004. esac
  10005. ;;
  10006. osf4* | osf5*)
  10007. case $cc_basename in
  10008. KCC*)
  10009. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10010. # KCC will only create a shared library if the output file
  10011. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10012. # to its proper name (with version) after linking.
  10013. 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'
  10014. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10015. hardcode_libdir_separator_CXX=:
  10016. # Archives containing C++ object files must be created using
  10017. # the KAI C++ compiler.
  10018. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10019. ;;
  10020. RCC*)
  10021. # Rational C++ 2.4.1
  10022. # FIXME: insert proper C++ library support
  10023. ld_shlibs_CXX=no
  10024. ;;
  10025. cxx*)
  10026. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10027. 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'
  10028. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10029. echo "-hidden">> $lib.exp~
  10030. $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~
  10031. $rm $lib.exp'
  10032. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10033. hardcode_libdir_separator_CXX=:
  10034. # Commands to make compiler produce verbose output that lists
  10035. # what "hidden" libraries, object files and flags are used when
  10036. # linking a shared library.
  10037. #
  10038. # There doesn't appear to be a way to prevent this compiler from
  10039. # explicitly linking system object files so we need to strip them
  10040. # from the output so that they don't get included in the library
  10041. # dependencies.
  10042. 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'
  10043. ;;
  10044. *)
  10045. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10046. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10047. 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'
  10048. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10049. hardcode_libdir_separator_CXX=:
  10050. # Commands to make compiler produce verbose output that lists
  10051. # what "hidden" libraries, object files and flags are used when
  10052. # linking a shared library.
  10053. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10054. else
  10055. # FIXME: insert proper C++ library support
  10056. ld_shlibs_CXX=no
  10057. fi
  10058. ;;
  10059. esac
  10060. ;;
  10061. psos*)
  10062. # FIXME: insert proper C++ library support
  10063. ld_shlibs_CXX=no
  10064. ;;
  10065. sunos4*)
  10066. case $cc_basename in
  10067. CC*)
  10068. # Sun C++ 4.x
  10069. # FIXME: insert proper C++ library support
  10070. ld_shlibs_CXX=no
  10071. ;;
  10072. lcc*)
  10073. # Lucid
  10074. # FIXME: insert proper C++ library support
  10075. ld_shlibs_CXX=no
  10076. ;;
  10077. *)
  10078. # FIXME: insert proper C++ library support
  10079. ld_shlibs_CXX=no
  10080. ;;
  10081. esac
  10082. ;;
  10083. solaris*)
  10084. case $cc_basename in
  10085. CC*)
  10086. # Sun C++ 4.2, 5.x and Centerline C++
  10087. archive_cmds_need_lc_CXX=yes
  10088. no_undefined_flag_CXX=' -zdefs'
  10089. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10090. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10091. $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'
  10092. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10093. hardcode_shlibpath_var_CXX=no
  10094. case $host_os in
  10095. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10096. *)
  10097. # The C++ compiler is used as linker so we must use $wl
  10098. # flag to pass the commands to the underlying system
  10099. # linker. We must also pass each convience library through
  10100. # to the system linker between allextract/defaultextract.
  10101. # The C++ compiler will combine linker options so we
  10102. # cannot just pass the convience library names through
  10103. # without $wl.
  10104. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10105. 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'
  10106. ;;
  10107. esac
  10108. link_all_deplibs_CXX=yes
  10109. output_verbose_link_cmd='echo'
  10110. # Archives containing C++ object files must be created using
  10111. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10112. # necessary to make sure instantiated templates are included
  10113. # in the archive.
  10114. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10115. ;;
  10116. gcx*)
  10117. # Green Hills C++ Compiler
  10118. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10119. # The C++ compiler must be used to create the archive.
  10120. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10121. ;;
  10122. *)
  10123. # GNU C++ compiler with Solaris linker
  10124. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10125. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10126. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10127. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10128. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10129. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10130. # Commands to make compiler produce verbose output that lists
  10131. # what "hidden" libraries, object files and flags are used when
  10132. # linking a shared library.
  10133. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10134. else
  10135. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10136. # platform.
  10137. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10138. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10139. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10140. # Commands to make compiler produce verbose output that lists
  10141. # what "hidden" libraries, object files and flags are used when
  10142. # linking a shared library.
  10143. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10144. fi
  10145. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10146. fi
  10147. ;;
  10148. esac
  10149. ;;
  10150. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10151. no_undefined_flag_CXX='${wl}-z,text'
  10152. archive_cmds_need_lc_CXX=no
  10153. hardcode_shlibpath_var_CXX=no
  10154. runpath_var='LD_RUN_PATH'
  10155. case $cc_basename in
  10156. CC*)
  10157. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10158. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10159. ;;
  10160. *)
  10161. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10162. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10163. ;;
  10164. esac
  10165. ;;
  10166. sysv5* | sco3.2v5* | sco5v6*)
  10167. # Note: We can NOT use -z defs as we might desire, because we do not
  10168. # link with -lc, and that would cause any symbols used from libc to
  10169. # always be unresolved, which means just about no library would
  10170. # ever link correctly. If we're not using GNU ld we use -z text
  10171. # though, which does catch some bad symbols but isn't as heavy-handed
  10172. # as -z defs.
  10173. # For security reasons, it is highly recommended that you always
  10174. # use absolute paths for naming shared libraries, and exclude the
  10175. # DT_RUNPATH tag from executables and libraries. But doing so
  10176. # requires that you compile everything twice, which is a pain.
  10177. # So that behaviour is only enabled if SCOABSPATH is set to a
  10178. # non-empty value in the environment. Most likely only useful for
  10179. # creating official distributions of packages.
  10180. # This is a hack until libtool officially supports absolute path
  10181. # names for shared libraries.
  10182. no_undefined_flag_CXX='${wl}-z,text'
  10183. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10184. archive_cmds_need_lc_CXX=no
  10185. hardcode_shlibpath_var_CXX=no
  10186. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10187. hardcode_libdir_separator_CXX=':'
  10188. link_all_deplibs_CXX=yes
  10189. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10190. runpath_var='LD_RUN_PATH'
  10191. case $cc_basename in
  10192. CC*)
  10193. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10194. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10195. ;;
  10196. *)
  10197. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10198. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10199. ;;
  10200. esac
  10201. ;;
  10202. tandem*)
  10203. case $cc_basename in
  10204. NCC*)
  10205. # NonStop-UX NCC 3.20
  10206. # FIXME: insert proper C++ library support
  10207. ld_shlibs_CXX=no
  10208. ;;
  10209. *)
  10210. # FIXME: insert proper C++ library support
  10211. ld_shlibs_CXX=no
  10212. ;;
  10213. esac
  10214. ;;
  10215. vxworks*)
  10216. # FIXME: insert proper C++ library support
  10217. ld_shlibs_CXX=no
  10218. ;;
  10219. *)
  10220. # FIXME: insert proper C++ library support
  10221. ld_shlibs_CXX=no
  10222. ;;
  10223. esac
  10224. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10225. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10226. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10227. GCC_CXX="$GXX"
  10228. LD_CXX="$LD"
  10229. cat > conftest.$ac_ext <<EOF
  10230. class Foo
  10231. {
  10232. public:
  10233. Foo (void) { a = 0; }
  10234. private:
  10235. int a;
  10236. };
  10237. EOF
  10238. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10239. (eval $ac_compile) 2>&5
  10240. ac_status=$?
  10241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10242. (exit $ac_status); }; then
  10243. # Parse the compiler output and extract the necessary
  10244. # objects, libraries and library flags.
  10245. # Sentinel used to keep track of whether or not we are before
  10246. # the conftest object file.
  10247. pre_test_object_deps_done=no
  10248. # The `*' in the case matches for architectures that use `case' in
  10249. # $output_verbose_cmd can trigger glob expansion during the loop
  10250. # eval without this substitution.
  10251. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10252. for p in `eval $output_verbose_link_cmd`; do
  10253. case $p in
  10254. -L* | -R* | -l*)
  10255. # Some compilers place space between "-{L,R}" and the path.
  10256. # Remove the space.
  10257. if test $p = "-L" \
  10258. || test $p = "-R"; then
  10259. prev=$p
  10260. continue
  10261. else
  10262. prev=
  10263. fi
  10264. if test "$pre_test_object_deps_done" = no; then
  10265. case $p in
  10266. -L* | -R*)
  10267. # Internal compiler library paths should come after those
  10268. # provided the user. The postdeps already come after the
  10269. # user supplied libs so there is no need to process them.
  10270. if test -z "$compiler_lib_search_path_CXX"; then
  10271. compiler_lib_search_path_CXX="${prev}${p}"
  10272. else
  10273. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10274. fi
  10275. ;;
  10276. # The "-l" case would never come before the object being
  10277. # linked, so don't bother handling this case.
  10278. esac
  10279. else
  10280. if test -z "$postdeps_CXX"; then
  10281. postdeps_CXX="${prev}${p}"
  10282. else
  10283. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10284. fi
  10285. fi
  10286. ;;
  10287. *.$objext)
  10288. # This assumes that the test object file only shows up
  10289. # once in the compiler output.
  10290. if test "$p" = "conftest.$objext"; then
  10291. pre_test_object_deps_done=yes
  10292. continue
  10293. fi
  10294. if test "$pre_test_object_deps_done" = no; then
  10295. if test -z "$predep_objects_CXX"; then
  10296. predep_objects_CXX="$p"
  10297. else
  10298. predep_objects_CXX="$predep_objects_CXX $p"
  10299. fi
  10300. else
  10301. if test -z "$postdep_objects_CXX"; then
  10302. postdep_objects_CXX="$p"
  10303. else
  10304. postdep_objects_CXX="$postdep_objects_CXX $p"
  10305. fi
  10306. fi
  10307. ;;
  10308. *) ;; # Ignore the rest.
  10309. esac
  10310. done
  10311. # Clean up.
  10312. rm -f a.out a.exe
  10313. else
  10314. echo "libtool.m4: error: problem compiling CXX test program"
  10315. fi
  10316. $rm -f confest.$objext
  10317. # PORTME: override above test on systems where it is broken
  10318. case $host_os in
  10319. interix3*)
  10320. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10321. # hack all around it, let's just trust "g++" to DTRT.
  10322. predep_objects_CXX=
  10323. postdep_objects_CXX=
  10324. postdeps_CXX=
  10325. ;;
  10326. solaris*)
  10327. case $cc_basename in
  10328. CC*)
  10329. # Adding this requires a known-good setup of shared libraries for
  10330. # Sun compiler versions before 5.6, else PIC objects from an old
  10331. # archive will be linked into the output, leading to subtle bugs.
  10332. postdeps_CXX='-lCstd -lCrun'
  10333. ;;
  10334. esac
  10335. ;;
  10336. esac
  10337. case " $postdeps_CXX " in
  10338. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10339. esac
  10340. lt_prog_compiler_wl_CXX=
  10341. lt_prog_compiler_pic_CXX=
  10342. lt_prog_compiler_static_CXX=
  10343. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10344. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10345. # C++ specific cases for pic, static, wl, etc.
  10346. if test "$GXX" = yes; then
  10347. lt_prog_compiler_wl_CXX='-Wl,'
  10348. lt_prog_compiler_static_CXX='-static'
  10349. case $host_os in
  10350. aix*)
  10351. # All AIX code is PIC.
  10352. if test "$host_cpu" = ia64; then
  10353. # AIX 5 now supports IA64 processor
  10354. lt_prog_compiler_static_CXX='-Bstatic'
  10355. fi
  10356. ;;
  10357. amigaos*)
  10358. # FIXME: we need at least 68020 code to build shared libraries, but
  10359. # adding the `-m68020' flag to GCC prevents building anything better,
  10360. # like `-m68040'.
  10361. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10362. ;;
  10363. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10364. # PIC is the default for these OSes.
  10365. ;;
  10366. mingw* | os2* | pw32*)
  10367. # This hack is so that the source file can tell whether it is being
  10368. # built for inclusion in a dll (and should export symbols for example).
  10369. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10370. ;;
  10371. darwin* | rhapsody*)
  10372. # PIC is the default on this platform
  10373. # Common symbols not allowed in MH_DYLIB files
  10374. lt_prog_compiler_pic_CXX='-fno-common'
  10375. ;;
  10376. *djgpp*)
  10377. # DJGPP does not support shared libraries at all
  10378. lt_prog_compiler_pic_CXX=
  10379. ;;
  10380. interix3*)
  10381. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10382. # Instead, we relocate shared libraries at runtime.
  10383. ;;
  10384. sysv4*MP*)
  10385. if test -d /usr/nec; then
  10386. lt_prog_compiler_pic_CXX=-Kconform_pic
  10387. fi
  10388. ;;
  10389. hpux*)
  10390. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10391. # not for PA HP-UX.
  10392. case $host_cpu in
  10393. hppa*64*|ia64*)
  10394. ;;
  10395. *)
  10396. lt_prog_compiler_pic_CXX='-fPIC'
  10397. ;;
  10398. esac
  10399. ;;
  10400. *)
  10401. lt_prog_compiler_pic_CXX='-fPIC'
  10402. ;;
  10403. esac
  10404. else
  10405. case $host_os in
  10406. aix4* | aix5*)
  10407. # All AIX code is PIC.
  10408. if test "$host_cpu" = ia64; then
  10409. # AIX 5 now supports IA64 processor
  10410. lt_prog_compiler_static_CXX='-Bstatic'
  10411. else
  10412. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10413. fi
  10414. ;;
  10415. chorus*)
  10416. case $cc_basename in
  10417. cxch68*)
  10418. # Green Hills C++ Compiler
  10419. # _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"
  10420. ;;
  10421. esac
  10422. ;;
  10423. darwin*)
  10424. # PIC is the default on this platform
  10425. # Common symbols not allowed in MH_DYLIB files
  10426. case $cc_basename in
  10427. xlc*)
  10428. lt_prog_compiler_pic_CXX='-qnocommon'
  10429. lt_prog_compiler_wl_CXX='-Wl,'
  10430. ;;
  10431. esac
  10432. ;;
  10433. dgux*)
  10434. case $cc_basename in
  10435. ec++*)
  10436. lt_prog_compiler_pic_CXX='-KPIC'
  10437. ;;
  10438. ghcx*)
  10439. # Green Hills C++ Compiler
  10440. lt_prog_compiler_pic_CXX='-pic'
  10441. ;;
  10442. *)
  10443. ;;
  10444. esac
  10445. ;;
  10446. freebsd* | kfreebsd*-gnu | dragonfly*)
  10447. # FreeBSD uses GNU C++
  10448. ;;
  10449. hpux9* | hpux10* | hpux11*)
  10450. case $cc_basename in
  10451. CC*)
  10452. lt_prog_compiler_wl_CXX='-Wl,'
  10453. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10454. if test "$host_cpu" != ia64; then
  10455. lt_prog_compiler_pic_CXX='+Z'
  10456. fi
  10457. ;;
  10458. aCC*)
  10459. lt_prog_compiler_wl_CXX='-Wl,'
  10460. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10461. case $host_cpu in
  10462. hppa*64*|ia64*)
  10463. # +Z the default
  10464. ;;
  10465. *)
  10466. lt_prog_compiler_pic_CXX='+Z'
  10467. ;;
  10468. esac
  10469. ;;
  10470. *)
  10471. ;;
  10472. esac
  10473. ;;
  10474. interix*)
  10475. # This is c89, which is MS Visual C++ (no shared libs)
  10476. # Anyone wants to do a port?
  10477. ;;
  10478. irix5* | irix6* | nonstopux*)
  10479. case $cc_basename in
  10480. CC*)
  10481. lt_prog_compiler_wl_CXX='-Wl,'
  10482. lt_prog_compiler_static_CXX='-non_shared'
  10483. # CC pic flag -KPIC is the default.
  10484. ;;
  10485. *)
  10486. ;;
  10487. esac
  10488. ;;
  10489. linux*)
  10490. case $cc_basename in
  10491. KCC*)
  10492. # KAI C++ Compiler
  10493. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10494. lt_prog_compiler_pic_CXX='-fPIC'
  10495. ;;
  10496. icpc* | ecpc*)
  10497. # Intel C++
  10498. lt_prog_compiler_wl_CXX='-Wl,'
  10499. lt_prog_compiler_pic_CXX='-KPIC'
  10500. lt_prog_compiler_static_CXX='-static'
  10501. ;;
  10502. pgCC*)
  10503. # Portland Group C++ compiler.
  10504. lt_prog_compiler_wl_CXX='-Wl,'
  10505. lt_prog_compiler_pic_CXX='-fpic'
  10506. lt_prog_compiler_static_CXX='-Bstatic'
  10507. ;;
  10508. cxx*)
  10509. # Compaq C++
  10510. # Make sure the PIC flag is empty. It appears that all Alpha
  10511. # Linux and Compaq Tru64 Unix objects are PIC.
  10512. lt_prog_compiler_pic_CXX=
  10513. lt_prog_compiler_static_CXX='-non_shared'
  10514. ;;
  10515. *)
  10516. ;;
  10517. esac
  10518. ;;
  10519. lynxos*)
  10520. ;;
  10521. m88k*)
  10522. ;;
  10523. mvs*)
  10524. case $cc_basename in
  10525. cxx*)
  10526. lt_prog_compiler_pic_CXX='-W c,exportall'
  10527. ;;
  10528. *)
  10529. ;;
  10530. esac
  10531. ;;
  10532. netbsd*)
  10533. ;;
  10534. osf3* | osf4* | osf5*)
  10535. case $cc_basename in
  10536. KCC*)
  10537. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10538. ;;
  10539. RCC*)
  10540. # Rational C++ 2.4.1
  10541. lt_prog_compiler_pic_CXX='-pic'
  10542. ;;
  10543. cxx*)
  10544. # Digital/Compaq C++
  10545. lt_prog_compiler_wl_CXX='-Wl,'
  10546. # Make sure the PIC flag is empty. It appears that all Alpha
  10547. # Linux and Compaq Tru64 Unix objects are PIC.
  10548. lt_prog_compiler_pic_CXX=
  10549. lt_prog_compiler_static_CXX='-non_shared'
  10550. ;;
  10551. *)
  10552. ;;
  10553. esac
  10554. ;;
  10555. psos*)
  10556. ;;
  10557. solaris*)
  10558. case $cc_basename in
  10559. CC*)
  10560. # Sun C++ 4.2, 5.x and Centerline C++
  10561. lt_prog_compiler_pic_CXX='-KPIC'
  10562. lt_prog_compiler_static_CXX='-Bstatic'
  10563. lt_prog_compiler_wl_CXX='-Qoption ld '
  10564. ;;
  10565. gcx*)
  10566. # Green Hills C++ Compiler
  10567. lt_prog_compiler_pic_CXX='-PIC'
  10568. ;;
  10569. *)
  10570. ;;
  10571. esac
  10572. ;;
  10573. sunos4*)
  10574. case $cc_basename in
  10575. CC*)
  10576. # Sun C++ 4.x
  10577. lt_prog_compiler_pic_CXX='-pic'
  10578. lt_prog_compiler_static_CXX='-Bstatic'
  10579. ;;
  10580. lcc*)
  10581. # Lucid
  10582. lt_prog_compiler_pic_CXX='-pic'
  10583. ;;
  10584. *)
  10585. ;;
  10586. esac
  10587. ;;
  10588. tandem*)
  10589. case $cc_basename in
  10590. NCC*)
  10591. # NonStop-UX NCC 3.20
  10592. lt_prog_compiler_pic_CXX='-KPIC'
  10593. ;;
  10594. *)
  10595. ;;
  10596. esac
  10597. ;;
  10598. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10599. case $cc_basename in
  10600. CC*)
  10601. lt_prog_compiler_wl_CXX='-Wl,'
  10602. lt_prog_compiler_pic_CXX='-KPIC'
  10603. lt_prog_compiler_static_CXX='-Bstatic'
  10604. ;;
  10605. esac
  10606. ;;
  10607. vxworks*)
  10608. ;;
  10609. *)
  10610. lt_prog_compiler_can_build_shared_CXX=no
  10611. ;;
  10612. esac
  10613. fi
  10614. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10615. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10616. #
  10617. # Check to make sure the PIC flag actually works.
  10618. #
  10619. if test -n "$lt_prog_compiler_pic_CXX"; then
  10620. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10621. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10622. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10623. echo $ECHO_N "(cached) $ECHO_C" >&6
  10624. else
  10625. lt_prog_compiler_pic_works_CXX=no
  10626. ac_outfile=conftest.$ac_objext
  10627. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10628. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10629. # Insert the option either (1) after the last *FLAGS variable, or
  10630. # (2) before a word containing "conftest.", or (3) at the end.
  10631. # Note that $ac_compile itself does not contain backslashes and begins
  10632. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10633. # The option is referenced via a variable to avoid confusing sed.
  10634. lt_compile=`echo "$ac_compile" | $SED \
  10635. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10636. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10637. -e 's:$: $lt_compiler_flag:'`
  10638. (eval echo "\"\$as_me:11771: $lt_compile\"" >&5)
  10639. (eval "$lt_compile" 2>conftest.err)
  10640. ac_status=$?
  10641. cat conftest.err >&5
  10642. echo "$as_me:11775: \$? = $ac_status" >&5
  10643. if (exit $ac_status) && test -s "$ac_outfile"; then
  10644. # The compiler can only warn and ignore the option if not recognized
  10645. # So say no if there are warnings other than the usual output.
  10646. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10647. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10648. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10649. lt_prog_compiler_pic_works_CXX=yes
  10650. fi
  10651. fi
  10652. $rm conftest*
  10653. fi
  10654. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10655. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10656. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10657. case $lt_prog_compiler_pic_CXX in
  10658. "" | " "*) ;;
  10659. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10660. esac
  10661. else
  10662. lt_prog_compiler_pic_CXX=
  10663. lt_prog_compiler_can_build_shared_CXX=no
  10664. fi
  10665. fi
  10666. case $host_os in
  10667. # For platforms which do not support PIC, -DPIC is meaningless:
  10668. *djgpp*)
  10669. lt_prog_compiler_pic_CXX=
  10670. ;;
  10671. *)
  10672. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10673. ;;
  10674. esac
  10675. #
  10676. # Check to make sure the static flag actually works.
  10677. #
  10678. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10679. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10680. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10681. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10682. echo $ECHO_N "(cached) $ECHO_C" >&6
  10683. else
  10684. lt_prog_compiler_static_works_CXX=no
  10685. save_LDFLAGS="$LDFLAGS"
  10686. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10687. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10688. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10689. # The linker can only warn and ignore the option if not recognized
  10690. # So say no if there are warnings
  10691. if test -s conftest.err; then
  10692. # Append any errors to the config.log.
  10693. cat conftest.err 1>&5
  10694. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10695. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10696. if diff conftest.exp conftest.er2 >/dev/null; then
  10697. lt_prog_compiler_static_works_CXX=yes
  10698. fi
  10699. else
  10700. lt_prog_compiler_static_works_CXX=yes
  10701. fi
  10702. fi
  10703. $rm conftest*
  10704. LDFLAGS="$save_LDFLAGS"
  10705. fi
  10706. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10707. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10708. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10709. :
  10710. else
  10711. lt_prog_compiler_static_CXX=
  10712. fi
  10713. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10714. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10715. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10716. echo $ECHO_N "(cached) $ECHO_C" >&6
  10717. else
  10718. lt_cv_prog_compiler_c_o_CXX=no
  10719. $rm -r conftest 2>/dev/null
  10720. mkdir conftest
  10721. cd conftest
  10722. mkdir out
  10723. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10724. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10725. # Insert the option either (1) after the last *FLAGS variable, or
  10726. # (2) before a word containing "conftest.", or (3) at the end.
  10727. # Note that $ac_compile itself does not contain backslashes and begins
  10728. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10729. lt_compile=`echo "$ac_compile" | $SED \
  10730. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10731. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10732. -e 's:$: $lt_compiler_flag:'`
  10733. (eval echo "\"\$as_me:11875: $lt_compile\"" >&5)
  10734. (eval "$lt_compile" 2>out/conftest.err)
  10735. ac_status=$?
  10736. cat out/conftest.err >&5
  10737. echo "$as_me:11879: \$? = $ac_status" >&5
  10738. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10739. then
  10740. # The compiler can only warn and ignore the option if not recognized
  10741. # So say no if there are warnings
  10742. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10743. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10744. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10745. lt_cv_prog_compiler_c_o_CXX=yes
  10746. fi
  10747. fi
  10748. chmod u+w . 2>&5
  10749. $rm conftest*
  10750. # SGI C++ compiler will create directory out/ii_files/ for
  10751. # template instantiation
  10752. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10753. $rm out/* && rmdir out
  10754. cd ..
  10755. rmdir conftest
  10756. $rm conftest*
  10757. fi
  10758. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10759. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10760. hard_links="nottested"
  10761. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10762. # do not overwrite the value of need_locks provided by the user
  10763. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10764. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10765. hard_links=yes
  10766. $rm conftest*
  10767. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10768. touch conftest.a
  10769. ln conftest.a conftest.b 2>&5 || hard_links=no
  10770. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10771. echo "$as_me:$LINENO: result: $hard_links" >&5
  10772. echo "${ECHO_T}$hard_links" >&6
  10773. if test "$hard_links" = no; then
  10774. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10775. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10776. need_locks=warn
  10777. fi
  10778. else
  10779. need_locks=no
  10780. fi
  10781. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10782. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10783. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10784. case $host_os in
  10785. aix4* | aix5*)
  10786. # If we're using GNU nm, then we don't want the "-C" option.
  10787. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10788. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10789. 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'
  10790. else
  10791. 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'
  10792. fi
  10793. ;;
  10794. pw32*)
  10795. export_symbols_cmds_CXX="$ltdll_cmds"
  10796. ;;
  10797. cygwin* | mingw*)
  10798. 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'
  10799. ;;
  10800. *)
  10801. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10802. ;;
  10803. esac
  10804. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10805. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10806. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10807. #
  10808. # Do we need to explicitly link libc?
  10809. #
  10810. case "x$archive_cmds_need_lc_CXX" in
  10811. x|xyes)
  10812. # Assume -lc should be added
  10813. archive_cmds_need_lc_CXX=yes
  10814. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10815. case $archive_cmds_CXX in
  10816. *'~'*)
  10817. # FIXME: we may have to deal with multi-command sequences.
  10818. ;;
  10819. '$CC '*)
  10820. # Test whether the compiler implicitly links with -lc since on some
  10821. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10822. # to ld, don't add -lc before -lgcc.
  10823. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10824. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10825. $rm conftest*
  10826. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10827. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10828. (eval $ac_compile) 2>&5
  10829. ac_status=$?
  10830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10831. (exit $ac_status); } 2>conftest.err; then
  10832. soname=conftest
  10833. lib=conftest
  10834. libobjs=conftest.$ac_objext
  10835. deplibs=
  10836. wl=$lt_prog_compiler_wl_CXX
  10837. pic_flag=$lt_prog_compiler_pic_CXX
  10838. compiler_flags=-v
  10839. linker_flags=-v
  10840. verstring=
  10841. output_objdir=.
  10842. libname=conftest
  10843. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10844. allow_undefined_flag_CXX=
  10845. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10846. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10847. ac_status=$?
  10848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10849. (exit $ac_status); }
  10850. then
  10851. archive_cmds_need_lc_CXX=no
  10852. else
  10853. archive_cmds_need_lc_CXX=yes
  10854. fi
  10855. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10856. else
  10857. cat conftest.err 1>&5
  10858. fi
  10859. $rm conftest*
  10860. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10861. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10862. ;;
  10863. esac
  10864. fi
  10865. ;;
  10866. esac
  10867. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10868. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10869. library_names_spec=
  10870. libname_spec='lib$name'
  10871. soname_spec=
  10872. shrext_cmds=".so"
  10873. postinstall_cmds=
  10874. postuninstall_cmds=
  10875. finish_cmds=
  10876. finish_eval=
  10877. shlibpath_var=
  10878. shlibpath_overrides_runpath=unknown
  10879. version_type=none
  10880. dynamic_linker="$host_os ld.so"
  10881. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10882. if test "$GCC" = yes; then
  10883. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10884. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10885. # if the path contains ";" then we assume it to be the separator
  10886. # otherwise default to the standard path separator (i.e. ":") - it is
  10887. # assumed that no part of a normal pathname contains ";" but that should
  10888. # okay in the real world where ";" in dirpaths is itself problematic.
  10889. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10890. else
  10891. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10892. fi
  10893. else
  10894. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10895. fi
  10896. need_lib_prefix=unknown
  10897. hardcode_into_libs=no
  10898. # when you set need_version to no, make sure it does not cause -set_version
  10899. # flags to be left without arguments
  10900. need_version=unknown
  10901. case $host_os in
  10902. aix3*)
  10903. version_type=linux
  10904. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10905. shlibpath_var=LIBPATH
  10906. # AIX 3 has no versioning support, so we append a major version to the name.
  10907. soname_spec='${libname}${release}${shared_ext}$major'
  10908. ;;
  10909. aix4* | aix5*)
  10910. version_type=linux
  10911. need_lib_prefix=no
  10912. need_version=no
  10913. hardcode_into_libs=yes
  10914. if test "$host_cpu" = ia64; then
  10915. # AIX 5 supports IA64
  10916. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10917. shlibpath_var=LD_LIBRARY_PATH
  10918. else
  10919. # With GCC up to 2.95.x, collect2 would create an import file
  10920. # for dependence libraries. The import file would start with
  10921. # the line `#! .'. This would cause the generated library to
  10922. # depend on `.', always an invalid library. This was fixed in
  10923. # development snapshots of GCC prior to 3.0.
  10924. case $host_os in
  10925. aix4 | aix4.[01] | aix4.[01].*)
  10926. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10927. echo ' yes '
  10928. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10929. :
  10930. else
  10931. can_build_shared=no
  10932. fi
  10933. ;;
  10934. esac
  10935. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10936. # soname into executable. Probably we can add versioning support to
  10937. # collect2, so additional links can be useful in future.
  10938. if test "$aix_use_runtimelinking" = yes; then
  10939. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10940. # instead of lib<name>.a to let people know that these are not
  10941. # typical AIX shared libraries.
  10942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10943. else
  10944. # We preserve .a as extension for shared libraries through AIX4.2
  10945. # and later when we are not doing run time linking.
  10946. library_names_spec='${libname}${release}.a $libname.a'
  10947. soname_spec='${libname}${release}${shared_ext}$major'
  10948. fi
  10949. shlibpath_var=LIBPATH
  10950. fi
  10951. ;;
  10952. amigaos*)
  10953. library_names_spec='$libname.ixlibrary $libname.a'
  10954. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10955. 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'
  10956. ;;
  10957. beos*)
  10958. library_names_spec='${libname}${shared_ext}'
  10959. dynamic_linker="$host_os ld.so"
  10960. shlibpath_var=LIBRARY_PATH
  10961. ;;
  10962. bsdi[45]*)
  10963. version_type=linux
  10964. need_version=no
  10965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10966. soname_spec='${libname}${release}${shared_ext}$major'
  10967. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10968. shlibpath_var=LD_LIBRARY_PATH
  10969. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10970. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10971. # the default ld.so.conf also contains /usr/contrib/lib and
  10972. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10973. # libtool to hard-code these into programs
  10974. ;;
  10975. cygwin* | mingw* | pw32*)
  10976. version_type=windows
  10977. shrext_cmds=".dll"
  10978. need_version=no
  10979. need_lib_prefix=no
  10980. case $GCC,$host_os in
  10981. yes,cygwin* | yes,mingw* | yes,pw32*)
  10982. library_names_spec='$libname.dll.a'
  10983. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10984. postinstall_cmds='base_file=`basename \${file}`~
  10985. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10986. dldir=$destdir/`dirname \$dlpath`~
  10987. test -d \$dldir || mkdir -p \$dldir~
  10988. $install_prog $dir/$dlname \$dldir/$dlname~
  10989. chmod a+x \$dldir/$dlname'
  10990. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10991. dlpath=$dir/\$dldll~
  10992. $rm \$dlpath'
  10993. shlibpath_overrides_runpath=yes
  10994. case $host_os in
  10995. cygwin*)
  10996. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10997. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10998. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10999. ;;
  11000. mingw*)
  11001. # MinGW DLLs use traditional 'lib' prefix
  11002. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11003. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11004. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11005. # It is most probably a Windows format PATH printed by
  11006. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11007. # path with ; separators, and with drive letters. We can handle the
  11008. # drive letters (cygwin fileutils understands them), so leave them,
  11009. # especially as we might pass files found there to a mingw objdump,
  11010. # which wouldn't understand a cygwinified path. Ahh.
  11011. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11012. else
  11013. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11014. fi
  11015. ;;
  11016. pw32*)
  11017. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11018. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11019. ;;
  11020. esac
  11021. ;;
  11022. *)
  11023. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11024. ;;
  11025. esac
  11026. dynamic_linker='Win32 ld.exe'
  11027. # FIXME: first we should search . and the directory the executable is in
  11028. shlibpath_var=PATH
  11029. ;;
  11030. darwin* | rhapsody*)
  11031. dynamic_linker="$host_os dyld"
  11032. version_type=darwin
  11033. need_lib_prefix=no
  11034. need_version=no
  11035. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11036. soname_spec='${libname}${release}${major}$shared_ext'
  11037. shlibpath_overrides_runpath=yes
  11038. shlibpath_var=DYLD_LIBRARY_PATH
  11039. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11040. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11041. if test "$GCC" = yes; then
  11042. 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"`
  11043. else
  11044. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11045. fi
  11046. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11047. ;;
  11048. dgux*)
  11049. version_type=linux
  11050. need_lib_prefix=no
  11051. need_version=no
  11052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11053. soname_spec='${libname}${release}${shared_ext}$major'
  11054. shlibpath_var=LD_LIBRARY_PATH
  11055. ;;
  11056. freebsd1*)
  11057. dynamic_linker=no
  11058. ;;
  11059. kfreebsd*-gnu)
  11060. version_type=linux
  11061. need_lib_prefix=no
  11062. need_version=no
  11063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11064. soname_spec='${libname}${release}${shared_ext}$major'
  11065. shlibpath_var=LD_LIBRARY_PATH
  11066. shlibpath_overrides_runpath=no
  11067. hardcode_into_libs=yes
  11068. dynamic_linker='GNU ld.so'
  11069. ;;
  11070. freebsd* | dragonfly*)
  11071. # DragonFly does not have aout. When/if they implement a new
  11072. # versioning mechanism, adjust this.
  11073. if test -x /usr/bin/objformat; then
  11074. objformat=`/usr/bin/objformat`
  11075. else
  11076. case $host_os in
  11077. freebsd[123]*) objformat=aout ;;
  11078. *) objformat=elf ;;
  11079. esac
  11080. fi
  11081. version_type=freebsd-$objformat
  11082. case $version_type in
  11083. freebsd-elf*)
  11084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11085. need_version=no
  11086. need_lib_prefix=no
  11087. ;;
  11088. freebsd-*)
  11089. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11090. need_version=yes
  11091. ;;
  11092. esac
  11093. shlibpath_var=LD_LIBRARY_PATH
  11094. case $host_os in
  11095. freebsd2*)
  11096. shlibpath_overrides_runpath=yes
  11097. ;;
  11098. freebsd3.[01]* | freebsdelf3.[01]*)
  11099. shlibpath_overrides_runpath=yes
  11100. hardcode_into_libs=yes
  11101. ;;
  11102. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11103. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11104. shlibpath_overrides_runpath=no
  11105. hardcode_into_libs=yes
  11106. ;;
  11107. freebsd*) # from 4.6 on
  11108. shlibpath_overrides_runpath=yes
  11109. hardcode_into_libs=yes
  11110. ;;
  11111. esac
  11112. ;;
  11113. gnu*)
  11114. version_type=linux
  11115. need_lib_prefix=no
  11116. need_version=no
  11117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11118. soname_spec='${libname}${release}${shared_ext}$major'
  11119. shlibpath_var=LD_LIBRARY_PATH
  11120. hardcode_into_libs=yes
  11121. ;;
  11122. hpux9* | hpux10* | hpux11*)
  11123. # Give a soname corresponding to the major version so that dld.sl refuses to
  11124. # link against other versions.
  11125. version_type=sunos
  11126. need_lib_prefix=no
  11127. need_version=no
  11128. case $host_cpu in
  11129. ia64*)
  11130. shrext_cmds='.so'
  11131. hardcode_into_libs=yes
  11132. dynamic_linker="$host_os dld.so"
  11133. shlibpath_var=LD_LIBRARY_PATH
  11134. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11136. soname_spec='${libname}${release}${shared_ext}$major'
  11137. if test "X$HPUX_IA64_MODE" = X32; then
  11138. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11139. else
  11140. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11141. fi
  11142. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11143. ;;
  11144. hppa*64*)
  11145. shrext_cmds='.sl'
  11146. hardcode_into_libs=yes
  11147. dynamic_linker="$host_os dld.sl"
  11148. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11153. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11154. ;;
  11155. *)
  11156. shrext_cmds='.sl'
  11157. dynamic_linker="$host_os dld.sl"
  11158. shlibpath_var=SHLIB_PATH
  11159. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11161. soname_spec='${libname}${release}${shared_ext}$major'
  11162. ;;
  11163. esac
  11164. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11165. postinstall_cmds='chmod 555 $lib'
  11166. ;;
  11167. interix3*)
  11168. version_type=linux
  11169. need_lib_prefix=no
  11170. need_version=no
  11171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11172. soname_spec='${libname}${release}${shared_ext}$major'
  11173. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11174. shlibpath_var=LD_LIBRARY_PATH
  11175. shlibpath_overrides_runpath=no
  11176. hardcode_into_libs=yes
  11177. ;;
  11178. irix5* | irix6* | nonstopux*)
  11179. case $host_os in
  11180. nonstopux*) version_type=nonstopux ;;
  11181. *)
  11182. if test "$lt_cv_prog_gnu_ld" = yes; then
  11183. version_type=linux
  11184. else
  11185. version_type=irix
  11186. fi ;;
  11187. esac
  11188. need_lib_prefix=no
  11189. need_version=no
  11190. soname_spec='${libname}${release}${shared_ext}$major'
  11191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11192. case $host_os in
  11193. irix5* | nonstopux*)
  11194. libsuff= shlibsuff=
  11195. ;;
  11196. *)
  11197. case $LD in # libtool.m4 will add one of these switches to LD
  11198. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11199. libsuff= shlibsuff= libmagic=32-bit;;
  11200. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11201. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11202. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11203. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11204. *) libsuff= shlibsuff= libmagic=never-match;;
  11205. esac
  11206. ;;
  11207. esac
  11208. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11209. shlibpath_overrides_runpath=no
  11210. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11211. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11212. hardcode_into_libs=yes
  11213. ;;
  11214. # No shared lib support for Linux oldld, aout, or coff.
  11215. linux*oldld* | linux*aout* | linux*coff*)
  11216. dynamic_linker=no
  11217. ;;
  11218. # This must be Linux ELF.
  11219. linux*)
  11220. version_type=linux
  11221. need_lib_prefix=no
  11222. need_version=no
  11223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11224. soname_spec='${libname}${release}${shared_ext}$major'
  11225. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11226. shlibpath_var=LD_LIBRARY_PATH
  11227. shlibpath_overrides_runpath=no
  11228. # This implies no fast_install, which is unacceptable.
  11229. # Some rework will be needed to allow for fast_install
  11230. # before this can be enabled.
  11231. hardcode_into_libs=yes
  11232. # find out which ABI we are using
  11233. libsuff=
  11234. case "$host_cpu" in
  11235. x86_64*|s390x*|powerpc64*)
  11236. echo '#line 12411 "configure"' > conftest.$ac_ext
  11237. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11238. (eval $ac_compile) 2>&5
  11239. ac_status=$?
  11240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11241. (exit $ac_status); }; then
  11242. case `/usr/bin/file conftest.$ac_objext` in
  11243. *64-bit*)
  11244. libsuff=64
  11245. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  11246. ;;
  11247. esac
  11248. fi
  11249. rm -rf conftest*
  11250. ;;
  11251. esac
  11252. # Append ld.so.conf contents to the search path
  11253. if test -f /etc/ld.so.conf; then
  11254. 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' ' '`
  11255. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  11256. fi
  11257. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11258. # powerpc, because MkLinux only supported shared libraries with the
  11259. # GNU dynamic linker. Since this was broken with cross compilers,
  11260. # most powerpc-linux boxes support dynamic linking these days and
  11261. # people can always --disable-shared, the test was removed, and we
  11262. # assume the GNU/Linux dynamic linker is in use.
  11263. dynamic_linker='GNU/Linux ld.so'
  11264. ;;
  11265. knetbsd*-gnu)
  11266. version_type=linux
  11267. need_lib_prefix=no
  11268. need_version=no
  11269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11270. soname_spec='${libname}${release}${shared_ext}$major'
  11271. shlibpath_var=LD_LIBRARY_PATH
  11272. shlibpath_overrides_runpath=no
  11273. hardcode_into_libs=yes
  11274. dynamic_linker='GNU ld.so'
  11275. ;;
  11276. netbsd*)
  11277. version_type=sunos
  11278. need_lib_prefix=no
  11279. need_version=no
  11280. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11282. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11283. dynamic_linker='NetBSD (a.out) ld.so'
  11284. else
  11285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11286. soname_spec='${libname}${release}${shared_ext}$major'
  11287. dynamic_linker='NetBSD ld.elf_so'
  11288. fi
  11289. shlibpath_var=LD_LIBRARY_PATH
  11290. shlibpath_overrides_runpath=yes
  11291. hardcode_into_libs=yes
  11292. ;;
  11293. newsos6)
  11294. version_type=linux
  11295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11296. shlibpath_var=LD_LIBRARY_PATH
  11297. shlibpath_overrides_runpath=yes
  11298. ;;
  11299. nto-qnx*)
  11300. version_type=linux
  11301. need_lib_prefix=no
  11302. need_version=no
  11303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11304. soname_spec='${libname}${release}${shared_ext}$major'
  11305. shlibpath_var=LD_LIBRARY_PATH
  11306. shlibpath_overrides_runpath=yes
  11307. ;;
  11308. openbsd*)
  11309. version_type=sunos
  11310. sys_lib_dlsearch_path_spec="/usr/lib"
  11311. need_lib_prefix=no
  11312. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11313. case $host_os in
  11314. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11315. *) need_version=no ;;
  11316. esac
  11317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11318. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11319. shlibpath_var=LD_LIBRARY_PATH
  11320. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11321. case $host_os in
  11322. openbsd2.[89] | openbsd2.[89].*)
  11323. shlibpath_overrides_runpath=no
  11324. ;;
  11325. *)
  11326. shlibpath_overrides_runpath=yes
  11327. ;;
  11328. esac
  11329. else
  11330. shlibpath_overrides_runpath=yes
  11331. fi
  11332. ;;
  11333. os2*)
  11334. libname_spec='$name'
  11335. shrext_cmds=".dll"
  11336. need_lib_prefix=no
  11337. library_names_spec='$libname${shared_ext} $libname.a'
  11338. dynamic_linker='OS/2 ld.exe'
  11339. shlibpath_var=LIBPATH
  11340. ;;
  11341. osf3* | osf4* | osf5*)
  11342. version_type=osf
  11343. need_lib_prefix=no
  11344. need_version=no
  11345. soname_spec='${libname}${release}${shared_ext}$major'
  11346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11347. shlibpath_var=LD_LIBRARY_PATH
  11348. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11349. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11350. ;;
  11351. solaris*)
  11352. version_type=linux
  11353. need_lib_prefix=no
  11354. need_version=no
  11355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11356. soname_spec='${libname}${release}${shared_ext}$major'
  11357. shlibpath_var=LD_LIBRARY_PATH
  11358. shlibpath_overrides_runpath=yes
  11359. hardcode_into_libs=yes
  11360. # ldd complains unless libraries are executable
  11361. postinstall_cmds='chmod +x $lib'
  11362. ;;
  11363. sunos4*)
  11364. version_type=sunos
  11365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11366. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11367. shlibpath_var=LD_LIBRARY_PATH
  11368. shlibpath_overrides_runpath=yes
  11369. if test "$with_gnu_ld" = yes; then
  11370. need_lib_prefix=no
  11371. fi
  11372. need_version=yes
  11373. ;;
  11374. sysv4 | sysv4.3*)
  11375. version_type=linux
  11376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11377. soname_spec='${libname}${release}${shared_ext}$major'
  11378. shlibpath_var=LD_LIBRARY_PATH
  11379. case $host_vendor in
  11380. sni)
  11381. shlibpath_overrides_runpath=no
  11382. need_lib_prefix=no
  11383. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11384. runpath_var=LD_RUN_PATH
  11385. ;;
  11386. siemens)
  11387. need_lib_prefix=no
  11388. ;;
  11389. motorola)
  11390. need_lib_prefix=no
  11391. need_version=no
  11392. shlibpath_overrides_runpath=no
  11393. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11394. ;;
  11395. esac
  11396. ;;
  11397. sysv4*MP*)
  11398. if test -d /usr/nec ;then
  11399. version_type=linux
  11400. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11401. soname_spec='$libname${shared_ext}.$major'
  11402. shlibpath_var=LD_LIBRARY_PATH
  11403. fi
  11404. ;;
  11405. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11406. version_type=freebsd-elf
  11407. need_lib_prefix=no
  11408. need_version=no
  11409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11410. soname_spec='${libname}${release}${shared_ext}$major'
  11411. shlibpath_var=LD_LIBRARY_PATH
  11412. hardcode_into_libs=yes
  11413. if test "$with_gnu_ld" = yes; then
  11414. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11415. shlibpath_overrides_runpath=no
  11416. else
  11417. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11418. shlibpath_overrides_runpath=yes
  11419. case $host_os in
  11420. sco3.2v5*)
  11421. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11422. ;;
  11423. esac
  11424. fi
  11425. sys_lib_dlsearch_path_spec='/usr/lib'
  11426. ;;
  11427. uts4*)
  11428. version_type=linux
  11429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11430. soname_spec='${libname}${release}${shared_ext}$major'
  11431. shlibpath_var=LD_LIBRARY_PATH
  11432. ;;
  11433. *)
  11434. dynamic_linker=no
  11435. ;;
  11436. esac
  11437. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11438. echo "${ECHO_T}$dynamic_linker" >&6
  11439. test "$dynamic_linker" = no && can_build_shared=no
  11440. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11441. if test "$GCC" = yes; then
  11442. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11443. fi
  11444. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11445. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11446. hardcode_action_CXX=
  11447. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11448. test -n "$runpath_var_CXX" || \
  11449. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11450. # We can hardcode non-existant directories.
  11451. if test "$hardcode_direct_CXX" != no &&
  11452. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11453. # have to relink, otherwise we might link with an installed library
  11454. # when we should be linking with a yet-to-be-installed one
  11455. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11456. test "$hardcode_minus_L_CXX" != no; then
  11457. # Linking always hardcodes the temporary library directory.
  11458. hardcode_action_CXX=relink
  11459. else
  11460. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11461. hardcode_action_CXX=immediate
  11462. fi
  11463. else
  11464. # We cannot hardcode anything, or else we can only hardcode existing
  11465. # directories.
  11466. hardcode_action_CXX=unsupported
  11467. fi
  11468. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11469. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11470. if test "$hardcode_action_CXX" = relink; then
  11471. # Fast installation is not supported
  11472. enable_fast_install=no
  11473. elif test "$shlibpath_overrides_runpath" = yes ||
  11474. test "$enable_shared" = no; then
  11475. # Fast installation is not necessary
  11476. enable_fast_install=needless
  11477. fi
  11478. # The else clause should only fire when bootstrapping the
  11479. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11480. # with your package, and you will get complaints that there are
  11481. # no rules to generate ltmain.sh.
  11482. if test -f "$ltmain"; then
  11483. # See if we are running on zsh, and set the options which allow our commands through
  11484. # without removal of \ escapes.
  11485. if test -n "${ZSH_VERSION+set}" ; then
  11486. setopt NO_GLOB_SUBST
  11487. fi
  11488. # Now quote all the things that may contain metacharacters while being
  11489. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11490. # variables and quote the copies for generation of the libtool script.
  11491. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11492. SED SHELL STRIP \
  11493. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11494. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11495. deplibs_check_method reload_flag reload_cmds need_locks \
  11496. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11497. lt_cv_sys_global_symbol_to_c_name_address \
  11498. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11499. old_postinstall_cmds old_postuninstall_cmds \
  11500. compiler_CXX \
  11501. CC_CXX \
  11502. LD_CXX \
  11503. lt_prog_compiler_wl_CXX \
  11504. lt_prog_compiler_pic_CXX \
  11505. lt_prog_compiler_static_CXX \
  11506. lt_prog_compiler_no_builtin_flag_CXX \
  11507. export_dynamic_flag_spec_CXX \
  11508. thread_safe_flag_spec_CXX \
  11509. whole_archive_flag_spec_CXX \
  11510. enable_shared_with_static_runtimes_CXX \
  11511. old_archive_cmds_CXX \
  11512. old_archive_from_new_cmds_CXX \
  11513. predep_objects_CXX \
  11514. postdep_objects_CXX \
  11515. predeps_CXX \
  11516. postdeps_CXX \
  11517. compiler_lib_search_path_CXX \
  11518. archive_cmds_CXX \
  11519. archive_expsym_cmds_CXX \
  11520. postinstall_cmds_CXX \
  11521. postuninstall_cmds_CXX \
  11522. old_archive_from_expsyms_cmds_CXX \
  11523. allow_undefined_flag_CXX \
  11524. no_undefined_flag_CXX \
  11525. export_symbols_cmds_CXX \
  11526. hardcode_libdir_flag_spec_CXX \
  11527. hardcode_libdir_flag_spec_ld_CXX \
  11528. hardcode_libdir_separator_CXX \
  11529. hardcode_automatic_CXX \
  11530. module_cmds_CXX \
  11531. module_expsym_cmds_CXX \
  11532. lt_cv_prog_compiler_c_o_CXX \
  11533. exclude_expsyms_CXX \
  11534. include_expsyms_CXX; do
  11535. case $var in
  11536. old_archive_cmds_CXX | \
  11537. old_archive_from_new_cmds_CXX | \
  11538. archive_cmds_CXX | \
  11539. archive_expsym_cmds_CXX | \
  11540. module_cmds_CXX | \
  11541. module_expsym_cmds_CXX | \
  11542. old_archive_from_expsyms_cmds_CXX | \
  11543. export_symbols_cmds_CXX | \
  11544. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11545. postinstall_cmds | postuninstall_cmds | \
  11546. old_postinstall_cmds | old_postuninstall_cmds | \
  11547. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11548. # Double-quote double-evaled strings.
  11549. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11550. ;;
  11551. *)
  11552. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11553. ;;
  11554. esac
  11555. done
  11556. case $lt_echo in
  11557. *'\$0 --fallback-echo"')
  11558. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11559. ;;
  11560. esac
  11561. cfgfile="$ofile"
  11562. cat <<__EOF__ >> "$cfgfile"
  11563. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11564. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11565. # Shell to use when invoking shell scripts.
  11566. SHELL=$lt_SHELL
  11567. # Whether or not to build shared libraries.
  11568. build_libtool_libs=$enable_shared
  11569. # Whether or not to build static libraries.
  11570. build_old_libs=$enable_static
  11571. # Whether or not to add -lc for building shared libraries.
  11572. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11573. # Whether or not to disallow shared libs when runtime libs are static
  11574. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11575. # Whether or not to optimize for fast installation.
  11576. fast_install=$enable_fast_install
  11577. # The host system.
  11578. host_alias=$host_alias
  11579. host=$host
  11580. host_os=$host_os
  11581. # The build system.
  11582. build_alias=$build_alias
  11583. build=$build
  11584. build_os=$build_os
  11585. # An echo program that does not interpret backslashes.
  11586. echo=$lt_echo
  11587. # The archiver.
  11588. AR=$lt_AR
  11589. AR_FLAGS=$lt_AR_FLAGS
  11590. # A C compiler.
  11591. LTCC=$lt_LTCC
  11592. # LTCC compiler flags.
  11593. LTCFLAGS=$lt_LTCFLAGS
  11594. # A language-specific compiler.
  11595. CC=$lt_compiler_CXX
  11596. # Is the compiler the GNU C compiler?
  11597. with_gcc=$GCC_CXX
  11598. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  11599. gcc_ver=\`gcc -dumpversion\`
  11600. # An ERE matcher.
  11601. EGREP=$lt_EGREP
  11602. # The linker used to build libraries.
  11603. LD=$lt_LD_CXX
  11604. # Whether we need hard or soft links.
  11605. LN_S=$lt_LN_S
  11606. # A BSD-compatible nm program.
  11607. NM=$lt_NM
  11608. # A symbol stripping program
  11609. STRIP=$lt_STRIP
  11610. # Used to examine libraries when file_magic_cmd begins "file"
  11611. MAGIC_CMD=$MAGIC_CMD
  11612. # Used on cygwin: DLL creation program.
  11613. DLLTOOL="$DLLTOOL"
  11614. # Used on cygwin: object dumper.
  11615. OBJDUMP="$OBJDUMP"
  11616. # Used on cygwin: assembler.
  11617. AS="$AS"
  11618. # The name of the directory that contains temporary libtool files.
  11619. objdir=$objdir
  11620. # How to create reloadable object files.
  11621. reload_flag=$lt_reload_flag
  11622. reload_cmds=$lt_reload_cmds
  11623. # How to pass a linker flag through the compiler.
  11624. wl=$lt_lt_prog_compiler_wl_CXX
  11625. # Object file suffix (normally "o").
  11626. objext="$ac_objext"
  11627. # Old archive suffix (normally "a").
  11628. libext="$libext"
  11629. # Shared library suffix (normally ".so").
  11630. shrext_cmds='$shrext_cmds'
  11631. # Executable file suffix (normally "").
  11632. exeext="$exeext"
  11633. # Additional compiler flags for building library objects.
  11634. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11635. pic_mode=$pic_mode
  11636. # What is the maximum length of a command?
  11637. max_cmd_len=$lt_cv_sys_max_cmd_len
  11638. # Does compiler simultaneously support -c and -o options?
  11639. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11640. # Must we lock files when doing compilation?
  11641. need_locks=$lt_need_locks
  11642. # Do we need the lib prefix for modules?
  11643. need_lib_prefix=$need_lib_prefix
  11644. # Do we need a version for libraries?
  11645. need_version=$need_version
  11646. # Whether dlopen is supported.
  11647. dlopen_support=$enable_dlopen
  11648. # Whether dlopen of programs is supported.
  11649. dlopen_self=$enable_dlopen_self
  11650. # Whether dlopen of statically linked programs is supported.
  11651. dlopen_self_static=$enable_dlopen_self_static
  11652. # Compiler flag to prevent dynamic linking.
  11653. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11654. # Compiler flag to turn off builtin functions.
  11655. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11656. # Compiler flag to allow reflexive dlopens.
  11657. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11658. # Compiler flag to generate shared objects directly from archives.
  11659. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11660. # Compiler flag to generate thread-safe objects.
  11661. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11662. # Library versioning type.
  11663. version_type=$version_type
  11664. # Format of library name prefix.
  11665. libname_spec=$lt_libname_spec
  11666. # List of archive names. First name is the real one, the rest are links.
  11667. # The last name is the one that the linker finds with -lNAME.
  11668. library_names_spec=$lt_library_names_spec
  11669. # The coded name of the library, if different from the real name.
  11670. soname_spec=$lt_soname_spec
  11671. # Commands used to build and install an old-style archive.
  11672. RANLIB=$lt_RANLIB
  11673. old_archive_cmds=$lt_old_archive_cmds_CXX
  11674. old_postinstall_cmds=$lt_old_postinstall_cmds
  11675. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11676. # Create an old-style archive from a shared archive.
  11677. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11678. # Create a temporary old-style archive to link instead of a shared archive.
  11679. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11680. # Commands used to build and install a shared archive.
  11681. archive_cmds=$lt_archive_cmds_CXX
  11682. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11683. postinstall_cmds=$lt_postinstall_cmds
  11684. postuninstall_cmds=$lt_postuninstall_cmds
  11685. # Commands used to build a loadable module (assumed same as above if empty)
  11686. module_cmds=$lt_module_cmds_CXX
  11687. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11688. # Commands to strip libraries.
  11689. old_striplib=$lt_old_striplib
  11690. striplib=$lt_striplib
  11691. # Dependencies to place before the objects being linked to create a
  11692. # shared library.
  11693. predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11694. # Dependencies to place after the objects being linked to create a
  11695. # shared library.
  11696. postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11697. # Dependencies to place before the objects being linked to create a
  11698. # shared library.
  11699. predeps=$lt_predeps_CXX
  11700. # Dependencies to place after the objects being linked to create a
  11701. # shared library.
  11702. postdeps=$lt_postdeps_CXX
  11703. # The library search path used internally by the compiler when linking
  11704. # a shared library.
  11705. 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"\`
  11706. # Method to check whether dependent libraries are shared objects.
  11707. deplibs_check_method=$lt_deplibs_check_method
  11708. # Command to use when deplibs_check_method == file_magic.
  11709. file_magic_cmd=$lt_file_magic_cmd
  11710. # Flag that allows shared libraries with undefined symbols to be built.
  11711. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11712. # Flag that forces no undefined symbols.
  11713. no_undefined_flag=$lt_no_undefined_flag_CXX
  11714. # Commands used to finish a libtool library installation in a directory.
  11715. finish_cmds=$lt_finish_cmds
  11716. # Same as above, but a single script fragment to be evaled but not shown.
  11717. finish_eval=$lt_finish_eval
  11718. # Take the output of nm and produce a listing of raw symbols and C names.
  11719. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11720. # Transform the output of nm in a proper C declaration
  11721. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11722. # Transform the output of nm in a C name address pair
  11723. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11724. # This is the shared library runtime path variable.
  11725. runpath_var=$runpath_var
  11726. # This is the shared library path variable.
  11727. shlibpath_var=$shlibpath_var
  11728. # Is shlibpath searched before the hard-coded library search path?
  11729. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11730. # How to hardcode a shared library path into an executable.
  11731. hardcode_action=$hardcode_action_CXX
  11732. # Whether we should hardcode library paths into libraries.
  11733. hardcode_into_libs=$hardcode_into_libs
  11734. # Flag to hardcode \$libdir into a binary during linking.
  11735. # This must work even if \$libdir does not exist.
  11736. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11737. # If ld is used when linking, flag to hardcode \$libdir into
  11738. # a binary during linking. This must work even if \$libdir does
  11739. # not exist.
  11740. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11741. # Whether we need a single -rpath flag with a separated argument.
  11742. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11743. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11744. # resulting binary.
  11745. hardcode_direct=$hardcode_direct_CXX
  11746. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11747. # resulting binary.
  11748. hardcode_minus_L=$hardcode_minus_L_CXX
  11749. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11750. # the resulting binary.
  11751. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11752. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11753. # and all subsequent libraries and executables linked against it.
  11754. hardcode_automatic=$hardcode_automatic_CXX
  11755. # Variables whose values should be saved in libtool wrapper scripts and
  11756. # restored at relink time.
  11757. variables_saved_for_relink="$variables_saved_for_relink"
  11758. # Whether libtool must link a program against all its dependency libraries.
  11759. link_all_deplibs=$link_all_deplibs_CXX
  11760. # Compile-time system search path for libraries
  11761. 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"\`
  11762. # Run-time system search path for libraries
  11763. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11764. # Fix the shell variable \$srcfile for the compiler.
  11765. fix_srcfile_path="$fix_srcfile_path_CXX"
  11766. # Set to yes if exported symbols are required.
  11767. always_export_symbols=$always_export_symbols_CXX
  11768. # The commands to list exported symbols.
  11769. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11770. # The commands to extract the exported symbol list from a shared archive.
  11771. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11772. # Symbols that should not be listed in the preloaded symbols.
  11773. exclude_expsyms=$lt_exclude_expsyms_CXX
  11774. # Symbols that must always be exported.
  11775. include_expsyms=$lt_include_expsyms_CXX
  11776. # ### END LIBTOOL TAG CONFIG: $tagname
  11777. __EOF__
  11778. else
  11779. # If there is no Makefile yet, we rely on a make rule to execute
  11780. # `config.status --recheck' to rerun these tests and create the
  11781. # libtool script then.
  11782. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11783. if test -f "$ltmain_in"; then
  11784. test -f Makefile && make "$ltmain"
  11785. fi
  11786. fi
  11787. ac_ext=c
  11788. ac_cpp='$CPP $CPPFLAGS'
  11789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11792. CC=$lt_save_CC
  11793. LDCXX=$LD
  11794. LD=$lt_save_LD
  11795. GCC=$lt_save_GCC
  11796. with_gnu_ldcxx=$with_gnu_ld
  11797. with_gnu_ld=$lt_save_with_gnu_ld
  11798. lt_cv_path_LDCXX=$lt_cv_path_LD
  11799. lt_cv_path_LD=$lt_save_path_LD
  11800. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11801. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11802. else
  11803. tagname=""
  11804. fi
  11805. ;;
  11806. F77)
  11807. if test -n "$F77" && test "X$F77" != "Xno"; then
  11808. ac_ext=f
  11809. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11810. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11811. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11812. archive_cmds_need_lc_F77=no
  11813. allow_undefined_flag_F77=
  11814. always_export_symbols_F77=no
  11815. archive_expsym_cmds_F77=
  11816. export_dynamic_flag_spec_F77=
  11817. hardcode_direct_F77=no
  11818. hardcode_libdir_flag_spec_F77=
  11819. hardcode_libdir_flag_spec_ld_F77=
  11820. hardcode_libdir_separator_F77=
  11821. hardcode_minus_L_F77=no
  11822. hardcode_automatic_F77=no
  11823. module_cmds_F77=
  11824. module_expsym_cmds_F77=
  11825. link_all_deplibs_F77=unknown
  11826. old_archive_cmds_F77=$old_archive_cmds
  11827. no_undefined_flag_F77=
  11828. whole_archive_flag_spec_F77=
  11829. enable_shared_with_static_runtimes_F77=no
  11830. # Source file extension for f77 test sources.
  11831. ac_ext=f
  11832. # Object file extension for compiled f77 test sources.
  11833. objext=o
  11834. objext_F77=$objext
  11835. # Code to be used in simple compile tests
  11836. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11837. # Code to be used in simple link tests
  11838. lt_simple_link_test_code=" program t\n end\n"
  11839. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11840. # If no C compiler was specified, use CC.
  11841. LTCC=${LTCC-"$CC"}
  11842. # If no C compiler flags were specified, use CFLAGS.
  11843. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11844. # Allow CC to be a program name with arguments.
  11845. compiler=$CC
  11846. # save warnings/boilerplate of simple test code
  11847. ac_outfile=conftest.$ac_objext
  11848. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11849. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11850. _lt_compiler_boilerplate=`cat conftest.err`
  11851. $rm conftest*
  11852. ac_outfile=conftest.$ac_objext
  11853. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11854. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11855. _lt_linker_boilerplate=`cat conftest.err`
  11856. $rm conftest*
  11857. # Allow CC to be a program name with arguments.
  11858. lt_save_CC="$CC"
  11859. CC=${F77-"f77"}
  11860. compiler=$CC
  11861. compiler_F77=$CC
  11862. for cc_temp in $compiler""; do
  11863. case $cc_temp in
  11864. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11865. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11866. \-*) ;;
  11867. *) break;;
  11868. esac
  11869. done
  11870. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11871. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11872. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11873. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11874. echo "${ECHO_T}$can_build_shared" >&6
  11875. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11876. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11877. test "$can_build_shared" = "no" && enable_shared=no
  11878. # On AIX, shared libraries and static libraries use the same namespace, and
  11879. # are all built from PIC.
  11880. case $host_os in
  11881. aix3*)
  11882. test "$enable_shared" = yes && enable_static=no
  11883. if test -n "$RANLIB"; then
  11884. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11885. postinstall_cmds='$RANLIB $lib'
  11886. fi
  11887. ;;
  11888. aix4* | aix5*)
  11889. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11890. test "$enable_shared" = yes && enable_static=no
  11891. fi
  11892. ;;
  11893. esac
  11894. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11895. echo "${ECHO_T}$enable_shared" >&6
  11896. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11897. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11898. # Make sure either enable_shared or enable_static is yes.
  11899. test "$enable_shared" = yes || enable_static=yes
  11900. echo "$as_me:$LINENO: result: $enable_static" >&5
  11901. echo "${ECHO_T}$enable_static" >&6
  11902. GCC_F77="$G77"
  11903. LD_F77="$LD"
  11904. lt_prog_compiler_wl_F77=
  11905. lt_prog_compiler_pic_F77=
  11906. lt_prog_compiler_static_F77=
  11907. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11908. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11909. if test "$GCC" = yes; then
  11910. lt_prog_compiler_wl_F77='-Wl,'
  11911. lt_prog_compiler_static_F77='-static'
  11912. case $host_os in
  11913. aix*)
  11914. # All AIX code is PIC.
  11915. if test "$host_cpu" = ia64; then
  11916. # AIX 5 now supports IA64 processor
  11917. lt_prog_compiler_static_F77='-Bstatic'
  11918. fi
  11919. ;;
  11920. amigaos*)
  11921. # FIXME: we need at least 68020 code to build shared libraries, but
  11922. # adding the `-m68020' flag to GCC prevents building anything better,
  11923. # like `-m68040'.
  11924. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11925. ;;
  11926. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11927. # PIC is the default for these OSes.
  11928. ;;
  11929. mingw* | pw32* | os2*)
  11930. # This hack is so that the source file can tell whether it is being
  11931. # built for inclusion in a dll (and should export symbols for example).
  11932. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11933. ;;
  11934. darwin* | rhapsody*)
  11935. # PIC is the default on this platform
  11936. # Common symbols not allowed in MH_DYLIB files
  11937. lt_prog_compiler_pic_F77='-fno-common'
  11938. ;;
  11939. interix3*)
  11940. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11941. # Instead, we relocate shared libraries at runtime.
  11942. ;;
  11943. msdosdjgpp*)
  11944. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11945. # on systems that don't support them.
  11946. lt_prog_compiler_can_build_shared_F77=no
  11947. enable_shared=no
  11948. ;;
  11949. sysv4*MP*)
  11950. if test -d /usr/nec; then
  11951. lt_prog_compiler_pic_F77=-Kconform_pic
  11952. fi
  11953. ;;
  11954. hpux*)
  11955. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11956. # not for PA HP-UX.
  11957. case $host_cpu in
  11958. hppa*64*|ia64*)
  11959. # +Z the default
  11960. ;;
  11961. *)
  11962. lt_prog_compiler_pic_F77='-fPIC'
  11963. ;;
  11964. esac
  11965. ;;
  11966. *)
  11967. lt_prog_compiler_pic_F77='-fPIC'
  11968. ;;
  11969. esac
  11970. else
  11971. # PORTME Check for flag to pass linker flags through the system compiler.
  11972. case $host_os in
  11973. aix*)
  11974. lt_prog_compiler_wl_F77='-Wl,'
  11975. if test "$host_cpu" = ia64; then
  11976. # AIX 5 now supports IA64 processor
  11977. lt_prog_compiler_static_F77='-Bstatic'
  11978. else
  11979. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11980. fi
  11981. ;;
  11982. darwin*)
  11983. # PIC is the default on this platform
  11984. # Common symbols not allowed in MH_DYLIB files
  11985. case $cc_basename in
  11986. xlc*)
  11987. lt_prog_compiler_pic_F77='-qnocommon'
  11988. lt_prog_compiler_wl_F77='-Wl,'
  11989. ;;
  11990. esac
  11991. ;;
  11992. mingw* | pw32* | os2*)
  11993. # This hack is so that the source file can tell whether it is being
  11994. # built for inclusion in a dll (and should export symbols for example).
  11995. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11996. ;;
  11997. hpux9* | hpux10* | hpux11*)
  11998. lt_prog_compiler_wl_F77='-Wl,'
  11999. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12000. # not for PA HP-UX.
  12001. case $host_cpu in
  12002. hppa*64*|ia64*)
  12003. # +Z the default
  12004. ;;
  12005. *)
  12006. lt_prog_compiler_pic_F77='+Z'
  12007. ;;
  12008. esac
  12009. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12010. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12011. ;;
  12012. irix5* | irix6* | nonstopux*)
  12013. lt_prog_compiler_wl_F77='-Wl,'
  12014. # PIC (with -KPIC) is the default.
  12015. lt_prog_compiler_static_F77='-non_shared'
  12016. ;;
  12017. newsos6)
  12018. lt_prog_compiler_pic_F77='-KPIC'
  12019. lt_prog_compiler_static_F77='-Bstatic'
  12020. ;;
  12021. linux*)
  12022. case $cc_basename in
  12023. icc* | ecc*)
  12024. lt_prog_compiler_wl_F77='-Wl,'
  12025. lt_prog_compiler_pic_F77='-KPIC'
  12026. lt_prog_compiler_static_F77='-static'
  12027. ;;
  12028. pgcc* | pgf77* | pgf90* | pgf95*)
  12029. # Portland Group compilers (*not* the Pentium gcc compiler,
  12030. # which looks to be a dead project)
  12031. lt_prog_compiler_wl_F77='-Wl,'
  12032. lt_prog_compiler_pic_F77='-fpic'
  12033. lt_prog_compiler_static_F77='-Bstatic'
  12034. ;;
  12035. ccc*)
  12036. lt_prog_compiler_wl_F77='-Wl,'
  12037. # All Alpha code is PIC.
  12038. lt_prog_compiler_static_F77='-non_shared'
  12039. ;;
  12040. esac
  12041. ;;
  12042. osf3* | osf4* | osf5*)
  12043. lt_prog_compiler_wl_F77='-Wl,'
  12044. # All OSF/1 code is PIC.
  12045. lt_prog_compiler_static_F77='-non_shared'
  12046. ;;
  12047. solaris*)
  12048. lt_prog_compiler_pic_F77='-KPIC'
  12049. lt_prog_compiler_static_F77='-Bstatic'
  12050. case $cc_basename in
  12051. f77* | f90* | f95*)
  12052. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12053. *)
  12054. lt_prog_compiler_wl_F77='-Wl,';;
  12055. esac
  12056. ;;
  12057. sunos4*)
  12058. lt_prog_compiler_wl_F77='-Qoption ld '
  12059. lt_prog_compiler_pic_F77='-PIC'
  12060. lt_prog_compiler_static_F77='-Bstatic'
  12061. ;;
  12062. sysv4 | sysv4.2uw2* | sysv4.3*)
  12063. lt_prog_compiler_wl_F77='-Wl,'
  12064. lt_prog_compiler_pic_F77='-KPIC'
  12065. lt_prog_compiler_static_F77='-Bstatic'
  12066. ;;
  12067. sysv4*MP*)
  12068. if test -d /usr/nec ;then
  12069. lt_prog_compiler_pic_F77='-Kconform_pic'
  12070. lt_prog_compiler_static_F77='-Bstatic'
  12071. fi
  12072. ;;
  12073. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12074. lt_prog_compiler_wl_F77='-Wl,'
  12075. lt_prog_compiler_pic_F77='-KPIC'
  12076. lt_prog_compiler_static_F77='-Bstatic'
  12077. ;;
  12078. unicos*)
  12079. lt_prog_compiler_wl_F77='-Wl,'
  12080. lt_prog_compiler_can_build_shared_F77=no
  12081. ;;
  12082. uts4*)
  12083. lt_prog_compiler_pic_F77='-pic'
  12084. lt_prog_compiler_static_F77='-Bstatic'
  12085. ;;
  12086. *)
  12087. lt_prog_compiler_can_build_shared_F77=no
  12088. ;;
  12089. esac
  12090. fi
  12091. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12092. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12093. #
  12094. # Check to make sure the PIC flag actually works.
  12095. #
  12096. if test -n "$lt_prog_compiler_pic_F77"; then
  12097. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12098. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12099. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12100. echo $ECHO_N "(cached) $ECHO_C" >&6
  12101. else
  12102. lt_prog_compiler_pic_works_F77=no
  12103. ac_outfile=conftest.$ac_objext
  12104. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12105. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12106. # Insert the option either (1) after the last *FLAGS variable, or
  12107. # (2) before a word containing "conftest.", or (3) at the end.
  12108. # Note that $ac_compile itself does not contain backslashes and begins
  12109. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12110. # The option is referenced via a variable to avoid confusing sed.
  12111. lt_compile=`echo "$ac_compile" | $SED \
  12112. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12113. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12114. -e 's:$: $lt_compiler_flag:'`
  12115. (eval echo "\"\$as_me:13469: $lt_compile\"" >&5)
  12116. (eval "$lt_compile" 2>conftest.err)
  12117. ac_status=$?
  12118. cat conftest.err >&5
  12119. echo "$as_me:13473: \$? = $ac_status" >&5
  12120. if (exit $ac_status) && test -s "$ac_outfile"; then
  12121. # The compiler can only warn and ignore the option if not recognized
  12122. # So say no if there are warnings other than the usual output.
  12123. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12124. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12125. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12126. lt_prog_compiler_pic_works_F77=yes
  12127. fi
  12128. fi
  12129. $rm conftest*
  12130. fi
  12131. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12132. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12133. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12134. case $lt_prog_compiler_pic_F77 in
  12135. "" | " "*) ;;
  12136. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12137. esac
  12138. else
  12139. lt_prog_compiler_pic_F77=
  12140. lt_prog_compiler_can_build_shared_F77=no
  12141. fi
  12142. fi
  12143. case $host_os in
  12144. # For platforms which do not support PIC, -DPIC is meaningless:
  12145. *djgpp*)
  12146. lt_prog_compiler_pic_F77=
  12147. ;;
  12148. *)
  12149. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12150. ;;
  12151. esac
  12152. #
  12153. # Check to make sure the static flag actually works.
  12154. #
  12155. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12156. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12157. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12158. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12159. echo $ECHO_N "(cached) $ECHO_C" >&6
  12160. else
  12161. lt_prog_compiler_static_works_F77=no
  12162. save_LDFLAGS="$LDFLAGS"
  12163. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12164. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12165. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12166. # The linker can only warn and ignore the option if not recognized
  12167. # So say no if there are warnings
  12168. if test -s conftest.err; then
  12169. # Append any errors to the config.log.
  12170. cat conftest.err 1>&5
  12171. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12172. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12173. if diff conftest.exp conftest.er2 >/dev/null; then
  12174. lt_prog_compiler_static_works_F77=yes
  12175. fi
  12176. else
  12177. lt_prog_compiler_static_works_F77=yes
  12178. fi
  12179. fi
  12180. $rm conftest*
  12181. LDFLAGS="$save_LDFLAGS"
  12182. fi
  12183. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12184. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12185. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12186. :
  12187. else
  12188. lt_prog_compiler_static_F77=
  12189. fi
  12190. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12191. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12192. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12193. echo $ECHO_N "(cached) $ECHO_C" >&6
  12194. else
  12195. lt_cv_prog_compiler_c_o_F77=no
  12196. $rm -r conftest 2>/dev/null
  12197. mkdir conftest
  12198. cd conftest
  12199. mkdir out
  12200. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12201. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12202. # Insert the option either (1) after the last *FLAGS variable, or
  12203. # (2) before a word containing "conftest.", or (3) at the end.
  12204. # Note that $ac_compile itself does not contain backslashes and begins
  12205. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12206. lt_compile=`echo "$ac_compile" | $SED \
  12207. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12208. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12209. -e 's:$: $lt_compiler_flag:'`
  12210. (eval echo "\"\$as_me:13573: $lt_compile\"" >&5)
  12211. (eval "$lt_compile" 2>out/conftest.err)
  12212. ac_status=$?
  12213. cat out/conftest.err >&5
  12214. echo "$as_me:13577: \$? = $ac_status" >&5
  12215. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12216. then
  12217. # The compiler can only warn and ignore the option if not recognized
  12218. # So say no if there are warnings
  12219. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12220. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12221. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12222. lt_cv_prog_compiler_c_o_F77=yes
  12223. fi
  12224. fi
  12225. chmod u+w . 2>&5
  12226. $rm conftest*
  12227. # SGI C++ compiler will create directory out/ii_files/ for
  12228. # template instantiation
  12229. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12230. $rm out/* && rmdir out
  12231. cd ..
  12232. rmdir conftest
  12233. $rm conftest*
  12234. fi
  12235. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12236. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12237. hard_links="nottested"
  12238. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12239. # do not overwrite the value of need_locks provided by the user
  12240. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12241. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12242. hard_links=yes
  12243. $rm conftest*
  12244. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12245. touch conftest.a
  12246. ln conftest.a conftest.b 2>&5 || hard_links=no
  12247. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12248. echo "$as_me:$LINENO: result: $hard_links" >&5
  12249. echo "${ECHO_T}$hard_links" >&6
  12250. if test "$hard_links" = no; then
  12251. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12252. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12253. need_locks=warn
  12254. fi
  12255. else
  12256. need_locks=no
  12257. fi
  12258. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12259. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12260. runpath_var=
  12261. allow_undefined_flag_F77=
  12262. enable_shared_with_static_runtimes_F77=no
  12263. archive_cmds_F77=
  12264. archive_expsym_cmds_F77=
  12265. old_archive_From_new_cmds_F77=
  12266. old_archive_from_expsyms_cmds_F77=
  12267. export_dynamic_flag_spec_F77=
  12268. whole_archive_flag_spec_F77=
  12269. thread_safe_flag_spec_F77=
  12270. hardcode_libdir_flag_spec_F77=
  12271. hardcode_libdir_flag_spec_ld_F77=
  12272. hardcode_libdir_separator_F77=
  12273. hardcode_direct_F77=no
  12274. hardcode_minus_L_F77=no
  12275. hardcode_shlibpath_var_F77=unsupported
  12276. link_all_deplibs_F77=unknown
  12277. hardcode_automatic_F77=no
  12278. module_cmds_F77=
  12279. module_expsym_cmds_F77=
  12280. always_export_symbols_F77=no
  12281. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12282. # include_expsyms should be a list of space-separated symbols to be *always*
  12283. # included in the symbol list
  12284. include_expsyms_F77=
  12285. # exclude_expsyms can be an extended regexp of symbols to exclude
  12286. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12287. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12288. # as well as any symbol that contains `d'.
  12289. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12290. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12291. # platforms (ab)use it in PIC code, but their linkers get confused if
  12292. # the symbol is explicitly referenced. Since portable code cannot
  12293. # rely on this symbol name, it's probably fine to never include it in
  12294. # preloaded symbol tables.
  12295. extract_expsyms_cmds=
  12296. # Just being paranoid about ensuring that cc_basename is set.
  12297. for cc_temp in $compiler""; do
  12298. case $cc_temp in
  12299. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12300. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12301. \-*) ;;
  12302. *) break;;
  12303. esac
  12304. done
  12305. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12306. case $host_os in
  12307. cygwin* | mingw* | pw32*)
  12308. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12309. # When not using gcc, we currently assume that we are using
  12310. # Microsoft Visual C++.
  12311. if test "$GCC" != yes; then
  12312. with_gnu_ld=no
  12313. fi
  12314. ;;
  12315. interix*)
  12316. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12317. with_gnu_ld=yes
  12318. ;;
  12319. openbsd*)
  12320. with_gnu_ld=no
  12321. ;;
  12322. esac
  12323. ld_shlibs_F77=yes
  12324. if test "$with_gnu_ld" = yes; then
  12325. # If archive_cmds runs LD, not CC, wlarc should be empty
  12326. wlarc='${wl}'
  12327. # Set some defaults for GNU ld with shared library support. These
  12328. # are reset later if shared libraries are not supported. Putting them
  12329. # here allows them to be overridden if necessary.
  12330. runpath_var=LD_RUN_PATH
  12331. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12332. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12333. # ancient GNU ld didn't support --whole-archive et. al.
  12334. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12335. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12336. else
  12337. whole_archive_flag_spec_F77=
  12338. fi
  12339. supports_anon_versioning=no
  12340. case `$LD -v 2>/dev/null` in
  12341. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12342. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12343. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12344. *\ 2.11.*) ;; # other 2.11 versions
  12345. *) supports_anon_versioning=yes ;;
  12346. esac
  12347. # See if GNU ld supports shared libraries.
  12348. case $host_os in
  12349. aix3* | aix4* | aix5*)
  12350. # On AIX/PPC, the GNU linker is very broken
  12351. if test "$host_cpu" != ia64; then
  12352. ld_shlibs_F77=no
  12353. cat <<EOF 1>&2
  12354. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12355. *** to be unable to reliably create shared libraries on AIX.
  12356. *** Therefore, libtool is disabling shared libraries support. If you
  12357. *** really care for shared libraries, you may want to modify your PATH
  12358. *** so that a non-GNU linker is found, and then restart.
  12359. EOF
  12360. fi
  12361. ;;
  12362. amigaos*)
  12363. 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)'
  12364. hardcode_libdir_flag_spec_F77='-L$libdir'
  12365. hardcode_minus_L_F77=yes
  12366. # Samuel A. Falvo II <[email protected]> reports
  12367. # that the semantics of dynamic libraries on AmigaOS, at least up
  12368. # to version 4, is to share data among multiple programs linked
  12369. # with the same dynamic library. Since this doesn't match the
  12370. # behavior of shared libraries on other platforms, we can't use
  12371. # them.
  12372. ld_shlibs_F77=no
  12373. ;;
  12374. beos*)
  12375. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12376. allow_undefined_flag_F77=unsupported
  12377. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12378. # support --undefined. This deserves some investigation. FIXME
  12379. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12380. else
  12381. ld_shlibs_F77=no
  12382. fi
  12383. ;;
  12384. cygwin* | mingw* | pw32*)
  12385. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12386. # as there is no search path for DLLs.
  12387. hardcode_libdir_flag_spec_F77='-L$libdir'
  12388. allow_undefined_flag_F77=unsupported
  12389. always_export_symbols_F77=no
  12390. enable_shared_with_static_runtimes_F77=yes
  12391. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12392. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12393. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12394. # If the export-symbols file already is a .def file (1st line
  12395. # is EXPORTS), use it as is; otherwise, prepend...
  12396. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12397. cp $export_symbols $output_objdir/$soname.def;
  12398. else
  12399. echo EXPORTS > $output_objdir/$soname.def;
  12400. cat $export_symbols >> $output_objdir/$soname.def;
  12401. fi~
  12402. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12403. else
  12404. ld_shlibs_F77=no
  12405. fi
  12406. ;;
  12407. interix3*)
  12408. hardcode_direct_F77=no
  12409. hardcode_shlibpath_var_F77=no
  12410. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12411. export_dynamic_flag_spec_F77='${wl}-E'
  12412. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12413. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12414. # default) and relocated if they conflict, which is a slow very memory
  12415. # consuming and fragmenting process. To avoid this, we pick a random,
  12416. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12417. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12418. 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'
  12419. 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'
  12420. ;;
  12421. linux*)
  12422. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12423. tmp_addflag=
  12424. case $cc_basename,$host_cpu in
  12425. pgcc*) # Portland Group C compiler
  12426. 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'
  12427. tmp_addflag=' $pic_flag'
  12428. ;;
  12429. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12430. 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'
  12431. tmp_addflag=' $pic_flag -Mnomain' ;;
  12432. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12433. tmp_addflag=' -i_dynamic' ;;
  12434. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12435. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12436. ifc* | ifort*) # Intel Fortran compiler
  12437. tmp_addflag=' -nofor_main' ;;
  12438. esac
  12439. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12440. if test $supports_anon_versioning = yes; then
  12441. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12442. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12443. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12444. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12445. fi
  12446. else
  12447. ld_shlibs_F77=no
  12448. fi
  12449. ;;
  12450. netbsd*)
  12451. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12452. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12453. wlarc=
  12454. else
  12455. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12456. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12457. fi
  12458. ;;
  12459. solaris*)
  12460. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12461. ld_shlibs_F77=no
  12462. cat <<EOF 1>&2
  12463. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12464. *** create shared libraries on Solaris systems. Therefore, libtool
  12465. *** is disabling shared libraries support. We urge you to upgrade GNU
  12466. *** binutils to release 2.9.1 or newer. Another option is to modify
  12467. *** your PATH or compiler configuration so that the native linker is
  12468. *** used, and then restart.
  12469. EOF
  12470. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12471. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12472. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12473. else
  12474. ld_shlibs_F77=no
  12475. fi
  12476. ;;
  12477. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12478. case `$LD -v 2>&1` in
  12479. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12480. ld_shlibs_F77=no
  12481. cat <<_LT_EOF 1>&2
  12482. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12483. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12484. *** is disabling shared libraries support. We urge you to upgrade GNU
  12485. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12486. *** your PATH or compiler configuration so that the native linker is
  12487. *** used, and then restart.
  12488. _LT_EOF
  12489. ;;
  12490. *)
  12491. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12492. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12493. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12494. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12495. else
  12496. ld_shlibs_F77=no
  12497. fi
  12498. ;;
  12499. esac
  12500. ;;
  12501. sunos4*)
  12502. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12503. wlarc=
  12504. hardcode_direct_F77=yes
  12505. hardcode_shlibpath_var_F77=no
  12506. ;;
  12507. *)
  12508. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12509. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12510. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12511. else
  12512. ld_shlibs_F77=no
  12513. fi
  12514. ;;
  12515. esac
  12516. if test "$ld_shlibs_F77" = no; then
  12517. runpath_var=
  12518. hardcode_libdir_flag_spec_F77=
  12519. export_dynamic_flag_spec_F77=
  12520. whole_archive_flag_spec_F77=
  12521. fi
  12522. else
  12523. # PORTME fill in a description of your system's linker (not GNU ld)
  12524. case $host_os in
  12525. aix3*)
  12526. allow_undefined_flag_F77=unsupported
  12527. always_export_symbols_F77=yes
  12528. 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'
  12529. # Note: this linker hardcodes the directories in LIBPATH if there
  12530. # are no directories specified by -L.
  12531. hardcode_minus_L_F77=yes
  12532. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12533. # Neither direct hardcoding nor static linking is supported with a
  12534. # broken collect2.
  12535. hardcode_direct_F77=unsupported
  12536. fi
  12537. ;;
  12538. aix4* | aix5*)
  12539. if test "$host_cpu" = ia64; then
  12540. # On IA64, the linker does run time linking by default, so we don't
  12541. # have to do anything special.
  12542. aix_use_runtimelinking=no
  12543. exp_sym_flag='-Bexport'
  12544. no_entry_flag=""
  12545. else
  12546. # If we're using GNU nm, then we don't want the "-C" option.
  12547. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12548. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12549. 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'
  12550. else
  12551. 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'
  12552. fi
  12553. aix_use_runtimelinking=no
  12554. # Test if we are trying to use run time linking or normal
  12555. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12556. # need to do runtime linking.
  12557. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12558. for ld_flag in $LDFLAGS; do
  12559. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12560. aix_use_runtimelinking=yes
  12561. break
  12562. fi
  12563. done
  12564. ;;
  12565. esac
  12566. exp_sym_flag='-bexport'
  12567. no_entry_flag='-bnoentry'
  12568. fi
  12569. # When large executables or shared objects are built, AIX ld can
  12570. # have problems creating the table of contents. If linking a library
  12571. # or program results in "error TOC overflow" add -mminimal-toc to
  12572. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12573. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12574. archive_cmds_F77=''
  12575. hardcode_direct_F77=yes
  12576. hardcode_libdir_separator_F77=':'
  12577. link_all_deplibs_F77=yes
  12578. if test "$GCC" = yes; then
  12579. case $host_os in aix4.[012]|aix4.[012].*)
  12580. # We only want to do this on AIX 4.2 and lower, the check
  12581. # below for broken collect2 doesn't work under 4.3+
  12582. collect2name=`${CC} -print-prog-name=collect2`
  12583. if test -f "$collect2name" && \
  12584. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12585. then
  12586. # We have reworked collect2
  12587. hardcode_direct_F77=yes
  12588. else
  12589. # We have old collect2
  12590. hardcode_direct_F77=unsupported
  12591. # It fails to find uninstalled libraries when the uninstalled
  12592. # path is not listed in the libpath. Setting hardcode_minus_L
  12593. # to unsupported forces relinking
  12594. hardcode_minus_L_F77=yes
  12595. hardcode_libdir_flag_spec_F77='-L$libdir'
  12596. hardcode_libdir_separator_F77=
  12597. fi
  12598. ;;
  12599. esac
  12600. shared_flag='-shared'
  12601. if test "$aix_use_runtimelinking" = yes; then
  12602. shared_flag="$shared_flag "'${wl}-G'
  12603. fi
  12604. else
  12605. # not using gcc
  12606. if test "$host_cpu" = ia64; then
  12607. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12608. # chokes on -Wl,-G. The following line is correct:
  12609. shared_flag='-G'
  12610. else
  12611. if test "$aix_use_runtimelinking" = yes; then
  12612. shared_flag='${wl}-G'
  12613. else
  12614. shared_flag='${wl}-bM:SRE'
  12615. fi
  12616. fi
  12617. fi
  12618. # It seems that -bexpall does not export symbols beginning with
  12619. # underscore (_), so it is better to generate a list of symbols to export.
  12620. always_export_symbols_F77=yes
  12621. if test "$aix_use_runtimelinking" = yes; then
  12622. # Warning - without using the other runtime loading flags (-brtl),
  12623. # -berok will link without error, but may produce a broken library.
  12624. allow_undefined_flag_F77='-berok'
  12625. # Determine the default libpath from the value encoded in an empty executable.
  12626. cat >conftest.$ac_ext <<_ACEOF
  12627. program main
  12628. end
  12629. _ACEOF
  12630. rm -f conftest.$ac_objext conftest$ac_exeext
  12631. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12632. (eval $ac_link) 2>conftest.er1
  12633. ac_status=$?
  12634. grep -v '^ *+' conftest.er1 >conftest.err
  12635. rm -f conftest.er1
  12636. cat conftest.err >&5
  12637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12638. (exit $ac_status); } &&
  12639. { ac_try='test -z "$ac_f77_werror_flag"
  12640. || test ! -s conftest.err'
  12641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12642. (eval $ac_try) 2>&5
  12643. ac_status=$?
  12644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12645. (exit $ac_status); }; } &&
  12646. { ac_try='test -s conftest$ac_exeext'
  12647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12648. (eval $ac_try) 2>&5
  12649. ac_status=$?
  12650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12651. (exit $ac_status); }; }; then
  12652. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12653. }'`
  12654. # Check for a 64-bit object if we didn't find anything.
  12655. 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; }
  12656. }'`; fi
  12657. else
  12658. echo "$as_me: failed program was:" >&5
  12659. sed 's/^/| /' conftest.$ac_ext >&5
  12660. fi
  12661. rm -f conftest.err conftest.$ac_objext \
  12662. conftest$ac_exeext conftest.$ac_ext
  12663. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12664. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12665. 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"
  12666. else
  12667. if test "$host_cpu" = ia64; then
  12668. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12669. allow_undefined_flag_F77="-z nodefs"
  12670. 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"
  12671. else
  12672. # Determine the default libpath from the value encoded in an empty executable.
  12673. cat >conftest.$ac_ext <<_ACEOF
  12674. program main
  12675. end
  12676. _ACEOF
  12677. rm -f conftest.$ac_objext conftest$ac_exeext
  12678. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12679. (eval $ac_link) 2>conftest.er1
  12680. ac_status=$?
  12681. grep -v '^ *+' conftest.er1 >conftest.err
  12682. rm -f conftest.er1
  12683. cat conftest.err >&5
  12684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12685. (exit $ac_status); } &&
  12686. { ac_try='test -z "$ac_f77_werror_flag"
  12687. || test ! -s conftest.err'
  12688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12689. (eval $ac_try) 2>&5
  12690. ac_status=$?
  12691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12692. (exit $ac_status); }; } &&
  12693. { ac_try='test -s conftest$ac_exeext'
  12694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12695. (eval $ac_try) 2>&5
  12696. ac_status=$?
  12697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12698. (exit $ac_status); }; }; then
  12699. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12700. }'`
  12701. # Check for a 64-bit object if we didn't find anything.
  12702. 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; }
  12703. }'`; fi
  12704. else
  12705. echo "$as_me: failed program was:" >&5
  12706. sed 's/^/| /' conftest.$ac_ext >&5
  12707. fi
  12708. rm -f conftest.err conftest.$ac_objext \
  12709. conftest$ac_exeext conftest.$ac_ext
  12710. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12711. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12712. # Warning - without using the other run time loading flags,
  12713. # -berok will link without error, but may produce a broken library.
  12714. no_undefined_flag_F77=' ${wl}-bernotok'
  12715. allow_undefined_flag_F77=' ${wl}-berok'
  12716. # Exported symbols can be pulled into shared objects from archives
  12717. whole_archive_flag_spec_F77='$convenience'
  12718. archive_cmds_need_lc_F77=yes
  12719. # This is similar to how AIX traditionally builds its shared libraries.
  12720. 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'
  12721. fi
  12722. fi
  12723. ;;
  12724. amigaos*)
  12725. 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)'
  12726. hardcode_libdir_flag_spec_F77='-L$libdir'
  12727. hardcode_minus_L_F77=yes
  12728. # see comment about different semantics on the GNU ld section
  12729. ld_shlibs_F77=no
  12730. ;;
  12731. bsdi[45]*)
  12732. export_dynamic_flag_spec_F77=-rdynamic
  12733. ;;
  12734. cygwin* | mingw* | pw32*)
  12735. # When not using gcc, we currently assume that we are using
  12736. # Microsoft Visual C++.
  12737. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12738. # no search path for DLLs.
  12739. hardcode_libdir_flag_spec_F77=' '
  12740. allow_undefined_flag_F77=unsupported
  12741. # Tell ltmain to make .lib files, not .a files.
  12742. libext=lib
  12743. # Tell ltmain to make .dll files, not .so files.
  12744. shrext_cmds=".dll"
  12745. # FIXME: Setting linknames here is a bad hack.
  12746. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12747. # The linker will automatically build a .lib file if we build a DLL.
  12748. old_archive_From_new_cmds_F77='true'
  12749. # FIXME: Should let the user specify the lib program.
  12750. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12751. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12752. enable_shared_with_static_runtimes_F77=yes
  12753. ;;
  12754. darwin* | rhapsody*)
  12755. case $host_os in
  12756. rhapsody* | darwin1.[012])
  12757. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12758. ;;
  12759. *) # Darwin 1.3 on
  12760. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12761. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12762. else
  12763. case ${MACOSX_DEPLOYMENT_TARGET} in
  12764. 10.[012])
  12765. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12766. ;;
  12767. 10.*)
  12768. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12769. ;;
  12770. esac
  12771. fi
  12772. ;;
  12773. esac
  12774. archive_cmds_need_lc_F77=no
  12775. hardcode_direct_F77=no
  12776. hardcode_automatic_F77=yes
  12777. hardcode_shlibpath_var_F77=unsupported
  12778. whole_archive_flag_spec_F77=''
  12779. link_all_deplibs_F77=yes
  12780. if test "$GCC" = yes ; then
  12781. output_verbose_link_cmd='echo'
  12782. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12783. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12784. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12785. 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}'
  12786. 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}'
  12787. else
  12788. case $cc_basename in
  12789. xlc*)
  12790. output_verbose_link_cmd='echo'
  12791. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12792. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12793. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12794. 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}'
  12795. 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}'
  12796. ;;
  12797. *)
  12798. ld_shlibs_F77=no
  12799. ;;
  12800. esac
  12801. fi
  12802. ;;
  12803. dgux*)
  12804. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12805. hardcode_libdir_flag_spec_F77='-L$libdir'
  12806. hardcode_shlibpath_var_F77=no
  12807. ;;
  12808. freebsd1*)
  12809. ld_shlibs_F77=no
  12810. ;;
  12811. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12812. # support. Future versions do this automatically, but an explicit c++rt0.o
  12813. # does not break anything, and helps significantly (at the cost of a little
  12814. # extra space).
  12815. freebsd2.2*)
  12816. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12817. hardcode_libdir_flag_spec_F77='-R$libdir'
  12818. hardcode_direct_F77=yes
  12819. hardcode_shlibpath_var_F77=no
  12820. ;;
  12821. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12822. freebsd2*)
  12823. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12824. hardcode_direct_F77=yes
  12825. hardcode_minus_L_F77=yes
  12826. hardcode_shlibpath_var_F77=no
  12827. ;;
  12828. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12829. freebsd* | kfreebsd*-gnu | dragonfly*)
  12830. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12831. hardcode_libdir_flag_spec_F77='-R$libdir'
  12832. hardcode_direct_F77=yes
  12833. hardcode_shlibpath_var_F77=no
  12834. ;;
  12835. hpux9*)
  12836. if test "$GCC" = yes; then
  12837. 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'
  12838. else
  12839. 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'
  12840. fi
  12841. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12842. hardcode_libdir_separator_F77=:
  12843. hardcode_direct_F77=yes
  12844. # hardcode_minus_L: Not really in the search PATH,
  12845. # but as the default location of the library.
  12846. hardcode_minus_L_F77=yes
  12847. export_dynamic_flag_spec_F77='${wl}-E'
  12848. ;;
  12849. hpux10*)
  12850. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12851. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12852. else
  12853. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12854. fi
  12855. if test "$with_gnu_ld" = no; then
  12856. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12857. hardcode_libdir_separator_F77=:
  12858. hardcode_direct_F77=yes
  12859. export_dynamic_flag_spec_F77='${wl}-E'
  12860. # hardcode_minus_L: Not really in the search PATH,
  12861. # but as the default location of the library.
  12862. hardcode_minus_L_F77=yes
  12863. fi
  12864. ;;
  12865. hpux11*)
  12866. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12867. case $host_cpu in
  12868. hppa*64*)
  12869. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12870. ;;
  12871. ia64*)
  12872. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12873. ;;
  12874. *)
  12875. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12876. ;;
  12877. esac
  12878. else
  12879. case $host_cpu in
  12880. hppa*64*)
  12881. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12882. ;;
  12883. ia64*)
  12884. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12885. ;;
  12886. *)
  12887. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12888. ;;
  12889. esac
  12890. fi
  12891. if test "$with_gnu_ld" = no; then
  12892. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12893. hardcode_libdir_separator_F77=:
  12894. case $host_cpu in
  12895. hppa*64*|ia64*)
  12896. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12897. hardcode_direct_F77=no
  12898. hardcode_shlibpath_var_F77=no
  12899. ;;
  12900. *)
  12901. hardcode_direct_F77=yes
  12902. export_dynamic_flag_spec_F77='${wl}-E'
  12903. # hardcode_minus_L: Not really in the search PATH,
  12904. # but as the default location of the library.
  12905. hardcode_minus_L_F77=yes
  12906. ;;
  12907. esac
  12908. fi
  12909. ;;
  12910. irix5* | irix6* | nonstopux*)
  12911. if test "$GCC" = yes; then
  12912. 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'
  12913. else
  12914. 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'
  12915. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12916. fi
  12917. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12918. hardcode_libdir_separator_F77=:
  12919. link_all_deplibs_F77=yes
  12920. ;;
  12921. netbsd*)
  12922. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12923. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12924. else
  12925. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12926. fi
  12927. hardcode_libdir_flag_spec_F77='-R$libdir'
  12928. hardcode_direct_F77=yes
  12929. hardcode_shlibpath_var_F77=no
  12930. ;;
  12931. newsos6)
  12932. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12933. hardcode_direct_F77=yes
  12934. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12935. hardcode_libdir_separator_F77=:
  12936. hardcode_shlibpath_var_F77=no
  12937. ;;
  12938. openbsd*)
  12939. hardcode_direct_F77=yes
  12940. hardcode_shlibpath_var_F77=no
  12941. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12942. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12943. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12944. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12945. export_dynamic_flag_spec_F77='${wl}-E'
  12946. else
  12947. case $host_os in
  12948. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12949. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12950. hardcode_libdir_flag_spec_F77='-R$libdir'
  12951. ;;
  12952. *)
  12953. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12954. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12955. ;;
  12956. esac
  12957. fi
  12958. ;;
  12959. os2*)
  12960. hardcode_libdir_flag_spec_F77='-L$libdir'
  12961. hardcode_minus_L_F77=yes
  12962. allow_undefined_flag_F77=unsupported
  12963. 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'
  12964. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12965. ;;
  12966. osf3*)
  12967. if test "$GCC" = yes; then
  12968. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12969. 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'
  12970. else
  12971. allow_undefined_flag_F77=' -expect_unresolved \*'
  12972. 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'
  12973. fi
  12974. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12975. hardcode_libdir_separator_F77=:
  12976. ;;
  12977. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12978. if test "$GCC" = yes; then
  12979. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12980. 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'
  12981. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12982. else
  12983. allow_undefined_flag_F77=' -expect_unresolved \*'
  12984. 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'
  12985. 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~
  12986. $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'
  12987. # Both c and cxx compiler support -rpath directly
  12988. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12989. fi
  12990. hardcode_libdir_separator_F77=:
  12991. ;;
  12992. solaris*)
  12993. no_undefined_flag_F77=' -z text'
  12994. if test "$GCC" = yes; then
  12995. wlarc='${wl}'
  12996. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12997. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12998. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12999. else
  13000. wlarc=''
  13001. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13002. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13003. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13004. fi
  13005. hardcode_libdir_flag_spec_F77='-R$libdir'
  13006. hardcode_shlibpath_var_F77=no
  13007. case $host_os in
  13008. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13009. *)
  13010. # The compiler driver will combine linker options so we
  13011. # cannot just pass the convience library names through
  13012. # without $wl, iff we do not link with $LD.
  13013. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13014. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13015. case $wlarc in
  13016. '')
  13017. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13018. *)
  13019. 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' ;;
  13020. esac ;;
  13021. esac
  13022. link_all_deplibs_F77=yes
  13023. ;;
  13024. sunos4*)
  13025. if test "x$host_vendor" = xsequent; then
  13026. # Use $CC to link under sequent, because it throws in some extra .o
  13027. # files that make .init and .fini sections work.
  13028. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13029. else
  13030. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13031. fi
  13032. hardcode_libdir_flag_spec_F77='-L$libdir'
  13033. hardcode_direct_F77=yes
  13034. hardcode_minus_L_F77=yes
  13035. hardcode_shlibpath_var_F77=no
  13036. ;;
  13037. sysv4)
  13038. case $host_vendor in
  13039. sni)
  13040. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13041. hardcode_direct_F77=yes # is this really true???
  13042. ;;
  13043. siemens)
  13044. ## LD is ld it makes a PLAMLIB
  13045. ## CC just makes a GrossModule.
  13046. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13047. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13048. hardcode_direct_F77=no
  13049. ;;
  13050. motorola)
  13051. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13052. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13053. ;;
  13054. esac
  13055. runpath_var='LD_RUN_PATH'
  13056. hardcode_shlibpath_var_F77=no
  13057. ;;
  13058. sysv4.3*)
  13059. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13060. hardcode_shlibpath_var_F77=no
  13061. export_dynamic_flag_spec_F77='-Bexport'
  13062. ;;
  13063. sysv4*MP*)
  13064. if test -d /usr/nec; then
  13065. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13066. hardcode_shlibpath_var_F77=no
  13067. runpath_var=LD_RUN_PATH
  13068. hardcode_runpath_var=yes
  13069. ld_shlibs_F77=yes
  13070. fi
  13071. ;;
  13072. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13073. no_undefined_flag_F77='${wl}-z,text'
  13074. archive_cmds_need_lc_F77=no
  13075. hardcode_shlibpath_var_F77=no
  13076. runpath_var='LD_RUN_PATH'
  13077. if test "$GCC" = yes; then
  13078. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13079. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13080. else
  13081. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13082. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13083. fi
  13084. ;;
  13085. sysv5* | sco3.2v5* | sco5v6*)
  13086. # Note: We can NOT use -z defs as we might desire, because we do not
  13087. # link with -lc, and that would cause any symbols used from libc to
  13088. # always be unresolved, which means just about no library would
  13089. # ever link correctly. If we're not using GNU ld we use -z text
  13090. # though, which does catch some bad symbols but isn't as heavy-handed
  13091. # as -z defs.
  13092. no_undefined_flag_F77='${wl}-z,text'
  13093. allow_undefined_flag_F77='${wl}-z,nodefs'
  13094. archive_cmds_need_lc_F77=no
  13095. hardcode_shlibpath_var_F77=no
  13096. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13097. hardcode_libdir_separator_F77=':'
  13098. link_all_deplibs_F77=yes
  13099. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13100. runpath_var='LD_RUN_PATH'
  13101. if test "$GCC" = yes; then
  13102. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13103. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13104. else
  13105. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13106. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13107. fi
  13108. ;;
  13109. uts4*)
  13110. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13111. hardcode_libdir_flag_spec_F77='-L$libdir'
  13112. hardcode_shlibpath_var_F77=no
  13113. ;;
  13114. *)
  13115. ld_shlibs_F77=no
  13116. ;;
  13117. esac
  13118. fi
  13119. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13120. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13121. test "$ld_shlibs_F77" = no && can_build_shared=no
  13122. #
  13123. # Do we need to explicitly link libc?
  13124. #
  13125. case "x$archive_cmds_need_lc_F77" in
  13126. x|xyes)
  13127. # Assume -lc should be added
  13128. archive_cmds_need_lc_F77=yes
  13129. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13130. case $archive_cmds_F77 in
  13131. *'~'*)
  13132. # FIXME: we may have to deal with multi-command sequences.
  13133. ;;
  13134. '$CC '*)
  13135. # Test whether the compiler implicitly links with -lc since on some
  13136. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13137. # to ld, don't add -lc before -lgcc.
  13138. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13139. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13140. $rm conftest*
  13141. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13142. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13143. (eval $ac_compile) 2>&5
  13144. ac_status=$?
  13145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13146. (exit $ac_status); } 2>conftest.err; then
  13147. soname=conftest
  13148. lib=conftest
  13149. libobjs=conftest.$ac_objext
  13150. deplibs=
  13151. wl=$lt_prog_compiler_wl_F77
  13152. pic_flag=$lt_prog_compiler_pic_F77
  13153. compiler_flags=-v
  13154. linker_flags=-v
  13155. verstring=
  13156. output_objdir=.
  13157. libname=conftest
  13158. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13159. allow_undefined_flag_F77=
  13160. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13161. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13162. ac_status=$?
  13163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13164. (exit $ac_status); }
  13165. then
  13166. archive_cmds_need_lc_F77=no
  13167. else
  13168. archive_cmds_need_lc_F77=yes
  13169. fi
  13170. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13171. else
  13172. cat conftest.err 1>&5
  13173. fi
  13174. $rm conftest*
  13175. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13176. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13177. ;;
  13178. esac
  13179. fi
  13180. ;;
  13181. esac
  13182. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13183. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13184. library_names_spec=
  13185. libname_spec='lib$name'
  13186. soname_spec=
  13187. shrext_cmds=".so"
  13188. postinstall_cmds=
  13189. postuninstall_cmds=
  13190. finish_cmds=
  13191. finish_eval=
  13192. shlibpath_var=
  13193. shlibpath_overrides_runpath=unknown
  13194. version_type=none
  13195. dynamic_linker="$host_os ld.so"
  13196. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13197. if test "$GCC" = yes; then
  13198. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13199. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13200. # if the path contains ";" then we assume it to be the separator
  13201. # otherwise default to the standard path separator (i.e. ":") - it is
  13202. # assumed that no part of a normal pathname contains ";" but that should
  13203. # okay in the real world where ";" in dirpaths is itself problematic.
  13204. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13205. else
  13206. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13207. fi
  13208. else
  13209. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13210. fi
  13211. need_lib_prefix=unknown
  13212. hardcode_into_libs=no
  13213. # when you set need_version to no, make sure it does not cause -set_version
  13214. # flags to be left without arguments
  13215. need_version=unknown
  13216. case $host_os in
  13217. aix3*)
  13218. version_type=linux
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13220. shlibpath_var=LIBPATH
  13221. # AIX 3 has no versioning support, so we append a major version to the name.
  13222. soname_spec='${libname}${release}${shared_ext}$major'
  13223. ;;
  13224. aix4* | aix5*)
  13225. version_type=linux
  13226. need_lib_prefix=no
  13227. need_version=no
  13228. hardcode_into_libs=yes
  13229. if test "$host_cpu" = ia64; then
  13230. # AIX 5 supports IA64
  13231. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. else
  13234. # With GCC up to 2.95.x, collect2 would create an import file
  13235. # for dependence libraries. The import file would start with
  13236. # the line `#! .'. This would cause the generated library to
  13237. # depend on `.', always an invalid library. This was fixed in
  13238. # development snapshots of GCC prior to 3.0.
  13239. case $host_os in
  13240. aix4 | aix4.[01] | aix4.[01].*)
  13241. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13242. echo ' yes '
  13243. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13244. :
  13245. else
  13246. can_build_shared=no
  13247. fi
  13248. ;;
  13249. esac
  13250. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13251. # soname into executable. Probably we can add versioning support to
  13252. # collect2, so additional links can be useful in future.
  13253. if test "$aix_use_runtimelinking" = yes; then
  13254. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13255. # instead of lib<name>.a to let people know that these are not
  13256. # typical AIX shared libraries.
  13257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13258. else
  13259. # We preserve .a as extension for shared libraries through AIX4.2
  13260. # and later when we are not doing run time linking.
  13261. library_names_spec='${libname}${release}.a $libname.a'
  13262. soname_spec='${libname}${release}${shared_ext}$major'
  13263. fi
  13264. shlibpath_var=LIBPATH
  13265. fi
  13266. ;;
  13267. amigaos*)
  13268. library_names_spec='$libname.ixlibrary $libname.a'
  13269. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13270. 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'
  13271. ;;
  13272. beos*)
  13273. library_names_spec='${libname}${shared_ext}'
  13274. dynamic_linker="$host_os ld.so"
  13275. shlibpath_var=LIBRARY_PATH
  13276. ;;
  13277. bsdi[45]*)
  13278. version_type=linux
  13279. need_version=no
  13280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13281. soname_spec='${libname}${release}${shared_ext}$major'
  13282. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13283. shlibpath_var=LD_LIBRARY_PATH
  13284. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13285. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13286. # the default ld.so.conf also contains /usr/contrib/lib and
  13287. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13288. # libtool to hard-code these into programs
  13289. ;;
  13290. cygwin* | mingw* | pw32*)
  13291. version_type=windows
  13292. shrext_cmds=".dll"
  13293. need_version=no
  13294. need_lib_prefix=no
  13295. case $GCC,$host_os in
  13296. yes,cygwin* | yes,mingw* | yes,pw32*)
  13297. library_names_spec='$libname.dll.a'
  13298. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13299. postinstall_cmds='base_file=`basename \${file}`~
  13300. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13301. dldir=$destdir/`dirname \$dlpath`~
  13302. test -d \$dldir || mkdir -p \$dldir~
  13303. $install_prog $dir/$dlname \$dldir/$dlname~
  13304. chmod a+x \$dldir/$dlname'
  13305. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13306. dlpath=$dir/\$dldll~
  13307. $rm \$dlpath'
  13308. shlibpath_overrides_runpath=yes
  13309. case $host_os in
  13310. cygwin*)
  13311. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13312. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13313. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13314. ;;
  13315. mingw*)
  13316. # MinGW DLLs use traditional 'lib' prefix
  13317. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13318. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13319. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13320. # It is most probably a Windows format PATH printed by
  13321. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13322. # path with ; separators, and with drive letters. We can handle the
  13323. # drive letters (cygwin fileutils understands them), so leave them,
  13324. # especially as we might pass files found there to a mingw objdump,
  13325. # which wouldn't understand a cygwinified path. Ahh.
  13326. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13327. else
  13328. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13329. fi
  13330. ;;
  13331. pw32*)
  13332. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13333. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13334. ;;
  13335. esac
  13336. ;;
  13337. *)
  13338. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13339. ;;
  13340. esac
  13341. dynamic_linker='Win32 ld.exe'
  13342. # FIXME: first we should search . and the directory the executable is in
  13343. shlibpath_var=PATH
  13344. ;;
  13345. darwin* | rhapsody*)
  13346. dynamic_linker="$host_os dyld"
  13347. version_type=darwin
  13348. need_lib_prefix=no
  13349. need_version=no
  13350. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13351. soname_spec='${libname}${release}${major}$shared_ext'
  13352. shlibpath_overrides_runpath=yes
  13353. shlibpath_var=DYLD_LIBRARY_PATH
  13354. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13355. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13356. if test "$GCC" = yes; then
  13357. 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"`
  13358. else
  13359. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13360. fi
  13361. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13362. ;;
  13363. dgux*)
  13364. version_type=linux
  13365. need_lib_prefix=no
  13366. need_version=no
  13367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13368. soname_spec='${libname}${release}${shared_ext}$major'
  13369. shlibpath_var=LD_LIBRARY_PATH
  13370. ;;
  13371. freebsd1*)
  13372. dynamic_linker=no
  13373. ;;
  13374. kfreebsd*-gnu)
  13375. version_type=linux
  13376. need_lib_prefix=no
  13377. need_version=no
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13379. soname_spec='${libname}${release}${shared_ext}$major'
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. shlibpath_overrides_runpath=no
  13382. hardcode_into_libs=yes
  13383. dynamic_linker='GNU ld.so'
  13384. ;;
  13385. freebsd* | dragonfly*)
  13386. # DragonFly does not have aout. When/if they implement a new
  13387. # versioning mechanism, adjust this.
  13388. if test -x /usr/bin/objformat; then
  13389. objformat=`/usr/bin/objformat`
  13390. else
  13391. case $host_os in
  13392. freebsd[123]*) objformat=aout ;;
  13393. *) objformat=elf ;;
  13394. esac
  13395. fi
  13396. version_type=freebsd-$objformat
  13397. case $version_type in
  13398. freebsd-elf*)
  13399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13400. need_version=no
  13401. need_lib_prefix=no
  13402. ;;
  13403. freebsd-*)
  13404. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13405. need_version=yes
  13406. ;;
  13407. esac
  13408. shlibpath_var=LD_LIBRARY_PATH
  13409. case $host_os in
  13410. freebsd2*)
  13411. shlibpath_overrides_runpath=yes
  13412. ;;
  13413. freebsd3.[01]* | freebsdelf3.[01]*)
  13414. shlibpath_overrides_runpath=yes
  13415. hardcode_into_libs=yes
  13416. ;;
  13417. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13418. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13419. shlibpath_overrides_runpath=no
  13420. hardcode_into_libs=yes
  13421. ;;
  13422. freebsd*) # from 4.6 on
  13423. shlibpath_overrides_runpath=yes
  13424. hardcode_into_libs=yes
  13425. ;;
  13426. esac
  13427. ;;
  13428. gnu*)
  13429. version_type=linux
  13430. need_lib_prefix=no
  13431. need_version=no
  13432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13433. soname_spec='${libname}${release}${shared_ext}$major'
  13434. shlibpath_var=LD_LIBRARY_PATH
  13435. hardcode_into_libs=yes
  13436. ;;
  13437. hpux9* | hpux10* | hpux11*)
  13438. # Give a soname corresponding to the major version so that dld.sl refuses to
  13439. # link against other versions.
  13440. version_type=sunos
  13441. need_lib_prefix=no
  13442. need_version=no
  13443. case $host_cpu in
  13444. ia64*)
  13445. shrext_cmds='.so'
  13446. hardcode_into_libs=yes
  13447. dynamic_linker="$host_os dld.so"
  13448. shlibpath_var=LD_LIBRARY_PATH
  13449. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13451. soname_spec='${libname}${release}${shared_ext}$major'
  13452. if test "X$HPUX_IA64_MODE" = X32; then
  13453. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13454. else
  13455. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13456. fi
  13457. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13458. ;;
  13459. hppa*64*)
  13460. shrext_cmds='.sl'
  13461. hardcode_into_libs=yes
  13462. dynamic_linker="$host_os dld.sl"
  13463. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13468. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13469. ;;
  13470. *)
  13471. shrext_cmds='.sl'
  13472. dynamic_linker="$host_os dld.sl"
  13473. shlibpath_var=SHLIB_PATH
  13474. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13476. soname_spec='${libname}${release}${shared_ext}$major'
  13477. ;;
  13478. esac
  13479. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13480. postinstall_cmds='chmod 555 $lib'
  13481. ;;
  13482. interix3*)
  13483. version_type=linux
  13484. need_lib_prefix=no
  13485. need_version=no
  13486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13487. soname_spec='${libname}${release}${shared_ext}$major'
  13488. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13489. shlibpath_var=LD_LIBRARY_PATH
  13490. shlibpath_overrides_runpath=no
  13491. hardcode_into_libs=yes
  13492. ;;
  13493. irix5* | irix6* | nonstopux*)
  13494. case $host_os in
  13495. nonstopux*) version_type=nonstopux ;;
  13496. *)
  13497. if test "$lt_cv_prog_gnu_ld" = yes; then
  13498. version_type=linux
  13499. else
  13500. version_type=irix
  13501. fi ;;
  13502. esac
  13503. need_lib_prefix=no
  13504. need_version=no
  13505. soname_spec='${libname}${release}${shared_ext}$major'
  13506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13507. case $host_os in
  13508. irix5* | nonstopux*)
  13509. libsuff= shlibsuff=
  13510. ;;
  13511. *)
  13512. case $LD in # libtool.m4 will add one of these switches to LD
  13513. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13514. libsuff= shlibsuff= libmagic=32-bit;;
  13515. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13516. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13517. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13518. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13519. *) libsuff= shlibsuff= libmagic=never-match;;
  13520. esac
  13521. ;;
  13522. esac
  13523. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13524. shlibpath_overrides_runpath=no
  13525. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13526. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13527. hardcode_into_libs=yes
  13528. ;;
  13529. # No shared lib support for Linux oldld, aout, or coff.
  13530. linux*oldld* | linux*aout* | linux*coff*)
  13531. dynamic_linker=no
  13532. ;;
  13533. # This must be Linux ELF.
  13534. linux*)
  13535. version_type=linux
  13536. need_lib_prefix=no
  13537. need_version=no
  13538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13539. soname_spec='${libname}${release}${shared_ext}$major'
  13540. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13541. shlibpath_var=LD_LIBRARY_PATH
  13542. shlibpath_overrides_runpath=no
  13543. # This implies no fast_install, which is unacceptable.
  13544. # Some rework will be needed to allow for fast_install
  13545. # before this can be enabled.
  13546. hardcode_into_libs=yes
  13547. # find out which ABI we are using
  13548. libsuff=
  13549. case "$host_cpu" in
  13550. x86_64*|s390x*|powerpc64*)
  13551. echo '#line 15022 "configure"' > conftest.$ac_ext
  13552. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13553. (eval $ac_compile) 2>&5
  13554. ac_status=$?
  13555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13556. (exit $ac_status); }; then
  13557. case `/usr/bin/file conftest.$ac_objext` in
  13558. *64-bit*)
  13559. libsuff=64
  13560. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13561. ;;
  13562. esac
  13563. fi
  13564. rm -rf conftest*
  13565. ;;
  13566. esac
  13567. # Append ld.so.conf contents to the search path
  13568. if test -f /etc/ld.so.conf; then
  13569. 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' ' '`
  13570. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13571. fi
  13572. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13573. # powerpc, because MkLinux only supported shared libraries with the
  13574. # GNU dynamic linker. Since this was broken with cross compilers,
  13575. # most powerpc-linux boxes support dynamic linking these days and
  13576. # people can always --disable-shared, the test was removed, and we
  13577. # assume the GNU/Linux dynamic linker is in use.
  13578. dynamic_linker='GNU/Linux ld.so'
  13579. ;;
  13580. knetbsd*-gnu)
  13581. version_type=linux
  13582. need_lib_prefix=no
  13583. need_version=no
  13584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13585. soname_spec='${libname}${release}${shared_ext}$major'
  13586. shlibpath_var=LD_LIBRARY_PATH
  13587. shlibpath_overrides_runpath=no
  13588. hardcode_into_libs=yes
  13589. dynamic_linker='GNU ld.so'
  13590. ;;
  13591. netbsd*)
  13592. version_type=sunos
  13593. need_lib_prefix=no
  13594. need_version=no
  13595. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13597. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13598. dynamic_linker='NetBSD (a.out) ld.so'
  13599. else
  13600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13601. soname_spec='${libname}${release}${shared_ext}$major'
  13602. dynamic_linker='NetBSD ld.elf_so'
  13603. fi
  13604. shlibpath_var=LD_LIBRARY_PATH
  13605. shlibpath_overrides_runpath=yes
  13606. hardcode_into_libs=yes
  13607. ;;
  13608. newsos6)
  13609. version_type=linux
  13610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13611. shlibpath_var=LD_LIBRARY_PATH
  13612. shlibpath_overrides_runpath=yes
  13613. ;;
  13614. nto-qnx*)
  13615. version_type=linux
  13616. need_lib_prefix=no
  13617. need_version=no
  13618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13619. soname_spec='${libname}${release}${shared_ext}$major'
  13620. shlibpath_var=LD_LIBRARY_PATH
  13621. shlibpath_overrides_runpath=yes
  13622. ;;
  13623. openbsd*)
  13624. version_type=sunos
  13625. sys_lib_dlsearch_path_spec="/usr/lib"
  13626. need_lib_prefix=no
  13627. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13628. case $host_os in
  13629. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13630. *) need_version=no ;;
  13631. esac
  13632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13633. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13634. shlibpath_var=LD_LIBRARY_PATH
  13635. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13636. case $host_os in
  13637. openbsd2.[89] | openbsd2.[89].*)
  13638. shlibpath_overrides_runpath=no
  13639. ;;
  13640. *)
  13641. shlibpath_overrides_runpath=yes
  13642. ;;
  13643. esac
  13644. else
  13645. shlibpath_overrides_runpath=yes
  13646. fi
  13647. ;;
  13648. os2*)
  13649. libname_spec='$name'
  13650. shrext_cmds=".dll"
  13651. need_lib_prefix=no
  13652. library_names_spec='$libname${shared_ext} $libname.a'
  13653. dynamic_linker='OS/2 ld.exe'
  13654. shlibpath_var=LIBPATH
  13655. ;;
  13656. osf3* | osf4* | osf5*)
  13657. version_type=osf
  13658. need_lib_prefix=no
  13659. need_version=no
  13660. soname_spec='${libname}${release}${shared_ext}$major'
  13661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13662. shlibpath_var=LD_LIBRARY_PATH
  13663. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13664. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13665. ;;
  13666. solaris*)
  13667. version_type=linux
  13668. need_lib_prefix=no
  13669. need_version=no
  13670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13671. soname_spec='${libname}${release}${shared_ext}$major'
  13672. shlibpath_var=LD_LIBRARY_PATH
  13673. shlibpath_overrides_runpath=yes
  13674. hardcode_into_libs=yes
  13675. # ldd complains unless libraries are executable
  13676. postinstall_cmds='chmod +x $lib'
  13677. ;;
  13678. sunos4*)
  13679. version_type=sunos
  13680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13681. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13682. shlibpath_var=LD_LIBRARY_PATH
  13683. shlibpath_overrides_runpath=yes
  13684. if test "$with_gnu_ld" = yes; then
  13685. need_lib_prefix=no
  13686. fi
  13687. need_version=yes
  13688. ;;
  13689. sysv4 | sysv4.3*)
  13690. version_type=linux
  13691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13692. soname_spec='${libname}${release}${shared_ext}$major'
  13693. shlibpath_var=LD_LIBRARY_PATH
  13694. case $host_vendor in
  13695. sni)
  13696. shlibpath_overrides_runpath=no
  13697. need_lib_prefix=no
  13698. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13699. runpath_var=LD_RUN_PATH
  13700. ;;
  13701. siemens)
  13702. need_lib_prefix=no
  13703. ;;
  13704. motorola)
  13705. need_lib_prefix=no
  13706. need_version=no
  13707. shlibpath_overrides_runpath=no
  13708. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13709. ;;
  13710. esac
  13711. ;;
  13712. sysv4*MP*)
  13713. if test -d /usr/nec ;then
  13714. version_type=linux
  13715. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13716. soname_spec='$libname${shared_ext}.$major'
  13717. shlibpath_var=LD_LIBRARY_PATH
  13718. fi
  13719. ;;
  13720. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13721. version_type=freebsd-elf
  13722. need_lib_prefix=no
  13723. need_version=no
  13724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13725. soname_spec='${libname}${release}${shared_ext}$major'
  13726. shlibpath_var=LD_LIBRARY_PATH
  13727. hardcode_into_libs=yes
  13728. if test "$with_gnu_ld" = yes; then
  13729. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13730. shlibpath_overrides_runpath=no
  13731. else
  13732. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13733. shlibpath_overrides_runpath=yes
  13734. case $host_os in
  13735. sco3.2v5*)
  13736. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13737. ;;
  13738. esac
  13739. fi
  13740. sys_lib_dlsearch_path_spec='/usr/lib'
  13741. ;;
  13742. uts4*)
  13743. version_type=linux
  13744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13745. soname_spec='${libname}${release}${shared_ext}$major'
  13746. shlibpath_var=LD_LIBRARY_PATH
  13747. ;;
  13748. *)
  13749. dynamic_linker=no
  13750. ;;
  13751. esac
  13752. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13753. echo "${ECHO_T}$dynamic_linker" >&6
  13754. test "$dynamic_linker" = no && can_build_shared=no
  13755. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13756. if test "$GCC" = yes; then
  13757. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13758. fi
  13759. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13760. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13761. hardcode_action_F77=
  13762. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13763. test -n "$runpath_var_F77" || \
  13764. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13765. # We can hardcode non-existant directories.
  13766. if test "$hardcode_direct_F77" != no &&
  13767. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13768. # have to relink, otherwise we might link with an installed library
  13769. # when we should be linking with a yet-to-be-installed one
  13770. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13771. test "$hardcode_minus_L_F77" != no; then
  13772. # Linking always hardcodes the temporary library directory.
  13773. hardcode_action_F77=relink
  13774. else
  13775. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13776. hardcode_action_F77=immediate
  13777. fi
  13778. else
  13779. # We cannot hardcode anything, or else we can only hardcode existing
  13780. # directories.
  13781. hardcode_action_F77=unsupported
  13782. fi
  13783. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13784. echo "${ECHO_T}$hardcode_action_F77" >&6
  13785. if test "$hardcode_action_F77" = relink; then
  13786. # Fast installation is not supported
  13787. enable_fast_install=no
  13788. elif test "$shlibpath_overrides_runpath" = yes ||
  13789. test "$enable_shared" = no; then
  13790. # Fast installation is not necessary
  13791. enable_fast_install=needless
  13792. fi
  13793. # The else clause should only fire when bootstrapping the
  13794. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13795. # with your package, and you will get complaints that there are
  13796. # no rules to generate ltmain.sh.
  13797. if test -f "$ltmain"; then
  13798. # See if we are running on zsh, and set the options which allow our commands through
  13799. # without removal of \ escapes.
  13800. if test -n "${ZSH_VERSION+set}" ; then
  13801. setopt NO_GLOB_SUBST
  13802. fi
  13803. # Now quote all the things that may contain metacharacters while being
  13804. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13805. # variables and quote the copies for generation of the libtool script.
  13806. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13807. SED SHELL STRIP \
  13808. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13809. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13810. deplibs_check_method reload_flag reload_cmds need_locks \
  13811. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13812. lt_cv_sys_global_symbol_to_c_name_address \
  13813. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13814. old_postinstall_cmds old_postuninstall_cmds \
  13815. compiler_F77 \
  13816. CC_F77 \
  13817. LD_F77 \
  13818. lt_prog_compiler_wl_F77 \
  13819. lt_prog_compiler_pic_F77 \
  13820. lt_prog_compiler_static_F77 \
  13821. lt_prog_compiler_no_builtin_flag_F77 \
  13822. export_dynamic_flag_spec_F77 \
  13823. thread_safe_flag_spec_F77 \
  13824. whole_archive_flag_spec_F77 \
  13825. enable_shared_with_static_runtimes_F77 \
  13826. old_archive_cmds_F77 \
  13827. old_archive_from_new_cmds_F77 \
  13828. predep_objects_F77 \
  13829. postdep_objects_F77 \
  13830. predeps_F77 \
  13831. postdeps_F77 \
  13832. compiler_lib_search_path_F77 \
  13833. archive_cmds_F77 \
  13834. archive_expsym_cmds_F77 \
  13835. postinstall_cmds_F77 \
  13836. postuninstall_cmds_F77 \
  13837. old_archive_from_expsyms_cmds_F77 \
  13838. allow_undefined_flag_F77 \
  13839. no_undefined_flag_F77 \
  13840. export_symbols_cmds_F77 \
  13841. hardcode_libdir_flag_spec_F77 \
  13842. hardcode_libdir_flag_spec_ld_F77 \
  13843. hardcode_libdir_separator_F77 \
  13844. hardcode_automatic_F77 \
  13845. module_cmds_F77 \
  13846. module_expsym_cmds_F77 \
  13847. lt_cv_prog_compiler_c_o_F77 \
  13848. exclude_expsyms_F77 \
  13849. include_expsyms_F77; do
  13850. case $var in
  13851. old_archive_cmds_F77 | \
  13852. old_archive_from_new_cmds_F77 | \
  13853. archive_cmds_F77 | \
  13854. archive_expsym_cmds_F77 | \
  13855. module_cmds_F77 | \
  13856. module_expsym_cmds_F77 | \
  13857. old_archive_from_expsyms_cmds_F77 | \
  13858. export_symbols_cmds_F77 | \
  13859. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13860. postinstall_cmds | postuninstall_cmds | \
  13861. old_postinstall_cmds | old_postuninstall_cmds | \
  13862. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13863. # Double-quote double-evaled strings.
  13864. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13865. ;;
  13866. *)
  13867. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13868. ;;
  13869. esac
  13870. done
  13871. case $lt_echo in
  13872. *'\$0 --fallback-echo"')
  13873. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13874. ;;
  13875. esac
  13876. cfgfile="$ofile"
  13877. cat <<__EOF__ >> "$cfgfile"
  13878. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13879. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13880. # Shell to use when invoking shell scripts.
  13881. SHELL=$lt_SHELL
  13882. # Whether or not to build shared libraries.
  13883. build_libtool_libs=$enable_shared
  13884. # Whether or not to build static libraries.
  13885. build_old_libs=$enable_static
  13886. # Whether or not to add -lc for building shared libraries.
  13887. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13888. # Whether or not to disallow shared libs when runtime libs are static
  13889. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13890. # Whether or not to optimize for fast installation.
  13891. fast_install=$enable_fast_install
  13892. # The host system.
  13893. host_alias=$host_alias
  13894. host=$host
  13895. host_os=$host_os
  13896. # The build system.
  13897. build_alias=$build_alias
  13898. build=$build
  13899. build_os=$build_os
  13900. # An echo program that does not interpret backslashes.
  13901. echo=$lt_echo
  13902. # The archiver.
  13903. AR=$lt_AR
  13904. AR_FLAGS=$lt_AR_FLAGS
  13905. # A C compiler.
  13906. LTCC=$lt_LTCC
  13907. # LTCC compiler flags.
  13908. LTCFLAGS=$lt_LTCFLAGS
  13909. # A language-specific compiler.
  13910. CC=$lt_compiler_F77
  13911. # Is the compiler the GNU C compiler?
  13912. with_gcc=$GCC_F77
  13913. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  13914. gcc_ver=\`gcc -dumpversion\`
  13915. # An ERE matcher.
  13916. EGREP=$lt_EGREP
  13917. # The linker used to build libraries.
  13918. LD=$lt_LD_F77
  13919. # Whether we need hard or soft links.
  13920. LN_S=$lt_LN_S
  13921. # A BSD-compatible nm program.
  13922. NM=$lt_NM
  13923. # A symbol stripping program
  13924. STRIP=$lt_STRIP
  13925. # Used to examine libraries when file_magic_cmd begins "file"
  13926. MAGIC_CMD=$MAGIC_CMD
  13927. # Used on cygwin: DLL creation program.
  13928. DLLTOOL="$DLLTOOL"
  13929. # Used on cygwin: object dumper.
  13930. OBJDUMP="$OBJDUMP"
  13931. # Used on cygwin: assembler.
  13932. AS="$AS"
  13933. # The name of the directory that contains temporary libtool files.
  13934. objdir=$objdir
  13935. # How to create reloadable object files.
  13936. reload_flag=$lt_reload_flag
  13937. reload_cmds=$lt_reload_cmds
  13938. # How to pass a linker flag through the compiler.
  13939. wl=$lt_lt_prog_compiler_wl_F77
  13940. # Object file suffix (normally "o").
  13941. objext="$ac_objext"
  13942. # Old archive suffix (normally "a").
  13943. libext="$libext"
  13944. # Shared library suffix (normally ".so").
  13945. shrext_cmds='$shrext_cmds'
  13946. # Executable file suffix (normally "").
  13947. exeext="$exeext"
  13948. # Additional compiler flags for building library objects.
  13949. pic_flag=$lt_lt_prog_compiler_pic_F77
  13950. pic_mode=$pic_mode
  13951. # What is the maximum length of a command?
  13952. max_cmd_len=$lt_cv_sys_max_cmd_len
  13953. # Does compiler simultaneously support -c and -o options?
  13954. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13955. # Must we lock files when doing compilation?
  13956. need_locks=$lt_need_locks
  13957. # Do we need the lib prefix for modules?
  13958. need_lib_prefix=$need_lib_prefix
  13959. # Do we need a version for libraries?
  13960. need_version=$need_version
  13961. # Whether dlopen is supported.
  13962. dlopen_support=$enable_dlopen
  13963. # Whether dlopen of programs is supported.
  13964. dlopen_self=$enable_dlopen_self
  13965. # Whether dlopen of statically linked programs is supported.
  13966. dlopen_self_static=$enable_dlopen_self_static
  13967. # Compiler flag to prevent dynamic linking.
  13968. link_static_flag=$lt_lt_prog_compiler_static_F77
  13969. # Compiler flag to turn off builtin functions.
  13970. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13971. # Compiler flag to allow reflexive dlopens.
  13972. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13973. # Compiler flag to generate shared objects directly from archives.
  13974. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13975. # Compiler flag to generate thread-safe objects.
  13976. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13977. # Library versioning type.
  13978. version_type=$version_type
  13979. # Format of library name prefix.
  13980. libname_spec=$lt_libname_spec
  13981. # List of archive names. First name is the real one, the rest are links.
  13982. # The last name is the one that the linker finds with -lNAME.
  13983. library_names_spec=$lt_library_names_spec
  13984. # The coded name of the library, if different from the real name.
  13985. soname_spec=$lt_soname_spec
  13986. # Commands used to build and install an old-style archive.
  13987. RANLIB=$lt_RANLIB
  13988. old_archive_cmds=$lt_old_archive_cmds_F77
  13989. old_postinstall_cmds=$lt_old_postinstall_cmds
  13990. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13991. # Create an old-style archive from a shared archive.
  13992. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13993. # Create a temporary old-style archive to link instead of a shared archive.
  13994. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13995. # Commands used to build and install a shared archive.
  13996. archive_cmds=$lt_archive_cmds_F77
  13997. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13998. postinstall_cmds=$lt_postinstall_cmds
  13999. postuninstall_cmds=$lt_postuninstall_cmds
  14000. # Commands used to build a loadable module (assumed same as above if empty)
  14001. module_cmds=$lt_module_cmds_F77
  14002. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14003. # Commands to strip libraries.
  14004. old_striplib=$lt_old_striplib
  14005. striplib=$lt_striplib
  14006. # Dependencies to place before the objects being linked to create a
  14007. # shared library.
  14008. predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14009. # Dependencies to place after the objects being linked to create a
  14010. # shared library.
  14011. postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14012. # Dependencies to place before the objects being linked to create a
  14013. # shared library.
  14014. predeps=$lt_predeps_F77
  14015. # Dependencies to place after the objects being linked to create a
  14016. # shared library.
  14017. postdeps=$lt_postdeps_F77
  14018. # The library search path used internally by the compiler when linking
  14019. # a shared library.
  14020. 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"\`
  14021. # Method to check whether dependent libraries are shared objects.
  14022. deplibs_check_method=$lt_deplibs_check_method
  14023. # Command to use when deplibs_check_method == file_magic.
  14024. file_magic_cmd=$lt_file_magic_cmd
  14025. # Flag that allows shared libraries with undefined symbols to be built.
  14026. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14027. # Flag that forces no undefined symbols.
  14028. no_undefined_flag=$lt_no_undefined_flag_F77
  14029. # Commands used to finish a libtool library installation in a directory.
  14030. finish_cmds=$lt_finish_cmds
  14031. # Same as above, but a single script fragment to be evaled but not shown.
  14032. finish_eval=$lt_finish_eval
  14033. # Take the output of nm and produce a listing of raw symbols and C names.
  14034. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14035. # Transform the output of nm in a proper C declaration
  14036. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14037. # Transform the output of nm in a C name address pair
  14038. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14039. # This is the shared library runtime path variable.
  14040. runpath_var=$runpath_var
  14041. # This is the shared library path variable.
  14042. shlibpath_var=$shlibpath_var
  14043. # Is shlibpath searched before the hard-coded library search path?
  14044. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14045. # How to hardcode a shared library path into an executable.
  14046. hardcode_action=$hardcode_action_F77
  14047. # Whether we should hardcode library paths into libraries.
  14048. hardcode_into_libs=$hardcode_into_libs
  14049. # Flag to hardcode \$libdir into a binary during linking.
  14050. # This must work even if \$libdir does not exist.
  14051. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14052. # If ld is used when linking, flag to hardcode \$libdir into
  14053. # a binary during linking. This must work even if \$libdir does
  14054. # not exist.
  14055. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14056. # Whether we need a single -rpath flag with a separated argument.
  14057. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14058. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14059. # resulting binary.
  14060. hardcode_direct=$hardcode_direct_F77
  14061. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14062. # resulting binary.
  14063. hardcode_minus_L=$hardcode_minus_L_F77
  14064. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14065. # the resulting binary.
  14066. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14067. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14068. # and all subsequent libraries and executables linked against it.
  14069. hardcode_automatic=$hardcode_automatic_F77
  14070. # Variables whose values should be saved in libtool wrapper scripts and
  14071. # restored at relink time.
  14072. variables_saved_for_relink="$variables_saved_for_relink"
  14073. # Whether libtool must link a program against all its dependency libraries.
  14074. link_all_deplibs=$link_all_deplibs_F77
  14075. # Compile-time system search path for libraries
  14076. 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"\`
  14077. # Run-time system search path for libraries
  14078. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14079. # Fix the shell variable \$srcfile for the compiler.
  14080. fix_srcfile_path="$fix_srcfile_path_F77"
  14081. # Set to yes if exported symbols are required.
  14082. always_export_symbols=$always_export_symbols_F77
  14083. # The commands to list exported symbols.
  14084. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14085. # The commands to extract the exported symbol list from a shared archive.
  14086. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14087. # Symbols that should not be listed in the preloaded symbols.
  14088. exclude_expsyms=$lt_exclude_expsyms_F77
  14089. # Symbols that must always be exported.
  14090. include_expsyms=$lt_include_expsyms_F77
  14091. # ### END LIBTOOL TAG CONFIG: $tagname
  14092. __EOF__
  14093. else
  14094. # If there is no Makefile yet, we rely on a make rule to execute
  14095. # `config.status --recheck' to rerun these tests and create the
  14096. # libtool script then.
  14097. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14098. if test -f "$ltmain_in"; then
  14099. test -f Makefile && make "$ltmain"
  14100. fi
  14101. fi
  14102. ac_ext=c
  14103. ac_cpp='$CPP $CPPFLAGS'
  14104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14107. CC="$lt_save_CC"
  14108. else
  14109. tagname=""
  14110. fi
  14111. ;;
  14112. GCJ)
  14113. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14114. # Source file extension for Java test sources.
  14115. ac_ext=java
  14116. # Object file extension for compiled Java test sources.
  14117. objext=o
  14118. objext_GCJ=$objext
  14119. # Code to be used in simple compile tests
  14120. lt_simple_compile_test_code="class foo {}\n"
  14121. # Code to be used in simple link tests
  14122. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14123. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14124. # If no C compiler was specified, use CC.
  14125. LTCC=${LTCC-"$CC"}
  14126. # If no C compiler flags were specified, use CFLAGS.
  14127. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14128. # Allow CC to be a program name with arguments.
  14129. compiler=$CC
  14130. # save warnings/boilerplate of simple test code
  14131. ac_outfile=conftest.$ac_objext
  14132. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14133. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14134. _lt_compiler_boilerplate=`cat conftest.err`
  14135. $rm conftest*
  14136. ac_outfile=conftest.$ac_objext
  14137. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14138. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14139. _lt_linker_boilerplate=`cat conftest.err`
  14140. $rm conftest*
  14141. # Allow CC to be a program name with arguments.
  14142. lt_save_CC="$CC"
  14143. CC=${GCJ-"gcj"}
  14144. compiler=$CC
  14145. compiler_GCJ=$CC
  14146. for cc_temp in $compiler""; do
  14147. case $cc_temp in
  14148. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14149. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14150. \-*) ;;
  14151. *) break;;
  14152. esac
  14153. done
  14154. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14155. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14156. archive_cmds_need_lc_GCJ=no
  14157. old_archive_cmds_GCJ=$old_archive_cmds
  14158. lt_prog_compiler_no_builtin_flag_GCJ=
  14159. if test "$GCC" = yes; then
  14160. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14161. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14162. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14163. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14164. echo $ECHO_N "(cached) $ECHO_C" >&6
  14165. else
  14166. lt_cv_prog_compiler_rtti_exceptions=no
  14167. ac_outfile=conftest.$ac_objext
  14168. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14169. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14170. # Insert the option either (1) after the last *FLAGS variable, or
  14171. # (2) before a word containing "conftest.", or (3) at the end.
  14172. # Note that $ac_compile itself does not contain backslashes and begins
  14173. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14174. # The option is referenced via a variable to avoid confusing sed.
  14175. lt_compile=`echo "$ac_compile" | $SED \
  14176. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14177. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14178. -e 's:$: $lt_compiler_flag:'`
  14179. (eval echo "\"\$as_me:15800: $lt_compile\"" >&5)
  14180. (eval "$lt_compile" 2>conftest.err)
  14181. ac_status=$?
  14182. cat conftest.err >&5
  14183. echo "$as_me:15804: \$? = $ac_status" >&5
  14184. if (exit $ac_status) && test -s "$ac_outfile"; then
  14185. # The compiler can only warn and ignore the option if not recognized
  14186. # So say no if there are warnings other than the usual output.
  14187. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14188. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14189. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14190. lt_cv_prog_compiler_rtti_exceptions=yes
  14191. fi
  14192. fi
  14193. $rm conftest*
  14194. fi
  14195. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14196. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14197. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14198. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14199. else
  14200. :
  14201. fi
  14202. fi
  14203. lt_prog_compiler_wl_GCJ=
  14204. lt_prog_compiler_pic_GCJ=
  14205. lt_prog_compiler_static_GCJ=
  14206. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14207. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14208. if test "$GCC" = yes; then
  14209. lt_prog_compiler_wl_GCJ='-Wl,'
  14210. lt_prog_compiler_static_GCJ='-static'
  14211. case $host_os in
  14212. aix*)
  14213. # All AIX code is PIC.
  14214. if test "$host_cpu" = ia64; then
  14215. # AIX 5 now supports IA64 processor
  14216. lt_prog_compiler_static_GCJ='-Bstatic'
  14217. fi
  14218. ;;
  14219. amigaos*)
  14220. # FIXME: we need at least 68020 code to build shared libraries, but
  14221. # adding the `-m68020' flag to GCC prevents building anything better,
  14222. # like `-m68040'.
  14223. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14224. ;;
  14225. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14226. # PIC is the default for these OSes.
  14227. ;;
  14228. mingw* | pw32* | os2*)
  14229. # This hack is so that the source file can tell whether it is being
  14230. # built for inclusion in a dll (and should export symbols for example).
  14231. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14232. ;;
  14233. darwin* | rhapsody*)
  14234. # PIC is the default on this platform
  14235. # Common symbols not allowed in MH_DYLIB files
  14236. lt_prog_compiler_pic_GCJ='-fno-common'
  14237. ;;
  14238. interix3*)
  14239. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14240. # Instead, we relocate shared libraries at runtime.
  14241. ;;
  14242. msdosdjgpp*)
  14243. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14244. # on systems that don't support them.
  14245. lt_prog_compiler_can_build_shared_GCJ=no
  14246. enable_shared=no
  14247. ;;
  14248. sysv4*MP*)
  14249. if test -d /usr/nec; then
  14250. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14251. fi
  14252. ;;
  14253. hpux*)
  14254. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14255. # not for PA HP-UX.
  14256. case $host_cpu in
  14257. hppa*64*|ia64*)
  14258. # +Z the default
  14259. ;;
  14260. *)
  14261. lt_prog_compiler_pic_GCJ='-fPIC'
  14262. ;;
  14263. esac
  14264. ;;
  14265. *)
  14266. lt_prog_compiler_pic_GCJ='-fPIC'
  14267. ;;
  14268. esac
  14269. else
  14270. # PORTME Check for flag to pass linker flags through the system compiler.
  14271. case $host_os in
  14272. aix*)
  14273. lt_prog_compiler_wl_GCJ='-Wl,'
  14274. if test "$host_cpu" = ia64; then
  14275. # AIX 5 now supports IA64 processor
  14276. lt_prog_compiler_static_GCJ='-Bstatic'
  14277. else
  14278. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14279. fi
  14280. ;;
  14281. darwin*)
  14282. # PIC is the default on this platform
  14283. # Common symbols not allowed in MH_DYLIB files
  14284. case $cc_basename in
  14285. xlc*)
  14286. lt_prog_compiler_pic_GCJ='-qnocommon'
  14287. lt_prog_compiler_wl_GCJ='-Wl,'
  14288. ;;
  14289. esac
  14290. ;;
  14291. mingw* | pw32* | os2*)
  14292. # This hack is so that the source file can tell whether it is being
  14293. # built for inclusion in a dll (and should export symbols for example).
  14294. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14295. ;;
  14296. hpux9* | hpux10* | hpux11*)
  14297. lt_prog_compiler_wl_GCJ='-Wl,'
  14298. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14299. # not for PA HP-UX.
  14300. case $host_cpu in
  14301. hppa*64*|ia64*)
  14302. # +Z the default
  14303. ;;
  14304. *)
  14305. lt_prog_compiler_pic_GCJ='+Z'
  14306. ;;
  14307. esac
  14308. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14309. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14310. ;;
  14311. irix5* | irix6* | nonstopux*)
  14312. lt_prog_compiler_wl_GCJ='-Wl,'
  14313. # PIC (with -KPIC) is the default.
  14314. lt_prog_compiler_static_GCJ='-non_shared'
  14315. ;;
  14316. newsos6)
  14317. lt_prog_compiler_pic_GCJ='-KPIC'
  14318. lt_prog_compiler_static_GCJ='-Bstatic'
  14319. ;;
  14320. linux*)
  14321. case $cc_basename in
  14322. icc* | ecc*)
  14323. lt_prog_compiler_wl_GCJ='-Wl,'
  14324. lt_prog_compiler_pic_GCJ='-KPIC'
  14325. lt_prog_compiler_static_GCJ='-static'
  14326. ;;
  14327. pgcc* | pgf77* | pgf90* | pgf95*)
  14328. # Portland Group compilers (*not* the Pentium gcc compiler,
  14329. # which looks to be a dead project)
  14330. lt_prog_compiler_wl_GCJ='-Wl,'
  14331. lt_prog_compiler_pic_GCJ='-fpic'
  14332. lt_prog_compiler_static_GCJ='-Bstatic'
  14333. ;;
  14334. ccc*)
  14335. lt_prog_compiler_wl_GCJ='-Wl,'
  14336. # All Alpha code is PIC.
  14337. lt_prog_compiler_static_GCJ='-non_shared'
  14338. ;;
  14339. esac
  14340. ;;
  14341. osf3* | osf4* | osf5*)
  14342. lt_prog_compiler_wl_GCJ='-Wl,'
  14343. # All OSF/1 code is PIC.
  14344. lt_prog_compiler_static_GCJ='-non_shared'
  14345. ;;
  14346. solaris*)
  14347. lt_prog_compiler_pic_GCJ='-KPIC'
  14348. lt_prog_compiler_static_GCJ='-Bstatic'
  14349. case $cc_basename in
  14350. f77* | f90* | f95*)
  14351. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14352. *)
  14353. lt_prog_compiler_wl_GCJ='-Wl,';;
  14354. esac
  14355. ;;
  14356. sunos4*)
  14357. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14358. lt_prog_compiler_pic_GCJ='-PIC'
  14359. lt_prog_compiler_static_GCJ='-Bstatic'
  14360. ;;
  14361. sysv4 | sysv4.2uw2* | sysv4.3*)
  14362. lt_prog_compiler_wl_GCJ='-Wl,'
  14363. lt_prog_compiler_pic_GCJ='-KPIC'
  14364. lt_prog_compiler_static_GCJ='-Bstatic'
  14365. ;;
  14366. sysv4*MP*)
  14367. if test -d /usr/nec ;then
  14368. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14369. lt_prog_compiler_static_GCJ='-Bstatic'
  14370. fi
  14371. ;;
  14372. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14373. lt_prog_compiler_wl_GCJ='-Wl,'
  14374. lt_prog_compiler_pic_GCJ='-KPIC'
  14375. lt_prog_compiler_static_GCJ='-Bstatic'
  14376. ;;
  14377. unicos*)
  14378. lt_prog_compiler_wl_GCJ='-Wl,'
  14379. lt_prog_compiler_can_build_shared_GCJ=no
  14380. ;;
  14381. uts4*)
  14382. lt_prog_compiler_pic_GCJ='-pic'
  14383. lt_prog_compiler_static_GCJ='-Bstatic'
  14384. ;;
  14385. *)
  14386. lt_prog_compiler_can_build_shared_GCJ=no
  14387. ;;
  14388. esac
  14389. fi
  14390. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14391. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14392. #
  14393. # Check to make sure the PIC flag actually works.
  14394. #
  14395. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14396. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14397. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14398. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14399. echo $ECHO_N "(cached) $ECHO_C" >&6
  14400. else
  14401. lt_prog_compiler_pic_works_GCJ=no
  14402. ac_outfile=conftest.$ac_objext
  14403. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14404. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14405. # Insert the option either (1) after the last *FLAGS variable, or
  14406. # (2) before a word containing "conftest.", or (3) at the end.
  14407. # Note that $ac_compile itself does not contain backslashes and begins
  14408. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14409. # The option is referenced via a variable to avoid confusing sed.
  14410. lt_compile=`echo "$ac_compile" | $SED \
  14411. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14412. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14413. -e 's:$: $lt_compiler_flag:'`
  14414. (eval echo "\"\$as_me:16068: $lt_compile\"" >&5)
  14415. (eval "$lt_compile" 2>conftest.err)
  14416. ac_status=$?
  14417. cat conftest.err >&5
  14418. echo "$as_me:16072: \$? = $ac_status" >&5
  14419. if (exit $ac_status) && test -s "$ac_outfile"; then
  14420. # The compiler can only warn and ignore the option if not recognized
  14421. # So say no if there are warnings other than the usual output.
  14422. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14423. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14424. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14425. lt_prog_compiler_pic_works_GCJ=yes
  14426. fi
  14427. fi
  14428. $rm conftest*
  14429. fi
  14430. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14431. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14432. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14433. case $lt_prog_compiler_pic_GCJ in
  14434. "" | " "*) ;;
  14435. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14436. esac
  14437. else
  14438. lt_prog_compiler_pic_GCJ=
  14439. lt_prog_compiler_can_build_shared_GCJ=no
  14440. fi
  14441. fi
  14442. case $host_os in
  14443. # For platforms which do not support PIC, -DPIC is meaningless:
  14444. *djgpp*)
  14445. lt_prog_compiler_pic_GCJ=
  14446. ;;
  14447. *)
  14448. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14449. ;;
  14450. esac
  14451. #
  14452. # Check to make sure the static flag actually works.
  14453. #
  14454. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14455. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14456. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14457. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14458. echo $ECHO_N "(cached) $ECHO_C" >&6
  14459. else
  14460. lt_prog_compiler_static_works_GCJ=no
  14461. save_LDFLAGS="$LDFLAGS"
  14462. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14463. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14464. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14465. # The linker can only warn and ignore the option if not recognized
  14466. # So say no if there are warnings
  14467. if test -s conftest.err; then
  14468. # Append any errors to the config.log.
  14469. cat conftest.err 1>&5
  14470. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14471. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14472. if diff conftest.exp conftest.er2 >/dev/null; then
  14473. lt_prog_compiler_static_works_GCJ=yes
  14474. fi
  14475. else
  14476. lt_prog_compiler_static_works_GCJ=yes
  14477. fi
  14478. fi
  14479. $rm conftest*
  14480. LDFLAGS="$save_LDFLAGS"
  14481. fi
  14482. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14483. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14484. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14485. :
  14486. else
  14487. lt_prog_compiler_static_GCJ=
  14488. fi
  14489. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14490. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14491. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14492. echo $ECHO_N "(cached) $ECHO_C" >&6
  14493. else
  14494. lt_cv_prog_compiler_c_o_GCJ=no
  14495. $rm -r conftest 2>/dev/null
  14496. mkdir conftest
  14497. cd conftest
  14498. mkdir out
  14499. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14500. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14501. # Insert the option either (1) after the last *FLAGS variable, or
  14502. # (2) before a word containing "conftest.", or (3) at the end.
  14503. # Note that $ac_compile itself does not contain backslashes and begins
  14504. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14505. lt_compile=`echo "$ac_compile" | $SED \
  14506. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14507. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14508. -e 's:$: $lt_compiler_flag:'`
  14509. (eval echo "\"\$as_me:16172: $lt_compile\"" >&5)
  14510. (eval "$lt_compile" 2>out/conftest.err)
  14511. ac_status=$?
  14512. cat out/conftest.err >&5
  14513. echo "$as_me:16176: \$? = $ac_status" >&5
  14514. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14515. then
  14516. # The compiler can only warn and ignore the option if not recognized
  14517. # So say no if there are warnings
  14518. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14519. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14520. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14521. lt_cv_prog_compiler_c_o_GCJ=yes
  14522. fi
  14523. fi
  14524. chmod u+w . 2>&5
  14525. $rm conftest*
  14526. # SGI C++ compiler will create directory out/ii_files/ for
  14527. # template instantiation
  14528. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14529. $rm out/* && rmdir out
  14530. cd ..
  14531. rmdir conftest
  14532. $rm conftest*
  14533. fi
  14534. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14535. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14536. hard_links="nottested"
  14537. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14538. # do not overwrite the value of need_locks provided by the user
  14539. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14540. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14541. hard_links=yes
  14542. $rm conftest*
  14543. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14544. touch conftest.a
  14545. ln conftest.a conftest.b 2>&5 || hard_links=no
  14546. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14547. echo "$as_me:$LINENO: result: $hard_links" >&5
  14548. echo "${ECHO_T}$hard_links" >&6
  14549. if test "$hard_links" = no; then
  14550. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14551. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14552. need_locks=warn
  14553. fi
  14554. else
  14555. need_locks=no
  14556. fi
  14557. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14558. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14559. runpath_var=
  14560. allow_undefined_flag_GCJ=
  14561. enable_shared_with_static_runtimes_GCJ=no
  14562. archive_cmds_GCJ=
  14563. archive_expsym_cmds_GCJ=
  14564. old_archive_From_new_cmds_GCJ=
  14565. old_archive_from_expsyms_cmds_GCJ=
  14566. export_dynamic_flag_spec_GCJ=
  14567. whole_archive_flag_spec_GCJ=
  14568. thread_safe_flag_spec_GCJ=
  14569. hardcode_libdir_flag_spec_GCJ=
  14570. hardcode_libdir_flag_spec_ld_GCJ=
  14571. hardcode_libdir_separator_GCJ=
  14572. hardcode_direct_GCJ=no
  14573. hardcode_minus_L_GCJ=no
  14574. hardcode_shlibpath_var_GCJ=unsupported
  14575. link_all_deplibs_GCJ=unknown
  14576. hardcode_automatic_GCJ=no
  14577. module_cmds_GCJ=
  14578. module_expsym_cmds_GCJ=
  14579. always_export_symbols_GCJ=no
  14580. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14581. # include_expsyms should be a list of space-separated symbols to be *always*
  14582. # included in the symbol list
  14583. include_expsyms_GCJ=
  14584. # exclude_expsyms can be an extended regexp of symbols to exclude
  14585. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14586. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14587. # as well as any symbol that contains `d'.
  14588. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14589. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14590. # platforms (ab)use it in PIC code, but their linkers get confused if
  14591. # the symbol is explicitly referenced. Since portable code cannot
  14592. # rely on this symbol name, it's probably fine to never include it in
  14593. # preloaded symbol tables.
  14594. extract_expsyms_cmds=
  14595. # Just being paranoid about ensuring that cc_basename is set.
  14596. for cc_temp in $compiler""; do
  14597. case $cc_temp in
  14598. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14599. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14600. \-*) ;;
  14601. *) break;;
  14602. esac
  14603. done
  14604. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14605. case $host_os in
  14606. cygwin* | mingw* | pw32*)
  14607. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14608. # When not using gcc, we currently assume that we are using
  14609. # Microsoft Visual C++.
  14610. if test "$GCC" != yes; then
  14611. with_gnu_ld=no
  14612. fi
  14613. ;;
  14614. interix*)
  14615. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14616. with_gnu_ld=yes
  14617. ;;
  14618. openbsd*)
  14619. with_gnu_ld=no
  14620. ;;
  14621. esac
  14622. ld_shlibs_GCJ=yes
  14623. if test "$with_gnu_ld" = yes; then
  14624. # If archive_cmds runs LD, not CC, wlarc should be empty
  14625. wlarc='${wl}'
  14626. # Set some defaults for GNU ld with shared library support. These
  14627. # are reset later if shared libraries are not supported. Putting them
  14628. # here allows them to be overridden if necessary.
  14629. runpath_var=LD_RUN_PATH
  14630. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14631. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14632. # ancient GNU ld didn't support --whole-archive et. al.
  14633. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14634. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14635. else
  14636. whole_archive_flag_spec_GCJ=
  14637. fi
  14638. supports_anon_versioning=no
  14639. case `$LD -v 2>/dev/null` in
  14640. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14641. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14642. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14643. *\ 2.11.*) ;; # other 2.11 versions
  14644. *) supports_anon_versioning=yes ;;
  14645. esac
  14646. # See if GNU ld supports shared libraries.
  14647. case $host_os in
  14648. aix3* | aix4* | aix5*)
  14649. # On AIX/PPC, the GNU linker is very broken
  14650. if test "$host_cpu" != ia64; then
  14651. ld_shlibs_GCJ=no
  14652. cat <<EOF 1>&2
  14653. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14654. *** to be unable to reliably create shared libraries on AIX.
  14655. *** Therefore, libtool is disabling shared libraries support. If you
  14656. *** really care for shared libraries, you may want to modify your PATH
  14657. *** so that a non-GNU linker is found, and then restart.
  14658. EOF
  14659. fi
  14660. ;;
  14661. amigaos*)
  14662. 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)'
  14663. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14664. hardcode_minus_L_GCJ=yes
  14665. # Samuel A. Falvo II <[email protected]> reports
  14666. # that the semantics of dynamic libraries on AmigaOS, at least up
  14667. # to version 4, is to share data among multiple programs linked
  14668. # with the same dynamic library. Since this doesn't match the
  14669. # behavior of shared libraries on other platforms, we can't use
  14670. # them.
  14671. ld_shlibs_GCJ=no
  14672. ;;
  14673. beos*)
  14674. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14675. allow_undefined_flag_GCJ=unsupported
  14676. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14677. # support --undefined. This deserves some investigation. FIXME
  14678. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14679. else
  14680. ld_shlibs_GCJ=no
  14681. fi
  14682. ;;
  14683. cygwin* | mingw* | pw32*)
  14684. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14685. # as there is no search path for DLLs.
  14686. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14687. allow_undefined_flag_GCJ=unsupported
  14688. always_export_symbols_GCJ=no
  14689. enable_shared_with_static_runtimes_GCJ=yes
  14690. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14691. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14692. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14693. # If the export-symbols file already is a .def file (1st line
  14694. # is EXPORTS), use it as is; otherwise, prepend...
  14695. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14696. cp $export_symbols $output_objdir/$soname.def;
  14697. else
  14698. echo EXPORTS > $output_objdir/$soname.def;
  14699. cat $export_symbols >> $output_objdir/$soname.def;
  14700. fi~
  14701. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14702. else
  14703. ld_shlibs_GCJ=no
  14704. fi
  14705. ;;
  14706. interix3*)
  14707. hardcode_direct_GCJ=no
  14708. hardcode_shlibpath_var_GCJ=no
  14709. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14710. export_dynamic_flag_spec_GCJ='${wl}-E'
  14711. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14712. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14713. # default) and relocated if they conflict, which is a slow very memory
  14714. # consuming and fragmenting process. To avoid this, we pick a random,
  14715. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14716. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14717. 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'
  14718. 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'
  14719. ;;
  14720. linux*)
  14721. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14722. tmp_addflag=
  14723. case $cc_basename,$host_cpu in
  14724. pgcc*) # Portland Group C compiler
  14725. 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'
  14726. tmp_addflag=' $pic_flag'
  14727. ;;
  14728. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14729. 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'
  14730. tmp_addflag=' $pic_flag -Mnomain' ;;
  14731. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14732. tmp_addflag=' -i_dynamic' ;;
  14733. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14734. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14735. ifc* | ifort*) # Intel Fortran compiler
  14736. tmp_addflag=' -nofor_main' ;;
  14737. esac
  14738. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14739. if test $supports_anon_versioning = yes; then
  14740. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14741. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14742. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14743. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14744. fi
  14745. else
  14746. ld_shlibs_GCJ=no
  14747. fi
  14748. ;;
  14749. netbsd*)
  14750. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14751. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14752. wlarc=
  14753. else
  14754. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14755. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14756. fi
  14757. ;;
  14758. solaris*)
  14759. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14760. ld_shlibs_GCJ=no
  14761. cat <<EOF 1>&2
  14762. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14763. *** create shared libraries on Solaris systems. Therefore, libtool
  14764. *** is disabling shared libraries support. We urge you to upgrade GNU
  14765. *** binutils to release 2.9.1 or newer. Another option is to modify
  14766. *** your PATH or compiler configuration so that the native linker is
  14767. *** used, and then restart.
  14768. EOF
  14769. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14770. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14771. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14772. else
  14773. ld_shlibs_GCJ=no
  14774. fi
  14775. ;;
  14776. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14777. case `$LD -v 2>&1` in
  14778. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14779. ld_shlibs_GCJ=no
  14780. cat <<_LT_EOF 1>&2
  14781. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14782. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14783. *** is disabling shared libraries support. We urge you to upgrade GNU
  14784. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14785. *** your PATH or compiler configuration so that the native linker is
  14786. *** used, and then restart.
  14787. _LT_EOF
  14788. ;;
  14789. *)
  14790. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14791. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14792. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14793. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14794. else
  14795. ld_shlibs_GCJ=no
  14796. fi
  14797. ;;
  14798. esac
  14799. ;;
  14800. sunos4*)
  14801. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14802. wlarc=
  14803. hardcode_direct_GCJ=yes
  14804. hardcode_shlibpath_var_GCJ=no
  14805. ;;
  14806. *)
  14807. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14808. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14809. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14810. else
  14811. ld_shlibs_GCJ=no
  14812. fi
  14813. ;;
  14814. esac
  14815. if test "$ld_shlibs_GCJ" = no; then
  14816. runpath_var=
  14817. hardcode_libdir_flag_spec_GCJ=
  14818. export_dynamic_flag_spec_GCJ=
  14819. whole_archive_flag_spec_GCJ=
  14820. fi
  14821. else
  14822. # PORTME fill in a description of your system's linker (not GNU ld)
  14823. case $host_os in
  14824. aix3*)
  14825. allow_undefined_flag_GCJ=unsupported
  14826. always_export_symbols_GCJ=yes
  14827. 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'
  14828. # Note: this linker hardcodes the directories in LIBPATH if there
  14829. # are no directories specified by -L.
  14830. hardcode_minus_L_GCJ=yes
  14831. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14832. # Neither direct hardcoding nor static linking is supported with a
  14833. # broken collect2.
  14834. hardcode_direct_GCJ=unsupported
  14835. fi
  14836. ;;
  14837. aix4* | aix5*)
  14838. if test "$host_cpu" = ia64; then
  14839. # On IA64, the linker does run time linking by default, so we don't
  14840. # have to do anything special.
  14841. aix_use_runtimelinking=no
  14842. exp_sym_flag='-Bexport'
  14843. no_entry_flag=""
  14844. else
  14845. # If we're using GNU nm, then we don't want the "-C" option.
  14846. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14847. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14848. 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'
  14849. else
  14850. 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'
  14851. fi
  14852. aix_use_runtimelinking=no
  14853. # Test if we are trying to use run time linking or normal
  14854. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14855. # need to do runtime linking.
  14856. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14857. for ld_flag in $LDFLAGS; do
  14858. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14859. aix_use_runtimelinking=yes
  14860. break
  14861. fi
  14862. done
  14863. ;;
  14864. esac
  14865. exp_sym_flag='-bexport'
  14866. no_entry_flag='-bnoentry'
  14867. fi
  14868. # When large executables or shared objects are built, AIX ld can
  14869. # have problems creating the table of contents. If linking a library
  14870. # or program results in "error TOC overflow" add -mminimal-toc to
  14871. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14872. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14873. archive_cmds_GCJ=''
  14874. hardcode_direct_GCJ=yes
  14875. hardcode_libdir_separator_GCJ=':'
  14876. link_all_deplibs_GCJ=yes
  14877. if test "$GCC" = yes; then
  14878. case $host_os in aix4.[012]|aix4.[012].*)
  14879. # We only want to do this on AIX 4.2 and lower, the check
  14880. # below for broken collect2 doesn't work under 4.3+
  14881. collect2name=`${CC} -print-prog-name=collect2`
  14882. if test -f "$collect2name" && \
  14883. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14884. then
  14885. # We have reworked collect2
  14886. hardcode_direct_GCJ=yes
  14887. else
  14888. # We have old collect2
  14889. hardcode_direct_GCJ=unsupported
  14890. # It fails to find uninstalled libraries when the uninstalled
  14891. # path is not listed in the libpath. Setting hardcode_minus_L
  14892. # to unsupported forces relinking
  14893. hardcode_minus_L_GCJ=yes
  14894. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14895. hardcode_libdir_separator_GCJ=
  14896. fi
  14897. ;;
  14898. esac
  14899. shared_flag='-shared'
  14900. if test "$aix_use_runtimelinking" = yes; then
  14901. shared_flag="$shared_flag "'${wl}-G'
  14902. fi
  14903. else
  14904. # not using gcc
  14905. if test "$host_cpu" = ia64; then
  14906. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14907. # chokes on -Wl,-G. The following line is correct:
  14908. shared_flag='-G'
  14909. else
  14910. if test "$aix_use_runtimelinking" = yes; then
  14911. shared_flag='${wl}-G'
  14912. else
  14913. shared_flag='${wl}-bM:SRE'
  14914. fi
  14915. fi
  14916. fi
  14917. # It seems that -bexpall does not export symbols beginning with
  14918. # underscore (_), so it is better to generate a list of symbols to export.
  14919. always_export_symbols_GCJ=yes
  14920. if test "$aix_use_runtimelinking" = yes; then
  14921. # Warning - without using the other runtime loading flags (-brtl),
  14922. # -berok will link without error, but may produce a broken library.
  14923. allow_undefined_flag_GCJ='-berok'
  14924. # Determine the default libpath from the value encoded in an empty executable.
  14925. cat >conftest.$ac_ext <<_ACEOF
  14926. /* confdefs.h. */
  14927. _ACEOF
  14928. cat confdefs.h >>conftest.$ac_ext
  14929. cat >>conftest.$ac_ext <<_ACEOF
  14930. /* end confdefs.h. */
  14931. int
  14932. main ()
  14933. {
  14934. ;
  14935. return 0;
  14936. }
  14937. _ACEOF
  14938. rm -f conftest.$ac_objext conftest$ac_exeext
  14939. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14940. (eval $ac_link) 2>conftest.er1
  14941. ac_status=$?
  14942. grep -v '^ *+' conftest.er1 >conftest.err
  14943. rm -f conftest.er1
  14944. cat conftest.err >&5
  14945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14946. (exit $ac_status); } &&
  14947. { ac_try='test -z "$ac_c_werror_flag"
  14948. || test ! -s conftest.err'
  14949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14950. (eval $ac_try) 2>&5
  14951. ac_status=$?
  14952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14953. (exit $ac_status); }; } &&
  14954. { ac_try='test -s conftest$ac_exeext'
  14955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14956. (eval $ac_try) 2>&5
  14957. ac_status=$?
  14958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14959. (exit $ac_status); }; }; then
  14960. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14961. }'`
  14962. # Check for a 64-bit object if we didn't find anything.
  14963. 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; }
  14964. }'`; fi
  14965. else
  14966. echo "$as_me: failed program was:" >&5
  14967. sed 's/^/| /' conftest.$ac_ext >&5
  14968. fi
  14969. rm -f conftest.err conftest.$ac_objext \
  14970. conftest$ac_exeext conftest.$ac_ext
  14971. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14972. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14973. 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"
  14974. else
  14975. if test "$host_cpu" = ia64; then
  14976. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14977. allow_undefined_flag_GCJ="-z nodefs"
  14978. 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"
  14979. else
  14980. # Determine the default libpath from the value encoded in an empty executable.
  14981. cat >conftest.$ac_ext <<_ACEOF
  14982. /* confdefs.h. */
  14983. _ACEOF
  14984. cat confdefs.h >>conftest.$ac_ext
  14985. cat >>conftest.$ac_ext <<_ACEOF
  14986. /* end confdefs.h. */
  14987. int
  14988. main ()
  14989. {
  14990. ;
  14991. return 0;
  14992. }
  14993. _ACEOF
  14994. rm -f conftest.$ac_objext conftest$ac_exeext
  14995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14996. (eval $ac_link) 2>conftest.er1
  14997. ac_status=$?
  14998. grep -v '^ *+' conftest.er1 >conftest.err
  14999. rm -f conftest.er1
  15000. cat conftest.err >&5
  15001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15002. (exit $ac_status); } &&
  15003. { ac_try='test -z "$ac_c_werror_flag"
  15004. || test ! -s conftest.err'
  15005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15006. (eval $ac_try) 2>&5
  15007. ac_status=$?
  15008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15009. (exit $ac_status); }; } &&
  15010. { ac_try='test -s conftest$ac_exeext'
  15011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15012. (eval $ac_try) 2>&5
  15013. ac_status=$?
  15014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15015. (exit $ac_status); }; }; then
  15016. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15017. }'`
  15018. # Check for a 64-bit object if we didn't find anything.
  15019. 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; }
  15020. }'`; fi
  15021. else
  15022. echo "$as_me: failed program was:" >&5
  15023. sed 's/^/| /' conftest.$ac_ext >&5
  15024. fi
  15025. rm -f conftest.err conftest.$ac_objext \
  15026. conftest$ac_exeext conftest.$ac_ext
  15027. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15028. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15029. # Warning - without using the other run time loading flags,
  15030. # -berok will link without error, but may produce a broken library.
  15031. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15032. allow_undefined_flag_GCJ=' ${wl}-berok'
  15033. # Exported symbols can be pulled into shared objects from archives
  15034. whole_archive_flag_spec_GCJ='$convenience'
  15035. archive_cmds_need_lc_GCJ=yes
  15036. # This is similar to how AIX traditionally builds its shared libraries.
  15037. 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'
  15038. fi
  15039. fi
  15040. ;;
  15041. amigaos*)
  15042. 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)'
  15043. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15044. hardcode_minus_L_GCJ=yes
  15045. # see comment about different semantics on the GNU ld section
  15046. ld_shlibs_GCJ=no
  15047. ;;
  15048. bsdi[45]*)
  15049. export_dynamic_flag_spec_GCJ=-rdynamic
  15050. ;;
  15051. cygwin* | mingw* | pw32*)
  15052. # When not using gcc, we currently assume that we are using
  15053. # Microsoft Visual C++.
  15054. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15055. # no search path for DLLs.
  15056. hardcode_libdir_flag_spec_GCJ=' '
  15057. allow_undefined_flag_GCJ=unsupported
  15058. # Tell ltmain to make .lib files, not .a files.
  15059. libext=lib
  15060. # Tell ltmain to make .dll files, not .so files.
  15061. shrext_cmds=".dll"
  15062. # FIXME: Setting linknames here is a bad hack.
  15063. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15064. # The linker will automatically build a .lib file if we build a DLL.
  15065. old_archive_From_new_cmds_GCJ='true'
  15066. # FIXME: Should let the user specify the lib program.
  15067. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15068. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15069. enable_shared_with_static_runtimes_GCJ=yes
  15070. ;;
  15071. darwin* | rhapsody*)
  15072. case $host_os in
  15073. rhapsody* | darwin1.[012])
  15074. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15075. ;;
  15076. *) # Darwin 1.3 on
  15077. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15078. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15079. else
  15080. case ${MACOSX_DEPLOYMENT_TARGET} in
  15081. 10.[012])
  15082. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15083. ;;
  15084. 10.*)
  15085. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15086. ;;
  15087. esac
  15088. fi
  15089. ;;
  15090. esac
  15091. archive_cmds_need_lc_GCJ=no
  15092. hardcode_direct_GCJ=no
  15093. hardcode_automatic_GCJ=yes
  15094. hardcode_shlibpath_var_GCJ=unsupported
  15095. whole_archive_flag_spec_GCJ=''
  15096. link_all_deplibs_GCJ=yes
  15097. if test "$GCC" = yes ; then
  15098. output_verbose_link_cmd='echo'
  15099. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15100. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15101. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15102. 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}'
  15103. 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}'
  15104. else
  15105. case $cc_basename in
  15106. xlc*)
  15107. output_verbose_link_cmd='echo'
  15108. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15109. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15110. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15111. 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}'
  15112. 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}'
  15113. ;;
  15114. *)
  15115. ld_shlibs_GCJ=no
  15116. ;;
  15117. esac
  15118. fi
  15119. ;;
  15120. dgux*)
  15121. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15122. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15123. hardcode_shlibpath_var_GCJ=no
  15124. ;;
  15125. freebsd1*)
  15126. ld_shlibs_GCJ=no
  15127. ;;
  15128. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15129. # support. Future versions do this automatically, but an explicit c++rt0.o
  15130. # does not break anything, and helps significantly (at the cost of a little
  15131. # extra space).
  15132. freebsd2.2*)
  15133. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15134. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15135. hardcode_direct_GCJ=yes
  15136. hardcode_shlibpath_var_GCJ=no
  15137. ;;
  15138. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15139. freebsd2*)
  15140. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15141. hardcode_direct_GCJ=yes
  15142. hardcode_minus_L_GCJ=yes
  15143. hardcode_shlibpath_var_GCJ=no
  15144. ;;
  15145. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15146. freebsd* | kfreebsd*-gnu | dragonfly*)
  15147. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15148. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15149. hardcode_direct_GCJ=yes
  15150. hardcode_shlibpath_var_GCJ=no
  15151. ;;
  15152. hpux9*)
  15153. if test "$GCC" = yes; then
  15154. 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'
  15155. else
  15156. 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'
  15157. fi
  15158. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15159. hardcode_libdir_separator_GCJ=:
  15160. hardcode_direct_GCJ=yes
  15161. # hardcode_minus_L: Not really in the search PATH,
  15162. # but as the default location of the library.
  15163. hardcode_minus_L_GCJ=yes
  15164. export_dynamic_flag_spec_GCJ='${wl}-E'
  15165. ;;
  15166. hpux10*)
  15167. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15168. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15169. else
  15170. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15171. fi
  15172. if test "$with_gnu_ld" = no; then
  15173. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15174. hardcode_libdir_separator_GCJ=:
  15175. hardcode_direct_GCJ=yes
  15176. export_dynamic_flag_spec_GCJ='${wl}-E'
  15177. # hardcode_minus_L: Not really in the search PATH,
  15178. # but as the default location of the library.
  15179. hardcode_minus_L_GCJ=yes
  15180. fi
  15181. ;;
  15182. hpux11*)
  15183. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15184. case $host_cpu in
  15185. hppa*64*)
  15186. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15187. ;;
  15188. ia64*)
  15189. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15190. ;;
  15191. *)
  15192. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15193. ;;
  15194. esac
  15195. else
  15196. case $host_cpu in
  15197. hppa*64*)
  15198. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15199. ;;
  15200. ia64*)
  15201. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15202. ;;
  15203. *)
  15204. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15205. ;;
  15206. esac
  15207. fi
  15208. if test "$with_gnu_ld" = no; then
  15209. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15210. hardcode_libdir_separator_GCJ=:
  15211. case $host_cpu in
  15212. hppa*64*|ia64*)
  15213. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15214. hardcode_direct_GCJ=no
  15215. hardcode_shlibpath_var_GCJ=no
  15216. ;;
  15217. *)
  15218. hardcode_direct_GCJ=yes
  15219. export_dynamic_flag_spec_GCJ='${wl}-E'
  15220. # hardcode_minus_L: Not really in the search PATH,
  15221. # but as the default location of the library.
  15222. hardcode_minus_L_GCJ=yes
  15223. ;;
  15224. esac
  15225. fi
  15226. ;;
  15227. irix5* | irix6* | nonstopux*)
  15228. if test "$GCC" = yes; then
  15229. 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'
  15230. else
  15231. 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'
  15232. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15233. fi
  15234. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15235. hardcode_libdir_separator_GCJ=:
  15236. link_all_deplibs_GCJ=yes
  15237. ;;
  15238. netbsd*)
  15239. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15240. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15241. else
  15242. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15243. fi
  15244. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15245. hardcode_direct_GCJ=yes
  15246. hardcode_shlibpath_var_GCJ=no
  15247. ;;
  15248. newsos6)
  15249. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15250. hardcode_direct_GCJ=yes
  15251. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15252. hardcode_libdir_separator_GCJ=:
  15253. hardcode_shlibpath_var_GCJ=no
  15254. ;;
  15255. openbsd*)
  15256. hardcode_direct_GCJ=yes
  15257. hardcode_shlibpath_var_GCJ=no
  15258. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15259. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15260. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15261. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15262. export_dynamic_flag_spec_GCJ='${wl}-E'
  15263. else
  15264. case $host_os in
  15265. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15266. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15267. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15268. ;;
  15269. *)
  15270. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15271. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15272. ;;
  15273. esac
  15274. fi
  15275. ;;
  15276. os2*)
  15277. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15278. hardcode_minus_L_GCJ=yes
  15279. allow_undefined_flag_GCJ=unsupported
  15280. 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'
  15281. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15282. ;;
  15283. osf3*)
  15284. if test "$GCC" = yes; then
  15285. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15286. 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'
  15287. else
  15288. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15289. 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'
  15290. fi
  15291. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15292. hardcode_libdir_separator_GCJ=:
  15293. ;;
  15294. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15295. if test "$GCC" = yes; then
  15296. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15297. 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'
  15298. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15299. else
  15300. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15301. 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'
  15302. 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~
  15303. $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'
  15304. # Both c and cxx compiler support -rpath directly
  15305. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15306. fi
  15307. hardcode_libdir_separator_GCJ=:
  15308. ;;
  15309. solaris*)
  15310. no_undefined_flag_GCJ=' -z text'
  15311. if test "$GCC" = yes; then
  15312. wlarc='${wl}'
  15313. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15314. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15315. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15316. else
  15317. wlarc=''
  15318. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15319. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15320. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15321. fi
  15322. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15323. hardcode_shlibpath_var_GCJ=no
  15324. case $host_os in
  15325. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15326. *)
  15327. # The compiler driver will combine linker options so we
  15328. # cannot just pass the convience library names through
  15329. # without $wl, iff we do not link with $LD.
  15330. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15331. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15332. case $wlarc in
  15333. '')
  15334. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15335. *)
  15336. 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' ;;
  15337. esac ;;
  15338. esac
  15339. link_all_deplibs_GCJ=yes
  15340. ;;
  15341. sunos4*)
  15342. if test "x$host_vendor" = xsequent; then
  15343. # Use $CC to link under sequent, because it throws in some extra .o
  15344. # files that make .init and .fini sections work.
  15345. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15346. else
  15347. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15348. fi
  15349. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15350. hardcode_direct_GCJ=yes
  15351. hardcode_minus_L_GCJ=yes
  15352. hardcode_shlibpath_var_GCJ=no
  15353. ;;
  15354. sysv4)
  15355. case $host_vendor in
  15356. sni)
  15357. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15358. hardcode_direct_GCJ=yes # is this really true???
  15359. ;;
  15360. siemens)
  15361. ## LD is ld it makes a PLAMLIB
  15362. ## CC just makes a GrossModule.
  15363. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15364. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15365. hardcode_direct_GCJ=no
  15366. ;;
  15367. motorola)
  15368. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15369. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15370. ;;
  15371. esac
  15372. runpath_var='LD_RUN_PATH'
  15373. hardcode_shlibpath_var_GCJ=no
  15374. ;;
  15375. sysv4.3*)
  15376. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15377. hardcode_shlibpath_var_GCJ=no
  15378. export_dynamic_flag_spec_GCJ='-Bexport'
  15379. ;;
  15380. sysv4*MP*)
  15381. if test -d /usr/nec; then
  15382. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15383. hardcode_shlibpath_var_GCJ=no
  15384. runpath_var=LD_RUN_PATH
  15385. hardcode_runpath_var=yes
  15386. ld_shlibs_GCJ=yes
  15387. fi
  15388. ;;
  15389. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15390. no_undefined_flag_GCJ='${wl}-z,text'
  15391. archive_cmds_need_lc_GCJ=no
  15392. hardcode_shlibpath_var_GCJ=no
  15393. runpath_var='LD_RUN_PATH'
  15394. if test "$GCC" = yes; then
  15395. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15396. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15397. else
  15398. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15399. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15400. fi
  15401. ;;
  15402. sysv5* | sco3.2v5* | sco5v6*)
  15403. # Note: We can NOT use -z defs as we might desire, because we do not
  15404. # link with -lc, and that would cause any symbols used from libc to
  15405. # always be unresolved, which means just about no library would
  15406. # ever link correctly. If we're not using GNU ld we use -z text
  15407. # though, which does catch some bad symbols but isn't as heavy-handed
  15408. # as -z defs.
  15409. no_undefined_flag_GCJ='${wl}-z,text'
  15410. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15411. archive_cmds_need_lc_GCJ=no
  15412. hardcode_shlibpath_var_GCJ=no
  15413. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15414. hardcode_libdir_separator_GCJ=':'
  15415. link_all_deplibs_GCJ=yes
  15416. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15417. runpath_var='LD_RUN_PATH'
  15418. if test "$GCC" = yes; then
  15419. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15420. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15421. else
  15422. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15423. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15424. fi
  15425. ;;
  15426. uts4*)
  15427. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15428. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15429. hardcode_shlibpath_var_GCJ=no
  15430. ;;
  15431. *)
  15432. ld_shlibs_GCJ=no
  15433. ;;
  15434. esac
  15435. fi
  15436. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15437. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15438. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15439. #
  15440. # Do we need to explicitly link libc?
  15441. #
  15442. case "x$archive_cmds_need_lc_GCJ" in
  15443. x|xyes)
  15444. # Assume -lc should be added
  15445. archive_cmds_need_lc_GCJ=yes
  15446. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15447. case $archive_cmds_GCJ in
  15448. *'~'*)
  15449. # FIXME: we may have to deal with multi-command sequences.
  15450. ;;
  15451. '$CC '*)
  15452. # Test whether the compiler implicitly links with -lc since on some
  15453. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15454. # to ld, don't add -lc before -lgcc.
  15455. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15456. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15457. $rm conftest*
  15458. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15459. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15460. (eval $ac_compile) 2>&5
  15461. ac_status=$?
  15462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15463. (exit $ac_status); } 2>conftest.err; then
  15464. soname=conftest
  15465. lib=conftest
  15466. libobjs=conftest.$ac_objext
  15467. deplibs=
  15468. wl=$lt_prog_compiler_wl_GCJ
  15469. pic_flag=$lt_prog_compiler_pic_GCJ
  15470. compiler_flags=-v
  15471. linker_flags=-v
  15472. verstring=
  15473. output_objdir=.
  15474. libname=conftest
  15475. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15476. allow_undefined_flag_GCJ=
  15477. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15478. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15479. ac_status=$?
  15480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15481. (exit $ac_status); }
  15482. then
  15483. archive_cmds_need_lc_GCJ=no
  15484. else
  15485. archive_cmds_need_lc_GCJ=yes
  15486. fi
  15487. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15488. else
  15489. cat conftest.err 1>&5
  15490. fi
  15491. $rm conftest*
  15492. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15493. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15494. ;;
  15495. esac
  15496. fi
  15497. ;;
  15498. esac
  15499. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15500. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15501. library_names_spec=
  15502. libname_spec='lib$name'
  15503. soname_spec=
  15504. shrext_cmds=".so"
  15505. postinstall_cmds=
  15506. postuninstall_cmds=
  15507. finish_cmds=
  15508. finish_eval=
  15509. shlibpath_var=
  15510. shlibpath_overrides_runpath=unknown
  15511. version_type=none
  15512. dynamic_linker="$host_os ld.so"
  15513. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15514. if test "$GCC" = yes; then
  15515. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15516. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15517. # if the path contains ";" then we assume it to be the separator
  15518. # otherwise default to the standard path separator (i.e. ":") - it is
  15519. # assumed that no part of a normal pathname contains ";" but that should
  15520. # okay in the real world where ";" in dirpaths is itself problematic.
  15521. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15522. else
  15523. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15524. fi
  15525. else
  15526. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15527. fi
  15528. need_lib_prefix=unknown
  15529. hardcode_into_libs=no
  15530. # when you set need_version to no, make sure it does not cause -set_version
  15531. # flags to be left without arguments
  15532. need_version=unknown
  15533. case $host_os in
  15534. aix3*)
  15535. version_type=linux
  15536. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15537. shlibpath_var=LIBPATH
  15538. # AIX 3 has no versioning support, so we append a major version to the name.
  15539. soname_spec='${libname}${release}${shared_ext}$major'
  15540. ;;
  15541. aix4* | aix5*)
  15542. version_type=linux
  15543. need_lib_prefix=no
  15544. need_version=no
  15545. hardcode_into_libs=yes
  15546. if test "$host_cpu" = ia64; then
  15547. # AIX 5 supports IA64
  15548. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15549. shlibpath_var=LD_LIBRARY_PATH
  15550. else
  15551. # With GCC up to 2.95.x, collect2 would create an import file
  15552. # for dependence libraries. The import file would start with
  15553. # the line `#! .'. This would cause the generated library to
  15554. # depend on `.', always an invalid library. This was fixed in
  15555. # development snapshots of GCC prior to 3.0.
  15556. case $host_os in
  15557. aix4 | aix4.[01] | aix4.[01].*)
  15558. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15559. echo ' yes '
  15560. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15561. :
  15562. else
  15563. can_build_shared=no
  15564. fi
  15565. ;;
  15566. esac
  15567. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15568. # soname into executable. Probably we can add versioning support to
  15569. # collect2, so additional links can be useful in future.
  15570. if test "$aix_use_runtimelinking" = yes; then
  15571. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15572. # instead of lib<name>.a to let people know that these are not
  15573. # typical AIX shared libraries.
  15574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15575. else
  15576. # We preserve .a as extension for shared libraries through AIX4.2
  15577. # and later when we are not doing run time linking.
  15578. library_names_spec='${libname}${release}.a $libname.a'
  15579. soname_spec='${libname}${release}${shared_ext}$major'
  15580. fi
  15581. shlibpath_var=LIBPATH
  15582. fi
  15583. ;;
  15584. amigaos*)
  15585. library_names_spec='$libname.ixlibrary $libname.a'
  15586. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15587. 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'
  15588. ;;
  15589. beos*)
  15590. library_names_spec='${libname}${shared_ext}'
  15591. dynamic_linker="$host_os ld.so"
  15592. shlibpath_var=LIBRARY_PATH
  15593. ;;
  15594. bsdi[45]*)
  15595. version_type=linux
  15596. need_version=no
  15597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15598. soname_spec='${libname}${release}${shared_ext}$major'
  15599. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15600. shlibpath_var=LD_LIBRARY_PATH
  15601. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15602. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15603. # the default ld.so.conf also contains /usr/contrib/lib and
  15604. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15605. # libtool to hard-code these into programs
  15606. ;;
  15607. cygwin* | mingw* | pw32*)
  15608. version_type=windows
  15609. shrext_cmds=".dll"
  15610. need_version=no
  15611. need_lib_prefix=no
  15612. case $GCC,$host_os in
  15613. yes,cygwin* | yes,mingw* | yes,pw32*)
  15614. library_names_spec='$libname.dll.a'
  15615. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15616. postinstall_cmds='base_file=`basename \${file}`~
  15617. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15618. dldir=$destdir/`dirname \$dlpath`~
  15619. test -d \$dldir || mkdir -p \$dldir~
  15620. $install_prog $dir/$dlname \$dldir/$dlname~
  15621. chmod a+x \$dldir/$dlname'
  15622. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15623. dlpath=$dir/\$dldll~
  15624. $rm \$dlpath'
  15625. shlibpath_overrides_runpath=yes
  15626. case $host_os in
  15627. cygwin*)
  15628. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15629. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15630. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15631. ;;
  15632. mingw*)
  15633. # MinGW DLLs use traditional 'lib' prefix
  15634. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15635. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15636. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15637. # It is most probably a Windows format PATH printed by
  15638. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15639. # path with ; separators, and with drive letters. We can handle the
  15640. # drive letters (cygwin fileutils understands them), so leave them,
  15641. # especially as we might pass files found there to a mingw objdump,
  15642. # which wouldn't understand a cygwinified path. Ahh.
  15643. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15644. else
  15645. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15646. fi
  15647. ;;
  15648. pw32*)
  15649. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15650. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15651. ;;
  15652. esac
  15653. ;;
  15654. *)
  15655. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15656. ;;
  15657. esac
  15658. dynamic_linker='Win32 ld.exe'
  15659. # FIXME: first we should search . and the directory the executable is in
  15660. shlibpath_var=PATH
  15661. ;;
  15662. darwin* | rhapsody*)
  15663. dynamic_linker="$host_os dyld"
  15664. version_type=darwin
  15665. need_lib_prefix=no
  15666. need_version=no
  15667. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15668. soname_spec='${libname}${release}${major}$shared_ext'
  15669. shlibpath_overrides_runpath=yes
  15670. shlibpath_var=DYLD_LIBRARY_PATH
  15671. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15672. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15673. if test "$GCC" = yes; then
  15674. 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"`
  15675. else
  15676. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15677. fi
  15678. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15679. ;;
  15680. dgux*)
  15681. version_type=linux
  15682. need_lib_prefix=no
  15683. need_version=no
  15684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15685. soname_spec='${libname}${release}${shared_ext}$major'
  15686. shlibpath_var=LD_LIBRARY_PATH
  15687. ;;
  15688. freebsd1*)
  15689. dynamic_linker=no
  15690. ;;
  15691. kfreebsd*-gnu)
  15692. version_type=linux
  15693. need_lib_prefix=no
  15694. need_version=no
  15695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15696. soname_spec='${libname}${release}${shared_ext}$major'
  15697. shlibpath_var=LD_LIBRARY_PATH
  15698. shlibpath_overrides_runpath=no
  15699. hardcode_into_libs=yes
  15700. dynamic_linker='GNU ld.so'
  15701. ;;
  15702. freebsd* | dragonfly*)
  15703. # DragonFly does not have aout. When/if they implement a new
  15704. # versioning mechanism, adjust this.
  15705. if test -x /usr/bin/objformat; then
  15706. objformat=`/usr/bin/objformat`
  15707. else
  15708. case $host_os in
  15709. freebsd[123]*) objformat=aout ;;
  15710. *) objformat=elf ;;
  15711. esac
  15712. fi
  15713. version_type=freebsd-$objformat
  15714. case $version_type in
  15715. freebsd-elf*)
  15716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15717. need_version=no
  15718. need_lib_prefix=no
  15719. ;;
  15720. freebsd-*)
  15721. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15722. need_version=yes
  15723. ;;
  15724. esac
  15725. shlibpath_var=LD_LIBRARY_PATH
  15726. case $host_os in
  15727. freebsd2*)
  15728. shlibpath_overrides_runpath=yes
  15729. ;;
  15730. freebsd3.[01]* | freebsdelf3.[01]*)
  15731. shlibpath_overrides_runpath=yes
  15732. hardcode_into_libs=yes
  15733. ;;
  15734. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15735. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15736. shlibpath_overrides_runpath=no
  15737. hardcode_into_libs=yes
  15738. ;;
  15739. freebsd*) # from 4.6 on
  15740. shlibpath_overrides_runpath=yes
  15741. hardcode_into_libs=yes
  15742. ;;
  15743. esac
  15744. ;;
  15745. gnu*)
  15746. version_type=linux
  15747. need_lib_prefix=no
  15748. need_version=no
  15749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15750. soname_spec='${libname}${release}${shared_ext}$major'
  15751. shlibpath_var=LD_LIBRARY_PATH
  15752. hardcode_into_libs=yes
  15753. ;;
  15754. hpux9* | hpux10* | hpux11*)
  15755. # Give a soname corresponding to the major version so that dld.sl refuses to
  15756. # link against other versions.
  15757. version_type=sunos
  15758. need_lib_prefix=no
  15759. need_version=no
  15760. case $host_cpu in
  15761. ia64*)
  15762. shrext_cmds='.so'
  15763. hardcode_into_libs=yes
  15764. dynamic_linker="$host_os dld.so"
  15765. shlibpath_var=LD_LIBRARY_PATH
  15766. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15768. soname_spec='${libname}${release}${shared_ext}$major'
  15769. if test "X$HPUX_IA64_MODE" = X32; then
  15770. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15771. else
  15772. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15773. fi
  15774. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15775. ;;
  15776. hppa*64*)
  15777. shrext_cmds='.sl'
  15778. hardcode_into_libs=yes
  15779. dynamic_linker="$host_os dld.sl"
  15780. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15785. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15786. ;;
  15787. *)
  15788. shrext_cmds='.sl'
  15789. dynamic_linker="$host_os dld.sl"
  15790. shlibpath_var=SHLIB_PATH
  15791. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15792. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15793. soname_spec='${libname}${release}${shared_ext}$major'
  15794. ;;
  15795. esac
  15796. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15797. postinstall_cmds='chmod 555 $lib'
  15798. ;;
  15799. interix3*)
  15800. version_type=linux
  15801. need_lib_prefix=no
  15802. need_version=no
  15803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15804. soname_spec='${libname}${release}${shared_ext}$major'
  15805. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15806. shlibpath_var=LD_LIBRARY_PATH
  15807. shlibpath_overrides_runpath=no
  15808. hardcode_into_libs=yes
  15809. ;;
  15810. irix5* | irix6* | nonstopux*)
  15811. case $host_os in
  15812. nonstopux*) version_type=nonstopux ;;
  15813. *)
  15814. if test "$lt_cv_prog_gnu_ld" = yes; then
  15815. version_type=linux
  15816. else
  15817. version_type=irix
  15818. fi ;;
  15819. esac
  15820. need_lib_prefix=no
  15821. need_version=no
  15822. soname_spec='${libname}${release}${shared_ext}$major'
  15823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15824. case $host_os in
  15825. irix5* | nonstopux*)
  15826. libsuff= shlibsuff=
  15827. ;;
  15828. *)
  15829. case $LD in # libtool.m4 will add one of these switches to LD
  15830. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15831. libsuff= shlibsuff= libmagic=32-bit;;
  15832. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15833. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15834. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15835. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15836. *) libsuff= shlibsuff= libmagic=never-match;;
  15837. esac
  15838. ;;
  15839. esac
  15840. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15841. shlibpath_overrides_runpath=no
  15842. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15843. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15844. hardcode_into_libs=yes
  15845. ;;
  15846. # No shared lib support for Linux oldld, aout, or coff.
  15847. linux*oldld* | linux*aout* | linux*coff*)
  15848. dynamic_linker=no
  15849. ;;
  15850. # This must be Linux ELF.
  15851. linux*)
  15852. version_type=linux
  15853. need_lib_prefix=no
  15854. need_version=no
  15855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15856. soname_spec='${libname}${release}${shared_ext}$major'
  15857. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15858. shlibpath_var=LD_LIBRARY_PATH
  15859. shlibpath_overrides_runpath=no
  15860. # This implies no fast_install, which is unacceptable.
  15861. # Some rework will be needed to allow for fast_install
  15862. # before this can be enabled.
  15863. hardcode_into_libs=yes
  15864. # find out which ABI we are using
  15865. libsuff=
  15866. case "$host_cpu" in
  15867. x86_64*|s390x*|powerpc64*)
  15868. echo '#line 17641 "configure"' > conftest.$ac_ext
  15869. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15870. (eval $ac_compile) 2>&5
  15871. ac_status=$?
  15872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15873. (exit $ac_status); }; then
  15874. case `/usr/bin/file conftest.$ac_objext` in
  15875. *64-bit*)
  15876. libsuff=64
  15877. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15878. ;;
  15879. esac
  15880. fi
  15881. rm -rf conftest*
  15882. ;;
  15883. esac
  15884. # Append ld.so.conf contents to the search path
  15885. if test -f /etc/ld.so.conf; then
  15886. 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' ' '`
  15887. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15888. fi
  15889. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15890. # powerpc, because MkLinux only supported shared libraries with the
  15891. # GNU dynamic linker. Since this was broken with cross compilers,
  15892. # most powerpc-linux boxes support dynamic linking these days and
  15893. # people can always --disable-shared, the test was removed, and we
  15894. # assume the GNU/Linux dynamic linker is in use.
  15895. dynamic_linker='GNU/Linux ld.so'
  15896. ;;
  15897. knetbsd*-gnu)
  15898. version_type=linux
  15899. need_lib_prefix=no
  15900. need_version=no
  15901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15902. soname_spec='${libname}${release}${shared_ext}$major'
  15903. shlibpath_var=LD_LIBRARY_PATH
  15904. shlibpath_overrides_runpath=no
  15905. hardcode_into_libs=yes
  15906. dynamic_linker='GNU ld.so'
  15907. ;;
  15908. netbsd*)
  15909. version_type=sunos
  15910. need_lib_prefix=no
  15911. need_version=no
  15912. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15914. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15915. dynamic_linker='NetBSD (a.out) ld.so'
  15916. else
  15917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15918. soname_spec='${libname}${release}${shared_ext}$major'
  15919. dynamic_linker='NetBSD ld.elf_so'
  15920. fi
  15921. shlibpath_var=LD_LIBRARY_PATH
  15922. shlibpath_overrides_runpath=yes
  15923. hardcode_into_libs=yes
  15924. ;;
  15925. newsos6)
  15926. version_type=linux
  15927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15928. shlibpath_var=LD_LIBRARY_PATH
  15929. shlibpath_overrides_runpath=yes
  15930. ;;
  15931. nto-qnx*)
  15932. version_type=linux
  15933. need_lib_prefix=no
  15934. need_version=no
  15935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15936. soname_spec='${libname}${release}${shared_ext}$major'
  15937. shlibpath_var=LD_LIBRARY_PATH
  15938. shlibpath_overrides_runpath=yes
  15939. ;;
  15940. openbsd*)
  15941. version_type=sunos
  15942. sys_lib_dlsearch_path_spec="/usr/lib"
  15943. need_lib_prefix=no
  15944. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15945. case $host_os in
  15946. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15947. *) need_version=no ;;
  15948. esac
  15949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15950. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15951. shlibpath_var=LD_LIBRARY_PATH
  15952. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15953. case $host_os in
  15954. openbsd2.[89] | openbsd2.[89].*)
  15955. shlibpath_overrides_runpath=no
  15956. ;;
  15957. *)
  15958. shlibpath_overrides_runpath=yes
  15959. ;;
  15960. esac
  15961. else
  15962. shlibpath_overrides_runpath=yes
  15963. fi
  15964. ;;
  15965. os2*)
  15966. libname_spec='$name'
  15967. shrext_cmds=".dll"
  15968. need_lib_prefix=no
  15969. library_names_spec='$libname${shared_ext} $libname.a'
  15970. dynamic_linker='OS/2 ld.exe'
  15971. shlibpath_var=LIBPATH
  15972. ;;
  15973. osf3* | osf4* | osf5*)
  15974. version_type=osf
  15975. need_lib_prefix=no
  15976. need_version=no
  15977. soname_spec='${libname}${release}${shared_ext}$major'
  15978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15979. shlibpath_var=LD_LIBRARY_PATH
  15980. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15981. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15982. ;;
  15983. solaris*)
  15984. version_type=linux
  15985. need_lib_prefix=no
  15986. need_version=no
  15987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15988. soname_spec='${libname}${release}${shared_ext}$major'
  15989. shlibpath_var=LD_LIBRARY_PATH
  15990. shlibpath_overrides_runpath=yes
  15991. hardcode_into_libs=yes
  15992. # ldd complains unless libraries are executable
  15993. postinstall_cmds='chmod +x $lib'
  15994. ;;
  15995. sunos4*)
  15996. version_type=sunos
  15997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15998. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15999. shlibpath_var=LD_LIBRARY_PATH
  16000. shlibpath_overrides_runpath=yes
  16001. if test "$with_gnu_ld" = yes; then
  16002. need_lib_prefix=no
  16003. fi
  16004. need_version=yes
  16005. ;;
  16006. sysv4 | sysv4.3*)
  16007. version_type=linux
  16008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16009. soname_spec='${libname}${release}${shared_ext}$major'
  16010. shlibpath_var=LD_LIBRARY_PATH
  16011. case $host_vendor in
  16012. sni)
  16013. shlibpath_overrides_runpath=no
  16014. need_lib_prefix=no
  16015. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16016. runpath_var=LD_RUN_PATH
  16017. ;;
  16018. siemens)
  16019. need_lib_prefix=no
  16020. ;;
  16021. motorola)
  16022. need_lib_prefix=no
  16023. need_version=no
  16024. shlibpath_overrides_runpath=no
  16025. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16026. ;;
  16027. esac
  16028. ;;
  16029. sysv4*MP*)
  16030. if test -d /usr/nec ;then
  16031. version_type=linux
  16032. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16033. soname_spec='$libname${shared_ext}.$major'
  16034. shlibpath_var=LD_LIBRARY_PATH
  16035. fi
  16036. ;;
  16037. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16038. version_type=freebsd-elf
  16039. need_lib_prefix=no
  16040. need_version=no
  16041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16042. soname_spec='${libname}${release}${shared_ext}$major'
  16043. shlibpath_var=LD_LIBRARY_PATH
  16044. hardcode_into_libs=yes
  16045. if test "$with_gnu_ld" = yes; then
  16046. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16047. shlibpath_overrides_runpath=no
  16048. else
  16049. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16050. shlibpath_overrides_runpath=yes
  16051. case $host_os in
  16052. sco3.2v5*)
  16053. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16054. ;;
  16055. esac
  16056. fi
  16057. sys_lib_dlsearch_path_spec='/usr/lib'
  16058. ;;
  16059. uts4*)
  16060. version_type=linux
  16061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16062. soname_spec='${libname}${release}${shared_ext}$major'
  16063. shlibpath_var=LD_LIBRARY_PATH
  16064. ;;
  16065. *)
  16066. dynamic_linker=no
  16067. ;;
  16068. esac
  16069. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16070. echo "${ECHO_T}$dynamic_linker" >&6
  16071. test "$dynamic_linker" = no && can_build_shared=no
  16072. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16073. if test "$GCC" = yes; then
  16074. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16075. fi
  16076. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16077. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16078. hardcode_action_GCJ=
  16079. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16080. test -n "$runpath_var_GCJ" || \
  16081. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16082. # We can hardcode non-existant directories.
  16083. if test "$hardcode_direct_GCJ" != no &&
  16084. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16085. # have to relink, otherwise we might link with an installed library
  16086. # when we should be linking with a yet-to-be-installed one
  16087. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16088. test "$hardcode_minus_L_GCJ" != no; then
  16089. # Linking always hardcodes the temporary library directory.
  16090. hardcode_action_GCJ=relink
  16091. else
  16092. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16093. hardcode_action_GCJ=immediate
  16094. fi
  16095. else
  16096. # We cannot hardcode anything, or else we can only hardcode existing
  16097. # directories.
  16098. hardcode_action_GCJ=unsupported
  16099. fi
  16100. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16101. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16102. if test "$hardcode_action_GCJ" = relink; then
  16103. # Fast installation is not supported
  16104. enable_fast_install=no
  16105. elif test "$shlibpath_overrides_runpath" = yes ||
  16106. test "$enable_shared" = no; then
  16107. # Fast installation is not necessary
  16108. enable_fast_install=needless
  16109. fi
  16110. # The else clause should only fire when bootstrapping the
  16111. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16112. # with your package, and you will get complaints that there are
  16113. # no rules to generate ltmain.sh.
  16114. if test -f "$ltmain"; then
  16115. # See if we are running on zsh, and set the options which allow our commands through
  16116. # without removal of \ escapes.
  16117. if test -n "${ZSH_VERSION+set}" ; then
  16118. setopt NO_GLOB_SUBST
  16119. fi
  16120. # Now quote all the things that may contain metacharacters while being
  16121. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16122. # variables and quote the copies for generation of the libtool script.
  16123. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16124. SED SHELL STRIP \
  16125. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16126. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16127. deplibs_check_method reload_flag reload_cmds need_locks \
  16128. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16129. lt_cv_sys_global_symbol_to_c_name_address \
  16130. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16131. old_postinstall_cmds old_postuninstall_cmds \
  16132. compiler_GCJ \
  16133. CC_GCJ \
  16134. LD_GCJ \
  16135. lt_prog_compiler_wl_GCJ \
  16136. lt_prog_compiler_pic_GCJ \
  16137. lt_prog_compiler_static_GCJ \
  16138. lt_prog_compiler_no_builtin_flag_GCJ \
  16139. export_dynamic_flag_spec_GCJ \
  16140. thread_safe_flag_spec_GCJ \
  16141. whole_archive_flag_spec_GCJ \
  16142. enable_shared_with_static_runtimes_GCJ \
  16143. old_archive_cmds_GCJ \
  16144. old_archive_from_new_cmds_GCJ \
  16145. predep_objects_GCJ \
  16146. postdep_objects_GCJ \
  16147. predeps_GCJ \
  16148. postdeps_GCJ \
  16149. compiler_lib_search_path_GCJ \
  16150. archive_cmds_GCJ \
  16151. archive_expsym_cmds_GCJ \
  16152. postinstall_cmds_GCJ \
  16153. postuninstall_cmds_GCJ \
  16154. old_archive_from_expsyms_cmds_GCJ \
  16155. allow_undefined_flag_GCJ \
  16156. no_undefined_flag_GCJ \
  16157. export_symbols_cmds_GCJ \
  16158. hardcode_libdir_flag_spec_GCJ \
  16159. hardcode_libdir_flag_spec_ld_GCJ \
  16160. hardcode_libdir_separator_GCJ \
  16161. hardcode_automatic_GCJ \
  16162. module_cmds_GCJ \
  16163. module_expsym_cmds_GCJ \
  16164. lt_cv_prog_compiler_c_o_GCJ \
  16165. exclude_expsyms_GCJ \
  16166. include_expsyms_GCJ; do
  16167. case $var in
  16168. old_archive_cmds_GCJ | \
  16169. old_archive_from_new_cmds_GCJ | \
  16170. archive_cmds_GCJ | \
  16171. archive_expsym_cmds_GCJ | \
  16172. module_cmds_GCJ | \
  16173. module_expsym_cmds_GCJ | \
  16174. old_archive_from_expsyms_cmds_GCJ | \
  16175. export_symbols_cmds_GCJ | \
  16176. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16177. postinstall_cmds | postuninstall_cmds | \
  16178. old_postinstall_cmds | old_postuninstall_cmds | \
  16179. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16180. # Double-quote double-evaled strings.
  16181. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16182. ;;
  16183. *)
  16184. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16185. ;;
  16186. esac
  16187. done
  16188. case $lt_echo in
  16189. *'\$0 --fallback-echo"')
  16190. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16191. ;;
  16192. esac
  16193. cfgfile="$ofile"
  16194. cat <<__EOF__ >> "$cfgfile"
  16195. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16196. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16197. # Shell to use when invoking shell scripts.
  16198. SHELL=$lt_SHELL
  16199. # Whether or not to build shared libraries.
  16200. build_libtool_libs=$enable_shared
  16201. # Whether or not to build static libraries.
  16202. build_old_libs=$enable_static
  16203. # Whether or not to add -lc for building shared libraries.
  16204. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16205. # Whether or not to disallow shared libs when runtime libs are static
  16206. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16207. # Whether or not to optimize for fast installation.
  16208. fast_install=$enable_fast_install
  16209. # The host system.
  16210. host_alias=$host_alias
  16211. host=$host
  16212. host_os=$host_os
  16213. # The build system.
  16214. build_alias=$build_alias
  16215. build=$build
  16216. build_os=$build_os
  16217. # An echo program that does not interpret backslashes.
  16218. echo=$lt_echo
  16219. # The archiver.
  16220. AR=$lt_AR
  16221. AR_FLAGS=$lt_AR_FLAGS
  16222. # A C compiler.
  16223. LTCC=$lt_LTCC
  16224. # LTCC compiler flags.
  16225. LTCFLAGS=$lt_LTCFLAGS
  16226. # A language-specific compiler.
  16227. CC=$lt_compiler_GCJ
  16228. # Is the compiler the GNU C compiler?
  16229. with_gcc=$GCC_GCJ
  16230. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16231. gcc_ver=\`gcc -dumpversion\`
  16232. # An ERE matcher.
  16233. EGREP=$lt_EGREP
  16234. # The linker used to build libraries.
  16235. LD=$lt_LD_GCJ
  16236. # Whether we need hard or soft links.
  16237. LN_S=$lt_LN_S
  16238. # A BSD-compatible nm program.
  16239. NM=$lt_NM
  16240. # A symbol stripping program
  16241. STRIP=$lt_STRIP
  16242. # Used to examine libraries when file_magic_cmd begins "file"
  16243. MAGIC_CMD=$MAGIC_CMD
  16244. # Used on cygwin: DLL creation program.
  16245. DLLTOOL="$DLLTOOL"
  16246. # Used on cygwin: object dumper.
  16247. OBJDUMP="$OBJDUMP"
  16248. # Used on cygwin: assembler.
  16249. AS="$AS"
  16250. # The name of the directory that contains temporary libtool files.
  16251. objdir=$objdir
  16252. # How to create reloadable object files.
  16253. reload_flag=$lt_reload_flag
  16254. reload_cmds=$lt_reload_cmds
  16255. # How to pass a linker flag through the compiler.
  16256. wl=$lt_lt_prog_compiler_wl_GCJ
  16257. # Object file suffix (normally "o").
  16258. objext="$ac_objext"
  16259. # Old archive suffix (normally "a").
  16260. libext="$libext"
  16261. # Shared library suffix (normally ".so").
  16262. shrext_cmds='$shrext_cmds'
  16263. # Executable file suffix (normally "").
  16264. exeext="$exeext"
  16265. # Additional compiler flags for building library objects.
  16266. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16267. pic_mode=$pic_mode
  16268. # What is the maximum length of a command?
  16269. max_cmd_len=$lt_cv_sys_max_cmd_len
  16270. # Does compiler simultaneously support -c and -o options?
  16271. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16272. # Must we lock files when doing compilation?
  16273. need_locks=$lt_need_locks
  16274. # Do we need the lib prefix for modules?
  16275. need_lib_prefix=$need_lib_prefix
  16276. # Do we need a version for libraries?
  16277. need_version=$need_version
  16278. # Whether dlopen is supported.
  16279. dlopen_support=$enable_dlopen
  16280. # Whether dlopen of programs is supported.
  16281. dlopen_self=$enable_dlopen_self
  16282. # Whether dlopen of statically linked programs is supported.
  16283. dlopen_self_static=$enable_dlopen_self_static
  16284. # Compiler flag to prevent dynamic linking.
  16285. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16286. # Compiler flag to turn off builtin functions.
  16287. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16288. # Compiler flag to allow reflexive dlopens.
  16289. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16290. # Compiler flag to generate shared objects directly from archives.
  16291. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16292. # Compiler flag to generate thread-safe objects.
  16293. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16294. # Library versioning type.
  16295. version_type=$version_type
  16296. # Format of library name prefix.
  16297. libname_spec=$lt_libname_spec
  16298. # List of archive names. First name is the real one, the rest are links.
  16299. # The last name is the one that the linker finds with -lNAME.
  16300. library_names_spec=$lt_library_names_spec
  16301. # The coded name of the library, if different from the real name.
  16302. soname_spec=$lt_soname_spec
  16303. # Commands used to build and install an old-style archive.
  16304. RANLIB=$lt_RANLIB
  16305. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16306. old_postinstall_cmds=$lt_old_postinstall_cmds
  16307. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16308. # Create an old-style archive from a shared archive.
  16309. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16310. # Create a temporary old-style archive to link instead of a shared archive.
  16311. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16312. # Commands used to build and install a shared archive.
  16313. archive_cmds=$lt_archive_cmds_GCJ
  16314. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16315. postinstall_cmds=$lt_postinstall_cmds
  16316. postuninstall_cmds=$lt_postuninstall_cmds
  16317. # Commands used to build a loadable module (assumed same as above if empty)
  16318. module_cmds=$lt_module_cmds_GCJ
  16319. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16320. # Commands to strip libraries.
  16321. old_striplib=$lt_old_striplib
  16322. striplib=$lt_striplib
  16323. # Dependencies to place before the objects being linked to create a
  16324. # shared library.
  16325. predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16326. # Dependencies to place after the objects being linked to create a
  16327. # shared library.
  16328. postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16329. # Dependencies to place before the objects being linked to create a
  16330. # shared library.
  16331. predeps=$lt_predeps_GCJ
  16332. # Dependencies to place after the objects being linked to create a
  16333. # shared library.
  16334. postdeps=$lt_postdeps_GCJ
  16335. # The library search path used internally by the compiler when linking
  16336. # a shared library.
  16337. 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"\`
  16338. # Method to check whether dependent libraries are shared objects.
  16339. deplibs_check_method=$lt_deplibs_check_method
  16340. # Command to use when deplibs_check_method == file_magic.
  16341. file_magic_cmd=$lt_file_magic_cmd
  16342. # Flag that allows shared libraries with undefined symbols to be built.
  16343. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16344. # Flag that forces no undefined symbols.
  16345. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16346. # Commands used to finish a libtool library installation in a directory.
  16347. finish_cmds=$lt_finish_cmds
  16348. # Same as above, but a single script fragment to be evaled but not shown.
  16349. finish_eval=$lt_finish_eval
  16350. # Take the output of nm and produce a listing of raw symbols and C names.
  16351. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16352. # Transform the output of nm in a proper C declaration
  16353. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16354. # Transform the output of nm in a C name address pair
  16355. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16356. # This is the shared library runtime path variable.
  16357. runpath_var=$runpath_var
  16358. # This is the shared library path variable.
  16359. shlibpath_var=$shlibpath_var
  16360. # Is shlibpath searched before the hard-coded library search path?
  16361. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16362. # How to hardcode a shared library path into an executable.
  16363. hardcode_action=$hardcode_action_GCJ
  16364. # Whether we should hardcode library paths into libraries.
  16365. hardcode_into_libs=$hardcode_into_libs
  16366. # Flag to hardcode \$libdir into a binary during linking.
  16367. # This must work even if \$libdir does not exist.
  16368. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16369. # If ld is used when linking, flag to hardcode \$libdir into
  16370. # a binary during linking. This must work even if \$libdir does
  16371. # not exist.
  16372. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16373. # Whether we need a single -rpath flag with a separated argument.
  16374. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16375. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16376. # resulting binary.
  16377. hardcode_direct=$hardcode_direct_GCJ
  16378. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16379. # resulting binary.
  16380. hardcode_minus_L=$hardcode_minus_L_GCJ
  16381. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16382. # the resulting binary.
  16383. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16384. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16385. # and all subsequent libraries and executables linked against it.
  16386. hardcode_automatic=$hardcode_automatic_GCJ
  16387. # Variables whose values should be saved in libtool wrapper scripts and
  16388. # restored at relink time.
  16389. variables_saved_for_relink="$variables_saved_for_relink"
  16390. # Whether libtool must link a program against all its dependency libraries.
  16391. link_all_deplibs=$link_all_deplibs_GCJ
  16392. # Compile-time system search path for libraries
  16393. 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"\`
  16394. # Run-time system search path for libraries
  16395. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16396. # Fix the shell variable \$srcfile for the compiler.
  16397. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16398. # Set to yes if exported symbols are required.
  16399. always_export_symbols=$always_export_symbols_GCJ
  16400. # The commands to list exported symbols.
  16401. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16402. # The commands to extract the exported symbol list from a shared archive.
  16403. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16404. # Symbols that should not be listed in the preloaded symbols.
  16405. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16406. # Symbols that must always be exported.
  16407. include_expsyms=$lt_include_expsyms_GCJ
  16408. # ### END LIBTOOL TAG CONFIG: $tagname
  16409. __EOF__
  16410. else
  16411. # If there is no Makefile yet, we rely on a make rule to execute
  16412. # `config.status --recheck' to rerun these tests and create the
  16413. # libtool script then.
  16414. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16415. if test -f "$ltmain_in"; then
  16416. test -f Makefile && make "$ltmain"
  16417. fi
  16418. fi
  16419. ac_ext=c
  16420. ac_cpp='$CPP $CPPFLAGS'
  16421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16424. CC="$lt_save_CC"
  16425. else
  16426. tagname=""
  16427. fi
  16428. ;;
  16429. RC)
  16430. # Source file extension for RC test sources.
  16431. ac_ext=rc
  16432. # Object file extension for compiled RC test sources.
  16433. objext=o
  16434. objext_RC=$objext
  16435. # Code to be used in simple compile tests
  16436. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16437. # Code to be used in simple link tests
  16438. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16439. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16440. # If no C compiler was specified, use CC.
  16441. LTCC=${LTCC-"$CC"}
  16442. # If no C compiler flags were specified, use CFLAGS.
  16443. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16444. # Allow CC to be a program name with arguments.
  16445. compiler=$CC
  16446. # save warnings/boilerplate of simple test code
  16447. ac_outfile=conftest.$ac_objext
  16448. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16449. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16450. _lt_compiler_boilerplate=`cat conftest.err`
  16451. $rm conftest*
  16452. ac_outfile=conftest.$ac_objext
  16453. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16454. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16455. _lt_linker_boilerplate=`cat conftest.err`
  16456. $rm conftest*
  16457. # Allow CC to be a program name with arguments.
  16458. lt_save_CC="$CC"
  16459. CC=${RC-"windres"}
  16460. compiler=$CC
  16461. compiler_RC=$CC
  16462. for cc_temp in $compiler""; do
  16463. case $cc_temp in
  16464. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16465. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16466. \-*) ;;
  16467. *) break;;
  16468. esac
  16469. done
  16470. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16471. lt_cv_prog_compiler_c_o_RC=yes
  16472. # The else clause should only fire when bootstrapping the
  16473. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16474. # with your package, and you will get complaints that there are
  16475. # no rules to generate ltmain.sh.
  16476. if test -f "$ltmain"; then
  16477. # See if we are running on zsh, and set the options which allow our commands through
  16478. # without removal of \ escapes.
  16479. if test -n "${ZSH_VERSION+set}" ; then
  16480. setopt NO_GLOB_SUBST
  16481. fi
  16482. # Now quote all the things that may contain metacharacters while being
  16483. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16484. # variables and quote the copies for generation of the libtool script.
  16485. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16486. SED SHELL STRIP \
  16487. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16488. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16489. deplibs_check_method reload_flag reload_cmds need_locks \
  16490. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16491. lt_cv_sys_global_symbol_to_c_name_address \
  16492. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16493. old_postinstall_cmds old_postuninstall_cmds \
  16494. compiler_RC \
  16495. CC_RC \
  16496. LD_RC \
  16497. lt_prog_compiler_wl_RC \
  16498. lt_prog_compiler_pic_RC \
  16499. lt_prog_compiler_static_RC \
  16500. lt_prog_compiler_no_builtin_flag_RC \
  16501. export_dynamic_flag_spec_RC \
  16502. thread_safe_flag_spec_RC \
  16503. whole_archive_flag_spec_RC \
  16504. enable_shared_with_static_runtimes_RC \
  16505. old_archive_cmds_RC \
  16506. old_archive_from_new_cmds_RC \
  16507. predep_objects_RC \
  16508. postdep_objects_RC \
  16509. predeps_RC \
  16510. postdeps_RC \
  16511. compiler_lib_search_path_RC \
  16512. archive_cmds_RC \
  16513. archive_expsym_cmds_RC \
  16514. postinstall_cmds_RC \
  16515. postuninstall_cmds_RC \
  16516. old_archive_from_expsyms_cmds_RC \
  16517. allow_undefined_flag_RC \
  16518. no_undefined_flag_RC \
  16519. export_symbols_cmds_RC \
  16520. hardcode_libdir_flag_spec_RC \
  16521. hardcode_libdir_flag_spec_ld_RC \
  16522. hardcode_libdir_separator_RC \
  16523. hardcode_automatic_RC \
  16524. module_cmds_RC \
  16525. module_expsym_cmds_RC \
  16526. lt_cv_prog_compiler_c_o_RC \
  16527. exclude_expsyms_RC \
  16528. include_expsyms_RC; do
  16529. case $var in
  16530. old_archive_cmds_RC | \
  16531. old_archive_from_new_cmds_RC | \
  16532. archive_cmds_RC | \
  16533. archive_expsym_cmds_RC | \
  16534. module_cmds_RC | \
  16535. module_expsym_cmds_RC | \
  16536. old_archive_from_expsyms_cmds_RC | \
  16537. export_symbols_cmds_RC | \
  16538. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16539. postinstall_cmds | postuninstall_cmds | \
  16540. old_postinstall_cmds | old_postuninstall_cmds | \
  16541. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16542. # Double-quote double-evaled strings.
  16543. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16544. ;;
  16545. *)
  16546. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16547. ;;
  16548. esac
  16549. done
  16550. case $lt_echo in
  16551. *'\$0 --fallback-echo"')
  16552. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16553. ;;
  16554. esac
  16555. cfgfile="$ofile"
  16556. cat <<__EOF__ >> "$cfgfile"
  16557. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16558. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16559. # Shell to use when invoking shell scripts.
  16560. SHELL=$lt_SHELL
  16561. # Whether or not to build shared libraries.
  16562. build_libtool_libs=$enable_shared
  16563. # Whether or not to build static libraries.
  16564. build_old_libs=$enable_static
  16565. # Whether or not to add -lc for building shared libraries.
  16566. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16567. # Whether or not to disallow shared libs when runtime libs are static
  16568. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16569. # Whether or not to optimize for fast installation.
  16570. fast_install=$enable_fast_install
  16571. # The host system.
  16572. host_alias=$host_alias
  16573. host=$host
  16574. host_os=$host_os
  16575. # The build system.
  16576. build_alias=$build_alias
  16577. build=$build
  16578. build_os=$build_os
  16579. # An echo program that does not interpret backslashes.
  16580. echo=$lt_echo
  16581. # The archiver.
  16582. AR=$lt_AR
  16583. AR_FLAGS=$lt_AR_FLAGS
  16584. # A C compiler.
  16585. LTCC=$lt_LTCC
  16586. # LTCC compiler flags.
  16587. LTCFLAGS=$lt_LTCFLAGS
  16588. # A language-specific compiler.
  16589. CC=$lt_compiler_RC
  16590. # Is the compiler the GNU C compiler?
  16591. with_gcc=$GCC_RC
  16592. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16593. gcc_ver=\`gcc -dumpversion\`
  16594. # An ERE matcher.
  16595. EGREP=$lt_EGREP
  16596. # The linker used to build libraries.
  16597. LD=$lt_LD_RC
  16598. # Whether we need hard or soft links.
  16599. LN_S=$lt_LN_S
  16600. # A BSD-compatible nm program.
  16601. NM=$lt_NM
  16602. # A symbol stripping program
  16603. STRIP=$lt_STRIP
  16604. # Used to examine libraries when file_magic_cmd begins "file"
  16605. MAGIC_CMD=$MAGIC_CMD
  16606. # Used on cygwin: DLL creation program.
  16607. DLLTOOL="$DLLTOOL"
  16608. # Used on cygwin: object dumper.
  16609. OBJDUMP="$OBJDUMP"
  16610. # Used on cygwin: assembler.
  16611. AS="$AS"
  16612. # The name of the directory that contains temporary libtool files.
  16613. objdir=$objdir
  16614. # How to create reloadable object files.
  16615. reload_flag=$lt_reload_flag
  16616. reload_cmds=$lt_reload_cmds
  16617. # How to pass a linker flag through the compiler.
  16618. wl=$lt_lt_prog_compiler_wl_RC
  16619. # Object file suffix (normally "o").
  16620. objext="$ac_objext"
  16621. # Old archive suffix (normally "a").
  16622. libext="$libext"
  16623. # Shared library suffix (normally ".so").
  16624. shrext_cmds='$shrext_cmds'
  16625. # Executable file suffix (normally "").
  16626. exeext="$exeext"
  16627. # Additional compiler flags for building library objects.
  16628. pic_flag=$lt_lt_prog_compiler_pic_RC
  16629. pic_mode=$pic_mode
  16630. # What is the maximum length of a command?
  16631. max_cmd_len=$lt_cv_sys_max_cmd_len
  16632. # Does compiler simultaneously support -c and -o options?
  16633. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16634. # Must we lock files when doing compilation?
  16635. need_locks=$lt_need_locks
  16636. # Do we need the lib prefix for modules?
  16637. need_lib_prefix=$need_lib_prefix
  16638. # Do we need a version for libraries?
  16639. need_version=$need_version
  16640. # Whether dlopen is supported.
  16641. dlopen_support=$enable_dlopen
  16642. # Whether dlopen of programs is supported.
  16643. dlopen_self=$enable_dlopen_self
  16644. # Whether dlopen of statically linked programs is supported.
  16645. dlopen_self_static=$enable_dlopen_self_static
  16646. # Compiler flag to prevent dynamic linking.
  16647. link_static_flag=$lt_lt_prog_compiler_static_RC
  16648. # Compiler flag to turn off builtin functions.
  16649. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16650. # Compiler flag to allow reflexive dlopens.
  16651. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16652. # Compiler flag to generate shared objects directly from archives.
  16653. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16654. # Compiler flag to generate thread-safe objects.
  16655. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16656. # Library versioning type.
  16657. version_type=$version_type
  16658. # Format of library name prefix.
  16659. libname_spec=$lt_libname_spec
  16660. # List of archive names. First name is the real one, the rest are links.
  16661. # The last name is the one that the linker finds with -lNAME.
  16662. library_names_spec=$lt_library_names_spec
  16663. # The coded name of the library, if different from the real name.
  16664. soname_spec=$lt_soname_spec
  16665. # Commands used to build and install an old-style archive.
  16666. RANLIB=$lt_RANLIB
  16667. old_archive_cmds=$lt_old_archive_cmds_RC
  16668. old_postinstall_cmds=$lt_old_postinstall_cmds
  16669. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16670. # Create an old-style archive from a shared archive.
  16671. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16672. # Create a temporary old-style archive to link instead of a shared archive.
  16673. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16674. # Commands used to build and install a shared archive.
  16675. archive_cmds=$lt_archive_cmds_RC
  16676. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16677. postinstall_cmds=$lt_postinstall_cmds
  16678. postuninstall_cmds=$lt_postuninstall_cmds
  16679. # Commands used to build a loadable module (assumed same as above if empty)
  16680. module_cmds=$lt_module_cmds_RC
  16681. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16682. # Commands to strip libraries.
  16683. old_striplib=$lt_old_striplib
  16684. striplib=$lt_striplib
  16685. # Dependencies to place before the objects being linked to create a
  16686. # shared library.
  16687. predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16688. # Dependencies to place after the objects being linked to create a
  16689. # shared library.
  16690. postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16691. # Dependencies to place before the objects being linked to create a
  16692. # shared library.
  16693. predeps=$lt_predeps_RC
  16694. # Dependencies to place after the objects being linked to create a
  16695. # shared library.
  16696. postdeps=$lt_postdeps_RC
  16697. # The library search path used internally by the compiler when linking
  16698. # a shared library.
  16699. 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"\`
  16700. # Method to check whether dependent libraries are shared objects.
  16701. deplibs_check_method=$lt_deplibs_check_method
  16702. # Command to use when deplibs_check_method == file_magic.
  16703. file_magic_cmd=$lt_file_magic_cmd
  16704. # Flag that allows shared libraries with undefined symbols to be built.
  16705. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16706. # Flag that forces no undefined symbols.
  16707. no_undefined_flag=$lt_no_undefined_flag_RC
  16708. # Commands used to finish a libtool library installation in a directory.
  16709. finish_cmds=$lt_finish_cmds
  16710. # Same as above, but a single script fragment to be evaled but not shown.
  16711. finish_eval=$lt_finish_eval
  16712. # Take the output of nm and produce a listing of raw symbols and C names.
  16713. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16714. # Transform the output of nm in a proper C declaration
  16715. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16716. # Transform the output of nm in a C name address pair
  16717. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16718. # This is the shared library runtime path variable.
  16719. runpath_var=$runpath_var
  16720. # This is the shared library path variable.
  16721. shlibpath_var=$shlibpath_var
  16722. # Is shlibpath searched before the hard-coded library search path?
  16723. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16724. # How to hardcode a shared library path into an executable.
  16725. hardcode_action=$hardcode_action_RC
  16726. # Whether we should hardcode library paths into libraries.
  16727. hardcode_into_libs=$hardcode_into_libs
  16728. # Flag to hardcode \$libdir into a binary during linking.
  16729. # This must work even if \$libdir does not exist.
  16730. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16731. # If ld is used when linking, flag to hardcode \$libdir into
  16732. # a binary during linking. This must work even if \$libdir does
  16733. # not exist.
  16734. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16735. # Whether we need a single -rpath flag with a separated argument.
  16736. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16737. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16738. # resulting binary.
  16739. hardcode_direct=$hardcode_direct_RC
  16740. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16741. # resulting binary.
  16742. hardcode_minus_L=$hardcode_minus_L_RC
  16743. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16744. # the resulting binary.
  16745. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16746. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16747. # and all subsequent libraries and executables linked against it.
  16748. hardcode_automatic=$hardcode_automatic_RC
  16749. # Variables whose values should be saved in libtool wrapper scripts and
  16750. # restored at relink time.
  16751. variables_saved_for_relink="$variables_saved_for_relink"
  16752. # Whether libtool must link a program against all its dependency libraries.
  16753. link_all_deplibs=$link_all_deplibs_RC
  16754. # Compile-time system search path for libraries
  16755. 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"\`
  16756. # Run-time system search path for libraries
  16757. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16758. # Fix the shell variable \$srcfile for the compiler.
  16759. fix_srcfile_path="$fix_srcfile_path_RC"
  16760. # Set to yes if exported symbols are required.
  16761. always_export_symbols=$always_export_symbols_RC
  16762. # The commands to list exported symbols.
  16763. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16764. # The commands to extract the exported symbol list from a shared archive.
  16765. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16766. # Symbols that should not be listed in the preloaded symbols.
  16767. exclude_expsyms=$lt_exclude_expsyms_RC
  16768. # Symbols that must always be exported.
  16769. include_expsyms=$lt_include_expsyms_RC
  16770. # ### END LIBTOOL TAG CONFIG: $tagname
  16771. __EOF__
  16772. else
  16773. # If there is no Makefile yet, we rely on a make rule to execute
  16774. # `config.status --recheck' to rerun these tests and create the
  16775. # libtool script then.
  16776. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16777. if test -f "$ltmain_in"; then
  16778. test -f Makefile && make "$ltmain"
  16779. fi
  16780. fi
  16781. ac_ext=c
  16782. ac_cpp='$CPP $CPPFLAGS'
  16783. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16784. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16785. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16786. CC="$lt_save_CC"
  16787. ;;
  16788. *)
  16789. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16790. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16791. { (exit 1); exit 1; }; }
  16792. ;;
  16793. esac
  16794. # Append the new tag name to the list of available tags.
  16795. if test -n "$tagname" ; then
  16796. available_tags="$available_tags $tagname"
  16797. fi
  16798. fi
  16799. done
  16800. IFS="$lt_save_ifs"
  16801. # Now substitute the updated list of available tags.
  16802. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16803. mv "${ofile}T" "$ofile"
  16804. chmod +x "$ofile"
  16805. else
  16806. rm -f "${ofile}T"
  16807. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16808. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16809. { (exit 1); exit 1; }; }
  16810. fi
  16811. fi
  16812. # This can be used to rebuild libtool when needed
  16813. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16814. # Always use our own libtool.
  16815. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16816. # Prevent multiple expansion
  16817. # Checks for header files.
  16818. ac_header_dirent=no
  16819. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16820. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16821. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16822. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16823. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16824. echo $ECHO_N "(cached) $ECHO_C" >&6
  16825. else
  16826. cat >conftest.$ac_ext <<_ACEOF
  16827. /* confdefs.h. */
  16828. _ACEOF
  16829. cat confdefs.h >>conftest.$ac_ext
  16830. cat >>conftest.$ac_ext <<_ACEOF
  16831. /* end confdefs.h. */
  16832. #include <sys/types.h>
  16833. #include <$ac_hdr>
  16834. int
  16835. main ()
  16836. {
  16837. if ((DIR *) 0)
  16838. return 0;
  16839. ;
  16840. return 0;
  16841. }
  16842. _ACEOF
  16843. rm -f conftest.$ac_objext
  16844. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16845. (eval $ac_compile) 2>conftest.er1
  16846. ac_status=$?
  16847. grep -v '^ *+' conftest.er1 >conftest.err
  16848. rm -f conftest.er1
  16849. cat conftest.err >&5
  16850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16851. (exit $ac_status); } &&
  16852. { ac_try='test -z "$ac_c_werror_flag"
  16853. || test ! -s conftest.err'
  16854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16855. (eval $ac_try) 2>&5
  16856. ac_status=$?
  16857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16858. (exit $ac_status); }; } &&
  16859. { ac_try='test -s conftest.$ac_objext'
  16860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16861. (eval $ac_try) 2>&5
  16862. ac_status=$?
  16863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16864. (exit $ac_status); }; }; then
  16865. eval "$as_ac_Header=yes"
  16866. else
  16867. echo "$as_me: failed program was:" >&5
  16868. sed 's/^/| /' conftest.$ac_ext >&5
  16869. eval "$as_ac_Header=no"
  16870. fi
  16871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16872. fi
  16873. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16874. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16875. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16876. cat >>confdefs.h <<_ACEOF
  16877. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16878. _ACEOF
  16879. ac_header_dirent=$ac_hdr; break
  16880. fi
  16881. done
  16882. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16883. if test $ac_header_dirent = dirent.h; then
  16884. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16885. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16886. if test "${ac_cv_search_opendir+set}" = set; then
  16887. echo $ECHO_N "(cached) $ECHO_C" >&6
  16888. else
  16889. ac_func_search_save_LIBS=$LIBS
  16890. ac_cv_search_opendir=no
  16891. cat >conftest.$ac_ext <<_ACEOF
  16892. /* confdefs.h. */
  16893. _ACEOF
  16894. cat confdefs.h >>conftest.$ac_ext
  16895. cat >>conftest.$ac_ext <<_ACEOF
  16896. /* end confdefs.h. */
  16897. /* Override any gcc2 internal prototype to avoid an error. */
  16898. #ifdef __cplusplus
  16899. extern "C"
  16900. #endif
  16901. /* We use char because int might match the return type of a gcc2
  16902. builtin and then its argument prototype would still apply. */
  16903. char opendir ();
  16904. int
  16905. main ()
  16906. {
  16907. opendir ();
  16908. ;
  16909. return 0;
  16910. }
  16911. _ACEOF
  16912. rm -f conftest.$ac_objext conftest$ac_exeext
  16913. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16914. (eval $ac_link) 2>conftest.er1
  16915. ac_status=$?
  16916. grep -v '^ *+' conftest.er1 >conftest.err
  16917. rm -f conftest.er1
  16918. cat conftest.err >&5
  16919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16920. (exit $ac_status); } &&
  16921. { ac_try='test -z "$ac_c_werror_flag"
  16922. || test ! -s conftest.err'
  16923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16924. (eval $ac_try) 2>&5
  16925. ac_status=$?
  16926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16927. (exit $ac_status); }; } &&
  16928. { ac_try='test -s conftest$ac_exeext'
  16929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16930. (eval $ac_try) 2>&5
  16931. ac_status=$?
  16932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16933. (exit $ac_status); }; }; then
  16934. ac_cv_search_opendir="none required"
  16935. else
  16936. echo "$as_me: failed program was:" >&5
  16937. sed 's/^/| /' conftest.$ac_ext >&5
  16938. fi
  16939. rm -f conftest.err conftest.$ac_objext \
  16940. conftest$ac_exeext conftest.$ac_ext
  16941. if test "$ac_cv_search_opendir" = no; then
  16942. for ac_lib in dir; do
  16943. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16944. cat >conftest.$ac_ext <<_ACEOF
  16945. /* confdefs.h. */
  16946. _ACEOF
  16947. cat confdefs.h >>conftest.$ac_ext
  16948. cat >>conftest.$ac_ext <<_ACEOF
  16949. /* end confdefs.h. */
  16950. /* Override any gcc2 internal prototype to avoid an error. */
  16951. #ifdef __cplusplus
  16952. extern "C"
  16953. #endif
  16954. /* We use char because int might match the return type of a gcc2
  16955. builtin and then its argument prototype would still apply. */
  16956. char opendir ();
  16957. int
  16958. main ()
  16959. {
  16960. opendir ();
  16961. ;
  16962. return 0;
  16963. }
  16964. _ACEOF
  16965. rm -f conftest.$ac_objext conftest$ac_exeext
  16966. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16967. (eval $ac_link) 2>conftest.er1
  16968. ac_status=$?
  16969. grep -v '^ *+' conftest.er1 >conftest.err
  16970. rm -f conftest.er1
  16971. cat conftest.err >&5
  16972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16973. (exit $ac_status); } &&
  16974. { ac_try='test -z "$ac_c_werror_flag"
  16975. || test ! -s conftest.err'
  16976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16977. (eval $ac_try) 2>&5
  16978. ac_status=$?
  16979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16980. (exit $ac_status); }; } &&
  16981. { ac_try='test -s conftest$ac_exeext'
  16982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16983. (eval $ac_try) 2>&5
  16984. ac_status=$?
  16985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16986. (exit $ac_status); }; }; then
  16987. ac_cv_search_opendir="-l$ac_lib"
  16988. break
  16989. else
  16990. echo "$as_me: failed program was:" >&5
  16991. sed 's/^/| /' conftest.$ac_ext >&5
  16992. fi
  16993. rm -f conftest.err conftest.$ac_objext \
  16994. conftest$ac_exeext conftest.$ac_ext
  16995. done
  16996. fi
  16997. LIBS=$ac_func_search_save_LIBS
  16998. fi
  16999. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17000. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17001. if test "$ac_cv_search_opendir" != no; then
  17002. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17003. fi
  17004. else
  17005. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17006. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  17007. if test "${ac_cv_search_opendir+set}" = set; then
  17008. echo $ECHO_N "(cached) $ECHO_C" >&6
  17009. else
  17010. ac_func_search_save_LIBS=$LIBS
  17011. ac_cv_search_opendir=no
  17012. cat >conftest.$ac_ext <<_ACEOF
  17013. /* confdefs.h. */
  17014. _ACEOF
  17015. cat confdefs.h >>conftest.$ac_ext
  17016. cat >>conftest.$ac_ext <<_ACEOF
  17017. /* end confdefs.h. */
  17018. /* Override any gcc2 internal prototype to avoid an error. */
  17019. #ifdef __cplusplus
  17020. extern "C"
  17021. #endif
  17022. /* We use char because int might match the return type of a gcc2
  17023. builtin and then its argument prototype would still apply. */
  17024. char opendir ();
  17025. int
  17026. main ()
  17027. {
  17028. opendir ();
  17029. ;
  17030. return 0;
  17031. }
  17032. _ACEOF
  17033. rm -f conftest.$ac_objext conftest$ac_exeext
  17034. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17035. (eval $ac_link) 2>conftest.er1
  17036. ac_status=$?
  17037. grep -v '^ *+' conftest.er1 >conftest.err
  17038. rm -f conftest.er1
  17039. cat conftest.err >&5
  17040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17041. (exit $ac_status); } &&
  17042. { ac_try='test -z "$ac_c_werror_flag"
  17043. || test ! -s conftest.err'
  17044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17045. (eval $ac_try) 2>&5
  17046. ac_status=$?
  17047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17048. (exit $ac_status); }; } &&
  17049. { ac_try='test -s conftest$ac_exeext'
  17050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17051. (eval $ac_try) 2>&5
  17052. ac_status=$?
  17053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17054. (exit $ac_status); }; }; then
  17055. ac_cv_search_opendir="none required"
  17056. else
  17057. echo "$as_me: failed program was:" >&5
  17058. sed 's/^/| /' conftest.$ac_ext >&5
  17059. fi
  17060. rm -f conftest.err conftest.$ac_objext \
  17061. conftest$ac_exeext conftest.$ac_ext
  17062. if test "$ac_cv_search_opendir" = no; then
  17063. for ac_lib in x; do
  17064. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17065. cat >conftest.$ac_ext <<_ACEOF
  17066. /* confdefs.h. */
  17067. _ACEOF
  17068. cat confdefs.h >>conftest.$ac_ext
  17069. cat >>conftest.$ac_ext <<_ACEOF
  17070. /* end confdefs.h. */
  17071. /* Override any gcc2 internal prototype to avoid an error. */
  17072. #ifdef __cplusplus
  17073. extern "C"
  17074. #endif
  17075. /* We use char because int might match the return type of a gcc2
  17076. builtin and then its argument prototype would still apply. */
  17077. char opendir ();
  17078. int
  17079. main ()
  17080. {
  17081. opendir ();
  17082. ;
  17083. return 0;
  17084. }
  17085. _ACEOF
  17086. rm -f conftest.$ac_objext conftest$ac_exeext
  17087. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17088. (eval $ac_link) 2>conftest.er1
  17089. ac_status=$?
  17090. grep -v '^ *+' conftest.er1 >conftest.err
  17091. rm -f conftest.er1
  17092. cat conftest.err >&5
  17093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17094. (exit $ac_status); } &&
  17095. { ac_try='test -z "$ac_c_werror_flag"
  17096. || test ! -s conftest.err'
  17097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17098. (eval $ac_try) 2>&5
  17099. ac_status=$?
  17100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17101. (exit $ac_status); }; } &&
  17102. { ac_try='test -s conftest$ac_exeext'
  17103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17104. (eval $ac_try) 2>&5
  17105. ac_status=$?
  17106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17107. (exit $ac_status); }; }; then
  17108. ac_cv_search_opendir="-l$ac_lib"
  17109. break
  17110. else
  17111. echo "$as_me: failed program was:" >&5
  17112. sed 's/^/| /' conftest.$ac_ext >&5
  17113. fi
  17114. rm -f conftest.err conftest.$ac_objext \
  17115. conftest$ac_exeext conftest.$ac_ext
  17116. done
  17117. fi
  17118. LIBS=$ac_func_search_save_LIBS
  17119. fi
  17120. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17121. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17122. if test "$ac_cv_search_opendir" != no; then
  17123. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17124. fi
  17125. fi
  17126. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17127. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17128. if test "${ac_cv_header_stdc+set}" = set; then
  17129. echo $ECHO_N "(cached) $ECHO_C" >&6
  17130. else
  17131. cat >conftest.$ac_ext <<_ACEOF
  17132. /* confdefs.h. */
  17133. _ACEOF
  17134. cat confdefs.h >>conftest.$ac_ext
  17135. cat >>conftest.$ac_ext <<_ACEOF
  17136. /* end confdefs.h. */
  17137. #include <stdlib.h>
  17138. #include <stdarg.h>
  17139. #include <string.h>
  17140. #include <float.h>
  17141. int
  17142. main ()
  17143. {
  17144. ;
  17145. return 0;
  17146. }
  17147. _ACEOF
  17148. rm -f conftest.$ac_objext
  17149. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17150. (eval $ac_compile) 2>conftest.er1
  17151. ac_status=$?
  17152. grep -v '^ *+' conftest.er1 >conftest.err
  17153. rm -f conftest.er1
  17154. cat conftest.err >&5
  17155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17156. (exit $ac_status); } &&
  17157. { ac_try='test -z "$ac_c_werror_flag"
  17158. || test ! -s conftest.err'
  17159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17160. (eval $ac_try) 2>&5
  17161. ac_status=$?
  17162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17163. (exit $ac_status); }; } &&
  17164. { ac_try='test -s conftest.$ac_objext'
  17165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17166. (eval $ac_try) 2>&5
  17167. ac_status=$?
  17168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17169. (exit $ac_status); }; }; then
  17170. ac_cv_header_stdc=yes
  17171. else
  17172. echo "$as_me: failed program was:" >&5
  17173. sed 's/^/| /' conftest.$ac_ext >&5
  17174. ac_cv_header_stdc=no
  17175. fi
  17176. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17177. if test $ac_cv_header_stdc = yes; then
  17178. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17179. cat >conftest.$ac_ext <<_ACEOF
  17180. /* confdefs.h. */
  17181. _ACEOF
  17182. cat confdefs.h >>conftest.$ac_ext
  17183. cat >>conftest.$ac_ext <<_ACEOF
  17184. /* end confdefs.h. */
  17185. #include <string.h>
  17186. _ACEOF
  17187. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17188. $EGREP "memchr" >/dev/null 2>&1; then
  17189. :
  17190. else
  17191. ac_cv_header_stdc=no
  17192. fi
  17193. rm -f conftest*
  17194. fi
  17195. if test $ac_cv_header_stdc = yes; then
  17196. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17197. cat >conftest.$ac_ext <<_ACEOF
  17198. /* confdefs.h. */
  17199. _ACEOF
  17200. cat confdefs.h >>conftest.$ac_ext
  17201. cat >>conftest.$ac_ext <<_ACEOF
  17202. /* end confdefs.h. */
  17203. #include <stdlib.h>
  17204. _ACEOF
  17205. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17206. $EGREP "free" >/dev/null 2>&1; then
  17207. :
  17208. else
  17209. ac_cv_header_stdc=no
  17210. fi
  17211. rm -f conftest*
  17212. fi
  17213. if test $ac_cv_header_stdc = yes; then
  17214. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17215. if test "$cross_compiling" = yes; then
  17216. :
  17217. else
  17218. cat >conftest.$ac_ext <<_ACEOF
  17219. /* confdefs.h. */
  17220. _ACEOF
  17221. cat confdefs.h >>conftest.$ac_ext
  17222. cat >>conftest.$ac_ext <<_ACEOF
  17223. /* end confdefs.h. */
  17224. #include <ctype.h>
  17225. #if ((' ' & 0x0FF) == 0x020)
  17226. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17227. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17228. #else
  17229. # define ISLOWER(c) \
  17230. (('a' <= (c) && (c) <= 'i') \
  17231. || ('j' <= (c) && (c) <= 'r') \
  17232. || ('s' <= (c) && (c) <= 'z'))
  17233. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17234. #endif
  17235. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17236. int
  17237. main ()
  17238. {
  17239. int i;
  17240. for (i = 0; i < 256; i++)
  17241. if (XOR (islower (i), ISLOWER (i))
  17242. || toupper (i) != TOUPPER (i))
  17243. exit(2);
  17244. exit (0);
  17245. }
  17246. _ACEOF
  17247. rm -f conftest$ac_exeext
  17248. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17249. (eval $ac_link) 2>&5
  17250. ac_status=$?
  17251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17252. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17254. (eval $ac_try) 2>&5
  17255. ac_status=$?
  17256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17257. (exit $ac_status); }; }; then
  17258. :
  17259. else
  17260. echo "$as_me: program exited with status $ac_status" >&5
  17261. echo "$as_me: failed program was:" >&5
  17262. sed 's/^/| /' conftest.$ac_ext >&5
  17263. ( exit $ac_status )
  17264. ac_cv_header_stdc=no
  17265. fi
  17266. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17267. fi
  17268. fi
  17269. fi
  17270. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17271. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17272. if test $ac_cv_header_stdc = yes; then
  17273. cat >>confdefs.h <<\_ACEOF
  17274. #define STDC_HEADERS 1
  17275. _ACEOF
  17276. fi
  17277. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17278. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17279. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17280. echo $ECHO_N "(cached) $ECHO_C" >&6
  17281. else
  17282. cat >conftest.$ac_ext <<_ACEOF
  17283. /* confdefs.h. */
  17284. _ACEOF
  17285. cat confdefs.h >>conftest.$ac_ext
  17286. cat >>conftest.$ac_ext <<_ACEOF
  17287. /* end confdefs.h. */
  17288. #include <sys/types.h>
  17289. #include <sys/wait.h>
  17290. #ifndef WEXITSTATUS
  17291. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17292. #endif
  17293. #ifndef WIFEXITED
  17294. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17295. #endif
  17296. int
  17297. main ()
  17298. {
  17299. int s;
  17300. wait (&s);
  17301. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17302. ;
  17303. return 0;
  17304. }
  17305. _ACEOF
  17306. rm -f conftest.$ac_objext
  17307. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17308. (eval $ac_compile) 2>conftest.er1
  17309. ac_status=$?
  17310. grep -v '^ *+' conftest.er1 >conftest.err
  17311. rm -f conftest.er1
  17312. cat conftest.err >&5
  17313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17314. (exit $ac_status); } &&
  17315. { ac_try='test -z "$ac_c_werror_flag"
  17316. || test ! -s conftest.err'
  17317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17318. (eval $ac_try) 2>&5
  17319. ac_status=$?
  17320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17321. (exit $ac_status); }; } &&
  17322. { ac_try='test -s conftest.$ac_objext'
  17323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17324. (eval $ac_try) 2>&5
  17325. ac_status=$?
  17326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17327. (exit $ac_status); }; }; then
  17328. ac_cv_header_sys_wait_h=yes
  17329. else
  17330. echo "$as_me: failed program was:" >&5
  17331. sed 's/^/| /' conftest.$ac_ext >&5
  17332. ac_cv_header_sys_wait_h=no
  17333. fi
  17334. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17335. fi
  17336. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17337. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17338. if test $ac_cv_header_sys_wait_h = yes; then
  17339. cat >>confdefs.h <<\_ACEOF
  17340. #define HAVE_SYS_WAIT_H 1
  17341. _ACEOF
  17342. fi
  17343. 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
  17344. do
  17345. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17346. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17347. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17348. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17349. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17350. echo $ECHO_N "(cached) $ECHO_C" >&6
  17351. fi
  17352. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17353. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17354. else
  17355. # Is the header compilable?
  17356. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17357. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17358. cat >conftest.$ac_ext <<_ACEOF
  17359. /* confdefs.h. */
  17360. _ACEOF
  17361. cat confdefs.h >>conftest.$ac_ext
  17362. cat >>conftest.$ac_ext <<_ACEOF
  17363. /* end confdefs.h. */
  17364. $ac_includes_default
  17365. #include <$ac_header>
  17366. _ACEOF
  17367. rm -f conftest.$ac_objext
  17368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17369. (eval $ac_compile) 2>conftest.er1
  17370. ac_status=$?
  17371. grep -v '^ *+' conftest.er1 >conftest.err
  17372. rm -f conftest.er1
  17373. cat conftest.err >&5
  17374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17375. (exit $ac_status); } &&
  17376. { ac_try='test -z "$ac_c_werror_flag"
  17377. || test ! -s conftest.err'
  17378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17379. (eval $ac_try) 2>&5
  17380. ac_status=$?
  17381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17382. (exit $ac_status); }; } &&
  17383. { ac_try='test -s conftest.$ac_objext'
  17384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17385. (eval $ac_try) 2>&5
  17386. ac_status=$?
  17387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17388. (exit $ac_status); }; }; then
  17389. ac_header_compiler=yes
  17390. else
  17391. echo "$as_me: failed program was:" >&5
  17392. sed 's/^/| /' conftest.$ac_ext >&5
  17393. ac_header_compiler=no
  17394. fi
  17395. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17396. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17397. echo "${ECHO_T}$ac_header_compiler" >&6
  17398. # Is the header present?
  17399. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17400. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17401. cat >conftest.$ac_ext <<_ACEOF
  17402. /* confdefs.h. */
  17403. _ACEOF
  17404. cat confdefs.h >>conftest.$ac_ext
  17405. cat >>conftest.$ac_ext <<_ACEOF
  17406. /* end confdefs.h. */
  17407. #include <$ac_header>
  17408. _ACEOF
  17409. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17410. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17411. ac_status=$?
  17412. grep -v '^ *+' conftest.er1 >conftest.err
  17413. rm -f conftest.er1
  17414. cat conftest.err >&5
  17415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17416. (exit $ac_status); } >/dev/null; then
  17417. if test -s conftest.err; then
  17418. ac_cpp_err=$ac_c_preproc_warn_flag
  17419. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17420. else
  17421. ac_cpp_err=
  17422. fi
  17423. else
  17424. ac_cpp_err=yes
  17425. fi
  17426. if test -z "$ac_cpp_err"; then
  17427. ac_header_preproc=yes
  17428. else
  17429. echo "$as_me: failed program was:" >&5
  17430. sed 's/^/| /' conftest.$ac_ext >&5
  17431. ac_header_preproc=no
  17432. fi
  17433. rm -f conftest.err conftest.$ac_ext
  17434. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17435. echo "${ECHO_T}$ac_header_preproc" >&6
  17436. # So? What about this header?
  17437. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17438. yes:no: )
  17439. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17440. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17441. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17442. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17443. ac_header_preproc=yes
  17444. ;;
  17445. no:yes:* )
  17446. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17447. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17448. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17449. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17450. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17451. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17452. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17453. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17455. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17456. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17457. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17458. (
  17459. cat <<\_ASBOX
  17460. ## ------------------------------------------ ##
  17461. ## Report this to http://bugzilla.redhat.com/ ##
  17462. ## ------------------------------------------ ##
  17463. _ASBOX
  17464. ) |
  17465. sed "s/^/$as_me: WARNING: /" >&2
  17466. ;;
  17467. esac
  17468. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17469. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17470. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17471. echo $ECHO_N "(cached) $ECHO_C" >&6
  17472. else
  17473. eval "$as_ac_Header=\$ac_header_preproc"
  17474. fi
  17475. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17476. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17477. fi
  17478. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17479. cat >>confdefs.h <<_ACEOF
  17480. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17481. _ACEOF
  17482. fi
  17483. done
  17484. # Checks for typedefs, structures, and compiler characteristics.
  17485. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17486. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17487. if test "${ac_cv_header_stat_broken+set}" = set; then
  17488. echo $ECHO_N "(cached) $ECHO_C" >&6
  17489. else
  17490. cat >conftest.$ac_ext <<_ACEOF
  17491. /* confdefs.h. */
  17492. _ACEOF
  17493. cat confdefs.h >>conftest.$ac_ext
  17494. cat >>conftest.$ac_ext <<_ACEOF
  17495. /* end confdefs.h. */
  17496. #include <sys/types.h>
  17497. #include <sys/stat.h>
  17498. #if defined(S_ISBLK) && defined(S_IFDIR)
  17499. # if S_ISBLK (S_IFDIR)
  17500. You lose.
  17501. # endif
  17502. #endif
  17503. #if defined(S_ISBLK) && defined(S_IFCHR)
  17504. # if S_ISBLK (S_IFCHR)
  17505. You lose.
  17506. # endif
  17507. #endif
  17508. #if defined(S_ISLNK) && defined(S_IFREG)
  17509. # if S_ISLNK (S_IFREG)
  17510. You lose.
  17511. # endif
  17512. #endif
  17513. #if defined(S_ISSOCK) && defined(S_IFREG)
  17514. # if S_ISSOCK (S_IFREG)
  17515. You lose.
  17516. # endif
  17517. #endif
  17518. _ACEOF
  17519. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17520. $EGREP "You lose" >/dev/null 2>&1; then
  17521. ac_cv_header_stat_broken=yes
  17522. else
  17523. ac_cv_header_stat_broken=no
  17524. fi
  17525. rm -f conftest*
  17526. fi
  17527. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17528. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17529. if test $ac_cv_header_stat_broken = yes; then
  17530. cat >>confdefs.h <<\_ACEOF
  17531. #define STAT_MACROS_BROKEN 1
  17532. _ACEOF
  17533. fi
  17534. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17535. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17536. if test "${ac_cv_c_const+set}" = set; then
  17537. echo $ECHO_N "(cached) $ECHO_C" >&6
  17538. else
  17539. cat >conftest.$ac_ext <<_ACEOF
  17540. /* confdefs.h. */
  17541. _ACEOF
  17542. cat confdefs.h >>conftest.$ac_ext
  17543. cat >>conftest.$ac_ext <<_ACEOF
  17544. /* end confdefs.h. */
  17545. int
  17546. main ()
  17547. {
  17548. /* FIXME: Include the comments suggested by Paul. */
  17549. #ifndef __cplusplus
  17550. /* Ultrix mips cc rejects this. */
  17551. typedef int charset[2];
  17552. const charset x;
  17553. /* SunOS 4.1.1 cc rejects this. */
  17554. char const *const *ccp;
  17555. char **p;
  17556. /* NEC SVR4.0.2 mips cc rejects this. */
  17557. struct point {int x, y;};
  17558. static struct point const zero = {0,0};
  17559. /* AIX XL C 1.02.0.0 rejects this.
  17560. It does not let you subtract one const X* pointer from another in
  17561. an arm of an if-expression whose if-part is not a constant
  17562. expression */
  17563. const char *g = "string";
  17564. ccp = &g + (g ? g-g : 0);
  17565. /* HPUX 7.0 cc rejects these. */
  17566. ++ccp;
  17567. p = (char**) ccp;
  17568. ccp = (char const *const *) p;
  17569. { /* SCO 3.2v4 cc rejects this. */
  17570. char *t;
  17571. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17572. *t++ = 0;
  17573. }
  17574. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17575. int x[] = {25, 17};
  17576. const int *foo = &x[0];
  17577. ++foo;
  17578. }
  17579. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17580. typedef const int *iptr;
  17581. iptr p = 0;
  17582. ++p;
  17583. }
  17584. { /* AIX XL C 1.02.0.0 rejects this saying
  17585. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17586. struct s { int j; const int *ap[3]; };
  17587. struct s *b; b->j = 5;
  17588. }
  17589. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17590. const int foo = 10;
  17591. }
  17592. #endif
  17593. ;
  17594. return 0;
  17595. }
  17596. _ACEOF
  17597. rm -f conftest.$ac_objext
  17598. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17599. (eval $ac_compile) 2>conftest.er1
  17600. ac_status=$?
  17601. grep -v '^ *+' conftest.er1 >conftest.err
  17602. rm -f conftest.er1
  17603. cat conftest.err >&5
  17604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17605. (exit $ac_status); } &&
  17606. { ac_try='test -z "$ac_c_werror_flag"
  17607. || test ! -s conftest.err'
  17608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17609. (eval $ac_try) 2>&5
  17610. ac_status=$?
  17611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17612. (exit $ac_status); }; } &&
  17613. { ac_try='test -s conftest.$ac_objext'
  17614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17615. (eval $ac_try) 2>&5
  17616. ac_status=$?
  17617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17618. (exit $ac_status); }; }; then
  17619. ac_cv_c_const=yes
  17620. else
  17621. echo "$as_me: failed program was:" >&5
  17622. sed 's/^/| /' conftest.$ac_ext >&5
  17623. ac_cv_c_const=no
  17624. fi
  17625. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17626. fi
  17627. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17628. echo "${ECHO_T}$ac_cv_c_const" >&6
  17629. if test $ac_cv_c_const = no; then
  17630. cat >>confdefs.h <<\_ACEOF
  17631. #define const
  17632. _ACEOF
  17633. fi
  17634. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17635. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17636. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17637. echo $ECHO_N "(cached) $ECHO_C" >&6
  17638. else
  17639. cat >conftest.$ac_ext <<_ACEOF
  17640. /* confdefs.h. */
  17641. _ACEOF
  17642. cat confdefs.h >>conftest.$ac_ext
  17643. cat >>conftest.$ac_ext <<_ACEOF
  17644. /* end confdefs.h. */
  17645. #include <stdbool.h>
  17646. #ifndef bool
  17647. # error bool is not defined
  17648. #endif
  17649. #ifndef false
  17650. # error false is not defined
  17651. #endif
  17652. #if false
  17653. # error false is not 0
  17654. #endif
  17655. #ifndef true
  17656. # error true is not defined
  17657. #endif
  17658. #if true != 1
  17659. # error true is not 1
  17660. #endif
  17661. #ifndef __bool_true_false_are_defined
  17662. # error __bool_true_false_are_defined is not defined
  17663. #endif
  17664. struct s { _Bool s: 1; _Bool t; } s;
  17665. char a[true == 1 ? 1 : -1];
  17666. char b[false == 0 ? 1 : -1];
  17667. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17668. char d[(bool) -0.5 == true ? 1 : -1];
  17669. bool e = &s;
  17670. char f[(_Bool) -0.0 == false ? 1 : -1];
  17671. char g[true];
  17672. char h[sizeof (_Bool)];
  17673. char i[sizeof s.t];
  17674. int
  17675. main ()
  17676. {
  17677. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17678. ;
  17679. return 0;
  17680. }
  17681. _ACEOF
  17682. rm -f conftest.$ac_objext
  17683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17684. (eval $ac_compile) 2>conftest.er1
  17685. ac_status=$?
  17686. grep -v '^ *+' conftest.er1 >conftest.err
  17687. rm -f conftest.er1
  17688. cat conftest.err >&5
  17689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17690. (exit $ac_status); } &&
  17691. { ac_try='test -z "$ac_c_werror_flag"
  17692. || test ! -s conftest.err'
  17693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17694. (eval $ac_try) 2>&5
  17695. ac_status=$?
  17696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17697. (exit $ac_status); }; } &&
  17698. { ac_try='test -s conftest.$ac_objext'
  17699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17700. (eval $ac_try) 2>&5
  17701. ac_status=$?
  17702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17703. (exit $ac_status); }; }; then
  17704. ac_cv_header_stdbool_h=yes
  17705. else
  17706. echo "$as_me: failed program was:" >&5
  17707. sed 's/^/| /' conftest.$ac_ext >&5
  17708. ac_cv_header_stdbool_h=no
  17709. fi
  17710. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17711. fi
  17712. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17713. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17714. echo "$as_me:$LINENO: checking for _Bool" >&5
  17715. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17716. if test "${ac_cv_type__Bool+set}" = set; then
  17717. echo $ECHO_N "(cached) $ECHO_C" >&6
  17718. else
  17719. cat >conftest.$ac_ext <<_ACEOF
  17720. /* confdefs.h. */
  17721. _ACEOF
  17722. cat confdefs.h >>conftest.$ac_ext
  17723. cat >>conftest.$ac_ext <<_ACEOF
  17724. /* end confdefs.h. */
  17725. $ac_includes_default
  17726. int
  17727. main ()
  17728. {
  17729. if ((_Bool *) 0)
  17730. return 0;
  17731. if (sizeof (_Bool))
  17732. return 0;
  17733. ;
  17734. return 0;
  17735. }
  17736. _ACEOF
  17737. rm -f conftest.$ac_objext
  17738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17739. (eval $ac_compile) 2>conftest.er1
  17740. ac_status=$?
  17741. grep -v '^ *+' conftest.er1 >conftest.err
  17742. rm -f conftest.er1
  17743. cat conftest.err >&5
  17744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17745. (exit $ac_status); } &&
  17746. { ac_try='test -z "$ac_c_werror_flag"
  17747. || test ! -s conftest.err'
  17748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17749. (eval $ac_try) 2>&5
  17750. ac_status=$?
  17751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17752. (exit $ac_status); }; } &&
  17753. { ac_try='test -s conftest.$ac_objext'
  17754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17755. (eval $ac_try) 2>&5
  17756. ac_status=$?
  17757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17758. (exit $ac_status); }; }; then
  17759. ac_cv_type__Bool=yes
  17760. else
  17761. echo "$as_me: failed program was:" >&5
  17762. sed 's/^/| /' conftest.$ac_ext >&5
  17763. ac_cv_type__Bool=no
  17764. fi
  17765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17766. fi
  17767. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17768. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17769. if test $ac_cv_type__Bool = yes; then
  17770. cat >>confdefs.h <<_ACEOF
  17771. #define HAVE__BOOL 1
  17772. _ACEOF
  17773. fi
  17774. if test $ac_cv_header_stdbool_h = yes; then
  17775. cat >>confdefs.h <<\_ACEOF
  17776. #define HAVE_STDBOOL_H 1
  17777. _ACEOF
  17778. fi
  17779. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17780. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17781. if test "${ac_cv_type_uid_t+set}" = set; then
  17782. echo $ECHO_N "(cached) $ECHO_C" >&6
  17783. else
  17784. cat >conftest.$ac_ext <<_ACEOF
  17785. /* confdefs.h. */
  17786. _ACEOF
  17787. cat confdefs.h >>conftest.$ac_ext
  17788. cat >>conftest.$ac_ext <<_ACEOF
  17789. /* end confdefs.h. */
  17790. #include <sys/types.h>
  17791. _ACEOF
  17792. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17793. $EGREP "uid_t" >/dev/null 2>&1; then
  17794. ac_cv_type_uid_t=yes
  17795. else
  17796. ac_cv_type_uid_t=no
  17797. fi
  17798. rm -f conftest*
  17799. fi
  17800. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17801. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17802. if test $ac_cv_type_uid_t = no; then
  17803. cat >>confdefs.h <<\_ACEOF
  17804. #define uid_t int
  17805. _ACEOF
  17806. cat >>confdefs.h <<\_ACEOF
  17807. #define gid_t int
  17808. _ACEOF
  17809. fi
  17810. echo "$as_me:$LINENO: checking for pid_t" >&5
  17811. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17812. if test "${ac_cv_type_pid_t+set}" = set; then
  17813. echo $ECHO_N "(cached) $ECHO_C" >&6
  17814. else
  17815. cat >conftest.$ac_ext <<_ACEOF
  17816. /* confdefs.h. */
  17817. _ACEOF
  17818. cat confdefs.h >>conftest.$ac_ext
  17819. cat >>conftest.$ac_ext <<_ACEOF
  17820. /* end confdefs.h. */
  17821. $ac_includes_default
  17822. int
  17823. main ()
  17824. {
  17825. if ((pid_t *) 0)
  17826. return 0;
  17827. if (sizeof (pid_t))
  17828. return 0;
  17829. ;
  17830. return 0;
  17831. }
  17832. _ACEOF
  17833. rm -f conftest.$ac_objext
  17834. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17835. (eval $ac_compile) 2>conftest.er1
  17836. ac_status=$?
  17837. grep -v '^ *+' conftest.er1 >conftest.err
  17838. rm -f conftest.er1
  17839. cat conftest.err >&5
  17840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17841. (exit $ac_status); } &&
  17842. { ac_try='test -z "$ac_c_werror_flag"
  17843. || test ! -s conftest.err'
  17844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17845. (eval $ac_try) 2>&5
  17846. ac_status=$?
  17847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17848. (exit $ac_status); }; } &&
  17849. { ac_try='test -s conftest.$ac_objext'
  17850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17851. (eval $ac_try) 2>&5
  17852. ac_status=$?
  17853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17854. (exit $ac_status); }; }; then
  17855. ac_cv_type_pid_t=yes
  17856. else
  17857. echo "$as_me: failed program was:" >&5
  17858. sed 's/^/| /' conftest.$ac_ext >&5
  17859. ac_cv_type_pid_t=no
  17860. fi
  17861. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17862. fi
  17863. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17864. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17865. if test $ac_cv_type_pid_t = yes; then
  17866. :
  17867. else
  17868. cat >>confdefs.h <<_ACEOF
  17869. #define pid_t int
  17870. _ACEOF
  17871. fi
  17872. echo "$as_me:$LINENO: checking for size_t" >&5
  17873. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17874. if test "${ac_cv_type_size_t+set}" = set; then
  17875. echo $ECHO_N "(cached) $ECHO_C" >&6
  17876. else
  17877. cat >conftest.$ac_ext <<_ACEOF
  17878. /* confdefs.h. */
  17879. _ACEOF
  17880. cat confdefs.h >>conftest.$ac_ext
  17881. cat >>conftest.$ac_ext <<_ACEOF
  17882. /* end confdefs.h. */
  17883. $ac_includes_default
  17884. int
  17885. main ()
  17886. {
  17887. if ((size_t *) 0)
  17888. return 0;
  17889. if (sizeof (size_t))
  17890. return 0;
  17891. ;
  17892. return 0;
  17893. }
  17894. _ACEOF
  17895. rm -f conftest.$ac_objext
  17896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17897. (eval $ac_compile) 2>conftest.er1
  17898. ac_status=$?
  17899. grep -v '^ *+' conftest.er1 >conftest.err
  17900. rm -f conftest.er1
  17901. cat conftest.err >&5
  17902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17903. (exit $ac_status); } &&
  17904. { ac_try='test -z "$ac_c_werror_flag"
  17905. || test ! -s conftest.err'
  17906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17907. (eval $ac_try) 2>&5
  17908. ac_status=$?
  17909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17910. (exit $ac_status); }; } &&
  17911. { ac_try='test -s conftest.$ac_objext'
  17912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17913. (eval $ac_try) 2>&5
  17914. ac_status=$?
  17915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17916. (exit $ac_status); }; }; then
  17917. ac_cv_type_size_t=yes
  17918. else
  17919. echo "$as_me: failed program was:" >&5
  17920. sed 's/^/| /' conftest.$ac_ext >&5
  17921. ac_cv_type_size_t=no
  17922. fi
  17923. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17924. fi
  17925. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17926. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17927. if test $ac_cv_type_size_t = yes; then
  17928. :
  17929. else
  17930. cat >>confdefs.h <<_ACEOF
  17931. #define size_t unsigned
  17932. _ACEOF
  17933. fi
  17934. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17935. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17936. if test "${ac_cv_header_time+set}" = set; then
  17937. echo $ECHO_N "(cached) $ECHO_C" >&6
  17938. else
  17939. cat >conftest.$ac_ext <<_ACEOF
  17940. /* confdefs.h. */
  17941. _ACEOF
  17942. cat confdefs.h >>conftest.$ac_ext
  17943. cat >>conftest.$ac_ext <<_ACEOF
  17944. /* end confdefs.h. */
  17945. #include <sys/types.h>
  17946. #include <sys/time.h>
  17947. #include <time.h>
  17948. int
  17949. main ()
  17950. {
  17951. if ((struct tm *) 0)
  17952. return 0;
  17953. ;
  17954. return 0;
  17955. }
  17956. _ACEOF
  17957. rm -f conftest.$ac_objext
  17958. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17959. (eval $ac_compile) 2>conftest.er1
  17960. ac_status=$?
  17961. grep -v '^ *+' conftest.er1 >conftest.err
  17962. rm -f conftest.er1
  17963. cat conftest.err >&5
  17964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17965. (exit $ac_status); } &&
  17966. { ac_try='test -z "$ac_c_werror_flag"
  17967. || test ! -s conftest.err'
  17968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17969. (eval $ac_try) 2>&5
  17970. ac_status=$?
  17971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17972. (exit $ac_status); }; } &&
  17973. { ac_try='test -s conftest.$ac_objext'
  17974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17975. (eval $ac_try) 2>&5
  17976. ac_status=$?
  17977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17978. (exit $ac_status); }; }; then
  17979. ac_cv_header_time=yes
  17980. else
  17981. echo "$as_me: failed program was:" >&5
  17982. sed 's/^/| /' conftest.$ac_ext >&5
  17983. ac_cv_header_time=no
  17984. fi
  17985. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17986. fi
  17987. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17988. echo "${ECHO_T}$ac_cv_header_time" >&6
  17989. if test $ac_cv_header_time = yes; then
  17990. cat >>confdefs.h <<\_ACEOF
  17991. #define TIME_WITH_SYS_TIME 1
  17992. _ACEOF
  17993. fi
  17994. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17995. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17996. if test "${ac_cv_struct_tm+set}" = set; then
  17997. echo $ECHO_N "(cached) $ECHO_C" >&6
  17998. else
  17999. cat >conftest.$ac_ext <<_ACEOF
  18000. /* confdefs.h. */
  18001. _ACEOF
  18002. cat confdefs.h >>conftest.$ac_ext
  18003. cat >>conftest.$ac_ext <<_ACEOF
  18004. /* end confdefs.h. */
  18005. #include <sys/types.h>
  18006. #include <time.h>
  18007. int
  18008. main ()
  18009. {
  18010. struct tm *tp; tp->tm_sec;
  18011. ;
  18012. return 0;
  18013. }
  18014. _ACEOF
  18015. rm -f conftest.$ac_objext
  18016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18017. (eval $ac_compile) 2>conftest.er1
  18018. ac_status=$?
  18019. grep -v '^ *+' conftest.er1 >conftest.err
  18020. rm -f conftest.er1
  18021. cat conftest.err >&5
  18022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18023. (exit $ac_status); } &&
  18024. { ac_try='test -z "$ac_c_werror_flag"
  18025. || test ! -s conftest.err'
  18026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18027. (eval $ac_try) 2>&5
  18028. ac_status=$?
  18029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18030. (exit $ac_status); }; } &&
  18031. { ac_try='test -s conftest.$ac_objext'
  18032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18033. (eval $ac_try) 2>&5
  18034. ac_status=$?
  18035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18036. (exit $ac_status); }; }; then
  18037. ac_cv_struct_tm=time.h
  18038. else
  18039. echo "$as_me: failed program was:" >&5
  18040. sed 's/^/| /' conftest.$ac_ext >&5
  18041. ac_cv_struct_tm=sys/time.h
  18042. fi
  18043. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18044. fi
  18045. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18046. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  18047. if test $ac_cv_struct_tm = sys/time.h; then
  18048. cat >>confdefs.h <<\_ACEOF
  18049. #define TM_IN_SYS_TIME 1
  18050. _ACEOF
  18051. fi
  18052. # Checks for library functions.
  18053. for ac_header in unistd.h
  18054. do
  18055. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18056. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18057. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18058. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18059. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18060. echo $ECHO_N "(cached) $ECHO_C" >&6
  18061. fi
  18062. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18063. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18064. else
  18065. # Is the header compilable?
  18066. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18067. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18068. cat >conftest.$ac_ext <<_ACEOF
  18069. /* confdefs.h. */
  18070. _ACEOF
  18071. cat confdefs.h >>conftest.$ac_ext
  18072. cat >>conftest.$ac_ext <<_ACEOF
  18073. /* end confdefs.h. */
  18074. $ac_includes_default
  18075. #include <$ac_header>
  18076. _ACEOF
  18077. rm -f conftest.$ac_objext
  18078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18079. (eval $ac_compile) 2>conftest.er1
  18080. ac_status=$?
  18081. grep -v '^ *+' conftest.er1 >conftest.err
  18082. rm -f conftest.er1
  18083. cat conftest.err >&5
  18084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18085. (exit $ac_status); } &&
  18086. { ac_try='test -z "$ac_c_werror_flag"
  18087. || test ! -s conftest.err'
  18088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18089. (eval $ac_try) 2>&5
  18090. ac_status=$?
  18091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18092. (exit $ac_status); }; } &&
  18093. { ac_try='test -s conftest.$ac_objext'
  18094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18095. (eval $ac_try) 2>&5
  18096. ac_status=$?
  18097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18098. (exit $ac_status); }; }; then
  18099. ac_header_compiler=yes
  18100. else
  18101. echo "$as_me: failed program was:" >&5
  18102. sed 's/^/| /' conftest.$ac_ext >&5
  18103. ac_header_compiler=no
  18104. fi
  18105. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18106. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18107. echo "${ECHO_T}$ac_header_compiler" >&6
  18108. # Is the header present?
  18109. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18110. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18111. cat >conftest.$ac_ext <<_ACEOF
  18112. /* confdefs.h. */
  18113. _ACEOF
  18114. cat confdefs.h >>conftest.$ac_ext
  18115. cat >>conftest.$ac_ext <<_ACEOF
  18116. /* end confdefs.h. */
  18117. #include <$ac_header>
  18118. _ACEOF
  18119. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18120. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18121. ac_status=$?
  18122. grep -v '^ *+' conftest.er1 >conftest.err
  18123. rm -f conftest.er1
  18124. cat conftest.err >&5
  18125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18126. (exit $ac_status); } >/dev/null; then
  18127. if test -s conftest.err; then
  18128. ac_cpp_err=$ac_c_preproc_warn_flag
  18129. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18130. else
  18131. ac_cpp_err=
  18132. fi
  18133. else
  18134. ac_cpp_err=yes
  18135. fi
  18136. if test -z "$ac_cpp_err"; then
  18137. ac_header_preproc=yes
  18138. else
  18139. echo "$as_me: failed program was:" >&5
  18140. sed 's/^/| /' conftest.$ac_ext >&5
  18141. ac_header_preproc=no
  18142. fi
  18143. rm -f conftest.err conftest.$ac_ext
  18144. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18145. echo "${ECHO_T}$ac_header_preproc" >&6
  18146. # So? What about this header?
  18147. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18148. yes:no: )
  18149. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18150. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18151. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18152. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18153. ac_header_preproc=yes
  18154. ;;
  18155. no:yes:* )
  18156. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18157. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18158. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18159. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18160. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18161. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18162. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18163. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18164. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18165. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18166. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18167. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18168. (
  18169. cat <<\_ASBOX
  18170. ## ------------------------------------------ ##
  18171. ## Report this to http://bugzilla.redhat.com/ ##
  18172. ## ------------------------------------------ ##
  18173. _ASBOX
  18174. ) |
  18175. sed "s/^/$as_me: WARNING: /" >&2
  18176. ;;
  18177. esac
  18178. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18179. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18180. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18181. echo $ECHO_N "(cached) $ECHO_C" >&6
  18182. else
  18183. eval "$as_ac_Header=\$ac_header_preproc"
  18184. fi
  18185. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18186. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18187. fi
  18188. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18189. cat >>confdefs.h <<_ACEOF
  18190. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18191. _ACEOF
  18192. fi
  18193. done
  18194. echo "$as_me:$LINENO: checking for working chown" >&5
  18195. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18196. if test "${ac_cv_func_chown_works+set}" = set; then
  18197. echo $ECHO_N "(cached) $ECHO_C" >&6
  18198. else
  18199. if test "$cross_compiling" = yes; then
  18200. ac_cv_func_chown_works=no
  18201. else
  18202. cat >conftest.$ac_ext <<_ACEOF
  18203. /* confdefs.h. */
  18204. _ACEOF
  18205. cat confdefs.h >>conftest.$ac_ext
  18206. cat >>conftest.$ac_ext <<_ACEOF
  18207. /* end confdefs.h. */
  18208. $ac_includes_default
  18209. #include <fcntl.h>
  18210. int
  18211. main ()
  18212. {
  18213. char *f = "conftest.chown";
  18214. struct stat before, after;
  18215. if (creat (f, 0600) < 0)
  18216. exit (1);
  18217. if (stat (f, &before) < 0)
  18218. exit (1);
  18219. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18220. exit (1);
  18221. if (stat (f, &after) < 0)
  18222. exit (1);
  18223. exit ((before.st_uid == after.st_uid
  18224. && before.st_gid == after.st_gid) ? 0 : 1);
  18225. ;
  18226. return 0;
  18227. }
  18228. _ACEOF
  18229. rm -f conftest$ac_exeext
  18230. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18231. (eval $ac_link) 2>&5
  18232. ac_status=$?
  18233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18234. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18236. (eval $ac_try) 2>&5
  18237. ac_status=$?
  18238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18239. (exit $ac_status); }; }; then
  18240. ac_cv_func_chown_works=yes
  18241. else
  18242. echo "$as_me: program exited with status $ac_status" >&5
  18243. echo "$as_me: failed program was:" >&5
  18244. sed 's/^/| /' conftest.$ac_ext >&5
  18245. ( exit $ac_status )
  18246. ac_cv_func_chown_works=no
  18247. fi
  18248. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18249. fi
  18250. rm -f conftest.chown
  18251. fi
  18252. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18253. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18254. if test $ac_cv_func_chown_works = yes; then
  18255. cat >>confdefs.h <<\_ACEOF
  18256. #define HAVE_CHOWN 1
  18257. _ACEOF
  18258. fi
  18259. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18260. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18261. if test "${ac_cv_func_closedir_void+set}" = set; then
  18262. echo $ECHO_N "(cached) $ECHO_C" >&6
  18263. else
  18264. if test "$cross_compiling" = yes; then
  18265. ac_cv_func_closedir_void=yes
  18266. else
  18267. cat >conftest.$ac_ext <<_ACEOF
  18268. /* confdefs.h. */
  18269. _ACEOF
  18270. cat confdefs.h >>conftest.$ac_ext
  18271. cat >>conftest.$ac_ext <<_ACEOF
  18272. /* end confdefs.h. */
  18273. $ac_includes_default
  18274. #include <$ac_header_dirent>
  18275. #ifndef __cplusplus
  18276. int closedir ();
  18277. #endif
  18278. int
  18279. main ()
  18280. {
  18281. exit (closedir (opendir (".")) != 0);
  18282. ;
  18283. return 0;
  18284. }
  18285. _ACEOF
  18286. rm -f conftest$ac_exeext
  18287. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18288. (eval $ac_link) 2>&5
  18289. ac_status=$?
  18290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18291. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18293. (eval $ac_try) 2>&5
  18294. ac_status=$?
  18295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18296. (exit $ac_status); }; }; then
  18297. ac_cv_func_closedir_void=no
  18298. else
  18299. echo "$as_me: program exited with status $ac_status" >&5
  18300. echo "$as_me: failed program was:" >&5
  18301. sed 's/^/| /' conftest.$ac_ext >&5
  18302. ( exit $ac_status )
  18303. ac_cv_func_closedir_void=yes
  18304. fi
  18305. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18306. fi
  18307. fi
  18308. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18309. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18310. if test $ac_cv_func_closedir_void = yes; then
  18311. cat >>confdefs.h <<\_ACEOF
  18312. #define CLOSEDIR_VOID 1
  18313. _ACEOF
  18314. fi
  18315. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18316. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18317. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18318. echo $ECHO_N "(cached) $ECHO_C" >&6
  18319. else
  18320. cat >conftest.$ac_ext <<_ACEOF
  18321. /* confdefs.h. */
  18322. _ACEOF
  18323. cat confdefs.h >>conftest.$ac_ext
  18324. cat >>conftest.$ac_ext <<_ACEOF
  18325. /* end confdefs.h. */
  18326. $ac_includes_default
  18327. int
  18328. main ()
  18329. {
  18330. error_at_line (0, 0, "", 0, "");
  18331. ;
  18332. return 0;
  18333. }
  18334. _ACEOF
  18335. rm -f conftest.$ac_objext conftest$ac_exeext
  18336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18337. (eval $ac_link) 2>conftest.er1
  18338. ac_status=$?
  18339. grep -v '^ *+' conftest.er1 >conftest.err
  18340. rm -f conftest.er1
  18341. cat conftest.err >&5
  18342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18343. (exit $ac_status); } &&
  18344. { ac_try='test -z "$ac_c_werror_flag"
  18345. || test ! -s conftest.err'
  18346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18347. (eval $ac_try) 2>&5
  18348. ac_status=$?
  18349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18350. (exit $ac_status); }; } &&
  18351. { ac_try='test -s conftest$ac_exeext'
  18352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18353. (eval $ac_try) 2>&5
  18354. ac_status=$?
  18355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18356. (exit $ac_status); }; }; then
  18357. ac_cv_lib_error_at_line=yes
  18358. else
  18359. echo "$as_me: failed program was:" >&5
  18360. sed 's/^/| /' conftest.$ac_ext >&5
  18361. ac_cv_lib_error_at_line=no
  18362. fi
  18363. rm -f conftest.err conftest.$ac_objext \
  18364. conftest$ac_exeext conftest.$ac_ext
  18365. fi
  18366. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18367. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18368. if test $ac_cv_lib_error_at_line = no; then
  18369. case $LIBOBJS in
  18370. "error.$ac_objext" | \
  18371. *" error.$ac_objext" | \
  18372. "error.$ac_objext "* | \
  18373. *" error.$ac_objext "* ) ;;
  18374. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18375. esac
  18376. fi
  18377. for ac_header in unistd.h vfork.h
  18378. do
  18379. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18380. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18381. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18382. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18383. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18384. echo $ECHO_N "(cached) $ECHO_C" >&6
  18385. fi
  18386. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18387. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18388. else
  18389. # Is the header compilable?
  18390. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18391. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18392. cat >conftest.$ac_ext <<_ACEOF
  18393. /* confdefs.h. */
  18394. _ACEOF
  18395. cat confdefs.h >>conftest.$ac_ext
  18396. cat >>conftest.$ac_ext <<_ACEOF
  18397. /* end confdefs.h. */
  18398. $ac_includes_default
  18399. #include <$ac_header>
  18400. _ACEOF
  18401. rm -f conftest.$ac_objext
  18402. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18403. (eval $ac_compile) 2>conftest.er1
  18404. ac_status=$?
  18405. grep -v '^ *+' conftest.er1 >conftest.err
  18406. rm -f conftest.er1
  18407. cat conftest.err >&5
  18408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18409. (exit $ac_status); } &&
  18410. { ac_try='test -z "$ac_c_werror_flag"
  18411. || test ! -s conftest.err'
  18412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18413. (eval $ac_try) 2>&5
  18414. ac_status=$?
  18415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18416. (exit $ac_status); }; } &&
  18417. { ac_try='test -s conftest.$ac_objext'
  18418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18419. (eval $ac_try) 2>&5
  18420. ac_status=$?
  18421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18422. (exit $ac_status); }; }; then
  18423. ac_header_compiler=yes
  18424. else
  18425. echo "$as_me: failed program was:" >&5
  18426. sed 's/^/| /' conftest.$ac_ext >&5
  18427. ac_header_compiler=no
  18428. fi
  18429. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18430. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18431. echo "${ECHO_T}$ac_header_compiler" >&6
  18432. # Is the header present?
  18433. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18434. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18435. cat >conftest.$ac_ext <<_ACEOF
  18436. /* confdefs.h. */
  18437. _ACEOF
  18438. cat confdefs.h >>conftest.$ac_ext
  18439. cat >>conftest.$ac_ext <<_ACEOF
  18440. /* end confdefs.h. */
  18441. #include <$ac_header>
  18442. _ACEOF
  18443. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18444. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18445. ac_status=$?
  18446. grep -v '^ *+' conftest.er1 >conftest.err
  18447. rm -f conftest.er1
  18448. cat conftest.err >&5
  18449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18450. (exit $ac_status); } >/dev/null; then
  18451. if test -s conftest.err; then
  18452. ac_cpp_err=$ac_c_preproc_warn_flag
  18453. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18454. else
  18455. ac_cpp_err=
  18456. fi
  18457. else
  18458. ac_cpp_err=yes
  18459. fi
  18460. if test -z "$ac_cpp_err"; then
  18461. ac_header_preproc=yes
  18462. else
  18463. echo "$as_me: failed program was:" >&5
  18464. sed 's/^/| /' conftest.$ac_ext >&5
  18465. ac_header_preproc=no
  18466. fi
  18467. rm -f conftest.err conftest.$ac_ext
  18468. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18469. echo "${ECHO_T}$ac_header_preproc" >&6
  18470. # So? What about this header?
  18471. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18472. yes:no: )
  18473. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18474. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18475. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18476. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18477. ac_header_preproc=yes
  18478. ;;
  18479. no:yes:* )
  18480. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18481. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18482. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18483. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18484. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18485. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18486. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18487. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18488. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18489. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18490. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18491. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18492. (
  18493. cat <<\_ASBOX
  18494. ## ------------------------------------------ ##
  18495. ## Report this to http://bugzilla.redhat.com/ ##
  18496. ## ------------------------------------------ ##
  18497. _ASBOX
  18498. ) |
  18499. sed "s/^/$as_me: WARNING: /" >&2
  18500. ;;
  18501. esac
  18502. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18503. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18504. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18505. echo $ECHO_N "(cached) $ECHO_C" >&6
  18506. else
  18507. eval "$as_ac_Header=\$ac_header_preproc"
  18508. fi
  18509. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18510. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18511. fi
  18512. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18513. cat >>confdefs.h <<_ACEOF
  18514. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18515. _ACEOF
  18516. fi
  18517. done
  18518. for ac_func in fork vfork
  18519. do
  18520. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18521. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18522. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18523. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18524. echo $ECHO_N "(cached) $ECHO_C" >&6
  18525. else
  18526. cat >conftest.$ac_ext <<_ACEOF
  18527. /* confdefs.h. */
  18528. _ACEOF
  18529. cat confdefs.h >>conftest.$ac_ext
  18530. cat >>conftest.$ac_ext <<_ACEOF
  18531. /* end confdefs.h. */
  18532. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18533. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18534. #define $ac_func innocuous_$ac_func
  18535. /* System header to define __stub macros and hopefully few prototypes,
  18536. which can conflict with char $ac_func (); below.
  18537. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18538. <limits.h> exists even on freestanding compilers. */
  18539. #ifdef __STDC__
  18540. # include <limits.h>
  18541. #else
  18542. # include <assert.h>
  18543. #endif
  18544. #undef $ac_func
  18545. /* Override any gcc2 internal prototype to avoid an error. */
  18546. #ifdef __cplusplus
  18547. extern "C"
  18548. {
  18549. #endif
  18550. /* We use char because int might match the return type of a gcc2
  18551. builtin and then its argument prototype would still apply. */
  18552. char $ac_func ();
  18553. /* The GNU C library defines this for functions which it implements
  18554. to always fail with ENOSYS. Some functions are actually named
  18555. something starting with __ and the normal name is an alias. */
  18556. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18557. choke me
  18558. #else
  18559. char (*f) () = $ac_func;
  18560. #endif
  18561. #ifdef __cplusplus
  18562. }
  18563. #endif
  18564. int
  18565. main ()
  18566. {
  18567. return f != $ac_func;
  18568. ;
  18569. return 0;
  18570. }
  18571. _ACEOF
  18572. rm -f conftest.$ac_objext conftest$ac_exeext
  18573. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18574. (eval $ac_link) 2>conftest.er1
  18575. ac_status=$?
  18576. grep -v '^ *+' conftest.er1 >conftest.err
  18577. rm -f conftest.er1
  18578. cat conftest.err >&5
  18579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18580. (exit $ac_status); } &&
  18581. { ac_try='test -z "$ac_c_werror_flag"
  18582. || test ! -s conftest.err'
  18583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18584. (eval $ac_try) 2>&5
  18585. ac_status=$?
  18586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18587. (exit $ac_status); }; } &&
  18588. { ac_try='test -s conftest$ac_exeext'
  18589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18590. (eval $ac_try) 2>&5
  18591. ac_status=$?
  18592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18593. (exit $ac_status); }; }; then
  18594. eval "$as_ac_var=yes"
  18595. else
  18596. echo "$as_me: failed program was:" >&5
  18597. sed 's/^/| /' conftest.$ac_ext >&5
  18598. eval "$as_ac_var=no"
  18599. fi
  18600. rm -f conftest.err conftest.$ac_objext \
  18601. conftest$ac_exeext conftest.$ac_ext
  18602. fi
  18603. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18604. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18605. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18606. cat >>confdefs.h <<_ACEOF
  18607. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18608. _ACEOF
  18609. fi
  18610. done
  18611. if test "x$ac_cv_func_fork" = xyes; then
  18612. echo "$as_me:$LINENO: checking for working fork" >&5
  18613. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18614. if test "${ac_cv_func_fork_works+set}" = set; then
  18615. echo $ECHO_N "(cached) $ECHO_C" >&6
  18616. else
  18617. if test "$cross_compiling" = yes; then
  18618. ac_cv_func_fork_works=cross
  18619. else
  18620. cat >conftest.$ac_ext <<_ACEOF
  18621. /* By Ruediger Kuhlmann. */
  18622. #include <sys/types.h>
  18623. #if HAVE_UNISTD_H
  18624. # include <unistd.h>
  18625. #endif
  18626. /* Some systems only have a dummy stub for fork() */
  18627. int main ()
  18628. {
  18629. if (fork() < 0)
  18630. exit (1);
  18631. exit (0);
  18632. }
  18633. _ACEOF
  18634. rm -f conftest$ac_exeext
  18635. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18636. (eval $ac_link) 2>&5
  18637. ac_status=$?
  18638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18639. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18641. (eval $ac_try) 2>&5
  18642. ac_status=$?
  18643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18644. (exit $ac_status); }; }; then
  18645. ac_cv_func_fork_works=yes
  18646. else
  18647. echo "$as_me: program exited with status $ac_status" >&5
  18648. echo "$as_me: failed program was:" >&5
  18649. sed 's/^/| /' conftest.$ac_ext >&5
  18650. ( exit $ac_status )
  18651. ac_cv_func_fork_works=no
  18652. fi
  18653. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18654. fi
  18655. fi
  18656. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18657. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18658. else
  18659. ac_cv_func_fork_works=$ac_cv_func_fork
  18660. fi
  18661. if test "x$ac_cv_func_fork_works" = xcross; then
  18662. case $host in
  18663. *-*-amigaos* | *-*-msdosdjgpp*)
  18664. # Override, as these systems have only a dummy fork() stub
  18665. ac_cv_func_fork_works=no
  18666. ;;
  18667. *)
  18668. ac_cv_func_fork_works=yes
  18669. ;;
  18670. esac
  18671. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18672. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18673. fi
  18674. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18675. if test "x$ac_cv_func_vfork" = xyes; then
  18676. echo "$as_me:$LINENO: checking for working vfork" >&5
  18677. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18678. if test "${ac_cv_func_vfork_works+set}" = set; then
  18679. echo $ECHO_N "(cached) $ECHO_C" >&6
  18680. else
  18681. if test "$cross_compiling" = yes; then
  18682. ac_cv_func_vfork_works=cross
  18683. else
  18684. cat >conftest.$ac_ext <<_ACEOF
  18685. /* confdefs.h. */
  18686. _ACEOF
  18687. cat confdefs.h >>conftest.$ac_ext
  18688. cat >>conftest.$ac_ext <<_ACEOF
  18689. /* end confdefs.h. */
  18690. /* Thanks to Paul Eggert for this test. */
  18691. #include <stdio.h>
  18692. #include <stdlib.h>
  18693. #include <sys/types.h>
  18694. #include <sys/stat.h>
  18695. #include <sys/wait.h>
  18696. #if HAVE_UNISTD_H
  18697. # include <unistd.h>
  18698. #endif
  18699. #if HAVE_VFORK_H
  18700. # include <vfork.h>
  18701. #endif
  18702. /* On some sparc systems, changes by the child to local and incoming
  18703. argument registers are propagated back to the parent. The compiler
  18704. is told about this with #include <vfork.h>, but some compilers
  18705. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18706. static variable whose address is put into a register that is
  18707. clobbered by the vfork. */
  18708. static void
  18709. #ifdef __cplusplus
  18710. sparc_address_test (int arg)
  18711. # else
  18712. sparc_address_test (arg) int arg;
  18713. #endif
  18714. {
  18715. static pid_t child;
  18716. if (!child) {
  18717. child = vfork ();
  18718. if (child < 0) {
  18719. perror ("vfork");
  18720. _exit(2);
  18721. }
  18722. if (!child) {
  18723. arg = getpid();
  18724. write(-1, "", 0);
  18725. _exit (arg);
  18726. }
  18727. }
  18728. }
  18729. int
  18730. main ()
  18731. {
  18732. pid_t parent = getpid ();
  18733. pid_t child;
  18734. sparc_address_test (0);
  18735. child = vfork ();
  18736. if (child == 0) {
  18737. /* Here is another test for sparc vfork register problems. This
  18738. test uses lots of local variables, at least as many local
  18739. variables as main has allocated so far including compiler
  18740. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18741. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18742. reuse the register of parent for one of the local variables,
  18743. since it will think that parent can't possibly be used any more
  18744. in this routine. Assigning to the local variable will thus
  18745. munge parent in the parent process. */
  18746. pid_t
  18747. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18748. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18749. /* Convince the compiler that p..p7 are live; otherwise, it might
  18750. use the same hardware register for all 8 local variables. */
  18751. if (p != p1 || p != p2 || p != p3 || p != p4
  18752. || p != p5 || p != p6 || p != p7)
  18753. _exit(1);
  18754. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18755. from child file descriptors. If the child closes a descriptor
  18756. before it execs or exits, this munges the parent's descriptor
  18757. as well. Test for this by closing stdout in the child. */
  18758. _exit(close(fileno(stdout)) != 0);
  18759. } else {
  18760. int status;
  18761. struct stat st;
  18762. while (wait(&status) != child)
  18763. ;
  18764. exit(
  18765. /* Was there some problem with vforking? */
  18766. child < 0
  18767. /* Did the child fail? (This shouldn't happen.) */
  18768. || status
  18769. /* Did the vfork/compiler bug occur? */
  18770. || parent != getpid()
  18771. /* Did the file descriptor bug occur? */
  18772. || fstat(fileno(stdout), &st) != 0
  18773. );
  18774. }
  18775. }
  18776. _ACEOF
  18777. rm -f conftest$ac_exeext
  18778. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18779. (eval $ac_link) 2>&5
  18780. ac_status=$?
  18781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18782. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18784. (eval $ac_try) 2>&5
  18785. ac_status=$?
  18786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18787. (exit $ac_status); }; }; then
  18788. ac_cv_func_vfork_works=yes
  18789. else
  18790. echo "$as_me: program exited with status $ac_status" >&5
  18791. echo "$as_me: failed program was:" >&5
  18792. sed 's/^/| /' conftest.$ac_ext >&5
  18793. ( exit $ac_status )
  18794. ac_cv_func_vfork_works=no
  18795. fi
  18796. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18797. fi
  18798. fi
  18799. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18800. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18801. fi;
  18802. if test "x$ac_cv_func_fork_works" = xcross; then
  18803. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18804. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18805. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18806. fi
  18807. if test "x$ac_cv_func_vfork_works" = xyes; then
  18808. cat >>confdefs.h <<\_ACEOF
  18809. #define HAVE_WORKING_VFORK 1
  18810. _ACEOF
  18811. else
  18812. cat >>confdefs.h <<\_ACEOF
  18813. #define vfork fork
  18814. _ACEOF
  18815. fi
  18816. if test "x$ac_cv_func_fork_works" = xyes; then
  18817. cat >>confdefs.h <<\_ACEOF
  18818. #define HAVE_WORKING_FORK 1
  18819. _ACEOF
  18820. fi
  18821. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18822. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18823. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18824. echo $ECHO_N "(cached) $ECHO_C" >&6
  18825. else
  18826. rm -f conftest.sym conftest.file
  18827. echo >conftest.file
  18828. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18829. if test "$cross_compiling" = yes; then
  18830. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18831. else
  18832. cat >conftest.$ac_ext <<_ACEOF
  18833. /* confdefs.h. */
  18834. _ACEOF
  18835. cat confdefs.h >>conftest.$ac_ext
  18836. cat >>conftest.$ac_ext <<_ACEOF
  18837. /* end confdefs.h. */
  18838. $ac_includes_default
  18839. int
  18840. main ()
  18841. {
  18842. struct stat sbuf;
  18843. /* Linux will dereference the symlink and fail.
  18844. That is better in the sense that it means we will not
  18845. have to compile and use the lstat wrapper. */
  18846. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18847. ;
  18848. return 0;
  18849. }
  18850. _ACEOF
  18851. rm -f conftest$ac_exeext
  18852. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18853. (eval $ac_link) 2>&5
  18854. ac_status=$?
  18855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18856. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18858. (eval $ac_try) 2>&5
  18859. ac_status=$?
  18860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18861. (exit $ac_status); }; }; then
  18862. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18863. else
  18864. echo "$as_me: program exited with status $ac_status" >&5
  18865. echo "$as_me: failed program was:" >&5
  18866. sed 's/^/| /' conftest.$ac_ext >&5
  18867. ( exit $ac_status )
  18868. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18869. fi
  18870. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18871. fi
  18872. else
  18873. # If the `ln -s' command failed, then we probably don't even
  18874. # have an lstat function.
  18875. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18876. fi
  18877. rm -f conftest.sym conftest.file
  18878. fi
  18879. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18880. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18881. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18882. cat >>confdefs.h <<_ACEOF
  18883. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18884. _ACEOF
  18885. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18886. case $LIBOBJS in
  18887. "lstat.$ac_objext" | \
  18888. *" lstat.$ac_objext" | \
  18889. "lstat.$ac_objext "* | \
  18890. *" lstat.$ac_objext "* ) ;;
  18891. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18892. esac
  18893. fi
  18894. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18895. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18896. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18897. echo $ECHO_N "(cached) $ECHO_C" >&6
  18898. else
  18899. if test "$cross_compiling" = yes; then
  18900. ac_cv_func_lstat_empty_string_bug=yes
  18901. else
  18902. cat >conftest.$ac_ext <<_ACEOF
  18903. /* confdefs.h. */
  18904. _ACEOF
  18905. cat confdefs.h >>conftest.$ac_ext
  18906. cat >>conftest.$ac_ext <<_ACEOF
  18907. /* end confdefs.h. */
  18908. $ac_includes_default
  18909. int
  18910. main ()
  18911. {
  18912. struct stat sbuf;
  18913. exit (lstat ("", &sbuf) ? 1 : 0);
  18914. ;
  18915. return 0;
  18916. }
  18917. _ACEOF
  18918. rm -f conftest$ac_exeext
  18919. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18920. (eval $ac_link) 2>&5
  18921. ac_status=$?
  18922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18923. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18925. (eval $ac_try) 2>&5
  18926. ac_status=$?
  18927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18928. (exit $ac_status); }; }; then
  18929. ac_cv_func_lstat_empty_string_bug=yes
  18930. else
  18931. echo "$as_me: program exited with status $ac_status" >&5
  18932. echo "$as_me: failed program was:" >&5
  18933. sed 's/^/| /' conftest.$ac_ext >&5
  18934. ( exit $ac_status )
  18935. ac_cv_func_lstat_empty_string_bug=no
  18936. fi
  18937. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18938. fi
  18939. fi
  18940. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18941. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18942. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18943. case $LIBOBJS in
  18944. "lstat.$ac_objext" | \
  18945. *" lstat.$ac_objext" | \
  18946. "lstat.$ac_objext "* | \
  18947. *" lstat.$ac_objext "* ) ;;
  18948. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18949. esac
  18950. cat >>confdefs.h <<_ACEOF
  18951. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18952. _ACEOF
  18953. fi
  18954. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18955. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18956. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18957. echo $ECHO_N "(cached) $ECHO_C" >&6
  18958. else
  18959. rm -f conftest.sym conftest.file
  18960. echo >conftest.file
  18961. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18962. if test "$cross_compiling" = yes; then
  18963. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18964. else
  18965. cat >conftest.$ac_ext <<_ACEOF
  18966. /* confdefs.h. */
  18967. _ACEOF
  18968. cat confdefs.h >>conftest.$ac_ext
  18969. cat >>conftest.$ac_ext <<_ACEOF
  18970. /* end confdefs.h. */
  18971. $ac_includes_default
  18972. int
  18973. main ()
  18974. {
  18975. struct stat sbuf;
  18976. /* Linux will dereference the symlink and fail.
  18977. That is better in the sense that it means we will not
  18978. have to compile and use the lstat wrapper. */
  18979. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18980. ;
  18981. return 0;
  18982. }
  18983. _ACEOF
  18984. rm -f conftest$ac_exeext
  18985. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18986. (eval $ac_link) 2>&5
  18987. ac_status=$?
  18988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18989. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18991. (eval $ac_try) 2>&5
  18992. ac_status=$?
  18993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18994. (exit $ac_status); }; }; then
  18995. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18996. else
  18997. echo "$as_me: program exited with status $ac_status" >&5
  18998. echo "$as_me: failed program was:" >&5
  18999. sed 's/^/| /' conftest.$ac_ext >&5
  19000. ( exit $ac_status )
  19001. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19002. fi
  19003. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19004. fi
  19005. else
  19006. # If the `ln -s' command failed, then we probably don't even
  19007. # have an lstat function.
  19008. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19009. fi
  19010. rm -f conftest.sym conftest.file
  19011. fi
  19012. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19013. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  19014. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  19015. cat >>confdefs.h <<_ACEOF
  19016. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  19017. _ACEOF
  19018. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  19019. case $LIBOBJS in
  19020. "lstat.$ac_objext" | \
  19021. *" lstat.$ac_objext" | \
  19022. "lstat.$ac_objext "* | \
  19023. *" lstat.$ac_objext "* ) ;;
  19024. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  19025. esac
  19026. fi
  19027. for ac_header in stdlib.h
  19028. do
  19029. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19030. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19031. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19032. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19033. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19034. echo $ECHO_N "(cached) $ECHO_C" >&6
  19035. fi
  19036. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19037. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19038. else
  19039. # Is the header compilable?
  19040. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19041. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19042. cat >conftest.$ac_ext <<_ACEOF
  19043. /* confdefs.h. */
  19044. _ACEOF
  19045. cat confdefs.h >>conftest.$ac_ext
  19046. cat >>conftest.$ac_ext <<_ACEOF
  19047. /* end confdefs.h. */
  19048. $ac_includes_default
  19049. #include <$ac_header>
  19050. _ACEOF
  19051. rm -f conftest.$ac_objext
  19052. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19053. (eval $ac_compile) 2>conftest.er1
  19054. ac_status=$?
  19055. grep -v '^ *+' conftest.er1 >conftest.err
  19056. rm -f conftest.er1
  19057. cat conftest.err >&5
  19058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19059. (exit $ac_status); } &&
  19060. { ac_try='test -z "$ac_c_werror_flag"
  19061. || test ! -s conftest.err'
  19062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19063. (eval $ac_try) 2>&5
  19064. ac_status=$?
  19065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19066. (exit $ac_status); }; } &&
  19067. { ac_try='test -s conftest.$ac_objext'
  19068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19069. (eval $ac_try) 2>&5
  19070. ac_status=$?
  19071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19072. (exit $ac_status); }; }; then
  19073. ac_header_compiler=yes
  19074. else
  19075. echo "$as_me: failed program was:" >&5
  19076. sed 's/^/| /' conftest.$ac_ext >&5
  19077. ac_header_compiler=no
  19078. fi
  19079. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19080. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19081. echo "${ECHO_T}$ac_header_compiler" >&6
  19082. # Is the header present?
  19083. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19084. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19085. cat >conftest.$ac_ext <<_ACEOF
  19086. /* confdefs.h. */
  19087. _ACEOF
  19088. cat confdefs.h >>conftest.$ac_ext
  19089. cat >>conftest.$ac_ext <<_ACEOF
  19090. /* end confdefs.h. */
  19091. #include <$ac_header>
  19092. _ACEOF
  19093. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19094. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19095. ac_status=$?
  19096. grep -v '^ *+' conftest.er1 >conftest.err
  19097. rm -f conftest.er1
  19098. cat conftest.err >&5
  19099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19100. (exit $ac_status); } >/dev/null; then
  19101. if test -s conftest.err; then
  19102. ac_cpp_err=$ac_c_preproc_warn_flag
  19103. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19104. else
  19105. ac_cpp_err=
  19106. fi
  19107. else
  19108. ac_cpp_err=yes
  19109. fi
  19110. if test -z "$ac_cpp_err"; then
  19111. ac_header_preproc=yes
  19112. else
  19113. echo "$as_me: failed program was:" >&5
  19114. sed 's/^/| /' conftest.$ac_ext >&5
  19115. ac_header_preproc=no
  19116. fi
  19117. rm -f conftest.err conftest.$ac_ext
  19118. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19119. echo "${ECHO_T}$ac_header_preproc" >&6
  19120. # So? What about this header?
  19121. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19122. yes:no: )
  19123. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19124. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19125. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19126. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19127. ac_header_preproc=yes
  19128. ;;
  19129. no:yes:* )
  19130. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19131. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19132. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19133. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19134. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19135. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19136. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19137. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19138. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19139. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19140. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19141. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19142. (
  19143. cat <<\_ASBOX
  19144. ## ------------------------------------------ ##
  19145. ## Report this to http://bugzilla.redhat.com/ ##
  19146. ## ------------------------------------------ ##
  19147. _ASBOX
  19148. ) |
  19149. sed "s/^/$as_me: WARNING: /" >&2
  19150. ;;
  19151. esac
  19152. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19153. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19154. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19155. echo $ECHO_N "(cached) $ECHO_C" >&6
  19156. else
  19157. eval "$as_ac_Header=\$ac_header_preproc"
  19158. fi
  19159. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19160. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19161. fi
  19162. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19163. cat >>confdefs.h <<_ACEOF
  19164. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19165. _ACEOF
  19166. fi
  19167. done
  19168. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19169. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19170. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19171. echo $ECHO_N "(cached) $ECHO_C" >&6
  19172. else
  19173. if test "$cross_compiling" = yes; then
  19174. ac_cv_func_malloc_0_nonnull=no
  19175. else
  19176. cat >conftest.$ac_ext <<_ACEOF
  19177. /* confdefs.h. */
  19178. _ACEOF
  19179. cat confdefs.h >>conftest.$ac_ext
  19180. cat >>conftest.$ac_ext <<_ACEOF
  19181. /* end confdefs.h. */
  19182. #if STDC_HEADERS || HAVE_STDLIB_H
  19183. # include <stdlib.h>
  19184. #else
  19185. char *malloc ();
  19186. #endif
  19187. int
  19188. main ()
  19189. {
  19190. exit (malloc (0) ? 0 : 1);
  19191. ;
  19192. return 0;
  19193. }
  19194. _ACEOF
  19195. rm -f conftest$ac_exeext
  19196. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19197. (eval $ac_link) 2>&5
  19198. ac_status=$?
  19199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19200. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19202. (eval $ac_try) 2>&5
  19203. ac_status=$?
  19204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19205. (exit $ac_status); }; }; then
  19206. ac_cv_func_malloc_0_nonnull=yes
  19207. else
  19208. echo "$as_me: program exited with status $ac_status" >&5
  19209. echo "$as_me: failed program was:" >&5
  19210. sed 's/^/| /' conftest.$ac_ext >&5
  19211. ( exit $ac_status )
  19212. ac_cv_func_malloc_0_nonnull=no
  19213. fi
  19214. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19215. fi
  19216. fi
  19217. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19218. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19219. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19220. cat >>confdefs.h <<\_ACEOF
  19221. #define HAVE_MALLOC 1
  19222. _ACEOF
  19223. else
  19224. cat >>confdefs.h <<\_ACEOF
  19225. #define HAVE_MALLOC 0
  19226. _ACEOF
  19227. case $LIBOBJS in
  19228. "malloc.$ac_objext" | \
  19229. *" malloc.$ac_objext" | \
  19230. "malloc.$ac_objext "* | \
  19231. *" malloc.$ac_objext "* ) ;;
  19232. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19233. esac
  19234. cat >>confdefs.h <<\_ACEOF
  19235. #define malloc rpl_malloc
  19236. _ACEOF
  19237. fi
  19238. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19239. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19240. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19241. echo $ECHO_N "(cached) $ECHO_C" >&6
  19242. else
  19243. if test "$cross_compiling" = yes; then
  19244. ac_cv_func_memcmp_working=no
  19245. else
  19246. cat >conftest.$ac_ext <<_ACEOF
  19247. /* confdefs.h. */
  19248. _ACEOF
  19249. cat confdefs.h >>conftest.$ac_ext
  19250. cat >>conftest.$ac_ext <<_ACEOF
  19251. /* end confdefs.h. */
  19252. $ac_includes_default
  19253. int
  19254. main ()
  19255. {
  19256. /* Some versions of memcmp are not 8-bit clean. */
  19257. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19258. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19259. exit (1);
  19260. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19261. or more and with at least one buffer not starting on a 4-byte boundary.
  19262. William Lewis provided this test program. */
  19263. {
  19264. char foo[21];
  19265. char bar[21];
  19266. int i;
  19267. for (i = 0; i < 4; i++)
  19268. {
  19269. char *a = foo + i;
  19270. char *b = bar + i;
  19271. strcpy (a, "--------01111111");
  19272. strcpy (b, "--------10000000");
  19273. if (memcmp (a, b, 16) >= 0)
  19274. exit (1);
  19275. }
  19276. exit (0);
  19277. }
  19278. ;
  19279. return 0;
  19280. }
  19281. _ACEOF
  19282. rm -f conftest$ac_exeext
  19283. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19284. (eval $ac_link) 2>&5
  19285. ac_status=$?
  19286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19287. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19289. (eval $ac_try) 2>&5
  19290. ac_status=$?
  19291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19292. (exit $ac_status); }; }; then
  19293. ac_cv_func_memcmp_working=yes
  19294. else
  19295. echo "$as_me: program exited with status $ac_status" >&5
  19296. echo "$as_me: failed program was:" >&5
  19297. sed 's/^/| /' conftest.$ac_ext >&5
  19298. ( exit $ac_status )
  19299. ac_cv_func_memcmp_working=no
  19300. fi
  19301. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19302. fi
  19303. fi
  19304. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19305. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19306. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19307. "memcmp.$ac_objext" | \
  19308. *" memcmp.$ac_objext" | \
  19309. "memcmp.$ac_objext "* | \
  19310. *" memcmp.$ac_objext "* ) ;;
  19311. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19312. esac
  19313. for ac_header in stdlib.h unistd.h
  19314. do
  19315. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19316. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19317. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19318. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19319. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19320. echo $ECHO_N "(cached) $ECHO_C" >&6
  19321. fi
  19322. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19323. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19324. else
  19325. # Is the header compilable?
  19326. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19327. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19328. cat >conftest.$ac_ext <<_ACEOF
  19329. /* confdefs.h. */
  19330. _ACEOF
  19331. cat confdefs.h >>conftest.$ac_ext
  19332. cat >>conftest.$ac_ext <<_ACEOF
  19333. /* end confdefs.h. */
  19334. $ac_includes_default
  19335. #include <$ac_header>
  19336. _ACEOF
  19337. rm -f conftest.$ac_objext
  19338. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19339. (eval $ac_compile) 2>conftest.er1
  19340. ac_status=$?
  19341. grep -v '^ *+' conftest.er1 >conftest.err
  19342. rm -f conftest.er1
  19343. cat conftest.err >&5
  19344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19345. (exit $ac_status); } &&
  19346. { ac_try='test -z "$ac_c_werror_flag"
  19347. || test ! -s conftest.err'
  19348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19349. (eval $ac_try) 2>&5
  19350. ac_status=$?
  19351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19352. (exit $ac_status); }; } &&
  19353. { ac_try='test -s conftest.$ac_objext'
  19354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19355. (eval $ac_try) 2>&5
  19356. ac_status=$?
  19357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19358. (exit $ac_status); }; }; then
  19359. ac_header_compiler=yes
  19360. else
  19361. echo "$as_me: failed program was:" >&5
  19362. sed 's/^/| /' conftest.$ac_ext >&5
  19363. ac_header_compiler=no
  19364. fi
  19365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19366. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19367. echo "${ECHO_T}$ac_header_compiler" >&6
  19368. # Is the header present?
  19369. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19370. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19371. cat >conftest.$ac_ext <<_ACEOF
  19372. /* confdefs.h. */
  19373. _ACEOF
  19374. cat confdefs.h >>conftest.$ac_ext
  19375. cat >>conftest.$ac_ext <<_ACEOF
  19376. /* end confdefs.h. */
  19377. #include <$ac_header>
  19378. _ACEOF
  19379. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19380. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19381. ac_status=$?
  19382. grep -v '^ *+' conftest.er1 >conftest.err
  19383. rm -f conftest.er1
  19384. cat conftest.err >&5
  19385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19386. (exit $ac_status); } >/dev/null; then
  19387. if test -s conftest.err; then
  19388. ac_cpp_err=$ac_c_preproc_warn_flag
  19389. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19390. else
  19391. ac_cpp_err=
  19392. fi
  19393. else
  19394. ac_cpp_err=yes
  19395. fi
  19396. if test -z "$ac_cpp_err"; then
  19397. ac_header_preproc=yes
  19398. else
  19399. echo "$as_me: failed program was:" >&5
  19400. sed 's/^/| /' conftest.$ac_ext >&5
  19401. ac_header_preproc=no
  19402. fi
  19403. rm -f conftest.err conftest.$ac_ext
  19404. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19405. echo "${ECHO_T}$ac_header_preproc" >&6
  19406. # So? What about this header?
  19407. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19408. yes:no: )
  19409. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19410. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19411. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19412. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19413. ac_header_preproc=yes
  19414. ;;
  19415. no:yes:* )
  19416. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19417. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19418. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19419. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19420. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19421. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19422. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19423. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19424. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19425. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19426. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19427. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19428. (
  19429. cat <<\_ASBOX
  19430. ## ------------------------------------------ ##
  19431. ## Report this to http://bugzilla.redhat.com/ ##
  19432. ## ------------------------------------------ ##
  19433. _ASBOX
  19434. ) |
  19435. sed "s/^/$as_me: WARNING: /" >&2
  19436. ;;
  19437. esac
  19438. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19439. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19440. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19441. echo $ECHO_N "(cached) $ECHO_C" >&6
  19442. else
  19443. eval "$as_ac_Header=\$ac_header_preproc"
  19444. fi
  19445. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19446. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19447. fi
  19448. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19449. cat >>confdefs.h <<_ACEOF
  19450. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19451. _ACEOF
  19452. fi
  19453. done
  19454. for ac_func in getpagesize
  19455. do
  19456. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19457. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19458. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19459. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19460. echo $ECHO_N "(cached) $ECHO_C" >&6
  19461. else
  19462. cat >conftest.$ac_ext <<_ACEOF
  19463. /* confdefs.h. */
  19464. _ACEOF
  19465. cat confdefs.h >>conftest.$ac_ext
  19466. cat >>conftest.$ac_ext <<_ACEOF
  19467. /* end confdefs.h. */
  19468. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19469. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19470. #define $ac_func innocuous_$ac_func
  19471. /* System header to define __stub macros and hopefully few prototypes,
  19472. which can conflict with char $ac_func (); below.
  19473. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19474. <limits.h> exists even on freestanding compilers. */
  19475. #ifdef __STDC__
  19476. # include <limits.h>
  19477. #else
  19478. # include <assert.h>
  19479. #endif
  19480. #undef $ac_func
  19481. /* Override any gcc2 internal prototype to avoid an error. */
  19482. #ifdef __cplusplus
  19483. extern "C"
  19484. {
  19485. #endif
  19486. /* We use char because int might match the return type of a gcc2
  19487. builtin and then its argument prototype would still apply. */
  19488. char $ac_func ();
  19489. /* The GNU C library defines this for functions which it implements
  19490. to always fail with ENOSYS. Some functions are actually named
  19491. something starting with __ and the normal name is an alias. */
  19492. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19493. choke me
  19494. #else
  19495. char (*f) () = $ac_func;
  19496. #endif
  19497. #ifdef __cplusplus
  19498. }
  19499. #endif
  19500. int
  19501. main ()
  19502. {
  19503. return f != $ac_func;
  19504. ;
  19505. return 0;
  19506. }
  19507. _ACEOF
  19508. rm -f conftest.$ac_objext conftest$ac_exeext
  19509. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19510. (eval $ac_link) 2>conftest.er1
  19511. ac_status=$?
  19512. grep -v '^ *+' conftest.er1 >conftest.err
  19513. rm -f conftest.er1
  19514. cat conftest.err >&5
  19515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19516. (exit $ac_status); } &&
  19517. { ac_try='test -z "$ac_c_werror_flag"
  19518. || test ! -s conftest.err'
  19519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19520. (eval $ac_try) 2>&5
  19521. ac_status=$?
  19522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19523. (exit $ac_status); }; } &&
  19524. { ac_try='test -s conftest$ac_exeext'
  19525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19526. (eval $ac_try) 2>&5
  19527. ac_status=$?
  19528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19529. (exit $ac_status); }; }; then
  19530. eval "$as_ac_var=yes"
  19531. else
  19532. echo "$as_me: failed program was:" >&5
  19533. sed 's/^/| /' conftest.$ac_ext >&5
  19534. eval "$as_ac_var=no"
  19535. fi
  19536. rm -f conftest.err conftest.$ac_objext \
  19537. conftest$ac_exeext conftest.$ac_ext
  19538. fi
  19539. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19540. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19541. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19542. cat >>confdefs.h <<_ACEOF
  19543. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19544. _ACEOF
  19545. fi
  19546. done
  19547. echo "$as_me:$LINENO: checking for working mmap" >&5
  19548. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19549. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19550. echo $ECHO_N "(cached) $ECHO_C" >&6
  19551. else
  19552. if test "$cross_compiling" = yes; then
  19553. ac_cv_func_mmap_fixed_mapped=no
  19554. else
  19555. cat >conftest.$ac_ext <<_ACEOF
  19556. /* confdefs.h. */
  19557. _ACEOF
  19558. cat confdefs.h >>conftest.$ac_ext
  19559. cat >>conftest.$ac_ext <<_ACEOF
  19560. /* end confdefs.h. */
  19561. $ac_includes_default
  19562. /* malloc might have been renamed as rpl_malloc. */
  19563. #undef malloc
  19564. /* Thanks to Mike Haertel and Jim Avera for this test.
  19565. Here is a matrix of mmap possibilities:
  19566. mmap private not fixed
  19567. mmap private fixed at somewhere currently unmapped
  19568. mmap private fixed at somewhere already mapped
  19569. mmap shared not fixed
  19570. mmap shared fixed at somewhere currently unmapped
  19571. mmap shared fixed at somewhere already mapped
  19572. For private mappings, we should verify that changes cannot be read()
  19573. back from the file, nor mmap's back from the file at a different
  19574. address. (There have been systems where private was not correctly
  19575. implemented like the infamous i386 svr4.0, and systems where the
  19576. VM page cache was not coherent with the file system buffer cache
  19577. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19578. For shared mappings, we should conversely verify that changes get
  19579. propagated back to all the places they're supposed to be.
  19580. Grep wants private fixed already mapped.
  19581. The main things grep needs to know about mmap are:
  19582. * does it exist and is it safe to write into the mmap'd area
  19583. * how to use it (BSD variants) */
  19584. #include <fcntl.h>
  19585. #include <sys/mman.h>
  19586. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19587. char *malloc ();
  19588. #endif
  19589. /* This mess was copied from the GNU getpagesize.h. */
  19590. #if !HAVE_GETPAGESIZE
  19591. /* Assume that all systems that can run configure have sys/param.h. */
  19592. # if !HAVE_SYS_PARAM_H
  19593. # define HAVE_SYS_PARAM_H 1
  19594. # endif
  19595. # ifdef _SC_PAGESIZE
  19596. # define getpagesize() sysconf(_SC_PAGESIZE)
  19597. # else /* no _SC_PAGESIZE */
  19598. # if HAVE_SYS_PARAM_H
  19599. # include <sys/param.h>
  19600. # ifdef EXEC_PAGESIZE
  19601. # define getpagesize() EXEC_PAGESIZE
  19602. # else /* no EXEC_PAGESIZE */
  19603. # ifdef NBPG
  19604. # define getpagesize() NBPG * CLSIZE
  19605. # ifndef CLSIZE
  19606. # define CLSIZE 1
  19607. # endif /* no CLSIZE */
  19608. # else /* no NBPG */
  19609. # ifdef NBPC
  19610. # define getpagesize() NBPC
  19611. # else /* no NBPC */
  19612. # ifdef PAGESIZE
  19613. # define getpagesize() PAGESIZE
  19614. # endif /* PAGESIZE */
  19615. # endif /* no NBPC */
  19616. # endif /* no NBPG */
  19617. # endif /* no EXEC_PAGESIZE */
  19618. # else /* no HAVE_SYS_PARAM_H */
  19619. # define getpagesize() 8192 /* punt totally */
  19620. # endif /* no HAVE_SYS_PARAM_H */
  19621. # endif /* no _SC_PAGESIZE */
  19622. #endif /* no HAVE_GETPAGESIZE */
  19623. int
  19624. main ()
  19625. {
  19626. char *data, *data2, *data3;
  19627. int i, pagesize;
  19628. int fd;
  19629. pagesize = getpagesize ();
  19630. /* First, make a file with some known garbage in it. */
  19631. data = (char *) malloc (pagesize);
  19632. if (!data)
  19633. exit (1);
  19634. for (i = 0; i < pagesize; ++i)
  19635. *(data + i) = rand ();
  19636. umask (0);
  19637. fd = creat ("conftest.mmap", 0600);
  19638. if (fd < 0)
  19639. exit (1);
  19640. if (write (fd, data, pagesize) != pagesize)
  19641. exit (1);
  19642. close (fd);
  19643. /* Next, try to mmap the file at a fixed address which already has
  19644. something else allocated at it. If we can, also make sure that
  19645. we see the same garbage. */
  19646. fd = open ("conftest.mmap", O_RDWR);
  19647. if (fd < 0)
  19648. exit (1);
  19649. data2 = (char *) malloc (2 * pagesize);
  19650. if (!data2)
  19651. exit (1);
  19652. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19653. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19654. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19655. exit (1);
  19656. for (i = 0; i < pagesize; ++i)
  19657. if (*(data + i) != *(data2 + i))
  19658. exit (1);
  19659. /* Finally, make sure that changes to the mapped area do not
  19660. percolate back to the file as seen by read(). (This is a bug on
  19661. some variants of i386 svr4.0.) */
  19662. for (i = 0; i < pagesize; ++i)
  19663. *(data2 + i) = *(data2 + i) + 1;
  19664. data3 = (char *) malloc (pagesize);
  19665. if (!data3)
  19666. exit (1);
  19667. if (read (fd, data3, pagesize) != pagesize)
  19668. exit (1);
  19669. for (i = 0; i < pagesize; ++i)
  19670. if (*(data + i) != *(data3 + i))
  19671. exit (1);
  19672. close (fd);
  19673. exit (0);
  19674. }
  19675. _ACEOF
  19676. rm -f conftest$ac_exeext
  19677. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19678. (eval $ac_link) 2>&5
  19679. ac_status=$?
  19680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19681. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19683. (eval $ac_try) 2>&5
  19684. ac_status=$?
  19685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19686. (exit $ac_status); }; }; then
  19687. ac_cv_func_mmap_fixed_mapped=yes
  19688. else
  19689. echo "$as_me: program exited with status $ac_status" >&5
  19690. echo "$as_me: failed program was:" >&5
  19691. sed 's/^/| /' conftest.$ac_ext >&5
  19692. ( exit $ac_status )
  19693. ac_cv_func_mmap_fixed_mapped=no
  19694. fi
  19695. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19696. fi
  19697. fi
  19698. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19699. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19700. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19701. cat >>confdefs.h <<\_ACEOF
  19702. #define HAVE_MMAP 1
  19703. _ACEOF
  19704. fi
  19705. rm -f conftest.mmap
  19706. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19707. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19708. if test "${ac_cv_type_signal+set}" = set; then
  19709. echo $ECHO_N "(cached) $ECHO_C" >&6
  19710. else
  19711. cat >conftest.$ac_ext <<_ACEOF
  19712. /* confdefs.h. */
  19713. _ACEOF
  19714. cat confdefs.h >>conftest.$ac_ext
  19715. cat >>conftest.$ac_ext <<_ACEOF
  19716. /* end confdefs.h. */
  19717. #include <sys/types.h>
  19718. #include <signal.h>
  19719. #ifdef signal
  19720. # undef signal
  19721. #endif
  19722. #ifdef __cplusplus
  19723. extern "C" void (*signal (int, void (*)(int)))(int);
  19724. #else
  19725. void (*signal ()) ();
  19726. #endif
  19727. int
  19728. main ()
  19729. {
  19730. int i;
  19731. ;
  19732. return 0;
  19733. }
  19734. _ACEOF
  19735. rm -f conftest.$ac_objext
  19736. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19737. (eval $ac_compile) 2>conftest.er1
  19738. ac_status=$?
  19739. grep -v '^ *+' conftest.er1 >conftest.err
  19740. rm -f conftest.er1
  19741. cat conftest.err >&5
  19742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19743. (exit $ac_status); } &&
  19744. { ac_try='test -z "$ac_c_werror_flag"
  19745. || test ! -s conftest.err'
  19746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19747. (eval $ac_try) 2>&5
  19748. ac_status=$?
  19749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19750. (exit $ac_status); }; } &&
  19751. { ac_try='test -s conftest.$ac_objext'
  19752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19753. (eval $ac_try) 2>&5
  19754. ac_status=$?
  19755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19756. (exit $ac_status); }; }; then
  19757. ac_cv_type_signal=void
  19758. else
  19759. echo "$as_me: failed program was:" >&5
  19760. sed 's/^/| /' conftest.$ac_ext >&5
  19761. ac_cv_type_signal=int
  19762. fi
  19763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19764. fi
  19765. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19766. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19767. cat >>confdefs.h <<_ACEOF
  19768. #define RETSIGTYPE $ac_cv_type_signal
  19769. _ACEOF
  19770. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19771. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19772. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19773. echo $ECHO_N "(cached) $ECHO_C" >&6
  19774. else
  19775. if test "$cross_compiling" = yes; then
  19776. ac_cv_func_stat_empty_string_bug=yes
  19777. else
  19778. cat >conftest.$ac_ext <<_ACEOF
  19779. /* confdefs.h. */
  19780. _ACEOF
  19781. cat confdefs.h >>conftest.$ac_ext
  19782. cat >>conftest.$ac_ext <<_ACEOF
  19783. /* end confdefs.h. */
  19784. $ac_includes_default
  19785. int
  19786. main ()
  19787. {
  19788. struct stat sbuf;
  19789. exit (stat ("", &sbuf) ? 1 : 0);
  19790. ;
  19791. return 0;
  19792. }
  19793. _ACEOF
  19794. rm -f conftest$ac_exeext
  19795. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19796. (eval $ac_link) 2>&5
  19797. ac_status=$?
  19798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19799. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19801. (eval $ac_try) 2>&5
  19802. ac_status=$?
  19803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19804. (exit $ac_status); }; }; then
  19805. ac_cv_func_stat_empty_string_bug=yes
  19806. else
  19807. echo "$as_me: program exited with status $ac_status" >&5
  19808. echo "$as_me: failed program was:" >&5
  19809. sed 's/^/| /' conftest.$ac_ext >&5
  19810. ( exit $ac_status )
  19811. ac_cv_func_stat_empty_string_bug=no
  19812. fi
  19813. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19814. fi
  19815. fi
  19816. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19817. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19818. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19819. case $LIBOBJS in
  19820. "stat.$ac_objext" | \
  19821. *" stat.$ac_objext" | \
  19822. "stat.$ac_objext "* | \
  19823. *" stat.$ac_objext "* ) ;;
  19824. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19825. esac
  19826. cat >>confdefs.h <<_ACEOF
  19827. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19828. _ACEOF
  19829. fi
  19830. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19831. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19832. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19833. echo $ECHO_N "(cached) $ECHO_C" >&6
  19834. else
  19835. cat >conftest.$ac_ext <<_ACEOF
  19836. /* confdefs.h. */
  19837. _ACEOF
  19838. cat confdefs.h >>conftest.$ac_ext
  19839. cat >>conftest.$ac_ext <<_ACEOF
  19840. /* end confdefs.h. */
  19841. $ac_includes_default
  19842. int
  19843. main ()
  19844. {
  19845. #ifndef strerror_r
  19846. char *p = (char *) strerror_r;
  19847. #endif
  19848. ;
  19849. return 0;
  19850. }
  19851. _ACEOF
  19852. rm -f conftest.$ac_objext
  19853. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19854. (eval $ac_compile) 2>conftest.er1
  19855. ac_status=$?
  19856. grep -v '^ *+' conftest.er1 >conftest.err
  19857. rm -f conftest.er1
  19858. cat conftest.err >&5
  19859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19860. (exit $ac_status); } &&
  19861. { ac_try='test -z "$ac_c_werror_flag"
  19862. || test ! -s conftest.err'
  19863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19864. (eval $ac_try) 2>&5
  19865. ac_status=$?
  19866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19867. (exit $ac_status); }; } &&
  19868. { ac_try='test -s conftest.$ac_objext'
  19869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19870. (eval $ac_try) 2>&5
  19871. ac_status=$?
  19872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19873. (exit $ac_status); }; }; then
  19874. ac_cv_have_decl_strerror_r=yes
  19875. else
  19876. echo "$as_me: failed program was:" >&5
  19877. sed 's/^/| /' conftest.$ac_ext >&5
  19878. ac_cv_have_decl_strerror_r=no
  19879. fi
  19880. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19881. fi
  19882. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19883. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19884. if test $ac_cv_have_decl_strerror_r = yes; then
  19885. cat >>confdefs.h <<_ACEOF
  19886. #define HAVE_DECL_STRERROR_R 1
  19887. _ACEOF
  19888. else
  19889. cat >>confdefs.h <<_ACEOF
  19890. #define HAVE_DECL_STRERROR_R 0
  19891. _ACEOF
  19892. fi
  19893. for ac_func in strerror_r
  19894. do
  19895. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19896. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19897. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19898. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19899. echo $ECHO_N "(cached) $ECHO_C" >&6
  19900. else
  19901. cat >conftest.$ac_ext <<_ACEOF
  19902. /* confdefs.h. */
  19903. _ACEOF
  19904. cat confdefs.h >>conftest.$ac_ext
  19905. cat >>conftest.$ac_ext <<_ACEOF
  19906. /* end confdefs.h. */
  19907. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19908. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19909. #define $ac_func innocuous_$ac_func
  19910. /* System header to define __stub macros and hopefully few prototypes,
  19911. which can conflict with char $ac_func (); below.
  19912. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19913. <limits.h> exists even on freestanding compilers. */
  19914. #ifdef __STDC__
  19915. # include <limits.h>
  19916. #else
  19917. # include <assert.h>
  19918. #endif
  19919. #undef $ac_func
  19920. /* Override any gcc2 internal prototype to avoid an error. */
  19921. #ifdef __cplusplus
  19922. extern "C"
  19923. {
  19924. #endif
  19925. /* We use char because int might match the return type of a gcc2
  19926. builtin and then its argument prototype would still apply. */
  19927. char $ac_func ();
  19928. /* The GNU C library defines this for functions which it implements
  19929. to always fail with ENOSYS. Some functions are actually named
  19930. something starting with __ and the normal name is an alias. */
  19931. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19932. choke me
  19933. #else
  19934. char (*f) () = $ac_func;
  19935. #endif
  19936. #ifdef __cplusplus
  19937. }
  19938. #endif
  19939. int
  19940. main ()
  19941. {
  19942. return f != $ac_func;
  19943. ;
  19944. return 0;
  19945. }
  19946. _ACEOF
  19947. rm -f conftest.$ac_objext conftest$ac_exeext
  19948. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19949. (eval $ac_link) 2>conftest.er1
  19950. ac_status=$?
  19951. grep -v '^ *+' conftest.er1 >conftest.err
  19952. rm -f conftest.er1
  19953. cat conftest.err >&5
  19954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19955. (exit $ac_status); } &&
  19956. { ac_try='test -z "$ac_c_werror_flag"
  19957. || test ! -s conftest.err'
  19958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19959. (eval $ac_try) 2>&5
  19960. ac_status=$?
  19961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19962. (exit $ac_status); }; } &&
  19963. { ac_try='test -s conftest$ac_exeext'
  19964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19965. (eval $ac_try) 2>&5
  19966. ac_status=$?
  19967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19968. (exit $ac_status); }; }; then
  19969. eval "$as_ac_var=yes"
  19970. else
  19971. echo "$as_me: failed program was:" >&5
  19972. sed 's/^/| /' conftest.$ac_ext >&5
  19973. eval "$as_ac_var=no"
  19974. fi
  19975. rm -f conftest.err conftest.$ac_objext \
  19976. conftest$ac_exeext conftest.$ac_ext
  19977. fi
  19978. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19979. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19980. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19981. cat >>confdefs.h <<_ACEOF
  19982. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19983. _ACEOF
  19984. fi
  19985. done
  19986. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19987. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19988. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19989. echo $ECHO_N "(cached) $ECHO_C" >&6
  19990. else
  19991. ac_cv_func_strerror_r_char_p=no
  19992. if test $ac_cv_have_decl_strerror_r = yes; then
  19993. cat >conftest.$ac_ext <<_ACEOF
  19994. /* confdefs.h. */
  19995. _ACEOF
  19996. cat confdefs.h >>conftest.$ac_ext
  19997. cat >>conftest.$ac_ext <<_ACEOF
  19998. /* end confdefs.h. */
  19999. $ac_includes_default
  20000. int
  20001. main ()
  20002. {
  20003. char buf[100];
  20004. char x = *strerror_r (0, buf, sizeof buf);
  20005. char *p = strerror_r (0, buf, sizeof buf);
  20006. ;
  20007. return 0;
  20008. }
  20009. _ACEOF
  20010. rm -f conftest.$ac_objext
  20011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20012. (eval $ac_compile) 2>conftest.er1
  20013. ac_status=$?
  20014. grep -v '^ *+' conftest.er1 >conftest.err
  20015. rm -f conftest.er1
  20016. cat conftest.err >&5
  20017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20018. (exit $ac_status); } &&
  20019. { ac_try='test -z "$ac_c_werror_flag"
  20020. || test ! -s conftest.err'
  20021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20022. (eval $ac_try) 2>&5
  20023. ac_status=$?
  20024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20025. (exit $ac_status); }; } &&
  20026. { ac_try='test -s conftest.$ac_objext'
  20027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20028. (eval $ac_try) 2>&5
  20029. ac_status=$?
  20030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20031. (exit $ac_status); }; }; then
  20032. ac_cv_func_strerror_r_char_p=yes
  20033. else
  20034. echo "$as_me: failed program was:" >&5
  20035. sed 's/^/| /' conftest.$ac_ext >&5
  20036. fi
  20037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20038. else
  20039. # strerror_r is not declared. Choose between
  20040. # systems that have relatively inaccessible declarations for the
  20041. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  20042. # former has a strerror_r that returns char*, while the latter
  20043. # has a strerror_r that returns `int'.
  20044. # This test should segfault on the DEC system.
  20045. if test "$cross_compiling" = yes; then
  20046. :
  20047. else
  20048. cat >conftest.$ac_ext <<_ACEOF
  20049. /* confdefs.h. */
  20050. _ACEOF
  20051. cat confdefs.h >>conftest.$ac_ext
  20052. cat >>conftest.$ac_ext <<_ACEOF
  20053. /* end confdefs.h. */
  20054. $ac_includes_default
  20055. extern char *strerror_r ();
  20056. int
  20057. main ()
  20058. {
  20059. char buf[100];
  20060. char x = *strerror_r (0, buf, sizeof buf);
  20061. exit (!isalpha (x));
  20062. ;
  20063. return 0;
  20064. }
  20065. _ACEOF
  20066. rm -f conftest$ac_exeext
  20067. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20068. (eval $ac_link) 2>&5
  20069. ac_status=$?
  20070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20071. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20073. (eval $ac_try) 2>&5
  20074. ac_status=$?
  20075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20076. (exit $ac_status); }; }; then
  20077. ac_cv_func_strerror_r_char_p=yes
  20078. else
  20079. echo "$as_me: program exited with status $ac_status" >&5
  20080. echo "$as_me: failed program was:" >&5
  20081. sed 's/^/| /' conftest.$ac_ext >&5
  20082. fi
  20083. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20084. fi
  20085. fi
  20086. fi
  20087. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20088. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  20089. if test $ac_cv_func_strerror_r_char_p = yes; then
  20090. cat >>confdefs.h <<\_ACEOF
  20091. #define STRERROR_R_CHAR_P 1
  20092. _ACEOF
  20093. fi
  20094. for ac_func in strftime
  20095. do
  20096. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20097. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20098. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20099. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20100. echo $ECHO_N "(cached) $ECHO_C" >&6
  20101. else
  20102. cat >conftest.$ac_ext <<_ACEOF
  20103. /* confdefs.h. */
  20104. _ACEOF
  20105. cat confdefs.h >>conftest.$ac_ext
  20106. cat >>conftest.$ac_ext <<_ACEOF
  20107. /* end confdefs.h. */
  20108. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20109. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20110. #define $ac_func innocuous_$ac_func
  20111. /* System header to define __stub macros and hopefully few prototypes,
  20112. which can conflict with char $ac_func (); below.
  20113. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20114. <limits.h> exists even on freestanding compilers. */
  20115. #ifdef __STDC__
  20116. # include <limits.h>
  20117. #else
  20118. # include <assert.h>
  20119. #endif
  20120. #undef $ac_func
  20121. /* Override any gcc2 internal prototype to avoid an error. */
  20122. #ifdef __cplusplus
  20123. extern "C"
  20124. {
  20125. #endif
  20126. /* We use char because int might match the return type of a gcc2
  20127. builtin and then its argument prototype would still apply. */
  20128. char $ac_func ();
  20129. /* The GNU C library defines this for functions which it implements
  20130. to always fail with ENOSYS. Some functions are actually named
  20131. something starting with __ and the normal name is an alias. */
  20132. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20133. choke me
  20134. #else
  20135. char (*f) () = $ac_func;
  20136. #endif
  20137. #ifdef __cplusplus
  20138. }
  20139. #endif
  20140. int
  20141. main ()
  20142. {
  20143. return f != $ac_func;
  20144. ;
  20145. return 0;
  20146. }
  20147. _ACEOF
  20148. rm -f conftest.$ac_objext conftest$ac_exeext
  20149. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20150. (eval $ac_link) 2>conftest.er1
  20151. ac_status=$?
  20152. grep -v '^ *+' conftest.er1 >conftest.err
  20153. rm -f conftest.er1
  20154. cat conftest.err >&5
  20155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20156. (exit $ac_status); } &&
  20157. { ac_try='test -z "$ac_c_werror_flag"
  20158. || test ! -s conftest.err'
  20159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20160. (eval $ac_try) 2>&5
  20161. ac_status=$?
  20162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20163. (exit $ac_status); }; } &&
  20164. { ac_try='test -s conftest$ac_exeext'
  20165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20166. (eval $ac_try) 2>&5
  20167. ac_status=$?
  20168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20169. (exit $ac_status); }; }; then
  20170. eval "$as_ac_var=yes"
  20171. else
  20172. echo "$as_me: failed program was:" >&5
  20173. sed 's/^/| /' conftest.$ac_ext >&5
  20174. eval "$as_ac_var=no"
  20175. fi
  20176. rm -f conftest.err conftest.$ac_objext \
  20177. conftest$ac_exeext conftest.$ac_ext
  20178. fi
  20179. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20180. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20181. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20182. cat >>confdefs.h <<_ACEOF
  20183. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20184. _ACEOF
  20185. else
  20186. # strftime is in -lintl on SCO UNIX.
  20187. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20188. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20189. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20190. echo $ECHO_N "(cached) $ECHO_C" >&6
  20191. else
  20192. ac_check_lib_save_LIBS=$LIBS
  20193. LIBS="-lintl $LIBS"
  20194. cat >conftest.$ac_ext <<_ACEOF
  20195. /* confdefs.h. */
  20196. _ACEOF
  20197. cat confdefs.h >>conftest.$ac_ext
  20198. cat >>conftest.$ac_ext <<_ACEOF
  20199. /* end confdefs.h. */
  20200. /* Override any gcc2 internal prototype to avoid an error. */
  20201. #ifdef __cplusplus
  20202. extern "C"
  20203. #endif
  20204. /* We use char because int might match the return type of a gcc2
  20205. builtin and then its argument prototype would still apply. */
  20206. char strftime ();
  20207. int
  20208. main ()
  20209. {
  20210. strftime ();
  20211. ;
  20212. return 0;
  20213. }
  20214. _ACEOF
  20215. rm -f conftest.$ac_objext conftest$ac_exeext
  20216. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20217. (eval $ac_link) 2>conftest.er1
  20218. ac_status=$?
  20219. grep -v '^ *+' conftest.er1 >conftest.err
  20220. rm -f conftest.er1
  20221. cat conftest.err >&5
  20222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20223. (exit $ac_status); } &&
  20224. { ac_try='test -z "$ac_c_werror_flag"
  20225. || test ! -s conftest.err'
  20226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20227. (eval $ac_try) 2>&5
  20228. ac_status=$?
  20229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20230. (exit $ac_status); }; } &&
  20231. { ac_try='test -s conftest$ac_exeext'
  20232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20233. (eval $ac_try) 2>&5
  20234. ac_status=$?
  20235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20236. (exit $ac_status); }; }; then
  20237. ac_cv_lib_intl_strftime=yes
  20238. else
  20239. echo "$as_me: failed program was:" >&5
  20240. sed 's/^/| /' conftest.$ac_ext >&5
  20241. ac_cv_lib_intl_strftime=no
  20242. fi
  20243. rm -f conftest.err conftest.$ac_objext \
  20244. conftest$ac_exeext conftest.$ac_ext
  20245. LIBS=$ac_check_lib_save_LIBS
  20246. fi
  20247. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20248. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20249. if test $ac_cv_lib_intl_strftime = yes; then
  20250. cat >>confdefs.h <<\_ACEOF
  20251. #define HAVE_STRFTIME 1
  20252. _ACEOF
  20253. LIBS="-lintl $LIBS"
  20254. fi
  20255. fi
  20256. done
  20257. for ac_func in vprintf
  20258. do
  20259. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20260. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20261. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20262. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20263. echo $ECHO_N "(cached) $ECHO_C" >&6
  20264. else
  20265. cat >conftest.$ac_ext <<_ACEOF
  20266. /* confdefs.h. */
  20267. _ACEOF
  20268. cat confdefs.h >>conftest.$ac_ext
  20269. cat >>conftest.$ac_ext <<_ACEOF
  20270. /* end confdefs.h. */
  20271. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20272. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20273. #define $ac_func innocuous_$ac_func
  20274. /* System header to define __stub macros and hopefully few prototypes,
  20275. which can conflict with char $ac_func (); below.
  20276. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20277. <limits.h> exists even on freestanding compilers. */
  20278. #ifdef __STDC__
  20279. # include <limits.h>
  20280. #else
  20281. # include <assert.h>
  20282. #endif
  20283. #undef $ac_func
  20284. /* Override any gcc2 internal prototype to avoid an error. */
  20285. #ifdef __cplusplus
  20286. extern "C"
  20287. {
  20288. #endif
  20289. /* We use char because int might match the return type of a gcc2
  20290. builtin and then its argument prototype would still apply. */
  20291. char $ac_func ();
  20292. /* The GNU C library defines this for functions which it implements
  20293. to always fail with ENOSYS. Some functions are actually named
  20294. something starting with __ and the normal name is an alias. */
  20295. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20296. choke me
  20297. #else
  20298. char (*f) () = $ac_func;
  20299. #endif
  20300. #ifdef __cplusplus
  20301. }
  20302. #endif
  20303. int
  20304. main ()
  20305. {
  20306. return f != $ac_func;
  20307. ;
  20308. return 0;
  20309. }
  20310. _ACEOF
  20311. rm -f conftest.$ac_objext conftest$ac_exeext
  20312. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20313. (eval $ac_link) 2>conftest.er1
  20314. ac_status=$?
  20315. grep -v '^ *+' conftest.er1 >conftest.err
  20316. rm -f conftest.er1
  20317. cat conftest.err >&5
  20318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20319. (exit $ac_status); } &&
  20320. { ac_try='test -z "$ac_c_werror_flag"
  20321. || test ! -s conftest.err'
  20322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20323. (eval $ac_try) 2>&5
  20324. ac_status=$?
  20325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20326. (exit $ac_status); }; } &&
  20327. { ac_try='test -s conftest$ac_exeext'
  20328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20329. (eval $ac_try) 2>&5
  20330. ac_status=$?
  20331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20332. (exit $ac_status); }; }; then
  20333. eval "$as_ac_var=yes"
  20334. else
  20335. echo "$as_me: failed program was:" >&5
  20336. sed 's/^/| /' conftest.$ac_ext >&5
  20337. eval "$as_ac_var=no"
  20338. fi
  20339. rm -f conftest.err conftest.$ac_objext \
  20340. conftest$ac_exeext conftest.$ac_ext
  20341. fi
  20342. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20343. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20344. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20345. cat >>confdefs.h <<_ACEOF
  20346. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20347. _ACEOF
  20348. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20349. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20350. if test "${ac_cv_func__doprnt+set}" = set; then
  20351. echo $ECHO_N "(cached) $ECHO_C" >&6
  20352. else
  20353. cat >conftest.$ac_ext <<_ACEOF
  20354. /* confdefs.h. */
  20355. _ACEOF
  20356. cat confdefs.h >>conftest.$ac_ext
  20357. cat >>conftest.$ac_ext <<_ACEOF
  20358. /* end confdefs.h. */
  20359. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20360. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20361. #define _doprnt innocuous__doprnt
  20362. /* System header to define __stub macros and hopefully few prototypes,
  20363. which can conflict with char _doprnt (); below.
  20364. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20365. <limits.h> exists even on freestanding compilers. */
  20366. #ifdef __STDC__
  20367. # include <limits.h>
  20368. #else
  20369. # include <assert.h>
  20370. #endif
  20371. #undef _doprnt
  20372. /* Override any gcc2 internal prototype to avoid an error. */
  20373. #ifdef __cplusplus
  20374. extern "C"
  20375. {
  20376. #endif
  20377. /* We use char because int might match the return type of a gcc2
  20378. builtin and then its argument prototype would still apply. */
  20379. char _doprnt ();
  20380. /* The GNU C library defines this for functions which it implements
  20381. to always fail with ENOSYS. Some functions are actually named
  20382. something starting with __ and the normal name is an alias. */
  20383. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20384. choke me
  20385. #else
  20386. char (*f) () = _doprnt;
  20387. #endif
  20388. #ifdef __cplusplus
  20389. }
  20390. #endif
  20391. int
  20392. main ()
  20393. {
  20394. return f != _doprnt;
  20395. ;
  20396. return 0;
  20397. }
  20398. _ACEOF
  20399. rm -f conftest.$ac_objext conftest$ac_exeext
  20400. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20401. (eval $ac_link) 2>conftest.er1
  20402. ac_status=$?
  20403. grep -v '^ *+' conftest.er1 >conftest.err
  20404. rm -f conftest.er1
  20405. cat conftest.err >&5
  20406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20407. (exit $ac_status); } &&
  20408. { ac_try='test -z "$ac_c_werror_flag"
  20409. || test ! -s conftest.err'
  20410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20411. (eval $ac_try) 2>&5
  20412. ac_status=$?
  20413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20414. (exit $ac_status); }; } &&
  20415. { ac_try='test -s conftest$ac_exeext'
  20416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20417. (eval $ac_try) 2>&5
  20418. ac_status=$?
  20419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20420. (exit $ac_status); }; }; then
  20421. ac_cv_func__doprnt=yes
  20422. else
  20423. echo "$as_me: failed program was:" >&5
  20424. sed 's/^/| /' conftest.$ac_ext >&5
  20425. ac_cv_func__doprnt=no
  20426. fi
  20427. rm -f conftest.err conftest.$ac_objext \
  20428. conftest$ac_exeext conftest.$ac_ext
  20429. fi
  20430. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20431. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20432. if test $ac_cv_func__doprnt = yes; then
  20433. cat >>confdefs.h <<\_ACEOF
  20434. #define HAVE_DOPRNT 1
  20435. _ACEOF
  20436. fi
  20437. fi
  20438. done
  20439. 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
  20440. do
  20441. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20442. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20443. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20444. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20445. echo $ECHO_N "(cached) $ECHO_C" >&6
  20446. else
  20447. cat >conftest.$ac_ext <<_ACEOF
  20448. /* confdefs.h. */
  20449. _ACEOF
  20450. cat confdefs.h >>conftest.$ac_ext
  20451. cat >>conftest.$ac_ext <<_ACEOF
  20452. /* end confdefs.h. */
  20453. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20454. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20455. #define $ac_func innocuous_$ac_func
  20456. /* System header to define __stub macros and hopefully few prototypes,
  20457. which can conflict with char $ac_func (); below.
  20458. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20459. <limits.h> exists even on freestanding compilers. */
  20460. #ifdef __STDC__
  20461. # include <limits.h>
  20462. #else
  20463. # include <assert.h>
  20464. #endif
  20465. #undef $ac_func
  20466. /* Override any gcc2 internal prototype to avoid an error. */
  20467. #ifdef __cplusplus
  20468. extern "C"
  20469. {
  20470. #endif
  20471. /* We use char because int might match the return type of a gcc2
  20472. builtin and then its argument prototype would still apply. */
  20473. char $ac_func ();
  20474. /* The GNU C library defines this for functions which it implements
  20475. to always fail with ENOSYS. Some functions are actually named
  20476. something starting with __ and the normal name is an alias. */
  20477. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20478. choke me
  20479. #else
  20480. char (*f) () = $ac_func;
  20481. #endif
  20482. #ifdef __cplusplus
  20483. }
  20484. #endif
  20485. int
  20486. main ()
  20487. {
  20488. return f != $ac_func;
  20489. ;
  20490. return 0;
  20491. }
  20492. _ACEOF
  20493. rm -f conftest.$ac_objext conftest$ac_exeext
  20494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20495. (eval $ac_link) 2>conftest.er1
  20496. ac_status=$?
  20497. grep -v '^ *+' conftest.er1 >conftest.err
  20498. rm -f conftest.er1
  20499. cat conftest.err >&5
  20500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20501. (exit $ac_status); } &&
  20502. { ac_try='test -z "$ac_c_werror_flag"
  20503. || test ! -s conftest.err'
  20504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20505. (eval $ac_try) 2>&5
  20506. ac_status=$?
  20507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20508. (exit $ac_status); }; } &&
  20509. { ac_try='test -s conftest$ac_exeext'
  20510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20511. (eval $ac_try) 2>&5
  20512. ac_status=$?
  20513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20514. (exit $ac_status); }; }; then
  20515. eval "$as_ac_var=yes"
  20516. else
  20517. echo "$as_me: failed program was:" >&5
  20518. sed 's/^/| /' conftest.$ac_ext >&5
  20519. eval "$as_ac_var=no"
  20520. fi
  20521. rm -f conftest.err conftest.$ac_objext \
  20522. conftest$ac_exeext conftest.$ac_ext
  20523. fi
  20524. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20525. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20526. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20527. cat >>confdefs.h <<_ACEOF
  20528. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20529. _ACEOF
  20530. fi
  20531. done
  20532. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20533. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20534. # Check whether --enable-debug or --disable-debug was given.
  20535. if test "${enable_debug+set}" = set; then
  20536. enableval="$enable_debug"
  20537. echo "$as_me:$LINENO: result: yes" >&5
  20538. echo "${ECHO_T}yes" >&6
  20539. debug_defs="-DDEBUG -DMCC_DEBUG"
  20540. else
  20541. echo "$as_me:$LINENO: result: no" >&5
  20542. echo "${ECHO_T}no" >&6
  20543. debug_defs=""
  20544. fi;
  20545. # Used for legacy style packaging where we bundle all of the dependencies.
  20546. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20547. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20548. # Check whether --enable-bundle or --disable-bundle was given.
  20549. if test "${enable_bundle+set}" = set; then
  20550. enableval="$enable_bundle"
  20551. echo "$as_me:$LINENO: result: yes" >&5
  20552. echo "${ECHO_T}yes" >&6
  20553. bundle="1";
  20554. else
  20555. echo "$as_me:$LINENO: result: no" >&5
  20556. echo "${ECHO_T}no" >&6
  20557. bundle="";
  20558. fi;
  20559. if test "$bundle" = "1"; then
  20560. BUNDLE_TRUE=
  20561. BUNDLE_FALSE='#'
  20562. else
  20563. BUNDLE_TRUE='#'
  20564. BUNDLE_FALSE=
  20565. fi
  20566. # these enables are for optional or experimental features
  20567. if test -z "$enable_pam_passthru" ; then
  20568. enable_pam_passthru=yes # if not set on cmdline, set default
  20569. fi
  20570. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20571. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20572. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20573. if test "${enable_pam_passthru+set}" = set; then
  20574. enableval="$enable_pam_passthru"
  20575. fi;
  20576. if test "$enable_pam_passthru" = yes ; then
  20577. echo "$as_me:$LINENO: result: yes" >&5
  20578. echo "${ECHO_T}yes" >&6
  20579. cat >>confdefs.h <<\_ACEOF
  20580. #define ENABLE_PAM_PASSTHRU 1
  20581. _ACEOF
  20582. else
  20583. echo "$as_me:$LINENO: result: no" >&5
  20584. echo "${ECHO_T}no" >&6
  20585. fi
  20586. if test "$enable_pam_passthru" = "yes"; then
  20587. enable_pam_passthru_TRUE=
  20588. enable_pam_passthru_FALSE='#'
  20589. else
  20590. enable_pam_passthru_TRUE='#'
  20591. enable_pam_passthru_FALSE=
  20592. fi
  20593. if test -z "$enable_dna" ; then
  20594. enable_dna=yes # if not set on cmdline, set default
  20595. fi
  20596. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20597. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20598. # Check whether --enable-dna or --disable-dna was given.
  20599. if test "${enable_dna+set}" = set; then
  20600. enableval="$enable_dna"
  20601. fi;
  20602. if test "$enable_dna" = yes ; then
  20603. echo "$as_me:$LINENO: result: yes" >&5
  20604. echo "${ECHO_T}yes" >&6
  20605. cat >>confdefs.h <<\_ACEOF
  20606. #define ENABLE_DNA 1
  20607. _ACEOF
  20608. else
  20609. echo "$as_me:$LINENO: result: no" >&5
  20610. echo "${ECHO_T}no" >&6
  20611. fi
  20612. if test "$enable_dna" = "yes"; then
  20613. enable_dna_TRUE=
  20614. enable_dna_FALSE='#'
  20615. else
  20616. enable_dna_TRUE='#'
  20617. enable_dna_FALSE=
  20618. fi
  20619. if test -z "$enable_ldapi" ; then
  20620. enable_ldapi=yes # if not set on cmdline, set default
  20621. fi
  20622. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20623. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20624. # Check whether --enable-ldapi or --disable-ldapi was given.
  20625. if test "${enable_ldapi+set}" = set; then
  20626. enableval="$enable_ldapi"
  20627. fi;
  20628. if test "$enable_ldapi" = yes ; then
  20629. echo "$as_me:$LINENO: result: yes" >&5
  20630. echo "${ECHO_T}yes" >&6
  20631. cat >>confdefs.h <<\_ACEOF
  20632. #define ENABLE_LDAPI 1
  20633. _ACEOF
  20634. else
  20635. echo "$as_me:$LINENO: result: no" >&5
  20636. echo "${ECHO_T}no" >&6
  20637. fi
  20638. if test "$enable_ldapi" = "yes"; then
  20639. enable_ldapi_TRUE=
  20640. enable_ldapi_FALSE='#'
  20641. else
  20642. enable_ldapi_TRUE='#'
  20643. enable_ldapi_FALSE=
  20644. fi
  20645. if test -z "$enable_autobind" ; then
  20646. enable_autobind=no # if not set on cmdline, set default
  20647. fi
  20648. echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  20649. echo $ECHO_N "checking for --enable-autobind... $ECHO_C" >&6
  20650. # Check whether --enable-autobind or --disable-autobind was given.
  20651. if test "${enable_autobind+set}" = set; then
  20652. enableval="$enable_autobind"
  20653. fi;
  20654. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  20655. echo "$as_me:$LINENO: result: yes" >&5
  20656. echo "${ECHO_T}yes" >&6
  20657. cat >>confdefs.h <<\_ACEOF
  20658. #define ENABLE_AUTOBIND 1
  20659. _ACEOF
  20660. else
  20661. echo "$as_me:$LINENO: result: no" >&5
  20662. echo "${ECHO_T}no" >&6
  20663. fi
  20664. if test "$enable_autobind" = "yes"; then
  20665. enable_autobind_TRUE=
  20666. enable_autobind_FALSE='#'
  20667. else
  20668. enable_autobind_TRUE='#'
  20669. enable_autobind_FALSE=
  20670. fi
  20671. if test -z "$enable_auto_dn_suffix" ; then
  20672. enable_auto_dn_suffix=no # if not set on cmdline, set default
  20673. fi
  20674. echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  20675. echo $ECHO_N "checking for --enable-auto-dn-suffix... $ECHO_C" >&6
  20676. # Check whether --enable-autobind or --disable-autobind was given.
  20677. if test "${enable_autobind+set}" = set; then
  20678. enableval="$enable_autobind"
  20679. fi;
  20680. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  20681. echo "$as_me:$LINENO: result: yes" >&5
  20682. echo "${ECHO_T}yes" >&6
  20683. cat >>confdefs.h <<\_ACEOF
  20684. #define ENABLE_AUTO_DN_SUFFIX 1
  20685. _ACEOF
  20686. else
  20687. echo "$as_me:$LINENO: result: no" >&5
  20688. echo "${ECHO_T}no" >&6
  20689. fi
  20690. if test "$enable_auto_dn_suffix" = "yes"; then
  20691. enable_auto_dn_suffix_TRUE=
  20692. enable_auto_dn_suffix_FALSE='#'
  20693. else
  20694. enable_auto_dn_suffix_TRUE='#'
  20695. enable_auto_dn_suffix_FALSE=
  20696. fi
  20697. if test -z "$enable_bitwise" ; then
  20698. enable_bitwise=yes # if not set on cmdline, set default
  20699. fi
  20700. echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  20701. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6
  20702. # Check whether --enable-bitwise or --disable-bitwise was given.
  20703. if test "${enable_bitwise+set}" = set; then
  20704. enableval="$enable_bitwise"
  20705. fi;
  20706. if test "$enable_bitwise" = yes ; then
  20707. echo "$as_me:$LINENO: result: yes" >&5
  20708. echo "${ECHO_T}yes" >&6
  20709. cat >>confdefs.h <<\_ACEOF
  20710. #define ENABLE_BITWISE 1
  20711. _ACEOF
  20712. else
  20713. echo "$as_me:$LINENO: result: no" >&5
  20714. echo "${ECHO_T}no" >&6
  20715. fi
  20716. if test "$enable_bitwise" = "yes"; then
  20717. enable_bitwise_TRUE=
  20718. enable_bitwise_FALSE='#'
  20719. else
  20720. enable_bitwise_TRUE='#'
  20721. enable_bitwise_FALSE=
  20722. fi
  20723. if test -z "$enable_presence" ; then
  20724. enable_presence=no # if not set on cmdline, set default
  20725. fi
  20726. echo "$as_me:$LINENO: checking for --enable-presence" >&5
  20727. echo $ECHO_N "checking for --enable-presence... $ECHO_C" >&6
  20728. # Check whether --enable-presence or --disable-presence was given.
  20729. if test "${enable_presence+set}" = set; then
  20730. enableval="$enable_presence"
  20731. fi;
  20732. if test "$enable_presence" = yes ; then
  20733. echo "$as_me:$LINENO: result: yes" >&5
  20734. echo "${ECHO_T}yes" >&6
  20735. cat >>confdefs.h <<\_ACEOF
  20736. #define ENABLE_PRESENCE 1
  20737. _ACEOF
  20738. else
  20739. echo "$as_me:$LINENO: result: no" >&5
  20740. echo "${ECHO_T}no" >&6
  20741. fi
  20742. if test "$enable_presence" = "yes"; then
  20743. enable_presence_TRUE=
  20744. enable_presence_FALSE='#'
  20745. else
  20746. enable_presence_TRUE='#'
  20747. enable_presence_FALSE=
  20748. fi
  20749. # the default prefix - override with --prefix or --with-fhs
  20750. # BEGIN COPYRIGHT BLOCK
  20751. # Copyright (C) 2006 Red Hat, Inc.
  20752. # All rights reserved.
  20753. #
  20754. # This program is free software; you can redistribute it and/or
  20755. # modify it under the terms of the GNU General Public License
  20756. # as published by the Free Software Foundation; either version 2
  20757. # of the License, or (at your option) any later version.
  20758. #
  20759. # This program is distributed in the hope that it will be useful,
  20760. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20761. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20762. # GNU General Public License for more details.
  20763. #
  20764. # You should have received a copy of the GNU General Public License
  20765. # along with this program; if not, write to the Free Software
  20766. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20767. #
  20768. # END COPYRIGHT BLOCK
  20769. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20770. echo "$as_me: checking for FHS..." >&6;}
  20771. # check for --with-fhs
  20772. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20773. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20774. # Check whether --with-fhs or --without-fhs was given.
  20775. if test "${with_fhs+set}" = set; then
  20776. withval="$with_fhs"
  20777. with_fhs=yes
  20778. echo "$as_me:$LINENO: result: yes" >&5
  20779. echo "${ECHO_T}yes" >&6
  20780. else
  20781. echo "$as_me:$LINENO: result: no" >&5
  20782. echo "${ECHO_T}no" >&6
  20783. fi;
  20784. if test "$with_fhs" = "yes"; then
  20785. cat >>confdefs.h <<\_ACEOF
  20786. #define IS_FHS 1
  20787. _ACEOF
  20788. fi
  20789. # check for --with-fhs-opt
  20790. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20791. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20792. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20793. if test "${with_fhs_opt+set}" = set; then
  20794. withval="$with_fhs_opt"
  20795. with_fhs_opt=yes
  20796. echo "$as_me:$LINENO: result: yes" >&5
  20797. echo "${ECHO_T}yes" >&6
  20798. else
  20799. echo "$as_me:$LINENO: result: no" >&5
  20800. echo "${ECHO_T}no" >&6
  20801. fi;
  20802. if test "$with_fhs_opt" = "yes"; then
  20803. cat >>confdefs.h <<\_ACEOF
  20804. #define IS_FHS_OPT 1
  20805. _ACEOF
  20806. fi
  20807. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20808. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20809. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20810. { (exit 1); exit 1; }; }
  20811. fi
  20812. # installation paths - by default, we store everything
  20813. # under the prefix. The with-fhs option will use /usr,
  20814. # /etc, and /var. The with-fhs-opt option will use the
  20815. # prefix, but it's sysconfdir and localstatedir will be
  20816. # /etc/opt, and /var/opt.
  20817. if test "$with_fhs_opt" = "yes"; then
  20818. # Override sysconfdir and localstatedir if FHS optional
  20819. # package was requested.
  20820. sysconfdir='/etc/opt'
  20821. localstatedir='/var/opt'
  20822. # relative to datadir
  20823. sampledatadir=/data
  20824. # relative to datadir
  20825. scripttemplatedir=/script-templates
  20826. # relative to datadir
  20827. updatedir=/updates
  20828. # relative to libdir
  20829. serverdir=
  20830. # relative to libdir
  20831. serverplugindir=/plugins
  20832. # relative to datadir
  20833. infdir=/inf
  20834. # relative to datadir
  20835. mibdir=/mibs
  20836. # location of property/resource files, relative to datadir
  20837. propertydir=/properties
  20838. # relative to libdir
  20839. perldir=/perl
  20840. else
  20841. if test "$with_fhs" = "yes"; then
  20842. ac_default_prefix=/usr
  20843. prefix=$ac_default_prefix
  20844. exec_prefix=$prefix
  20845. sysconfdir='/etc'
  20846. localstatedir='/var'
  20847. fi
  20848. # relative to datadir
  20849. sampledatadir=/$PACKAGE_NAME/data
  20850. # relative to datadir
  20851. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20852. # relative to datadir
  20853. updatedir=/$PACKAGE_NAME/updates
  20854. # relative to libdir
  20855. serverdir=/$PACKAGE_NAME
  20856. # relative to libdir
  20857. serverplugindir=/$PACKAGE_NAME/plugins
  20858. # relative to datadir
  20859. infdir=/$PACKAGE_NAME/inf
  20860. # relative to datadir
  20861. mibdir=/$PACKAGE_NAME/mibs
  20862. # location of property/resource files, relative to datadir
  20863. propertydir=/$PACKAGE_NAME/properties
  20864. # relative to libdir
  20865. perldir=/$PACKAGE_NAME/perl
  20866. fi
  20867. # if mandir is the default value, override it
  20868. # otherwise, the user must have set it - just use it
  20869. if test X"$mandir" = X'${prefix}/man' ; then
  20870. mandir='$(datadir)/man'
  20871. fi
  20872. # Shared paths for all layouts
  20873. # relative to sysconfdir
  20874. configdir=/$PACKAGE_NAME/config
  20875. # relative to sysconfdir
  20876. schemadir=/$PACKAGE_NAME/schema
  20877. # default user, group
  20878. defaultuser=nobody
  20879. defaultgroup=nobody
  20880. # check for --with-instconfigdir
  20881. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20882. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20883. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20884. if test "${with_instconfigdir+set}" = set; then
  20885. withval="$with_instconfigdir"
  20886. if test $withval = yes ; then
  20887. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20888. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20889. { (exit 1); exit 1; }; }
  20890. fi
  20891. instconfigdir="$withval"
  20892. echo "$as_me:$LINENO: result: $withval" >&5
  20893. echo "${ECHO_T}$withval" >&6
  20894. else
  20895. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20896. echo "$as_me:$LINENO: result: no" >&5
  20897. echo "${ECHO_T}no" >&6
  20898. fi;
  20899. # WINNT should be true if building on Windows system not using
  20900. # cygnus, mingw, or the like and using cmd.exe as the shell
  20901. if false; then
  20902. WINNT_TRUE=
  20903. WINNT_FALSE='#'
  20904. else
  20905. WINNT_TRUE='#'
  20906. WINNT_FALSE=
  20907. fi
  20908. # Deal with platform dependent defines
  20909. # relative to sysconfdir
  20910. initdir=/rc.d
  20911. # on most platforms, we will just use perl from PATH
  20912. # On some platforms, we cannot. Why not just use any old
  20913. # perl? Because of perldap. We use a perldap that is
  20914. # compiled to either 32bit or 64bit, so we must use a native
  20915. # perl binary compiled with the same bitsize. On Solaris
  20916. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  20917. # those with our 64 bit compiled product.
  20918. perlexec='/usr/bin/env perl'
  20919. case $host in
  20920. *-*-linux*)
  20921. cat >>confdefs.h <<\_ACEOF
  20922. #define XP_UNIX 1
  20923. _ACEOF
  20924. cat >>confdefs.h <<\_ACEOF
  20925. #define Linux 1
  20926. _ACEOF
  20927. cat >>confdefs.h <<\_ACEOF
  20928. #define LINUX 1
  20929. _ACEOF
  20930. cat >>confdefs.h <<\_ACEOF
  20931. #define LINUX2_0 1
  20932. _ACEOF
  20933. cat >>confdefs.h <<\_ACEOF
  20934. #define LINUX2_2 1
  20935. _ACEOF
  20936. cat >>confdefs.h <<\_ACEOF
  20937. #define LINUX2_4 1
  20938. _ACEOF
  20939. cat >>confdefs.h <<\_ACEOF
  20940. #define _GNU_SOURCE 1
  20941. _ACEOF
  20942. platform="linux"
  20943. # relative to sysconfdir
  20944. initdir=/rc.d/init.d
  20945. # do arch specific linux stuff here
  20946. case $host in
  20947. i*86-*-linux*)
  20948. cat >>confdefs.h <<\_ACEOF
  20949. #define CPU_x86
  20950. _ACEOF
  20951. cat >>confdefs.h <<\_ACEOF
  20952. #define ATOMIC_64BIT_OPERATIONS 1
  20953. _ACEOF
  20954. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  20955. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  20956. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  20957. echo $ECHO_N "(cached) $ECHO_C" >&6
  20958. else
  20959. cat >conftest.$ac_ext <<_ACEOF
  20960. /* confdefs.h. */
  20961. _ACEOF
  20962. cat confdefs.h >>conftest.$ac_ext
  20963. cat >>conftest.$ac_ext <<_ACEOF
  20964. /* end confdefs.h. */
  20965. $ac_includes_default
  20966. int
  20967. main ()
  20968. {
  20969. #ifndef __sync_add_and_fetch
  20970. char *p = (char *) __sync_add_and_fetch;
  20971. #endif
  20972. ;
  20973. return 0;
  20974. }
  20975. _ACEOF
  20976. rm -f conftest.$ac_objext
  20977. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20978. (eval $ac_compile) 2>conftest.er1
  20979. ac_status=$?
  20980. grep -v '^ *+' conftest.er1 >conftest.err
  20981. rm -f conftest.er1
  20982. cat conftest.err >&5
  20983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20984. (exit $ac_status); } &&
  20985. { ac_try='test -z "$ac_c_werror_flag"
  20986. || test ! -s conftest.err'
  20987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20988. (eval $ac_try) 2>&5
  20989. ac_status=$?
  20990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20991. (exit $ac_status); }; } &&
  20992. { ac_try='test -s conftest.$ac_objext'
  20993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20994. (eval $ac_try) 2>&5
  20995. ac_status=$?
  20996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20997. (exit $ac_status); }; }; then
  20998. ac_cv_have_decl___sync_add_and_fetch=yes
  20999. else
  21000. echo "$as_me: failed program was:" >&5
  21001. sed 's/^/| /' conftest.$ac_ext >&5
  21002. ac_cv_have_decl___sync_add_and_fetch=no
  21003. fi
  21004. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21005. fi
  21006. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21007. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  21008. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21009. cat >>confdefs.h <<_ACEOF
  21010. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21011. _ACEOF
  21012. else
  21013. cat >>confdefs.h <<_ACEOF
  21014. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21015. _ACEOF
  21016. fi
  21017. ;;
  21018. x86_64-*-linux*)
  21019. cat >>confdefs.h <<\_ACEOF
  21020. #define CPU_x86_64
  21021. _ACEOF
  21022. cat >>confdefs.h <<\_ACEOF
  21023. #define ATOMIC_64BIT_OPERATIONS 1
  21024. _ACEOF
  21025. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  21026. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  21027. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  21028. echo $ECHO_N "(cached) $ECHO_C" >&6
  21029. else
  21030. cat >conftest.$ac_ext <<_ACEOF
  21031. /* confdefs.h. */
  21032. _ACEOF
  21033. cat confdefs.h >>conftest.$ac_ext
  21034. cat >>conftest.$ac_ext <<_ACEOF
  21035. /* end confdefs.h. */
  21036. $ac_includes_default
  21037. int
  21038. main ()
  21039. {
  21040. #ifndef __sync_add_and_fetch
  21041. char *p = (char *) __sync_add_and_fetch;
  21042. #endif
  21043. ;
  21044. return 0;
  21045. }
  21046. _ACEOF
  21047. rm -f conftest.$ac_objext
  21048. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21049. (eval $ac_compile) 2>conftest.er1
  21050. ac_status=$?
  21051. grep -v '^ *+' conftest.er1 >conftest.err
  21052. rm -f conftest.er1
  21053. cat conftest.err >&5
  21054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21055. (exit $ac_status); } &&
  21056. { ac_try='test -z "$ac_c_werror_flag"
  21057. || test ! -s conftest.err'
  21058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21059. (eval $ac_try) 2>&5
  21060. ac_status=$?
  21061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21062. (exit $ac_status); }; } &&
  21063. { ac_try='test -s conftest.$ac_objext'
  21064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21065. (eval $ac_try) 2>&5
  21066. ac_status=$?
  21067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21068. (exit $ac_status); }; }; then
  21069. ac_cv_have_decl___sync_add_and_fetch=yes
  21070. else
  21071. echo "$as_me: failed program was:" >&5
  21072. sed 's/^/| /' conftest.$ac_ext >&5
  21073. ac_cv_have_decl___sync_add_and_fetch=no
  21074. fi
  21075. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21076. fi
  21077. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21078. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  21079. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21080. cat >>confdefs.h <<_ACEOF
  21081. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21082. _ACEOF
  21083. else
  21084. cat >>confdefs.h <<_ACEOF
  21085. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21086. _ACEOF
  21087. fi
  21088. ;;
  21089. esac
  21090. # some programs use the native thread library directly
  21091. THREADLIB=-lpthread
  21092. THREADLIB=$THREADLIB
  21093. ;;
  21094. ia64-hp-hpux*)
  21095. cat >>confdefs.h <<\_ACEOF
  21096. #define XP_UNIX 1
  21097. _ACEOF
  21098. cat >>confdefs.h <<\_ACEOF
  21099. #define hpux 1
  21100. _ACEOF
  21101. cat >>confdefs.h <<\_ACEOF
  21102. #define HPUX 1
  21103. _ACEOF
  21104. cat >>confdefs.h <<\_ACEOF
  21105. #define HPUX11 1
  21106. _ACEOF
  21107. cat >>confdefs.h <<\_ACEOF
  21108. #define HPUX11_23 1
  21109. _ACEOF
  21110. cat >>confdefs.h <<\_ACEOF
  21111. #define CPU_ia64
  21112. _ACEOF
  21113. cat >>confdefs.h <<\_ACEOF
  21114. #define OS_hpux 1
  21115. _ACEOF
  21116. cat >>confdefs.h <<\_ACEOF
  21117. #define _POSIX_C_SOURCE 199506L
  21118. _ACEOF
  21119. cat >>confdefs.h <<\_ACEOF
  21120. #define _HPUX_SOURCE 1
  21121. _ACEOF
  21122. cat >>confdefs.h <<\_ACEOF
  21123. #define _INCLUDE_STDC__SOURCE_199901 1
  21124. _ACEOF
  21125. cat >>confdefs.h <<\_ACEOF
  21126. #define ATOMIC_64BIT_OPERATIONS 1
  21127. _ACEOF
  21128. # assume 64 bit
  21129. perlexec='/opt/perl_64/bin/perl'
  21130. platform="hpux"
  21131. initconfigdir="/$PACKAGE_NAME/config"
  21132. ;;
  21133. hppa*-hp-hpux*)
  21134. cat >>confdefs.h <<\_ACEOF
  21135. #define XP_UNIX 1
  21136. _ACEOF
  21137. cat >>confdefs.h <<\_ACEOF
  21138. #define hpux 1
  21139. _ACEOF
  21140. cat >>confdefs.h <<\_ACEOF
  21141. #define HPUX 1
  21142. _ACEOF
  21143. cat >>confdefs.h <<\_ACEOF
  21144. #define HPUX11 1
  21145. _ACEOF
  21146. cat >>confdefs.h <<\_ACEOF
  21147. #define HPUX11_11 1
  21148. _ACEOF
  21149. cat >>confdefs.h <<\_ACEOF
  21150. #define CPU_hppa
  21151. _ACEOF
  21152. cat >>confdefs.h <<\_ACEOF
  21153. #define OS_hpux 1
  21154. _ACEOF
  21155. cat >>confdefs.h <<\_ACEOF
  21156. #define _POSIX_C_SOURCE 199506L
  21157. _ACEOF
  21158. cat >>confdefs.h <<\_ACEOF
  21159. #define _HPUX_SOURCE 1
  21160. _ACEOF
  21161. cat >>confdefs.h <<\_ACEOF
  21162. #define _INCLUDE_STDC__SOURCE_199901 1
  21163. _ACEOF
  21164. cat >>confdefs.h <<\_ACEOF
  21165. #define ATOMIC_64BIT_OPERATIONS 1
  21166. _ACEOF
  21167. # assume 64 bit
  21168. initconfigdir="/$PACKAGE_NAME/config"
  21169. perlexec='/opt/perl_64/bin/perl'
  21170. platform="hpux"
  21171. ;;
  21172. sparc-sun-solaris*)
  21173. cat >>confdefs.h <<\_ACEOF
  21174. #define XP_UNIX 1
  21175. _ACEOF
  21176. cat >>confdefs.h <<\_ACEOF
  21177. #define SVR4 1
  21178. _ACEOF
  21179. cat >>confdefs.h <<\_ACEOF
  21180. #define __svr4 1
  21181. _ACEOF
  21182. cat >>confdefs.h <<\_ACEOF
  21183. #define __svr4__ 1
  21184. _ACEOF
  21185. cat >>confdefs.h <<\_ACEOF
  21186. #define _SVID_GETTOD 1
  21187. _ACEOF
  21188. cat >>confdefs.h <<\_ACEOF
  21189. #define SOLARIS 1
  21190. _ACEOF
  21191. cat >>confdefs.h <<\_ACEOF
  21192. #define CPU_sparc
  21193. _ACEOF
  21194. cat >>confdefs.h <<\_ACEOF
  21195. #define OS_solaris 1
  21196. _ACEOF
  21197. cat >>confdefs.h <<\_ACEOF
  21198. #define sunos5 1
  21199. _ACEOF
  21200. cat >>confdefs.h <<\_ACEOF
  21201. #define OSVERSION 509
  21202. _ACEOF
  21203. cat >>confdefs.h <<\_ACEOF
  21204. #define _REENTRANT 1
  21205. _ACEOF
  21206. cat >>confdefs.h <<\_ACEOF
  21207. #define NO_DOMAINNAME 1
  21208. _ACEOF
  21209. cat >>confdefs.h <<\_ACEOF
  21210. #define ATOMIC_64BIT_OPERATIONS 1
  21211. _ACEOF
  21212. LIBSOCKET=-lsocket
  21213. LIBSOCKET=$LIBSOCKET
  21214. LIBNSL=-lnsl
  21215. LIBNSL=$LIBNSL
  21216. LIBDL=-ldl
  21217. LIBDL=$LIBDL
  21218. LIBCSTD=-lCstd
  21219. LIBCSTD=$LIBCSTD
  21220. LIBCRUN=-lCrun
  21221. LIBCRUN=$LIBCRUN
  21222. platform="solaris"
  21223. # assume 64 bit
  21224. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  21225. # relative to sysconfdir
  21226. initdir=/init.d
  21227. ;;
  21228. *)
  21229. platform=""
  21230. ;;
  21231. esac
  21232. # set default initconfigdir if not already set
  21233. # value will be set so as to be relative to $(sysconfdir)
  21234. if test -z "$initconfigdir" ; then
  21235. if test -d /etc/sysconfig ; then
  21236. initconfigdir=/sysconfig
  21237. elif test -d /etc/default ; then
  21238. initconfigdir=/default
  21239. else
  21240. initconfigdir="/$PACKAGE_NAME/config"
  21241. fi
  21242. fi
  21243. if test "$platform" = "hpux"; then
  21244. HPUX_TRUE=
  21245. HPUX_FALSE='#'
  21246. else
  21247. HPUX_TRUE='#'
  21248. HPUX_FALSE=
  21249. fi
  21250. if test "$platform" = "solaris"; then
  21251. SOLARIS_TRUE=
  21252. SOLARIS_FALSE='#'
  21253. else
  21254. SOLARIS_TRUE='#'
  21255. SOLARIS_FALSE=
  21256. fi
  21257. # Check for library dependencies
  21258. # BEGIN COPYRIGHT BLOCK
  21259. # Copyright (C) 2007 Red Hat, Inc.
  21260. # All rights reserved.
  21261. #
  21262. # This program is free software; you can redistribute it and/or
  21263. # modify it under the terms of the GNU General Public License
  21264. # as published by the Free Software Foundation; either version 2
  21265. # of the License, or (at your option) any later version.
  21266. #
  21267. # This program is distributed in the hope that it will be useful,
  21268. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21269. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21270. # GNU General Public License for more details.
  21271. #
  21272. # You should have received a copy of the GNU General Public License
  21273. # along with this program; if not, write to the Free Software
  21274. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21275. #
  21276. # END COPYRIGHT BLOCK
  21277. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  21278. echo "$as_me: checking for NSPR..." >&6;}
  21279. # check for --with-nspr
  21280. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  21281. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  21282. # Check whether --with-nspr or --without-nspr was given.
  21283. if test "${with_nspr+set}" = set; then
  21284. withval="$with_nspr"
  21285. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  21286. then
  21287. echo "$as_me:$LINENO: result: using $withval" >&5
  21288. echo "${ECHO_T}using $withval" >&6
  21289. NSPRDIR=$withval
  21290. nspr_inc="-I$NSPRDIR/include"
  21291. nspr_lib="-L$NSPRDIR/lib"
  21292. nspr_libdir="$NSPRDIR/lib"
  21293. else
  21294. echo
  21295. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21296. echo "$as_me: error: $withval not found" >&2;}
  21297. { (exit 1); exit 1; }; }
  21298. fi
  21299. else
  21300. echo "$as_me:$LINENO: result: no" >&5
  21301. echo "${ECHO_T}no" >&6
  21302. fi;
  21303. # check for --with-nspr-inc
  21304. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  21305. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  21306. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  21307. if test "${with_nspr_inc+set}" = set; then
  21308. withval="$with_nspr_inc"
  21309. if test -e "$withval"/nspr.h
  21310. then
  21311. echo "$as_me:$LINENO: result: using $withval" >&5
  21312. echo "${ECHO_T}using $withval" >&6
  21313. nspr_inc="-I$withval"
  21314. else
  21315. echo
  21316. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21317. echo "$as_me: error: $withval not found" >&2;}
  21318. { (exit 1); exit 1; }; }
  21319. fi
  21320. else
  21321. echo "$as_me:$LINENO: result: no" >&5
  21322. echo "${ECHO_T}no" >&6
  21323. fi;
  21324. # check for --with-nspr-lib
  21325. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  21326. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  21327. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  21328. if test "${with_nspr_lib+set}" = set; then
  21329. withval="$with_nspr_lib"
  21330. if test -d "$withval"
  21331. then
  21332. echo "$as_me:$LINENO: result: using $withval" >&5
  21333. echo "${ECHO_T}using $withval" >&6
  21334. nspr_lib="-L$withval"
  21335. nspr_libdir="$withval"
  21336. else
  21337. echo
  21338. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21339. echo "$as_me: error: $withval not found" >&2;}
  21340. { (exit 1); exit 1; }; }
  21341. fi
  21342. else
  21343. echo "$as_me:$LINENO: result: no" >&5
  21344. echo "${ECHO_T}no" >&6
  21345. fi;
  21346. # if NSPR is not found yet, try pkg-config
  21347. # last resort
  21348. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21349. # Extract the first word of "pkg-config", so it can be a program name with args.
  21350. set dummy pkg-config; ac_word=$2
  21351. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21352. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21353. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21354. echo $ECHO_N "(cached) $ECHO_C" >&6
  21355. else
  21356. case $PKG_CONFIG in
  21357. [\\/]* | ?:[\\/]*)
  21358. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21359. ;;
  21360. *)
  21361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21362. for as_dir in $PATH
  21363. do
  21364. IFS=$as_save_IFS
  21365. test -z "$as_dir" && as_dir=.
  21366. for ac_exec_ext in '' $ac_executable_extensions; do
  21367. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21368. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21369. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21370. break 2
  21371. fi
  21372. done
  21373. done
  21374. ;;
  21375. esac
  21376. fi
  21377. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21378. if test -n "$PKG_CONFIG"; then
  21379. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21380. echo "${ECHO_T}$PKG_CONFIG" >&6
  21381. else
  21382. echo "$as_me:$LINENO: result: no" >&5
  21383. echo "${ECHO_T}no" >&6
  21384. fi
  21385. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  21386. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  21387. if test -n "$PKG_CONFIG"; then
  21388. if $PKG_CONFIG --exists nspr; then
  21389. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  21390. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  21391. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21392. echo "$as_me:$LINENO: result: using system NSPR" >&5
  21393. echo "${ECHO_T}using system NSPR" >&6
  21394. elif $PKG_CONFIG --exists dirsec-nspr; then
  21395. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  21396. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  21397. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21398. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  21399. echo "${ECHO_T}using system dirsec NSPR" >&6
  21400. else
  21401. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  21402. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  21403. { (exit 1); exit 1; }; }
  21404. fi
  21405. fi
  21406. fi
  21407. # BEGIN COPYRIGHT BLOCK
  21408. # Copyright (C) 2007 Red Hat, Inc.
  21409. # All rights reserved.
  21410. #
  21411. # This program is free software; you can redistribute it and/or
  21412. # modify it under the terms of the GNU General Public License
  21413. # as published by the Free Software Foundation; either version 2
  21414. # of the License, or (at your option) any later version.
  21415. #
  21416. # This program is distributed in the hope that it will be useful,
  21417. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21418. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21419. # GNU General Public License for more details.
  21420. #
  21421. # You should have received a copy of the GNU General Public License
  21422. # along with this program; if not, write to the Free Software
  21423. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21424. #
  21425. # END COPYRIGHT BLOCK
  21426. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21427. echo "$as_me: checking for NSS..." >&6;}
  21428. # check for --with-nss
  21429. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21430. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21431. # Check whether --with-nss or --without-nss was given.
  21432. if test "${with_nss+set}" = set; then
  21433. withval="$with_nss"
  21434. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21435. then
  21436. echo "$as_me:$LINENO: result: using $withval" >&5
  21437. echo "${ECHO_T}using $withval" >&6
  21438. NSSDIR=$withval
  21439. nss_inc="-I$NSSDIR/include"
  21440. nss_lib="-L$NSSDIR/lib"
  21441. nss_libdir="$NSSDIR/lib"
  21442. else
  21443. echo
  21444. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21445. echo "$as_me: error: $withval not found" >&2;}
  21446. { (exit 1); exit 1; }; }
  21447. fi
  21448. else
  21449. echo "$as_me:$LINENO: result: no" >&5
  21450. echo "${ECHO_T}no" >&6
  21451. fi;
  21452. # check for --with-nss-inc
  21453. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21454. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21455. # Check whether --with-nss-inc or --without-nss-inc was given.
  21456. if test "${with_nss_inc+set}" = set; then
  21457. withval="$with_nss_inc"
  21458. if test -e "$withval"/nss.h
  21459. then
  21460. echo "$as_me:$LINENO: result: using $withval" >&5
  21461. echo "${ECHO_T}using $withval" >&6
  21462. nss_inc="-I$withval"
  21463. else
  21464. echo
  21465. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21466. echo "$as_me: error: $withval not found" >&2;}
  21467. { (exit 1); exit 1; }; }
  21468. fi
  21469. else
  21470. echo "$as_me:$LINENO: result: no" >&5
  21471. echo "${ECHO_T}no" >&6
  21472. fi;
  21473. # check for --with-nss-lib
  21474. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21475. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21476. # Check whether --with-nss-lib or --without-nss-lib was given.
  21477. if test "${with_nss_lib+set}" = set; then
  21478. withval="$with_nss_lib"
  21479. if test -d "$withval"
  21480. then
  21481. echo "$as_me:$LINENO: result: using $withval" >&5
  21482. echo "${ECHO_T}using $withval" >&6
  21483. nss_lib="-L$withval"
  21484. nss_libdir="$withval"
  21485. else
  21486. echo
  21487. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21488. echo "$as_me: error: $withval not found" >&2;}
  21489. { (exit 1); exit 1; }; }
  21490. fi
  21491. else
  21492. echo "$as_me:$LINENO: result: no" >&5
  21493. echo "${ECHO_T}no" >&6
  21494. fi;
  21495. # if NSS is not found yet, try pkg-config
  21496. # last resort
  21497. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21498. # Extract the first word of "pkg-config", so it can be a program name with args.
  21499. set dummy pkg-config; ac_word=$2
  21500. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21501. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21502. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21503. echo $ECHO_N "(cached) $ECHO_C" >&6
  21504. else
  21505. case $PKG_CONFIG in
  21506. [\\/]* | ?:[\\/]*)
  21507. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21508. ;;
  21509. *)
  21510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21511. for as_dir in $PATH
  21512. do
  21513. IFS=$as_save_IFS
  21514. test -z "$as_dir" && as_dir=.
  21515. for ac_exec_ext in '' $ac_executable_extensions; do
  21516. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21517. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21518. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21519. break 2
  21520. fi
  21521. done
  21522. done
  21523. ;;
  21524. esac
  21525. fi
  21526. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21527. if test -n "$PKG_CONFIG"; then
  21528. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21529. echo "${ECHO_T}$PKG_CONFIG" >&6
  21530. else
  21531. echo "$as_me:$LINENO: result: no" >&5
  21532. echo "${ECHO_T}no" >&6
  21533. fi
  21534. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21535. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21536. if test -n "$PKG_CONFIG"; then
  21537. if $PKG_CONFIG --exists nss; then
  21538. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21539. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21540. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21541. echo "$as_me:$LINENO: result: using system NSS" >&5
  21542. echo "${ECHO_T}using system NSS" >&6
  21543. elif $PKG_CONFIG --exists dirsec-nss; then
  21544. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21545. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21546. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21547. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21548. echo "${ECHO_T}using system dirsec NSS" >&6
  21549. else
  21550. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21551. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21552. { (exit 1); exit 1; }; }
  21553. fi
  21554. fi
  21555. fi
  21556. # default to Mozilla LDAP C SDK - override with --with-openldap
  21557. with_ldapsdk=yes
  21558. # BEGIN COPYRIGHT BLOCK
  21559. # Copyright (C) 2009 Red Hat, Inc.
  21560. # All rights reserved.
  21561. #
  21562. # This program is free software; you can redistribute it and/or
  21563. # modify it under the terms of the GNU General Public License
  21564. # as published by the Free Software Foundation; either version 2
  21565. # of the License, or (at your option) any later version.
  21566. #
  21567. # This program is distributed in the hope that it will be useful,
  21568. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21569. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21570. # GNU General Public License for more details.
  21571. #
  21572. # You should have received a copy of the GNU General Public License
  21573. # along with this program; if not, write to the Free Software
  21574. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21575. #
  21576. # END COPYRIGHT BLOCK
  21577. { echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  21578. echo "$as_me: checking for OpenLDAP..." >&6;}
  21579. # check for --with-openldap
  21580. echo "$as_me:$LINENO: checking for --with-openldap" >&5
  21581. echo $ECHO_N "checking for --with-openldap... $ECHO_C" >&6
  21582. # Check whether --with-openldap or --without-openldap was given.
  21583. if test "${with_openldap+set}" = set; then
  21584. withval="$with_openldap"
  21585. if test "$withval" = yes
  21586. then
  21587. echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  21588. echo "${ECHO_T}using system OpenLDAP" >&6
  21589. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21590. then
  21591. echo "$as_me:$LINENO: result: using $withval" >&5
  21592. echo "${ECHO_T}using $withval" >&6
  21593. OPENLDAPDIR=$withval
  21594. openldap_incdir="$OPENLDAPDIR/include"
  21595. openldap_inc="-I$openldap_incdir"
  21596. openldap_lib="-L$OPENLDAPDIR/lib"
  21597. openldap_libdir="$OPENLDAPDIR/lib"
  21598. openldap_bindir="$OPENLDAPDIR/bin"
  21599. with_openldap=yes
  21600. else
  21601. echo
  21602. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21603. echo "$as_me: error: $withval not found" >&2;}
  21604. { (exit 1); exit 1; }; }
  21605. fi
  21606. else
  21607. echo "$as_me:$LINENO: result: no" >&5
  21608. echo "${ECHO_T}no" >&6
  21609. fi;
  21610. # check for --with-openldap-inc
  21611. echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  21612. echo $ECHO_N "checking for --with-openldap-inc... $ECHO_C" >&6
  21613. # Check whether --with-openldap-inc or --without-openldap-inc was given.
  21614. if test "${with_openldap_inc+set}" = set; then
  21615. withval="$with_openldap_inc"
  21616. if test -e "$withval"/ldap.h
  21617. then
  21618. echo "$as_me:$LINENO: result: using $withval" >&5
  21619. echo "${ECHO_T}using $withval" >&6
  21620. openldap_incdir="$withval"
  21621. openldap_inc="-I$withval"
  21622. with_openldap=yes
  21623. else
  21624. echo
  21625. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21626. echo "$as_me: error: $withval not found" >&2;}
  21627. { (exit 1); exit 1; }; }
  21628. fi
  21629. else
  21630. echo "$as_me:$LINENO: result: no" >&5
  21631. echo "${ECHO_T}no" >&6
  21632. fi;
  21633. # check for --with-openldap-lib
  21634. echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  21635. echo $ECHO_N "checking for --with-openldap-lib... $ECHO_C" >&6
  21636. # Check whether --with-openldap-lib or --without-openldap-lib was given.
  21637. if test "${with_openldap_lib+set}" = set; then
  21638. withval="$with_openldap_lib"
  21639. if test -d "$withval"
  21640. then
  21641. echo "$as_me:$LINENO: result: using $withval" >&5
  21642. echo "${ECHO_T}using $withval" >&6
  21643. openldap_lib="-L$withval"
  21644. openldap_libdir="$withval"
  21645. with_openldap=yes
  21646. else
  21647. echo
  21648. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21649. echo "$as_me: error: $withval not found" >&2;}
  21650. { (exit 1); exit 1; }; }
  21651. fi
  21652. else
  21653. echo "$as_me:$LINENO: result: no" >&5
  21654. echo "${ECHO_T}no" >&6
  21655. fi;
  21656. # check for --with-openldap-bin
  21657. echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  21658. echo $ECHO_N "checking for --with-openldap-bin... $ECHO_C" >&6
  21659. # Check whether --with-openldap-bin or --without-openldap-bin was given.
  21660. if test "${with_openldap_bin+set}" = set; then
  21661. withval="$with_openldap_bin"
  21662. if test -d "$withval"
  21663. then
  21664. echo "$as_me:$LINENO: result: using $withval" >&5
  21665. echo "${ECHO_T}using $withval" >&6
  21666. openldap_bindir="$withval"
  21667. with_openldap=yes
  21668. else
  21669. echo
  21670. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21671. echo "$as_me: error: $withval not found" >&2;}
  21672. { (exit 1); exit 1; }; }
  21673. fi
  21674. else
  21675. echo "$as_me:$LINENO: result: no" >&5
  21676. echo "${ECHO_T}no" >&6
  21677. fi;
  21678. # if OPENLDAP is not found yet, try pkg-config
  21679. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  21680. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  21681. # Extract the first word of "pkg-config", so it can be a program name with args.
  21682. set dummy pkg-config; ac_word=$2
  21683. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21684. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21685. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21686. echo $ECHO_N "(cached) $ECHO_C" >&6
  21687. else
  21688. case $PKG_CONFIG in
  21689. [\\/]* | ?:[\\/]*)
  21690. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21691. ;;
  21692. *)
  21693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21694. for as_dir in $PATH
  21695. do
  21696. IFS=$as_save_IFS
  21697. test -z "$as_dir" && as_dir=.
  21698. for ac_exec_ext in '' $ac_executable_extensions; do
  21699. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21700. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21701. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21702. break 2
  21703. fi
  21704. done
  21705. done
  21706. ;;
  21707. esac
  21708. fi
  21709. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21710. if test -n "$PKG_CONFIG"; then
  21711. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21712. echo "${ECHO_T}$PKG_CONFIG" >&6
  21713. else
  21714. echo "$as_me:$LINENO: result: no" >&5
  21715. echo "${ECHO_T}no" >&6
  21716. fi
  21717. echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  21718. echo $ECHO_N "checking for OpenLDAP with pkg-config... $ECHO_C" >&6
  21719. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  21720. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  21721. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  21722. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  21723. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  21724. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  21725. echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  21726. echo "${ECHO_T}using system OpenLDAP from pkg-config" >&6
  21727. else
  21728. openldap_incdir="/usr/include"
  21729. openldap_inc="-I$openldap_incdir"
  21730. echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  21731. echo "${ECHO_T}no OpenLDAP pkg-config files" >&6
  21732. fi
  21733. fi
  21734. fi
  21735. if test "$with_openldap" = yes ; then
  21736. save_cppflags="$CPPFLAGS"
  21737. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  21738. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21739. echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  21740. echo $ECHO_N "checking for ldap_features.h... $ECHO_C" >&6
  21741. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21742. echo $ECHO_N "(cached) $ECHO_C" >&6
  21743. fi
  21744. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  21745. echo "${ECHO_T}$ac_cv_header_ldap_features_h" >&6
  21746. else
  21747. # Is the header compilable?
  21748. echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  21749. echo $ECHO_N "checking ldap_features.h usability... $ECHO_C" >&6
  21750. cat >conftest.$ac_ext <<_ACEOF
  21751. /* confdefs.h. */
  21752. _ACEOF
  21753. cat confdefs.h >>conftest.$ac_ext
  21754. cat >>conftest.$ac_ext <<_ACEOF
  21755. /* end confdefs.h. */
  21756. $ac_includes_default
  21757. #include <ldap_features.h>
  21758. _ACEOF
  21759. rm -f conftest.$ac_objext
  21760. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21761. (eval $ac_compile) 2>conftest.er1
  21762. ac_status=$?
  21763. grep -v '^ *+' conftest.er1 >conftest.err
  21764. rm -f conftest.er1
  21765. cat conftest.err >&5
  21766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21767. (exit $ac_status); } &&
  21768. { ac_try='test -z "$ac_c_werror_flag"
  21769. || test ! -s conftest.err'
  21770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21771. (eval $ac_try) 2>&5
  21772. ac_status=$?
  21773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21774. (exit $ac_status); }; } &&
  21775. { ac_try='test -s conftest.$ac_objext'
  21776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21777. (eval $ac_try) 2>&5
  21778. ac_status=$?
  21779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21780. (exit $ac_status); }; }; then
  21781. ac_header_compiler=yes
  21782. else
  21783. echo "$as_me: failed program was:" >&5
  21784. sed 's/^/| /' conftest.$ac_ext >&5
  21785. ac_header_compiler=no
  21786. fi
  21787. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21788. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21789. echo "${ECHO_T}$ac_header_compiler" >&6
  21790. # Is the header present?
  21791. echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  21792. echo $ECHO_N "checking ldap_features.h presence... $ECHO_C" >&6
  21793. cat >conftest.$ac_ext <<_ACEOF
  21794. /* confdefs.h. */
  21795. _ACEOF
  21796. cat confdefs.h >>conftest.$ac_ext
  21797. cat >>conftest.$ac_ext <<_ACEOF
  21798. /* end confdefs.h. */
  21799. #include <ldap_features.h>
  21800. _ACEOF
  21801. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21802. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21803. ac_status=$?
  21804. grep -v '^ *+' conftest.er1 >conftest.err
  21805. rm -f conftest.er1
  21806. cat conftest.err >&5
  21807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21808. (exit $ac_status); } >/dev/null; then
  21809. if test -s conftest.err; then
  21810. ac_cpp_err=$ac_c_preproc_warn_flag
  21811. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21812. else
  21813. ac_cpp_err=
  21814. fi
  21815. else
  21816. ac_cpp_err=yes
  21817. fi
  21818. if test -z "$ac_cpp_err"; then
  21819. ac_header_preproc=yes
  21820. else
  21821. echo "$as_me: failed program was:" >&5
  21822. sed 's/^/| /' conftest.$ac_ext >&5
  21823. ac_header_preproc=no
  21824. fi
  21825. rm -f conftest.err conftest.$ac_ext
  21826. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21827. echo "${ECHO_T}$ac_header_preproc" >&6
  21828. # So? What about this header?
  21829. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21830. yes:no: )
  21831. { echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21832. echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21833. { echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  21834. echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  21835. ac_header_preproc=yes
  21836. ;;
  21837. no:yes:* )
  21838. { echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  21839. echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  21840. { echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  21841. echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  21842. { echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  21843. echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  21844. { echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  21845. echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21846. { echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  21847. echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  21848. { echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  21849. echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  21850. (
  21851. cat <<\_ASBOX
  21852. ## ------------------------------------------ ##
  21853. ## Report this to http://bugzilla.redhat.com/ ##
  21854. ## ------------------------------------------ ##
  21855. _ASBOX
  21856. ) |
  21857. sed "s/^/$as_me: WARNING: /" >&2
  21858. ;;
  21859. esac
  21860. echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  21861. echo $ECHO_N "checking for ldap_features.h... $ECHO_C" >&6
  21862. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21863. echo $ECHO_N "(cached) $ECHO_C" >&6
  21864. else
  21865. ac_cv_header_ldap_features_h=$ac_header_preproc
  21866. fi
  21867. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  21868. echo "${ECHO_T}$ac_cv_header_ldap_features_h" >&6
  21869. fi
  21870. if test $ac_cv_header_ldap_features_h = yes; then
  21871. :
  21872. else
  21873. { { echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  21874. echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  21875. { (exit 1); exit 1; }; }
  21876. fi
  21877. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21878. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21879. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21880. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  21881. save_ldflags="$LDFLAGS"
  21882. LDFLAGS="$openldap_lib $LDFLAGS"
  21883. as_ac_Lib=`echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  21884. echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  21885. echo $ECHO_N "checking for ldap_initialize in -lldap$ol_libver... $ECHO_C" >&6
  21886. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21887. echo $ECHO_N "(cached) $ECHO_C" >&6
  21888. else
  21889. ac_check_lib_save_LIBS=$LIBS
  21890. LIBS="-lldap$ol_libver $LIBS"
  21891. cat >conftest.$ac_ext <<_ACEOF
  21892. /* confdefs.h. */
  21893. _ACEOF
  21894. cat confdefs.h >>conftest.$ac_ext
  21895. cat >>conftest.$ac_ext <<_ACEOF
  21896. /* end confdefs.h. */
  21897. /* Override any gcc2 internal prototype to avoid an error. */
  21898. #ifdef __cplusplus
  21899. extern "C"
  21900. #endif
  21901. /* We use char because int might match the return type of a gcc2
  21902. builtin and then its argument prototype would still apply. */
  21903. char ldap_initialize ();
  21904. int
  21905. main ()
  21906. {
  21907. ldap_initialize ();
  21908. ;
  21909. return 0;
  21910. }
  21911. _ACEOF
  21912. rm -f conftest.$ac_objext conftest$ac_exeext
  21913. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21914. (eval $ac_link) 2>conftest.er1
  21915. ac_status=$?
  21916. grep -v '^ *+' conftest.er1 >conftest.err
  21917. rm -f conftest.er1
  21918. cat conftest.err >&5
  21919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21920. (exit $ac_status); } &&
  21921. { ac_try='test -z "$ac_c_werror_flag"
  21922. || test ! -s conftest.err'
  21923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21924. (eval $ac_try) 2>&5
  21925. ac_status=$?
  21926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21927. (exit $ac_status); }; } &&
  21928. { ac_try='test -s conftest$ac_exeext'
  21929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21930. (eval $ac_try) 2>&5
  21931. ac_status=$?
  21932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21933. (exit $ac_status); }; }; then
  21934. eval "$as_ac_Lib=yes"
  21935. else
  21936. echo "$as_me: failed program was:" >&5
  21937. sed 's/^/| /' conftest.$ac_ext >&5
  21938. eval "$as_ac_Lib=no"
  21939. fi
  21940. rm -f conftest.err conftest.$ac_objext \
  21941. conftest$ac_exeext conftest.$ac_ext
  21942. LIBS=$ac_check_lib_save_LIBS
  21943. fi
  21944. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21945. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21946. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21947. have_ldap_lib=1
  21948. fi
  21949. if test -z "$have_ldap_lib" ; then
  21950. echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  21951. echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6
  21952. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  21953. echo $ECHO_N "(cached) $ECHO_C" >&6
  21954. else
  21955. ac_check_lib_save_LIBS=$LIBS
  21956. LIBS="-lldap $LIBS"
  21957. cat >conftest.$ac_ext <<_ACEOF
  21958. /* confdefs.h. */
  21959. _ACEOF
  21960. cat confdefs.h >>conftest.$ac_ext
  21961. cat >>conftest.$ac_ext <<_ACEOF
  21962. /* end confdefs.h. */
  21963. /* Override any gcc2 internal prototype to avoid an error. */
  21964. #ifdef __cplusplus
  21965. extern "C"
  21966. #endif
  21967. /* We use char because int might match the return type of a gcc2
  21968. builtin and then its argument prototype would still apply. */
  21969. char ldap_initialize ();
  21970. int
  21971. main ()
  21972. {
  21973. ldap_initialize ();
  21974. ;
  21975. return 0;
  21976. }
  21977. _ACEOF
  21978. rm -f conftest.$ac_objext conftest$ac_exeext
  21979. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21980. (eval $ac_link) 2>conftest.er1
  21981. ac_status=$?
  21982. grep -v '^ *+' conftest.er1 >conftest.err
  21983. rm -f conftest.er1
  21984. cat conftest.err >&5
  21985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21986. (exit $ac_status); } &&
  21987. { ac_try='test -z "$ac_c_werror_flag"
  21988. || test ! -s conftest.err'
  21989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21990. (eval $ac_try) 2>&5
  21991. ac_status=$?
  21992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21993. (exit $ac_status); }; } &&
  21994. { ac_try='test -s conftest$ac_exeext'
  21995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21996. (eval $ac_try) 2>&5
  21997. ac_status=$?
  21998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21999. (exit $ac_status); }; }; then
  22000. ac_cv_lib_ldap_ldap_initialize=yes
  22001. else
  22002. echo "$as_me: failed program was:" >&5
  22003. sed 's/^/| /' conftest.$ac_ext >&5
  22004. ac_cv_lib_ldap_ldap_initialize=no
  22005. fi
  22006. rm -f conftest.err conftest.$ac_objext \
  22007. conftest$ac_exeext conftest.$ac_ext
  22008. LIBS=$ac_check_lib_save_LIBS
  22009. fi
  22010. echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  22011. echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6
  22012. if test $ac_cv_lib_ldap_ldap_initialize = yes; then
  22013. unset ol_libver
  22014. else
  22015. { { echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  22016. echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  22017. { (exit 1); exit 1; }; }
  22018. fi
  22019. fi
  22020. as_ac_Lib=`echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  22021. echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  22022. echo $ECHO_N "checking for ldap_url_parse_ext in -lldap$ol_libver... $ECHO_C" >&6
  22023. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  22024. echo $ECHO_N "(cached) $ECHO_C" >&6
  22025. else
  22026. ac_check_lib_save_LIBS=$LIBS
  22027. LIBS="-lldap$ol_libver $LIBS"
  22028. cat >conftest.$ac_ext <<_ACEOF
  22029. /* confdefs.h. */
  22030. _ACEOF
  22031. cat confdefs.h >>conftest.$ac_ext
  22032. cat >>conftest.$ac_ext <<_ACEOF
  22033. /* end confdefs.h. */
  22034. /* Override any gcc2 internal prototype to avoid an error. */
  22035. #ifdef __cplusplus
  22036. extern "C"
  22037. #endif
  22038. /* We use char because int might match the return type of a gcc2
  22039. builtin and then its argument prototype would still apply. */
  22040. char ldap_url_parse_ext ();
  22041. int
  22042. main ()
  22043. {
  22044. ldap_url_parse_ext ();
  22045. ;
  22046. return 0;
  22047. }
  22048. _ACEOF
  22049. rm -f conftest.$ac_objext conftest$ac_exeext
  22050. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22051. (eval $ac_link) 2>conftest.er1
  22052. ac_status=$?
  22053. grep -v '^ *+' conftest.er1 >conftest.err
  22054. rm -f conftest.er1
  22055. cat conftest.err >&5
  22056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22057. (exit $ac_status); } &&
  22058. { ac_try='test -z "$ac_c_werror_flag"
  22059. || test ! -s conftest.err'
  22060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22061. (eval $ac_try) 2>&5
  22062. ac_status=$?
  22063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22064. (exit $ac_status); }; } &&
  22065. { ac_try='test -s conftest$ac_exeext'
  22066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22067. (eval $ac_try) 2>&5
  22068. ac_status=$?
  22069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22070. (exit $ac_status); }; }; then
  22071. eval "$as_ac_Lib=yes"
  22072. else
  22073. echo "$as_me: failed program was:" >&5
  22074. sed 's/^/| /' conftest.$ac_ext >&5
  22075. eval "$as_ac_Lib=no"
  22076. fi
  22077. rm -f conftest.err conftest.$ac_objext \
  22078. conftest$ac_exeext conftest.$ac_ext
  22079. LIBS=$ac_check_lib_save_LIBS
  22080. fi
  22081. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22082. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22083. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22084. cat >>confdefs.h <<\_ACEOF
  22085. #define HAVE_LDAP_URL_PARSE_EXT 1
  22086. _ACEOF
  22087. fi
  22088. LDFLAGS="$save_ldflags"
  22089. CPPFLAGS="$save_cppflags"
  22090. cat >>confdefs.h <<\_ACEOF
  22091. #define USE_OPENLDAP 1
  22092. _ACEOF
  22093. with_ldapsdk=no # using openldap not mozldap
  22094. fi
  22095. # BEGIN COPYRIGHT BLOCK
  22096. # Copyright (C) 2007 Red Hat, Inc.
  22097. # All rights reserved.
  22098. #
  22099. # This program is free software; you can redistribute it and/or
  22100. # modify it under the terms of the GNU General Public License
  22101. # as published by the Free Software Foundation; either version 2
  22102. # of the License, or (at your option) any later version.
  22103. #
  22104. # This program is distributed in the hope that it will be useful,
  22105. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22106. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22107. # GNU General Public License for more details.
  22108. #
  22109. # You should have received a copy of the GNU General Public License
  22110. # along with this program; if not, write to the Free Software
  22111. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22112. #
  22113. # END COPYRIGHT BLOCK
  22114. { echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  22115. echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  22116. # check for --with-ldapsdk
  22117. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  22118. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  22119. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  22120. if test "${with_ldapsdk+set}" = set; then
  22121. withval="$with_ldapsdk"
  22122. if test "$withval" = yes
  22123. then
  22124. echo "$as_me:$LINENO: result: using system MozLDAP" >&5
  22125. echo "${ECHO_T}using system MozLDAP" >&6
  22126. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  22127. then
  22128. echo "$as_me:$LINENO: result: using $withval" >&5
  22129. echo "${ECHO_T}using $withval" >&6
  22130. LDAPSDKDIR=$withval
  22131. ldapsdk_inc="-I$LDAPSDKDIR/include"
  22132. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  22133. ldapsdk_libdir="$LDAPSDKDIR/lib"
  22134. ldapsdk_bindir="$LDAPSDKDIR/bin"
  22135. with_ldapsdk=yes
  22136. else
  22137. echo
  22138. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22139. echo "$as_me: error: $withval not found" >&2;}
  22140. { (exit 1); exit 1; }; }
  22141. fi
  22142. else
  22143. echo "$as_me:$LINENO: result: no" >&5
  22144. echo "${ECHO_T}no" >&6
  22145. fi;
  22146. # check for --with-ldapsdk-inc
  22147. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  22148. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  22149. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  22150. if test "${with_ldapsdk_inc+set}" = set; then
  22151. withval="$with_ldapsdk_inc"
  22152. if test -e "$withval"/ldap.h
  22153. then
  22154. echo "$as_me:$LINENO: result: using $withval" >&5
  22155. echo "${ECHO_T}using $withval" >&6
  22156. ldapsdk_inc="-I$withval"
  22157. with_ldapsdk=yes
  22158. else
  22159. echo
  22160. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22161. echo "$as_me: error: $withval not found" >&2;}
  22162. { (exit 1); exit 1; }; }
  22163. fi
  22164. else
  22165. echo "$as_me:$LINENO: result: no" >&5
  22166. echo "${ECHO_T}no" >&6
  22167. fi;
  22168. # check for --with-ldapsdk-lib
  22169. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  22170. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  22171. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  22172. if test "${with_ldapsdk_lib+set}" = set; then
  22173. withval="$with_ldapsdk_lib"
  22174. if test -d "$withval"
  22175. then
  22176. echo "$as_me:$LINENO: result: using $withval" >&5
  22177. echo "${ECHO_T}using $withval" >&6
  22178. ldapsdk_lib="-L$withval"
  22179. ldapsdk_libdir="$withval"
  22180. with_ldapsdk=yes
  22181. else
  22182. echo
  22183. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22184. echo "$as_me: error: $withval not found" >&2;}
  22185. { (exit 1); exit 1; }; }
  22186. fi
  22187. else
  22188. echo "$as_me:$LINENO: result: no" >&5
  22189. echo "${ECHO_T}no" >&6
  22190. fi;
  22191. # check for --with-ldapsdk-bin
  22192. echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  22193. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6
  22194. # Check whether --with-ldapsdk-bin or --without-ldapsdk-bin was given.
  22195. if test "${with_ldapsdk_bin+set}" = set; then
  22196. withval="$with_ldapsdk_bin"
  22197. if test -d "$withval"
  22198. then
  22199. echo "$as_me:$LINENO: result: using $withval" >&5
  22200. echo "${ECHO_T}using $withval" >&6
  22201. ldapsdk_bindir="$withval"
  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. else
  22210. echo "$as_me:$LINENO: result: no" >&5
  22211. echo "${ECHO_T}no" >&6
  22212. fi;
  22213. # if LDAPSDK is not found yet, try pkg-config
  22214. # last resort
  22215. if test "$with_ldapsdk" = yes ; then
  22216. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  22217. # Extract the first word of "pkg-config", so it can be a program name with args.
  22218. set dummy pkg-config; ac_word=$2
  22219. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22220. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22221. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22222. echo $ECHO_N "(cached) $ECHO_C" >&6
  22223. else
  22224. case $PKG_CONFIG in
  22225. [\\/]* | ?:[\\/]*)
  22226. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22227. ;;
  22228. *)
  22229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22230. for as_dir in $PATH
  22231. do
  22232. IFS=$as_save_IFS
  22233. test -z "$as_dir" && as_dir=.
  22234. for ac_exec_ext in '' $ac_executable_extensions; do
  22235. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22236. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22237. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22238. break 2
  22239. fi
  22240. done
  22241. done
  22242. ;;
  22243. esac
  22244. fi
  22245. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22246. if test -n "$PKG_CONFIG"; then
  22247. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22248. echo "${ECHO_T}$PKG_CONFIG" >&6
  22249. else
  22250. echo "$as_me:$LINENO: result: no" >&5
  22251. echo "${ECHO_T}no" >&6
  22252. fi
  22253. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  22254. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  22255. if test -n "$PKG_CONFIG"; then
  22256. if $PKG_CONFIG --exists mozldap6; then
  22257. mozldappkg=mozldap6
  22258. elif $PKG_CONFIG --exists mozldap; then
  22259. mozldappkg=mozldap
  22260. else
  22261. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22262. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22263. { (exit 1); exit 1; }; }
  22264. fi
  22265. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  22266. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  22267. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  22268. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  22269. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  22270. echo "${ECHO_T}using system $mozldappkg" >&6
  22271. fi
  22272. fi
  22273. fi
  22274. if test "$with_ldapsdk" = yes ; then
  22275. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  22276. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22277. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22278. { (exit 1); exit 1; }; }
  22279. fi
  22280. if test -z "$ldapsdk_bindir" ; then
  22281. if -d $libdir/mozldap6 ; then
  22282. ldapsdk_bindir=$libdir/mozldap6
  22283. else
  22284. ldapsdk_bindir=$libdir/mozldap
  22285. fi
  22286. fi
  22287. save_cppflags="$CPPFLAGS"
  22288. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  22289. echo "$as_me:$LINENO: checking for ldap.h" >&5
  22290. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  22291. if test "${ac_cv_header_ldap_h+set}" = set; then
  22292. echo $ECHO_N "(cached) $ECHO_C" >&6
  22293. else
  22294. cat >conftest.$ac_ext <<_ACEOF
  22295. /* confdefs.h. */
  22296. _ACEOF
  22297. cat confdefs.h >>conftest.$ac_ext
  22298. cat >>conftest.$ac_ext <<_ACEOF
  22299. /* end confdefs.h. */
  22300. #include <ldap-standard.h>
  22301. #if LDAP_VENDOR_VERSION < 600
  22302. #error The LDAP C SDK version is not supported
  22303. #endif
  22304. #include <ldap.h>
  22305. _ACEOF
  22306. rm -f conftest.$ac_objext
  22307. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22308. (eval $ac_compile) 2>conftest.er1
  22309. ac_status=$?
  22310. grep -v '^ *+' conftest.er1 >conftest.err
  22311. rm -f conftest.er1
  22312. cat conftest.err >&5
  22313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22314. (exit $ac_status); } &&
  22315. { ac_try='test -z "$ac_c_werror_flag"
  22316. || test ! -s conftest.err'
  22317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22318. (eval $ac_try) 2>&5
  22319. ac_status=$?
  22320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22321. (exit $ac_status); }; } &&
  22322. { ac_try='test -s conftest.$ac_objext'
  22323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22324. (eval $ac_try) 2>&5
  22325. ac_status=$?
  22326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22327. (exit $ac_status); }; }; then
  22328. ac_cv_header_ldap_h=yes
  22329. else
  22330. echo "$as_me: failed program was:" >&5
  22331. sed 's/^/| /' conftest.$ac_ext >&5
  22332. ac_cv_header_ldap_h=no
  22333. fi
  22334. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22335. fi
  22336. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  22337. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  22338. if test $ac_cv_header_ldap_h = yes; then
  22339. isversion6=1
  22340. else
  22341. isversion6=
  22342. fi
  22343. CPPFLAGS="$save_cppflags"
  22344. if test -z "$isversion6" ; then
  22345. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  22346. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  22347. { (exit 1); exit 1; }; }
  22348. fi
  22349. cat >>confdefs.h <<\_ACEOF
  22350. #define USE_MOZLDAP 1
  22351. _ACEOF
  22352. cat >>confdefs.h <<\_ACEOF
  22353. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  22354. _ACEOF
  22355. fi
  22356. # BEGIN COPYRIGHT BLOCK
  22357. # Copyright (C) 2007 Red Hat, Inc.
  22358. # All rights reserved.
  22359. #
  22360. # This program is free software; you can redistribute it and/or
  22361. # modify it under the terms of the GNU General Public License
  22362. # as published by the Free Software Foundation; either version 2
  22363. # of the License, or (at your option) any later version.
  22364. #
  22365. # This program is distributed in the hope that it will be useful,
  22366. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22367. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22368. # GNU General Public License for more details.
  22369. #
  22370. # You should have received a copy of the GNU General Public License
  22371. # along with this program; if not, write to the Free Software
  22372. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22373. #
  22374. # END COPYRIGHT BLOCK
  22375. { echo "$as_me:$LINENO: checking for db..." >&5
  22376. echo "$as_me: checking for db..." >&6;}
  22377. echo "$as_me:$LINENO: checking for --with-db" >&5
  22378. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  22379. # Check whether --with-db or --without-db was given.
  22380. if test "${with_db+set}" = set; then
  22381. withval="$with_db"
  22382. if test "$withval" = "yes"; then
  22383. echo "$as_me:$LINENO: result: yes" >&5
  22384. echo "${ECHO_T}yes" >&6
  22385. if test -f "/usr/include/db.h"; then
  22386. db_incdir="/usr/include"
  22387. db_inc="-I/usr/include"
  22388. db_lib='-L$(libdir)'
  22389. db_libdir='$(libdir)'
  22390. else
  22391. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  22392. echo "$as_me: error: db.h not found" >&2;}
  22393. { (exit 1); exit 1; }; }
  22394. fi
  22395. elif test -d "$withval"/include -a -d "$withval"/lib; then
  22396. echo "$as_me:$LINENO: result: using $withval" >&5
  22397. echo "${ECHO_T}using $withval" >&6
  22398. DBDIR=$withval
  22399. db_lib="-L$DBDIR/lib"
  22400. db_libdir="$DBDIR/lib"
  22401. db_incdir="$DBDIR/include"
  22402. if ! test -e "$db_incdir/db.h" ; then
  22403. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  22404. echo "$as_me: error: $withval include dir not found" >&2;}
  22405. { (exit 1); exit 1; }; }
  22406. fi
  22407. db_inc="-I$db_incdir"
  22408. else
  22409. echo
  22410. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22411. echo "$as_me: error: $withval not found" >&2;}
  22412. { (exit 1); exit 1; }; }
  22413. fi
  22414. else
  22415. echo "$as_me:$LINENO: result: no" >&5
  22416. echo "${ECHO_T}no" >&6
  22417. fi;
  22418. # check for --with-db-inc
  22419. echo "$as_me:$LINENO: checking for --with-db-inc" >&5
  22420. echo $ECHO_N "checking for --with-db-inc... $ECHO_C" >&6
  22421. # Check whether --with-db-inc or --without-db-inc was given.
  22422. if test "${with_db_inc+set}" = set; then
  22423. withval="$with_db_inc"
  22424. if test -e "$withval"/db.h
  22425. then
  22426. echo "$as_me:$LINENO: result: using $withval" >&5
  22427. echo "${ECHO_T}using $withval" >&6
  22428. db_incdir="$withval"
  22429. db_inc="-I$withval"
  22430. else
  22431. echo
  22432. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22433. echo "$as_me: error: $withval not found" >&2;}
  22434. { (exit 1); exit 1; }; }
  22435. fi
  22436. else
  22437. echo "$as_me:$LINENO: result: no" >&5
  22438. echo "${ECHO_T}no" >&6
  22439. fi;
  22440. # check for --with-db-lib
  22441. echo "$as_me:$LINENO: checking for --with-db-lib" >&5
  22442. echo $ECHO_N "checking for --with-db-lib... $ECHO_C" >&6
  22443. # Check whether --with-db-lib or --without-db-lib was given.
  22444. if test "${with_db_lib+set}" = set; then
  22445. withval="$with_db_lib"
  22446. if test -d "$withval"
  22447. then
  22448. echo "$as_me:$LINENO: result: using $withval" >&5
  22449. echo "${ECHO_T}using $withval" >&6
  22450. db_lib="-L$withval"
  22451. db_libdir="$withval"
  22452. else
  22453. echo
  22454. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22455. echo "$as_me: error: $withval not found" >&2;}
  22456. { (exit 1); exit 1; }; }
  22457. fi
  22458. else
  22459. echo "$as_me:$LINENO: result: no" >&5
  22460. echo "${ECHO_T}no" >&6
  22461. fi;
  22462. if test -z "$db_inc"; then
  22463. echo "$as_me:$LINENO: checking for db.h" >&5
  22464. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  22465. if test -f "/usr/include/db4/db.h"; then
  22466. echo "$as_me:$LINENO: result: using /usr/include/db4/db.h" >&5
  22467. echo "${ECHO_T}using /usr/include/db4/db.h" >&6
  22468. db_incdir="/usr/include/db4"
  22469. db_inc="-I/usr/include/db4"
  22470. db_lib='-L$(libdir)'
  22471. db_libdir='$(libdir)'
  22472. elif test -f "/usr/include/db.h"; then
  22473. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  22474. echo "${ECHO_T}using /usr/include/db.h" >&6
  22475. db_incdir="/usr/include"
  22476. db_inc="-I/usr/include"
  22477. db_lib='-L$(libdir)'
  22478. db_libdir='$(libdir)'
  22479. else
  22480. echo "$as_me:$LINENO: result: no" >&5
  22481. echo "${ECHO_T}no" >&6
  22482. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  22483. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  22484. { (exit 1); exit 1; }; }
  22485. fi
  22486. fi
  22487. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  22488. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  22489. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  22490. db_libver=${db_ver_maj}.${db_ver_min}
  22491. save_ldflags="$LDFLAGS"
  22492. LDFLAGS="$db_lib $LDFLAGS"
  22493. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  22494. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  22495. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  22496. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  22497. echo $ECHO_N "(cached) $ECHO_C" >&6
  22498. else
  22499. ac_check_lib_save_LIBS=$LIBS
  22500. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  22501. cat >conftest.$ac_ext <<_ACEOF
  22502. /* confdefs.h. */
  22503. _ACEOF
  22504. cat confdefs.h >>conftest.$ac_ext
  22505. cat >>conftest.$ac_ext <<_ACEOF
  22506. /* end confdefs.h. */
  22507. /* Override any gcc2 internal prototype to avoid an error. */
  22508. #ifdef __cplusplus
  22509. extern "C"
  22510. #endif
  22511. /* We use char because int might match the return type of a gcc2
  22512. builtin and then its argument prototype would still apply. */
  22513. char db_create ();
  22514. int
  22515. main ()
  22516. {
  22517. db_create ();
  22518. ;
  22519. return 0;
  22520. }
  22521. _ACEOF
  22522. rm -f conftest.$ac_objext conftest$ac_exeext
  22523. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22524. (eval $ac_link) 2>conftest.er1
  22525. ac_status=$?
  22526. grep -v '^ *+' conftest.er1 >conftest.err
  22527. rm -f conftest.er1
  22528. cat conftest.err >&5
  22529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22530. (exit $ac_status); } &&
  22531. { ac_try='test -z "$ac_c_werror_flag"
  22532. || test ! -s conftest.err'
  22533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22534. (eval $ac_try) 2>&5
  22535. ac_status=$?
  22536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22537. (exit $ac_status); }; } &&
  22538. { ac_try='test -s conftest$ac_exeext'
  22539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22540. (eval $ac_try) 2>&5
  22541. ac_status=$?
  22542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22543. (exit $ac_status); }; }; then
  22544. eval "$as_ac_Lib=yes"
  22545. else
  22546. echo "$as_me: failed program was:" >&5
  22547. sed 's/^/| /' conftest.$ac_ext >&5
  22548. eval "$as_ac_Lib=no"
  22549. fi
  22550. rm -f conftest.err conftest.$ac_objext \
  22551. conftest$ac_exeext conftest.$ac_ext
  22552. LIBS=$ac_check_lib_save_LIBS
  22553. fi
  22554. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22555. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22556. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22557. true
  22558. else
  22559. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  22560. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  22561. { (exit 1); exit 1; }; }
  22562. fi
  22563. LDFLAGS="$save_ldflags"
  22564. # if DB is not found yet, try pkg-config
  22565. # last resort
  22566. # Although the other db_* variables are correctly assigned at this point,
  22567. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  22568. if test -n "$PKG_CONFIG"; then
  22569. if $PKG_CONFIG --exists db; then
  22570. db_bindir=`$PKG_CONFIG --variable=bindir db`
  22571. else
  22572. db_bindir=/usr/bin
  22573. fi
  22574. else
  22575. db_bindir=/usr/bin
  22576. fi
  22577. # BEGIN COPYRIGHT BLOCK
  22578. # Copyright (C) 2007 Red Hat, Inc.
  22579. # All rights reserved.
  22580. #
  22581. # This program is free software; you can redistribute it and/or
  22582. # modify it under the terms of the GNU General Public License
  22583. # as published by the Free Software Foundation; either version 2
  22584. # of the License, or (at your option) any later version.
  22585. #
  22586. # This program is distributed in the hope that it will be useful,
  22587. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22588. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22589. # GNU General Public License for more details.
  22590. #
  22591. # You should have received a copy of the GNU General Public License
  22592. # along with this program; if not, write to the Free Software
  22593. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22594. #
  22595. # END COPYRIGHT BLOCK
  22596. # -*- tab-width: 4; -*-
  22597. # Configure paths for SASL
  22598. { echo "$as_me:$LINENO: checking for sasl..." >&5
  22599. echo "$as_me: checking for sasl..." >&6;}
  22600. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  22601. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  22602. # Check whether --with-sasl or --without-sasl was given.
  22603. if test "${with_sasl+set}" = set; then
  22604. withval="$with_sasl"
  22605. if test "$withval" = "yes"; then
  22606. echo "$as_me:$LINENO: result: yes" >&5
  22607. echo "${ECHO_T}yes" >&6
  22608. if test -f /usr/include/sasl/sasl.h; then
  22609. sasl_inc="-I/usr/include/sasl"
  22610. elif test -f /usr/include/sasl.h; then
  22611. sasl_inc="-I/usr/include"
  22612. else
  22613. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22614. echo "$as_me: error: sasl.h not found" >&2;}
  22615. { (exit 1); exit 1; }; }
  22616. fi
  22617. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22618. echo "$as_me:$LINENO: result: using $withval" >&5
  22619. echo "${ECHO_T}using $withval" >&6
  22620. if test -f "$withval/include/sasl/sasl.h"; then
  22621. sasl_inc="-I$withval/include/sasl"
  22622. elif test -f "$withval/include/sasl.h"; then
  22623. sasl_inc="-I$withval/include"
  22624. else
  22625. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22626. echo "$as_me: error: sasl.h not found" >&2;}
  22627. { (exit 1); exit 1; }; }
  22628. fi
  22629. sasl_lib="-L$withval/lib"
  22630. sasl_libdir="$withval/lib"
  22631. else
  22632. echo "$as_me:$LINENO: result: yes" >&5
  22633. echo "${ECHO_T}yes" >&6
  22634. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  22635. echo "$as_me: error: sasl not found in $withval" >&2;}
  22636. { (exit 1); exit 1; }; }
  22637. fi
  22638. else
  22639. echo "$as_me:$LINENO: result: no" >&5
  22640. echo "${ECHO_T}no" >&6
  22641. fi;
  22642. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  22643. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  22644. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  22645. if test "${with_sasl_inc+set}" = set; then
  22646. withval="$with_sasl_inc"
  22647. if test -f "$withval"/sasl.h; then
  22648. echo "$as_me:$LINENO: result: using $withval" >&5
  22649. echo "${ECHO_T}using $withval" >&6
  22650. sasl_inc="-I$withval"
  22651. else
  22652. echo
  22653. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  22654. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  22655. { (exit 1); exit 1; }; }
  22656. fi
  22657. else
  22658. echo "$as_me:$LINENO: result: no" >&5
  22659. echo "${ECHO_T}no" >&6
  22660. fi;
  22661. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  22662. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  22663. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  22664. if test "${with_sasl_lib+set}" = set; then
  22665. withval="$with_sasl_lib"
  22666. if test -d "$withval"; then
  22667. echo "$as_me:$LINENO: result: using $withval" >&5
  22668. echo "${ECHO_T}using $withval" >&6
  22669. sasl_lib="-L$withval"
  22670. sasl_libdir="$withval"
  22671. else
  22672. echo
  22673. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22674. echo "$as_me: error: $withval not found" >&2;}
  22675. { (exit 1); exit 1; }; }
  22676. fi
  22677. else
  22678. echo "$as_me:$LINENO: result: no" >&5
  22679. echo "${ECHO_T}no" >&6
  22680. fi;
  22681. if test -z "$sasl_inc"; then
  22682. echo "$as_me:$LINENO: checking for sasl.h" >&5
  22683. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  22684. if test -f /usr/include/sasl/sasl.h; then
  22685. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  22686. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  22687. sasl_inc="-I/usr/include/sasl"
  22688. elif test -f /usr/include/sasl.h; then
  22689. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  22690. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  22691. sasl_inc="-I/usr/include"
  22692. else
  22693. echo "$as_me:$LINENO: result: no" >&5
  22694. echo "${ECHO_T}no" >&6
  22695. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  22696. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  22697. { (exit 1); exit 1; }; }
  22698. fi
  22699. fi
  22700. # BEGIN COPYRIGHT BLOCK
  22701. # Copyright (C) 2007 Red Hat, Inc.
  22702. # All rights reserved.
  22703. #
  22704. # This program is free software; you can redistribute it and/or
  22705. # modify it under the terms of the GNU General Public License
  22706. # as published by the Free Software Foundation; either version 2
  22707. # of the License, or (at your option) any later version.
  22708. #
  22709. # This program is distributed in the hope that it will be useful,
  22710. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22711. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22712. # GNU General Public License for more details.
  22713. #
  22714. # You should have received a copy of the GNU General Public License
  22715. # along with this program; if not, write to the Free Software
  22716. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22717. #
  22718. # END COPYRIGHT BLOCK
  22719. #
  22720. # Configure paths for SVRCORE
  22721. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  22722. echo "$as_me: checking for svrcore..." >&6;}
  22723. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  22724. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  22725. # Check whether --with-svrcore or --without-svrcore was given.
  22726. if test "${with_svrcore+set}" = set; then
  22727. withval="$with_svrcore"
  22728. if test "$withval" = "yes"; then
  22729. echo "$as_me:$LINENO: result: yes" >&5
  22730. echo "${ECHO_T}yes" >&6
  22731. if test -f /usr/include/svrcore.h; then
  22732. svrcore_inc="-I/usr/include"
  22733. else
  22734. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22735. echo "$as_me: error: svrcore.h not found" >&2;}
  22736. { (exit 1); exit 1; }; }
  22737. fi
  22738. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22739. echo "$as_me:$LINENO: result: using $withval" >&5
  22740. echo "${ECHO_T}using $withval" >&6
  22741. if test -f "$withval/include/svrcore.h"; then
  22742. svrcore_inc="-I$withval/include"
  22743. else
  22744. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22745. echo "$as_me: error: svrcore.h not found" >&2;}
  22746. { (exit 1); exit 1; }; }
  22747. fi
  22748. svrcore_lib="-L$withval/lib"
  22749. else
  22750. echo "$as_me:$LINENO: result: yes" >&5
  22751. echo "${ECHO_T}yes" >&6
  22752. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  22753. echo "$as_me: error: svrcore not found in $withval" >&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. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  22761. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  22762. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  22763. if test "${with_svrcore_inc+set}" = set; then
  22764. withval="$with_svrcore_inc"
  22765. if test -f "$withval"/svrcore.h; then
  22766. echo "$as_me:$LINENO: result: using $withval" >&5
  22767. echo "${ECHO_T}using $withval" >&6
  22768. svrcore_inc="-I$withval"
  22769. else
  22770. echo
  22771. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  22772. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  22773. { (exit 1); exit 1; }; }
  22774. fi
  22775. else
  22776. echo "$as_me:$LINENO: result: no" >&5
  22777. echo "${ECHO_T}no" >&6
  22778. fi;
  22779. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  22780. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  22781. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  22782. if test "${with_svrcore_lib+set}" = set; then
  22783. withval="$with_svrcore_lib"
  22784. if test -d "$withval"; then
  22785. echo "$as_me:$LINENO: result: using $withval" >&5
  22786. echo "${ECHO_T}using $withval" >&6
  22787. svrcore_lib="-L$withval"
  22788. else
  22789. echo
  22790. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22791. echo "$as_me: error: $withval not found" >&2;}
  22792. { (exit 1); exit 1; }; }
  22793. fi
  22794. else
  22795. echo "$as_me:$LINENO: result: no" >&5
  22796. echo "${ECHO_T}no" >&6
  22797. fi;
  22798. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22799. # Extract the first word of "pkg-config", so it can be a program name with args.
  22800. set dummy pkg-config; ac_word=$2
  22801. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22802. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22803. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22804. echo $ECHO_N "(cached) $ECHO_C" >&6
  22805. else
  22806. case $PKG_CONFIG in
  22807. [\\/]* | ?:[\\/]*)
  22808. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22809. ;;
  22810. *)
  22811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22812. for as_dir in $PATH
  22813. do
  22814. IFS=$as_save_IFS
  22815. test -z "$as_dir" && as_dir=.
  22816. for ac_exec_ext in '' $ac_executable_extensions; do
  22817. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22818. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22819. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22820. break 2
  22821. fi
  22822. done
  22823. done
  22824. ;;
  22825. esac
  22826. fi
  22827. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22828. if test -n "$PKG_CONFIG"; then
  22829. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22830. echo "${ECHO_T}$PKG_CONFIG" >&6
  22831. else
  22832. echo "$as_me:$LINENO: result: no" >&5
  22833. echo "${ECHO_T}no" >&6
  22834. fi
  22835. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  22836. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  22837. if test -n "$PKG_CONFIG"; then
  22838. if $PKG_CONFIG --exists svrcore; then
  22839. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  22840. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  22841. echo "$as_me:$LINENO: result: using system svrcore" >&5
  22842. echo "${ECHO_T}using system svrcore" >&6
  22843. fi
  22844. fi
  22845. fi
  22846. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22847. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  22848. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  22849. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  22850. echo $ECHO_N "(cached) $ECHO_C" >&6
  22851. else
  22852. ac_check_lib_save_LIBS=$LIBS
  22853. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  22854. cat >conftest.$ac_ext <<_ACEOF
  22855. /* confdefs.h. */
  22856. _ACEOF
  22857. cat confdefs.h >>conftest.$ac_ext
  22858. cat >>conftest.$ac_ext <<_ACEOF
  22859. /* end confdefs.h. */
  22860. /* Override any gcc2 internal prototype to avoid an error. */
  22861. #ifdef __cplusplus
  22862. extern "C"
  22863. #endif
  22864. /* We use char because int might match the return type of a gcc2
  22865. builtin and then its argument prototype would still apply. */
  22866. char SVRCORE_GetRegisteredPinObj ();
  22867. int
  22868. main ()
  22869. {
  22870. SVRCORE_GetRegisteredPinObj ();
  22871. ;
  22872. return 0;
  22873. }
  22874. _ACEOF
  22875. rm -f conftest.$ac_objext conftest$ac_exeext
  22876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22877. (eval $ac_link) 2>conftest.er1
  22878. ac_status=$?
  22879. grep -v '^ *+' conftest.er1 >conftest.err
  22880. rm -f conftest.er1
  22881. cat conftest.err >&5
  22882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22883. (exit $ac_status); } &&
  22884. { ac_try='test -z "$ac_c_werror_flag"
  22885. || test ! -s conftest.err'
  22886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22887. (eval $ac_try) 2>&5
  22888. ac_status=$?
  22889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22890. (exit $ac_status); }; } &&
  22891. { ac_try='test -s conftest$ac_exeext'
  22892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22893. (eval $ac_try) 2>&5
  22894. ac_status=$?
  22895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22896. (exit $ac_status); }; }; then
  22897. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  22898. else
  22899. echo "$as_me: failed program was:" >&5
  22900. sed 's/^/| /' conftest.$ac_ext >&5
  22901. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  22902. fi
  22903. rm -f conftest.err conftest.$ac_objext \
  22904. conftest$ac_exeext conftest.$ac_ext
  22905. LIBS=$ac_check_lib_save_LIBS
  22906. fi
  22907. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  22908. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  22909. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  22910. havesvrcore=1
  22911. fi
  22912. if test -n "$havesvrcore" ; then
  22913. save_cppflags="$CPPFLAGS"
  22914. CPPFLAGS="$nss_inc $nspr_inc"
  22915. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22916. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22917. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22918. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22919. echo $ECHO_N "(cached) $ECHO_C" >&6
  22920. fi
  22921. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22922. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22923. else
  22924. # Is the header compilable?
  22925. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  22926. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  22927. cat >conftest.$ac_ext <<_ACEOF
  22928. /* confdefs.h. */
  22929. _ACEOF
  22930. cat confdefs.h >>conftest.$ac_ext
  22931. cat >>conftest.$ac_ext <<_ACEOF
  22932. /* end confdefs.h. */
  22933. $ac_includes_default
  22934. #include <svrcore.h>
  22935. _ACEOF
  22936. rm -f conftest.$ac_objext
  22937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22938. (eval $ac_compile) 2>conftest.er1
  22939. ac_status=$?
  22940. grep -v '^ *+' conftest.er1 >conftest.err
  22941. rm -f conftest.er1
  22942. cat conftest.err >&5
  22943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22944. (exit $ac_status); } &&
  22945. { ac_try='test -z "$ac_c_werror_flag"
  22946. || test ! -s conftest.err'
  22947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22948. (eval $ac_try) 2>&5
  22949. ac_status=$?
  22950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22951. (exit $ac_status); }; } &&
  22952. { ac_try='test -s conftest.$ac_objext'
  22953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22954. (eval $ac_try) 2>&5
  22955. ac_status=$?
  22956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22957. (exit $ac_status); }; }; then
  22958. ac_header_compiler=yes
  22959. else
  22960. echo "$as_me: failed program was:" >&5
  22961. sed 's/^/| /' conftest.$ac_ext >&5
  22962. ac_header_compiler=no
  22963. fi
  22964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22965. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22966. echo "${ECHO_T}$ac_header_compiler" >&6
  22967. # Is the header present?
  22968. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  22969. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  22970. cat >conftest.$ac_ext <<_ACEOF
  22971. /* confdefs.h. */
  22972. _ACEOF
  22973. cat confdefs.h >>conftest.$ac_ext
  22974. cat >>conftest.$ac_ext <<_ACEOF
  22975. /* end confdefs.h. */
  22976. #include <svrcore.h>
  22977. _ACEOF
  22978. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22979. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22980. ac_status=$?
  22981. grep -v '^ *+' conftest.er1 >conftest.err
  22982. rm -f conftest.er1
  22983. cat conftest.err >&5
  22984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22985. (exit $ac_status); } >/dev/null; then
  22986. if test -s conftest.err; then
  22987. ac_cpp_err=$ac_c_preproc_warn_flag
  22988. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22989. else
  22990. ac_cpp_err=
  22991. fi
  22992. else
  22993. ac_cpp_err=yes
  22994. fi
  22995. if test -z "$ac_cpp_err"; then
  22996. ac_header_preproc=yes
  22997. else
  22998. echo "$as_me: failed program was:" >&5
  22999. sed 's/^/| /' conftest.$ac_ext >&5
  23000. ac_header_preproc=no
  23001. fi
  23002. rm -f conftest.err conftest.$ac_ext
  23003. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23004. echo "${ECHO_T}$ac_header_preproc" >&6
  23005. # So? What about this header?
  23006. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23007. yes:no: )
  23008. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  23009. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23010. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  23011. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  23012. ac_header_preproc=yes
  23013. ;;
  23014. no:yes:* )
  23015. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  23016. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  23017. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  23018. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  23019. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  23020. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  23021. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  23022. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  23023. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  23024. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  23025. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  23026. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  23027. (
  23028. cat <<\_ASBOX
  23029. ## ------------------------------------------ ##
  23030. ## Report this to http://bugzilla.redhat.com/ ##
  23031. ## ------------------------------------------ ##
  23032. _ASBOX
  23033. ) |
  23034. sed "s/^/$as_me: WARNING: /" >&2
  23035. ;;
  23036. esac
  23037. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  23038. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  23039. if test "${ac_cv_header_svrcore_h+set}" = set; then
  23040. echo $ECHO_N "(cached) $ECHO_C" >&6
  23041. else
  23042. ac_cv_header_svrcore_h=$ac_header_preproc
  23043. fi
  23044. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  23045. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  23046. fi
  23047. if test $ac_cv_header_svrcore_h = yes; then
  23048. havesvrcore=1
  23049. else
  23050. havesvrcore=
  23051. fi
  23052. CPPFLAGS="$save_cppflags"
  23053. fi
  23054. if test -z "$havesvrcore" ; then
  23055. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  23056. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  23057. { (exit 1); exit 1; }; }
  23058. fi
  23059. fi
  23060. # BEGIN COPYRIGHT BLOCK
  23061. # Copyright (C) 2006 Red Hat, Inc.
  23062. # All rights reserved.
  23063. #
  23064. # This program is free software; you can redistribute it and/or
  23065. # modify it under the terms of the GNU General Public License
  23066. # as published by the Free Software Foundation; either version 2
  23067. # of the License, or (at your option) any later version.
  23068. #
  23069. # This program is distributed in the hope that it will be useful,
  23070. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23071. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23072. # GNU General Public License for more details.
  23073. #
  23074. # You should have received a copy of the GNU General Public License
  23075. # along with this program; if not, write to the Free Software
  23076. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23077. #
  23078. # END COPYRIGHT BLOCK
  23079. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  23080. echo "$as_me: checking for LIBICU..." >&6;}
  23081. # check for --with-icu
  23082. echo "$as_me:$LINENO: checking for --with-icu" >&5
  23083. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  23084. # Check whether --with-icu or --without-icu was given.
  23085. if test "${with_icu+set}" = set; then
  23086. withval="$with_icu"
  23087. if test -d "$withval"/lib
  23088. then
  23089. echo "$as_me:$LINENO: result: using $withval" >&5
  23090. echo "${ECHO_T}using $withval" >&6
  23091. ICUDIR=$withval
  23092. icu_lib="-L$ICUDIR/lib"
  23093. else
  23094. echo
  23095. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23096. echo "$as_me: error: $withval not found" >&2;}
  23097. { (exit 1); exit 1; }; }
  23098. fi
  23099. icu_inc="-I$withval/include"
  23100. icu_bin="$withval/bin"
  23101. else
  23102. echo "$as_me:$LINENO: result: no" >&5
  23103. echo "${ECHO_T}no" >&6
  23104. fi;
  23105. # check for --with-icu-inc
  23106. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  23107. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  23108. # Check whether --with-icu-inc or --without-icu-inc was given.
  23109. if test "${with_icu_inc+set}" = set; then
  23110. withval="$with_icu_inc"
  23111. if test -d "$withval"
  23112. then
  23113. echo "$as_me:$LINENO: result: using $withval" >&5
  23114. echo "${ECHO_T}using $withval" >&6
  23115. icu_inc="-I$withval"
  23116. else
  23117. echo
  23118. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23119. echo "$as_me: error: $withval not found" >&2;}
  23120. { (exit 1); exit 1; }; }
  23121. fi
  23122. else
  23123. echo "$as_me:$LINENO: result: no" >&5
  23124. echo "${ECHO_T}no" >&6
  23125. fi;
  23126. # check for --with-icu-lib
  23127. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  23128. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  23129. # Check whether --with-icu-lib or --without-icu-lib was given.
  23130. if test "${with_icu_lib+set}" = set; then
  23131. withval="$with_icu_lib"
  23132. if test -d "$withval"
  23133. then
  23134. echo "$as_me:$LINENO: result: using $withval" >&5
  23135. echo "${ECHO_T}using $withval" >&6
  23136. icu_lib="-L$withval"
  23137. else
  23138. echo
  23139. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23140. echo "$as_me: error: $withval not found" >&2;}
  23141. { (exit 1); exit 1; }; }
  23142. fi
  23143. else
  23144. echo "$as_me:$LINENO: result: no" >&5
  23145. echo "${ECHO_T}no" >&6
  23146. fi;
  23147. # check for --with-icu-bin
  23148. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  23149. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  23150. # Check whether --with-icu-bin or --without-icu-bin was given.
  23151. if test "${with_icu_bin+set}" = set; then
  23152. withval="$with_icu_bin"
  23153. if test -d "$withval"
  23154. then
  23155. echo "$as_me:$LINENO: result: using $withval" >&5
  23156. echo "${ECHO_T}using $withval" >&6
  23157. icu_bin="$withval"
  23158. else
  23159. echo
  23160. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23161. echo "$as_me: error: $withval not found" >&2;}
  23162. { (exit 1); exit 1; }; }
  23163. fi
  23164. else
  23165. echo "$as_me:$LINENO: result: no" >&5
  23166. echo "${ECHO_T}no" >&6
  23167. fi;
  23168. # if ICU is not found yet, try pkg-config
  23169. # last resort
  23170. if test -z "$icu_lib"; then
  23171. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  23172. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  23173. # Extract the first word of "icu-config", so it can be a program name with args.
  23174. set dummy icu-config; ac_word=$2
  23175. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23176. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23177. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  23178. echo $ECHO_N "(cached) $ECHO_C" >&6
  23179. else
  23180. case $ICU_CONFIG in
  23181. [\\/]* | ?:[\\/]*)
  23182. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  23183. ;;
  23184. *)
  23185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23186. for as_dir in $PATH
  23187. do
  23188. IFS=$as_save_IFS
  23189. test -z "$as_dir" && as_dir=.
  23190. for ac_exec_ext in '' $ac_executable_extensions; do
  23191. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23192. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23193. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23194. break 2
  23195. fi
  23196. done
  23197. done
  23198. ;;
  23199. esac
  23200. fi
  23201. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  23202. if test -n "$ICU_CONFIG"; then
  23203. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  23204. echo "${ECHO_T}$ICU_CONFIG" >&6
  23205. else
  23206. echo "$as_me:$LINENO: result: no" >&5
  23207. echo "${ECHO_T}no" >&6
  23208. fi
  23209. if test -n "$ICU_CONFIG"; then
  23210. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  23211. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  23212. icu_bin=`$ICU_CONFIG --bindir`
  23213. echo "$as_me:$LINENO: result: using system ICU" >&5
  23214. echo "${ECHO_T}using system ICU" >&6
  23215. else
  23216. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  23217. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  23218. { (exit 1); exit 1; }; }
  23219. fi
  23220. fi
  23221. # BEGIN COPYRIGHT BLOCK
  23222. # Copyright (C) 2006 Red Hat, Inc.
  23223. # All rights reserved.
  23224. #
  23225. # This program is free software; you can redistribute it and/or
  23226. # modify it under the terms of the GNU General Public License
  23227. # as published by the Free Software Foundation; either version 2
  23228. # of the License, or (at your option) any later version.
  23229. #
  23230. # This program is distributed in the hope that it will be useful,
  23231. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23232. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23233. # GNU General Public License for more details.
  23234. #
  23235. # You should have received a copy of the GNU General Public License
  23236. # along with this program; if not, write to the Free Software
  23237. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23238. #
  23239. # END COPYRIGHT BLOCK
  23240. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  23241. echo "$as_me: checking for Net-SNMP..." >&6;}
  23242. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  23243. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  23244. # Check whether --with-netsnmp or --without-netsnmp was given.
  23245. if test "${with_netsnmp+set}" = set; then
  23246. withval="$with_netsnmp"
  23247. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  23248. echo "$as_me:$LINENO: result: using $withval" >&5
  23249. echo "${ECHO_T}using $withval" >&6
  23250. NETSNMPDIR=$withval
  23251. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  23252. netsnmp_inc="-I$withval/include"
  23253. else
  23254. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  23255. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  23256. { (exit 1); exit 1; }; }
  23257. fi
  23258. netsnmp_lib="-L$withval/lib"
  23259. netsnmp_libdir="$withval/lib"
  23260. else
  23261. echo "$as_me:$LINENO: result: yes" >&5
  23262. echo "${ECHO_T}yes" >&6
  23263. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23264. echo "$as_me: error: $withval not found" >&2;}
  23265. { (exit 1); exit 1; }; }
  23266. fi
  23267. else
  23268. echo "$as_me:$LINENO: result: no" >&5
  23269. echo "${ECHO_T}no" >&6
  23270. fi;
  23271. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  23272. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  23273. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  23274. if test "${with_netsnmp_inc+set}" = set; then
  23275. withval="$with_netsnmp_inc"
  23276. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  23277. echo "$as_me:$LINENO: result: using $withval" >&5
  23278. echo "${ECHO_T}using $withval" >&6
  23279. netsnmp_inc="-I$withval"
  23280. else
  23281. echo
  23282. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  23283. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  23284. { (exit 1); exit 1; }; }
  23285. fi
  23286. else
  23287. echo "$as_me:$LINENO: result: no" >&5
  23288. echo "${ECHO_T}no" >&6
  23289. fi;
  23290. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  23291. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  23292. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  23293. if test "${with_netsnmp_lib+set}" = set; then
  23294. withval="$with_netsnmp_lib"
  23295. if test -d "$withval"
  23296. then
  23297. echo "$as_me:$LINENO: result: using $withval" >&5
  23298. echo "${ECHO_T}using $withval" >&6
  23299. netsnmp_lib="-L$withval"
  23300. netsnmp_libdir="$withval"
  23301. else
  23302. echo
  23303. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23304. echo "$as_me: error: $withval not found" >&2;}
  23305. { (exit 1); exit 1; }; }
  23306. fi
  23307. else
  23308. echo "$as_me:$LINENO: result: no" >&5
  23309. echo "${ECHO_T}no" >&6
  23310. fi;
  23311. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  23312. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  23313. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  23314. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  23315. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  23316. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  23317. netsnmp_inc="-I/usr/include"
  23318. else
  23319. echo "$as_me:$LINENO: result: no" >&5
  23320. echo "${ECHO_T}no" >&6
  23321. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  23322. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  23323. { (exit 1); exit 1; }; }
  23324. fi
  23325. fi
  23326. if test -n "$netsnmp_inc"; then
  23327. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  23328. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  23329. else
  23330. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  23331. set dummy net-snmp-config; ac_word=$2
  23332. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23333. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23334. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  23335. echo $ECHO_N "(cached) $ECHO_C" >&6
  23336. else
  23337. case $NETSNMP_CONFIG in
  23338. [\\/]* | ?:[\\/]*)
  23339. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  23340. ;;
  23341. *)
  23342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23343. for as_dir in $PATH
  23344. do
  23345. IFS=$as_save_IFS
  23346. test -z "$as_dir" && as_dir=.
  23347. for ac_exec_ext in '' $ac_executable_extensions; do
  23348. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23349. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23350. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23351. break 2
  23352. fi
  23353. done
  23354. done
  23355. ;;
  23356. esac
  23357. fi
  23358. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  23359. if test -n "$NETSNMP_CONFIG"; then
  23360. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  23361. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  23362. else
  23363. echo "$as_me:$LINENO: result: no" >&5
  23364. echo "${ECHO_T}no" >&6
  23365. fi
  23366. fi
  23367. if test -n "$NETSNMP_CONFIG"; then
  23368. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  23369. else
  23370. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  23371. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  23372. { (exit 1); exit 1; }; }
  23373. fi
  23374. else
  23375. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  23376. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  23377. { (exit 1); exit 1; }; }
  23378. fi
  23379. # BEGIN COPYRIGHT BLOCK
  23380. # Copyright (C) 2008 Red Hat, Inc.
  23381. # All rights reserved.
  23382. #
  23383. # This program is free software; you can redistribute it and/or
  23384. # modify it under the terms of the GNU General Public License
  23385. # as published by the Free Software Foundation; either version 2
  23386. # of the License, or (at your option) any later version.
  23387. #
  23388. # This program is distributed in the hope that it will be useful,
  23389. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23390. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23391. # GNU General Public License for more details.
  23392. #
  23393. # You should have received a copy of the GNU General Public License
  23394. # along with this program; if not, write to the Free Software
  23395. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23396. #
  23397. # END COPYRIGHT BLOCK
  23398. # -*- tab-width: 4; -*-
  23399. # Configure paths for Kerberos
  23400. { echo "$as_me:$LINENO: checking for kerberos..." >&5
  23401. echo "$as_me: checking for kerberos..." >&6;}
  23402. if test -z "$with_kerberos" ; then
  23403. with_kerberos=yes # if not set on cmdline, set default
  23404. fi
  23405. echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  23406. echo $ECHO_N "checking for --with-kerberos... $ECHO_C" >&6
  23407. # Check whether --with-kerberos or --without-kerberos was given.
  23408. if test "${with_kerberos+set}" = set; then
  23409. withval="$with_kerberos"
  23410. if test "x$withval" = "xyes"; then
  23411. echo "$as_me:$LINENO: result: yes" >&5
  23412. echo "${ECHO_T}yes" >&6
  23413. elif test "x$withval" = "xno"; then
  23414. echo "$as_me:$LINENO: result: no" >&5
  23415. echo "${ECHO_T}no" >&6
  23416. with_kerberos=
  23417. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  23418. echo "$as_me:$LINENO: result: using $withval" >&5
  23419. echo "${ECHO_T}using $withval" >&6
  23420. kerberos_incdir="$withval/include"
  23421. kerberos_libdir="$withval/lib"
  23422. else
  23423. echo "$as_me:$LINENO: result: yes" >&5
  23424. echo "${ECHO_T}yes" >&6
  23425. { { echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  23426. echo "$as_me: error: kerberos not found in $withval" >&2;}
  23427. { (exit 1); exit 1; }; }
  23428. fi
  23429. else
  23430. echo "$as_me:$LINENO: result: no" >&5
  23431. echo "${ECHO_T}no" >&6
  23432. with_kerberos=
  23433. fi;
  23434. echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  23435. echo $ECHO_N "checking for --with-kerberos-inc... $ECHO_C" >&6
  23436. # Check whether --with-kerberos-inc or --without-kerberos-inc was given.
  23437. if test "${with_kerberos_inc+set}" = set; then
  23438. withval="$with_kerberos_inc"
  23439. if test -f "$withval"/krb5.h; then
  23440. echo "$as_me:$LINENO: result: using $withval" >&5
  23441. echo "${ECHO_T}using $withval" >&6
  23442. kerberos_incdir="$withval"
  23443. with_kerberos=yes # implies use of kerberos
  23444. else
  23445. echo
  23446. { { echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  23447. echo "$as_me: error: $withval/krb5.h not found" >&2;}
  23448. { (exit 1); exit 1; }; }
  23449. fi
  23450. else
  23451. echo "$as_me:$LINENO: result: no" >&5
  23452. echo "${ECHO_T}no" >&6
  23453. fi;
  23454. echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  23455. echo $ECHO_N "checking for --with-kerberos-lib... $ECHO_C" >&6
  23456. # Check whether --with-kerberos-lib or --without-kerberos-lib was given.
  23457. if test "${with_kerberos_lib+set}" = set; then
  23458. withval="$with_kerberos_lib"
  23459. if test -d "$withval"; then
  23460. echo "$as_me:$LINENO: result: using $withval" >&5
  23461. echo "${ECHO_T}using $withval" >&6
  23462. kerberos_libdir="$withval"
  23463. with_kerberos=yes # implies use of kerberos
  23464. else
  23465. echo
  23466. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23467. echo "$as_me: error: $withval not found" >&2;}
  23468. { (exit 1); exit 1; }; }
  23469. fi
  23470. else
  23471. echo "$as_me:$LINENO: result: no" >&5
  23472. echo "${ECHO_T}no" >&6
  23473. fi;
  23474. if test -n "$with_kerberos" ; then
  23475. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  23476. if test -z "$KRB5_CONFIG_BIN" ; then
  23477. # Extract the first word of "krb5-config", so it can be a program name with args.
  23478. set dummy krb5-config; ac_word=$2
  23479. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23480. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23481. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  23482. echo $ECHO_N "(cached) $ECHO_C" >&6
  23483. else
  23484. case $KRB5_CONFIG_BIN in
  23485. [\\/]* | ?:[\\/]*)
  23486. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  23487. ;;
  23488. *)
  23489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23490. for as_dir in $PATH
  23491. do
  23492. IFS=$as_save_IFS
  23493. test -z "$as_dir" && as_dir=.
  23494. for ac_exec_ext in '' $ac_executable_extensions; do
  23495. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23496. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  23497. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23498. break 2
  23499. fi
  23500. done
  23501. done
  23502. ;;
  23503. esac
  23504. fi
  23505. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  23506. if test -n "$KRB5_CONFIG_BIN"; then
  23507. echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  23508. echo "${ECHO_T}$KRB5_CONFIG_BIN" >&6
  23509. else
  23510. echo "$as_me:$LINENO: result: no" >&5
  23511. echo "${ECHO_T}no" >&6
  23512. fi
  23513. fi
  23514. if test -n "$KRB5_CONFIG_BIN" ; then
  23515. echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  23516. echo $ECHO_N "checking for kerberos with $KRB5_CONFIG_BIN... $ECHO_C" >&6
  23517. if test -z "$kerberos_libdir" ; then
  23518. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  23519. fi
  23520. if test -z "$kerberos_incdir" ; then
  23521. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  23522. fi
  23523. if test -n "$kerberos_lib" ; then
  23524. echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  23525. echo "${ECHO_T}using kerberos found with $KRB5_CONFIG_BIN" >&6
  23526. have_krb5=yes
  23527. fi
  23528. fi
  23529. fi
  23530. fi
  23531. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  23532. # save these in order to set them to use the check macros below
  23533. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  23534. save_CPPFLAGS="$CPPFLAGS"
  23535. if test -n "$kerberos_incdir" ; then
  23536. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  23537. fi
  23538. save_LDFLAGS="$LDFLAGS"
  23539. if test -n "$kerberos_libdir" ; then
  23540. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  23541. fi
  23542. krb5_impl=mit
  23543. for ac_header in heim_err.h
  23544. do
  23545. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23546. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23547. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23548. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23549. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23550. echo $ECHO_N "(cached) $ECHO_C" >&6
  23551. fi
  23552. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23553. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23554. else
  23555. # Is the header compilable?
  23556. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23557. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23558. cat >conftest.$ac_ext <<_ACEOF
  23559. /* confdefs.h. */
  23560. _ACEOF
  23561. cat confdefs.h >>conftest.$ac_ext
  23562. cat >>conftest.$ac_ext <<_ACEOF
  23563. /* end confdefs.h. */
  23564. $ac_includes_default
  23565. #include <$ac_header>
  23566. _ACEOF
  23567. rm -f conftest.$ac_objext
  23568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23569. (eval $ac_compile) 2>conftest.er1
  23570. ac_status=$?
  23571. grep -v '^ *+' conftest.er1 >conftest.err
  23572. rm -f conftest.er1
  23573. cat conftest.err >&5
  23574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23575. (exit $ac_status); } &&
  23576. { ac_try='test -z "$ac_c_werror_flag"
  23577. || test ! -s conftest.err'
  23578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23579. (eval $ac_try) 2>&5
  23580. ac_status=$?
  23581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23582. (exit $ac_status); }; } &&
  23583. { ac_try='test -s conftest.$ac_objext'
  23584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23585. (eval $ac_try) 2>&5
  23586. ac_status=$?
  23587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23588. (exit $ac_status); }; }; then
  23589. ac_header_compiler=yes
  23590. else
  23591. echo "$as_me: failed program was:" >&5
  23592. sed 's/^/| /' conftest.$ac_ext >&5
  23593. ac_header_compiler=no
  23594. fi
  23595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23596. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23597. echo "${ECHO_T}$ac_header_compiler" >&6
  23598. # Is the header present?
  23599. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23600. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23601. cat >conftest.$ac_ext <<_ACEOF
  23602. /* confdefs.h. */
  23603. _ACEOF
  23604. cat confdefs.h >>conftest.$ac_ext
  23605. cat >>conftest.$ac_ext <<_ACEOF
  23606. /* end confdefs.h. */
  23607. #include <$ac_header>
  23608. _ACEOF
  23609. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23610. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23611. ac_status=$?
  23612. grep -v '^ *+' conftest.er1 >conftest.err
  23613. rm -f conftest.er1
  23614. cat conftest.err >&5
  23615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23616. (exit $ac_status); } >/dev/null; then
  23617. if test -s conftest.err; then
  23618. ac_cpp_err=$ac_c_preproc_warn_flag
  23619. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23620. else
  23621. ac_cpp_err=
  23622. fi
  23623. else
  23624. ac_cpp_err=yes
  23625. fi
  23626. if test -z "$ac_cpp_err"; then
  23627. ac_header_preproc=yes
  23628. else
  23629. echo "$as_me: failed program was:" >&5
  23630. sed 's/^/| /' conftest.$ac_ext >&5
  23631. ac_header_preproc=no
  23632. fi
  23633. rm -f conftest.err conftest.$ac_ext
  23634. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23635. echo "${ECHO_T}$ac_header_preproc" >&6
  23636. # So? What about this header?
  23637. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23638. yes:no: )
  23639. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23640. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23641. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23642. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23643. ac_header_preproc=yes
  23644. ;;
  23645. no:yes:* )
  23646. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23647. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23648. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23649. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23650. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23651. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23652. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23653. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23654. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23655. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23656. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23657. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23658. (
  23659. cat <<\_ASBOX
  23660. ## ------------------------------------------ ##
  23661. ## Report this to http://bugzilla.redhat.com/ ##
  23662. ## ------------------------------------------ ##
  23663. _ASBOX
  23664. ) |
  23665. sed "s/^/$as_me: WARNING: /" >&2
  23666. ;;
  23667. esac
  23668. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23669. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23670. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23671. echo $ECHO_N "(cached) $ECHO_C" >&6
  23672. else
  23673. eval "$as_ac_Header=\$ac_header_preproc"
  23674. fi
  23675. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23676. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23677. fi
  23678. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23679. cat >>confdefs.h <<_ACEOF
  23680. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23681. _ACEOF
  23682. fi
  23683. done
  23684. if test $ac_cv_header_heim_err_h = yes ; then
  23685. krb5_impl=heimdal
  23686. fi
  23687. if test "x$krb5_impl" = "xmit"; then
  23688. echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  23689. echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
  23690. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  23691. echo $ECHO_N "(cached) $ECHO_C" >&6
  23692. else
  23693. ac_check_lib_save_LIBS=$LIBS
  23694. LIBS="-lk5crypto $LIBS"
  23695. cat >conftest.$ac_ext <<_ACEOF
  23696. /* confdefs.h. */
  23697. _ACEOF
  23698. cat confdefs.h >>conftest.$ac_ext
  23699. cat >>conftest.$ac_ext <<_ACEOF
  23700. /* end confdefs.h. */
  23701. int
  23702. main ()
  23703. {
  23704. main ();
  23705. ;
  23706. return 0;
  23707. }
  23708. _ACEOF
  23709. rm -f conftest.$ac_objext conftest$ac_exeext
  23710. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23711. (eval $ac_link) 2>conftest.er1
  23712. ac_status=$?
  23713. grep -v '^ *+' conftest.er1 >conftest.err
  23714. rm -f conftest.er1
  23715. cat conftest.err >&5
  23716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23717. (exit $ac_status); } &&
  23718. { ac_try='test -z "$ac_c_werror_flag"
  23719. || test ! -s conftest.err'
  23720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23721. (eval $ac_try) 2>&5
  23722. ac_status=$?
  23723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23724. (exit $ac_status); }; } &&
  23725. { ac_try='test -s conftest$ac_exeext'
  23726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23727. (eval $ac_try) 2>&5
  23728. ac_status=$?
  23729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23730. (exit $ac_status); }; }; then
  23731. ac_cv_lib_k5crypto_main=yes
  23732. else
  23733. echo "$as_me: failed program was:" >&5
  23734. sed 's/^/| /' conftest.$ac_ext >&5
  23735. ac_cv_lib_k5crypto_main=no
  23736. fi
  23737. rm -f conftest.err conftest.$ac_objext \
  23738. conftest$ac_exeext conftest.$ac_ext
  23739. LIBS=$ac_check_lib_save_LIBS
  23740. fi
  23741. echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  23742. echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
  23743. if test $ac_cv_lib_k5crypto_main = yes; then
  23744. krb5crypto=k5crypto
  23745. else
  23746. krb5crypto=crypto
  23747. fi
  23748. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23749. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23750. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23751. echo $ECHO_N "(cached) $ECHO_C" >&6
  23752. else
  23753. ac_check_lib_save_LIBS=$LIBS
  23754. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  23755. cat >conftest.$ac_ext <<_ACEOF
  23756. /* confdefs.h. */
  23757. _ACEOF
  23758. cat confdefs.h >>conftest.$ac_ext
  23759. cat >>conftest.$ac_ext <<_ACEOF
  23760. /* end confdefs.h. */
  23761. int
  23762. main ()
  23763. {
  23764. main ();
  23765. ;
  23766. return 0;
  23767. }
  23768. _ACEOF
  23769. rm -f conftest.$ac_objext conftest$ac_exeext
  23770. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23771. (eval $ac_link) 2>conftest.er1
  23772. ac_status=$?
  23773. grep -v '^ *+' conftest.er1 >conftest.err
  23774. rm -f conftest.er1
  23775. cat conftest.err >&5
  23776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23777. (exit $ac_status); } &&
  23778. { ac_try='test -z "$ac_c_werror_flag"
  23779. || test ! -s conftest.err'
  23780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23781. (eval $ac_try) 2>&5
  23782. ac_status=$?
  23783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23784. (exit $ac_status); }; } &&
  23785. { ac_try='test -s conftest$ac_exeext'
  23786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23787. (eval $ac_try) 2>&5
  23788. ac_status=$?
  23789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23790. (exit $ac_status); }; }; then
  23791. ac_cv_lib_krb5_main=yes
  23792. else
  23793. echo "$as_me: failed program was:" >&5
  23794. sed 's/^/| /' conftest.$ac_ext >&5
  23795. ac_cv_lib_krb5_main=no
  23796. fi
  23797. rm -f conftest.err conftest.$ac_objext \
  23798. conftest$ac_exeext conftest.$ac_ext
  23799. LIBS=$ac_check_lib_save_LIBS
  23800. fi
  23801. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23802. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23803. if test $ac_cv_lib_krb5_main = yes; then
  23804. have_krb5=yes
  23805. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  23806. else
  23807. have_krb5=no
  23808. fi
  23809. elif test "x$krb5_impl" = "xheimdal"; then
  23810. echo "$as_me:$LINENO: checking for main in -ldes" >&5
  23811. echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
  23812. if test "${ac_cv_lib_des_main+set}" = set; then
  23813. echo $ECHO_N "(cached) $ECHO_C" >&6
  23814. else
  23815. ac_check_lib_save_LIBS=$LIBS
  23816. LIBS="-ldes $LIBS"
  23817. cat >conftest.$ac_ext <<_ACEOF
  23818. /* confdefs.h. */
  23819. _ACEOF
  23820. cat confdefs.h >>conftest.$ac_ext
  23821. cat >>conftest.$ac_ext <<_ACEOF
  23822. /* end confdefs.h. */
  23823. int
  23824. main ()
  23825. {
  23826. main ();
  23827. ;
  23828. return 0;
  23829. }
  23830. _ACEOF
  23831. rm -f conftest.$ac_objext conftest$ac_exeext
  23832. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23833. (eval $ac_link) 2>conftest.er1
  23834. ac_status=$?
  23835. grep -v '^ *+' conftest.er1 >conftest.err
  23836. rm -f conftest.er1
  23837. cat conftest.err >&5
  23838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23839. (exit $ac_status); } &&
  23840. { ac_try='test -z "$ac_c_werror_flag"
  23841. || test ! -s conftest.err'
  23842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23843. (eval $ac_try) 2>&5
  23844. ac_status=$?
  23845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23846. (exit $ac_status); }; } &&
  23847. { ac_try='test -s conftest$ac_exeext'
  23848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23849. (eval $ac_try) 2>&5
  23850. ac_status=$?
  23851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23852. (exit $ac_status); }; }; then
  23853. ac_cv_lib_des_main=yes
  23854. else
  23855. echo "$as_me: failed program was:" >&5
  23856. sed 's/^/| /' conftest.$ac_ext >&5
  23857. ac_cv_lib_des_main=no
  23858. fi
  23859. rm -f conftest.err conftest.$ac_objext \
  23860. conftest$ac_exeext conftest.$ac_ext
  23861. LIBS=$ac_check_lib_save_LIBS
  23862. fi
  23863. echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  23864. echo "${ECHO_T}$ac_cv_lib_des_main" >&6
  23865. if test $ac_cv_lib_des_main = yes; then
  23866. krb5crypto=des
  23867. else
  23868. krb5crypto=crypto
  23869. fi
  23870. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23871. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23872. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23873. echo $ECHO_N "(cached) $ECHO_C" >&6
  23874. else
  23875. ac_check_lib_save_LIBS=$LIBS
  23876. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  23877. cat >conftest.$ac_ext <<_ACEOF
  23878. /* confdefs.h. */
  23879. _ACEOF
  23880. cat confdefs.h >>conftest.$ac_ext
  23881. cat >>conftest.$ac_ext <<_ACEOF
  23882. /* end confdefs.h. */
  23883. int
  23884. main ()
  23885. {
  23886. main ();
  23887. ;
  23888. return 0;
  23889. }
  23890. _ACEOF
  23891. rm -f conftest.$ac_objext conftest$ac_exeext
  23892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23893. (eval $ac_link) 2>conftest.er1
  23894. ac_status=$?
  23895. grep -v '^ *+' conftest.er1 >conftest.err
  23896. rm -f conftest.er1
  23897. cat conftest.err >&5
  23898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23899. (exit $ac_status); } &&
  23900. { ac_try='test -z "$ac_c_werror_flag"
  23901. || test ! -s conftest.err'
  23902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23903. (eval $ac_try) 2>&5
  23904. ac_status=$?
  23905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23906. (exit $ac_status); }; } &&
  23907. { ac_try='test -s conftest$ac_exeext'
  23908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23909. (eval $ac_try) 2>&5
  23910. ac_status=$?
  23911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23912. (exit $ac_status); }; }; then
  23913. ac_cv_lib_krb5_main=yes
  23914. else
  23915. echo "$as_me: failed program was:" >&5
  23916. sed 's/^/| /' conftest.$ac_ext >&5
  23917. ac_cv_lib_krb5_main=no
  23918. fi
  23919. rm -f conftest.err conftest.$ac_objext \
  23920. conftest$ac_exeext conftest.$ac_ext
  23921. LIBS=$ac_check_lib_save_LIBS
  23922. fi
  23923. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23924. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23925. if test $ac_cv_lib_krb5_main = yes; then
  23926. have_krb5=yes
  23927. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  23928. else
  23929. have_krb5=no
  23930. fi
  23931. cat >>confdefs.h <<\_ACEOF
  23932. #define HAVE_HEIMDAL_KERBEROS 1
  23933. _ACEOF
  23934. else
  23935. have_krb5=no
  23936. { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  23937. echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  23938. fi
  23939. # reset to original values
  23940. CPPFLAGS="$save_CPPFLAGS"
  23941. LDFLAGS="$save_LDFLAGS"
  23942. if test -n "$kerberos_incdir" ; then
  23943. kerberos_inc="-I$kerberos_incdir"
  23944. fi
  23945. if test -n "$kerberos_libdir" ; then
  23946. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  23947. fi
  23948. fi
  23949. if test -n "$with_kerberos" ; then
  23950. if test "x$have_krb5" = "xyes" ; then
  23951. cat >>confdefs.h <<\_ACEOF
  23952. #define HAVE_KRB5 1
  23953. _ACEOF
  23954. else
  23955. { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  23956. echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  23957. { (exit 1); exit 1; }; }
  23958. fi
  23959. save_LIBS="$LIBS"
  23960. LIBS="$kerberos_lib"
  23961. save_CPPFLAGS="$CPPFLAGS"
  23962. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  23963. for ac_func in krb5_cc_new_unique
  23964. do
  23965. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23966. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23967. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23968. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23969. echo $ECHO_N "(cached) $ECHO_C" >&6
  23970. else
  23971. cat >conftest.$ac_ext <<_ACEOF
  23972. /* confdefs.h. */
  23973. _ACEOF
  23974. cat confdefs.h >>conftest.$ac_ext
  23975. cat >>conftest.$ac_ext <<_ACEOF
  23976. /* end confdefs.h. */
  23977. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23978. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23979. #define $ac_func innocuous_$ac_func
  23980. /* System header to define __stub macros and hopefully few prototypes,
  23981. which can conflict with char $ac_func (); below.
  23982. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23983. <limits.h> exists even on freestanding compilers. */
  23984. #ifdef __STDC__
  23985. # include <limits.h>
  23986. #else
  23987. # include <assert.h>
  23988. #endif
  23989. #undef $ac_func
  23990. /* Override any gcc2 internal prototype to avoid an error. */
  23991. #ifdef __cplusplus
  23992. extern "C"
  23993. {
  23994. #endif
  23995. /* We use char because int might match the return type of a gcc2
  23996. builtin and then its argument prototype would still apply. */
  23997. char $ac_func ();
  23998. /* The GNU C library defines this for functions which it implements
  23999. to always fail with ENOSYS. Some functions are actually named
  24000. something starting with __ and the normal name is an alias. */
  24001. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  24002. choke me
  24003. #else
  24004. char (*f) () = $ac_func;
  24005. #endif
  24006. #ifdef __cplusplus
  24007. }
  24008. #endif
  24009. int
  24010. main ()
  24011. {
  24012. return f != $ac_func;
  24013. ;
  24014. return 0;
  24015. }
  24016. _ACEOF
  24017. rm -f conftest.$ac_objext conftest$ac_exeext
  24018. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24019. (eval $ac_link) 2>conftest.er1
  24020. ac_status=$?
  24021. grep -v '^ *+' conftest.er1 >conftest.err
  24022. rm -f conftest.er1
  24023. cat conftest.err >&5
  24024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24025. (exit $ac_status); } &&
  24026. { ac_try='test -z "$ac_c_werror_flag"
  24027. || test ! -s conftest.err'
  24028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24029. (eval $ac_try) 2>&5
  24030. ac_status=$?
  24031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24032. (exit $ac_status); }; } &&
  24033. { ac_try='test -s conftest$ac_exeext'
  24034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24035. (eval $ac_try) 2>&5
  24036. ac_status=$?
  24037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24038. (exit $ac_status); }; }; then
  24039. eval "$as_ac_var=yes"
  24040. else
  24041. echo "$as_me: failed program was:" >&5
  24042. sed 's/^/| /' conftest.$ac_ext >&5
  24043. eval "$as_ac_var=no"
  24044. fi
  24045. rm -f conftest.err conftest.$ac_objext \
  24046. conftest$ac_exeext conftest.$ac_ext
  24047. fi
  24048. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  24049. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  24050. if test `eval echo '${'$as_ac_var'}'` = yes; then
  24051. cat >>confdefs.h <<_ACEOF
  24052. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24053. _ACEOF
  24054. fi
  24055. done
  24056. LIBS="$save_LIBS"
  24057. CPPFLAGS="$save_CPPFLAGS"
  24058. fi
  24059. # BEGIN COPYRIGHT BLOCK
  24060. # Copyright (C) 2007 Red Hat, Inc.
  24061. # All rights reserved.
  24062. #
  24063. # This program is free software; you can redistribute it and/or
  24064. # modify it under the terms of the GNU General Public License
  24065. # as published by the Free Software Foundation; either version 2
  24066. # of the License, or (at your option) any later version.
  24067. #
  24068. # This program is distributed in the hope that it will be useful,
  24069. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24070. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24071. # GNU General Public License for more details.
  24072. #
  24073. # You should have received a copy of the GNU General Public License
  24074. # along with this program; if not, write to the Free Software
  24075. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24076. #
  24077. # END COPYRIGHT BLOCK
  24078. { echo "$as_me:$LINENO: checking for pcre..." >&5
  24079. echo "$as_me: checking for pcre..." >&6;}
  24080. echo "$as_me:$LINENO: checking for --with-pcre" >&5
  24081. echo $ECHO_N "checking for --with-pcre... $ECHO_C" >&6
  24082. # Check whether --with-pcre or --without-pcre was given.
  24083. if test "${with_pcre+set}" = set; then
  24084. withval="$with_pcre"
  24085. if test "$withval" = "yes"; then
  24086. echo "$as_me:$LINENO: result: yes" >&5
  24087. echo "${ECHO_T}yes" >&6
  24088. if test -f "/usr/include/pcre/pcre.h"; then
  24089. pcre_incdir="/usr/include/pcre"
  24090. pcre_inc="-I/usr/include/pcre"
  24091. pcre_lib='-L$(libdir)'
  24092. pcre_libdir='$(libdir)'
  24093. elif test -f "/usr/include/pcre.h"; then
  24094. pcre_incdir="/usr/include"
  24095. pcre_inc="-I/usr/include"
  24096. pcre_lib='-L$(libdir)'
  24097. pcre_libdir='$(libdir)'
  24098. else
  24099. { { echo "$as_me:$LINENO: error: pcre.h not found" >&5
  24100. echo "$as_me: error: pcre.h not found" >&2;}
  24101. { (exit 1); exit 1; }; }
  24102. fi
  24103. elif test -d "$withval"/include -a -d "$withval"/lib; then
  24104. echo "$as_me:$LINENO: result: using $withval" >&5
  24105. echo "${ECHO_T}using $withval" >&6
  24106. PCREDIR=$withval
  24107. pcre_lib="-L$PCREDIR/lib"
  24108. pcre_libdir="$PCREDIR/lib"
  24109. pcre_incdir="$PCREDIR/include"
  24110. if ! test -e "$pcre_incdir/pcre.h" ; then
  24111. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  24112. echo "$as_me: error: $withval include dir not found" >&2;}
  24113. { (exit 1); exit 1; }; }
  24114. fi
  24115. pcre_inc="-I$pcre_incdir"
  24116. else
  24117. echo
  24118. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  24119. echo "$as_me: error: $withval not found" >&2;}
  24120. { (exit 1); exit 1; }; }
  24121. fi
  24122. else
  24123. echo "$as_me:$LINENO: result: no" >&5
  24124. echo "${ECHO_T}no" >&6
  24125. fi;
  24126. #
  24127. # if PCRE is not found yet, try pkg-config
  24128. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  24129. # Extract the first word of "pkg-config", so it can be a program name with args.
  24130. set dummy pkg-config; ac_word=$2
  24131. echo "$as_me:$LINENO: checking for $ac_word" >&5
  24132. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24133. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  24134. echo $ECHO_N "(cached) $ECHO_C" >&6
  24135. else
  24136. case $PKG_CONFIG in
  24137. [\\/]* | ?:[\\/]*)
  24138. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  24139. ;;
  24140. *)
  24141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24142. for as_dir in $PATH
  24143. do
  24144. IFS=$as_save_IFS
  24145. test -z "$as_dir" && as_dir=.
  24146. for ac_exec_ext in '' $ac_executable_extensions; do
  24147. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24148. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24149. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24150. break 2
  24151. fi
  24152. done
  24153. done
  24154. ;;
  24155. esac
  24156. fi
  24157. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  24158. if test -n "$PKG_CONFIG"; then
  24159. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  24160. echo "${ECHO_T}$PKG_CONFIG" >&6
  24161. else
  24162. echo "$as_me:$LINENO: result: no" >&5
  24163. echo "${ECHO_T}no" >&6
  24164. fi
  24165. echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  24166. echo $ECHO_N "checking for pcre with pkg-config... $ECHO_C" >&6
  24167. if test -n "$PKG_CONFIG"; then
  24168. if $PKG_CONFIG --exists pcre; then
  24169. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  24170. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  24171. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  24172. echo "$as_me:$LINENO: result: using system PCRE" >&5
  24173. echo "${ECHO_T}using system PCRE" >&6
  24174. elif $PKG_CONFIG --exists libpcre; then
  24175. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  24176. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  24177. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  24178. echo "$as_me:$LINENO: result: using system PCRE" >&5
  24179. echo "${ECHO_T}using system PCRE" >&6
  24180. else
  24181. { { echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  24182. echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  24183. { (exit 1); exit 1; }; }
  24184. fi
  24185. fi
  24186. fi
  24187. if test -z "$pcre_inc"; then
  24188. echo "$as_me:$LINENO: checking for pcre.h" >&5
  24189. echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
  24190. if test -f "/usr/include/pcre.h"; then
  24191. echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  24192. echo "${ECHO_T}using /usr/include/pcre.h" >&6
  24193. pcre_incdir="/usr/include"
  24194. pcre_inc="-I/usr/include"
  24195. pcre_lib='-L$(libdir)'
  24196. pcre_libdir='$(libdir)'
  24197. else
  24198. echo "$as_me:$LINENO: result: no" >&5
  24199. echo "${ECHO_T}no" >&6
  24200. { { echo "$as_me:$LINENO: error: pcre not found, specify with --with-pcre." >&5
  24201. echo "$as_me: error: pcre not found, specify with --with-pcre." >&2;}
  24202. { (exit 1); exit 1; }; }
  24203. fi
  24204. fi
  24205. # BEGIN COPYRIGHT BLOCK
  24206. # Copyright (C) 2009 Red Hat, Inc.
  24207. # All rights reserved.
  24208. #
  24209. # This program is free software; you can redistribute it and/or
  24210. # modify it under the terms of the GNU General Public License
  24211. # as published by the Free Software Foundation; either version 2
  24212. # of the License, or (at your option) any later version.
  24213. #
  24214. # This program is distributed in the hope that it will be useful,
  24215. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24216. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24217. # GNU General Public License for more details.
  24218. #
  24219. # You should have received a copy of the GNU General Public License
  24220. # along with this program; if not, write to the Free Software
  24221. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24222. #
  24223. # END COPYRIGHT BLOCK
  24224. { echo "$as_me:$LINENO: checking for SELinux..." >&5
  24225. echo "$as_me: checking for SELinux..." >&6;}
  24226. # check for --with-selinux
  24227. echo "$as_me:$LINENO: checking for --with-selinux" >&5
  24228. echo $ECHO_N "checking for --with-selinux... $ECHO_C" >&6
  24229. # Check whether --with-selinux or --without-selinux was given.
  24230. if test "${with_selinux+set}" = set; then
  24231. withval="$with_selinux"
  24232. with_selinux=yes
  24233. echo "$as_me:$LINENO: result: yes" >&5
  24234. echo "${ECHO_T}yes" >&6
  24235. if test ! -f "/usr/share/selinux/devel/Makefile"; then
  24236. { { echo "$as_me:$LINENO: error: SELinux development tools (selinux-policy) not found" >&5
  24237. echo "$as_me: error: SELinux development tools (selinux-policy) not found" >&2;}
  24238. { (exit 1); exit 1; }; }
  24239. fi
  24240. else
  24241. echo "$as_me:$LINENO: result: no" >&5
  24242. echo "${ECHO_T}no" >&6
  24243. fi;
  24244. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  24245. # set sasl_path for wrapper scripts
  24246. if test -z "$sasl_libdir" ; then
  24247. sasl_path="$libdir/sasl2"
  24248. else
  24249. sasl_path="$sasl_libdir/sasl2"
  24250. fi
  24251. if test "$with_selinux" = "yes"; then
  24252. SELINUX_TRUE=
  24253. SELINUX_FALSE='#'
  24254. else
  24255. SELINUX_TRUE='#'
  24256. SELINUX_FALSE=
  24257. fi
  24258. if test "$with_openldap" = "yes"; then
  24259. OPENLDAP_TRUE=
  24260. OPENLDAP_FALSE='#'
  24261. else
  24262. OPENLDAP_TRUE='#'
  24263. OPENLDAP_FALSE=
  24264. fi
  24265. # write out paths for binary components
  24266. cat >>confdefs.h <<\_ACEOF
  24267. #define LDAP_DEBUG 1
  24268. _ACEOF
  24269. cat >>confdefs.h <<\_ACEOF
  24270. #define LDAP_DONT_USE_SMARTHEAP 1
  24271. _ACEOF
  24272. # libtool on fedora/rhel contains some gcc-isms which cause problems
  24273. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  24274. # we remove them here
  24275. if test "$GCC" != yes ; then
  24276. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  24277. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  24278. cp -p libtool libtool.orig
  24279. cp -p libtool libtool.tmp
  24280. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  24281. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  24282. # perl produced write-only code . . .
  24283. sed -e '/^gcc_dir/ d' \
  24284. -e '/^gcc_ver/ d' \
  24285. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  24286. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  24287. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  24288. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  24289. libtool > libtool.tmp
  24290. cp -p libtool.tmp libtool
  24291. rm -f libtool.tmp
  24292. fi
  24293. ac_config_files="$ac_config_files Makefile"
  24294. cat >confcache <<\_ACEOF
  24295. # This file is a shell script that caches the results of configure
  24296. # tests run on this system so they can be shared between configure
  24297. # scripts and configure runs, see configure's option --config-cache.
  24298. # It is not useful on other systems. If it contains results you don't
  24299. # want to keep, you may remove or edit it.
  24300. #
  24301. # config.status only pays attention to the cache file if you give it
  24302. # the --recheck option to rerun configure.
  24303. #
  24304. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24305. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24306. # following values.
  24307. _ACEOF
  24308. # The following way of writing the cache mishandles newlines in values,
  24309. # but we know of no workaround that is simple, portable, and efficient.
  24310. # So, don't put newlines in cache variables' values.
  24311. # Ultrix sh set writes to stderr and can't be redirected directly,
  24312. # and sets the high bit in the cache file unless we assign to the vars.
  24313. {
  24314. (set) 2>&1 |
  24315. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  24316. *ac_space=\ *)
  24317. # `set' does not quote correctly, so add quotes (double-quote
  24318. # substitution turns \\\\ into \\, and sed turns \\ into \).
  24319. sed -n \
  24320. "s/'/'\\\\''/g;
  24321. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24322. ;;
  24323. *)
  24324. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24325. sed -n \
  24326. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  24327. ;;
  24328. esac;
  24329. } |
  24330. sed '
  24331. t clear
  24332. : clear
  24333. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  24334. t end
  24335. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24336. : end' >>confcache
  24337. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  24338. if test -w $cache_file; then
  24339. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  24340. cat confcache >$cache_file
  24341. else
  24342. echo "not updating unwritable cache $cache_file"
  24343. fi
  24344. fi
  24345. rm -f confcache
  24346. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24347. # Let make expand exec_prefix.
  24348. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24349. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  24350. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  24351. # trailing colons and then remove the whole line if VPATH becomes empty
  24352. # (actually we leave an empty line to preserve line numbers).
  24353. if test "x$srcdir" = x.; then
  24354. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  24355. s/:*\$(srcdir):*/:/;
  24356. s/:*\${srcdir}:*/:/;
  24357. s/:*@srcdir@:*/:/;
  24358. s/^\([^=]*=[ ]*\):*/\1/;
  24359. s/:*$//;
  24360. s/^[^=]*=[ ]*$//;
  24361. }'
  24362. fi
  24363. DEFS=-DHAVE_CONFIG_H
  24364. ac_libobjs=
  24365. ac_ltlibobjs=
  24366. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24367. # 1. Remove the extension, and $U if already installed.
  24368. ac_i=`echo "$ac_i" |
  24369. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  24370. # 2. Add them.
  24371. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  24372. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  24373. done
  24374. LIBOBJS=$ac_libobjs
  24375. LTLIBOBJS=$ac_ltlibobjs
  24376. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  24377. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  24378. Usually this means the macro was only invoked conditionally." >&5
  24379. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  24380. Usually this means the macro was only invoked conditionally." >&2;}
  24381. { (exit 1); exit 1; }; }
  24382. fi
  24383. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  24384. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  24385. Usually this means the macro was only invoked conditionally." >&5
  24386. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  24387. Usually this means the macro was only invoked conditionally." >&2;}
  24388. { (exit 1); exit 1; }; }
  24389. fi
  24390. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  24391. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  24392. Usually this means the macro was only invoked conditionally." >&5
  24393. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  24394. Usually this means the macro was only invoked conditionally." >&2;}
  24395. { (exit 1); exit 1; }; }
  24396. fi
  24397. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  24398. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  24399. Usually this means the macro was only invoked conditionally." >&5
  24400. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  24401. Usually this means the macro was only invoked conditionally." >&2;}
  24402. { (exit 1); exit 1; }; }
  24403. fi
  24404. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  24405. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  24406. Usually this means the macro was only invoked conditionally." >&5
  24407. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  24408. Usually this means the macro was only invoked conditionally." >&2;}
  24409. { (exit 1); exit 1; }; }
  24410. fi
  24411. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  24412. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  24413. Usually this means the macro was only invoked conditionally." >&5
  24414. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  24415. Usually this means the macro was only invoked conditionally." >&2;}
  24416. { (exit 1); exit 1; }; }
  24417. fi
  24418. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  24419. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  24420. Usually this means the macro was only invoked conditionally." >&5
  24421. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  24422. Usually this means the macro was only invoked conditionally." >&2;}
  24423. { (exit 1); exit 1; }; }
  24424. fi
  24425. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  24426. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  24427. Usually this means the macro was only invoked conditionally." >&5
  24428. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  24429. Usually this means the macro was only invoked conditionally." >&2;}
  24430. { (exit 1); exit 1; }; }
  24431. fi
  24432. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  24433. { { echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  24434. Usually this means the macro was only invoked conditionally." >&5
  24435. echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  24436. Usually this means the macro was only invoked conditionally." >&2;}
  24437. { (exit 1); exit 1; }; }
  24438. fi
  24439. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  24440. { { echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24441. Usually this means the macro was only invoked conditionally." >&5
  24442. echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24443. Usually this means the macro was only invoked conditionally." >&2;}
  24444. { (exit 1); exit 1; }; }
  24445. fi
  24446. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  24447. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  24448. Usually this means the macro was only invoked conditionally." >&5
  24449. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  24450. Usually this means the macro was only invoked conditionally." >&2;}
  24451. { (exit 1); exit 1; }; }
  24452. fi
  24453. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  24454. { { echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  24455. Usually this means the macro was only invoked conditionally." >&5
  24456. echo "$as_me: error: conditional \"enable_presence\" was never defined.
  24457. Usually this means the macro was only invoked conditionally." >&2;}
  24458. { (exit 1); exit 1; }; }
  24459. fi
  24460. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  24461. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  24462. Usually this means the macro was only invoked conditionally." >&5
  24463. echo "$as_me: error: conditional \"WINNT\" was never defined.
  24464. Usually this means the macro was only invoked conditionally." >&2;}
  24465. { (exit 1); exit 1; }; }
  24466. fi
  24467. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  24468. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  24469. Usually this means the macro was only invoked conditionally." >&5
  24470. echo "$as_me: error: conditional \"HPUX\" was never defined.
  24471. Usually this means the macro was only invoked conditionally." >&2;}
  24472. { (exit 1); exit 1; }; }
  24473. fi
  24474. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  24475. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  24476. Usually this means the macro was only invoked conditionally." >&5
  24477. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  24478. Usually this means the macro was only invoked conditionally." >&2;}
  24479. { (exit 1); exit 1; }; }
  24480. fi
  24481. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  24482. { { echo "$as_me:$LINENO: error: conditional \"SELINUX\" was never defined.
  24483. Usually this means the macro was only invoked conditionally." >&5
  24484. echo "$as_me: error: conditional \"SELINUX\" was never defined.
  24485. Usually this means the macro was only invoked conditionally." >&2;}
  24486. { (exit 1); exit 1; }; }
  24487. fi
  24488. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  24489. { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  24490. Usually this means the macro was only invoked conditionally." >&5
  24491. echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  24492. Usually this means the macro was only invoked conditionally." >&2;}
  24493. { (exit 1); exit 1; }; }
  24494. fi
  24495. : ${CONFIG_STATUS=./config.status}
  24496. ac_clean_files_save=$ac_clean_files
  24497. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24498. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  24499. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  24500. cat >$CONFIG_STATUS <<_ACEOF
  24501. #! $SHELL
  24502. # Generated by $as_me.
  24503. # Run this file to recreate the current configuration.
  24504. # Compiler output produced by configure, useful for debugging
  24505. # configure, is in config.log if it exists.
  24506. debug=false
  24507. ac_cs_recheck=false
  24508. ac_cs_silent=false
  24509. SHELL=\${CONFIG_SHELL-$SHELL}
  24510. _ACEOF
  24511. cat >>$CONFIG_STATUS <<\_ACEOF
  24512. ## --------------------- ##
  24513. ## M4sh Initialization. ##
  24514. ## --------------------- ##
  24515. # Be Bourne compatible
  24516. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  24517. emulate sh
  24518. NULLCMD=:
  24519. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  24520. # is contrary to our usage. Disable this feature.
  24521. alias -g '${1+"$@"}'='"$@"'
  24522. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24523. set -o posix
  24524. fi
  24525. DUALCASE=1; export DUALCASE # for MKS sh
  24526. # Support unset when possible.
  24527. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24528. as_unset=unset
  24529. else
  24530. as_unset=false
  24531. fi
  24532. # Work around bugs in pre-3.0 UWIN ksh.
  24533. $as_unset ENV MAIL MAILPATH
  24534. PS1='$ '
  24535. PS2='> '
  24536. PS4='+ '
  24537. # NLS nuisances.
  24538. for as_var in \
  24539. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  24540. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  24541. LC_TELEPHONE LC_TIME
  24542. do
  24543. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  24544. eval $as_var=C; export $as_var
  24545. else
  24546. $as_unset $as_var
  24547. fi
  24548. done
  24549. # Required to use basename.
  24550. if expr a : '\(a\)' >/dev/null 2>&1; then
  24551. as_expr=expr
  24552. else
  24553. as_expr=false
  24554. fi
  24555. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  24556. as_basename=basename
  24557. else
  24558. as_basename=false
  24559. fi
  24560. # Name of the executable.
  24561. as_me=`$as_basename "$0" ||
  24562. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24563. X"$0" : 'X\(//\)$' \| \
  24564. X"$0" : 'X\(/\)$' \| \
  24565. . : '\(.\)' 2>/dev/null ||
  24566. echo X/"$0" |
  24567. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  24568. /^X\/\(\/\/\)$/{ s//\1/; q; }
  24569. /^X\/\(\/\).*/{ s//\1/; q; }
  24570. s/.*/./; q'`
  24571. # PATH needs CR, and LINENO needs CR and PATH.
  24572. # Avoid depending upon Character Ranges.
  24573. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24574. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24575. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24576. as_cr_digits='0123456789'
  24577. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24578. # The user is always right.
  24579. if test "${PATH_SEPARATOR+set}" != set; then
  24580. echo "#! /bin/sh" >conf$$.sh
  24581. echo "exit 0" >>conf$$.sh
  24582. chmod +x conf$$.sh
  24583. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  24584. PATH_SEPARATOR=';'
  24585. else
  24586. PATH_SEPARATOR=:
  24587. fi
  24588. rm -f conf$$.sh
  24589. fi
  24590. as_lineno_1=$LINENO
  24591. as_lineno_2=$LINENO
  24592. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24593. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24594. test "x$as_lineno_3" = "x$as_lineno_2" || {
  24595. # Find who we are. Look in the path if we contain no path at all
  24596. # relative or not.
  24597. case $0 in
  24598. *[\\/]* ) as_myself=$0 ;;
  24599. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24600. for as_dir in $PATH
  24601. do
  24602. IFS=$as_save_IFS
  24603. test -z "$as_dir" && as_dir=.
  24604. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  24605. done
  24606. ;;
  24607. esac
  24608. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24609. # in which case we are not to be found in the path.
  24610. if test "x$as_myself" = x; then
  24611. as_myself=$0
  24612. fi
  24613. if test ! -f "$as_myself"; then
  24614. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  24615. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  24616. { (exit 1); exit 1; }; }
  24617. fi
  24618. case $CONFIG_SHELL in
  24619. '')
  24620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24621. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  24622. do
  24623. IFS=$as_save_IFS
  24624. test -z "$as_dir" && as_dir=.
  24625. for as_base in sh bash ksh sh5; do
  24626. case $as_dir in
  24627. /*)
  24628. if ("$as_dir/$as_base" -c '
  24629. as_lineno_1=$LINENO
  24630. as_lineno_2=$LINENO
  24631. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24632. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24633. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  24634. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  24635. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  24636. CONFIG_SHELL=$as_dir/$as_base
  24637. export CONFIG_SHELL
  24638. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  24639. fi;;
  24640. esac
  24641. done
  24642. done
  24643. ;;
  24644. esac
  24645. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  24646. # uniformly replaced by the line number. The first 'sed' inserts a
  24647. # line-number line before each line; the second 'sed' does the real
  24648. # work. The second script uses 'N' to pair each line-number line
  24649. # with the numbered line, and appends trailing '-' during
  24650. # substitution so that $LINENO is not a special case at line end.
  24651. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  24652. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  24653. sed '=' <$as_myself |
  24654. sed '
  24655. N
  24656. s,$,-,
  24657. : loop
  24658. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  24659. t loop
  24660. s,-$,,
  24661. s,^['$as_cr_digits']*\n,,
  24662. ' >$as_me.lineno &&
  24663. chmod +x $as_me.lineno ||
  24664. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  24665. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  24666. { (exit 1); exit 1; }; }
  24667. # Don't try to exec as it changes $[0], causing all sort of problems
  24668. # (the dirname of $[0] is not the place where we might find the
  24669. # original and so on. Autoconf is especially sensible to this).
  24670. . ./$as_me.lineno
  24671. # Exit status is that of the last command.
  24672. exit
  24673. }
  24674. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  24675. *c*,-n*) ECHO_N= ECHO_C='
  24676. ' ECHO_T=' ' ;;
  24677. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  24678. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  24679. esac
  24680. if expr a : '\(a\)' >/dev/null 2>&1; then
  24681. as_expr=expr
  24682. else
  24683. as_expr=false
  24684. fi
  24685. rm -f conf$$ conf$$.exe conf$$.file
  24686. echo >conf$$.file
  24687. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24688. # We could just check for DJGPP; but this test a) works b) is more generic
  24689. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  24690. if test -f conf$$.exe; then
  24691. # Don't use ln at all; we don't have any links
  24692. as_ln_s='cp -p'
  24693. else
  24694. as_ln_s='ln -s'
  24695. fi
  24696. elif ln conf$$.file conf$$ 2>/dev/null; then
  24697. as_ln_s=ln
  24698. else
  24699. as_ln_s='cp -p'
  24700. fi
  24701. rm -f conf$$ conf$$.exe conf$$.file
  24702. if mkdir -p . 2>/dev/null; then
  24703. as_mkdir_p=:
  24704. else
  24705. test -d ./-p && rmdir ./-p
  24706. as_mkdir_p=false
  24707. fi
  24708. as_executable_p="test -f"
  24709. # Sed expression to map a string onto a valid CPP name.
  24710. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24711. # Sed expression to map a string onto a valid variable name.
  24712. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24713. # IFS
  24714. # We need space, tab and new line, in precisely that order.
  24715. as_nl='
  24716. '
  24717. IFS=" $as_nl"
  24718. # CDPATH.
  24719. $as_unset CDPATH
  24720. exec 6>&1
  24721. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  24722. # report actual input values of CONFIG_FILES etc. instead of their
  24723. # values after options handling. Logging --version etc. is OK.
  24724. exec 5>>config.log
  24725. {
  24726. echo
  24727. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24728. ## Running $as_me. ##
  24729. _ASBOX
  24730. } >&5
  24731. cat >&5 <<_CSEOF
  24732. This file was extended by dirsrv $as_me 1.0, which was
  24733. generated by GNU Autoconf 2.59. Invocation command line was
  24734. CONFIG_FILES = $CONFIG_FILES
  24735. CONFIG_HEADERS = $CONFIG_HEADERS
  24736. CONFIG_LINKS = $CONFIG_LINKS
  24737. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24738. $ $0 $@
  24739. _CSEOF
  24740. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  24741. echo >&5
  24742. _ACEOF
  24743. # Files that config.status was made for.
  24744. if test -n "$ac_config_files"; then
  24745. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  24746. fi
  24747. if test -n "$ac_config_headers"; then
  24748. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  24749. fi
  24750. if test -n "$ac_config_links"; then
  24751. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  24752. fi
  24753. if test -n "$ac_config_commands"; then
  24754. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  24755. fi
  24756. cat >>$CONFIG_STATUS <<\_ACEOF
  24757. ac_cs_usage="\
  24758. \`$as_me' instantiates files from templates according to the
  24759. current configuration.
  24760. Usage: $0 [OPTIONS] [FILE]...
  24761. -h, --help print this help, then exit
  24762. -V, --version print version number, then exit
  24763. -q, --quiet do not print progress messages
  24764. -d, --debug don't remove temporary files
  24765. --recheck update $as_me by reconfiguring in the same conditions
  24766. --file=FILE[:TEMPLATE]
  24767. instantiate the configuration file FILE
  24768. --header=FILE[:TEMPLATE]
  24769. instantiate the configuration header FILE
  24770. Configuration files:
  24771. $config_files
  24772. Configuration headers:
  24773. $config_headers
  24774. Configuration commands:
  24775. $config_commands
  24776. Report bugs to <[email protected]>."
  24777. _ACEOF
  24778. cat >>$CONFIG_STATUS <<_ACEOF
  24779. ac_cs_version="\\
  24780. dirsrv config.status 1.0
  24781. configured by $0, generated by GNU Autoconf 2.59,
  24782. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  24783. Copyright (C) 2003 Free Software Foundation, Inc.
  24784. This config.status script is free software; the Free Software Foundation
  24785. gives unlimited permission to copy, distribute and modify it."
  24786. srcdir=$srcdir
  24787. INSTALL="$INSTALL"
  24788. _ACEOF
  24789. cat >>$CONFIG_STATUS <<\_ACEOF
  24790. # If no file are specified by the user, then we need to provide default
  24791. # value. By we need to know if files were specified by the user.
  24792. ac_need_defaults=:
  24793. while test $# != 0
  24794. do
  24795. case $1 in
  24796. --*=*)
  24797. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  24798. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  24799. ac_shift=:
  24800. ;;
  24801. -*)
  24802. ac_option=$1
  24803. ac_optarg=$2
  24804. ac_shift=shift
  24805. ;;
  24806. *) # This is not an option, so the user has probably given explicit
  24807. # arguments.
  24808. ac_option=$1
  24809. ac_need_defaults=false;;
  24810. esac
  24811. case $ac_option in
  24812. # Handling of the options.
  24813. _ACEOF
  24814. cat >>$CONFIG_STATUS <<\_ACEOF
  24815. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24816. ac_cs_recheck=: ;;
  24817. --version | --vers* | -V )
  24818. echo "$ac_cs_version"; exit 0 ;;
  24819. --he | --h)
  24820. # Conflict between --help and --header
  24821. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  24822. Try \`$0 --help' for more information." >&5
  24823. echo "$as_me: error: ambiguous option: $1
  24824. Try \`$0 --help' for more information." >&2;}
  24825. { (exit 1); exit 1; }; };;
  24826. --help | --hel | -h )
  24827. echo "$ac_cs_usage"; exit 0 ;;
  24828. --debug | --d* | -d )
  24829. debug=: ;;
  24830. --file | --fil | --fi | --f )
  24831. $ac_shift
  24832. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  24833. ac_need_defaults=false;;
  24834. --header | --heade | --head | --hea )
  24835. $ac_shift
  24836. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  24837. ac_need_defaults=false;;
  24838. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24839. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24840. ac_cs_silent=: ;;
  24841. # This is an error.
  24842. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  24843. Try \`$0 --help' for more information." >&5
  24844. echo "$as_me: error: unrecognized option: $1
  24845. Try \`$0 --help' for more information." >&2;}
  24846. { (exit 1); exit 1; }; } ;;
  24847. *) ac_config_targets="$ac_config_targets $1" ;;
  24848. esac
  24849. shift
  24850. done
  24851. ac_configure_extra_args=
  24852. if $ac_cs_silent; then
  24853. exec 6>/dev/null
  24854. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24855. fi
  24856. _ACEOF
  24857. cat >>$CONFIG_STATUS <<_ACEOF
  24858. if \$ac_cs_recheck; then
  24859. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  24860. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24861. fi
  24862. _ACEOF
  24863. cat >>$CONFIG_STATUS <<_ACEOF
  24864. #
  24865. # INIT-COMMANDS section.
  24866. #
  24867. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24868. _ACEOF
  24869. cat >>$CONFIG_STATUS <<\_ACEOF
  24870. for ac_config_target in $ac_config_targets
  24871. do
  24872. case "$ac_config_target" in
  24873. # Handling of arguments.
  24874. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24875. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24876. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24877. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  24878. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  24879. { (exit 1); exit 1; }; };;
  24880. esac
  24881. done
  24882. # If the user did not use the arguments to specify the items to instantiate,
  24883. # then the envvar interface is used. Set only those that are not.
  24884. # We use the long form for the default assignment because of an extremely
  24885. # bizarre bug on SunOS 4.1.3.
  24886. if $ac_need_defaults; then
  24887. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24888. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24889. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24890. fi
  24891. # Have a temporary directory for convenience. Make it in the build tree
  24892. # simply because there is no reason to put it here, and in addition,
  24893. # creating and moving files from /tmp can sometimes cause problems.
  24894. # Create a temporary directory, and hook for its removal unless debugging.
  24895. $debug ||
  24896. {
  24897. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  24898. trap '{ (exit 1); exit 1; }' 1 2 13 15
  24899. }
  24900. # Create a (secure) tmp directory for tmp files.
  24901. {
  24902. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  24903. test -n "$tmp" && test -d "$tmp"
  24904. } ||
  24905. {
  24906. tmp=./confstat$$-$RANDOM
  24907. (umask 077 && mkdir $tmp)
  24908. } ||
  24909. {
  24910. echo "$me: cannot create a temporary directory in ." >&2
  24911. { (exit 1); exit 1; }
  24912. }
  24913. _ACEOF
  24914. cat >>$CONFIG_STATUS <<_ACEOF
  24915. #
  24916. # CONFIG_FILES section.
  24917. #
  24918. # No need to generate the scripts if there are no CONFIG_FILES.
  24919. # This happens for instance when ./config.status config.h
  24920. if test -n "\$CONFIG_FILES"; then
  24921. # Protect against being on the right side of a sed subst in config.status.
  24922. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  24923. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  24924. s,@SHELL@,$SHELL,;t t
  24925. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  24926. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  24927. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  24928. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  24929. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  24930. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  24931. s,@exec_prefix@,$exec_prefix,;t t
  24932. s,@prefix@,$prefix,;t t
  24933. s,@program_transform_name@,$program_transform_name,;t t
  24934. s,@bindir@,$bindir,;t t
  24935. s,@sbindir@,$sbindir,;t t
  24936. s,@libexecdir@,$libexecdir,;t t
  24937. s,@datadir@,$datadir,;t t
  24938. s,@sysconfdir@,$sysconfdir,;t t
  24939. s,@sharedstatedir@,$sharedstatedir,;t t
  24940. s,@localstatedir@,$localstatedir,;t t
  24941. s,@libdir@,$libdir,;t t
  24942. s,@includedir@,$includedir,;t t
  24943. s,@oldincludedir@,$oldincludedir,;t t
  24944. s,@infodir@,$infodir,;t t
  24945. s,@mandir@,$mandir,;t t
  24946. s,@build_alias@,$build_alias,;t t
  24947. s,@host_alias@,$host_alias,;t t
  24948. s,@target_alias@,$target_alias,;t t
  24949. s,@DEFS@,$DEFS,;t t
  24950. s,@ECHO_C@,$ECHO_C,;t t
  24951. s,@ECHO_N@,$ECHO_N,;t t
  24952. s,@ECHO_T@,$ECHO_T,;t t
  24953. s,@LIBS@,$LIBS,;t t
  24954. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  24955. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  24956. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  24957. s,@CYGPATH_W@,$CYGPATH_W,;t t
  24958. s,@PACKAGE@,$PACKAGE,;t t
  24959. s,@VERSION@,$VERSION,;t t
  24960. s,@ACLOCAL@,$ACLOCAL,;t t
  24961. s,@AUTOCONF@,$AUTOCONF,;t t
  24962. s,@AUTOMAKE@,$AUTOMAKE,;t t
  24963. s,@AUTOHEADER@,$AUTOHEADER,;t t
  24964. s,@MAKEINFO@,$MAKEINFO,;t t
  24965. s,@install_sh@,$install_sh,;t t
  24966. s,@STRIP@,$STRIP,;t t
  24967. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  24968. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  24969. s,@mkdir_p@,$mkdir_p,;t t
  24970. s,@AWK@,$AWK,;t t
  24971. s,@SET_MAKE@,$SET_MAKE,;t t
  24972. s,@am__leading_dot@,$am__leading_dot,;t t
  24973. s,@AMTAR@,$AMTAR,;t t
  24974. s,@am__tar@,$am__tar,;t t
  24975. s,@am__untar@,$am__untar,;t t
  24976. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  24977. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  24978. s,@MAINT@,$MAINT,;t t
  24979. s,@build@,$build,;t t
  24980. s,@build_cpu@,$build_cpu,;t t
  24981. s,@build_vendor@,$build_vendor,;t t
  24982. s,@build_os@,$build_os,;t t
  24983. s,@host@,$host,;t t
  24984. s,@host_cpu@,$host_cpu,;t t
  24985. s,@host_vendor@,$host_vendor,;t t
  24986. s,@host_os@,$host_os,;t t
  24987. s,@CXX@,$CXX,;t t
  24988. s,@CXXFLAGS@,$CXXFLAGS,;t t
  24989. s,@LDFLAGS@,$LDFLAGS,;t t
  24990. s,@CPPFLAGS@,$CPPFLAGS,;t t
  24991. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  24992. s,@EXEEXT@,$EXEEXT,;t t
  24993. s,@OBJEXT@,$OBJEXT,;t t
  24994. s,@DEPDIR@,$DEPDIR,;t t
  24995. s,@am__include@,$am__include,;t t
  24996. s,@am__quote@,$am__quote,;t t
  24997. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  24998. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  24999. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  25000. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  25001. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  25002. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  25003. s,@CC@,$CC,;t t
  25004. s,@CFLAGS@,$CFLAGS,;t t
  25005. s,@ac_ct_CC@,$ac_ct_CC,;t t
  25006. s,@CCDEPMODE@,$CCDEPMODE,;t t
  25007. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  25008. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  25009. s,@CCAS@,$CCAS,;t t
  25010. s,@CCASFLAGS@,$CCASFLAGS,;t t
  25011. s,@SED@,$SED,;t t
  25012. s,@EGREP@,$EGREP,;t t
  25013. s,@LN_S@,$LN_S,;t t
  25014. s,@ECHO@,$ECHO,;t t
  25015. s,@AR@,$AR,;t t
  25016. s,@ac_ct_AR@,$ac_ct_AR,;t t
  25017. s,@RANLIB@,$RANLIB,;t t
  25018. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  25019. s,@CPP@,$CPP,;t t
  25020. s,@CXXCPP@,$CXXCPP,;t t
  25021. s,@F77@,$F77,;t t
  25022. s,@FFLAGS@,$FFLAGS,;t t
  25023. s,@ac_ct_F77@,$ac_ct_F77,;t t
  25024. s,@LIBTOOL@,$LIBTOOL,;t t
  25025. s,@LIBOBJS@,$LIBOBJS,;t t
  25026. s,@debug_defs@,$debug_defs,;t t
  25027. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  25028. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  25029. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  25030. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  25031. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  25032. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  25033. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  25034. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  25035. s,@enable_autobind_TRUE@,$enable_autobind_TRUE,;t t
  25036. s,@enable_autobind_FALSE@,$enable_autobind_FALSE,;t t
  25037. s,@enable_auto_dn_suffix_TRUE@,$enable_auto_dn_suffix_TRUE,;t t
  25038. s,@enable_auto_dn_suffix_FALSE@,$enable_auto_dn_suffix_FALSE,;t t
  25039. s,@enable_bitwise_TRUE@,$enable_bitwise_TRUE,;t t
  25040. s,@enable_bitwise_FALSE@,$enable_bitwise_FALSE,;t t
  25041. s,@enable_presence_TRUE@,$enable_presence_TRUE,;t t
  25042. s,@enable_presence_FALSE@,$enable_presence_FALSE,;t t
  25043. s,@with_fhs_opt@,$with_fhs_opt,;t t
  25044. s,@configdir@,$configdir,;t t
  25045. s,@sampledatadir@,$sampledatadir,;t t
  25046. s,@propertydir@,$propertydir,;t t
  25047. s,@schemadir@,$schemadir,;t t
  25048. s,@serverdir@,$serverdir,;t t
  25049. s,@serverplugindir@,$serverplugindir,;t t
  25050. s,@scripttemplatedir@,$scripttemplatedir,;t t
  25051. s,@perldir@,$perldir,;t t
  25052. s,@infdir@,$infdir,;t t
  25053. s,@mibdir@,$mibdir,;t t
  25054. s,@updatedir@,$updatedir,;t t
  25055. s,@defaultuser@,$defaultuser,;t t
  25056. s,@defaultgroup@,$defaultgroup,;t t
  25057. s,@instconfigdir@,$instconfigdir,;t t
  25058. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  25059. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  25060. s,@THREADLIB@,$THREADLIB,;t t
  25061. s,@LIBSOCKET@,$LIBSOCKET,;t t
  25062. s,@LIBNSL@,$LIBNSL,;t t
  25063. s,@LIBDL@,$LIBDL,;t t
  25064. s,@LIBCSTD@,$LIBCSTD,;t t
  25065. s,@LIBCRUN@,$LIBCRUN,;t t
  25066. s,@initdir@,$initdir,;t t
  25067. s,@perlexec@,$perlexec,;t t
  25068. s,@initconfigdir@,$initconfigdir,;t t
  25069. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  25070. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  25071. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  25072. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  25073. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  25074. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  25075. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  25076. s,@KRB5_CONFIG_BIN@,$KRB5_CONFIG_BIN,;t t
  25077. s,@kerberos_inc@,$kerberos_inc,;t t
  25078. s,@kerberos_lib@,$kerberos_lib,;t t
  25079. s,@kerberos_libdir@,$kerberos_libdir,;t t
  25080. s,@with_selinux@,$with_selinux,;t t
  25081. s,@PACKAGE_BASE_VERSION@,$PACKAGE_BASE_VERSION,;t t
  25082. s,@SELINUX_TRUE@,$SELINUX_TRUE,;t t
  25083. s,@SELINUX_FALSE@,$SELINUX_FALSE,;t t
  25084. s,@OPENLDAP_TRUE@,$OPENLDAP_TRUE,;t t
  25085. s,@OPENLDAP_FALSE@,$OPENLDAP_FALSE,;t t
  25086. s,@nspr_inc@,$nspr_inc,;t t
  25087. s,@nspr_lib@,$nspr_lib,;t t
  25088. s,@nspr_libdir@,$nspr_libdir,;t t
  25089. s,@nss_inc@,$nss_inc,;t t
  25090. s,@nss_lib@,$nss_lib,;t t
  25091. s,@nss_libdir@,$nss_libdir,;t t
  25092. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  25093. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  25094. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  25095. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  25096. s,@openldap_inc@,$openldap_inc,;t t
  25097. s,@openldap_lib@,$openldap_lib,;t t
  25098. s,@openldap_libdir@,$openldap_libdir,;t t
  25099. s,@openldap_bindir@,$openldap_bindir,;t t
  25100. s,@ol_libver@,$ol_libver,;t t
  25101. s,@db_inc@,$db_inc,;t t
  25102. s,@db_incdir@,$db_incdir,;t t
  25103. s,@db_lib@,$db_lib,;t t
  25104. s,@db_libdir@,$db_libdir,;t t
  25105. s,@db_bindir@,$db_bindir,;t t
  25106. s,@db_libver@,$db_libver,;t t
  25107. s,@sasl_inc@,$sasl_inc,;t t
  25108. s,@sasl_lib@,$sasl_lib,;t t
  25109. s,@sasl_libdir@,$sasl_libdir,;t t
  25110. s,@sasl_path@,$sasl_path,;t t
  25111. s,@svrcore_inc@,$svrcore_inc,;t t
  25112. s,@svrcore_lib@,$svrcore_lib,;t t
  25113. s,@icu_lib@,$icu_lib,;t t
  25114. s,@icu_inc@,$icu_inc,;t t
  25115. s,@icu_bin@,$icu_bin,;t t
  25116. s,@netsnmp_inc@,$netsnmp_inc,;t t
  25117. s,@netsnmp_lib@,$netsnmp_lib,;t t
  25118. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  25119. s,@netsnmp_link@,$netsnmp_link,;t t
  25120. s,@pcre_inc@,$pcre_inc,;t t
  25121. s,@pcre_lib@,$pcre_lib,;t t
  25122. s,@pcre_libdir@,$pcre_libdir,;t t
  25123. s,@brand@,$brand,;t t
  25124. s,@capbrand@,$capbrand,;t t
  25125. s,@vendor@,$vendor,;t t
  25126. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  25127. CEOF
  25128. _ACEOF
  25129. cat >>$CONFIG_STATUS <<\_ACEOF
  25130. # Split the substitutions into bite-sized pieces for seds with
  25131. # small command number limits, like on Digital OSF/1 and HP-UX.
  25132. ac_max_sed_lines=48
  25133. ac_sed_frag=1 # Number of current file.
  25134. ac_beg=1 # First line for current file.
  25135. ac_end=$ac_max_sed_lines # Line after last line for current file.
  25136. ac_more_lines=:
  25137. ac_sed_cmds=
  25138. while $ac_more_lines; do
  25139. if test $ac_beg -gt 1; then
  25140. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25141. else
  25142. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25143. fi
  25144. if test ! -s $tmp/subs.frag; then
  25145. ac_more_lines=false
  25146. else
  25147. # The purpose of the label and of the branching condition is to
  25148. # speed up the sed processing (if there are no `@' at all, there
  25149. # is no need to browse any of the substitutions).
  25150. # These are the two extra sed commands mentioned above.
  25151. (echo ':t
  25152. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  25153. if test -z "$ac_sed_cmds"; then
  25154. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  25155. else
  25156. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  25157. fi
  25158. ac_sed_frag=`expr $ac_sed_frag + 1`
  25159. ac_beg=$ac_end
  25160. ac_end=`expr $ac_end + $ac_max_sed_lines`
  25161. fi
  25162. done
  25163. if test -z "$ac_sed_cmds"; then
  25164. ac_sed_cmds=cat
  25165. fi
  25166. fi # test -n "$CONFIG_FILES"
  25167. _ACEOF
  25168. cat >>$CONFIG_STATUS <<\_ACEOF
  25169. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  25170. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  25171. case $ac_file in
  25172. - | *:- | *:-:* ) # input from stdin
  25173. cat >$tmp/stdin
  25174. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25175. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25176. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25177. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25178. * ) ac_file_in=$ac_file.in ;;
  25179. esac
  25180. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  25181. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25182. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25183. X"$ac_file" : 'X\(//\)[^/]' \| \
  25184. X"$ac_file" : 'X\(//\)$' \| \
  25185. X"$ac_file" : 'X\(/\)' \| \
  25186. . : '\(.\)' 2>/dev/null ||
  25187. echo X"$ac_file" |
  25188. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25189. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25190. /^X\(\/\/\)$/{ s//\1/; q; }
  25191. /^X\(\/\).*/{ s//\1/; q; }
  25192. s/.*/./; q'`
  25193. { if $as_mkdir_p; then
  25194. mkdir -p "$ac_dir"
  25195. else
  25196. as_dir="$ac_dir"
  25197. as_dirs=
  25198. while test ! -d "$as_dir"; do
  25199. as_dirs="$as_dir $as_dirs"
  25200. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25201. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25202. X"$as_dir" : 'X\(//\)[^/]' \| \
  25203. X"$as_dir" : 'X\(//\)$' \| \
  25204. X"$as_dir" : 'X\(/\)' \| \
  25205. . : '\(.\)' 2>/dev/null ||
  25206. echo X"$as_dir" |
  25207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25208. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25209. /^X\(\/\/\)$/{ s//\1/; q; }
  25210. /^X\(\/\).*/{ s//\1/; q; }
  25211. s/.*/./; q'`
  25212. done
  25213. test ! -n "$as_dirs" || mkdir $as_dirs
  25214. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25215. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25216. { (exit 1); exit 1; }; }; }
  25217. ac_builddir=.
  25218. if test "$ac_dir" != .; then
  25219. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25220. # A "../" for each directory in $ac_dir_suffix.
  25221. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25222. else
  25223. ac_dir_suffix= ac_top_builddir=
  25224. fi
  25225. case $srcdir in
  25226. .) # No --srcdir option. We are building in place.
  25227. ac_srcdir=.
  25228. if test -z "$ac_top_builddir"; then
  25229. ac_top_srcdir=.
  25230. else
  25231. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25232. fi ;;
  25233. [\\/]* | ?:[\\/]* ) # Absolute path.
  25234. ac_srcdir=$srcdir$ac_dir_suffix;
  25235. ac_top_srcdir=$srcdir ;;
  25236. *) # Relative path.
  25237. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25238. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25239. esac
  25240. # Do not use `cd foo && pwd` to compute absolute paths, because
  25241. # the directories may not exist.
  25242. case `pwd` in
  25243. .) ac_abs_builddir="$ac_dir";;
  25244. *)
  25245. case "$ac_dir" in
  25246. .) ac_abs_builddir=`pwd`;;
  25247. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25248. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25249. esac;;
  25250. esac
  25251. case $ac_abs_builddir in
  25252. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25253. *)
  25254. case ${ac_top_builddir}. in
  25255. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25256. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25257. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25258. esac;;
  25259. esac
  25260. case $ac_abs_builddir in
  25261. .) ac_abs_srcdir=$ac_srcdir;;
  25262. *)
  25263. case $ac_srcdir in
  25264. .) ac_abs_srcdir=$ac_abs_builddir;;
  25265. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25266. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25267. esac;;
  25268. esac
  25269. case $ac_abs_builddir in
  25270. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25271. *)
  25272. case $ac_top_srcdir in
  25273. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25274. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25275. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25276. esac;;
  25277. esac
  25278. case $INSTALL in
  25279. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25280. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  25281. esac
  25282. if test x"$ac_file" != x-; then
  25283. { echo "$as_me:$LINENO: creating $ac_file" >&5
  25284. echo "$as_me: creating $ac_file" >&6;}
  25285. rm -f "$ac_file"
  25286. fi
  25287. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25288. # use $as_me), people would be surprised to read:
  25289. # /* config.h. Generated by config.status. */
  25290. if test x"$ac_file" = x-; then
  25291. configure_input=
  25292. else
  25293. configure_input="$ac_file. "
  25294. fi
  25295. configure_input=$configure_input"Generated from `echo $ac_file_in |
  25296. sed 's,.*/,,'` by configure."
  25297. # First look for the input files in the build tree, otherwise in the
  25298. # src tree.
  25299. ac_file_inputs=`IFS=:
  25300. for f in $ac_file_in; do
  25301. case $f in
  25302. -) echo $tmp/stdin ;;
  25303. [\\/$]*)
  25304. # Absolute (can't be DOS-style, as IFS=:)
  25305. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25306. echo "$as_me: error: cannot find input file: $f" >&2;}
  25307. { (exit 1); exit 1; }; }
  25308. echo "$f";;
  25309. *) # Relative
  25310. if test -f "$f"; then
  25311. # Build tree
  25312. echo "$f"
  25313. elif test -f "$srcdir/$f"; then
  25314. # Source tree
  25315. echo "$srcdir/$f"
  25316. else
  25317. # /dev/null tree
  25318. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25319. echo "$as_me: error: cannot find input file: $f" >&2;}
  25320. { (exit 1); exit 1; }; }
  25321. fi;;
  25322. esac
  25323. done` || { (exit 1); exit 1; }
  25324. _ACEOF
  25325. cat >>$CONFIG_STATUS <<_ACEOF
  25326. sed "$ac_vpsub
  25327. $extrasub
  25328. _ACEOF
  25329. cat >>$CONFIG_STATUS <<\_ACEOF
  25330. :t
  25331. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25332. s,@configure_input@,$configure_input,;t t
  25333. s,@srcdir@,$ac_srcdir,;t t
  25334. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  25335. s,@top_srcdir@,$ac_top_srcdir,;t t
  25336. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  25337. s,@builddir@,$ac_builddir,;t t
  25338. s,@abs_builddir@,$ac_abs_builddir,;t t
  25339. s,@top_builddir@,$ac_top_builddir,;t t
  25340. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  25341. s,@INSTALL@,$ac_INSTALL,;t t
  25342. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  25343. rm -f $tmp/stdin
  25344. if test x"$ac_file" != x-; then
  25345. mv $tmp/out $ac_file
  25346. else
  25347. cat $tmp/out
  25348. rm -f $tmp/out
  25349. fi
  25350. done
  25351. _ACEOF
  25352. cat >>$CONFIG_STATUS <<\_ACEOF
  25353. #
  25354. # CONFIG_HEADER section.
  25355. #
  25356. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  25357. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  25358. #
  25359. # ac_d sets the value in "#define NAME VALUE" lines.
  25360. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  25361. ac_dB='[ ].*$,\1#\2'
  25362. ac_dC=' '
  25363. ac_dD=',;t'
  25364. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  25365. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  25366. ac_uB='$,\1#\2define\3'
  25367. ac_uC=' '
  25368. ac_uD=',;t'
  25369. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  25370. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  25371. case $ac_file in
  25372. - | *:- | *:-:* ) # input from stdin
  25373. cat >$tmp/stdin
  25374. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25375. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25376. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25377. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25378. * ) ac_file_in=$ac_file.in ;;
  25379. esac
  25380. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  25381. echo "$as_me: creating $ac_file" >&6;}
  25382. # First look for the input files in the build tree, otherwise in the
  25383. # src tree.
  25384. ac_file_inputs=`IFS=:
  25385. for f in $ac_file_in; do
  25386. case $f in
  25387. -) echo $tmp/stdin ;;
  25388. [\\/$]*)
  25389. # Absolute (can't be DOS-style, as IFS=:)
  25390. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25391. echo "$as_me: error: cannot find input file: $f" >&2;}
  25392. { (exit 1); exit 1; }; }
  25393. # Do quote $f, to prevent DOS paths from being IFS'd.
  25394. echo "$f";;
  25395. *) # Relative
  25396. if test -f "$f"; then
  25397. # Build tree
  25398. echo "$f"
  25399. elif test -f "$srcdir/$f"; then
  25400. # Source tree
  25401. echo "$srcdir/$f"
  25402. else
  25403. # /dev/null tree
  25404. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25405. echo "$as_me: error: cannot find input file: $f" >&2;}
  25406. { (exit 1); exit 1; }; }
  25407. fi;;
  25408. esac
  25409. done` || { (exit 1); exit 1; }
  25410. # Remove the trailing spaces.
  25411. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  25412. _ACEOF
  25413. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  25414. # `conftest.undefs', that substitutes the proper values into
  25415. # config.h.in to produce config.h. The first handles `#define'
  25416. # templates, and the second `#undef' templates.
  25417. # And first: Protect against being on the right side of a sed subst in
  25418. # config.status. Protect against being in an unquoted here document
  25419. # in config.status.
  25420. rm -f conftest.defines conftest.undefs
  25421. # Using a here document instead of a string reduces the quoting nightmare.
  25422. # Putting comments in sed scripts is not portable.
  25423. #
  25424. # `end' is used to avoid that the second main sed command (meant for
  25425. # 0-ary CPP macros) applies to n-ary macro definitions.
  25426. # See the Autoconf documentation for `clear'.
  25427. cat >confdef2sed.sed <<\_ACEOF
  25428. s/[\\&,]/\\&/g
  25429. s,[\\$`],\\&,g
  25430. t clear
  25431. : clear
  25432. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  25433. t end
  25434. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  25435. : end
  25436. _ACEOF
  25437. # If some macros were called several times there might be several times
  25438. # the same #defines, which is useless. Nevertheless, we may not want to
  25439. # sort them, since we want the *last* AC-DEFINE to be honored.
  25440. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  25441. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  25442. rm -f confdef2sed.sed
  25443. # This sed command replaces #undef with comments. This is necessary, for
  25444. # example, in the case of _POSIX_SOURCE, which is predefined and required
  25445. # on some systems where configure will not decide to define it.
  25446. cat >>conftest.undefs <<\_ACEOF
  25447. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  25448. _ACEOF
  25449. # Break up conftest.defines because some shells have a limit on the size
  25450. # of here documents, and old seds have small limits too (100 cmds).
  25451. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  25452. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  25453. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  25454. echo ' :' >>$CONFIG_STATUS
  25455. rm -f conftest.tail
  25456. while grep . conftest.defines >/dev/null
  25457. do
  25458. # Write a limited-size here document to $tmp/defines.sed.
  25459. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  25460. # Speed up: don't consider the non `#define' lines.
  25461. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  25462. # Work around the forget-to-reset-the-flag bug.
  25463. echo 't clr' >>$CONFIG_STATUS
  25464. echo ': clr' >>$CONFIG_STATUS
  25465. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  25466. echo 'CEOF
  25467. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  25468. rm -f $tmp/in
  25469. mv $tmp/out $tmp/in
  25470. ' >>$CONFIG_STATUS
  25471. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  25472. rm -f conftest.defines
  25473. mv conftest.tail conftest.defines
  25474. done
  25475. rm -f conftest.defines
  25476. echo ' fi # grep' >>$CONFIG_STATUS
  25477. echo >>$CONFIG_STATUS
  25478. # Break up conftest.undefs because some shells have a limit on the size
  25479. # of here documents, and old seds have small limits too (100 cmds).
  25480. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  25481. rm -f conftest.tail
  25482. while grep . conftest.undefs >/dev/null
  25483. do
  25484. # Write a limited-size here document to $tmp/undefs.sed.
  25485. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  25486. # Speed up: don't consider the non `#undef'
  25487. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  25488. # Work around the forget-to-reset-the-flag bug.
  25489. echo 't clr' >>$CONFIG_STATUS
  25490. echo ': clr' >>$CONFIG_STATUS
  25491. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  25492. echo 'CEOF
  25493. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  25494. rm -f $tmp/in
  25495. mv $tmp/out $tmp/in
  25496. ' >>$CONFIG_STATUS
  25497. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  25498. rm -f conftest.undefs
  25499. mv conftest.tail conftest.undefs
  25500. done
  25501. rm -f conftest.undefs
  25502. cat >>$CONFIG_STATUS <<\_ACEOF
  25503. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25504. # use $as_me), people would be surprised to read:
  25505. # /* config.h. Generated by config.status. */
  25506. if test x"$ac_file" = x-; then
  25507. echo "/* Generated by configure. */" >$tmp/config.h
  25508. else
  25509. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  25510. fi
  25511. cat $tmp/in >>$tmp/config.h
  25512. rm -f $tmp/in
  25513. if test x"$ac_file" != x-; then
  25514. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  25515. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  25516. echo "$as_me: $ac_file is unchanged" >&6;}
  25517. else
  25518. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25519. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25520. X"$ac_file" : 'X\(//\)[^/]' \| \
  25521. X"$ac_file" : 'X\(//\)$' \| \
  25522. X"$ac_file" : 'X\(/\)' \| \
  25523. . : '\(.\)' 2>/dev/null ||
  25524. echo X"$ac_file" |
  25525. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25526. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25527. /^X\(\/\/\)$/{ s//\1/; q; }
  25528. /^X\(\/\).*/{ s//\1/; q; }
  25529. s/.*/./; q'`
  25530. { if $as_mkdir_p; then
  25531. mkdir -p "$ac_dir"
  25532. else
  25533. as_dir="$ac_dir"
  25534. as_dirs=
  25535. while test ! -d "$as_dir"; do
  25536. as_dirs="$as_dir $as_dirs"
  25537. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25538. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25539. X"$as_dir" : 'X\(//\)[^/]' \| \
  25540. X"$as_dir" : 'X\(//\)$' \| \
  25541. X"$as_dir" : 'X\(/\)' \| \
  25542. . : '\(.\)' 2>/dev/null ||
  25543. echo X"$as_dir" |
  25544. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25545. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25546. /^X\(\/\/\)$/{ s//\1/; q; }
  25547. /^X\(\/\).*/{ s//\1/; q; }
  25548. s/.*/./; q'`
  25549. done
  25550. test ! -n "$as_dirs" || mkdir $as_dirs
  25551. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25552. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25553. { (exit 1); exit 1; }; }; }
  25554. rm -f $ac_file
  25555. mv $tmp/config.h $ac_file
  25556. fi
  25557. else
  25558. cat $tmp/config.h
  25559. rm -f $tmp/config.h
  25560. fi
  25561. # Compute $ac_file's index in $config_headers.
  25562. _am_stamp_count=1
  25563. for _am_header in $config_headers :; do
  25564. case $_am_header in
  25565. $ac_file | $ac_file:* )
  25566. break ;;
  25567. * )
  25568. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  25569. esac
  25570. done
  25571. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  25572. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25573. X$ac_file : 'X\(//\)[^/]' \| \
  25574. X$ac_file : 'X\(//\)$' \| \
  25575. X$ac_file : 'X\(/\)' \| \
  25576. . : '\(.\)' 2>/dev/null ||
  25577. echo X$ac_file |
  25578. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25579. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25580. /^X\(\/\/\)$/{ s//\1/; q; }
  25581. /^X\(\/\).*/{ s//\1/; q; }
  25582. s/.*/./; q'`/stamp-h$_am_stamp_count
  25583. done
  25584. _ACEOF
  25585. cat >>$CONFIG_STATUS <<\_ACEOF
  25586. #
  25587. # CONFIG_COMMANDS section.
  25588. #
  25589. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  25590. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  25591. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25592. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  25593. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25594. X"$ac_dest" : 'X\(//\)[^/]' \| \
  25595. X"$ac_dest" : 'X\(//\)$' \| \
  25596. X"$ac_dest" : 'X\(/\)' \| \
  25597. . : '\(.\)' 2>/dev/null ||
  25598. echo X"$ac_dest" |
  25599. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25600. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25601. /^X\(\/\/\)$/{ s//\1/; q; }
  25602. /^X\(\/\).*/{ s//\1/; q; }
  25603. s/.*/./; q'`
  25604. { if $as_mkdir_p; then
  25605. mkdir -p "$ac_dir"
  25606. else
  25607. as_dir="$ac_dir"
  25608. as_dirs=
  25609. while test ! -d "$as_dir"; do
  25610. as_dirs="$as_dir $as_dirs"
  25611. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25612. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25613. X"$as_dir" : 'X\(//\)[^/]' \| \
  25614. X"$as_dir" : 'X\(//\)$' \| \
  25615. X"$as_dir" : 'X\(/\)' \| \
  25616. . : '\(.\)' 2>/dev/null ||
  25617. echo X"$as_dir" |
  25618. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25619. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25620. /^X\(\/\/\)$/{ s//\1/; q; }
  25621. /^X\(\/\).*/{ s//\1/; q; }
  25622. s/.*/./; q'`
  25623. done
  25624. test ! -n "$as_dirs" || mkdir $as_dirs
  25625. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25626. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25627. { (exit 1); exit 1; }; }; }
  25628. ac_builddir=.
  25629. if test "$ac_dir" != .; then
  25630. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25631. # A "../" for each directory in $ac_dir_suffix.
  25632. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25633. else
  25634. ac_dir_suffix= ac_top_builddir=
  25635. fi
  25636. case $srcdir in
  25637. .) # No --srcdir option. We are building in place.
  25638. ac_srcdir=.
  25639. if test -z "$ac_top_builddir"; then
  25640. ac_top_srcdir=.
  25641. else
  25642. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25643. fi ;;
  25644. [\\/]* | ?:[\\/]* ) # Absolute path.
  25645. ac_srcdir=$srcdir$ac_dir_suffix;
  25646. ac_top_srcdir=$srcdir ;;
  25647. *) # Relative path.
  25648. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25649. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25650. esac
  25651. # Do not use `cd foo && pwd` to compute absolute paths, because
  25652. # the directories may not exist.
  25653. case `pwd` in
  25654. .) ac_abs_builddir="$ac_dir";;
  25655. *)
  25656. case "$ac_dir" in
  25657. .) ac_abs_builddir=`pwd`;;
  25658. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25659. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25660. esac;;
  25661. esac
  25662. case $ac_abs_builddir in
  25663. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25664. *)
  25665. case ${ac_top_builddir}. in
  25666. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25667. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25668. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25669. esac;;
  25670. esac
  25671. case $ac_abs_builddir in
  25672. .) ac_abs_srcdir=$ac_srcdir;;
  25673. *)
  25674. case $ac_srcdir in
  25675. .) ac_abs_srcdir=$ac_abs_builddir;;
  25676. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25677. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25678. esac;;
  25679. esac
  25680. case $ac_abs_builddir in
  25681. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25682. *)
  25683. case $ac_top_srcdir in
  25684. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25685. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25686. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25687. esac;;
  25688. esac
  25689. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  25690. echo "$as_me: executing $ac_dest commands" >&6;}
  25691. case $ac_dest in
  25692. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  25693. # Strip MF so we end up with the name of the file.
  25694. mf=`echo "$mf" | sed -e 's/:.*$//'`
  25695. # Check whether this is an Automake generated Makefile or not.
  25696. # We used to match only the files named `Makefile.in', but
  25697. # some people rename them; so instead we look at the file content.
  25698. # Grep'ing the first line is not enough: some people post-process
  25699. # each Makefile.in and add a new line on top of each file to say so.
  25700. # So let's grep whole file.
  25701. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  25702. dirpart=`(dirname "$mf") 2>/dev/null ||
  25703. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25704. X"$mf" : 'X\(//\)[^/]' \| \
  25705. X"$mf" : 'X\(//\)$' \| \
  25706. X"$mf" : 'X\(/\)' \| \
  25707. . : '\(.\)' 2>/dev/null ||
  25708. echo X"$mf" |
  25709. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25710. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25711. /^X\(\/\/\)$/{ s//\1/; q; }
  25712. /^X\(\/\).*/{ s//\1/; q; }
  25713. s/.*/./; q'`
  25714. else
  25715. continue
  25716. fi
  25717. # Extract the definition of DEPDIR, am__include, and am__quote
  25718. # from the Makefile without running `make'.
  25719. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  25720. test -z "$DEPDIR" && continue
  25721. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  25722. test -z "am__include" && continue
  25723. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  25724. # When using ansi2knr, U may be empty or an underscore; expand it
  25725. U=`sed -n 's/^U = //p' < "$mf"`
  25726. # Find all dependency output files, they are included files with
  25727. # $(DEPDIR) in their names. We invoke sed twice because it is the
  25728. # simplest approach to changing $(DEPDIR) to its actual value in the
  25729. # expansion.
  25730. for file in `sed -n "
  25731. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  25732. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  25733. # Make sure the directory exists.
  25734. test -f "$dirpart/$file" && continue
  25735. fdir=`(dirname "$file") 2>/dev/null ||
  25736. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25737. X"$file" : 'X\(//\)[^/]' \| \
  25738. X"$file" : 'X\(//\)$' \| \
  25739. X"$file" : 'X\(/\)' \| \
  25740. . : '\(.\)' 2>/dev/null ||
  25741. echo X"$file" |
  25742. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25743. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25744. /^X\(\/\/\)$/{ s//\1/; q; }
  25745. /^X\(\/\).*/{ s//\1/; q; }
  25746. s/.*/./; q'`
  25747. { if $as_mkdir_p; then
  25748. mkdir -p $dirpart/$fdir
  25749. else
  25750. as_dir=$dirpart/$fdir
  25751. as_dirs=
  25752. while test ! -d "$as_dir"; do
  25753. as_dirs="$as_dir $as_dirs"
  25754. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25755. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25756. X"$as_dir" : 'X\(//\)[^/]' \| \
  25757. X"$as_dir" : 'X\(//\)$' \| \
  25758. X"$as_dir" : 'X\(/\)' \| \
  25759. . : '\(.\)' 2>/dev/null ||
  25760. echo X"$as_dir" |
  25761. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25762. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25763. /^X\(\/\/\)$/{ s//\1/; q; }
  25764. /^X\(\/\).*/{ s//\1/; q; }
  25765. s/.*/./; q'`
  25766. done
  25767. test ! -n "$as_dirs" || mkdir $as_dirs
  25768. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  25769. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  25770. { (exit 1); exit 1; }; }; }
  25771. # echo "creating $dirpart/$file"
  25772. echo '# dummy' > "$dirpart/$file"
  25773. done
  25774. done
  25775. ;;
  25776. esac
  25777. done
  25778. _ACEOF
  25779. cat >>$CONFIG_STATUS <<\_ACEOF
  25780. { (exit 0); exit 0; }
  25781. _ACEOF
  25782. chmod +x $CONFIG_STATUS
  25783. ac_clean_files=$ac_clean_files_save
  25784. # configure is writing to config.log, and then calls config.status.
  25785. # config.status does its own redirection, appending to config.log.
  25786. # Unfortunately, on DOS this fails, as config.log is still kept open
  25787. # by configure, so config.status won't be able to write to it; its
  25788. # output is simply discarded. So we exec the FD to /dev/null,
  25789. # effectively closing config.log, so it can be properly (re)opened and
  25790. # appended to by config.status. When coming back to configure, we
  25791. # need to make the FD available again.
  25792. if test "$no_create" != yes; then
  25793. ac_cs_success=:
  25794. ac_config_status_args=
  25795. test "$silent" = yes &&
  25796. ac_config_status_args="$ac_config_status_args --quiet"
  25797. exec 5>/dev/null
  25798. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25799. exec 5>>config.log
  25800. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25801. # would make configure fail if this is the last instruction.
  25802. $ac_cs_success || { (exit 1); exit 1; }
  25803. fi